/* SyncTrace Web (Standalone) — layout adapter on top of the panel's css/main.css
   + ligo-ui.css (shared Ligo chooser / profile / auth). */

* { box-sizing: border-box; }
body { padding: 12px; overflow: auto; }
[hidden] { display: none !important; }
#app-root { min-height: calc(100vh - 24px); }
.st-view { display: none; }
.st-view:not([hidden]) { display: block; }
.st-runtime { min-height: calc(100vh - 24px); }
.ligo-screen { padding: 0; }
.ligo-panel { margin-top: 10vh; }
.st-auth-switch { display: flex; gap: 8px; margin: 16px 0 4px; }
.st-auth-switch .st-tab { border: 1px solid #2b3244; border-radius: 8px; padding: 8px 14px; background: none; color: #9ba3b4; cursor: pointer; }
.st-auth-switch .st-tab.is-active { color: #fff; background: #4f7cff; border-color: #4f7cff; }
.st-auth-back-btn { display: inline-block; margin-bottom: 12px; background: none; border: none; cursor: pointer; padding: 0; color: #9ba3b4; }
.ligo-brand-mark { width: 25px; height: 25px; object-fit: contain; margin-right: 2px; }
.st-user-email { margin-left: auto; color: #8ca4d6; font-size: .82em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.st-profile-button { width: 34px; height: 34px; background: transparent; color: #c8d6f5; border: 1px solid rgba(91, 127, 194, 0.45); border-radius: 8px; cursor: pointer; }
.st-profile-button:hover { color: #eef4ff; background: rgba(20, 31, 53, 0.7); }
.st-signin-btn { padding: 7px 14px; border: 1px solid #66a2ff; border-radius: 7px; background: transparent; color: #9dc2ff; cursor: pointer; font-weight: 600; white-space: nowrap; }
.st-signin-btn:hover { background: #2d7dff; color: #eef4ff; }
.ligo-panel-web-app-btn { padding: 7px 14px; border: 1px solid #66a2ff; border-radius: 999px; background: transparent; color: #9dc2ff; cursor: pointer; font-weight: 600; font-size: 0.82rem; white-space: nowrap; }
.ligo-panel-web-app-btn:hover { background: #2d7dff; color: #eef4ff; }

.app-header-center {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

#view-app .app-header { gap: 12px; }
#view-app .app-subtitle { margin-left: 8px; }
#view-app .container { max-width: 980px; margin: 0 auto; }
#view-app .sequence-input-row { display: flex; grid-template-columns: none; }
#download-sync-btn { display: none; }
#download-sync-btn.is-visible { display: inline-flex; }
#global-status {
    position: fixed;
    z-index: 3000;
    right: 18px;
    bottom: 18px;
    max-width: min(420px, 86vw);
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(91, 127, 194, 0.45);
    background: rgba(8, 13, 22, 0.94);
    color: #eef4ff;
    font-size: 13px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}
#global-status.is-error { border-color: #c44; color: #ffd6d6; }
#view-tools.ligo-screen { padding: 24px; min-height: calc(100vh - 24px); }
.ligo-app-switcher-link-active { border-color: #6ba8ff; background: rgba(107, 168, 255, 0.12); cursor: default; }
.ligo-app-switcher-link-locked { opacity: 0.4; cursor: not-allowed; filter: grayscale(0.4); }
.ligo-app-switcher-link-locked:hover { border-color: transparent; background: transparent; }

.ligo-panel-chrome-btn {
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    transform: none;
    background: transparent;
    border: 1px solid rgba(91, 127, 194, 0.32);
    box-shadow: none;
    font-weight: 500;
}
.ligo-panel-chrome-btn:hover:not(:disabled) { transform: none; background: rgba(255,255,255,0.06); }
.ligo-panel-profile-item {
    min-height: 0;
    padding: 9px 10px;
    border: 0;
    background: transparent;
    transform: none;
    box-shadow: none;
    font-weight: 500;
    text-align: left;
}
.ligo-panel-profile-item:hover:not(:disabled) { transform: none; background: rgba(255,255,255,0.06); }
.ligo-panel-profile-item--danger { color: #ff8f8f; }

/* Button icons: the panel's main.css points at its ../static/ folder, which the
   standalone page does not have; the same images ship in ./assets/. */
.icon-load { background-image: url("./assets/synctrace-load-sequence-icon.png"); }
.icon-generate { background-image: url("./assets/synctrace-generate-sequence-icon.png"); }
#ligo-chooser-logo { height: 22px; }
