@font-face { font-family: Fredoka; src: url(/fonts/fredoka-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Fredoka; src: url(/fonts/fredoka-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/Inter-Regular.otf); font-weight: 400; }
@font-face { font-family: Inter; src: url(/fonts/Inter-Medium.otf); font-weight: 500; }
@font-face { font-family: Inter; src: url(/fonts/Inter-SemiBold.otf); font-weight: 600; }
@font-face { font-family: Poppins; src: url(/fonts/Poppins-Medium.ttf); font-weight: 500; }
@font-face { font-family: Poppins; src: url(/fonts/Poppins-SemiBold.ttf); font-weight: 600; }
@font-face { font-family: Poppins; src: url(/fonts/Poppins-Bold.ttf); font-weight: 700; }
@font-face { font-family: Wordmark; src: url(/fonts/BigShoulders.ttf); font-weight: 100 900; }

:root {
  --ink: #1C2731; --oxford: #2A363F; --steel: #4E5D6B; --shadow: #8C9AA6; --platinum: #ECEEF0; --paper: #F4F4F1; --amber: #D9A04A;
  --ok: #3E7A62; --warn: #B7801F; --bad: #A64B43; --card: #FFFFFF; --line: #E0E1DC; --text: #1F2A33; --muted: #5D6B78;
  --head: #1C2731; --chrome: #FFFFFF; --chrome-text: #2A363F; --chrome-muted: #7A8793; --chrome-hover: #F1F2EF; --chrome-on: #FBF1DF; --chrome-line: #E6E7E2;
  --soft: #F7F7F4; --shadowc: rgba(28,39,49,.10);
  --r: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.5 Inter, system-ui, sans-serif; color: var(--text); background: var(--paper); }
h1, h2, h3 { font-family: Poppins, sans-serif; font-weight: 600; margin: 0; color: var(--head); }
h1 { font-size: 24px; } h2 { font-size: 18px; } h3 { font-size: 15px; }
a { color: var(--steel); }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; background: var(--card); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--shadow); outline-offset: 0; border-color: var(--shadow); }
textarea { resize: vertical; min-height: 70px; }
label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin: 10px 0 4px; letter-spacing: .02em; }

.btn { border: 0; border-radius: 8px; padding: 9px 16px; background: var(--oxford); color: #fff; font-weight: 600; }
.btn:hover { background: var(--ink); }
.btn.ghost { background: transparent; color: var(--oxford); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--card); }
.btn.small { padding: 5px 10px; font-size: 12px; }
.btn.danger { background: var(--bad); }
.btn:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.muted { color: var(--muted); } .small { font-size: 12px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); margin-right: 8px; vertical-align: middle; }
.dot.live { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--platinum); color: var(--oxford); }
.tag.ok { background: #DCEAE3; color: var(--ok); } .tag.warn { background: #F4E8D0; color: var(--warn); } .tag.bad { background: #F1DDDB; color: var(--bad); }
.tag.ai { background: var(--oxford); color: #fff; }
.stat b { display: block; font-family: Poppins; font-size: 26px; color: var(--ink); font-weight: 600; }
.stat span { font-size: 12px; color: var(--muted); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 9px 10px; border-bottom: 1px solid #ECECE8; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.empty { text-align: center; color: var(--muted); padding: 26px; }
.err { color: var(--bad); font-size: 13px; margin-top: 8px; }

/* layout */
.shell { display: grid; grid-template-columns: 248px 1fr; height: 100vh; }
.side { background: var(--ink); color: var(--platinum); padding: 18px 12px; overflow-y: auto; display: flex; flex-direction: column; }
.brand { font-family: Wordmark; font-weight: 900; font-size: 30px; letter-spacing: .04em; color: #fff; padding: 2px 10px 0; }
.brandline { position: relative; height: 2px; background: var(--steel); margin: 6px 10px 4px; border-radius: 2px; }
.brandline i { position: absolute; top: -3px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); transform: translateX(-50%); }
.pby { font-size: 10px; color: var(--shadow); padding: 0 10px 16px; letter-spacing: .08em; text-transform: uppercase; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--platinum); text-decoration: none; font-size: 13.5px; }
.nav a:hover { background: var(--oxford); }
.nav a.on { background: var(--steel); color: #fff; }
.nav a .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--shadow); }
.nav a.on .pip { background: var(--amber); }
.navhead { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--shadow); padding: 14px 10px 4px; display: flex; justify-content: space-between; }
.me { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--oxford); font-size: 12.5px; }
.main { overflow-y: auto; }
.top { padding: 22px 30px 0; }
.content { padding: 18px 30px 40px; }
.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 4px; }

