/* The /company app. Palette: the site's navy, cyan, green, red and blue; slate-blue
   neutrals; no purple, orange, amber, yellow or plain gray. Numbers before words. */
:root {
  --bg: #0a0e17; --deep: #06090f; --navy: #0d1520; --navy2: #111a28; --line: #16233a; --line2: #1a2a44; --line3: #1e3050;
  --text: #e6edf7; --dim: #a9b8cc; --dim2: #7f93ad; --cyan: #00cfff; --green: #00ff88; --red: #ff4444; --blue: #3b82f6;
  --cyan-a: rgba(0, 207, 255, .1); --green-a: rgba(0, 255, 136, .1); --red-a: rgba(255, 68, 68, .1); --blue-a: rgba(59, 130, 246, .12);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; }
body { display: flex; flex-direction: column; height: 100vh; overflow: hidden;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(0, 207, 255, .06), transparent 70%), var(--bg); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: var(--cyan); text-decoration: none; cursor: pointer; }
.red { color: var(--red); } .cy { color: var(--cyan); } .gr { color: var(--green); }
[hidden] { display: none !important; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: var(--line3); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- site header ---------- */
.site { height: 48px; flex: none; display: flex; align-items: center; gap: 24px; padding: 0 20px; border-bottom: 1px solid var(--line);
  background: rgba(6, 9, 15, .6); backdrop-filter: blur(6px); }
.site .logo { font-family: 'Archivo Black', sans-serif; font-size: 16px; color: var(--text); }
.site .logo i { color: var(--green); font-style: normal; }
.site nav { display: flex; gap: 20px; font-size: 12px; }
.site nav a { color: var(--dim2); } .site nav a:hover { color: var(--text); }
.site nav a.on { color: var(--text); font-weight: 700; position: relative; }
.site nav a.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -16px; height: 2px; background: var(--green); box-shadow: 0 0 8px var(--green); }
.site .sp { flex: 1; }
.acct { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 12px; padding: 6px 12px; border: 1px solid var(--line3); border-radius: 8px; background: var(--navy2); }
.acct i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

/* ---------- company bar ---------- */
.cobar { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 10px 20px;
  border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(13, 21, 32, .9), rgba(10, 14, 23, .9)); }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
/* the logo is the station's line icon, a department icon's tile at the bar's size */
.mark:has(.logo) { background: none; border: 0; box-shadow: none; }
.mark .dic.logo { width: 100%; height: 100%; border-radius: inherit; } .mark .dic.logo svg { width: 26px; height: 26px; }
.mark { width: 42px; height: 42px; border-radius: 10px; flex: none; display: grid; place-items: center; font-family: 'Archivo Black'; color: var(--cyan); font-size: 15px;
  background: linear-gradient(135deg, var(--line3), var(--navy)); border: 1px solid var(--cyan); box-shadow: 0 0 18px rgba(0, 207, 255, .25), inset 0 0 12px rgba(0, 207, 255, .12); }
