/* Copied from the design playground (branch claude/modest-shtern-f64ddd @ 887b161, assets/webui/css/shell.css) for the release backend's portal and admin panel (D-144). Do not edit here: changes go to the design branch and are copied again. */
/* The shell: rail navigation, top status bar, pages. */

.app { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 100vh; }

/* rail */
.rail { display: flex; flex-direction: column; gap: 2px; padding: var(--s-4) var(--s-3); background: var(--raised-1); border-right: 1px solid var(--edge); }
.brand { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 var(--s-2); margin-bottom: var(--s-4); }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(160deg, #2b2d34, #17181c); border: 1px solid var(--edge-strong); box-shadow: 0 1px 0 var(--edge-top) inset; }
.brand-mark svg { width: 15px; height: 15px; color: var(--gold); }
.brand-name { font-weight: 600; font-size: var(--t-14); letter-spacing: .01em; }
.nav-label { font-size: var(--t-11); font-weight: 500; color: var(--ink-3); padding: var(--s-3) var(--s-2) var(--s-1); }
.nav { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 var(--s-2); border-radius: 7px; color: var(--ink-2); font-size: var(--t-13); font-weight: 500;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.nav svg { width: 16px; height: 16px; color: var(--ink-3); transition: color var(--t-fast); }
.nav[aria-current="page"] { background: var(--raised-3); color: var(--ink); box-shadow: 0 1px 0 var(--edge-top) inset; }
.nav[aria-current="page"] svg { color: var(--accent-hover); }
.nav .badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-size: var(--t-11); font-weight: 600;
  display: grid; place-items: center; background: var(--warn-soft); color: var(--warn); }
.rail-foot { margin-top: auto; display: grid; gap: var(--s-2); }
.conn { display: grid; grid-template-columns: auto 1fr; gap: 2px var(--s-2); align-items: center; padding: var(--s-3); border-radius: 10px; background: var(--raised-2); border: 1px solid var(--edge); }
.conn b { font-size: var(--t-12); font-weight: 600; }
.conn span:last-child { grid-column: 2; font-size: var(--t-12); color: var(--ink-3); }
.version { font-size: var(--t-11); color: var(--ink-3); padding: 0 var(--s-2); }

/* main column */
.main { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; min-height: 0; }
.topbar { display: flex; align-items: center; gap: var(--s-3); height: 60px; padding: 0 var(--s-6); border-bottom: 1px solid var(--edge); background: rgba(8, 9, 11, .8); }
.topbar h1 { font-size: var(--t-20); margin-right: var(--s-2); }
.topbar .context { font-size: var(--t-13); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.topbar .spacer { flex: 1; }

.pages { position: relative; overflow: auto; }
.page { padding: var(--s-6); display: none; }
.page.on { display: block; animation: page-in var(--t-page) var(--ease); }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* the one band that says the bot needs you */
.needs { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); margin-bottom: var(--s-4); border-radius: var(--r-card);
  background: linear-gradient(90deg, var(--warn-soft), rgba(255, 154, 46, .05)); border: 1px solid rgba(255, 154, 46, .4); }
.needs-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--warn-soft); color: var(--warn); }
.needs-icon svg { width: 18px; height: 18px; }
.needs-text { flex: 1; min-width: 0; }
.needs-text b { display: block; font-size: var(--t-14); }
.needs-text span { font-size: var(--t-13); color: var(--ink-2); }
.needs.enter { animation: needs-in 420ms var(--ease); }
@keyframes needs-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1240px) { :root { --rail: 64px; } .brand-name, .nav span, .nav-label, .conn span:last-child, .version, .nav .badge { display: none; }
  .nav { justify-content: center; } .conn { grid-template-columns: auto; justify-items: center; } }
