/* ChangeTrace Web (Standalone) — layout adapter on top of plugin-ui.css
   (= plugin main.css) + ligo-ui.css (shared Ligo chooser / profile / auth). */

#app-root { min-height: 100vh; }
.st-view { display: none; }
.st-view:not([hidden]) { display: block; }
.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; }

body {
  height: auto;
  min-height: 100vh;
  display: block;
  overflow: auto;
  padding: 0;
}

#view-app.st-view:not([hidden]) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
}

#view-app .workspace { flex: 1; min-height: 0; }
#view-tools.ligo-screen { padding: 24px; min-height: 100vh; }
.ligo-app-switcher-link-active { border-color: rgba(34, 197, 94, 0.7); background: rgba(34, 197, 94, 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; }

.app-header .ligo-panel-chrome-actions { margin-left: 0; }
.header-actions { align-items: center; }

#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; }

.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; }
.st-tab { transform: none; }
.st-tab:hover:not(:disabled) { transform: none; }
.st-auth-back-btn:hover:not(:disabled) { transform: none; }
