/* ATLAS corporate workspace. Append after the existing panel stylesheet. */
body[data-theme="corporate"] {
  --bg:#f1f5fa; --panel:#fff; --panel-2:#fff; --field:#fff;
  --field-border:#c8d5e5; --line:#dce5ef; --soft-line:#e4ebf3;
  --text:#102440; --muted:#48607c; --dim:#546b84; --table-text:#263e59;
  --blue:#1454bd; --green:#087456; --red:#b9253f; --amber:#8d5109;
  --notice-bg:#edf5ff; --secondary-bg:#eef3f9; --secondary-text:#213c5c;
}
body[data-theme="corporate"] .panel-shell {
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  grid-template-columns:244px minmax(0,1fr);
}
body[data-theme="corporate"] .panel-shell .sidebar {
  background:#101f36; border-color:#263b56; box-shadow:none;
  color:#fff; color-scheme:dark;
}
body[data-theme="corporate"] .side-brand {
  height:76px; padding-inline:18px; border-color:#293b55;
}
body[data-theme="corporate"] .side-brand strong {font-size:17px; letter-spacing:.05em}
body[data-theme="corporate"] .side-brand small,
body[data-theme="corporate"] .server-status small {color:#a9bed6}
body[data-theme="corporate"] #nav {padding:14px 10px; min-height:0}
body[data-theme="corporate"] .nav-section {color:#9aafc9; margin:12px 8px 8px}
body[data-theme="corporate"] .nav-item {
  min-height:38px; padding:4px 8px; margin-bottom:2px; gap:9px;
  border-radius:7px; color:#dfebfc; font-size:13px;
}
body[data-theme="corporate"] .nav-item:hover {background:#1b304e}
body[data-theme="corporate"] .nav-item.active {
  color:#fff; background:#214474; border-color:#416ba2;
  box-shadow:inset 3px 0 #76adff;
}
body[data-theme="corporate"] .nav-icon {
  color:#b9d7ff; background:#1c304b; border-color:#304b70; box-shadow:none;
  width:25px; height:25px; flex-basis:25px; border-radius:6px;
}
body[data-theme="corporate"] .server-status {
  border-color:#293b55; min-height:0; padding:12px 15px; color:#b0e7d3;
}
body[data-theme="corporate"] .server-status small {margin-top:6px}
body[data-theme="corporate"] .server-status a {color:#9bc6ff}
body[data-theme="corporate"] .topbar {
  height:auto; min-height:76px; padding:14px 26px; background:#fff;
  border-color:#dce5ef; gap:12px; flex-wrap:wrap;
}
body[data-theme="corporate"] .topbar h2 {font-size:clamp(21px,2.1vw,30px);letter-spacing:-.025em}
body[data-theme="corporate"] .top-actions {gap:8px; flex-wrap:wrap}
body[data-theme="corporate"] .top-actions select {border-radius:8px; background:#f6f9fc}
body[data-theme="corporate"] .content {padding:24px 26px; gap:18px; min-width:0}
body[data-theme="corporate"] .content > * {min-width:0}
body[data-theme="corporate"] .content :is(.card,.stat) {
  border:1px solid #dce5ef; border-radius:12px; box-shadow:0 2px 5px #163b6810;
}
body[data-theme="corporate"] .content .card {overflow-x:auto}
body[data-theme="corporate"] .card-header h3 {letter-spacing:-.015em}
body[data-theme="corporate"] .content .stat {background:#fff}
body[data-theme="corporate"] .content th {background:#edf3fa; color:#3b5472; letter-spacing:.06em}
body[data-theme="corporate"] .content tbody tr:hover {background:#f6f9fd}
body[data-theme="corporate"] .content .notice {border-color:#cfdff5}
body[data-theme="corporate"] .panel-shell :is(.primary,.success,.danger,.secondary,.ghost) {
  border-radius:8px; font-weight:650; box-shadow:none;
}
body[data-theme="corporate"] .panel-shell .primary {background:#1454bd;color:white}
body[data-theme="corporate"] .panel-shell .success {background:#087456;color:white}
body[data-theme="corporate"] .panel-shell :is(button,input,select,textarea,a):focus-visible {
  outline:2px solid #3788ef; outline-offset:2px;
}
@media (max-width:900px) {
  body[data-theme="corporate"] .panel-shell {grid-template-columns:184px minmax(0,1fr)}
  body[data-theme="corporate"] .content,body[data-theme="corporate"] .topbar {padding-inline:16px}
  body[data-theme="corporate"] .side-brand {padding-inline:10px;gap:6px}
}
@media (max-width:600px) {
  body[data-theme="corporate"] .panel-shell {grid-template-columns:minmax(0,1fr)}
  body[data-theme="corporate"] .side-brand {height:52px}
  body[data-theme="corporate"] .nav-section {grid-column:1/-1}
  body[data-theme="corporate"] .server-status {display:none}
}

/* Expandable navigation and responsive panel layout. */
.panel-shell {grid-template-columns:244px minmax(0,1fr)}
.panel-shell.sidebar-closed,body[data-theme="corporate"] .panel-shell.sidebar-closed {grid-template-columns:minmax(0,1fr)}
.panel-shell .sidebar[hidden],.panel-shell .menu-backdrop[hidden] {display:none}
.panel-shell #nav {display:block;max-height:none;min-height:0;padding-block:12px}
.panel-shell .nav-group {margin:0 0 6px}
.panel-shell .nav-group summary {
  cursor:pointer;min-height:40px;display:flex;align-items:center;justify-content:space-between;
  gap:8px;padding:8px 10px;border-radius:7px;list-style:none;font-size:12px;font-weight:750;
  letter-spacing:.055em;color:var(--nav-text);overflow-wrap:anywhere;
}
.panel-shell .nav-group summary::-webkit-details-marker {display:none}
.panel-shell .nav-group summary::after {content:"";width:7px;height:7px;flex:0 0 7px;border-right:2px solid;border-bottom:2px solid;transform:rotate(-45deg);margin-right:3px}
.panel-shell .nav-group[open] summary::after {transform:rotate(45deg)}
body[data-theme="corporate"] .nav-group summary {color:#cbdcf1}
body[data-theme="corporate"] .nav-group summary:hover {background:#1b304e}
.panel-shell .nav-submenu {padding:4px 0 4px 10px}
.panel-shell .nav-item {justify-content:flex-start;padding-inline:10px}
.panel-shell .nav-item span.label,.panel-shell .side-brand div:not(.mini-logo) {display:block}
.panel-shell .sidebar-toggle {
  display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;
  background:var(--secondary-bg);color:var(--text);border:1px solid var(--field-border);
  border-radius:8px;font:inherit;font-weight:650;cursor:pointer;
}
.panel-shell .topbar {height:auto;min-height:64px;gap:10px;flex-wrap:wrap}
.panel-shell .topbar h2 {margin-right:auto;overflow-wrap:anywhere}
.panel-shell .top-actions {flex-wrap:wrap;min-width:0;max-width:100%}
.panel-shell .top-actions select {max-width:100%}
.panel-shell .content,.panel-shell .content > *,.panel-shell .card > *, .panel-shell .form-grid > * {min-width:0}
.panel-shell .card {overflow-x:auto}
.panel-shell :is(input,select,textarea,iframe,video,canvas) {max-width:100%}
.panel-shell :is(th,td,.notice,.ticket-message) {overflow-wrap:anywhere}
.panel-shell :is(button,summary,a):focus-visible {outline:2px solid #3788ef;outline-offset:2px}
@media (max-width:980px) {
  .panel-shell,body[data-theme="corporate"] .panel-shell {grid-template-columns:minmax(0,1fr)}
  .panel-shell .sidebar,body[data-theme="corporate"] .panel-shell .sidebar {
    position:fixed;inset:0 auto 0 0;z-index:101;width:min(300px,88vw);height:100dvh;
  }
  .panel-shell .menu-backdrop {position:fixed;inset:0;z-index:100;background:#07172d99;border:0}
  .panel-shell .topbar,.panel-shell .content {padding-inline:clamp(12px,3vw,22px)}
  .panel-shell :is(.grid-2,.grid-3,.form-grid,.support-layout,.ticket-layout) {grid-template-columns:minmax(0,1fr)}
  .panel-shell .stats {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:520px) {
  .panel-shell .top-actions {width:100%;gap:8px}
  .panel-shell .top-actions select {flex:1 1 115px;min-width:0}
  .panel-shell .top-actions #clock {display:none}
  .panel-shell :is(.stats,.remote-toolbar,.remote-keyboard,.resilience-grid,.support-capacity) {grid-template-columns:minmax(0,1fr)}
  .panel-shell :is(.card-header,.toolbar,.app-footer) {flex-wrap:wrap;gap:8px}
  .panel-shell :is(.primary,.secondary,.success,.danger,.ghost) {white-space:normal;max-width:100%;min-height:44px}
  .panel-shell .content {gap:12px}
  .landing-footer .footer-widget,.legal-shell .policy-meta {grid-template-columns:minmax(0,1fr)}
}

.dashboard-activity {display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
.dashboard-activity > .card {min-width:0}

/* Phone dashboard. Reflow the existing rows and keep their actions. */
@media (max-width:700px) {
  .panel-shell .dashboard-stats {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .panel-shell .dashboard-stats .stat {min-height:0;padding:10px;gap:8px}
  .panel-shell .dashboard-stats .stat-icon {width:28px;height:28px;min-width:28px;font-size:9px}
  .panel-shell .dashboard-stats strong {font-size:clamp(15px,4.5vw,22px);overflow-wrap:anywhere}
  .panel-shell .dashboard-stats span {font-size:12px;line-height:1.25}
  .dashboard-activity {gap:12px}
  .panel-shell .dashboard-activity > .card {padding:12px}
  .dashboard-activity table,.dashboard-activity tbody {display:block;min-width:0;width:100%}
  .dashboard-activity thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .dashboard-activity tr {
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;
    border:1px solid var(--line);border-radius:10px;padding:10px;margin-top:8px;
    background:var(--panel);
  }
  .dashboard-activity td {
    display:block;min-width:0;width:auto!important;border:0;padding:0;
    line-height:1.35;overflow-wrap:anywhere;white-space:normal;
  }
  .dashboard-devices td:first-child,.dashboard-devices td:last-child,.dashboard-events td:nth-child(4) {grid-column:1/-1}
  .dashboard-devices td:first-child strong {font-size:15px}
  .dashboard-devices td:nth-child(2)::before {content:"Owner"}
  .dashboard-devices td:nth-child(3)::before {content:"Status"}
  .dashboard-devices td:nth-child(4)::before {content:"Apps"}
  .dashboard-devices td:nth-child(5)::before {content:"Agent"}
  .dashboard-events td:nth-child(2)::before {content:"Actor"}
  .dashboard-events td:nth-child(3)::before {content:"Target"}
  .dashboard-activity td::before {display:block;color:var(--muted);font-size:11px;font-weight:700;margin-bottom:2px}
  .dashboard-devices .row-actions {display:flex;flex-wrap:wrap;gap:6px;border-top:1px solid var(--line);padding-top:8px}
  .dashboard-devices .icon-btn {min-width:44px;min-height:44px}
  .dashboard-events td:nth-child(1) {grid-row:1;grid-column:1;font-weight:700}
  .dashboard-events td:nth-child(5) {grid-row:1;grid-column:2;text-align:right;font-size:12px}
  .dashboard-events td:nth-child(4) {grid-row:2}
}

@media (max-width:980px) {
  .panel-shell .topbar {position:sticky;top:0;z-index:90;background:var(--panel)}
}


/* Mobile drawer: fixed shell with an independently scrolling menu. */
.panel-shell .sidebar-close {display:none}
@media (max-width:980px) {
  .panel-shell #panelSidebar {
    grid-template-rows:auto minmax(0,1fr) auto;
    height:100vh;height:100dvh;
    padding-top:env(safe-area-inset-top);
    padding-bottom:env(safe-area-inset-bottom);
    box-shadow:6px 0 28px #08182f33;
  }
  .panel-shell #panelSidebar #nav {overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
  .panel-shell #panelSidebar .side-brand {padding-right:58px}
  .panel-shell .sidebar-close {
    display:grid;place-items:center;position:absolute;top:calc(6px + env(safe-area-inset-top));right:8px;
    width:44px;height:44px;border-radius:8px;border:1px solid #607c9c;
    background:var(--panel);color:var(--text);font:26px/1 system-ui;
  }
  body[data-theme="corporate"] .panel-shell .sidebar-close {background:#203753;color:#fff}
  .panel-shell .topbar {display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center}
  .panel-shell .top-actions {grid-column:1/-1}
  body:has(.panel-shell:not(.sidebar-closed)) {overflow:hidden}
}

@media (max-width:700px) {
  .panel-shell #content {grid-template-columns:minmax(0,1fr)}
  .panel-shell #content :is(.grid-2,.grid-3,.form-grid,.support-layout,.ticket-workspace,.readiness-grid,.readiness-hero) {
    grid-template-columns:minmax(0,1fr);
  }
  .panel-shell #content .card {max-width:100%;min-width:0;padding:12px}
  .panel-shell #content .card-header {flex-wrap:wrap;gap:8px}
  .panel-shell #content :is(.row-actions,.toolbar) {flex-wrap:wrap;gap:6px}
  .panel-shell #content :is(.row-actions button,.icon-btn) {min-width:44px;min-height:44px}
  .mobile-card-table,.mobile-card-table tbody {display:block;width:100%;min-width:0}
  .mobile-card-table thead {
    position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;
  }
  .mobile-card-table tbody tr {
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;
    margin-block:8px;padding:10px;border:1px solid var(--line);border-radius:10px;
    background:var(--panel);
  }
  .mobile-card-table tbody td {
    display:block;width:auto!important;min-width:0;border:0;padding:0;
    white-space:normal;overflow-wrap:anywhere;
  }
  .mobile-card-table tbody td[data-mobile-label]:not([data-mobile-label=""])::before {
    content:attr(data-mobile-label);display:block;margin-bottom:3px;
    color:var(--muted);font-size:11px;font-weight:700;
  }
  .mobile-card-table tbody td:first-child,.mobile-card-table tbody .mobile-card-wide {grid-column:1/-1}
  .mobile-card-table tbody td:first-child {font-weight:650}
  .mobile-card-table tbody td .row-actions {display:flex}
}

/* Connected workspace theme. Existing page and action IDs are shared. */
body[data-theme="corporate"] {
  --bg:#eef3f9; --text:#102442; --muted:#49637d; --blue:#214dc5;
  --field-border:#c8d5e7; --line:#dbe5f0;
}
body[data-theme="corporate"] .panel-shell .sidebar {background:#101e35}
body[data-theme="corporate"] .panel-shell .nav-group summary {letter-spacing:.04em}
body[data-theme="corporate"] .panel-shell .nav-item.active {
  background:#283f78;border-color:#4563a0;box-shadow:inset 3px 0 #a9bbff
}
body[data-theme="corporate"] .panel-shell .topbar {background:#fff;border-bottom:1px solid #dbe5f0}
body[data-theme="corporate"] .panel-shell .content :is(.card,.stat) {
  border-radius:16px;box-shadow:0 5px 16px #122b520a
}
.workspace-welcome {
  isolation:isolate;position:relative;overflow:hidden;display:grid;grid-template-columns:1fr auto;
  align-items:center;gap:16px;padding:clamp(22px,4vw,44px);border-radius:20px;
  background:linear-gradient(115deg,#122453 8%,#254cb4 68%,#3463c4);color:#fff;
}
.welcome-copy {position:relative;z-index:1;max-width:540px}
.welcome-kicker {display:block;color:#d5e4ff;font-size:11px;font-weight:800;letter-spacing:.17em}
.workspace-welcome h2 {margin:.38em 0 .28em;font-size:clamp(25px,4vw,44px);line-height:1.08;letter-spacing:-.045em}
.workspace-welcome p {margin:0;color:#e5edff;line-height:1.5}
.welcome-orbit {position:relative;width:144px;height:100px;display:grid;place-items:center}
.welcome-orbit::before,.welcome-orbit::after {
  content:"";position:absolute;inset:-20px;border:1px solid #b9d6ff55;border-radius:50%;transform:rotate(-25deg)
}
.welcome-orbit::after {inset:-36px;transform:rotate(20deg)}
.welcome-orbit span {display:grid;place-items:center;position:absolute;border:1px solid #ffffff70;background:#c1d6ff25;border-radius:14px;color:#fff}
.welcome-orbit span:nth-child(1) {width:32px;height:32px;top:0;right:0}
.welcome-orbit span:nth-child(2) {width:60px;height:60px;font-size:34px}
.welcome-orbit span:nth-child(3) {width:24px;height:24px;bottom:3px;left:2px;font-size:10px}
.quick-paths {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.quick-paths button {
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;
  min-height:68px;padding:10px;border:1px solid var(--line);border-radius:14px;
  background:var(--panel);color:var(--text);text-align:left;font:inherit;
}
.quick-paths button:hover {border-color:var(--blue)}
.quick-paths strong,.quick-paths small {display:block;overflow-wrap:anywhere}
.quick-paths small {margin-top:3px;color:var(--muted);font-size:12px}
.quick-icon {
  display:grid;place-items:center;width:36px;height:36px;border-radius:10px;
  color:var(--blue);background:var(--notice-bg);font-size:20px
}
@media(max-width:700px){
  .workspace-welcome {grid-template-columns:minmax(0,1fr);padding:20px;border-radius:15px}
  .welcome-orbit {display:none}
  .quick-paths {grid-template-columns:minmax(0,1fr);gap:6px}
  .quick-paths button {min-height:56px;padding:7px 10px}
  .quick-paths strong {font-size:14px}
}

.panel-dialog {
  width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 24px);
  padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--panel);color:var(--text);
}
.panel-dialog::backdrop {background:#0b1739aa}
.panel-dialog h2 {margin:0;font-size:21px}
.panel-dialog li {padding:8px 0;overflow-wrap:anywhere}
.panel-dialog .dialog-actions {display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;margin-top:12px}

/* Main workflows read top to bottom. Keep related values inside each card. */
.panel-shell #content :is(.grid-2,.grid-3,.support-layout,.ticket-workspace):has(> .card) {
  grid-template-columns:minmax(0,1fr);
}
.panel-shell #content :is(.card,.panel-dialog,.form-grid,.ticket-workspace) {min-width:0}
.panel-shell #content :is(label,fieldset,.card-header,.toolbar,.row-actions) {min-width:0;max-width:100%}
.panel-shell #content :is(label,legend,.card-header h3,.ticket-list-item) {overflow-wrap:anywhere}
.panel-shell #content :is(.card-header,.toolbar,.row-actions) {flex-wrap:wrap}
.panel-shell #content :is(.form-grid,.ticket-workspace) > * {min-width:0}
@media (max-width:980px) {
  .panel-shell #content :is(.grid-2,.grid-3,.readiness-grid,.readiness-hero,.support-layout,.ticket-workspace,.quick-paths) {
    grid-template-columns:minmax(0,1fr);
  }
}
@media (max-width:700px) {
  .panel-shell #content :is(.stats,.dashboard-stats,.form-grid,.remote-toolbar,.remote-keyboard,.support-capacity,.resilience-grid) {
    grid-template-columns:minmax(0,1fr);
  }
  .panel-shell #content .dashboard-stats .stat {padding:12px}
  .panel-shell #content :is(.card,.stat,.notice) {min-width:0;max-width:100%}
  .panel-shell #content :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {min-width:0;max-width:100%}
  .panel-shell #content .ticket-list-item {width:100%;min-width:0}
}

/* Theme-specific surfaces and visual rhythm. */
body[data-theme="corporate"] {
  --theme-sidebar:#101e35;--theme-canvas:#eef3f9;--theme-card:#fff;
  --theme-hero-start:#18336f;--theme-hero-end:#3463c4;--theme-highlight:#7da5ff;
  --theme-radius:16px;--theme-texture:none;
}
body[data-theme="neon"] {
  --theme-sidebar:#100a23;--theme-canvas:#0e1024;--theme-card:#1a1733;
  --theme-hero-start:#201343;--theme-hero-end:#9b226c;--theme-highlight:#ff64d9;
  --theme-radius:18px;--theme-texture:radial-gradient(circle at 90% 3%,#61285488,transparent 38%);
}
body[data-theme="terminal"] {
  --theme-sidebar:#071b14;--theme-canvas:#06120c;--theme-card:#0b2117;
  --theme-hero-start:#092217;--theme-hero-end:#1a5b36;--theme-highlight:#83ff9f;
  --theme-radius:3px;--theme-texture:repeating-linear-gradient(0deg,transparent 0 5px,#8dffaa0b 5px 6px);
}
body[data-theme="aurora"] {
  --theme-sidebar:#172344;--theme-canvas:#131b38;--theme-card:#222d55;
  --theme-hero-start:#3d287b;--theme-hero-end:#147e80;--theme-highlight:#9de9e9;
  --theme-radius:24px;--theme-texture:radial-gradient(ellipse at 25% 0%,#7243a77a,transparent 55%),radial-gradient(ellipse at 90% 20%,#007f8377,transparent 50%);
}
body[data-theme="luxury"] {
  --theme-sidebar:#432d2b;--theme-canvas:#f5eee4;--theme-card:#fffbf4;
  --theme-hero-start:#3e2327;--theme-hero-end:#875543;--theme-highlight:#d4ad67;
  --theme-radius:5px;--theme-texture:radial-gradient(ellipse at 100% 0%,#deb88666,transparent 53%);
}
body[data-theme="minimal"] {
  --theme-sidebar:#eeeeee;--theme-canvas:#f7f6f2;--theme-card:#fff;
  --theme-hero-start:#171717;--theme-hero-end:#272727;--theme-highlight:#ffdd36;
  --theme-radius:0px;--theme-texture:none;
}
body[data-theme="midnight"] {
  --theme-sidebar:#111b2a;--theme-canvas:#111a29;--theme-card:#1b283c;
  --theme-hero-start:#182c46;--theme-hero-end:#375a81;--theme-highlight:#a9ccf5;
  --theme-radius:12px;--theme-texture:radial-gradient(circle at 75% 5%,#294d7c55,transparent 40%);
}
body[data-theme="light"] {
  --theme-sidebar:#12434b;--theme-canvas:#e9f3f1;--theme-card:#fff;
  --theme-hero-start:#07554e;--theme-hero-end:#087b69;--theme-highlight:#96e6d0;
  --theme-radius:12px;--theme-texture:linear-gradient(135deg,#def3ed,transparent 65%);
}
body[data-theme="blackout"] {
  --theme-sidebar:#000;--theme-canvas:#000;--theme-card:#000;
  --theme-hero-start:#000;--theme-hero-end:#000;--theme-highlight:#ffdf45;
  --theme-radius:4px;--theme-texture:none;
}
body[data-theme="transparent"] {
  --theme-sidebar:#17223a;--theme-canvas:#17213d;--theme-card:#273451;
  --theme-hero-start:#2c3575;--theme-hero-end:#715cb1;--theme-highlight:#c8baff;
  --theme-radius:20px;--theme-texture:radial-gradient(circle at 85% 0%,#7051a2bb,transparent 50%);
}
body[data-theme="forest"] {
  --theme-sidebar:#12372c;--theme-canvas:#10291f;--theme-card:#1b3d2f;
  --theme-hero-start:#134334;--theme-hero-end:#288063;--theme-highlight:#a7ebbd;
  --theme-radius:18px;--theme-texture:radial-gradient(circle at 80% 0%,#367f6077,transparent 50%);
}
body[data-theme="graphite"] {
  --theme-sidebar:#17232b;--theme-canvas:#1b2831;--theme-card:#263843;
  --theme-hero-start:#183549;--theme-hero-end:#2c697d;--theme-highlight:#a1def0;
  --theme-radius:9px;--theme-texture:repeating-linear-gradient(135deg,transparent 0 12px,#a5def005 12px 13px);
}

body[data-theme] .panel-shell .workspace {background:var(--theme-texture),var(--theme-canvas)}
body[data-theme] .panel-shell .sidebar {background:var(--theme-sidebar)}
body[data-theme] .panel-shell .content :is(.card,.stat,.quick-paths button) {
  background:var(--theme-card);border-radius:var(--theme-radius)
}
body[data-theme] .panel-shell .workspace-welcome {
  background:linear-gradient(118deg,var(--theme-hero-start),var(--theme-hero-end));
  border-radius:var(--theme-radius);border:1px solid color-mix(in srgb,var(--theme-highlight) 44%,transparent)
}
body[data-theme] .panel-shell .welcome-orbit span {border-color:var(--theme-highlight)}
body[data-theme] .panel-shell .topbar {border-top:3px solid var(--theme-highlight)}
body[data-theme] .panel-shell .quick-paths button {border-inline-start:3px solid var(--theme-highlight)}
body[data-theme="terminal"] .panel-shell {font-family:ui-monospace,Menlo,monospace}
body[data-theme="terminal"] .panel-shell .workspace-welcome h2 {letter-spacing:-.055em}
body[data-theme="neon"] .panel-shell .workspace-welcome {box-shadow:0 0 20px #ed52d83d}
body[data-theme="neon"] .panel-shell .nav-item.active {border-inline-start:3px solid #ff64d9}
body[data-theme="luxury"] .panel-shell :is(.workspace-welcome h2,.topbar h2,.card-header h3) {font-family:Georgia,serif;font-weight:600}
body[data-theme="luxury"] .panel-shell .content :is(.card,.stat) {border-top:2px solid #b48b55}
body[data-theme="minimal"] .panel-shell .workspace-welcome {border-left:8px solid #ffdd36}
body[data-theme="minimal"] .panel-shell .nav-item.active {background:#151515;color:white}
body[data-theme="light"] .panel-shell :is(.nav-item,.nav-group summary,.side-brand) {color:#ecfff8}
body[data-theme="light"] .panel-shell .nav-item.active {background:#23645e;color:white}
body[data-theme="light"] .panel-shell :is(.side-brand small,.server-status small) {color:#bfe0dc}
body[data-theme="blackout"] .panel-shell :is(.card,.stat,.quick-paths button,.topbar) {border-color:#ffdf45;color:white}
body[data-theme="blackout"] .panel-shell :is(.nav-group summary,.sidebar-toggle,.nav-item) {color:white}
body[data-theme="blackout"] .panel-shell .nav-item.active {color:#000;background:#ffdf45}
body[data-theme="blackout"] .panel-shell .workspace-welcome :is(p,.welcome-kicker) {color:white}
body[data-theme="blackout"] .panel-shell :is(button,summary,a,input,select,textarea):focus-visible {outline:3px solid #ffdf45}
body[data-theme="transparent"] .panel-shell .content :is(.card,.stat) {background:#273451d9;border-color:#7281ad88}
body[data-theme="forest"] .panel-shell .content :is(.card,.stat) {border-color:#386750}
body[data-theme="graphite"] .panel-shell .content :is(.card,.stat) {border-left:3px solid #5596ad}

.session-help,.session-control-caption p,.support-options p {color:var(--muted);line-height:1.45}
.session-actions {display:flex;flex-wrap:wrap;gap:8px;margin-block:10px}
.support-options summary {cursor:pointer;font-weight:750;padding:4px 0}
.support-options[open] summary {margin-bottom:12px}
.support-options .session-log {max-height:260px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}
.support-layout .support-screen {width:100%;min-height:220px}

.support-layout .support-icon-button {
  display:inline-grid;place-items:center;width:36px;height:36px;min-width:36px;min-height:36px;
  padding:0;flex:0 0 auto;font-size:19px;line-height:1;
}
.support-layout .support-input-row {display:flex;align-items:end;gap:8px;margin-block:8px}
.support-layout .support-input-row label {flex:1;min-width:0;margin:0}
.support-layout .support-input-row input {width:100%}
@media (pointer:coarse) {
  .support-layout .support-icon-button {width:44px;height:44px;min-width:44px;min-height:44px}
}

.support-layout .support-toolbar {flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding:3px 3px 7px;overscroll-behavior-inline:contain}
