/* ============================================================
   SELTUM TMS — DOCS CENTER  |  style.css
   ============================================================ */

/* ── 1. Google Fonts ──────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@600;700;800&family=DM+Sans:wght@400;500&family=DM+Mono:wght@400;500&display=swap');

/* ── 2. CSS Variables — Dark (default) ───────────────────── */
:root {
  --accent:           #E8234A;
  --accent-hover:     #C41E3F;
  --accent-soft:      rgba(232,35,74,0.10);

  --sidebar-bg:       #1E2235;
  --sidebar-mid:      #252B40;
  --sidebar-light:    #2E3650;

  --page-bg:          #181C2E;
  --panel-bg:         #1E2235;
  --card-bg:          #252B40;
  --card-hover-bg:    #2E3650;

  --border:           #2A3150;
  --border-light:     #2E3650;

  --text-primary:     #F0F2F7;
  --text-secondary:   #8B96B0;
  --text-muted:       #505A75;

  --icon-color:       #505A75;

  --topbar-bg:        #1E2235;
  --topbar-border:    #2A3150;

  --input-bg:         #252B40;
  --input-border:     #2A3150;
  --input-focus:      #E8234A;

  --scrollbar-track:  #1E2235;
  --scrollbar-thumb:  #2E3650;

  --code-bg:          #181C2E;
  --code-text:        #E8234A;
  --pre-bg:           #181C2E;

  --bq-bg:            rgba(232,35,74,0.07);
  --bq-border:        #E8234A;

  --table-header-bg:  #252B40;
  --table-stripe:     rgba(255,255,255,0.025);
  --table-hover:      rgba(255,255,255,0.05);

  --font-display:     'Barlow', sans-serif;
  --font-body:        'DM Sans', sans-serif;
  --font-mono:        'DM Mono', monospace;

  --sidebar-width:    280px;
  --topbar-height:    60px;
  --radius:           8px;
  --radius-sm:        5px;
  --transition:       0.15s ease;
}

/* ── 3. Light Theme Overrides ────────────────────────────── */
[data-theme="light"] {
  --page-bg:          #F4F6FB;
  --panel-bg:         #FFFFFF;
  --card-bg:          #F9FAFC;
  --card-hover-bg:    #F0F3FA;

  --sidebar-bg:       #FFFFFF;
  --sidebar-mid:      #F4F6FB;
  --sidebar-light:    #EEF1F8;

  --border:           #E2E8F0;
  --border-light:     #CDD3E0;

  --text-primary:     #1E2235;
  --text-secondary:   #4A5568;
  --text-muted:       #94A3B8;

  --icon-color:       #94A3B8;

  --topbar-bg:        #FFFFFF;
  --topbar-border:    #E2E8F0;

  --input-bg:         #F4F6FB;
  --input-border:     #CDD3E0;

  --scrollbar-track:  #F4F6FB;
  --scrollbar-thumb:  #CDD3E0;

  --code-bg:          #EEF1F8;
  --code-text:        #C41E3F;
  --pre-bg:           #1E2235;

  --bq-bg:            rgba(232,35,74,0.05);

  --table-header-bg:  #F0F3FA;
  --table-stripe:     rgba(0,0,0,0.018);
  --table-hover:      rgba(0,0,0,0.04);
}

/* ── 4. Reset + Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; font-size: 15px; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--page-bg);
  color: var(--text-primary);
  height: 100%;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
  color: inherit;
}

svg { display: block; flex-shrink: 0; }

/* ── 5. Scrollbars ───────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── 6. Layout Shell ─────────────────────────────────────── */
#app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ── 7. Sidebar ──────────────────────────────────────────── */
#sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
  z-index: 100;
}

.sidebar-logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-decoration: none;
}

.sidebar-logo img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.sidebar-logo .logo-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0 16px;
}

.nav-group {
  margin-bottom: 4px;
}

.nav-group-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 20px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
}

.nav-item svg {
  stroke: var(--icon-color);
  transition: stroke var(--transition);
}

.nav-item:hover {
  color: var(--text-primary);
  background: var(--sidebar-light);
  text-decoration: none;
}

.nav-item:hover svg {
  stroke: var(--text-secondary);
}

.nav-item.active {
  color: var(--accent);
  background: var(--accent-soft);
  border-left-color: var(--accent);
  font-weight: 500;
}

.nav-item.active svg {
  stroke: var(--accent);
}

.nav-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  letter-spacing: 0.04em;
}

