/* Canonical source: platform/packages/ui/module-chrome.css. Sync with scripts/sync-module-chrome.mjs. */
body.odoom-module { --module-header-height:56px; padding-top:var(--module-header-height); }
.odoom-module-header { position:fixed; inset:0 0 auto; height:var(--module-header-height); display:flex; align-items:center; gap:18px; padding:0 24px; background:var(--panel,#11141b); color:var(--text,#fff); border-bottom:1px solid var(--hairline-strong,#ffffff17); z-index:10001; box-sizing:border-box; }
.odoom-module-logo { width:30px; height:30px; flex:none; background:currentColor; mask:url('./module-mark.svg') center/contain no-repeat; }
.odoom-module-name { margin:0; font:200 23px/1.2 var(--sans,-apple-system,BlinkMacSystemFont,'Segoe UI Variable Display','Segoe UI',sans-serif); letter-spacing:.25em; text-transform:uppercase; white-space:nowrap; }
.odoom-platform-return { display:flex; align-items:center; justify-content:center; gap:8px; color:var(--text,#fff); text-decoration:none; border:1px solid var(--hairline-strong,#ffffff25); background:var(--panel,#11141b); padding:10px 12px; font:500 11px/1.3 var(--sans,'Segoe UI',sans-serif); letter-spacing:.04em; }
.odoom-platform-return:focus-visible { outline:2px solid var(--accent,#7cafff); outline-offset:3px; }
.odoom-module-header .odoom-platform-return { margin-left:auto; }
.odoom-module[data-module-layout=sidebar] > .odoom-module-header .odoom-platform-return { position:fixed; bottom:12px; left:12px; width:calc(var(--nav-w,240px) - 24px); }
.odoom-module :is(.nav,.rail,.house-nav,.groups) { padding-bottom:64px; }
.odoom-module :is(.nav>.brand,.rail-brand,.house-brand) { display:none; }
.odoom-module :is(.nav-jump .jump:not(.alt),.rail-jump,.house-nav-footer a:last-child) { display:none; }
.odoom-module :is(.shell,.agent-shell,.house-shell) { height:calc(100dvh - var(--module-header-height)); min-height:0; }
.odoom-module .kora-shell { top:var(--module-header-height); }
.odoom-module[data-module-name=Kora] :is(.kora-wordmark,.kora-top>#back) { display:none; }
.odoom-module[data-module-name=Agents] .top>.link:first-child { display:none; }
.odoom-module[data-module-name=Neuronet] { padding-left:24px; padding-right:24px; }
.odoom-module[data-module-name=Neuronet] .top { height:44px; }
.odoom-module[data-module-name=Neuronet] .top>.brand { display:none; }
.odoom-module[data-module-name=Neuronet] kora-neuronet { height:calc(100dvh - 280px); }
.odoom-module[data-module-name='Media Hub'] { --nav-w:216px; }
.odoom-module[data-module-name='Media Hub'] #app { min-height:calc(100dvh - var(--module-header-height)); }
.odoom-module[data-module-name='Media Hub'] .rail { top:var(--module-header-height); height:calc(100dvh - var(--module-header-height)); }
.odoom-module[data-module-name='Home Control'] { --nav-w:224px; }
.odoom-module[data-module-name='Home Control'] .house-nav { overflow:hidden; }
.odoom-module[data-module-name='Home Control'] .home-sections { min-height:0; overflow:auto; }
.odoom-module[data-module-name=Notes] { --nav-w:230px; }
.odoom-module[data-module-name=Notes] .bar>.brand { display:none; }
.odoom-module[data-module-name=Notes] .app { height:calc(100dvh - 112px); }
.odoom-module[data-module-name=Remote] .top>.brand { display:none; }
.odoom-module[data-module-name=Remote] .top { top:var(--module-header-height); }
.odoom-module[data-module-name=Remote] .shell { margin-left:200px; min-height:calc(100dvh - var(--module-header-height)); height:auto; }
.odoom-module[data-module-name=Remote] { --nav-w:200px; }
.odoom-module-rail { position:fixed; top:var(--module-header-height); bottom:0; left:0; width:200px; border-right:1px solid var(--hairline-strong,#ffffff17); background:var(--panel,#11141b); padding:24px 18px 70px; font:13px var(--sans,'Segoe UI',sans-serif); }
.odoom-module-rail a { display:block; color:var(--text-2,#bbc1cd); padding:12px 0; text-decoration:none; }
@media(max-width:1200px) { .odoom-module[data-module-name='Home Control'] { --nav-w:184px; } }
@media(max-width:1100px) {
 .odoom-module[data-module-layout=sidebar] > .odoom-module-header .odoom-platform-return { position:static; width:auto; }
 .odoom-module :is(.nav,.rail,.house-nav,.groups) { padding-bottom:12px; }
}
@media(max-width:800px) { .odoom-module[data-module-name='Home Control'] { --nav-w:96px; } .odoom-module[data-module-name=Remote] .shell { margin-left:0; } .odoom-module-rail { display:none; } }
@media(max-width:600px) {
 .odoom-module-header { padding:0 12px; gap:10px; }
 .odoom-module-logo { width:24px; height:26px; }
 .odoom-module-name { font-size:16px; letter-spacing:.12em; white-space:normal; }
 .odoom-module-header .odoom-platform-return { font-size:10px; padding:9px 8px; flex:none; }
 .odoom-module[data-module-name='Home Control'] .house-shell { height:auto; }
 .odoom-module[data-module-name='Home Control'] .house-nav { top:var(--module-header-height); }
 .odoom-module[data-module-name='Home Control'] .house-main { min-height:calc(100dvh - 146px); }
}

.odoom-module .kora-panel { max-height:calc(100dvh - var(--top-h) - 140px - var(--module-header-height)); }
.odoom-module .kora-shell .kora-menu-popover { top:calc(var(--module-header-height) + var(--top-h) + 8px); max-height:calc(100dvh - 206px); }
@media(max-width:650px) { .odoom-module .kora-room-nav { top:calc(var(--module-header-height) + var(--top-h) + 16px); } }

/* The theme switch sits in the shared header, because every console has that header and none should need its own control. */
.odoom-theme-switch { margin-left:auto; flex:none; min-height:34px; padding:0 12px; color:var(--text,#fff); background:var(--panel,#11141b); border:1px solid var(--hairline-strong,#ffffff25); font:500 11px/1.3 var(--sans,'Segoe UI',sans-serif); letter-spacing:.04em; cursor:pointer; }
.odoom-theme-switch:hover { background:var(--raised,#171c26); }
.odoom-theme-switch:focus-visible { outline:2px solid var(--accent,#7cafff); outline-offset:3px; }
.odoom-module-header .odoom-theme-switch + .odoom-platform-return { margin-left:0; }
@media(max-width:600px) { .odoom-theme-switch { font-size:10px; padding:0 8px; } }

/* THE PLATFORM'S LIGHT THEME. Colours only, because layout, type and components must stay identical to dark. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg:        #F6F4EF;
  --panel:     #FCFBF7;
  --raised:    #FFFFFF;
  --hairline:  rgba(10, 10, 10, 0.09);
  --hairline-strong: rgba(10, 10, 10, 0.18);

  --text:      #0A0A0A;
  --text-2:    #3D3B37;
  --text-3:    #66635D;
  --text-4:    #77736C;

  --online:    #2F7D4F;
  --warning:   #A65F00;
  --error:     #B93A2B;
  --sync:      #2F62C9;
  --locked:    #6D3FE0;
  --offline:   #6F6C66;

  --accent:    #0A0A0A;
  --accent-dim: rgba(10, 10, 10, 0.06);

  --glass:        rgba(255, 255, 255, 0.78);
  --glass-hi:     rgba(255, 255, 255, 0.94);
  --glass-lo:     rgba(252, 251, 247, 0.55);
  --glass-edge:   rgba(10, 10, 10, 0.14);
  --glass-edge-2: rgba(10, 10, 10, 0.06);
  --glass-inner:  rgba(255, 255, 255, 0.88);
  --glass-under:  rgba(10, 10, 10, 0.03);
  --shadow-cast:  rgba(10, 10, 10, 0.08);
  --shadow-soft:  rgba(10, 10, 10, 0.04);
  --scrim:        rgba(246, 244, 239, 0.82);
  --scrim-thin:   rgba(246, 244, 239, 0.38);
  --tint-1:       rgba(10, 10, 10, 0.022);
  --tint-2:       rgba(10, 10, 10, 0.05);
  /* Solid because a signed-out page must show none of the console behind the sign-in box. */
  --signin-page:  #F6F4EF;

  /* Named separately because Agents and Media Hub each keep their own colour names for the same roles. */
  --hair:         rgba(10, 10, 10, 0.09);
  --hair2:        rgba(10, 10, 10, 0.18);
  --glass-border: rgba(10, 10, 10, 0.12);
  --need:         #A65F00;
  --blocked:      #B93A2B;
  --card:         #FFFFFF;
  --card-2:       #EFEDE6;
  --line:         rgba(10, 10, 10, 0.09);
  --line-2:       rgba(10, 10, 10, 0.18);
  --muted:        #66635D;
  --faint:        #77736C;
  --accent-text:  #FCFBF7;
  --green:        #2F7D4F;
  --amber:        #A65F00;
  --red:          #B93A2B;
  --blue:         #2F62C9;
}

/* Set on each console's own root because Money and Growth define their colours there, and a value on :root would lose to them. */
:root[data-theme="light"] .money {
  --m-bg: #F6F4EF; --m-panel: #FFFFFF; --m-panel-2: #EFEDE6;
  --m-hair: rgba(10, 10, 10, 0.09); --m-hair-strong: rgba(10, 10, 10, 0.18);
  --m-t1: #0A0A0A; --m-t2: #3D3B37; --m-t3: #66635D; --m-t4: #77736C;
  --m-accent: #8A5A00; --m-accent-line: rgba(138, 90, 0, 0.32);
  --m-bad: #B93A2B; --m-bad-line: rgba(185, 58, 43, 0.32);
  --m-good: #2F7D4F; --m-good-line: rgba(47, 125, 79, 0.32);
}
:root[data-theme="light"] .growth,
:root[data-theme="light"] body {
  --g-bg: #F6F4EF; --g-panel: #FFFFFF; --g-panel-2: #EFEDE6;
  --g-hair: rgba(10, 10, 10, 0.09); --g-hair-strong: rgba(10, 10, 10, 0.18);
  --g-t1: #0A0A0A; --g-t2: #3D3B37; --g-t3: #66635D; --g-t4: #77736C;
  --g-accent: #2F7D4F; --g-accent-dim: rgba(47, 125, 79, 0.10); --g-accent-line: rgba(47, 125, 79, 0.32);
  --g-warn: #A65F00; --g-warn-line: rgba(166, 95, 0, 0.35); --g-error: #B93A2B;
}

/* Listed one by one because these surfaces were written with fixed dark colours rather than theme colours. */
:root[data-theme="light"] header.top { background: var(--panel); }
:root[data-theme="light"] .filters,
:root[data-theme="light"] .panel-tabs,
:root[data-theme="light"] .team-composer,
:root[data-theme="light"] .room-tools input,
:root[data-theme="light"] .routine-form input,
:root[data-theme="light"] .routine-form textarea,
:root[data-theme="light"] .report,
:root[data-theme="light"] .collaboration-controls select,
:root[data-theme="light"] .collaboration-controls button { background: #FFFFFF; border-color: var(--hair2); }
:root[data-theme="light"] .bot-chip { background: rgba(255, 255, 255, 0.94); box-shadow: 0 4px 12px rgba(10, 10, 10, 0.10); }
:root[data-theme="light"] .no-room .list-drawer,
:root[data-theme="light"] .team-mentions { background: #FCFBF7; }
:root[data-theme="light"] .filters button[aria-pressed=true] { background: rgba(10, 10, 10, 0.07); box-shadow: none; }
:root[data-theme="light"] .db-card .db-name,
:root[data-theme="light"] .db-disclose:hover,
:root[data-theme="light"] .db-back:hover,
:root[data-theme="light"] .db-new-conversation:hover:not(:disabled) { color: var(--text); }
:root[data-theme="light"] .g-menu-pop { background: #FFFFFF; }
:root[data-theme="light"] .growth input,
:root[data-theme="light"] .g-menu-pop input { background: #FFFFFF; color: var(--text); }

/* Darkened because these pale tints were chosen for a black page and vanish on paper. */
:root[data-theme="light"] .jump .glyph,
:root[data-theme="light"] .jump .label,
:root[data-theme="light"] .banner,
:root[data-theme="light"] .banner p { color: var(--text); }
:root[data-theme="light"] .g-navitem .lbl-long { color: var(--text); }
:root[data-theme="light"] .room-head { background: linear-gradient(#f6f4eff2, #f6f4efb0 55%, transparent); }
:root[data-theme="light"] .zone-label { color: #66635D; }
:root[data-theme="light"] .zone-label small { color: #77736C; }
:root[data-theme="light"] .bot-label b { color: #0A0A0A; }
/* A white halo because the dark room's black one turns these names into a smudge on a white floor. */
:root[data-theme="light"] :is(.bot-label, .bot-label b, .bot-label span, .zone-label, .zone-label span, .zone-label small) { text-shadow: 0 0 3px rgba(255, 255, 255, 0.95), 0 1px 1px rgba(255, 255, 255, 0.9); }
:root[data-theme="light"] .bot-label.on b { color: hsl(var(--hue) var(--sat, 70%) 32%); }
:root[data-theme="light"] .btn:hover,
:root[data-theme="light"] .room-foot button:hover { background: rgba(10, 10, 10, 0.08); }
:root[data-theme="light"] .room-foot button[aria-expanded=true] { background: rgba(10, 10, 10, 0.10); }
:root[data-theme="light"] #foundryEntry { background: rgba(255, 255, 255, 0.92); border-color: var(--hairline-strong); color: var(--text); }