.who-t { min-width: 0; }
.who-1 { display: flex; align-items: center; gap: 10px; }
.who h1 { font-family: 'Archivo Black'; font-size: 21px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heart { font-size: 10.5px; color: var(--dim2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heart b { color: var(--dim); font-weight: 600; } .heart .hot { color: var(--cyan); } .heart .stop { color: var(--red); }
.pill { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; padding: 3px 9px; border-radius: 99px; border: 1px solid; white-space: nowrap; }
.pill.on { color: var(--green); border-color: var(--green); background: var(--green-a); box-shadow: 0 0 10px rgba(0, 255, 136, .15); }
.pill.off { color: var(--dim2); border-color: var(--dim2); background: rgba(127, 147, 173, .08); }
.btn { font: 600 12px 'JetBrains Mono'; padding: 7px 12px; border-radius: 7px; border: 1px solid var(--line3); background: var(--navy2); color: var(--text); white-space: nowrap;
  transition: border-color .15s, background .15s, box-shadow .15s, transform .1s; }
.btn:hover { border-color: var(--dim2); } .btn:active { transform: translateY(1px); }
.btn.cy { border-color: var(--cyan); color: var(--cyan); } .btn.cy:hover { background: var(--cyan-a); box-shadow: 0 0 12px rgba(0, 207, 255, .25); }
.btn.gr { background: var(--green); border-color: var(--green); color: var(--bg); } .btn.gr:hover { box-shadow: 0 0 14px rgba(0, 255, 136, .45); }
.btn.rd { border-color: var(--red); color: var(--red); } .btn.rd:hover { background: var(--red-a); }
.btn.xs { padding: 3px 8px; font-size: 10.5px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.fuel { display: flex; align-items: center; gap: 16px; padding: 8px 16px; border: 1px solid var(--line3); border-radius: 12px;
  background: linear-gradient(180deg, rgba(6, 9, 15, .9), rgba(10, 14, 23, .9)); box-shadow: inset 0 1px 0 rgba(0, 207, 255, .06), 0 6px 24px rgba(0, 0, 0, .3); }
.fuel .k { font-size: 10px; letter-spacing: .12em; color: var(--dim2); line-height: 1.35; cursor: help; }
.fuel .k b { display: block; color: var(--text); font-size: 11px; }
.fuel .n { display: flex; flex-direction: column; align-items: center; min-width: 56px; }
.fuel .n b { font-family: 'Archivo Black'; font-size: 30px; line-height: 1; font-weight: 400; transition: color .3s; color: var(--green); text-shadow: 0 0 16px rgba(0, 255, 136, .25); }
.fuel .n span { font-size: 10px; color: var(--dim2); margin-top: 3px; white-space: nowrap; }
.fuel .n.wk b { color: var(--cyan); text-shadow: 0 0 16px rgba(0, 207, 255, .25); }
.fuel .n.ex b { color: var(--blue); text-shadow: 0 0 16px rgba(59, 130, 246, .3); }
.fuel .n.low b { color: var(--red); text-shadow: 0 0 16px rgba(255, 68, 68, .45); }
.fuel .n.off b { color: var(--dim2); text-shadow: none; font-size: 22px; }
.fuel .n.bump b { animation: bump .5s ease; }
@keyframes bump { 30% { transform: scale(1.22); } }
.fuel .vs { width: 1px; height: 38px; background: var(--line3); }
.bars { display: grid; gap: 6px; min-width: 190px; }
.bars em { font-size: 10.5px; color: var(--dim); font-style: normal; white-space: nowrap; }
.fuel .n { min-width: 0; flex-direction: row; align-items: baseline; gap: 10px; }
.fuel .n b { font-size: 34px; } .fuel .n span { font-size: 11px; margin: 0; }
.fuel .n.ex b { color: var(--blue); }
/* usage, the way Claude shows it: one row per limit, % used, a bar, when it resets */
.use { width: 210px; flex: none; display: grid; gap: 4px; cursor: help; }
.use .u1 { display: flex; justify-content: space-between; align-items: baseline; font-size: 11.5px; }
.use .u1 b { color: var(--text); } .use .u1 > * { white-space: nowrap; } .use .u1 span { color: var(--dim2); font-size: 11px; }
.use .u1 span.hot { color: var(--red); }
.use .track { height: 6px; } .use .track i { background-color: var(--blue); }
.use .track i.hot { background-color: var(--red); }
.use em { font-style: normal; font-size: 10.5px; color: var(--dim2); white-space: nowrap; }
.use em.ex { color: var(--cyan); }
.use.wide { flex: 1; width: auto; min-width: 0; }
.use.wide .u1 { gap: 10px; } .use.wide .u1 .sp { flex: 1; }
.use.sm { width: 150px; } .use.sm .track i { background-color: var(--dim2); }
.use .legend { font-size: 10px; gap: 8px; }
.segs { position: relative; display: flex; height: 14px; border-radius: 4px; background: var(--line); overflow: hidden; gap: 1px; }
.segs i { display: block; height: 100%; flex: none; transition: width .6s; }
.segs i.done { background: var(--green); } .segs i.failed { background: var(--red); }
.segs i.running { background: var(--cyan); animation: cellp 1s ease-in-out infinite; box-shadow: 0 0 8px var(--cyan); }
.segs i.before { background: var(--line3); }
.segs i.plan { background: rgba(59, 130, 246, .3); box-shadow: inset 0 0 0 1px rgba(59, 130, 246, .7); }
.segs i.extra { background: repeating-linear-gradient(135deg, rgba(0, 207, 255, .5) 0 4px, rgba(0, 207, 255, .2) 4px 8px); }
.strip .vs { width: 1px; height: 40px; background: var(--line3); flex: none; }
.bar { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 8px; font-size: 10.5px; color: var(--dim); }
.bar label { color: var(--dim2); letter-spacing: .08em; }
.track { height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; }
.track i { display: block; height: 100%; border-radius: 4px; background: var(--cyan); transition: width .8s cubic-bezier(.2, .8, .2, 1), background .3s;
  background-image: linear-gradient(90deg, transparent, rgba(230, 237, 247, .25), transparent); background-size: 60px 100%; background-repeat: no-repeat; animation: sheen 2.6s linear infinite; }
.track i.hot { background-color: var(--red); } .track i.wk { background-color: var(--blue); }
@keyframes sheen { from { background-position: -60px 0; } to { background-position: 300px 0; } }
.bar em { font-style: normal; white-space: nowrap; } .bar em b { color: var(--text); }
.then { font-size: 10px; color: var(--dim2); } .then b { color: var(--blue); } .then b.stop { color: var(--red); }
.right { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.appr { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--red); color: var(--red); font-weight: 700; font-size: 12px; background: var(--red-a);
  box-shadow: 0 0 14px rgba(255, 68, 68, .18); animation: breathe 2.4s ease-in-out infinite; }
.appr b { background: var(--red); color: var(--bg); border-radius: 99px; padding: 0 7px; font-family: 'Archivo Black'; font-weight: 400; }
.appr[hidden] { display: none; }
.appr.none { border-color: var(--line3); color: var(--dim2); background: none; box-shadow: none; animation: none; }
@keyframes breathe { 50% { box-shadow: 0 0 22px rgba(255, 68, 68, .35); } }

/* ---------- tabs ---------- */
.tabs { flex: none; display: flex; gap: 2px; padding: 0 20px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { padding: 10px 14px; color: var(--dim2); font-size: 12px; font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; transition: color .15s; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); border-color: var(--cyan); text-shadow: 0 0 12px rgba(0, 207, 255, .35); }
.tabs sup { color: var(--cyan); font-size: 10px; margin-left: 3px; } .tabs sup.r { color: var(--red); }
.tabs .sp { flex: 1; }

/* ---------- the office tab ---------- */
.main { display: grid; grid-template-columns: 320px minmax(0, 1fr) 370px; gap: 14px; padding: 14px 20px; flex: 1; min-height: 0; }
.panel { background: linear-gradient(180deg, rgba(17, 26, 40, .78), rgba(13, 21, 32, .92)); border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-height: 0;
  box-shadow: inset 0 1px 0 rgba(169, 184, 204, .04); }
.h { display: flex; align-items: center; gap: 8px; font-size: 10.5px; letter-spacing: .12em; color: var(--dim2); font-weight: 700; margin-bottom: 10px; }
.h b { color: var(--text); margin-right: auto; } .h b.red { color: var(--red); } .h b.cy { color: var(--cyan); }
.left { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.rail { display: flex; flex-direction: column; min-height: 0; }
.depts { display: flex; flex-direction: column; gap: 8px; overflow: auto; min-height: 0; padding-right: 2px; }
.dept { text-align: left; position: relative; border: 1px solid var(--line); border-left: 3px solid var(--dim2); border-radius: 9px; padding: 8px 10px; background: var(--navy2);
  transition: border-color .2s, background .2s, transform .15s; overflow: hidden; }
.dept:hover { background: #13203a; transform: translateX(2px); }
.dept.working { border-left-color: var(--cyan); } .dept.queued { border-left-color: var(--blue); } .dept.waiting { border-left-color: var(--red); }
.dept.on { border-color: var(--cyan); background: rgba(0, 207, 255, .08); box-shadow: 0 0 16px rgba(0, 207, 255, .12); }
.dept.born { animation: born 1.2s ease; }
@keyframes born { 0% { opacity: 0; transform: translateX(-12px); } 100% { opacity: 1; } }
.d1 { display: flex; align-items: center; gap: 8px; } .d1 b { font-size: 13px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim2); flex: none; }
.working .dot, .dot.working { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: dotp 1.4s ease-in-out infinite; }
.queued .dot, .dot.queued { background: var(--blue); } .waiting .dot, .dot.waiting { background: var(--red); }
@keyframes dotp { 50% { box-shadow: 0 0 2px var(--cyan); opacity: .7; } }
.u { font-weight: 700; color: var(--text); } .u small, .d2 small { color: var(--dim2); font-weight: 500; margin-left: 3px; font-size: 10px; }
.d2 { display: flex; gap: 12px; margin-top: 5px; font-weight: 700; font-size: 13px; }
.d2 .c { color: var(--cyan); } .d2 .g { color: var(--green); } .d2 .r { color: var(--red); } .d2 .z { color: var(--dim2); } .d2 .m { color: var(--dim); }
.d3 { font-size: 10.5px; color: var(--dim2); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dwait { font-size: 10.5px; color: var(--blue); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dept .run { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; overflow: hidden; }
.dept .run i { position: absolute; top: 0; bottom: 0; width: 30%; background: linear-gradient(90deg, transparent, var(--cyan), transparent); animation: runbar 1.6s linear infinite; }
@keyframes runbar { from { left: -30%; } to { left: 100%; } }
.dept .et { font-size: 11px; font-weight: 700; color: var(--green); white-space: nowrap; }
.dept .et.lit { text-shadow: 0 0 8px rgba(0, 255, 136, .7); padding: 1px 7px; border: 1px solid rgba(0, 255, 136, .5); border-radius: 9px; box-shadow: 0 0 10px rgba(0, 255, 136, .25); }
.dept .et.zero { color: var(--dim2); border: 1px solid var(--line2); border-radius: 9px; padding: 1px 7px; }
/* a department card's one line: what it does now (coloured by what it means), and what it spent today */
.dept { padding: 10px 12px; }
.d1 b { font-size: 14px; }
.dl { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; font-size: 12px; }
.dl .tx { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.dl .tx.cyan { color: var(--cyan); } .dl .tx.red { color: var(--red); font-weight: 700; } .dl .tx.blue { color: #7fb0ff; } .dl .tx.dim { color: var(--dim2); }
.dl .sp { flex: none; font-weight: 700; color: var(--text); font-size: 12px; } .dl .sp small { color: var(--dim2); font-weight: 500; margin-left: 3px; font-size: 10px; }
.dl .sp.hot { color: var(--red); }
.ubar.capb { display: block; margin-top: 6px; height: 3px; }
.dept.needs { border-left-color: var(--red); box-shadow: inset 0 0 0 1px rgba(255, 68, 68, .25); }
/* the department's icon, drawn to its room (app.js DEPT_ICON): a glowing tile at the card's left, its status dot on
   the tile's corner */
.dept { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 11px; align-items: center; }
.dept > :not(.dic):not(.run) { grid-column: 2; }
.dic { grid-column: 1; grid-row: 1 / span 3; position: relative; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--ic);
  background: radial-gradient(circle at 32% 26%, color-mix(in srgb, var(--ic) 24%, transparent), rgba(7, 12, 20, .92) 72%);
  border: 1px solid color-mix(in srgb, var(--ic) 40%, transparent); box-shadow: 0 0 14px color-mix(in srgb, var(--ic) 16%, transparent), inset 0 1px 0 rgba(255, 255, 255, .06); }
.dic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px color-mix(in srgb, var(--ic) 65%, transparent)); }
.dic .dot { position: absolute; right: -3px; top: -3px; width: 9px; height: 9px; border: 2px solid var(--navy2); }
.dept:hover .dic { border-color: color-mix(in srgb, var(--ic) 65%, transparent); }
.dept.needs .dot { background: var(--red); box-shadow: 0 0 8px var(--red); }
.dus { display: flex; align-items: center; gap: 10px; margin-top: 5px; font-size: 12px; font-weight: 700; color: var(--text); }
.dus small { color: var(--dim2); font-weight: 500; margin-left: 3px; font-size: 10px; }
.ubar { flex: 1; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.ubar i { display: block; height: 100%; background: var(--blue); border-radius: 2px; transition: width .6s; }
.ubar i.hot { background: var(--red); } .dus span.hot { color: var(--red); }
/* a department's tokens and its brakes */
.tok { border: 1px solid var(--line3); border-radius: 10px; padding: 10px; background: var(--navy2); display: flex; flex-direction: column; gap: 9px; flex: none; }
.tk3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tk3 div { background: var(--deep); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; }
.tk3 b { display: block; font-family: 'Archivo Black'; font-weight: 400; font-size: 20px; } .tk3 span { font-size: 10.5px; color: var(--dim2); }
.tk3 b.cy { color: var(--cyan); } .tk3 b.red { color: var(--red); }
.tkbar { height: 8px; } .tkbar i { background-color: var(--cyan); }
.tkbar.nocap { background: repeating-linear-gradient(135deg, var(--line) 0 6px, var(--navy2) 6px 12px); }
.tkcap { font-size: 11px; color: var(--dim); margin-top: -4px; } .tkcap.hot { color: var(--red); font-weight: 700; }
.capr { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.capr .l, .rpd .l { width: 82px; flex: none; font-size: 11px; color: var(--dim2); letter-spacing: .04em; }
.capr input { flex: 1; accent-color: var(--cyan); cursor: pointer; }
.capr b { width: 150px; flex: none; text-align: right; color: var(--text); font-size: 12px; }
.rpd { display: flex; align-items: center; gap: 6px; }
.rpd button { font-size: 11.5px; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line3); color: var(--dim); }
.rpd button:hover { color: var(--text); } .rpd button.on { color: var(--bg); background: var(--cyan); border-color: var(--cyan); font-weight: 700; }
.track.sess { height: 10px; }
.dsch { font-size: 10.5px; color: var(--cyan); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.runs { border: 1px solid var(--line3); border-radius: 10px; padding: 9px 10px; background: var(--navy2); display: flex; flex-direction: column; gap: 8px; }
.rk { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.rk div { background: var(--deep); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.rk b { display: block; font-family: 'Archivo Black'; font-weight: 400; font-size: 16px; } .rk span { font-size: 10px; color: var(--dim2); }
.prods { display: flex; flex-wrap: wrap; gap: 6px; }
.runs .cb { display: flex; gap: 6px; } .runs .cb input { flex: 1; min-width: 0; background: var(--deep); border: 1px solid var(--line3); border-radius: 7px; padding: 5px 8px; font-size: 11.5px; outline: none; }
.runs .cb .btn { padding: 4px 10px; font-size: 11px; }
/* the ET10 breakdown: one row per earning department, its share as a bar */
.earn { display: flex; flex-direction: column; gap: 8px; }
.elist { display: flex; flex-direction: column; gap: 7px; }
.er { display: block; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; background: var(--navy2); cursor: pointer; transition: border-color .15s, background .15s; }
.er:hover { border-color: rgba(0, 255, 136, .5); } .er.on { border-color: var(--green); background: rgba(0, 255, 136, .06); }
.er .e1 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; } .er .e1 b { font-size: 13px; }
.er .e1 .v { color: var(--green); font-weight: 800; font-size: 14px; text-shadow: 0 0 8px rgba(0, 255, 136, .45); white-space: nowrap; }
.er .e2 { display: flex; justify-content: space-between; margin-top: 3px; font-size: 11px; color: var(--dim2); }
.er .ebar { display: block; height: 4px; border-radius: 2px; background: var(--line); margin-top: 7px; overflow: hidden; }
.er .ebar i { display: block; height: 100%; background: var(--green); border-radius: 2px; box-shadow: 0 0 8px rgba(0, 255, 136, .6); transition: width .6s; }
.er.zero .e1 .v { color: var(--dim2); text-shadow: none; }
.er .e1 .v em { font-style: normal; color: #8fbaff; text-shadow: none; font-size: 12px; margin-left: 4px; }
/* the vault: its two totals, big; ET10 green, USDC blue */
.vtot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; padding: 12px; border-radius: 10px; border: 1px solid rgba(0, 255, 136, .35);
  background: radial-gradient(ellipse at 30% 0%, rgba(0, 255, 136, .1), transparent 70%), var(--navy2); cursor: pointer; text-align: left; }
.vtot:hover { border-color: var(--green); }
.vtot b, .vbig b { display: block; font: 400 24px 'Archivo Black', sans-serif; letter-spacing: .01em; }
.vtot span, .vbig span { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; color: var(--dim2); }
b.g, span.g { color: var(--green); text-shadow: 0 0 10px rgba(0, 255, 136, .45); } b.u, span.u { color: #8fbaff; text-shadow: 0 0 10px rgba(59, 130, 246, .45); }
.vnote { font-size: 10px; margin: 2px 2px 0; }
.vbig { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0 14px; padding: 16px 18px; border-radius: 12px; border: 1px solid rgba(0, 255, 136, .3);
  background: radial-gradient(ellipse at 20% 0%, rgba(0, 255, 136, .12), transparent 70%), radial-gradient(ellipse at 90% 100%, rgba(59, 130, 246, .12), transparent 70%), var(--deep); }
.vbig b { font-size: 34px; }
.vrow { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) 120px 110px; gap: 10px; align-items: baseline; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 12px; }
.vrow b { font-size: 13px; } .vrow .w { color: var(--dim2); font-size: 11px; } .vrow .g, .vrow .u { text-align: right; font-weight: 800; white-space: nowrap; }

/* Portfolio: build, bring in, earn -- the flow as numbers, then one card per app */
.pkpis { display: flex; align-items: stretch; gap: 10px; margin: 6px 0 16px; flex-wrap: wrap; }
.pk { flex: 1; min-width: 150px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line2); background: var(--navy2); }
.pk b { display: block; font: 400 28px 'Archivo Black', sans-serif; color: var(--text); }
.pk span { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: var(--dim2); text-transform: uppercase; }
.pk span em { font-style: normal; color: var(--green); letter-spacing: 0; margin-left: 4px; }
.pk.g { border-color: rgba(0, 255, 136, .4); background: radial-gradient(ellipse at 20% 0%, rgba(0, 255, 136, .12), transparent 70%), var(--navy2); } .pk.g b { color: var(--green); text-shadow: 0 0 12px rgba(0, 255, 136, .45); }
.pk.u { border-color: rgba(59, 130, 246, .45); background: radial-gradient(ellipse at 20% 0%, rgba(59, 130, 246, .14), transparent 70%), var(--navy2); } .pk.u b { color: #8fbaff; }
.pkpis .arr { align-self: center; font-style: normal; color: var(--dim2); font-size: 18px; }
.pfgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.pf { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line2); background: var(--navy2); }
.pf:hover { border-color: rgba(0, 207, 255, .45); }
.pf1 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pf1 b { font: 400 15px 'Archivo Black', sans-serif; } .pf1 a { font-size: 11px; color: var(--cyan); }
.pfn { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 12px 0 8px; }
.pfb { font-size: 11px; color: var(--dim2); white-space: nowrap; }
.pfn b { display: block; font-size: 20px; font-weight: 800; } .pfn span { font-size: 10px; color: var(--dim2); letter-spacing: .08em; text-transform: uppercase; }
.pfbar { display: block; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.pfbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--green)); box-shadow: 0 0 8px rgba(0, 255, 136, .5); }
.pfe { display: flex; align-items: baseline; gap: 12px; margin-top: 10px; font-size: 13px; font-weight: 800; }
.pfe em { font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .1em; color: var(--dim2); border: 1px solid var(--line3); border-radius: 9px; padding: 1px 7px; text-transform: uppercase; }
.pfe i { font-style: normal; font-size: 11px; color: var(--green); margin-left: auto; }
.pfsrc { margin-top: 14px; font-size: 10.5px; color: var(--dim2); }
.pfempty { padding: 40px; text-align: center; border: 1px dashed var(--line3); border-radius: 12px; }
.pfempty b { display: block; font: 400 18px 'Archivo Black', sans-serif; margin-bottom: 6px; } .pfempty span { color: var(--dim2); font-size: 12px; }
.panel.flash { animation: eflash 1.4s ease; } @keyframes eflash { 0%, 40% { box-shadow: 0 0 0 2px var(--green), 0 0 26px rgba(0, 255, 136, .45); } }
.mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: none; }
.mini div { background: var(--navy2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; }
.mini b { display: block; font-family: 'Archivo Black'; font-size: 18px; font-weight: 400; } .mini b small { font-size: 11px; color: var(--dim2); font-family: 'JetBrains Mono'; }
.mini span { font-size: 10px; color: var(--dim2); }

/* the office floats in the dark the Universe is made of: a few faint stars, no blue */
.stage { position: relative; padding: 0; overflow: hidden;
  background: radial-gradient(1px 1px at 8% 14%, rgba(230, 237, 247, .55), transparent), radial-gradient(1px 1px at 23% 71%, rgba(230, 237, 247, .4), transparent),
    radial-gradient(1.5px 1.5px at 37% 9%, rgba(0, 207, 255, .5), transparent), radial-gradient(1px 1px at 52% 88%, rgba(230, 237, 247, .45), transparent),
    radial-gradient(1px 1px at 66% 21%, rgba(230, 237, 247, .5), transparent), radial-gradient(1.5px 1.5px at 79% 63%, rgba(0, 255, 136, .45), transparent),
    radial-gradient(1px 1px at 91% 12%, rgba(230, 237, 247, .4), transparent), radial-gradient(1px 1px at 95% 82%, rgba(230, 237, 247, .45), transparent),
    radial-gradient(1px 1px at 14% 92%, rgba(0, 207, 255, .4), transparent), radial-gradient(1px 1px at 45% 40%, rgba(230, 237, 247, .25), transparent),
    radial-gradient(ellipse 42% 38% at 16% 20%, rgba(0, 150, 160, .14), transparent 70%), radial-gradient(ellipse 26% 22% at 30% 10%, rgba(0, 120, 140, .1), transparent 70%),
    radial-gradient(ellipse at 50% 45%, #0b1017, #05070a 74%); }
.stage .top { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; z-index: 4; pointer-events: none; }
.stage .top > * { pointer-events: auto; }
.live { font-size: 11px; font-weight: 700; color: var(--green); display: flex; align-items: center; gap: 6px; letter-spacing: .1em; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: dotp 1.6s infinite; }
.live.paused { color: var(--dim2); } .live.paused i { background: var(--dim2); box-shadow: none; animation: none; }
.live.stop { color: var(--red); } .live.stop i { background: var(--red); box-shadow: 0 0 8px var(--red); }
.seg { display: flex; border: 1px solid var(--line3); border-radius: 8px; overflow: hidden; background: var(--deep); }
.seg button { padding: 5px 11px; font-size: 11px; font-weight: 700; color: var(--dim2); }
.seg button.on { background: var(--line3); color: var(--cyan); }
.zoom { display: flex; gap: 6px; }
.zoom button { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line3); border-radius: 7px; background: var(--deep); color: var(--dim); }
.zoom button:hover { color: var(--cyan); border-color: var(--cyan); }
.office, .net { position: absolute; left: 0; top: 0; right: 0; bottom: 72px; width: 100%; height: calc(100% - 72px); display: block; cursor: grab; user-select: none; touch-action: none; }
.office.grabbing { cursor: grabbing; }
.strip { position: absolute; left: 0; right: 0; bottom: 0; height: 72px; display: flex; align-items: center; gap: 14px; padding: 0 12px; border-top: 1px solid var(--line); background: rgba(6, 9, 15, .75); z-index: 3; }
.strip .lab { font-size: 10.5px; letter-spacing: .1em; color: var(--dim2); font-weight: 700; white-space: nowrap; cursor: help; } .strip .lab b { color: var(--text); font-size: 13px; }
.cells { display: grid; grid-template-columns: repeat(40, 1fr); gap: 2px; flex: 1; }
.cells i { height: 12px; border-radius: 2px; background: var(--line); transition: background .4s; }
.cells i.done { background: var(--green); } .cells i.failed { background: var(--red); }
.cells i.running { background: var(--cyan); animation: cellp 1s ease-in-out infinite; box-shadow: 0 0 8px var(--cyan); }
.cells i.plan { background: rgba(59, 130, 246, .35); box-shadow: inset 0 0 0 1px rgba(59, 130, 246, .6); }
@keyframes cellp { 50% { opacity: .45; } }
.legend { display: flex; gap: 10px; font-size: 10.5px; color: var(--dim2); white-space: nowrap; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
.legend i.c { background: var(--cyan); } .legend i.g { background: var(--green); } .legend i.r { background: var(--red); } .legend i.b { background: var(--blue); }
.tip { position: absolute; z-index: 6; pointer-events: none; max-width: 300px; font-size: 11.5px; line-height: 1.45; padding: 8px 10px; border-radius: 8px;
  background: rgba(6, 9, 15, .95); border: 1px solid var(--line3); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); color: var(--dim); }
.tip b { color: var(--text); } .tip .c { color: var(--cyan); } .tip .g { color: var(--green); } .tip .r { color: var(--red); } .tip .bl { color: var(--blue); }

/* The flat office: the 3D office (u3d.js) drawn flat, in its colours -- the navy sky with its teal haze and stars,
   a slate deck on a plated hull, slate-blue tiled floors in pale frosted glass, one mint neon line round every room,
   orange in the trading desk and while a room waits on you; dim white lanes that light cyan while work runs. */
#office { background: var(--stars, none) 0 0 / 620px 620px repeat,
    radial-gradient(ellipse 80% 75% at 50% 50%, transparent 62%, rgba(3, 7, 12, .55) 100%),
    radial-gradient(ellipse 14% 9% at 15% 13%, rgba(40, 150, 160, .22), transparent 70%),
    radial-gradient(ellipse 10% 16% at 9% 38%, rgba(34, 140, 150, .18), transparent 70%),
    radial-gradient(ellipse 30% 26% at 17% 20%, rgba(24, 110, 122, .3), transparent 72%),
    radial-gradient(ellipse 22% 30% at 7% 48%, rgba(18, 92, 106, .24), transparent 70%),
    radial-gradient(ellipse 24% 14% at 33% 9%, rgba(28, 120, 132, .2), transparent 70%),
    radial-gradient(ellipse 18% 16% at 12% 78%, rgba(16, 80, 96, .18), transparent 70%),
    radial-gradient(ellipse 20% 18% at 88% 14%, rgba(16, 70, 90, .1), transparent 70%), #06111c; }
.office .flow { stroke: #cfdde6; stroke-width: 1.7; stroke-dasharray: 8.8 6.6; opacity: .3; transition: stroke .4s, opacity .4s; }
.office .flow.hot { stroke: #46d8f0; opacity: .95; animation: flow .9s linear infinite; filter: drop-shadow(0 0 2.5px rgba(70, 216, 240, .9)); }
.office.paused .flow.hot { animation-play-state: paused; opacity: .5; }
@keyframes flow { to { stroke-dashoffset: -15.4; } }
.office .lamp { mix-blend-mode: screen; pointer-events: none; }
.office .fglow { fill: url(#g-fglow); opacity: 0; transition: opacity .8s; mix-blend-mode: screen; pointer-events: none; }
.office .st-working .fglow { opacity: 1; animation: glowp 2.6s ease-in-out infinite; }
.office .st-waiting .fglow, .office .orange .fglow { fill: url(#g-fglow-o); opacity: 1; animation: none; }
.office .room[data-key="vault"] .fglow { opacity: .75; } .office .room.closed .fglow { opacity: .25; }
@keyframes glowp { 50% { opacity: .55; } }
.office .fping { opacity: 0; pointer-events: none; }
.office .ping .fping { animation: ping .9s ease-out; }
.office .ping-g .fping { fill: url(#g-halo-g); } .office .ping-r .fping { fill: url(#g-halo-r); }
@keyframes ping { 0% { opacity: .9; } 100% { opacity: 0; } }
/* the neon: one soft line with its glow; brighter while the room works */
.office .neon, .office .neonG { stroke: #7cf2c4; stroke-linejoin: round; stroke-linecap: round; pointer-events: none; transition: stroke .4s, opacity .4s; }
.office .neon { stroke-width: 1.5; opacity: .88; }
.office .neonG { stroke-width: 5; opacity: .26; filter: url(#glow2); }
.office .st-working .neon { opacity: 1; } .office .st-working .neonG { opacity: .5; animation: glowp 2.6s ease-in-out infinite; }
/* a room at work in the rail's Working cyan, as the 3D office; Command (its core always running) keeps its mint */
.office .st-working:not(.core) .neon, .office .st-working:not(.core) .neonG { stroke: #00cfff; }
.office .orange .neon, .office .st-waiting .neon, .office .orange .neonG, .office .st-waiting .neonG { stroke: #ff8a3a; }
.office .orange .neonG, .office .st-waiting .neonG { opacity: .5; }
/* the glass: pale panes and a thin pale line along their edges; nothing in them takes the mouse */
.office .pane, .office .gedge, .office .hl { pointer-events: none; }
.office .orange .pane { fill: url(#g-paneO); }
.office .gedge { fill: none; stroke: #b4cbd4; stroke-width: .7; opacity: .36; }
.office .room { transition: opacity .3s; }
.office .room .hl { opacity: 0; transition: opacity .2s; }
.office .room.hover .hl { opacity: 1; }
.office .room.hover .neon { opacity: 1; } .office .room.hover .neonG { opacity: .6; }
.office .room.hover .hit, .office .plate, .office .room, .office .sign { cursor: pointer; }
/* the free lot: its square of lane dashes, and the pad's wall of light breathing */
.office .lotf { stroke: #dfeaf0; stroke-width: 2; stroke-dasharray: 9.2 6.6; opacity: .55; transition: opacity .2s; }
.office .room.lot.hover .lotf { opacity: .95; }
.office .padw { animation: lotp 2.8s ease-in-out infinite; }
.office .room.lot.hover .padw { animation: none; }
@keyframes lotp { 50% { opacity: .7; } }
.office .room.born { animation: rise 1.4s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes rise { 0% { opacity: 0; transform: translateY(-40px); } 60% { opacity: 1; } 100% { transform: none; } }
/* a desk's screens: dark glass, mint while its expert works, orange in the trading desk */
.office .mon { transition: fill .4s; }
.office .mon.on { fill: #7cf2c4; }
.office .orange .mon { fill: #ffae52; }
/* the department's computer: opens its page on cymetica.com */
.office .pc { cursor: pointer; }
.office .pc .pcarrow { pointer-events: none; }
.office .pc .pcscr { animation: pcs 2.6s ease-in-out infinite; }
@keyframes pcs { 50% { fill: #0a3a2c; } }
.office .pc .pcglow { opacity: .55; transition: opacity .2s; }
.office .pc:hover .pcglow { opacity: 1; }
.office .pc:hover .pcscr { fill: #0d4d38; animation: none; }
/* Cymetica QA's earned ET10, lit */
.office .earned { pointer-events: none; }
.office .earned.lit { animation: etg 2.4s ease-in-out infinite; }
@keyframes etg { 50% { opacity: .78; } }
.office .earned.pop { animation: etpop 1.2s ease-out; }
@keyframes etpop { 0% { opacity: 0; } 40% { opacity: 1; } }
.office .code { opacity: 0; transition: opacity .4s; }
.office .mon.on + .code, .office .orange .code { opacity: 1; }
.office .ln { transform-box: fill-box; transform-origin: left center; animation: type 2.8s steps(7) infinite; }
@keyframes type { 0% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }
.office .spill { opacity: 0; transition: opacity .5s; } .office .spill.on { opacity: 1; }
/* the astronauts: a cyan ring at the feet of whoever works, the light on their chest unit lit */
.office .agent .ring { fill: none; stroke: #24e8ff; stroke-width: 1.4; opacity: 0; transform-box: fill-box; transform-origin: center; }
.office .agent .ring2 { fill: url(#g-halo-c); opacity: 0; transition: opacity .4s; }
.office .agent.working .ring { animation: ring 1.7s ease-out infinite; }
.office .agent.working .ring2 { opacity: .3; }
@keyframes ring { 0% { opacity: .9; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.5); } }
.office .agent .body { fill: url(#g-suit); }
.office .agent .chest { fill: #38f2b8; opacity: .6; transition: fill .3s, opacity .3s; }
.office .agent.working .chest { fill: #7ff4ff; opacity: 1; }
.office .agent.working .bob { animation: bob .9s ease-in-out infinite; }
.office .agent.walking .bob { animation: walk .45s ease-in-out infinite; }
/* name tags as in 3D: only in the room under the mouse or the one open, and never on a walker (it would cross a
   colleague's) */
.office .agent .lbl { opacity: 0; transition: opacity .25s; pointer-events: none; }
.office .room.hover .agent .lbl, .office .room.sel .agent .lbl { opacity: 1; }
.office .room .agent.walking .lbl { opacity: 0; }
@keyframes bob { 50% { transform: translateY(-1.2px); } }
@keyframes walk { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.office .agent .lbl rect { fill: rgba(10, 18, 28, .92); stroke: #24e8ff; stroke-width: .7; }
.office .led { animation: blink 1.3s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
@keyframes devp { 50% { opacity: .45; } }
.office .crys { animation: devp 3.2s ease-in-out infinite; }
/* the run bar's shimmer moves by its own width: measured against the view instead, it carried the office's
   bounds (and so the fit) off the stage */
.office .shim { transform-box: fill-box; animation: shim 1.5s linear infinite; }
@keyframes shim { from { transform: translateX(-40%); } to { transform: translateX(240%); } }
.office .note-run { animation: devp 1.2s ease-in-out infinite; }
/* the Manager's hologram: the column of light and the core breathing, the rings of light pulsing in turn */
.office .beam { animation: beam 2.2s ease-in-out infinite; } @keyframes beam { 50% { opacity: .55; } }
.office .holo { animation: holo 2.4s ease-in-out infinite; }
.office .holo.h1 { animation-delay: -.8s; } .office .holo.h2 { animation-delay: -1.6s; }
@keyframes holo { 50% { opacity: .55; } }
.office .holo-core { animation: glowp 2s ease-in-out infinite; }
.office .mote { animation: mote 3.2s linear infinite; } @keyframes mote { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-62px); opacity: 0; } }
.office.paused .holo, .office.paused .mote, .office.paused .beam, .office.paused .holo-core { animation-play-state: paused; }
.office .selring { animation: sel 1.6s ease-in-out infinite; } @keyframes sel { 50% { opacity: .5; } }
/* the plates, as the 3D office's: dark glass with a pale frame, framed and lit in the room's colour under the mouse
   or when open; the pill over the Manager orange while something needs you */
.office .plate .pbg { fill: rgba(14, 22, 32, .86); stroke: rgba(200, 215, 228, .3); stroke-width: .7; transition: stroke .2s; }
.office .plate .pglow { fill: none; stroke: var(--c, #24e8ff); stroke-width: 3; opacity: 0; filter: url(#glow2); transition: opacity .2s; }
.office .rp:hover .pbg, .office .rp.hov .pbg, .office .rp.sel .pbg { stroke: var(--c, #24e8ff); stroke-width: .9; }
.office .rp:hover .pglow, .office .rp.hov .pglow, .office .rp.sel .pglow { opacity: .5; }
.office .pdot { animation: dotp 1.4s ease-in-out infinite; }
.office .need .pbg { fill: rgba(8, 17, 26, .9); stroke: rgba(90, 215, 200, .34); }
.office .need.alert .pbg { fill: rgba(24, 16, 10, .92); stroke: #ff9438; stroke-width: 1; }
.office .need.alert .pglow { stroke: #ff8824; opacity: .7; animation: glowp 1.8s ease-in-out infinite; }

/* the department drawer */
/* focus mode: a department clicked -> the office zooms in, its detail takes the left column,
   the right column talks to the Manager about that department only; "← Office" goes back */
.main { transition: grid-template-columns .5s cubic-bezier(.2, .8, .2, 1); }
body.focus .main { grid-template-columns: 540px minmax(0, 1fr) 470px; }
body.focus .rail { display: none; }
.drawer { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 16px; overflow: auto; border-color: rgba(0, 207, 255, .55);
  box-shadow: 0 0 40px rgba(0, 207, 255, .12), inset 0 1px 0 rgba(0, 207, 255, .1); animation: slidein .4s cubic-bezier(.2, .8, .2, 1); }
@keyframes slidein { from { opacity: 0; transform: translateX(-20px); } }
@keyframes slidein-r { from { opacity: 0; transform: translateX(20px); } }
body.focus .rightcol > .panel { animation: slidein-r .45s cubic-bezier(.2, .8, .2, 1) both; }
body.focus .rightcol > .panel:nth-child(2) { animation-delay: .05s; } body.focus .rightcol > .panel:nth-child(3) { animation-delay: .1s; }
/* the Manager: its own focus, a big chat */
.mgr .chatbox { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; border: 1px solid rgba(0, 207, 255, .4); border-radius: 10px; padding: 10px; background: rgba(0, 207, 255, .03); }
.mgr .msgs { flex: 1; }
.mgr .msg, .dchat .msg { font-size: 13px; max-width: 90%; }
.dchat { flex: none; display: flex; flex-direction: column; gap: 8px; border: 1px solid rgba(0, 207, 255, .4); border-radius: 10px; padding: 10px; background: rgba(0, 207, 255, .03); }
.dchat .msgs { height: 220px; flex: none; }
.dchat .compose, .mgr .compose { margin-top: 0; }
.msgs .hint { color: var(--dim2); font-size: 12px; line-height: 1.5; padding: 6px 2px; }
.dept.mgrrow { border-color: rgba(0, 207, 255, .5); border-left-color: var(--cyan); background: linear-gradient(90deg, rgba(0, 207, 255, .1), var(--navy2)); }
.dept.mgrrow b { font-family: 'Archivo Black'; font-weight: 400; letter-spacing: .02em; }
.dept .et.red { color: var(--red); }
.feedp { flex: 1 1 150px; height: auto; min-height: 120px; }
.dswitch { display: flex; gap: 6px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.dswitch button { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line3); color: var(--dim2); background: var(--navy2); display: flex; align-items: center; gap: 6px; }
.dswitch button:hover { color: var(--text); border-color: var(--dim2); }
.dswitch button.on { color: var(--cyan); border-color: var(--cyan); background: var(--cyan-a); }
.crumb { display: flex; align-items: center; gap: 10px; }
.back { font: 700 12px 'JetBrains Mono'; color: var(--cyan); padding: 6px 12px; border-radius: 8px; border: 1px solid var(--cyan); background: rgba(6, 9, 15, .85);
  box-shadow: 0 0 16px rgba(0, 207, 255, .25); animation: popin .35s ease; }
.back:hover { background: var(--cyan-a); }
.back, .where { white-space: nowrap; }
body.focus .stage .live, body.vopen .stage .live { display: none; }
body.focus .strip > .vs, body.focus .strip > .use:not(.wide), body.focus .use .legend { display: none; }
.use.wide .u1 { overflow: hidden; }
.where { font-family: 'Archivo Black'; font-weight: 400; font-size: 15px; color: var(--text); text-shadow: 0 0 14px rgba(0, 207, 255, .35); }
.msg .tagd { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; border: 1px solid var(--line3); color: var(--cyan); font-size: 9.5px; }
.chat .hint { color: var(--dim2); font-size: 12px; line-height: 1.5; padding: 10px 2px; }
.dh { display: flex; align-items: center; gap: 10px; } .dh h2 { font-family: 'Archivo Black'; font-weight: 400; font-size: 24px; }
.dh .x { margin-left: auto; display: flex; gap: 6px; }
.pill.st-working { color: var(--cyan); border-color: var(--cyan); background: var(--cyan-a); } .pill.st-queued { color: var(--blue); border-color: var(--blue); background: var(--blue-a); }
.pill.st-waiting { color: var(--red); border-color: var(--red); background: var(--red-a); } .pill.st-idle { color: var(--dim2); border-color: var(--dim2); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 11px; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line3); color: var(--dim); background: var(--navy2); }
.chip.red { color: var(--red); border-color: var(--red); background: var(--red-a); cursor: pointer; }
.cht { border: 1px solid var(--cyan); border-radius: 10px; padding: 9px 10px; background: rgba(0, 207, 255, .05); display: flex; flex-direction: column; gap: 7px; flex: none; }
.cht textarea { width: 100%; min-height: 120px; resize: vertical; font-size: 12px; line-height: 1.5; color: var(--text); background: var(--deep); border: 1px solid var(--line3); border-radius: 7px; padding: 8px 9px; outline: none; }
.cht textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(0, 207, 255, .15); }
.cht .cb { display: flex; align-items: center; gap: 6px; } .cht .cb .d { flex: 1; font-size: 10.5px; color: var(--dim2); } .cht .cb .btn { padding: 4px 10px; font-size: 11px; }
.sec { font-size: 10.5px; letter-spacing: .12em; color: var(--dim2); font-weight: 700; display: flex; justify-content: space-between; gap: 8px; flex: none; }
.sec a, .sec span { letter-spacing: 0; font-weight: 600; } .sec span.unsaved { color: var(--red); }
.kp { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; flex: none; }
.drawer:not(.mgr) .kp { grid-template-columns: repeat(3, 1fr); }
.kp div { background: var(--navy2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; }
.kp b { display: block; font-family: 'Archivo Black'; font-weight: 400; font-size: 20px; line-height: 1.1; } .kp b small { font-size: 11px; color: var(--dim2); font-family: 'JetBrains Mono'; }
.kp span { font-size: 10px; color: var(--dim2); }
.now { border: 1px solid rgba(0, 207, 255, .45); border-radius: 9px; padding: 9px 11px; background: rgba(0, 207, 255, .06); flex: none; position: relative; overflow: hidden; }
.now.idle { border-color: var(--line3); background: var(--navy2); }
.now .t1 { font-size: 10px; letter-spacing: .1em; color: var(--cyan); font-weight: 700; } .now.idle .t1 { color: var(--dim2); }
.now p { font-weight: 700; margin: 4px 0; } .now .t2 { font-size: 11px; color: var(--dim2); } .now .t2 b { color: var(--red); }
/* the department's one line, coloured by what it means */
.now { display: flex; align-items: center; gap: 10px; padding: 11px 13px; }
.now p { flex: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 1.35; }
.now.t-cyan p { color: var(--cyan); }
.now.t-red { border-color: rgba(255, 68, 68, .6); background: rgba(255, 68, 68, .08); } .now.t-red p { color: var(--red); }
.now.t-blue { border-color: rgba(59, 130, 246, .5); background: rgba(59, 130, 246, .07); } .now.t-blue p { color: #9cc0ff; }
.now.t-dim { border-color: var(--line3); background: var(--navy2); } .now.t-dim p { color: var(--dim); }
.now .btn { flex: none; padding: 4px 12px; font-size: 11.5px; }
.dh .et { font-size: 12px; font-weight: 700; color: var(--green); white-space: nowrap; }
.dh .et.lit { text-shadow: 0 0 8px rgba(0, 255, 136, .7); padding: 2px 9px; border: 1px solid rgba(0, 255, 136, .5); border-radius: 10px; box-shadow: 0 0 10px rgba(0, 255, 136, .25); }
.dh .et.zero { color: var(--dim2); border: 1px solid var(--line2); border-radius: 10px; padding: 2px 9px; }
.dot.needs { background: var(--red); box-shadow: 0 0 8px var(--red); }
.tk2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.tk2 div { background: var(--deep); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; }
.tk2 b { display: block; font-family: 'Archivo Black'; font-weight: 400; font-size: 22px; } .tk2 span { font-size: 10.5px; color: var(--dim2); }
.tk2 b.cy { color: var(--cyan); } .tk2 b.red { color: var(--red); }
.memt { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
.memt span { color: var(--cyan); }
.now .run { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; overflow: hidden; }
.now .run i { position: absolute; top: 0; bottom: 0; width: 30%; background: linear-gradient(90deg, transparent, var(--cyan), transparent); animation: runbar 1.6s linear infinite; }
.tlist { display: flex; flex-direction: column; gap: 6px; flex: none; }
.trow { display: grid; grid-template-columns: 96px minmax(0, 1fr) 44px; gap: 8px; align-items: start; padding: 7px 9px; background: var(--navy2); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; transition: border-color .15s; }
.trow > div { min-width: 0; }
.trow:hover { border-color: var(--line3); }
.trow b { font-size: 12px; display: block; } .trow em { font-style: normal; font-size: 11px; color: var(--dim2); display: block; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow i { font-style: normal; font-size: 10.5px; color: var(--dim2); text-align: right; }
.trow .more { grid-column: 1 / -1; font-size: 11px; color: var(--dim); line-height: 1.5; border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; }
.trow .more b { display: inline; font-size: 11px; color: var(--text); }
.st { font-size: 9.5px; font-weight: 700; padding: 2px 6px; text-align: center; border-radius: 5px; border: 1px solid; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; display: inline-block; min-width: 66px; }
.st.done { color: var(--green); border-color: var(--green); } .st.failed, .st.cancelled { color: var(--red); border-color: var(--red); }
.st.running { color: var(--cyan); border-color: var(--cyan); background: var(--cyan-a); } .st.queued { color: var(--blue); border-color: var(--blue); }
.st.waiting_approval { color: var(--red); border-color: var(--red); background: var(--red-a); } .st.cancelled { opacity: .7; }
.mem { display: grid; grid-template-columns: 62px 1fr; gap: 8px; font-size: 11.5px; padding: 5px 0; border-bottom: 1px solid var(--line); line-height: 1.4; }
.mem span { font-size: 9.5px; font-weight: 700; color: var(--blue); border: 1px solid var(--blue); border-radius: 5px; text-align: center; height: 17px; line-height: 15px; text-transform: uppercase; }
.mem span.k-mistake { color: var(--red); border-color: var(--red); } .mem span.k-rule { color: var(--cyan); border-color: var(--cyan); } .mem span.k-lesson { color: var(--green); border-color: var(--green); }

/* right column: approvals and the plan give way to the chat, never the other way round */
.rightcol { display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow: hidden; }
.ap { border-top: 2px solid var(--red); flex: 0 1 auto; min-height: 118px; display: flex; flex-direction: column; }
.ap.none { border-top-color: var(--green); min-height: 0; }
/* the list takes the room its column has: it scrolls only once the column is really full (its panel shrinks to
   118px before the Vault's does), never inside a fixed box with the column empty under it (CentCom 32409) */
.alist { display: flex; flex-direction: column; gap: 8px; overflow: auto; min-height: 0; }
.ai { border: 1px solid var(--line); border-radius: 9px; padding: 9px; background: var(--navy2); transition: opacity .25s, transform .25s, border-color .2s; }
.ai:hover { border-color: var(--line3); }
.ai.new { animation: popin .5s cubic-bezier(.2, .9, .3, 1.3); border-color: var(--red); }
@keyframes popin { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
.ai.leaving { opacity: 0; transform: translateX(24px); }
.ai .t { display: flex; gap: 6px; align-items: center; font-size: 10.5px; color: var(--dim2); }
.tag { padding: 1px 7px; border-radius: 5px; border: 1px solid var(--line3); color: var(--dim); white-space: nowrap; }
.tag.k { border-color: var(--blue); color: var(--blue); } .tag.money { border-color: var(--red); color: var(--red); }
.ai p { margin: 7px 0 9px; font-size: 13.5px; font-weight: 700; line-height: 1.35; color: var(--text); }
.ai .t .from { margin-left: auto; color: var(--dim2); white-space: nowrap; }
.ai .t .tag.k, .ai .t .tag.money, .ai .t .tag.rvk { font-weight: 700; }
.ai .bt { display: flex; gap: 6px; } .ai .bt .btn { padding: 5px 10px; font-size: 11px; }
.empty { color: var(--dim2); font-size: 11.5px; padding: 6px 2px; }
.empty.ok::before { content: '✓ '; color: var(--green); }
.nx { flex: 0 1 auto; min-height: 100px; display: flex; flex-direction: column; }
.plan { list-style: none; display: flex; flex-direction: column; gap: 5px; max-height: 190px; overflow: auto; min-height: 0; }
.plan li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; align-items: center; background: var(--navy2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; transition: border-color .2s; }
.plan li.empty { display: block; background: none; border: 0; padding: 4px 2px; }
.plan li.moved { animation: moved .6s ease; } @keyframes moved { 0% { border-color: var(--cyan); background: rgba(0, 207, 255, .1); } }
.plan .n { color: var(--cyan); font-weight: 700; text-align: center; }
.plan b { display: block; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan em { display: block; font-style: normal; font-size: 10px; color: var(--dim2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan em.wait { color: var(--blue); }
.plan .pa { display: flex; gap: 2px; opacity: 0; transition: opacity .15s; } .plan li:hover .pa { opacity: 1; }
.plan b { font-size: 12.5px; }
.plan .pa button { width: 20px; height: 20px; border-radius: 5px; color: var(--dim); font-size: 12px; line-height: 1; }
.plan .pa button:hover { background: var(--line2); color: var(--cyan); } .plan .pa button[data-a="remove"]:hover { color: var(--red); }
.plan .pa button[disabled] { opacity: .25; pointer-events: none; }
.chat { flex: 1 1 170px; display: flex; flex-direction: column; min-height: 150px; }
.typing { color: var(--cyan); letter-spacing: 0; font-weight: 600; display: inline-flex; align-items: center; gap: 2px; text-transform: none; }
.typing i { width: 3px; height: 3px; border-radius: 50%; background: var(--cyan); animation: tdot 1s infinite; } .typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 50% { opacity: .2; } }
.msgs { flex: 1; display: flex; flex-direction: column; gap: 8px; overflow: auto; min-height: 0; padding-right: 2px; }
.msgs > :first-child { margin-top: auto; }
.msg { max-width: 88%; padding: 8px 10px; border-radius: 10px; font-size: 12px; line-height: 1.4; background: var(--navy2); border: 1px solid var(--line); animation: popin .35s ease; }
.msg.me { align-self: flex-end; background: rgba(0, 207, 255, .08); border-color: rgba(0, 207, 255, .35); }
.msg em { display: block; font-style: normal; font-size: 10px; color: var(--dim2); margin-bottom: 3px; }
.pf .pf0 { margin-bottom: 6px; }
.msgclear { align-self: center; font-size: 10.5px; color: var(--dim2); border-top: 1px dashed var(--line); padding-top: 4px; margin: 4px 0; cursor: help; }
.msgwait { align-self: flex-end; font-size: 10.5px; color: var(--blue); }
.compose { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.compose .clip { width: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--dim2); }
.compose .clip:hover { color: var(--cyan); border-color: var(--cyan); }
.compose .clip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.attach { flex: 1 0 100%; display: flex; gap: 8px; flex-wrap: wrap; }
.attach[hidden] { display: none; }
.attach .apic { position: relative; width: 74px; height: 56px; border: 1px solid var(--line3); border-radius: 7px; overflow: hidden; background: var(--deep); }
.attach .apic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.attach .apic.up { opacity: .55; }
.attach .apic button { position: absolute; top: 2px; right: 2px; width: 17px; height: 17px; padding: 0; border: 0; border-radius: 50%; background: rgba(4, 8, 14, .85); color: var(--text); font-size: 12px; line-height: 17px; cursor: pointer; }
.attach .apic button:hover { background: var(--red); }
.msg .mimgs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.msg .mimgs img { max-width: 100%; max-height: 150px; border-radius: 7px; border: 1px solid var(--line3); display: block; }
.compose input { flex: 1; min-width: 0; border: 1px solid var(--line3); border-radius: 8px; padding: 8px 10px; background: var(--deep); font-size: 12px; outline: none; }
.compose input:focus { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(0, 207, 255, .15); }
.feedp { flex: none; height: 150px; display: flex; flex-direction: column; }
.feed { list-style: none; display: flex; flex-direction: column; gap: 5px; overflow: hidden; min-height: 0; flex: 1;
  -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.feed li { font-size: 11.5px; padding: 5px 8px; border-left: 3px solid var(--dim2); background: var(--navy2); border-radius: 0 6px 6px 0; display: flex; gap: 6px; flex: none; }
.feed li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; color: var(--dim); }
.feed li b { color: var(--text); } .feed li em { font-style: normal; color: var(--dim2); }
.feed li.good { border-color: var(--green); } .feed li.bad { border-color: var(--red); } .feed li.info { border-color: var(--cyan); } .feed li.ask { border-color: var(--red); } .feed li.ask span { color: var(--red); }
.feed li.new { animation: feedin .45s ease; } @keyframes feedin { from { opacity: 0; transform: translateX(-10px); } }

/* ---------- the other tabs ---------- */
.page { flex: 1; min-height: 0; overflow: auto; padding: 18px 20px 60px; }
.ph { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.ph h2 { font-family: 'Archivo Black'; font-weight: 400; font-size: 22px; }
.ph .sub { color: var(--dim2); font-size: 12px; } .ph .sp { flex: 1; }
.q { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--dim2); font-size: 9.5px; font-style: normal; cursor: help; margin-left: 4px; }
.sel { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--dim2); }
select, .search, .field input, .field textarea, .field select { background: var(--deep); border: 1px solid var(--line3); border-radius: 7px; padding: 6px 9px; font-size: 12px; color: var(--text); outline: none; }
select:focus, .search:focus, .field input:focus, .field textarea:focus { border-color: var(--cyan); }
.tablewrap { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--navy); }
.ledger { width: 100%; border-collapse: collapse; font-size: 12px; }
.ledger th { text-align: left; font-size: 10.5px; letter-spacing: .1em; color: var(--dim2); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line3); background: var(--navy2); position: sticky; top: 0; }
.ledger td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger tr.row { cursor: pointer; transition: background .15s; } .ledger tr.row:hover { background: #111c2e; }
.ledger tr.flash td { animation: flash 1.2s ease; } @keyframes flash { 0% { background: rgba(0, 207, 255, .12); } }
.ledger .num { text-align: right; white-space: nowrap; color: var(--dim); font-variant-numeric: tabular-nums; }
.ledger td.res { color: var(--dim); max-width: 420px; } .ledger td.res .err { color: var(--red); }
.ledger .id { color: var(--dim2); margin-right: 6px; }
.ledger tr.det td { background: var(--deep); color: var(--dim); font-size: 11.5px; line-height: 1.6; }
.ledger tr.det b { color: var(--text); }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; }
.grid2 .sec { margin-bottom: 10px; }
.card { background: var(--navy); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.card h3 { font-family: 'Archivo Black'; font-weight: 400; font-size: 15px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.draft { white-space: pre-wrap; font-size: 11.5px; line-height: 1.55; color: var(--dim); background: var(--deep); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 8px 0 10px; max-height: 260px; overflow: auto; }
.draft h4 { color: var(--text); font-size: 10.5px; letter-spacing: .1em; margin: 8px 0 2px; } .draft h4:first-child { margin-top: 0; color: var(--cyan); }
.memgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 14px; }
.memgrid .card h3 small { font-family: 'JetBrains Mono'; font-size: 11px; color: var(--dim2); }
.memgrid .mem i { font-style: normal; color: var(--dim2); font-size: 10px; margin-left: 6px; white-space: nowrap; }
.finding { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.5; }
.finding .fix { color: var(--green); margin-top: 3px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpis.two { grid-template-columns: repeat(2, minmax(0, 320px)); }
.kpis div { background: var(--navy2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.kpis b { display: block; font-family: 'Archivo Black'; font-weight: 400; font-size: 24px; } .kpis span { font-size: 10.5px; color: var(--dim2); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 11px; color: var(--dim2); letter-spacing: .04em; }
.field.full { grid-column: 1 / -1; }
.field textarea { min-height: 70px; resize: vertical; line-height: 1.5; }
.switch { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line3); border-radius: 10px; background: var(--navy2); cursor: pointer; }
.switch .sw { width: 42px; height: 24px; border-radius: 99px; background: var(--line3); position: relative; transition: background .2s; flex: none; }
.switch .sw::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--dim); transition: left .2s, background .2s; }
.switch.on .sw { background: rgba(0, 255, 136, .35); } .switch.on .sw::after { left: 21px; background: var(--green); box-shadow: 0 0 10px var(--green); }
.switch b { font-size: 13px; } .switch span { font-size: 11px; color: var(--dim2); display: block; margin-top: 2px; }
.cols2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.danger { border-color: rgba(255, 68, 68, .45); }
.hint { font-size: 11px; color: var(--dim2); margin-top: 6px; }

/* company rules */
.rulesgrid { max-width: 980px; }
.hb { width: 100%; min-height: 230px; resize: vertical; background: var(--deep); border: 1px solid var(--line3); border-radius: 8px; padding: 10px 12px; font-size: 12.5px; line-height: 1.7; color: var(--text); outline: none; }
.hb:focus { border-color: var(--cyan); }
.rule { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--navy2); margin-bottom: 8px; opacity: .55; transition: opacity .2s, border-color .2s; }
.rule.on { opacity: 1; border-color: var(--line3); }
.rule .ric svg { width: 36px; height: 36px; display: block; }
.rhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .rhead b { font-size: 13px; } .rhead .rt { color: var(--cyan); }
.rule .arrow, .addrule .arrow { color: var(--dim2); font-weight: 700; }
.rule p { font-size: 12px; color: var(--dim); margin-top: 3px; line-height: 1.45; }
.rid { font-size: 10px; font-weight: 700; color: var(--dim2); border: 1px solid var(--line3); border-radius: 5px; padding: 0 5px; }
.rv { display: flex; align-items: center; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.rvl { font-size: 10px; letter-spacing: .08em; color: var(--dim2); text-transform: uppercase; margin-right: 4px; }
.rv button { font-size: 10.5px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line3); color: var(--dim2); }
.rv button:hover { color: var(--text); } .rv button.on { color: var(--bg); background: var(--blue); border-color: var(--blue); font-weight: 700; }
.rv button.on[data-m=""] { background: var(--line3); color: var(--text); border-color: var(--line3); }
.rv .who { font-size: 10.5px; color: var(--dim2); margin-left: 4px; }
.rv .who input { width: 110px; background: var(--deep); border: 1px solid var(--line3); border-radius: 6px; padding: 1px 6px; font-size: 10.5px; color: var(--text); outline: none; }
.tag.rvk { border-color: var(--blue); color: var(--text); background: var(--blue-a); }
.then { margin-top: 5px; font-size: 11px; color: var(--cyan); display: flex; align-items: center; gap: 6px; }
.then::before { content: '↳'; color: var(--dim2); }
.addrule select { max-width: 200px; }
.addrule .wl { font-weight: 700; font-size: 12px; color: var(--text); }
.addrule #nr-when { flex: 1.1; }
.exrow { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.exr { font-size: 10.5px; color: var(--dim); border: 1px dashed var(--line3); border-radius: 99px; padding: 2px 9px; }
.exr:hover { color: var(--cyan); border-color: var(--cyan); }
.fired { font-size: 10.5px; font-weight: 700; color: var(--green); border: 1px solid rgba(0, 255, 136, .5); border-radius: 99px; padding: 0 7px; }
.miss { font-size: 10.5px; color: var(--red); border: 1px solid rgba(255, 68, 68, .5); border-radius: 99px; padding: 0 7px; }
.lock { font-size: 10.5px; color: var(--blue); border: 1px solid var(--blue); border-radius: 99px; padding: 2px 9px; }
.switch.mini { padding: 0; border: 0; background: none; } .switch.mini .sw { width: 36px; height: 20px; } .switch.mini .sw::after { width: 14px; height: 14px; }
.switch.mini.on .sw::after { left: 19px; }
.rx { color: var(--dim2); font-size: 16px; width: 24px; height: 24px; border-radius: 6px; } .rx:hover { color: var(--red); background: var(--red-a); }
.addrule { display: flex; gap: 8px; align-items: center; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.addrule input { flex: 1; min-width: 0; background: var(--deep); border: 1px solid var(--line3); border-radius: 7px; padding: 6px 9px; font-size: 12px; color: var(--text); outline: none; }
#nr-text { padding: 10px 12px; font-size: 13px; } #nr-text:focus { border-color: var(--cyan); }
.nrmsg { font-size: 12px; margin-top: 8px; } .nrmsg.ok { color: var(--green); } .nrmsg.bad { color: var(--red); }
.rule .rvt { color: var(--blue); font-weight: 700; white-space: nowrap; }
.rules-empty { display: none; }
@media (max-width: 1100px) { .rulesgrid { grid-template-columns: 1fr; } }

/* modal, toast, sim bar */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(6, 9, 15, .72); backdrop-filter: blur(3px); animation: fadein .2s; }
@keyframes fadein { from { opacity: 0; } }
.modal-card { width: min(640px, 92vw); max-height: 88vh; overflow: auto; background: var(--navy); border: 1px solid var(--line3); border-radius: 14px; padding: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 207, 255, .08); animation: popin .3s cubic-bezier(.2, .9, .3, 1.2); }
.modal-card.wide { width: min(820px, 94vw); }
.mh { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; } .mh h3 { font-family: 'Archivo Black'; font-weight: 400; font-size: 18px; flex: 1; }
.mf { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; align-items: center; } .mf .sp { flex: 1; }
.tpls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.tpl { text-align: left; border: 1px solid var(--line3); border-radius: 10px; padding: 10px; background: var(--navy2); transition: border-color .15s, background .15s; }
.tpl:hover { border-color: var(--dim2); } .tpl.on { border-color: var(--cyan); background: var(--cyan-a); }
.tpl b { display: block; font-size: 12.5px; } .tpl span { font-size: 10.5px; color: var(--dim2); }
.tpl.used { opacity: .45; }
/* add / edit a department: sliders of pictures */
.modal-card.wide { width: min(1000px, 95vw); }
.sec.step { color: var(--cyan); margin: 4px 0 8px; } .sec.step span { color: var(--dim2); }
.slider { position: relative; margin: 0 -6px 14px; }
.sl-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 6px 12px; scrollbar-width: none; }
.sl-track::-webkit-scrollbar { display: none; }
.sl-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 34px; height: 34px; border-radius: 50%; font-size: 20px; line-height: 1;
  color: var(--cyan); background: rgba(6, 9, 15, .92); border: 1px solid var(--cyan); box-shadow: 0 0 14px rgba(0, 207, 255, .3); }
.sl-arrow.l { left: -8px; } .sl-arrow.r { right: -8px; } .sl-arrow:hover { background: var(--cyan-a); }
.tcard, .xcard { flex: none; scroll-snap-align: start; text-align: left; display: flex; flex-direction: column; gap: 5px; padding: 10px; border-radius: 14px;
  border: 1px solid var(--line3); background: linear-gradient(180deg, var(--navy2), var(--navy)); transition: transform .18s, border-color .18s, box-shadow .18s; position: relative; }
.tcard:hover, .xcard:hover { transform: translateY(-3px); border-color: var(--dim2); }
.tcard { width: 214px; } .xcard { width: 172px; }
.tcard .art { height: 118px; border-radius: 10px; background: radial-gradient(ellipse at 50% 70%, #101b2d, var(--deep)); display: grid; place-items: center; overflow: hidden; }
.tcard .art svg { width: 100%; height: 100%; }
.tcard b, .xcard b { font-family: 'Archivo Black'; font-weight: 400; font-size: 15px; margin-top: 4px; }
.tcard span, .xcard span { font-size: 11px; color: var(--dim2); line-height: 1.4; min-height: 31px; }
.tcard .minis { display: flex; align-items: center; gap: 2px; margin-top: 2px; }
.tcard .minis i { width: 26px; height: 29px; display: block; } .tcard .minis svg { width: 100%; height: 100%; }
.tcard .minis em { margin-left: auto; font-style: normal; font-size: 10px; color: var(--dim2); border: 1px solid var(--line3); border-radius: 99px; padding: 1px 7px; }
.tcard.on { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), 0 0 26px rgba(0, 207, 255, .3); background: linear-gradient(180deg, rgba(0, 207, 255, .1), var(--navy)); }
.tcard.on::after { content: '✓'; position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cyan); color: var(--bg); font-weight: 800; font-size: 12px; box-shadow: 0 0 10px var(--cyan); }
.xcard .fig { height: 106px; border-radius: 10px; background: radial-gradient(ellipse at 50% 80%, #101b2d, var(--deep)); display: grid; place-items: center; }
.xcard .fig svg { height: 100%; }
.xcard .ck { font-style: normal; font-size: 11px; font-weight: 700; color: var(--dim2); border: 1px solid var(--line3); border-radius: 99px; padding: 3px 0; text-align: center; margin-top: 2px; }
.xcard.on { border-color: var(--green); box-shadow: 0 0 0 1px var(--green), 0 0 22px rgba(0, 255, 136, .22); background: linear-gradient(180deg, rgba(0, 255, 136, .08), var(--navy)); }
.xcard.on .ck { color: var(--bg); background: var(--green); border-color: var(--green); }
.hiredline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 32px; }
.hx { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--text); padding: 2px 9px 2px 2px; border-radius: 99px; border: 1px solid var(--line3); background: var(--navy2); }
.hx i { width: 22px; height: 24px; display: block; } .hx svg { width: 100%; height: 100%; }
/* add a department in 3D: its room floats in the middle, what it is on the left, the two sliders under them */
.modal-card.x3 { width: min(1760px, 96vw); height: min(980px, 94vh); max-height: none; padding: 0; overflow: hidden; background: var(--bg);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 255, 136, .07), 0 0 70px rgba(0, 207, 255, .06); }
.ad3 { height: 100%; display: flex; flex-direction: column; }
.d3h { display: flex; align-items: center; gap: 12px; padding: 14px 18px 0; }
.d3h h3 { font-family: 'Archivo Black'; font-weight: 400; font-size: 18px; flex: 1; }
.d3main { flex: 1; min-height: 0; display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 14px; padding: 12px 18px; }
.d3side { min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 12px; border: 1px solid var(--line3);
  background: linear-gradient(180deg, var(--navy2), var(--navy)); }
.d3k { font-size: 10.5px; letter-spacing: .12em; color: var(--cyan); font-weight: 700; } .d3k span { color: var(--dim2); margin-left: 6px; letter-spacing: .04em; }
.d3name { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line3); padding: 2px 0 8px; font-family: 'Archivo Black'; font-size: 22px;
  color: var(--text); outline: none; }
.d3name:focus { border-bottom-color: var(--green); } .d3name::placeholder { color: var(--dim2); opacity: .55; }
.d3about { list-style: none; display: flex; flex-direction: column; gap: 6px; margin: 2px 0 6px; }
.d3about li { font-size: 12px; line-height: 1.45; color: var(--dim); padding-left: 15px; position: relative; }
.d3about li::before { content: ''; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.d3side .hiredline { min-height: 30px; margin-bottom: 4px; }
.d3side .hx i { width: 24px; height: 24px; border-radius: 50%; overflow: hidden; background: #0f1a24; }
.d3side .hx img { width: 100%; height: 100%; object-fit: cover; transform: scale(2.1); transform-origin: 50% 30%; display: block; }
/* the charter: open, it takes what the panel has left; shut, its header alone */
.d3ch { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 10px; }
.d3ch.shut { flex: none; }
.d3cht { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; user-select: none; }
.d3cht::before { content: '▸'; color: var(--cyan); font-size: 11px; transform: rotate(90deg); transition: transform .15s; } .d3ch.shut .d3cht::before { transform: none; }
.d3ch .d3n { margin-left: auto; font-size: 10.5px; color: var(--dim2); }
.d3ch textarea { display: block; flex: 1 1 auto; width: 100%; margin-top: 8px; min-height: 76px; resize: none; background: var(--deep); border: 1px solid var(--line3);
  border-radius: 8px; padding: 8px 10px; font-size: 11.5px; line-height: 1.5; color: var(--text); outline: none; }
.d3ch.shut textarea { display: none; }
.d3ch textarea:focus { border-color: var(--cyan); }
.d3act { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; } .d3act .hint { margin: 0; }
.d3btns { display: flex; gap: 8px; } .d3btns .gr { flex: 1; padding: 9px 12px; }
.d3stage { position: relative; min-height: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line2); background: #0f1a24; }
.d3cv { position: absolute; inset: 0; } .d3cv canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; } .d3cv canvas.drag { cursor: grabbing; }
.d3arw { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 48px; border-radius: 50%; font-size: 26px; line-height: 1; color: var(--green);
  background: rgba(6, 9, 15, .78); border: 1px solid var(--green); box-shadow: 0 0 18px rgba(0, 255, 136, .28); }
.d3arw.l { left: 11%; } .d3arw.r { right: 11%; } .d3arw:hover { background: rgba(0, 255, 136, .14); } .d3arw:active { transform: translateY(-50%) scale(.95); }
.d3look { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 10px; padding: 7px 16px;
  border-radius: 99px; background: rgba(6, 9, 15, .82); border: 1px solid var(--line3); font-family: 'Archivo Black'; font-size: 14px; color: var(--text); white-space: nowrap; }
.d3look b { font-family: 'JetBrains Mono'; font-size: 11px; color: var(--green); }
.d3tip { position: absolute; right: 14px; top: 12px; z-index: 2; font-size: 10.5px; color: var(--dim2); letter-spacing: .06em; pointer-events: none; }
.d3bot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; padding: 0 22px 14px; }
/* editing: no picker of kinds, the experts across the whole width; Delete beside Cancel */
.ad3.edit .d3bot { grid-template-columns: minmax(0, 1fr); } .d3btns .rd { margin-right: auto; }
.d3col { min-width: 0; }
.ad3 .sec.step { margin: 0 0 2px; font-size: 10.5px; letter-spacing: .12em; font-weight: 700; }
.ad3 .slider { margin: 0 -4px; }
.ad3 .sl-track { gap: 10px; padding: 6px 4px; }
.ad3 .sl-arrow { width: 30px; height: 30px; font-size: 18px; } .ad3 .sl-arrow.l { left: -10px; } .ad3 .sl-arrow.r { right: -10px; }
.ad3 .tcard { width: 176px; padding: 7px; gap: 3px; border-radius: 11px; } .ad3 .xcard { width: 142px; padding: 7px; gap: 3px; border-radius: 11px; }
.ad3 .tcard .art, .ad3 .xcard .fig { height: 96px; border-radius: 8px; background: #0f1a24; overflow: hidden; display: grid; place-items: center; }
.ad3 .tcard .art img, .ad3 .xcard .fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad3 .xcard .fig svg { height: 92%; }
.ad3 .tcard b, .ad3 .xcard b { font-size: 13px; margin-top: 3px; }
.ad3 .tcard span, .ad3 .xcard span { font-size: 10.5px; line-height: 1.35; min-height: 0; height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad3 .tcard .tst { font-style: normal; font-size: 10.5px; color: var(--dim2); display: flex; align-items: center; gap: 6px; min-height: 20px; }
.ad3 .tcard .tst i { margin-left: auto; font-style: normal; font-size: 10px; border: 1px solid var(--line3); border-radius: 99px; padding: 0 6px; }
.ad3 .xcard .ck { padding: 2px 0; font-size: 10.5px; }
.ad3 .tcard.on::after { top: 12px; right: 12px; }
/* the panel's two faces: the department, or the expert last clicked */
.d3pane { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.d3side.ex .d3dept, .d3side:not(.ex) .d3ex { display: none; }
.d3kick { display: flex; align-items: center; gap: 10px; }
.ad3 .dic .dot { display: none; }
.d3kick .dic { width: 30px; height: 30px; border-radius: 8px; } .d3kick .dic svg { width: 17px; height: 17px; }
.ad3 .tcard b .dic { display: inline-grid; width: 20px; height: 20px; border-radius: 6px; vertical-align: -4px; margin-right: 6px; }
.ad3 .tcard b .dic svg { width: 12px; height: 12px; }
.ad3 .hx { cursor: pointer; } .ad3 .hx:hover { border-color: var(--cyan); }
.ad3 .hx i svg.astroart { width: 100%; height: 100%; transform: scale(2.3); transform-origin: 50% 30%; }
.ad3 .xcard.view { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), 0 0 20px rgba(0, 207, 255, .25); }
.ad3 .xcard.on.view { box-shadow: 0 0 0 1px var(--green), 0 0 0 3px rgba(0, 207, 255, .55), 0 0 22px rgba(0, 255, 136, .22); }
.ad3 .xcard .ck:hover { border-color: var(--green); color: var(--green); }
.ad3 .xcard.on .ck:hover { color: var(--bg); }
.d3back { align-self: flex-start; font-size: 11px; color: var(--dim2); padding: 3px 8px 3px 4px; border-radius: 6px; } .d3back b { color: var(--cyan); }
.d3back:hover { background: var(--cyan-a); }
.d3xhead { display: flex; gap: 12px; align-items: center; flex: none; }
.d3xfig { width: 112px; height: 98px; flex: none; border-radius: 10px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 75%, #13202e, #0b131c 70%); border: 1px solid var(--line2); }
.d3xfig img { width: 100%; height: 100%; object-fit: cover; display: block; } .d3xfig svg { height: 100%; width: 100%; }
.d3xn { font-family: 'Archivo Black'; font-weight: 400; font-size: 20px; margin: 2px 0 4px; }
.d3xt { display: inline-block; font-size: 10.5px; font-weight: 700; color: var(--dim2); border: 1px solid var(--line3); border-radius: 99px; padding: 1px 8px; }
.d3xt.on { color: var(--bg); background: var(--green); border-color: var(--green); }
.d3xbody { flex: 1 1 auto; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 9px; padding-right: 2px; }
.d3xd { font-size: 11.5px; line-height: 1.5; color: var(--text); }
.d3fits { display: flex; flex-wrap: wrap; gap: 6px; }
.d3fit { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; padding: 1px 8px 1px 1px; border-radius: 99px; border: 1px solid var(--line3); background: var(--navy2); color: var(--dim); }
.d3fit .dic { width: 20px; height: 20px; border-radius: 99px; } .d3fit .dic svg { width: 12px; height: 12px; }
.d3fit.here { border-color: var(--green); color: var(--text); box-shadow: 0 0 10px rgba(0, 255, 136, .18); }
.d3xw, .d3xa { display: flex; gap: 8px; align-items: flex-start; font-size: 11px; line-height: 1.45; color: var(--dim); }
.d3xw i { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 11px; }
.d3xw.ok i { color: var(--bg); background: var(--green); } .d3xw.no i { color: var(--dim2); border: 1px solid var(--line3); }
.d3xa svg { flex: none; width: 18px; height: 18px; }
.d3ex .d3act { margin-top: 0; flex: none; } .d3ex .d3act .btn { width: 100%; padding: 9px 12px; }
.d3ex .d3back { flex: none; } .btn.d3fire:hover { border-color: var(--red); color: var(--red); }
/* the flat office's room in the middle, floating on its stars; the cards' rooms and astronauts drawn by it too, still */
.d2stage { background: var(--stars, none) 0 0 / 620px 620px repeat, radial-gradient(ellipse 60% 55% at 50% 58%, rgba(0, 255, 136, .05), transparent 70%),
  radial-gradient(ellipse 30% 26% at 18% 22%, rgba(24, 110, 122, .22), transparent 72%), #0b1520; }
.d2room { position: absolute; inset: 5% 10% 9%; animation: d2float 7s ease-in-out infinite; }
.d2room.rise { animation: d2rise .7s cubic-bezier(.2, .9, .3, 1.15), d2float 7s ease-in-out .7s infinite; }
@keyframes d2float { 50% { transform: translateY(-7px); } }
@keyframes d2rise { from { transform: translateY(18px) scaleY(.6); opacity: .2; } }
.ad3 svg.office { position: static; width: 100%; height: 100%; display: block; cursor: default; touch-action: auto; }
.ad3 .still, .ad3 .still * { animation: none !important; }
.ad3.two .tcard .art, .ad3.two .xcard .fig { background: radial-gradient(ellipse at 50% 60%, #12202c, #0b1520 75%); }
.ad3.two .tcard .art svg { padding: 4px 6px; }
.xchips { display: flex; flex-wrap: wrap; gap: 6px; }
.xchip { font-size: 11px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line3); color: var(--dim); background: var(--navy2); cursor: pointer; user-select: none; }
.xchip.on { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-a); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.plans div { border: 1px solid var(--line3); border-radius: 10px; padding: 12px; background: var(--navy2); }
.plans div.on { border-color: var(--green); box-shadow: 0 0 14px rgba(0, 255, 136, .15); }
.plans b { display: block; font-family: 'Archivo Black'; font-weight: 400; font-size: 18px; } .plans span { font-size: 11px; color: var(--dim2); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; padding: 9px 14px; border-radius: 9px; font-size: 12px;
  background: rgba(6, 9, 15, .96); border: 1px solid var(--cyan); box-shadow: 0 0 20px rgba(0, 207, 255, .2); animation: popin .25s ease; }


/* a department's page, a button in its head; Operations' card on the right */
/* a department's page on cymetica.com: a glowing tile with a globe, its name in the tooltip */
.dh .pgi { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; border: 1px solid rgba(0, 207, 255, .5);
  background: radial-gradient(circle at 35% 30%, rgba(0, 207, 255, .28), rgba(7, 12, 20, .2)); box-shadow: 0 0 12px rgba(0, 207, 255, .25); transition: box-shadow .2s, border-color .2s; }
.dh .pgi svg { width: 19px; height: 19px; fill: none; stroke: var(--cyan); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 3px rgba(0, 207, 255, .8)); }
.dh .pgi:hover { border-color: var(--cyan); box-shadow: 0 0 18px rgba(0, 207, 255, .55); }
.panel.ops .hint { margin: 10px 0 12px; } .panel.ops #ops-open { width: 100%; }




/* ---------- widths ---------- */
@media (max-width: 1600px) {
  .main { grid-template-columns: 284px minmax(0, 1fr) 330px; }
  body.focus .main { grid-template-columns: 430px minmax(0, 1fr) 380px; }
  .bars { min-width: 220px; } .fuel { gap: 12px; } .fuel .n b { font-size: 26px; }
  .who h1 { font-size: 18px; } .legend { display: none; }
  .mini { display: none; } .feedp { height: 112px; } .plan { max-height: 150px; }
  .site nav { gap: 14px; } 
}
@media (max-height: 940px) {
  .cobar { padding: 7px 20px; } .fuel { padding: 6px 14px; } .fuel .n b { font-size: 24px; } .mark { width: 38px; height: 38px; }
  .main { padding: 10px 20px; gap: 12px; } .rightcol, .left { gap: 10px; } .panel { padding: 10px; } .h { margin-bottom: 8px; }
  .tabs button { padding: 8px 14px; } .feedp { height: 104px; } .dept { padding: 6px 10px; } .d2 { margin-top: 3px; }
}
@media (max-width: 1280px) {
  body { height: auto; overflow: auto; }
  .site nav { display: none; }
  .main { grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: auto 640px; flex: none; }
  .left { grid-column: 1 / -1; } .rail .depts { flex-direction: row; overflow-x: auto; } .dept { min-width: 210px; }
  .stage { grid-row: 2; } .rightcol { grid-row: 2; }
  .use { width: 170px; }
  .page { overflow: visible; }
  body.focus .main { grid-template-columns: minmax(0, 1fr) 340px; }
  body.focus .drawer { max-height: 60vh; }
}
@media (max-width: 1000px) {
  .main { grid-template-columns: 1fr; grid-template-rows: auto 560px auto; }
  .rightcol { grid-row: 3; overflow: visible; } .chat { min-height: 300px; }
  
}
@media (max-width: 760px) {
  body { height: auto; overflow: auto; }
  .site { gap: 12px; padding: 0 12px; }
  .cobar { padding: 10px 12px; grid-template-columns: minmax(0, 1fr); gap: 8px; } .cobar .right { justify-content: flex-start; flex-wrap: wrap; } .fuel { flex-wrap: wrap; gap: 10px; } .fuel .vs { display: none; } .bars { width: 100%; min-width: 0; }
  .tabs { padding: 0 8px; }
  .main { display: flex; flex-direction: column; padding: 12px; }
  .stage { order: -1; height: 460px; flex: none; } .legend { display: none; }
  .left, .rightcol { display: contents; } .chat { min-height: 300px; } .drawer { width: auto; right: 12px; }
  .grid2, .cols2, .form, .kpis { grid-template-columns: 1fr; } .tpls { grid-template-columns: 1fr 1fr; }
}

/* Connect AI: the headline as the landing's, three steps, a card per AI with its prompt */
.cnhero { max-width: 1400px; margin: 6px 0 22px; }   /* the AIs in the site's own colours (its palette rule: no orange) */
.cnhero h2 { font: 400 40px/1.08 'Archivo Black', sans-serif; color: #fff; margin: 0 0 12px; }
.cnhero h2 em { font-style: normal; color: var(--green); text-shadow: 0 0 22px rgba(0, 255, 136, .35); }
.cnhero p { margin: 0; color: var(--dim); font-size: 13.5px; max-width: 760px; }
.cnsteps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.cnstep { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line2); background: var(--navy); }
.cnstep > b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--cyan); color: var(--cyan); font-size: 12px; }
.cnstep > span { font-weight: 700; font-size: 13px; }
.cnstep > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cnstep .ckey { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 7px 10px; border-radius: 8px; background: var(--deep); border: 1px solid var(--line3); font-size: 12px; color: var(--text); }
.cnstep .chint { color: var(--dim2); font-size: 12px; }
.cnone { display: flex; flex-direction: column; gap: 12px; max-width: 980px; padding: 18px; border-radius: 14px; border: 1px solid rgba(0, 207, 255, .4); background: var(--navy); box-shadow: 0 0 22px rgba(0, 207, 255, .12); }
.cnone .cnh b { font: 400 18px 'Archivo Black', sans-serif; } .cnais1 { margin-left: auto; color: var(--dim2); font-size: 12px; }
.cnone .cngo { align-self: flex-start; padding: 12px 22px; }
.cnais { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cnai { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 14px; border: 1px solid var(--line2); background: var(--navy); transition: border-color .15s, box-shadow .15s; }
.cnai:hover { border-color: var(--ai); box-shadow: 0 0 22px color-mix(in srgb, var(--ai) 30%, transparent); }
.cnh { display: flex; align-items: center; gap: 10px; }
.cnh i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font: 400 17px 'Archivo Black', sans-serif; font-style: normal; color: #fff;
  background: color-mix(in srgb, var(--ai) 70%, #0a0e17); box-shadow: 0 0 14px color-mix(in srgb, var(--ai) 45%, transparent); }
.cnh b { font: 400 18px 'Archivo Black', sans-serif; }
.cnh a { margin-left: auto; color: var(--cyan); font-size: 12px; font-weight: 700; }
.cnhow { color: var(--dim2); font-size: 11.5px; }
.cnai pre, .cnone pre { flex: 1; margin: 0; padding: 10px 12px; border-radius: 9px; background: var(--deep); border: 1px solid var(--line3); white-space: pre-wrap; font: 12px/1.5 'JetBrains Mono', monospace; color: var(--dim); }
.cngo { padding: 11px 14px; border-radius: 10px; background: var(--green); color: #04140c; font-weight: 800; font-size: 12.5px; letter-spacing: .03em; box-shadow: 0 0 16px rgba(0, 255, 136, .35); }
.cngo:hover { background: #3dffa6; } .cngo.done, .cnstep .btn.done { background: var(--cyan); color: #04121a; }
@media (max-width: 1300px) { .cnais { grid-template-columns: repeat(2, 1fr); } }
/* a visit shows no Tasks, Memory, Waits for owner or Audit: the tabs, and the panel of what waits for the owner */
body.ro #tabs [data-tab="tasks"], body.ro #tabs [data-tab="approvals"], body.ro #tabs [data-tab="memory"], body.ro #tabs [data-tab="audit"],
body.ro #p-appr, body.ro #co-waiting { display: none !important; }