.nav-item.active .nav-badge {
  color: var(--accent);
  border-color: var(--accent-soft);
  background: var(--accent-soft);
}

.sidebar-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ── 8. Main Column ──────────────────────────────────────── */
#main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* ── 9. Topbar ───────────────────────────────────────────── */
#topbar {
  height: var(--topbar-height);
  min-height: var(--topbar-height);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--topbar-border);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  z-index: 50;
  transition: background var(--transition), border-color var(--transition);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

#hamburger-btn {
  display: none;
  padding: 6px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: background var(--transition);
}

#hamburger-btn:hover { background: var(--card-bg); }
#hamburger-btn svg { stroke: var(--icon-color); }

#topbar-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.topbar-search {
  flex: 1;
  position: relative;
  max-width: 560px;
}

.topbar-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  stroke: var(--text-muted);
  pointer-events: none;
}

#search-input {
  width: 100%;
  height: 38px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 20px;
  padding: 0 16px 0 40px;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}

#search-input::placeholder { color: var(--text-muted); }
#search-input:focus { border-color: var(--input-focus); }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

#ai-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: #fff;
  padding: 0 14px;
  height: 36px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}

#ai-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
#ai-btn svg { stroke: #fff; }

#theme-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

#theme-btn:hover { background: var(--card-hover-bg); }
#theme-btn svg { stroke: var(--text-secondary); }

/* ── 10. AI Panel ────────────────────────────────────────── */
#ai-panel {
  background: var(--panel-bg);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

#ai-panel.open {
  max-height: 420px;
}

.ai-panel-inner {
  padding: 18px 24px 20px;
  max-height: 420px;
  overflow-y: auto;
}

.ai-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ai-monogram {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.ai-panel-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

#ai-close {
  margin-left: auto;
  padding: 4px;
  border-radius: 4px;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}

#ai-close:hover { background: var(--card-bg); color: var(--text-primary); }
#ai-close svg { stroke: currentColor; }

.ai-question {
  font-size: 13px;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 10px;
}

#ai-answer {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-primary);
}

#ai-answer p { margin-bottom: 8px; }
#ai-answer ul, #ai-answer ol { padding-left: 20px; margin-bottom: 8px; }
#ai-answer li { margin-bottom: 3px; }
#ai-answer strong { color: var(--text-primary); }
#ai-answer code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--code-bg);
  color: var(--code-text);
  padding: 1px 5px;
  border-radius: 3px;
}

.ai-loader {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 0;
}

.ai-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: dotBounce 1s ease-in-out infinite;
}

.ai-dot:nth-child(2) { animation-delay: 0.15s; }
.ai-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes dotBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40%            { transform: translateY(-6px); opacity: 1; }
}

.ai-related {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ai-related-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.ai-chip {
  font-size: 12px;
  padding: 3px 10px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.ai-chip:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* ── 11. Content Area ────────────────────────────────────── */
#content {
  flex: 1;
  overflow-y: auto;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 12. Home Page ───────────────────────────────────────── */
#home-page {
  padding: 48px 40px 60px;
  max-width: 960px;
  margin: 0 auto;
}

.hero {
  text-align: center;
  margin-bottom: 48px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.quickstart-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}

.qs-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition);
  border-top: 3px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qs-card:hover {
  background: var(--card-hover-bg);
  border-top-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.qs-card-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qs-card-icon svg { stroke: var(--accent); }

.qs-card h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.qs-card p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.role-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.role-card:hover {
  background: var(--card-hover-bg);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.role-card-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.role-card-icon svg { stroke: var(--accent); }

.role-card h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.role-card p {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── 13. Doc Page ────────────────────────────────────────── */
#doc-page {
  display: none;
  padding: 40px 48px 60px;
  max-width: 860px;
}

.doc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-size: 12px;
  color: var(--text-muted);
}

.doc-breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.doc-breadcrumb a:hover { color: var(--accent); text-decoration: none; }
.doc-breadcrumb svg { stroke: var(--text-muted); }
.doc-breadcrumb span { color: var(--text-secondary); }

.doc-who {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* ── 14. Doc Body Typography ─────────────────────────────── */
.doc-body { animation: fadeIn 0.2s ease; }

.doc-body h1 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.doc-body h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 36px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.doc-body h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 26px;
  margin-bottom: 10px;
}

.doc-body h4 {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 20px;
  margin-bottom: 8px;
}

.doc-body p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.doc-body ul, .doc-body ol {
  padding-left: 22px;
  margin-bottom: 14px;
}

.doc-body li {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.doc-body ul li::marker { color: var(--accent); }

.doc-body strong { font-weight: 600; color: var(--text-primary); }

.doc-body code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--code-bg);
  color: var(--code-text);
  padding: 2px 6px;
  border-radius: 4px;
}

