/* Console workspace: the same paper and botanical palette, built for daily use. */
#app { min-height: 100%; display: flow-root; }
.shell { width: 100%; background: var(--c-bg-base); }
.shell .icon { flex-shrink: 0; }
.shell a { text-underline-offset: 3px; }
.shell .t-caption { font-size: 12px; line-height: 1.6; }
.shell .t-h1 { font-size: 28px; font-weight: 650; letter-spacing: -.8px; }
.shell .t-h2 { font-size: 19px; letter-spacing: -.35px; }
.shell .t-h3 { font-size: 15px; }
.shell .t-label { font-size: 13px; font-weight: 600; }
.shell .main-col { width: 100%; min-width: 0; }
.shell #main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.shell .page { width: 100%; max-width: none; padding: 24px 32px 36px; min-height: 0; }
.shell .topbar { padding: 25px 32px 23px; gap: 24px; flex-wrap: nowrap; background: var(--c-bg-base); border-bottom-color: var(--c-border); backdrop-filter: none; }
.workspace-eyebrow { display: block; margin-bottom: 8px; font-size: 10px; font-weight: 650; letter-spacing: 1.8px; color: var(--c-text-faint); }
.shell .page-lead { margin-top: 8px; font-size: 13px; color: var(--c-text-faint); }
.topbar-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.shell .quick-nav-button { width: 38px; height: 38px; padding: 0; border-radius: 50%; }
.shell .sidebar { background: var(--c-bg-surface); padding: 0 16px; overflow-y: auto; }
.shell .brand { padding: 30px 14px 28px; gap: 12px; }
.shell .brand-mark { gap: 10px; }
.shell .brand-word { font-size: 28px; letter-spacing: -1px; }
.shell .brand-symbol { width: 29px; height: 33px; font-size: 33px; }
.shell .brand p { font-size: 11px; color: var(--c-text-faint); letter-spacing: 1px; }
.workspace-search { display: flex; gap: 9px; align-items: center; border: 1px solid var(--c-border); border-radius: 8px; background: var(--c-bg-base); color: var(--c-text-faint); padding: 10px 11px; margin: 0 0 17px; width: 100%; font-size: 12px; text-align: left; }
.workspace-search kbd { margin-left: auto; font: 10px var(--font-sans); white-space: nowrap; }
.workspace-search:hover { border-color: var(--c-border-strong); background: var(--c-bg-raised); }
.shell .nav { padding: 0; gap: 5px; }
.nav-group-label { padding: 20px 14px 9px; font-size: 10px; letter-spacing: 1.3px; color: var(--c-text-faint); }
.nav-group-label:first-child { padding-top: 8px; }
.shell .nav a { min-height: 46px; padding: 0 13px; gap: 12px; border-radius: 9px; font-size: 13px; font-weight: 500; transition: background var(--dur-fast), color var(--dur-fast); }
.shell .nav a .icon { width: 19px; height: 19px; }
.shell .nav a[aria-current='page'] { background: var(--c-bg-selected); color: var(--c-workspace-green); font-weight: 650; }
.shell .nav a[aria-current='page']::before { content: ''; position: absolute; left: -16px; width: 3px; height: 20px; border-radius: 0 3px 3px 0; background: var(--c-primary); }
.shell .badge { min-width: 20px; height: 20px; font-size: 10px; background: var(--c-primary-soft); color: var(--c-primary); }
.shell .badge.warn { color: var(--c-warning); background: var(--c-warning-soft); }
.shell .badge.bad { color: var(--c-danger); background: var(--c-danger-soft); }
.shell .sidebar-foot { padding: 24px 0 16px; gap: 22px; }
.sidebar-note { position: relative; overflow: hidden; border: 1px solid var(--c-border); border-radius: 12px; padding: 22px 16px 18px; background: var(--c-bg-raised); }
.sidebar-note p { margin: 24px 0 8px; font-size: 14px; font-weight: 600; letter-spacing: -.4px; }
.sidebar-flower { position: absolute; top: 9px; right: 17px; color: var(--c-workspace-green); font: 39px/1 var(--font-serif); transform: rotate(-15deg); }
.sidebar-note a { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; text-decoration: none; color: var(--c-text-faint); }
.sidebar-note a:hover { color: var(--c-primary); }
.sidebar-note a .icon { width: 14px; height: 14px; }
.sidebar-account { display: flex; align-items: center; gap: 4px; border-top: 1px solid var(--c-border); padding-top: 17px; }
.account-button { display: flex; align-items: center; gap: 10px; background: transparent; border: 0; padding: 2px; min-width: 0; flex: 1; text-align: left; border-radius: 8px; }
.account-button:hover { background: var(--c-bg-hover); }
.account-avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; background: var(--c-bg-selected); color: var(--c-workspace-green); border: 1px solid var(--c-border); border-radius: 50%; font-size: 14px; font-weight: 600; }
.account-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.account-copy strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 600; }
.account-copy #plan-pill { font-size: 10px; color: var(--c-text-faint); letter-spacing: .4px; }
.shell .icon-button { width: 30px; padding: 0; flex: none; color: var(--c-text-faint); }
.connection-menu { position: relative; }
.connection-summary { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--c-border); border-radius: 100px; list-style: none; cursor: pointer; background: var(--c-bg-surface); font-size: 12px; color: var(--c-text-muted); user-select: none; }
.connection-summary::-webkit-details-marker { display: none; }
.connection-summary .icon { width: 13px; height: 13px; margin-left: 3px; }
.connection-summary .dot { width: 6px; height: 6px; flex: none; border-radius: 50%; }
.connection-menu[data-tone='ok'] .connection-summary { color: var(--c-success); }
.connection-menu[open] .connection-summary { box-shadow: var(--shadow-sm); border-color: var(--c-border-strong); }
.connection-popover { position: absolute; top: calc(100% + 10px); right: 0; width: 288px; padding: 20px; border: 1px solid var(--c-border); background: var(--c-bg-surface); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: var(--z-dropdown); }
.connection-popover .indicators { display: flex; flex-direction: column; gap: 0; margin: 13px 0; width: 100%; }
.connection-popover .indicator { display: flex; width: 100%; height: 40px; gap: 8px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.connection-popover .indicator .label { display: inline; }
.connection-popover .indicator:hover { color: var(--c-primary); }
.indicator-name { margin-right: auto; font-size: 12px; }
.indicator .dot.tone-ok { background: var(--c-success); }
.indicator .dot.tone-warn { background: var(--c-warning); }
.indicator .dot.tone-bad { background: var(--c-danger); }
.connection-manage { padding-top: 12px; border-top: 1px solid var(--c-border); display: flex; align-items: center; justify-content: space-between; color: var(--c-text); text-decoration: none; font-size: 12px; }
.shell .banner-slot { padding: 0; }
.shell .banner-slot:not(:empty) { padding: 16px 32px 0; }
.shell .banner { padding: 13px 16px; border-radius: 10px; gap: 14px; box-shadow: none; }
.shell .banner .t-body { font-size: 13px; }
.shell .panel, .shell .lease { padding: 24px; border-radius: 14px; border-color: var(--c-border); }
.shell .stack { gap: 20px; }
.shell .panel.stack { gap: 18px; }
.shell .input { min-height: 42px; border-color: var(--c-border-strong); border-radius: 8px; background: var(--c-bg-surface); font-size: 13px; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.shell .input:hover { border-color: var(--c-border-control); }
.shell .textarea { min-height: 104px; line-height: 1.8; resize: vertical; }
.shell .field { gap: 7px; margin-bottom: 16px; }
.shell .field-hint { font-size: 11px; line-height: 1.7; }
.shell .btn { height: 40px; padding-inline: 16px; border-radius: 8px; font-size: 13px; gap: 8px; transition: background var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-fast); }
.shell .btn::before { display: none; }
.shell .btn-sm { height: 32px; padding-inline: 11px; font-size: 12px; }
.shell .btn-secondary { border-color: var(--c-border-strong); background: var(--c-bg-surface); }
.shell .btn-secondary:hover { background: var(--c-bg-raised); border-color: var(--c-border-control); }
.shell .btn-primary { box-shadow: 0 2px 3px var(--c-primary-soft); }
.shell .tabs { gap: 4px; padding: 4px; border: 1px solid var(--c-border); background: var(--c-bg-raised); border-radius: 10px; width: fit-content; max-width: 100%; }
.shell .tabs button { padding: 8px 15px; border: 0; border-radius: 7px; min-height: 34px; font-size: 12px; white-space: nowrap; background: transparent; color: var(--c-text-faint); }
.shell .tabs button[aria-selected='true'] { color: var(--c-text); background: var(--c-bg-surface); box-shadow: var(--shadow-sm); }
.shell .empty { padding: 56px 24px; border: 1px dashed var(--c-border-strong); border-radius: 14px; background: var(--c-bg-surface); }
.shell .empty .t-display { font-size: 21px; letter-spacing: -.5px; }
.shell .empty-body { max-width: 40ch; margin: 12px auto 20px; color: var(--c-text-faint); font-size: 13px; line-height: 1.8; }
.quick-nav { display: flex; flex-direction: column; gap: 16px; }
.quick-nav-input { min-height: 44px; }
.quick-nav-list { display: flex; flex-direction: column; gap: 4px; }
.quick-nav-item { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 10px 12px; border-radius: 8px; color: var(--c-text); text-decoration: none; font-size: 13px; }
.quick-nav-item .icon:last-child { margin-left: auto; width: 15px; height: 15px; color: var(--c-text-faint); }
.quick-nav-item:hover, .quick-nav-item:focus { background: var(--c-bg-selected); }
.quick-nav-empty { color: var(--c-text-faint); padding: 12px; }
.modal { border-radius: 18px; box-shadow: var(--shadow-lg); }
.modal-head { padding: 24px 24px 0; }
.modal-body { padding: 20px 24px; }
.modal-foot { padding: 16px 24px; background: var(--c-bg-base); border-top: 1px solid var(--c-border); border-radius: 0 0 18px 18px; }

@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); height: 100dvh; min-height: 0; overflow: hidden; }
  .shell .sidebar { display: flex; width: auto; min-height: 0; height: 100%; position: static; }
  .shell .main-col { min-height: 0; height: 100%; overflow: hidden; }
  .shell .topbar { position: relative; flex: none; }
  .shell #main { overflow: hidden; }
  .shell .page { flex: 1; overflow: auto; }
  .shell .tabbar { display: none; }
  .shell[data-page='chat'] .page { display: flex; flex-direction: column; padding: 22px 28px 28px; overflow: hidden; }
}
@media (min-width: 1600px) {
  body:has(.shell) { background: var(--c-bg-sunken); }
  .shell { width: min(1840px, calc(100% - 48px)); height: calc(100dvh - 48px); margin: 24px auto; border: 1px solid var(--c-border-strong); border-radius: 18px; box-shadow: var(--shadow-md); }
}
@media (min-width: 900px) and (max-width: 1100px) {
  .shell { grid-template-columns: 78px minmax(0, 1fr); }
  .shell .sidebar { padding-inline: 12px; }
  .shell .brand { padding: 28px 10px; }
  .shell .brand-word, .shell .brand p, .shell .nav-text, .nav-group-label, .workspace-search span, .workspace-search kbd, .sidebar-note, .account-copy, .sidebar-account > .icon-button { display: none; }
  .shell .nav a { justify-content: center; padding: 0; margin-bottom: 3px; }
  .shell .nav .badge { position: absolute; top: 2px; right: -2px; min-width: 15px; height: 15px; font-size: 9px; padding: 0 3px; }
  .shell .nav a[aria-current='page']::before { left: -12px; }
  .workspace-search { justify-content: center; padding: 10px; margin-bottom: 16px; }
  .account-button { justify-content: center; }
  .shell .topbar { padding-inline: 24px; }
  .shell .page { padding-inline: 24px; }
}
@media (max-width: 899px) {
  .shell .sidebar { display: none; }
  .shell .main-col { min-height: 100dvh; }
  .shell .topbar { padding: 22px 22px 18px; gap: 10px; position: sticky; }
  .shell .page { padding: 20px 22px calc(84px + env(safe-area-inset-bottom)); overflow: visible; }
  .shell .tabbar { display: flex; height: calc(64px + env(safe-area-inset-bottom)); padding: 5px 8px env(safe-area-inset-bottom); background: var(--c-bg-surface); box-shadow: var(--shadow-sm); gap: 4px; }
  .shell .tabbar a, .shell .tabbar > button { min-height: 52px; height: 52px; border-radius: 10px; font-size: 10px; gap: 4px; flex: 1; padding: 4px; }
  .shell .tabbar > button { display: flex; flex-direction: column; }
  .shell .tabbar a[aria-current='page'] { color: var(--c-workspace-green); background: var(--c-bg-selected); }
  .shell .tabbar .badge { position: absolute; top: 2px; left: calc(50% + 7px); margin: 0; min-width: 15px; height: 15px; font-size: 9px; padding: 0 3px; }
  .shell .banner-slot:not(:empty) { padding: 12px 22px 0; }
  .shell[data-page='chat'] .main-col { height: 100dvh; min-height: 0; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .shell[data-page='chat'] .page { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; padding: 14px; }
  .shell[data-page='chat'] #main { overflow: hidden; }
}
@media (max-width: 599px) {
  .shell .topbar { padding: 18px 18px 16px; }
  .workspace-eyebrow { font-size: 8px; margin-bottom: 6px; letter-spacing: 1.4px; }
  .shell .t-h1 { font-size: 23px; }
  .shell .page-lead { display: none; }
  .topbar-actions { gap: 7px; }
  .connection-summary { font-size: 10px; gap: 5px; padding: 7px 9px; }
  .connection-summary .icon { display: none; }
  .shell .quick-nav-button { width: 32px; height: 32px; padding: 0; }
  .connection-popover { right: -38px; width: min(288px, calc(100vw - 36px)); }
  .shell .page { padding: 18px 16px calc(84px + env(safe-area-inset-bottom)); }
  .shell .panel, .shell .lease { padding: 19px; }
  .shell .tabs button { padding-inline: 12px; }
  .shell .input { font-size: 16px; }
  .shell .banner-slot:not(:empty) { padding: 12px 16px 0; }
  .shell .banner { align-items: flex-start; }
}
