/* Aibertus OS — from the approved artboards (apps/aibertus-os/design/*.dc.html).
   Ink #0E1A16, honey #E8A33D (accent only), ground #F5F7F6, white cards,
   IBM Plex Sans; Outfit only for the wordmark. */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url(/os/assets/fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url(/os/assets/fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url(/os/assets/fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url(/os/assets/fonts/ibm-plex-sans-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url(/os/assets/fonts/ibm-plex-sans-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url(/os/assets/fonts/ibm-plex-sans-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(/os/assets/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Outfit; font-weight: 600; font-display: swap; src: url(/os/assets/fonts/outfit-600.ttf) format("truetype"); }

:root {
  --ink: #0E1A16; --ink2: #16241F; --ink3: #24362F; --honey: #E8A33D; --honey2: #F4C36A;
  --ground: #F5F7F6; --text: #131A18; --muted: #5E6A66; --line: #E2E7E4; --line2: #EFF2F0; --field: #D5DCD8;
  --live-bg: #E2EFE6; --live: #2C6A3F; --pitch-bg: #F6E7CF; --pitch: #7A4A0E; --new-bg: #E3ECF7; --new: #1F3F66;
  --warn-bg: #FBF1E2; --warn: #8A5200; --bad-bg: #FBE9E7; --bad: #93231F; --sel: #FBF4E6;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); color: var(--text); font-family: "IBM Plex Sans", system-ui, sans-serif; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; }
a { color: #9A5F14; } a:hover { color: #6E4210; }
button, input, select, textarea { font: inherit; color: inherit; }
.boot { padding: 40px; color: var(--muted); font-family: Outfit, sans-serif; }
.sr { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
h1 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
h2 { margin: 0; font-size: 16px; font-weight: 600; }
.sub, .muted { color: var(--muted); }
.sub { font-size: 14px; margin: 4px 0 0; }
.small { font-size: 13px; } .xs { font-size: 12px; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Shell ── */
.app { display: flex; min-height: 100vh; }
.rail { flex: 0 0 248px; width: 248px; background: var(--ink); color: #E7ECEA; padding: 16px 14px 20px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.ws { display: flex; align-items: center; gap: 10px; width: 100%; background: var(--ink2); border: 1px solid #26382F; border-radius: 12px; padding: 8px 10px; min-height: 54px; color: #FAF7F0; cursor: pointer; margin-bottom: 4px; text-align: left; }
.ws:hover { background: #1C2D27; }
.ws img { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 6px; object-fit: contain; }
.wsname { display: block; font-family: Outfit, sans-serif; font-weight: 600; font-size: 16px; line-height: 1.2; }
.wssub { display: block; font-size: 11px; color: #8A9893; }
.wsmenu { background: var(--ink2); border: 1px solid #26382F; border-radius: 12px; padding: 6px; margin-bottom: 6px; display: flex; flex-direction: column; gap: 2px; }
.wsmenu button { background: transparent; border: 0; color: #E7ECEA; text-align: left; padding: 8px 10px; border-radius: 8px; cursor: pointer; display: flex; gap: 8px; align-items: center; }
.wsmenu button:hover, .wsmenu button.on { background: var(--ink3); }
.nav { display: flex; align-items: center; gap: 11px; padding: 0 10px; min-height: 38px; border-radius: 9px; color: #C3CDC9; text-decoration: none; font-size: 14px; }
.nav:hover { background: #1A2925; color: #FFFFFF; }
.nav.on { background: var(--ink3); color: #FFFFFF; }
.nav.on svg { color: var(--honey2); }
.count { margin-left: auto; background: var(--honey); color: var(--ink); font-size: 11px; font-weight: 600; border-radius: 999px; padding: 1px 7px; }
.navsec { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8A9893; padding: 16px 10px 6px; }
.me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px 10px 0; border-top: 1px solid #22332D; font-size: 13px; color: #C3CDC9; }
.me button { margin-left: auto; background: transparent; border: 1px solid #2E4239; color: #C3CDC9; border-radius: 8px; padding: 4px 8px; font-size: 12px; cursor: pointer; }
.av { width: 30px; height: 30px; border-radius: 50%; background: #F6E7CF; color: var(--ink); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.av.sm { width: 28px; height: 28px; font-size: 11px; border: 2px solid #FFFFFF; margin-left: -8px; }
.av.bot { background: var(--ink); color: var(--honey2); }
.av.client { background: #DCE4EE; color: #051D39; }
.av.sales { background: var(--new-bg); color: var(--new); }
.main { flex: 1 1 auto; min-width: 0; padding: 28px 36px 48px; display: flex; flex-direction: column; gap: 22px; }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; }
.phonebar, .tabs-phone, .sheet { display: none; }

/* ── Parts ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: #FAF7F0; border: 0; border-radius: 10px; padding: 0 16px; height: 40px; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #22342E; color: #FFFFFF; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: #FFFFFF; color: var(--text); border: 1px solid var(--field); }
.btn.ghost:hover { background: var(--line2); color: var(--text); }
.btn.honey { background: var(--honey); color: var(--ink); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn.block { width: 100%; }
.linkbtn { background: none; border: 0; color: #9A5F14; cursor: pointer; padding: 0; font-size: 14px; }
.card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.card.dark { background: var(--ink); border-color: var(--ink); color: #FAF7F0; }
.card.flush { padding: 0; overflow: hidden; }
.card.scroll { padding: 0; overflow-x: auto; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 999px; background: var(--line2); color: #4E5A56; white-space: nowrap; }
.chip.live { background: var(--live-bg); color: var(--live); }
.chip.pitch { background: var(--pitch-bg); color: var(--pitch); }
.chip.new { background: var(--new-bg); color: var(--new); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.dark { background: #26382F; color: #E7ECEA; }
.search { display: flex; align-items: center; gap: 8px; background: #FFFFFF; border: 1px solid var(--field); border-radius: 10px; height: 40px; padding: 0 12px; color: var(--muted); font-size: 14px; min-width: 0; }
.search input { border: 0; outline: 0; flex: 1; min-width: 0; background: transparent; color: var(--text); }
.select, .input, .textarea { height: 40px; border: 1px solid var(--field); border-radius: 10px; background: #FFFFFF; font-size: 14px; padding: 0 12px; color: var(--text); min-width: 0; }
.input, .textarea { width: 100%; }
.textarea { height: auto; min-height: 96px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.field > span { font-weight: 500; }
.form { display: flex; flex-direction: column; gap: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.colmain { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.colside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.side { flex: 1 1 320px; min-width: 0; }
.side-main { flex: 999 1 520px; min-width: 0; }
.grpn { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.kpi { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 4px; }
.stat { display: block; text-decoration: none; color: var(--text); background: var(--ground); border-radius: 12px; padding: 14px 16px; }
.stat:hover { background: #EEF1EF; color: var(--text); }
.sv { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 4px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line2); font-size: 14px; }
.li.top { align-items: flex-start; }
.li:first-of-type.nb, .nb { border-top: 0; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 14px; border-top: 1px solid var(--line2); }
.kv span:last-child { font-variant-numeric: tabular-nums; text-align: right; }
.logo { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; flex: 0 0 auto; letter-spacing: .02em; overflow: hidden; background: var(--line2); color: var(--text); }
.logo img { width: 100%; height: 100%; object-fit: contain; background: #FFFFFF; }
.logo.s36 { width: 36px; height: 36px; font-size: 12px; border-radius: 10px; }
.logo.s32 { width: 32px; height: 32px; font-size: 12px; border-radius: 9px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: #E8ECEA; border-radius: 12px; padding: 4px; }
.segb { border: 0; background: transparent; font-size: 14px; color: #3E4A46; border-radius: 9px; min-height: 36px; padding: 0 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.segb.on { background: #FFFFFF; color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(14,26,22,.12); }
.segn { font-size: 12px; color: var(--muted); font-weight: 500; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tab { border: 0; background: transparent; font-size: 14px; color: var(--muted); padding: 10px 14px; min-height: 44px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.on { color: var(--text); font-weight: 600; border-bottom-color: var(--ink); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .icon { width: 52px; height: 52px; border-radius: 16px; background: var(--line2); color: var(--muted); display: flex; align-items: center; justify-content: center; }
.empty h2 { color: var(--text); }
.empty p { margin: 0; max-width: 460px; line-height: 1.55; font-size: 14px; }
.note { background: var(--warn-bg); color: #4A3200; border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.note.ok { background: var(--live-bg); color: #1F4A2C; }
.note.bad { background: var(--bad-bg); color: #6B1915; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #FAF7F0; padding: 10px 16px; border-radius: 10px; font-size: 14px; z-index: 50; box-shadow: 0 8px 24px rgba(14,26,22,.25); max-width: calc(100vw - 32px); }
.toast.bad { background: var(--bad); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #FAFBFA; white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
tr.click { cursor: pointer; } tr.click:hover td { background: #FAFBFA; }
tr.sel td { background: var(--sel); }
tr.grp td { background: var(--ground); font-size: 12px; font-weight: 600; color: #3E4A46; text-transform: uppercase; letter-spacing: .05em; padding: 8px 14px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.dots { letter-spacing: 2px; color: #93A09B; }
.d { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; display: inline-block; background: #93A09B; }
.d.ok { background: var(--live); } .d.bad { background: var(--bad); } .d.warn { background: var(--honey); }
.svc { display: flex; gap: 10px; align-items: center; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.svcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.perm { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line2); font-size: 14px; cursor: pointer; }
.perm input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.perm.off { color: #93A09B; cursor: default; }
.wsc { border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; gap: 14px; align-items: flex-start; background: #FFFFFF; }
.wsc.here { border-color: var(--honey); background: #FFFCF6; }
.wsc img { width: 44px; height: 44px; flex: 0 0 auto; object-fit: contain; }
.bar { height: 8px; border-radius: 4px; background: var(--line2); overflow: hidden; flex: 1; }
.bar > span { display: block; height: 100%; background: var(--honey); border-radius: 4px; }
.brow { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr) 90px; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line2); font-size: 14px; }
.amt { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; white-space: nowrap; }
.opt { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--field); background: #FFFFFF; border-radius: 999px; padding: 0 14px; min-height: 40px; font-size: 14px; color: var(--text); cursor: pointer; }
.opt.on { background: var(--ink); border-color: var(--ink); color: #FAF7F0; }
.step { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line2); font-size: 14px; }
.tick { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; background: var(--line2); }
.tick > span { width: 8px; height: 8px; border-radius: 50%; background: #93A09B; }
.cb { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex: 0 0 auto; }
.crumbs { font-size: 13px; }
.crumbs a { text-decoration: none; }
.run { display: grid; grid-template-columns: 86px 14px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line2); font-size: 14px; }
.rd { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; background: #93A09B; }
.rd.ok { background: var(--live); } .rd.warn { background: var(--honey); } .rd.bad { background: var(--bad); }
.runbtn { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; width: 100%; }
.steps { margin-top: 10px; background: var(--ground); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 7px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.sch { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line2); font-size: 14px; }
.sw { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--ink); flex: 0 0 auto; }
.sw::after { content: ""; position: absolute; top: 3px; left: 19px; width: 16px; height: 16px; border-radius: 50%; background: var(--honey2); }
.sw.off { background: #C9D2CE; } .sw.off::after { left: 3px; background: #FFFFFF; }
.modal { position: fixed; inset: 0; background: rgba(14,26,22,.45); display: flex; align-items: flex-start; justify-content: center; padding: 60px 16px; z-index: 40; overflow-y: auto; }
.modal .card { width: 100%; max-width: 520px; }

/* Projects: cards */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.pc { background: #FFFFFF; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.pc:hover { box-shadow: 0 10px 30px rgba(14,26,22,.08); transform: translateY(-2px); }
.pctop { height: 92px; padding: 16px; display: flex; justify-content: space-between; align-items: flex-start; background: var(--line2); }
.pc .logo { width: 60px; height: 60px; border-radius: 16px; font-size: 19px; box-shadow: 0 4px 14px rgba(14,26,22,.14); border: 3px solid #FFFFFF; margin-top: 30px; }
.pcbody { padding: 30px 18px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pname { font-size: 17px; font-weight: 600; color: var(--text); text-decoration: none; }
.pname:hover { text-decoration: underline; color: var(--text); }
.pstatus { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--text); }
.pcfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid var(--line2); min-height: 62px; }
.pmini { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--text); }
.pmini:hover { border-color: #B9C3BF; color: var(--text); }
.prow { display: flex; gap: 14px; align-items: center; background: #FFFFFF; border: 1px solid var(--line); border-radius: 18px; padding: 14px; text-decoration: none; color: var(--text); }
.prow .logo { width: 48px; height: 48px; border-radius: 13px; box-shadow: 0 3px 10px rgba(14,26,22,.12); font-size: 14px; }

/* Project page */
.banner { background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.banner .band { height: 96px; background: var(--line2); }
.banner .head { padding: 0 24px 20px; display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; justify-content: space-between; }
.banner .logo { width: 88px; height: 88px; border-radius: 22px; font-size: 28px; border: 4px solid #FFFFFF; margin-top: -48px; box-shadow: 0 6px 18px rgba(14,26,22,.16); }
.banner h1 { font-size: 28px; }
.banner .tabs { padding: 0 16px; border-bottom: 0; border-top: 1px solid var(--line2); }
.roomcard .shot { background: var(--ink); padding: 14px; display: flex; gap: 10px; }
.roomcard .shot .side { width: 54px; border-radius: 6px; background: var(--ink2); display: flex; flex-direction: column; gap: 6px; padding: 8px 6px; }
.roomcard .shot .side span { height: 5px; border-radius: 3px; background: #2E4A40; }
.roomcard .shot .side span:first-child { background: var(--honey); width: 70%; height: 6px; }
.roomcard .shot .body { flex: 1; border-radius: 6px; background: #F3F4F1; padding: 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; height: 104px; }
.roomcard .shot .body span { background: #FFFFFF; border-radius: 4px; }
.roomcard .shot .body span.w2 { grid-column: span 2; }

/* Sign-in */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: var(--ink); }
.login .card { width: 100%; max-width: 400px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.wordmark { font-family: Outfit, sans-serif; font-weight: 600; font-size: 22px; }
.brand { display: flex; gap: 12px; align-items: center; }
.brand img { width: 40px; height: 40px; }

/* ── Phone (Dirk is mobile-first): the rail becomes a top bar + bottom tabs + a "More" sheet ── */
@media (max-width: 860px) {
  .app { flex-direction: column; }
  .rail { display: none; }
  .phonebar { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px; position: sticky; top: 0; background: var(--ground); z-index: 20; }
  .phonebar .brand img { width: 30px; height: 30px; }
  .phonebar .wordmark { font-size: 18px; }
  .phonebar .av { width: 34px; height: 34px; border: 0; cursor: pointer; }
  .main { padding: 8px 16px 110px; gap: 16px; }
  h1 { font-size: 22px; }
  .card { padding: 14px 16px; }
  .tabs-phone { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; background: #FFFFFF; border-top: 1px solid var(--line); padding: 8px 6px calc(10px + env(safe-area-inset-bottom)); z-index: 30; }
  .tabs-phone a, .tabs-phone button { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--muted); text-decoration: none; min-height: 44px; justify-content: center; position: relative; background: none; border: 0; cursor: pointer; }
  .tabs-phone .on { color: var(--ink); font-weight: 600; }
  .tabs-phone .badge { position: absolute; top: 0; left: 56%; background: var(--honey); color: var(--ink); font-size: 10px; font-weight: 600; border-radius: 999px; padding: 0 5px; }
  .sheet.open { display: flex; position: fixed; inset: 0; z-index: 35; background: rgba(14,26,22,.45); align-items: flex-end; }
  .sheet .rail { display: flex; position: static; width: 100%; flex: 1 1 auto; height: auto; max-height: 86vh; border-radius: 20px 20px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .sheet .nav { min-height: 44px; }
  .top .btn { height: 40px; }
  .banner .logo { width: 64px; height: 64px; font-size: 20px; margin-top: -34px; border-radius: 16px; }
  .banner .band { height: 64px; }
  .banner .head { padding: 0 16px 14px; }
  .banner h1 { font-size: 20px; }
  .banner .tabs { flex-wrap: nowrap; overflow-x: auto; padding: 0 8px; }
  .tab { padding: 10px 10px; white-space: nowrap; }
  .brow { grid-template-columns: minmax(0, 1fr) 80px; }
  .brow .bar { grid-column: 1 / -1; order: 3; }
  .run { grid-template-columns: 62px 12px minmax(0, 1fr); }
  .run > :last-child { grid-column: 3; justify-self: start; }
  .search { min-width: 0; width: 100%; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sv { font-size: 20px; }
  .kpi { font-size: 22px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .toast { bottom: 84px; }
}

/* The single sign-on form into a room (app.js enter): never shown. */
.hidden { display: none !important; }

/* Meetings (Riunioni) */
.mrow { text-decoration: none; color: var(--text); }
.mrow:hover { color: var(--text); background: var(--line2); }
.card h3 { margin: 16px 0 6px; font-size: 14px; font-weight: 600; }
.mp { margin: 8px 0 0; font-size: 14.5px; line-height: 1.6; }
.mlist { margin: 0; padding-left: 20px; font-size: 14.5px; line-height: 1.6; }
.pre { white-space: pre-wrap; line-height: 1.55; }
.recap { background: var(--ground); border-radius: 10px; padding: 12px 14px; margin: 12px 0 0; max-height: 320px; overflow: auto; }
.transcript { max-height: 600px; overflow-y: auto; margin-top: 8px; }
.tline { display: flex; gap: 10px; align-items: baseline; margin: 0; padding: 6px 8px; border-radius: 8px; font-size: 14px; line-height: 1.55; }
.tline .mono { flex: 0 0 auto; }
.tline.hit { background: var(--sel); }
.tline.here { background: var(--pitch-bg); }
.tcut { flex: 0 0 auto; color: var(--muted); text-decoration: none; opacity: .55; }
.tline:hover .tcut, .tcut:focus { opacity: 1; }

/* ── Round 2: Website & SEO, Ads, WhatsApp, Research & pitch (pages.js) ── */
.heat { position: relative; margin-top: 12px; aspect-ratio: 3 / 4; max-height: 640px; width: 100%; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.heat-wire { flex: 1 1 0; border-radius: 8px; background: var(--line2); }
.heat-wire.hero { flex: 2 1 0; background: #E9EEEB; }
.heat-cell { position: absolute; z-index: 1; min-width: 14px; min-height: 14px; border-radius: 50%; background: rgba(232,99,29,.85); box-shadow: 0 0 14px 6px rgba(232,163,61,.55); }
.barwrap { display: inline-flex; align-items: center; gap: 8px; min-width: 120px; justify-content: flex-end; }
.depthbar { flex: 0 0 90px; width: 90px; }
.hscroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.big { font-size: 22px; font-variant-numeric: tabular-nums; }
.tick.done { background: var(--live-bg); }
.tick.done > span { background: var(--live); }
.card.scroll .li { padding-left: 16px; padding-right: 16px; }
.card.scroll > .note { margin: 12px 16px 0; }
.deck { display: flex; flex-direction: column; gap: 18px; }
.slide { position: relative; background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; aspect-ratio: 16 / 9; padding: 6% 7%; display: flex; flex-direction: column; justify-content: center; gap: 12px; overflow: hidden; }
.slide h2 { font-family: Outfit, "IBM Plex Sans", sans-serif; font-size: clamp(20px, 3.4vw, 40px); line-height: 1.15; }
.slide p { margin: 0; font-size: clamp(14px, 1.7vw, 20px); line-height: 1.5; color: #2A3531; }
.slide.cover { background: var(--ink); color: #FAF7F0; border-color: var(--ink); }
.slide.cover h2 { color: #FAF7F0; }
.slide-n { position: absolute; right: 18px; bottom: 12px; font-size: 12px; color: var(--muted); }
@media print {
  .rail, .nav, .phonebar, .crumbs, .top .btn, .row .btn, .toast { display: none !important; }
  .main { padding: 0 !important; }
  .slide { break-after: page; border: 0; border-radius: 0; }
}

/* ── A project's Messages, Files and Money tabs (pages.js) ── */
.mrowbtn { width: 100%; background: none; border: 0; border-top: 1px solid var(--line2); text-align: left; cursor: pointer; font: inherit; color: var(--text); }
.mrowbtn:hover, .mrowbtn:focus-visible { background: var(--line2); }
.stack { display: flex; flex-direction: column; gap: 10px; }
.subcard { border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px 14px; }
.subcard .empty { padding: 20px 10px 12px; }
.msgtext { white-space: pre-wrap; font-size: 14px; line-height: 1.55; max-height: 50vh; overflow: auto; overflow-wrap: anywhere; }
.msgline { white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; }
.thread { max-height: 52vh; overflow-y: auto; }
.ftag { font-size: 10px; letter-spacing: .04em; background: var(--line2); color: #3E4A46; }
.ftag.dark { background: var(--ink); color: var(--honey2); }
.fname { display: block; color: var(--text); font-weight: 500; text-decoration: none; }
.fname:hover { text-decoration: underline; }
.tabs-phone.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) {
  .mrowbtn { padding-left: 4px; padding-right: 4px; }
  .preader.idle { display: none; }
  .invrow { flex-wrap: wrap; row-gap: 6px; }
  .invrow > .grow { flex: 1 1 100%; }
  .invrow > .amt { margin-left: auto; }
}