/* segmented */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--card); }
.seg button { border: 0; background: transparent; padding: 7px 14px; font-weight: 600; color: var(--muted); font-size: 13px; }
.seg button.on { background: var(--oxford); color: #fff; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 5px 12px; font-size: 12.5px; color: var(--oxford); }
.chip.on { background: var(--oxford); color: #fff; border-color: var(--oxford); }

/* board */
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.col { background: #EDEDE9; border-radius: var(--r); padding: 10px; min-height: 140px; }
.col h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 2px 4px 8px; display: flex; justify-content: space-between; }
.item { background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 10px; margin-bottom: 8px; }
.item .t { font-weight: 600; font-size: 13px; }
.item .m { font-size: 11.5px; color: var(--muted); margin-top: 4px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.item select { padding: 3px 6px; font-size: 11.5px; width: auto; margin-top: 6px; }

/* setup */
.center { min-height: 100vh; display: grid; place-items: center; background: var(--ink); padding: 30px; }
.wizard { width: min(880px, 100%); background: var(--paper); border-radius: 18px; overflow: hidden; display: grid; grid-template-columns: 250px 1fr; min-height: 560px; }
.wizard .left { background: var(--oxford); color: var(--platinum); padding: 28px 22px; display: flex; flex-direction: column; }
.wizard .right { padding: 30px 34px; display: flex; flex-direction: column; }
.steps { margin-top: 26px; }
.steps div { padding: 7px 0; color: var(--shadow); font-size: 13.5px; }
.steps div.on { color: #fff; font-weight: 600; }
.steps div.done { color: var(--platinum); }
.pillar { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; background: var(--card); margin-bottom: 10px; }
.pillar .ph { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; padding: 6px 8px; border-radius: 7px; border: 1px solid transparent; cursor: pointer; }
.check:hover { background: var(--paper); }
.check input { width: auto; margin: 0; accent-color: var(--oxford); }
.login { width: min(400px, 100%); background: var(--paper); border-radius: 18px; padding: 34px; }

/* mascot chat */
.dock { position: fixed; right: 26px; bottom: 100px; width: 380px; height: min(560px, calc(100vh - 140px)); background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 14px 40px rgba(13,27,42,.25); display: flex; flex-direction: column; z-index: 21; overflow: hidden; }
.dock .dh { background: var(--ink); color: #fff; padding: 12px 14px; display: flex; gap: 10px; align-items: center; }
.dock .dh svg { width: 34px; height: 34px; }
.msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.msg { max-width: 88%; padding: 9px 12px; border-radius: 12px; white-space: pre-wrap; word-wrap: break-word; font-size: 13.5px; }
.msg.user { align-self: flex-end; background: var(--oxford); color: #fff; border-bottom-right-radius: 4px; }
.msg.assistant { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg .meta { display: block; font-size: 10.5px; color: var(--muted); margin-top: 6px; }
.confirm { align-self: stretch; background: #FFF8EA; border: 1px solid #EAD3A2; border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.composer { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--card); }
.composer textarea { min-height: 42px; max-height: 140px; }
.thinking { align-self: flex-start; font-size: 12px; color: var(--muted); }
.chatpage { display: grid; grid-template-columns: 240px 1fr; gap: 14px; height: calc(100vh - 150px); }
.chatpage .panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; overflow: hidden; }
.chatlist a { display: block; padding: 9px 12px; text-decoration: none; color: var(--text); border-bottom: 1px solid #EEE; font-size: 13px; }
.chatlist a.on { background: var(--paper); font-weight: 600; }
.bar { height: 8px; background: var(--platinum); border-radius: 9px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--steel); }
.bar i.hot { background: var(--warn); }
.modal-bg { position: fixed; inset: 0; background: rgba(13,27,42,.55); display: grid; place-items: center; z-index: 40; padding: 20px; }
.modal { background: var(--paper); border-radius: 16px; padding: 24px; width: min(560px, 100%); max-height: 90vh; overflow-y: auto; }
@media print { .side, .mascot-btn, .dock, .noprint { display: none !important; } .shell { display: block; height: auto; } .main { overflow: visible; } body { background: var(--card); } }

/* ---------- online platform ---------- */
.shell { grid-template-rows: 52px 1fr; }
.topbar { grid-column: 1 / 3; background: var(--ink); color: #fff; display: flex; align-items: center; gap: 14px; padding: 0 16px 0 10px; border-bottom: 1px solid var(--oxford); }
.side { padding-top: 12px; }
.waffle { width: 38px; height: 38px; border: 0; border-radius: 8px; background: transparent; color: var(--platinum); display: grid; place-items: center; }
.waffle:hover { background: var(--oxford); } .waffle svg { width: 20px; height: 20px; }
.tbco { color: var(--platinum); font-size: 13.5px; padding-left: 10px; border-left: 1px solid var(--steel); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--steel); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; text-decoration: none; }
.launcher { position: fixed; top: 58px; left: 10px; width: 372px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 40px rgba(13,27,42,.28); padding: 14px; z-index: 30; }
.ltiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tile { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s, border-color .15s; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(13,27,42,.10); border-color: var(--shadow); }
.tile .ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--oxford); color: #fff; }
.tile .ico svg { width: 22px; height: 22px; }
.tile .tn { font-family: Poppins; font-weight: 600; color: var(--ink); margin-top: 10px; }
.tile .ts { font-size: 12px; color: var(--muted); margin-top: 2px; min-height: 34px; }
.tile.soon .ico { background: var(--platinum); color: var(--steel); }
.tile.small { padding: 10px; text-align: center; } .tile.small .ico { margin: 0 auto; } .tile.small .tn { font-size: 12px; margin-top: 6px; }
.tile.pick { cursor: pointer; } .tile.pick.on { border-color: var(--oxford); box-shadow: 0 0 0 1px var(--oxford); } .tile.pick .ts { margin-bottom: 8px; }
.hero { background: linear-gradient(120deg, var(--ink), var(--oxford) 60%, var(--steel)); border-radius: 16px; padding: 22px 28px; display: flex; gap: 22px; align-items: center; }
.hero .hm { width: 130px; flex: none; }
.askbox { flex: 1; min-width: 260px; border: 0; padding: 12px 14px; border-radius: 10px; }
.amberbtn { background: var(--platinum); color: var(--ink); } .amberbtn:hover { background: var(--card); }
.opts { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.opts .chip { text-align: left; border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.opts .chip:hover { background: var(--oxford); color: #fff; border-color: var(--oxford); }
.thinking { display: flex; align-items: center; gap: 6px; } .thinking .tm { width: 30px; display: inline-block; }
.appcheck { align-items: flex-start; border: 1px solid var(--line); background: var(--card); padding: 10px; } .appcheck input { margin-top: 3px; }
.dock { bottom: 110px; } .dock .dh svg { width: 40px; height: 44px; }

/* landing */
.landing { min-height: 100vh; background: radial-gradient(1200px 600px at 80% 0%, var(--oxford), var(--ink)); color: #fff; padding: 0 6vw 60px; }
.lbar { display: flex; align-items: center; height: 72px; }
.lhero { display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; align-items: center; padding: 40px 0 30px; }
.lh { color: #fff; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.08; }
.lp { color: var(--platinum); font-size: 17px; max-width: 560px; margin: 16px 0; }
.lchip { border: 1px solid var(--steel); color: var(--platinum); border-radius: 99px; padding: 4px 12px; font-size: 12.5px; }
.lmasc { max-width: 300px; margin: 0 auto; width: 100%; }
.ledit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.edcard { background: var(--paper); color: var(--text); border-radius: 16px; padding: 24px; }
@media (max-width: 820px) { .lhero, .ledit { grid-template-columns: 1fr; } .lmasc { max-width: 180px; } }

/* mascot */
@keyframes m-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes m-hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes m-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@keyframes m-shadow { 0%, 100% { transform: scaleX(1); opacity: .18; } 50% { transform: scaleX(.82); opacity: .1; } }
@keyframes m-blink { 0%, 44%, 48%, 100% { transform: scaleY(1); } 46% { transform: scaleY(.08); } }
@keyframes m-glow { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes m-spin { to { transform: rotate(360deg); } }
@keyframes m-beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.3); } }
@keyframes m-wave { 0%, 100% { transform: rotate(-150deg); } 50% { transform: rotate(-115deg); } }
@keyframes m-cheer-l { 0%, 100% { transform: rotate(150deg); } 50% { transform: rotate(115deg); } }
@keyframes m-dot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }
@keyframes m-zz { 0% { opacity: 0; transform: translate(0, 4px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translate(4px, -8px); } }
@media (prefers-reduced-motion: reduce) { .masc * { animation: none !important; } }
.mbubble { position: fixed; right: 112px; bottom: 44px; max-width: 270px; background: var(--card); border: 1px solid var(--line); border-radius: 14px 14px 4px 14px; padding: 12px 30px 12px 14px; font-size: 13px; box-shadow: 0 10px 28px rgba(13,27,42,.2); z-index: 22; animation: m-pop .25s ease-out; }
.mbubble .chip { display: block; margin-top: 8px; cursor: pointer; background: var(--oxford); color: #fff; border-color: var(--oxford); }
.mbubble .mx { position: absolute; top: 4px; right: 6px; border: 0; background: transparent; color: var(--muted); font-size: 16px; }
@keyframes m-pop { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@media print { .mbubble { display: none; } }

/* ERP */
.tabs { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tabs a { padding: 9px 14px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 13.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); } .tabs a.on { color: var(--ink); border-bottom-color: var(--amber); }
.modal table input, .modal table select { padding: 6px 8px; }
@media print { .tabs, .topbar, .launcher { display: none !important; }
  body.printdoc #app { display: none; } body.printdoc .modal-bg { position: static; background: var(--card); padding: 0; display: block; } body.printdoc .modal { width: 100% !important; max-height: none; background: var(--card); padding: 0; } body.printdoc .modal > .row { display: none; } }

/* projects */
.pcard { cursor: pointer; } .pcard:hover { border-color: var(--shadow); } .pcard.drag { opacity: .4; } .pcard.donec .t { text-decoration: line-through; color: var(--muted); }
.col.over { outline: 2px dashed var(--shadow); outline-offset: -4px; }
.ttitle { font: 600 20px Poppins, sans-serif; border-color: transparent; padding: 6px 4px; margin: 2px 0 6px; } .ttitle:hover { border-color: var(--line); }
.tl { overflow-x: auto; } .tlrow { display: grid; grid-template-columns: 220px 1fr; align-items: center; min-width: 760px; border-bottom: 1px solid #ECECE8; }
.tlname { padding: 8px 10px 8px 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tltrack { position: relative; height: 34px; } .tlhead .tltrack span { position: absolute; top: 9px; font-size: 11px; color: var(--muted); transform: translateX(-50%); white-space: nowrap; }
.tlbar { position: absolute; top: 8px; height: 18px; border-radius: 9px; background: var(--steel); } .tlbar.done { background: var(--ok); opacity: .6; } .tlbar.late { background: var(--bad); }
.tltoday { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--amber); }
/* team chat */
.tcg { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 4px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.tcrow { display: flex; align-items: center; gap: 8px; padding: 8px 12px; text-decoration: none; color: var(--text); font-size: 13.5px; } .tcrow:hover { background: var(--paper); } .tcrow.on { background: var(--platinum); font-weight: 600; }
.tcname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tcun { background: var(--amber); color: #fff; border-radius: 99px; font-size: 11px; font-weight: 700; padding: 1px 7px; }
.tchead { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tcmsgs { gap: 2px; background: var(--card); } .tcm { max-width: 78%; } .tcm.mine { align-self: flex-end; }
.tch { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; } .tcm.mine .tch { flex-direction: row-reverse; }
.tcb { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; white-space: pre-wrap; word-wrap: break-word; font-size: 13.5px; margin-left: 34px; width: fit-content; }
.tcm.mine .tcb { background: var(--oxford); color: #fff; border-color: var(--oxford); margin: 0 34px 0 auto; } .tcm.mine .tcb a { color: var(--platinum); }
.tcmsgs ~ .composer { padding-right: 104px; }

/* official documents */
.a4modal { width: min(calc(210mm + 48px), 100%) !important; } .sheetwrap { overflow-x: auto; padding: 2px; }
.sheet { position: relative; width: 210mm; min-height: 297mm; background: var(--card); margin: 0 auto; box-shadow: 0 1px 10px rgba(13,27,42,.18); overflow: hidden; color: var(--text); }
.sheet .lh { position: absolute; top: var(--by); left: var(--bx); width: var(--bw); height: auto; max-height: 110mm; display: block; }
.sheet .lf { position: absolute; bottom: var(--by); left: var(--bx); width: var(--bw); height: auto; max-height: 110mm; display: block; }
.sheet.fullpage .lh { top: 0; left: 0; width: 210mm; height: 297mm; max-height: none; }
.a4t { width: 100%; border-collapse: collapse; position: relative; } .a4t > * > tr > td { padding: 0; border: 0; }
.sp-top { height: var(--top); } .sp-bot { height: var(--bot); } .a4t > tbody > tr > td.a4c { padding: 0 var(--side); vertical-align: top; }
.sheet.haslh .coname { display: none; } .signrow, .docprint tr, .official tr { break-inside: avoid; }
.sheet.guide .a4c > div { min-height: calc(297mm - var(--top) - var(--bot) - 1mm); box-sizing: border-box; border: 1px dashed var(--steel); padding: 5mm; display: flex; flex-direction: column; justify-content: space-between; }
.draftmark { text-align: center; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; color: var(--bad); border: 1px dashed var(--bad); border-radius: 8px; padding: 6px; margin-bottom: 14px; }
.signrow { display: flex; align-items: flex-end; gap: 16px; margin-top: 26px; }
.qrbox { display: flex; gap: 12px; align-items: center; } .qrbox img { width: 96px; height: 96px; }
.signbox { position: relative; text-align: center; min-width: 210px; } .signbox .sig { height: 52px; max-width: 200px; object-fit: contain; display: block; margin: 0 auto; position: relative; z-index: 1; }
.signbox .stamp { position: absolute; right: 100%; bottom: 0; height: 104px; max-width: 150px; object-fit: contain; opacity: .9; margin-right: 6px; }
.signline { border-top: 1px solid var(--ink); padding-top: 4px; font-weight: 600; }
.brandprev { background: repeating-conic-gradient(#ECECE8 0 25%, #fff 0 50%) 0 0 / 18px 18px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; }
.brandprev img { max-width: 100%; } .brandprev.wide img { max-height: 150px; } .brandprev.sq img { max-height: 130px; }
/* operations */
.steps2 { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; } .st2 { display: flex; gap: 2px; align-items: flex-start; opacity: .55; } .st2.ok, .st2.bad, .st2.cur { opacity: 1; }
.st2 .dot { margin-top: 6px; background: var(--shadow); } .st2.ok .dot { background: var(--ok); } .st2.bad .dot { background: var(--bad); } .st2.cur .dot { background: var(--amber); }
.tmark { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--ink); }
@media print { body.printdoc .modal { background: var(--card); } .draftmark { color: #000; border-color: #000; } }
@media print { body.printdoc .official .docprint .tag { display: none; } }
@media print { html, body { height: auto; } body.printdoc { background: var(--card); } body.printdoc .modal-bg { inset: auto; } body.printdoc .modal { overflow: visible; border-radius: 0; } body.printdoc .modal > h2, body.printdoc .modal > div:not(.row) { margin: 0 !important; }
  body.printdoc .sheetwrap { overflow: visible; padding: 0; } body.printdoc .sheet { box-shadow: none; min-height: 0; overflow: visible; position: static; margin: 0; }
  body.printdoc .sheet .lh, body.printdoc .sheet .lf { position: fixed; } body.printdoc.preprinted .sheet .lh, body.printdoc.preprinted .sheet .lf { visibility: hidden; }
  body.printdoc * { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
/* automations */
.bell { position: relative; background: none; border: 0; color: var(--platinum); cursor: pointer; padding: 6px; border-radius: 8px; display: grid; } .bell:hover { background: rgba(255,255,255,.08); } .bell svg { width: 20px; height: 20px; }
.bell i { position: absolute; top: 0; right: 0; min-width: 15px; height: 15px; border-radius: 99px; background: var(--amber); color: #fff; font: 700 10px/15px Inter, sans-serif; text-align: center; display: none; padding: 0 3px; } .bell.has i { display: block; }
.notes { left: auto; right: 16px; width: min(380px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; }
.note { display: block; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--text); border-left: 3px solid transparent; } .note:hover { background: var(--paper); } .note.new { border-left-color: var(--amber); background: #FBF6EA; }
.rec { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); } .rec:hover { border-color: var(--shadow); } .rec .tag { min-width: 86px; text-align: center; }
/* mail */
.mailpage { display: grid; grid-template-columns: 230px 360px 1fr; gap: 14px; height: calc(100vh - 150px); } .mailpage > .panel { min-height: 0; }
.mbox { padding: 8px; border-radius: 10px; margin-bottom: 4px; } .mbox.on { background: var(--paper); } .mbn { display: flex; gap: 6px; align-items: center; text-decoration: none; color: var(--text); }
.mfold { display: grid; margin-top: 6px; } .mfold a { padding: 6px 10px; border-radius: 8px; text-decoration: none; color: var(--steel); font-size: 14px; } .mfold a.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--amber); }
.mlist { overflow-y: auto; flex: 1; } .mrow { display: block; padding: 10px 12px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); } .mrow:hover { background: var(--paper); } .mrow.on { background: #EEF1F5; box-shadow: inset 3px 0 0 var(--steel); }
.mrow.unread b, .mrow.unread > div:nth-child(2) { font-weight: 700; color: var(--ink); } .mrow.unread { box-shadow: inset 3px 0 0 var(--amber); }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; } .star { color: var(--amber); }
.mread { padding: 18px 22px; overflow-y: auto; } .mhead h2 { margin: 0 0 12px; } .mbody { white-space: pre-wrap; line-height: 1.6; word-break: break-word; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.whocard { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-top: 12px; font-size: 14px; display: grid; gap: 4px; }
@media (max-width: 1100px) { .mailpage { grid-template-columns: 200px 1fr; } .mread { grid-column: 1 / -1; } }
.empty .masc { width: 104px; height: 114px; display: block; margin: 0 auto 10px; } .empty > div { max-width: 560px; margin: 0 auto; } .empty .btn { margin-top: 14px; }
/* studio */
.studio { display: grid; grid-template-columns: 340px 1fr; gap: 18px; align-items: start; } .studio-make { position: sticky; top: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--paper); padding: 4px; border-radius: 12px; margin-bottom: 14px; } .seg .chip { border: 0; padding: 9px; font-weight: 600; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--text); padding: 6px 12px; border-radius: 99px; cursor: pointer; font: inherit; font-size: 13px; } .chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.fromimg { display: flex; gap: 10px; align-items: center; background: var(--paper); border-radius: 10px; padding: 8px; margin-bottom: 10px; } .fromimg img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; align-items: start; }
.gcard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; } .gmedia { aspect-ratio: var(--ar); background: var(--paper); display: grid; place-items: center; }
.gmedia img, .gmedia video { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; } .gmedia video { cursor: default; }
.gwait { text-align: center; color: var(--steel); padding: 12px; } .gwait .masc { width: 70px; height: 76px; display: block; margin: 0 auto 6px; }
.gmedia:has(.gwait) { background: linear-gradient(110deg, var(--paper) 30%, #fff 50%, var(--paper) 70%); background-size: 250% 100%; animation: shimmer 1.6s linear infinite; } @keyframes shimmer { to { background-position: -150% 0; } }
.gfail { text-align: center; color: var(--bad); padding: 14px; } .gtext { padding: 10px 12px 4px; } .gact { padding: 4px 12px 12px; flex-wrap: wrap; gap: 6px; }
.ell2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) { .studio { grid-template-columns: 1fr; } .studio-make { position: static; } }
.jv { padding: 14px 16px; } .jvt { margin-top: 6px; } .jvt td, .jvt th { padding: 5px 8px; } .postedby { margin-top: 14px; padding-top: 8px; border-top: 1px dashed var(--line); }
/* files, memos, reports */
.fi { width: 14px; height: 16px; display: inline-block; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.4 11.1l-9.2 9.2a6 6 0 0 1-8.5-8.5l9.2-9.2a4 4 0 0 1 5.7 5.7l-9.2 9.2a2 2 0 0 1-2.8-2.8l8.5-8.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.4 11.1l-9.2 9.2a6 6 0 0 1-8.5-8.5l9.2-9.2a4 4 0 0 1 5.7 5.7l-9.2 9.2a2 2 0 0 1-2.8-2.8l8.5-8.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.attach { padding: 0 12px; color: var(--steel); } .composer.drop { outline: 2px dashed var(--steel); outline-offset: -4px; }
.filechip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); text-decoration: none; font-size: 14px; margin: 2px 6px 2px 0; } .filechip:hover { border-color: var(--steel); }
.tcfile img { display: block; max-width: 280px; max-height: 220px; border-radius: 10px; margin-bottom: 6px; } .tcm.mine .tcfile .filechip { background: rgba(255,255,255,.12); color: inherit; border-color: rgba(255,255,255,.3); }
.unreadmemo { border-left: 4px solid var(--amber); }
/* team room */
.room { background: linear-gradient(180deg, #fff 0%, #fff 55%, #EEF1F5 55%, #E6EAF0 100%); overflow: hidden; }
.seats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-top: 8px; }
.seat { position: relative; text-align: center; padding: 34px 6px 6px; border-radius: 14px; animation: walkin .6s cubic-bezier(.2,.9,.3,1.2) both; }
.seat:hover { background: rgba(255,255,255,.7); } @keyframes walkin { from { opacity: 0; transform: translateX(-28px) scale(.92); } to { opacity: 1; transform: none; } }
.seat-svg { width: 100%; max-width: 168px; height: auto; display: block; margin: 0 auto; }
.bubble { position: absolute; top: 0; left: 50%; transform: translateX(-50%); max-width: 92%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; padding: 4px 10px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: var(--steel); box-shadow: 0 2px 6px rgba(13,27,42,.08); }
.bubble.on { background: var(--ink); color: #fff; border-color: var(--ink); } .bubble.on::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); margin-right: 6px; vertical-align: 1px; animation: pulse 1.4s infinite; }
.plate { margin-top: 4px; line-height: 1.25; } .plate b { display: inline-block; font-size: 11px; letter-spacing: .06em; background: var(--oxford); color: #fff; border-radius: 6px; padding: 1px 7px; margin-right: 6px; } .plate span { font-weight: 600; color: var(--ink); }
.staffid { font: 700 12px Inter, sans-serif; letter-spacing: .05em; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; color: var(--oxford); }
.seat-svg .st-head { transform-origin: 80px 80px; animation: bob 3.2s ease-in-out infinite; } .seat-svg .st-eyes { transform-origin: 80px 68px; animation: blink 4.6s infinite; }
.seat-svg.busy .hl { animation: typeL .32s ease-in-out infinite alternate; } .seat-svg.busy .hr { animation: typeR .32s ease-in-out infinite alternate; } .seat-svg.busy .st-head { animation: nod 1.2s ease-in-out infinite; }
.seat-svg.busy .glow { animation: glow 2s ease-in-out infinite; } .seat-svg.busy .code rect { animation: code 1.6s steps(4) infinite; transform-origin: 102px 0; }
.seat-svg.idle .st-head { animation: look 6s ease-in-out infinite; } .seat-svg .steam path { animation: steam 2.2s ease-in-out infinite; } .seat-svg .steam path + path { animation-delay: .7s; }
@keyframes bob { 50% { transform: translateY(-1.5px); } } @keyframes nod { 50% { transform: translateY(1.5px) rotate(1.5deg); } } @keyframes look { 0%, 40%, 100% { transform: rotate(0); } 50%, 65% { transform: rotate(-7deg); } 75%, 90% { transform: rotate(6deg); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } } @keyframes typeL { to { transform: translateY(-3px); } } @keyframes typeR { from { transform: translateY(-3px); } to { transform: translateY(0); } }
@keyframes glow { 50% { fill: #C7D6E8; } } @keyframes code { 0% { transform: scaleX(.2); } 100% { transform: scaleX(1); } } @keyframes steam { 0% { opacity: 0; transform: translateY(4px); } 50% { opacity: .8; } 100% { opacity: 0; transform: translateY(-6px); } }
.seat.ai .aidesk { height: 128px; display: grid; place-items: end center; } .seat.ai .aidesk .masc { width: 104px; height: 114px; } .emptyseat { display: grid; place-items: center; min-height: 160px; border: 2px dashed var(--line); }
@media (prefers-reduced-motion: reduce) { .seat, .seat-svg * { animation: none !important; } }


/* ===== Honey Badger brand, themes and Habby ===== */
html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark;
  --ink: #0B1117; --oxford: #2E3D4C; --steel: #A9B6C2; --shadow: #6F7E8C; --platinum: #222E39; --paper: #0F161D; --amber: #E2AE5C;
  --card: #17212B; --line: #283440; --text: #E3E8ED; --muted: #94A2AF; --head: #F2F4F6;
  --chrome: #0B1117; --chrome-text: #D4DBE2; --chrome-muted: #7F8E9C; --chrome-hover: #16202A; --chrome-on: #2A2417; --chrome-line: #1D2731;
  --soft: #131C25; --shadowc: rgba(0,0,0,.45); }
.side { background: var(--chrome); color: var(--chrome-text); border-right: 1px solid var(--chrome-line); }
.topbar { background: var(--chrome); color: var(--chrome-text); border-bottom: 1px solid var(--chrome-line); }
.nav a { color: var(--chrome-text); } .nav a:hover { background: var(--chrome-hover); }
.nav a.on { background: var(--chrome-on); color: var(--head); box-shadow: inset 3px 0 0 var(--amber); }
.navhead, .pby { color: var(--chrome-muted); } .me { border-top-color: var(--chrome-line); }
.waffle { color: var(--chrome-text); } .waffle:hover { background: var(--chrome-hover); }
.tbco { color: var(--chrome-text); border-left-color: var(--chrome-line); }
.hbrand { display: inline-flex; align-items: center; line-height: 1; }
.hblogo { display: inline-flex; } .hblogo img { height: 26px; width: auto; display: block; }
.side .hblogo img { height: 24px; } .brand { color: var(--head); }
html:not([data-theme="dark"]) .for-dark, html[data-theme="dark"] .for-light { display: none !important; }
.themebtn { font-size: 17px; } html[data-theme="dark"] .themebtn .sun, html:not([data-theme="dark"]) .themebtn .moon { display: none; }
.btn { background: var(--oxford); color: #fff; } .btn:hover { background: var(--ink); }
html[data-theme="dark"] .btn { background: var(--amber); color: #141B22; } html[data-theme="dark"] .btn:hover { background: #F0C27A; }
html[data-theme="dark"] .btn.ghost, html[data-theme="dark"] .chip, html[data-theme="dark"] .tag, html[data-theme="dark"] a { color: var(--text); }
html[data-theme="dark"] .btn.ghost { background: transparent; } html[data-theme="dark"] .btn.ghost:hover { background: var(--platinum); }
html[data-theme="dark"] .tag.ai, html[data-theme="dark"] .chip.on, html[data-theme="dark"] .seg button.on { background: var(--amber); color: #141B22; border-color: var(--amber); }
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea { background: var(--soft); color: var(--text); border-color: var(--line); }
html[data-theme="dark"] .card, html[data-theme="dark"] .panel, html[data-theme="dark"] .tile, html[data-theme="dark"] .launcher, html[data-theme="dark"] .dock, html[data-theme="dark"] .mbubble { box-shadow: 0 1px 0 rgba(255,255,255,.02), 0 10px 30px var(--shadowc); }
html[data-theme="dark"] table th { color: var(--muted); } html[data-theme="dark"] tr:hover td { background: var(--soft); }
html[data-theme="dark"] .hero { background: linear-gradient(120deg, #1A2530, #24323F 60%, #3A4A58); }
html[data-theme="dark"] .msg.ai, html[data-theme="dark"] .tcb { background: var(--soft); color: var(--text); border-color: var(--line); }
html[data-theme="dark"] .tile .ico { background: var(--amber); color: #141B22; }
.hero { background: linear-gradient(120deg, #1C2731, #2A363F 60%, #4E5D6B); }
/* Habby */
.masc { position: relative; display: block; width: 100%; aspect-ratio: 1; }
.masc video, .masc img { width: 100%; height: 100%; object-fit: contain; display: block; background: transparent; pointer-events: none; }
.masc.head { border-radius: 50%; overflow: hidden; background: var(--chrome-on); }
.masc.head video, .masc.head img { object-fit: cover; object-position: 50% 4%; transform: scale(1.55); transform-origin: 50% 8%; }
.masc.happy, .masc.wave { animation: hb-hop .5s ease-in-out 2; } .masc.surprised { animation: hb-hop .35s ease-out 1; }
@keyframes hb-hop { 0%,100% { transform: none } 45% { transform: translateY(-8px) } }
.mascot-btn { position: fixed; right: 18px; bottom: 10px; width: 112px; height: 112px; border: 0; padding: 0; background: transparent; box-shadow: none; z-index: 40; transition: transform .2s; filter: drop-shadow(0 10px 14px rgba(0,0,0,.22)); }
.mascot-btn:hover { transform: scale(1.06) translateY(-2px); } .mascot-btn:active { transform: scale(.95); }
.mascot-btn .masc.head { border-radius: 0; overflow: visible; background: transparent; } .mascot-btn .masc.head video, .mascot-btn .masc.head img { object-fit: contain; transform: none; }
.mbubble { right: 136px; bottom: 54px; }
.dock .dh { background: var(--chrome); color: var(--head); border-bottom: 1px solid var(--line); }
.dock .dh .masc { width: 44px; height: 44px; flex: none; animation: none; border: 2px solid var(--amber); }
.empty .masc { width: 140px; margin: 0 auto 6px; }
.hero .hm .masc { width: 150px; margin: -24px 0 -24px; } .lmasc .masc { width: 260px; }
.thinking .tm .masc { width: 34px; display: inline-block; vertical-align: middle; }
.gwait .masc, .aidesk .masc { width: 96px; }
/* splash */
.splash { position: fixed; inset: 0; z-index: 100; background: radial-gradient(circle at 50% 42%, var(--card) 0, var(--paper) 72%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; transition: opacity .5s; cursor: pointer; }
.splash.out { opacity: 0; } .splash .sp-hab { width: 230px; animation: hb-rise .7s cubic-bezier(.2,1.3,.4,1) both; }
.splash .sp-logo img { height: 64px; } .splash .sp-logo { animation: hb-rise .6s .55s cubic-bezier(.2,1.2,.4,1) both; }
.splash .slogan { color: var(--muted); font: 600 19px Poppins, sans-serif; animation: hb-rise .6s 1s both; }
.splash .sp-by { position: absolute; bottom: 28px; font-size: 11px; letter-spacing: .16em; color: var(--muted); }
@keyframes hb-rise { from { opacity: 0; transform: translateY(26px) scale(.96) } to { opacity: 1; transform: none } }
@media (prefers-reduced-motion: reduce) { .splash { display: none } .masc { animation: none !important } }
/* call Habby */
.callhog { display: inline-flex; align-items: center; gap: 6px; } .callhog .masc { width: 22px; }
.hav .masc { width: 28px; border: 2px solid var(--amber); }
.tcb.hogb { background: linear-gradient(180deg, var(--chrome-on), var(--card)); border: 1px solid var(--line); border-left: 4px solid var(--amber); white-space: pre-wrap; }
.tcm.land { animation: hland .7s cubic-bezier(.3,1.5,.5,1) both; } @keyframes hland { from { transform: translateX(60px) scale(.9); opacity: 0 } to { transform: none; opacity: 1 } }
.hogwait { align-self: flex-start; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: 20px; padding: 2px 12px 2px 2px; }
.hogwait .masc { width: 40px; }
.rescue { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.rescue .flyer { position: absolute; width: 230px; height: 230px; filter: drop-shadow(0 16px 20px rgba(0,0,0,.25)); animation: hfly 3s cubic-bezier(.25,.9,.3,1) both; }
.rescue .flyer > * { width: 100%; height: 100%; object-fit: contain; }
.rescue .trail { position: absolute; left: 0; bottom: 120px; width: 75vw; height: 8px; border-radius: 8px; background: linear-gradient(90deg, transparent, rgba(217,160,74,.6), #fff); animation: htrail 3s ease both; }
.rescue .rbub { position: absolute; right: 250px; bottom: 300px; background: var(--oxford); color: #fff; font: 700 20px Poppins, sans-serif; padding: 10px 18px; border-radius: 18px 18px 4px 18px; animation: hbub 3s ease both; }
@keyframes hfly { 0% { left: -240px; bottom: 40px } 45% { left: calc(100% - 290px); bottom: 40px } 85% { left: calc(100% - 290px); bottom: 40px; opacity: 1 } 100% { left: calc(100% - 290px); bottom: 40px; opacity: 0 } }
@keyframes htrail { 0% { transform: scaleX(0); transform-origin: left; opacity: 0 } 30% { transform: scaleX(1); opacity: 1 } 55%, 100% { opacity: 0 } }
@keyframes hbub { 0%, 45% { opacity: 0; transform: translateY(10px) scale(.8) } 55%, 85% { opacity: 1; transform: none } 100% { opacity: 0 } }
@media (prefers-reduced-motion: reduce) { .rescue { display: none } }
/* tone picker */
.tones { display: flex; gap: 10px; flex-wrap: wrap; } .tones button { border: 2px solid var(--line); background: var(--card); border-radius: 14px; padding: 6px 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; color: var(--text); }
.tones button img { width: 52px; height: 52px; } .tones button.on { border-color: var(--amber); box-shadow: 0 0 0 2px var(--chrome-on); }

/* dark: text that used the ink colour */
html[data-theme="dark"] .btn.ghost,
html[data-theme="dark"] .tag,
html[data-theme="dark"] .stat b,
html[data-theme="dark"] .chip,
html[data-theme="dark"] .tile .tn,
html[data-theme="dark"] .amberbtn,
html[data-theme="dark"] .tabs a:hover,
html[data-theme="dark"] .tabs a.on,
html[data-theme="dark"] .mfold a.on,
html[data-theme="dark"] .mrow.unread b,
html[data-theme="dark"] .mrow.unread > div:nth-child(2),
html[data-theme="dark"] .filechip,
html[data-theme="dark"] .plate span,
html[data-theme="dark"] .staffid { color: var(--head); }
html[data-theme="dark"] .mbubble .chip { background: var(--amber); color: #141B22; border-color: var(--amber); }
html[data-theme="dark"] .hero .small, html[data-theme="dark"] .hero p { color: #C9D2DB; }

/* dark theme: team room, board columns and other fixed light surfaces */
html[data-theme="dark"] .col { background: #111A22; }
html[data-theme="dark"] .room { background: linear-gradient(180deg, var(--card) 0%, var(--card) 55%, #1D2833 55%, #1A242E 100%); }
html[data-theme="dark"] .seat:hover { background: rgba(255,255,255,.05); }
html[data-theme="dark"] .plate span { color: var(--head); }
html[data-theme="dark"] .plate b { background: #3A4A5A; }
html[data-theme="dark"] .mrow.on { background: #1D2833; }
html[data-theme="dark"] .brandprev { background: repeating-conic-gradient(#1D2833 0 25%, #17212B 0 50%) 0 0 / 18px 18px; }
html[data-theme="dark"] .gmedia:has(.gwait) { background: linear-gradient(110deg, var(--paper) 30%, #1D2833 50%, var(--paper) 70%); background-size: 250% 100%; }
html[data-theme="dark"] .lp { color: #C3CDD6; }
html[data-theme="dark"] .lchip { color: #C3CDD6; border-color: #4A5A69; }

/* phones and small tablets */
.menubtn { display: none; background: none; border: 0; color: inherit; font-size: 22px; line-height: 1; padding: 6px 8px; cursor: pointer; }
@media (max-width: 760px) {
  .menubtn { display: block; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .main { min-width: 0; overflow-x: hidden; }
  .main * { min-width: 0; max-width: 100%; }
  .topbar { gap: 6px; padding-right: 8px; } .topbar .hbrand img { height: 22px; width: auto; }
  .main [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .side { position: fixed; top: 52px; left: 0; bottom: 0; width: 260px; z-index: 60; transform: translateX(-100%); transition: transform .25s ease; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
  body.navopen .side { transform: none; }
  .main { grid-column: 1 / -1; }
  .tbco, .pby, .topbar .tag { display: none; }
  .g3, .g4 { grid-template-columns: 1fr 1fr; }
  .g2, .board, .ledit { grid-template-columns: 1fr; }
  .page, .main > div { padding-left: 14px; padding-right: 14px; }
  table { display: block; overflow-x: auto; }
  .mascot-btn { width: 76px; height: 76px; }
}
html[data-theme="dark"] .tag.ok { background: rgba(88,178,132,.18); color: #8FD3B0; }
html[data-theme="dark"] .tag.warn { background: rgba(226,174,92,.18); color: #F0C984; }
html[data-theme="dark"] .tag.bad { background: rgba(214,104,92,.2); color: #F0A399; }
/* accountant review: search boxes, clickable report lines */
.searchbox{width:100%}
tr.clickrow{cursor:pointer}
tr.clickrow:hover td{background:rgba(217,160,74,.10)}
tr.grouprow td{background:rgba(0,0,0,.035);border-top:1px solid rgba(0,0,0,.08)}
html.dark tr.grouprow td,[data-theme=dark] tr.grouprow td{background:rgba(255,255,255,.05)}
/* people picker */
.picker .pickerlist{max-height:190px;overflow-y:auto;border:1px solid var(--line,#ddd);border-radius:10px;padding:6px 8px;margin-top:6px}
.picker .pickerlist .check{display:flex;gap:8px;align-items:center;padding:3px 0}
.picker input[type=search]{width:100%}
/* landing films */
.lfilm{max-width:1180px;margin:0 auto;padding:10px 24px 30px;text-align:center}
.lfilm h2{color:#fff;font-size:30px;margin:0}
.lvids{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.lvid{margin:0;background:#0B1117;border-radius:16px;overflow:hidden;box-shadow:0 18px 40px rgba(0,0,0,.35);border:1px solid rgba(217,160,74,.35)}
.lvid video{width:100%;display:block;aspect-ratio:16/9;background:#000}
.lvid figcaption{color:#F4F4F1;font-weight:600;padding:10px 14px;text-align:left}
.lvid figcaption::before{content:'';display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--amber);margin-right:8px;vertical-align:1px}
@media (max-width:820px){.lvids{grid-template-columns:1fr}}
/* white intro page, in both themes */
.landing, html[data-theme="dark"] .landing { background: #FFFFFF; color: #1C2731; }
.landing .lhero { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.landing .lh, html[data-theme="dark"] .landing .lh { color: #1C2731; }
.landing .lp, html[data-theme="dark"] .landing .lp { color: #4A5A69; margin-left: auto; margin-right: auto; }
.landing .lhero .row { justify-content: center; }
.landing .lchip, html[data-theme="dark"] .landing .lchip { color: #1C2731; border-color: #D5DBE0; background: #F4F4F1; }
.landing .lfilm h2 { color: #1C2731; }
.landing .lvid { box-shadow: 0 14px 34px rgba(28,39,49,.14); }
html[data-theme] .landing .btn.ghost, html .landing .btn.ghost { color: #1C2731; border-color: #C9D1D8; background: #fff; }
html[data-theme] .landing .for-dark, html .landing .for-dark { display: none !important; } html[data-theme] .landing .for-light, html .landing .for-light { display: inline !important; }
.landing .pby { color: #6B7A88; }
/* landing service chips with info box */
.lchipw{position:relative;display:inline-block}
.landing button.lchip{cursor:pointer;font:inherit;font-size:12.5px;transition:background .15s,border-color .15s}
.landing button.lchip:hover,.lchipw.open button.lchip{background:#FFF4E0;border-color:var(--amber)}
.lpop{display:none;position:absolute;top:calc(100% + 10px);left:50%;transform:translateX(-50%);width:min(280px,86vw);background:#fff;color:#1C2731;border:1px solid #E3E7EB;border-radius:14px;box-shadow:0 16px 40px rgba(28,39,49,.16);padding:14px 16px;text-align:left;z-index:30;animation:lpopin .18s ease}
.lpop::before{content:'';position:absolute;top:-7px;left:50%;width:12px;height:12px;background:#fff;border-left:1px solid #E3E7EB;border-top:1px solid #E3E7EB;transform:translateX(-50%) rotate(45deg)}
.lchipw.open .lpop{display:block}
.lpop b{font-size:15px}.lpop p{margin:4px 0 8px;color:#4A5A69;font-size:13.5px}
.lpop ul{margin:0;padding:0;list-style:none}.lpop li{font-size:13px;padding:3px 0 3px 16px;position:relative}
.lpop li::before{content:'';position:absolute;left:2px;top:9px;width:7px;height:7px;border-radius:50%;background:var(--amber)}
@keyframes lpopin{from{opacity:0;transform:translateX(-50%) translateY(-4px)}to{opacity:1;transform:translateX(-50%)}}