.doc-body pre {
  background: var(--pre-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  overflow-x: auto;
  margin-bottom: 16px;
}

.doc-body pre code {
  background: none;
  color: #8B96B0;
  font-size: 13px;
  padding: 0;
}

.doc-body blockquote {
  background: var(--bq-bg);
  border-left: 3px solid var(--bq-border);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  margin-bottom: 14px;
  color: var(--text-secondary);
  font-size: 14px;
}

.doc-body blockquote p { color: var(--text-secondary); margin-bottom: 0; }

.doc-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}

.doc-body img {
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  margin: 16px 0;
}

/* Tables */
.doc-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
  font-size: 13.5px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.doc-body th {
  background: var(--table-header-bg);
  padding: 10px 14px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.doc-body td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
  color: var(--text-primary);
  vertical-align: top;
}

.doc-body tr:last-child td { border-bottom: none; }
.doc-body tr:nth-child(even) td { background: var(--table-stripe); }
.doc-body tr:hover td { background: var(--table-hover); }

/* ── 15. Doc Navigation Footer ───────────────────────────── */
.doc-nav-footer {
  display: flex;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.doc-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
}

.doc-nav-btn.next { text-align: right; }

.doc-nav-btn:hover {
  border-color: var(--accent);
  background: var(--card-hover-bg);
}

.doc-nav-direction {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.doc-nav-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.doc-nav-btn:hover .doc-nav-title { color: var(--accent); }

/* ── 16. Loading State ───────────────────────────────────── */
#loading {
  display: none;
  padding: 60px 48px;
  align-items: center;
  gap: 8px;
}

#loading.visible { display: flex; }

/* ── 17. Mobile Overlay ──────────────────────────────────── */
#sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 90;
}

/* ── 18. Mobile Responsive ───────────────────────────────── */
@media (max-width: 768px) {
  #hamburger-btn { display: flex; }

  #sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    transform: translateX(-100%);
    z-index: 110;
  }

  #sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 30px rgba(0,0,0,0.3);
  }

  #sidebar-overlay.open { display: block; }

  #home-page { padding: 28px 20px 48px; }
  .hero h1 { font-size: 28px; }

  .quickstart-grid { grid-template-columns: repeat(2, 1fr); }
  .role-grid { grid-template-columns: repeat(2, 1fr); }

  #doc-page { padding: 24px 20px 48px; }

  #topbar-title { display: none; }
}

@media (max-width: 480px) {
  .quickstart-grid { grid-template-columns: 1fr; }
  .role-grid { grid-template-columns: repeat(2, 1fr); }
  #ai-btn span { display: none; }
  #ai-btn { width: 36px; padding: 0; justify-content: center; }
}

/* ── Login Screen ─────────────────────────────────────────── */
#login-screen {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: var(--page-bg); color: var(--text-primary); padding: 24px; z-index: 1000;
}
.login-card {
  width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 12px;
  background: var(--panel-bg); padding: 32px; border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.login-logo { height: 40px; width: auto; align-self: center; }
.login-title { font-size: 20px; font-weight: 700; text-align: center; color: var(--text-primary); }
.login-sub { font-size: 13px; text-align: center; margin-bottom: 8px; color: var(--text-secondary); }
.login-card input {
  padding: 11px 13px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--card-bg); color: var(--text-primary); font-size: 14px;
}
.login-card input::placeholder { color: var(--text-muted); }
#login-submit {
  margin-top: 6px; padding: 11px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 600;
}
#login-submit:hover { background: var(--accent-hover); }
#login-submit:disabled { opacity: .6; cursor: default; }
.login-error {
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent);
  padding: 9px 11px; border-radius: 8px; font-size: 13px;
}

/* #app and #login-screen both set an unconditional `display`, which beats
   the browser's default [hidden]{display:none} rule regardless of selector
   specificity. Re-assert it here, after both rules, so toggling the
   `hidden` property in JS actually shows/hides them. */
#app[hidden], #login-screen[hidden] { display: none; }
.sidebar-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#logout-btn {
  background: transparent; border: 1px solid rgba(255,255,255,.16); color: inherit;
  border-radius: 6px; padding: 4px 8px; font-size: 12px; cursor: pointer;
}
