:root{--accent:#FB6B60;--bg:#252B3B;--panel:#1B1D27;--muted:#9aa0a6;--text:#e9eaee;--stroke:rgba(255,255,255,.08);--shadow:0 18px 60px rgba(0,0,0,.55);--radius:18px;--composer-radius:32px;--composer-pill-radius:32px}
*{box-sizing:border-box}
html,body,#app{height:100%}
html,body{margin:0;background:var(--bg)}
body{color:var(--text);font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;background:var(--bg)}
/* Safe area fill bar for iOS home indicator */
//safe-bottom{position:fixed;left:0;right:0;bottom:0;height:env(safe-area-inset-bottom);background: var(--bg);pointer-events:none;z-index:1}
/* TEMP TEST: force red to verify iOS safe-area fill */
.safe-top{position:fixed;left:0;right:0;top:0;height:env(safe-area-inset-top);background:#FF0000;pointer-events:none;z-index:23}
.topbarALT{position:fixed;top:0;left:0;right:0;height:150px;display:flex;align-items:center;justify-content:center;border-bottom:1px solid var(--stroke);background:rgba(17,18,24,.55);backdrop-filter:blur(10px);box-shadow:0 -10px 30px 20px rgba(0,0,0,.35);z-index:22;padding-top: env(safe-area-inset-top)}
.topbar{
  position:fixed;
  top:0; left:0; right:0;

  /* wichtig: Topbar ist insgesamt höher inkl. Safe Area */
  height: calc(150px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);

  display:flex;
  justify-content:center;

  /* statt center: wir starten oben und platzieren den Dot bewusst */
  align-items:flex-start;

  border-bottom:1px solid var(--stroke);
  background: rgba(17,18,24,.6); /* oder deine Blur-Variante */
  z-index:22;
  box-shadow:0 -10px 30px 20px rgba(0,0,0,.35)
}
/* Reiner Blur-Overlay hinter der Topbar, ohne Auslauf */
.topbar{ position:fixed; isolation:isolate; }
.topbar::before{
  content: "";
  position: absolute;
  inset: 0;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  pointer-events: none;
  z-index: 0; /* hinter dem Topbar-Inhalt */
}
/* Weicher Farbverlauf ebenfalls hinter dem Inhalt (zwischen Blur und Topbar-Tint) */
.topbar::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0; /* gleich wie ::before, bleibt hinter Inhalt */
  background: linear-gradient(to top,
    rgba(27,29,39, 0.0) 70%,
    rgba(27,29,39, 1) 100%
  );
}
/* Sicherstellen, dass Topbar-Kinder über den Overlays liegen */
.topbar > *{ position: relative; z-index: 1; }
.brand-dot{width:80px;height:80px;border-radius:999px;background:var(--accent);box-shadow:0 0 0 10px rgba(251,107,96,.12);position:relative;transition:transform .18s ease, filter .18s ease; margin-top: calc((150px - 80px) / 2); /* = 35px */}
.brand-dot.thinking{animation:breathe 1s ease-in-out infinite}
.brand-dot.thinking::after{content:"";position:absolute;inset:0;border-radius:999px;border:2px solid rgba(251,107,96,.45);animation:sonar 1s ease-out infinite;pointer-events:none}
@keyframes breathe{0%{transform:scale(1)}50%{transform:scale(1.05)}100%{transform:scale(1)}}
@keyframes sonar{0%{transform:scale(.85);opacity:.55}40%{opacity:.35}100%{transform:scale(1.55);opacity:0}}
.profile-btn{position:absolute;right:16px;top:16px;width:48px;height:48px;border-radius:999px;border:1px solid var(--stroke);background:rgba(255,255,255,.04);color:var(--text);display:grid;place-items:center;font-weight:600;letter-spacing:.2px;font-size:16px;cursor:pointer;z-index:25;pointer-events:auto;transition:transform .12s ease, background .12s ease}
.profile-btn:hover{background:rgba(255,255,255,.07);transform:translateY(-1px)}
.profile-btn:active{transform:translateY(0) scale(.98)}
/* Wide variant for unauthenticated state */
.profile-btn.wide{ width:auto; min-width:120px; height:40px; padding:0 14px; display:inline-flex; align-items:center; justify-content:center; border-radius:999px }
.main{position:absolute;top:env(safe-area-inset-top);bottom:0;left:0;right:0;display:flex}
.chat{flex:1;display:flex;flex-direction:column;padding:0 18px 18px;gap:14px;min-width:0; position:relative}
/* Keep bottom padding constant so growing composer overlays messages; include safe-area bottom */
.messages{flex:1;overflow-y:auto; overflow-x:hidden; padding: calc(150px + 8px) 6px calc(70px + env(safe-area-inset-bottom, 0px)) 6px;min-height:0;max-width:100%; scrollbar-width: none; -ms-overflow-style: none;}
.messages::-webkit-scrollbar{width:0;height:0}
.messages::-webkit-scrollbar-thumb{background:transparent;border:0}
.msg{display:flex;margin:10px 0; overflow:visible}
.bubble{max-width:min(780px,92%);padding:12px 14px;border-radius:16px;line-height:1.45;border:1px solid var(--stroke);background:rgba(255,255,255,.04);box-shadow:0 0px 15px -2px rgba(0,0,0,.35);z-index:21; position:relative; word-break: break-word;}
.msg.agent .bubble{border-top-left-radius:8px}
.msg.user{justify-content:flex-end}
.msg.user .bubble{background:rgba(251,107,96,.14);border-color:rgba(251,107,96,.26);border-top-right-radius:8px}
/* Push message variants */
.bubble.from-push{ background: rgba(58,86,140,.22); border-color: rgba(140,180,240,.34); }
.bubble.is-quick-draft{ background: rgba(52,110,78,.18); border-color: rgba(120,220,160,.28); }
.bubble.is-progress{ background: rgba(110,90,40,.20); border-color: rgba(220,180,80,.32); }
.bubble.is-side-effect{ background: rgba(80,80,120,.20); border-color: rgba(140,140,220,.32); }
/* Timestamp visibility + alignment (only when hovering the bubble or toggled on mobile) */
/* Hover/click-to-reveal timestamp; bubble shifts horizontally by timestamp width, size stays constant; timestamp sits outside */
.msg{ position: relative; }
.msg.agent .bubble{ position:relative; --tsw:56px; transition: transform .16s ease; transform-origin:left center; }
.msg.user  .bubble{ position:relative; --tsw:56px; transition: transform .16s ease; transform-origin:right center; }
/* Shift bubble outward only when toggled via click (no hover) */
.msg.agent .bubble.show-meta{ transform: translateX(var(--tsw)); }
.msg.user  .bubble.show-meta{ transform: translateX(calc(-1 * var(--tsw))); }
/* Invisible hover hit area in the gap so hovering timestamp/gap also counts as bubble hover */
.msg.agent .bubble::after{ content:""; position:absolute; top:-1px; bottom:-1px; left: calc(-1 * var(--tsw)); width: var(--tsw); pointer-events:auto; background: transparent; }
.msg.user  .bubble::after{ content:""; position:absolute; top:-1px; bottom:-1px; right: calc(-1 * var(--tsw)); width: var(--tsw); pointer-events:auto; background: transparent; }
/* Timestamp box occupies exactly the gap; centered text ensures equal spacing to edge and bubble */
.bubble .meta{ position:absolute; bottom:8px; font-size:11px; color: var(--muted); opacity:0; transition: opacity .12s ease; white-space:nowrap; pointer-events:auto; }

/* Markdown content styling inside bubbles */
.bubble .md{ white-space:normal; }
.bubble .md p{ margin: 0 0 8px 0; }
.bubble .md p:last-child{ margin-bottom: 0; }
.bubble .md ul, .bubble .md ol{ margin: 6px 0 8px 16px; padding-left: 16px; }
.bubble .md li{ margin: 2px 0; }
.bubble .md code.inline{ background: rgba(0,0,0,.28); border:1px solid rgba(255,255,255,.08); padding: 1px 4px; border-radius: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.95em; }
.bubble .md pre.code{ background: rgba(0,0,0,.35); border:1px solid rgba(255,255,255,.10); padding: 10px; border-radius: 10px; overflow: auto; -webkit-overflow-scrolling: touch; }
.bubble .md pre.code code{ font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.45; white-space: pre; display:block; }
.bubble .md a{ color: #9ecbff; text-decoration: none; border-bottom: 1px dashed rgba(158,203,255,.5); }
.bubble .md a:hover{ text-decoration: underline; }
.msg.agent .bubble .meta.left{ left: calc(-1 * var(--tsw)); width: var(--tsw); text-align:center }
.msg.user  .bubble .meta.right{ right: calc(-1 * var(--tsw)); width: var(--tsw); text-align:center }
/* Reveal on hover over bubble/timestamp or mobile tap */
.bubble.show-meta .meta{ opacity:.9 }
.composer{
  position: fixed;
  left: 0; right: 0; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display:flex;gap:10px;align-items:center;
  padding:10px;border:1px solid var(--stroke);border-radius: var(--composer-pill-radius);
  background:rgba(17,18,24,.35);backdrop-filter:blur(10px);
  box-shadow:0 0px 20px -5px rgba(0,0,0,.35);
  width:clamp(520px, 50%, 1100px);margin:0 auto;
  transition:border-radius .12s ease; z-index:21;
}
/* Mobile: seitlicher Abstand, damit die Pill nicht anstößt (inkl. Safe Areas) */
@media (max-width: 600px){
  .composer{
    left: calc(12px + env(safe-area-inset-left, 0px));
    right: calc(12px + env(safe-area-inset-right, 0px));
    width: auto; /* Breite durch left/right bestimmt */
    max-width: calc(100% - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
    margin: 0;   /* kein zentriertes Margin nötig */
    box-sizing: border-box;
  }
}
.composer.tall{border-radius: var(--composer-radius)}
/* Composer textarea: default strictly single-line and vertically centered */
.composer textarea{flex:1;align-self:center;background:transparent;border:none;outline:none;color:var(--text);font-size:16px;line-height:1.25;padding:6px 8px;min-width:0;resize:none;min-height:32px;height:32px;max-height:180px;overflow-y:hidden;overflow-x:auto}
.composer textarea::placeholder{color:rgba(233,234,238,.45)}
.send{align-self:flex-end;width:auto;min-width:0;height:40px;padding:0 14px;border-radius:999px;border:1px solid rgba(251,107,96,.32);background:rgba(251,107,96,.16);font-size:16px;color:var(--accent);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;transition: filter .12s ease, opacity .12s ease, transform .12s ease; flex:0 0 auto}
.send:hover{transform:translateY(-1px);background:rgba(251,107,96,.22)}
.send:active{transform:translateY(0) scale(.98)}
/* Disabled visual state */
.send:disabled, .send.disabled{
  opacity: .55;
  cursor: not-allowed;
  filter: grayscale(35%);
  background: rgba(251,107,96,.10);
  border-color: rgba(251,107,96,.22);
}
.send:disabled:hover, .send.disabled:hover{ transform:none; }
.send:disabled:active, .send.disabled:active{ transform:none; }
/* mobile tweaks removed per request */
@media (max-width: 480px){
  .chat{ padding: 0 16px 12px; }
  .composer{ width: 100%; }
}
/* Drawer + overlay + cards from design */
.overlay-drk{position:fixed;top:calc(150px + env(safe-area-inset-top));left:0;right:0;bottom:env(safe-area-inset-bottom, 0px);background:rgba(0,0,0,.22);opacity:0;pointer-events:none;transition:opacity .18s ease;z-index:23}
.overlay-drk.show{opacity:1;pointer-events:auto}
/* Background flash overlay: sits below dark overlay, shows chat bg color */
.overlay-bg{position:fixed;top:calc(150px + env(safe-area-inset-top));left:0;right:0;bottom:env(safe-area-inset-bottom, 0px);background:var(--bg);opacity:0;pointer-events:none;transition:opacity .18s ease;z-index:20}
.overlay-bg.show{opacity:1; pointer-events:none}
.drawer{position:fixed;top:calc(150px + env(safe-area-inset-top));right:0;bottom:0;width:min(380px,94vw);background:rgba(17,18,24,.92);border-left:1px solid var(--stroke);transform:translateX(105%);transition:transform .18s ease;display:flex;flex-direction:column;backdrop-filter:blur(10px);z-index:23}
.drawer.open{transform:translateX(0)}
.drawer-body{flex:1;overflow:auto;padding:18px;display:flex;flex-direction:column;gap:16px;scrollbar-width:thin;scrollbar-color: rgba(255,255,255,.24) transparent}
.drawer-body::-webkit-scrollbar{width:10px;height:10px}
.drawer-body::-webkit-scrollbar-thumb{background: rgba(255,255,255,.22); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box}
.drawer-body::-webkit-scrollbar-thumb:hover{background: rgba(255,255,255,.28)}
.section-title{font-size:12px;letter-spacing:.3px;text-transform:uppercase;color:var(--muted);margin:16px 2px 0}
.muted{color:var(--muted);font-size:12px;line-height:1.4}
.card{border:1px solid var(--stroke);background:rgba(255,255,255,.04);border-radius:16px;padding:14px}
.row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid rgba(255,255,255,.06)}

/* Files: upload + tree */
.upload-row{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; padding:8px; border:1px solid var(--stroke); border-radius:12px; background:rgba(255,255,255,.03) }
.hidden-file{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden }
#chooseFilesBtn{ flex:0 0 auto }
.upload-row .btn{ flex:0 0 auto }
.tree{ font-size:13px }
.tree ul{ list-style:none; margin:0; padding-left:16px }
.tree .node{ display:flex; align-items:center; gap:6px; padding:4px 0 }
.tree .toggle{ width:16px; height:16px; display:inline-grid; place-items:center; border-radius:4px; cursor:pointer; user-select:none; color:#ccc }
.tree .toggle:hover{ background:rgba(255,255,255,.06) }
.tree .folder{ font-weight:600 }
.tree .file{ color:#ddd }
.tree .meta{ color:#888; margin-left:6px; font-size:12px }

/* Cron list */
.cron-date{ font-size:12px; color:var(--muted); margin:10px 0 4px 0; font-weight:600 }
.cron-list{ list-style:none; margin:0 0 6px 0; padding:0 }
.cron-row{ display:grid; grid-template-columns: 86px 1fr 40px; gap:10px; padding:8px 0; border-bottom:1px solid rgba(255,255,255,.06); align-items:center }
.cron-time{ font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size:12px; color:#cfcfcf }
.cron-text{ font-size:13px; color:#eee; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.cron-status{ display:flex; justify-content:flex-end }
.status-dot{ width:10px; height:10px; border-radius:999px; display:inline-block }
.status-dot.open{ background:#22c55e }
.status-dot.done{ background:#f59e0b }

/* Sessions list button sizing (within sessionsCard) */
#sessionsCard .cron-row .btn{ width:110px; height:32px; }
#tasksList .cron-row .btn{ width:110px; height:32px; }
/* Task status visuals */
.status-dot.running{ background:#f59e0b }
.status-dot.done{ background:#22c55e }
.status-check{ width:14px; height:14px; border-radius:999px; background:#22c55e; color:#091; display:inline-grid; place-items:center; font-size:11px; font-weight:700 }

/* Foldable cards for trees */
.card.fold .tree{ display:none }
.card.fold.open .tree{ display:block }
.card.fold .section-header{ cursor:pointer; display:flex; align-items:center; gap:8px }
.card.fold .section-header .toggle{ width:16px; height:16px; display:inline-grid; place-items:center; border-radius:4px; color:#ccc }
.card.fold .section-header:focus-visible{ outline:2px solid rgba(251,107,96,.45); outline-offset:2px }
.row:last-child{border-bottom:none}
.pill{font-size:12px;padding:6px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05);color:rgba(233,234,238,.9)}
/* Left-align any row that contains pills */
.row:has(.pill){ justify-content:flex-start; gap:8px; }
/* Specific onboarding pill container */
#onbModelView{ display:flex; justify-content:flex-start; gap:8px; flex-wrap:wrap; }
/* Budlre provider pills: keep compact and left-aligned */
#budView .row:has(.pill){ justify-content:flex-start; gap:8px; }
#budView .pill{ flex:0 0 auto; max-width: 60%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
/* Ready pills */
.pill-ready{ border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.16); color:#d1fae5 }
.pill-notready{ border-color: rgba(251,107,96,.28); background: rgba(251,107,96,.12); color: rgba(251,107,96,.95) }
.drawer-actions{position:sticky;bottom:0;padding:12px 18px;display:flex;gap:10px;border-top:1px solid var(--stroke);background: var(--bg); padding-bottom: calc(12px + env(safe-area-inset-bottom))}
.btn, a.btn{flex:1;height:42px;border-radius:14px;border:1px solid var(--stroke);background:rgba(255,255,255,.04);color:var(--text);cursor:pointer;transition:background .12s ease, transform .12s ease; text-decoration:none; display:inline-flex; align-items:center; justify-content:center}
.btn:hover, a.btn:hover{background:rgba(255,255,255,.06);transform:translateY(-1px); text-decoration:none}
.btn:active, a.btn:active{transform:translateY(0) scale(.98); text-decoration:none}
.btn.primary, a.btn.primary{border-color:rgba(251,107,96,.34);background:rgba(251,107,96,.16)}
.btn.primary:hover, a.btn.primary:hover{background:rgba(251,107,96,.22)}
/* External link chevron */
.ext-icon{ margin-left:6px; font-size:12px; opacity:.8; display:inline-block; transform: translateY(-1px); }
a.btn:hover .ext-icon{ opacity:1 }

/* Legacy account/auth panels remain but can hide */
.account-panel{display:none}
.hidden{display:none}
#providersJson{width:100%;background:#000;color:#fff;border:1px solid #222;border-radius:8px;padding:8px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
#wsFiles{list-style:none;margin:8px 0;padding:0;max-height:200px;overflow:auto}
#wsFiles li{color:#ccc;margin:2px 0}
/* Fixed-width dot span for streaming placeholder */
.mono-dots{ display:inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; width: 3ch; text-align: left; }
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px}
.form-grid label{display:flex;flex-direction:column;font-size:.9rem;color:#ddd}
.form-grid input,.form-grid select{margin-top:4px;padding:10px 10px;border-radius:10px;border:1px solid #222;background:#000;color:#fff}
/* Drawer auth inputs match style */
.drawer input[type="email"], .drawer input[type="text"], .drawer input[type="password"]{width:100%;margin-top:6px;padding:10px;border-radius:10px;border:1px solid #222;background:#000;color:#fff}
/* Prevent iOS zoom on focus: ensure 16px font-size on form controls */
@media (max-width: 480px){
  input, select, textarea { font-size:16px; }
  .drawer input, .drawer select, .drawer textarea{ font-size:16px; }
}
.status-box{border:1px solid #222;border-radius:8px;padding:8px;background:#0b0b0b;color:#ccc}
/* Hide legacy auth panel entirely */
.auth-panel{display:none !important}
/* Drawer Tabs Container */
.drawer-tabs{
  display: flex;
  gap: 8px;
  padding: 10px 12px;

  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(17,18,24,.65);
  backdrop-filter: blur(10px);

  overflow-x: auto;
}
.drawer-tabs::-webkit-scrollbar{height:8px}
.drawer-tabs::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.12);
  border-radius: 999px;
}

/* Single Tab */
.drawer-tabs .tab{
  appearance: none;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(233,234,238,.92);

  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;

  cursor: pointer;
  white-space: nowrap;

  transition:
    background .12s ease,
    border-color .12s ease,
    transform .08s ease;
}

.drawer-tabs .tab:hover{
  background: rgba(255,255,255,.07);
}

/* Active Tab */
.drawer-tabs .tab.active{
  border-color: rgba(251,107,96,.35);
  background: rgba(251,107,96,.18);
  color: #fff;
}

/* Keyboard / Accessibility */
.drawer-tabs .tab:focus-visible{
  outline: 2px solid rgba(251,107,96,.45);
  outline-offset: 2px;
}

/* Tab panels */
.tab-panel{ display:none; }
.tab-panel.show{ display:flex; flex-direction:column; gap:14px; }

/* Billing tabs (like drawer tabs) */
.billing-tabs{
  display:flex;
  gap:8px;
  padding:8px 14px;
  border-bottom:1px solid rgba(255,255,255,.06);
  background: rgba(17,18,24,.45);
  backdrop-filter: blur(8px);
  /* full-bleed across card (card padding = 14px) */
  margin: -14px -14px 10px -14px;
}
.billing-tabs .tab{
  appearance:none;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(233,234,238,.92);
  font-size:12px;
  font-weight:600;
  border-radius:999px;
  cursor:pointer;
  white-space:nowrap;
  transition:background .12s ease, border-color .12s ease, transform .08s ease;

  /* full-width split buttons */
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 12px;
}
.billing-tabs .tab:hover{
  background: rgba(255,255,255,.07);
}
.billing-tabs .tab:active{
  transform: translateY(0);
}
.billing-tabs .tab:focus-visible{
  outline: 2px solid rgba(251,107,96,.45);
  outline-offset: 2px;
}
.billing-tabs .tab.active{
  border-color: rgba(251,107,96,.35);
  background: rgba(251,107,96,.18);
  color:#fff;
}
#billingCard{ overflow:hidden }
.billing-tabs{ border-top-left-radius:16px; border-top-right-radius:16px; }
.billing-panel{ display:none; padding-top:6px; }
.billing-panel.show{ display:block; }

/* Own provider panel spacing */
#panel-basis-own .status-line{ margin-top:0; margin-bottom:6px; }
#panel-basis-own #ownView .row{ padding:6px 0; border-bottom:0; }
#panel-basis-own #ownView .row + .row{ margin-top:6px; }
#panel-basis-own #ownUsageLine{ margin-top:8px; }

/* Budlre balance row */
.balance-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:4px; }
.balance-amount{ font-size:32px; font-weight:750; letter-spacing:.3px; line-height:1.15; }
/* Usage lines (bigger) */
#budlreUsageLine, #ownUsageLine{ font-size:14px; line-height:1.45; font-weight:550; color: rgba(233,234,238,.92); }
.btn-applepay{ flex:0 0 auto; height:40px; padding:0 14px; border-radius:10px; border:1px solid rgba(255,255,255,.14); background:#000; color:#fff; cursor:pointer; display:inline-flex; align-items:center; gap:6px; font-weight:600 }
.btn-applepay:hover{ filter:brightness(1.05) }
.apple-logo{ font-weight:700; font-size:16px; line-height:1 }

/* Onboarding card spacing/tone */
.onb-card{ display:flex; flex-direction:column; gap:12px; }
.onb-card .row{ padding:0; border:0; margin:0; }
.onb-card .row + .row{ margin-top:6px; }
.onb-card .muted{ line-height:1.45; }
.onb-card .onb-footer{ margin-top:auto; padding-top:10px; font-size:12px; }
/* Onboarding progress */
.onb-scale{ display:flex; align-items:center; justify-content:space-between; font-size:12px; color:var(--muted); margin-top:6px; }
.onb-bar{ display:flex; gap:6px; margin-top:8px; }
.onb-seg{ flex:1; height:10px; border-radius:999px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.05) }
.onb-seg.filled{ background: rgba(251,107,96,.36); border-color: rgba(251,107,96,.45) }

/* Status visuals (shared) */
.status-active{ color:#22c55e; font-weight:500; }
.status-line{ font-size:12px; }

/* Enhanced dropdown (nice-select) */
.nice-select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  border:1px solid #222;
  background:#000;
  color:#fff;
  border-radius:10px;
  padding:10px 36px 10px 12px;
  line-height:1.2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23aaaaaa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position: right 10px center;
  background-size:12px;
}
.nice-select:focus{ outline:none; border-color: rgba(251,107,96,.45); box-shadow: 0 0 0 2px rgba(251,107,96,.18); }
.nice-select:hover{ border-color:#2c2c2c; }
.nice-select:disabled{ opacity:.6; cursor:not-allowed }

/* Hide navigation when not authenticated */
.requires-auth.hidden{
  display: none !important;
}
