@font-face { font-family: "Inter"; font-weight: 400 700; font-display: swap; src: url(fonts/inter-latin.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 400 800; font-display: swap; src: url(fonts/outfit-latin.woff2) format("woff2"); }

:root {
  /* Truehost Cloud palette, shared with Truehost Students: blue #2D63D5, navy #091F53, yellow #FFB81C.
     (The variable names are older: --orange is the accent, --dark the sidebar.) */
  --orange: #2D63D5; --orange-deep: #214CA8; --orange-text: #2D63D5;
  --dark: #091F53; --dark-2: rgba(255,255,255,.08); --dark-3: #2D63D5; --dark-line: rgba(255,255,255,.1);
  --navy: #091F53; --yellow: #FFB81C;
  --ink: #14203A; --ink-2: #5E6B85; --gray: #F4F6FB; --line: #DFE5F0; --white: #fff;
  --good: #1F9D55; --mid: #E08A1E; --low: #C9461B;
  --head: Outfit, "Century Gothic", system-ui, sans-serif; --body: Inter, system-ui, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--body); color: var(--ink); background: var(--gray); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--ink-2); }
.nowrap { white-space: nowrap; }
code { font-family: ui-monospace, Consolas, monospace; background: rgba(0,0,0,.06); padding: 2px 6px; border-radius: 4px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--dark); color: var(--white); padding: 22px 14px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: inline-flex; align-items: baseline; gap: 8px; align-self: flex-start; margin: 4px 10px 24px; line-height: 1; color: #fff; }
.brand-mark { font: 800 22px var(--head); letter-spacing: -.02em; }
.brand-sub { font: 600 13px var(--body); color: var(--yellow); text-transform: uppercase; letter-spacing: .12em; }
.brand.dark { color: var(--navy); } .brand.dark .brand-sub { color: var(--orange); }
.side-back { margin: 14px 12px 0; font-size: 13.5px; color: #9FB0D8; }
.side-back:hover { color: #fff; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: #C9D4EE; font-size: 15px; font-weight: 500; }
.side nav a svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .85; }
.side nav a:hover { background: var(--dark-2); color: var(--white); }
.side nav a.on { background: var(--orange); color: var(--white); }
.side nav a.on svg { color: #fff; opacity: 1; }
.side nav em { margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 700; background: var(--yellow); color: var(--navy); border-radius: 999px; padding: 1px 8px; }
.nav-h { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7F93C4; margin: 18px 12px 6px; }
.logout { margin-top: auto; padding: 14px 12px 0; border-top: 1px solid var(--dark-line); }
.logout button { background: none; border: 0; color: #C9D4EE; cursor: pointer; font-size: 14px; }
.logout button:hover { color: #fff; }
.main { padding: 30px 36px 60px; max-width: 1180px; width: 100%; }
.main.wide { max-width: 1400px; }
.menu { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 30; transform: translateX(-100%); transition: transform .25s; }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.4); }
  .main { padding: 18px 16px 50px; }
  .menu { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); margin-bottom: 14px; cursor: pointer; font-size: 18px; }
}

/* ---------- page header, buttons, flash ---------- */
.page-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-h h1 { font-family: var(--head); font-weight: 800; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; }
.page-h p { color: var(--ink-2); font-size: 14.5px; margin-top: 4px; max-width: 70ch; }
.crumb a { color: var(--orange-text); font-weight: 600; font-size: 13.5px; }
.actions, .month-pick { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 7px; background: var(--orange); color: #fff; border: 0; border-radius: 10px; padding: 10px 16px; font-family: var(--head); font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; }
.btn:hover { background: var(--orange-deep); }
.btn.ghost { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--ink-2); }
.btn.sm { padding: 5px 10px; font-size: 12.5px; }
.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 14.5px; }
.flash.ok { background: #E8F6EE; color: #11663A; }
.flash.err { background: #FDECE7; color: #9A2F0E; }
.flash.warn { background: #FFF4E0; color: #8A5300; }
.card { background: var(--white); border-radius: 12px; border: 1px solid var(--line); padding: 22px; margin-bottom: 22px; }
.card h2 { font-family: var(--head); font-size: 18px; margin-bottom: 14px; }
.card h3 { font-family: var(--head); font-size: 16px; margin: 22px 0 10px; }

/* ---------- lists ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; }
.filters input, .filters select { padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); min-width: 0; }
.filters input { flex: 1 1 220px; }
.clear { font-size: 13.5px; color: var(--orange-text); font-weight: 600; }
.table-card { padding: 0; overflow: hidden; }
.table-meta { padding: 12px 18px; font-size: 13.5px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); font-weight: 700; padding: 10px 16px; background: #FAFAFB; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: #FFF8F5; }
td a { font-weight: 600; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--gray); color: var(--ink-2); white-space: nowrap; }
.p-new, .p-prospect, .p-lead, .p-sourced, .p-planned { background: #EAF1FE; color: #1D4FC4; }
.p-won, .p-active, .p-approved, .p-done, .p-placed, .p-live, .p-qualified { background: #E8F6EE; color: #11663A; }
.p-spam { background: #FDECE7; color: #9A2F0E; }
.p-lost, .p-rejected, .p-cancelled, .p-declined, .p-inactive, .p-closed { background: #F1F1F3; color: #6B6E76; }
.p-negotiation, .p-proposal, .p-onboarding, .p-offer, .p-shortlisted, .p-contacted, .p-demo, .p-interview, .p-screening, .p-discovery { background: #FFF4E0; color: #8A5300; }
.empty { padding: 36px 18px; text-align: center; color: var(--ink-2); }
.empty a { color: var(--orange-text); font-weight: 600; }
.pager { display: flex; justify-content: space-between; padding: 12px 18px; font-size: 14px; }
.pager a { color: var(--orange-text); font-weight: 600; }

/* ---------- forms ---------- */
.form .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
.form.narrow { max-width: 520px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 13.5px; }
.field label i { color: var(--orange); font-style: normal; }
.field input, .field select, .field textarea { padding: 10px 12px; border: 1px solid #D5D7DC; border-radius: 7px; background: var(--white); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus, .filters input:focus, .filters select:focus { outline: 2px solid rgba(45,99,213,.3); border-color: var(--orange); }
.field input[readonly] { background: var(--gray); color: var(--ink-2); }
.field small { font-size: 12.5px; color: var(--ink-2); }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--low); }
.field small.err { color: var(--low); font-weight: 600; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; }
.checks label { font-weight: 400; display: flex; gap: 8px; align-items: center; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; }
.danger { margin-top: -6px; }
.danger button { background: none; border: 0; color: var(--low); font-weight: 600; cursor: pointer; font-size: 13.5px; }
@media (max-width: 700px) { .form .grid { grid-template-columns: 1fr; } }

/* ---------- settings ---------- */
.targets { display: grid; gap: 12px; max-width: 640px; }
.targets label { display: grid; grid-template-columns: 1fr 160px; gap: 14px; align-items: center; }
.targets label span { font-weight: 600; font-size: 14.5px; }
.targets small { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-2); }
.targets input, .add-user input, .add-user select, .row-actions select { padding: 8px 10px; border: 1px solid #D5D7DC; border-radius: 7px; background: var(--white); }
.row-actions form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.add-user { display: flex; gap: 8px; flex-wrap: wrap; }
.add-user input { flex: 1 1 200px; }
.add-user select { flex: 1 1 280px; }
tbody tr:has(form) { cursor: default; }

/* ---------- login ---------- */
.login-body { min-height: 100vh; display: grid; place-items: center; background: var(--dark); padding: 16px; }
.login { width: 100%; max-width: 400px; background: var(--white); border-radius: 18px; padding: 30px 28px; display: grid; gap: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.login .brand { margin: 0 0 8px; }
.login h1 { font-family: var(--head); font-size: 24px; }
.login label { display: grid; gap: 6px; font-weight: 600; font-size: 13.5px; }
.login input { padding: 11px 12px; border: 1px solid #D5D7DC; border-radius: 7px; }
.login .btn { justify-content: center; padding: 12px; }

/* ---------- WhatsApp to-do and messages ---------- */
.wa-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 22px; }
.wa h2, .wa-card h2 { display: flex; align-items: center; gap: 8px; font-family: var(--head); font-size: 17px; margin-bottom: 10px; }
.wa h2 small, .wa-msg-block h3 small { font-family: var(--body); font-weight: 500; font-size: 13px; color: var(--ink-2); }
.wa h2 svg, .wa-card h2 svg, .wa-clear svg { width: 18px; height: 18px; color: #25A244; flex: none; }
.wa ul { list-style: none; max-height: 420px; overflow-y: auto; }
.wa li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.wa li a { font-weight: 600; }
.wa li small { display: block; color: var(--ink-2); font-size: 12.5px; }
.wa li.wa-done { opacity: .45; }
.wa li.wa-done .wa-act { visibility: hidden; }
.wa-act { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.wa-act svg { width: 14px; height: 14px; }
.wa-note { margin-top: 12px; font-size: 13px; }
.wa-note a { color: var(--orange-text); font-weight: 600; }
.wa-clear { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 14px; color: var(--ink-2); }
.wa-msg-block + .wa-msg-block { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.wa-msg-block h3 { font-size: 15px; margin-bottom: 8px; }
.wa-msg { white-space: pre-wrap; font-family: var(--body); font-size: 14px; background: #E7F7EC; border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; max-width: 62ch; }
.wa-settings textarea { width: 100%; }

.uni-also { display: block; color: var(--ink-2); font-size: 12px; margin-top: 2px; max-width: 60ch; }
.chip { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; }

/* ---------- bulk changes on list pages ---------- */
.table-meta:has(.bulk-bar) { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bulk-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bulk-bar select { padding: 5px 8px; border-radius: 7px; border: 1px solid var(--line); background: var(--white); font: inherit; font-size: 13px; }
.bulk-all { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
th.ck, td.ck { width: 1%; padding-right: 0; cursor: pointer; }
td.ck input, th.ck input, .bulk-all input { width: 16px; height: 16px; accent-color: var(--orange); cursor: pointer; }

/* ---------- Agencies & Resellers by type ---------- */
.rs-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 12px; margin-bottom: 16px; }
.rs-card { display: flex; flex-direction: column; gap: 2px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--rs, var(--ink-2)); border-radius: 12px; padding: 14px 16px; color: var(--ink); }
a.rs-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.rs-card.on { box-shadow: inset 0 0 0 2px var(--rs); }
.rs-card span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.rs-card b { font-family: var(--head); font-size: 30px; line-height: 1.1; color: var(--rs, var(--ink)); }
.rs-card small { font-size: 12.5px; color: var(--ink-2); }
.rs-card em { font-style: normal; font-size: 12.5px; font-weight: 600; margin-top: 6px; }
.rs-card em i { font-style: normal; font-weight: 500; color: var(--ink-2); }
.rs-card em i.up { color: #1F7A3A; } .rs-card em i.down { color: #B3261E; }
.rs-hosting { --rs: var(--orange); } .rs-domain { --rs: #2563EB; } .rs-both { --rs: #7C3AED; } .rs-agency { --rs: #0F766E; }

/* ---------- weekly projection ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -6px 0 16px; }
.tabs a { padding: 8px 14px; font-family: var(--head); font-weight: 700; font-size: 14.5px; color: var(--ink-2); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--orange); }
.tabs a:hover { color: var(--ink); }
.tab-intro { font-size: 13.5px; margin-bottom: 12px; }
.wk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.wk-head h2 { font-family: var(--head); font-size: 19px; }
.wk-head p { font-size: 13px; }
.wk-table td { vertical-align: middle; }
.wk-table td small { display: block; font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.wk-table td a b { color: var(--ink); }
.wk-num { font-family: var(--head); font-weight: 800; font-size: 17px; white-space: nowrap; }
.wk-num small { display: inline !important; font-family: var(--body); font-weight: 500; }
.wk-barcol { min-width: 120px; }
.bar.good i { background: var(--good); } .bar.mid i { background: var(--mid); } .bar.low i { background: var(--low); }
.wk-pill { display: inline-block; font-family: var(--head); font-weight: 800; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: #FDECE7; color: var(--low); white-space: nowrap; }
.wk-pill.good { background: #E8F6EE; color: var(--good); } .wk-pill.mid { background: #FFF4E0; color: #A46100; }

/* ---------- next week & activity notes ---------- */
.tabs a small { font-family: var(--body); font-weight: 500; font-size: 12px; color: var(--ink-2); margin-left: 4px; }
.wk-head .actions { gap: 6px; }
.wk-nudge { background: #FFF4E0; border: 1px solid #F5D9A8; color: #7A4A00; border-radius: 9px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 12px; }
.wk-nudge a { font-weight: 700; color: var(--orange-text); }
.wk-notes { min-width: 160px; max-width: 240px; }
.wk-notes a { font-size: 12.5px; font-weight: 600; color: var(--orange-text); }
.kpi-tabs { flex-wrap: wrap; margin: 0 0 18px; }
.note-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; margin-bottom: 16px; }
.note-stats div { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.note-stats span { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.note-stats b { font-family: var(--head); font-size: 26px; }
.note-stats small { font-size: 12.5px; color: var(--ink-2); }
.note-stats small a { color: var(--orange-text); font-weight: 600; }
.note-form textarea { width: 100%; margin: 10px 0 4px; }
.note-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.note-row label { font-weight: 600; font-size: 14px; }
.notes-week h2 { font-family: var(--head); font-size: 17px; margin-bottom: 8px; }
.notes-week h2 small { font-family: var(--body); font-weight: 500; font-size: 13px; color: var(--ink-2); margin-left: 6px; }
.notes { list-style: none; }
.notes li { padding: 10px 0; border-top: 1px solid var(--line); }
.notes li:first-child { border-top: 0; }
.notes p { white-space: pre-wrap; font-size: 14.5px; }
.note-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.linkish { background: none; border: 0; padding: 0; color: var(--ink-2); font: inherit; text-decoration: underline; cursor: pointer; }
.linkish:hover { color: #B3261E; }

/* ---------- formatted notes ---------- */
.note-body p + p, .note-body p + ul, .note-body ul + p { margin-top: 6px; }
.note-body ul { margin: 2px 0 0 18px; }
.note-body li { margin: 2px 0; }
.note-body a { color: var(--orange-text); text-decoration: underline; word-break: break-all; }
.wk-notes-sec h2 { font-family: var(--head); font-size: 19px; }
.note-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 14px; }
.note-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--white); }
.note-card header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.note-card header b { font-family: var(--head); font-size: 15.5px; color: var(--ink); }
.note-card h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin: 10px 0 4px; }
.note-list { list-style: none; }
.note-list > li { font-size: 14px; padding: 8px 0; border-top: 1px solid var(--line); }
.note-list > li:first-child { border-top: 0; padding-top: 2px; }
.note-list > li > small { display: block; font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.note-list.plan > li { border-left: 3px solid var(--orange); padding-left: 10px; border-top: 0; margin-top: 6px; }
.note-none { margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.note-none a { color: var(--orange-text); font-weight: 600; }
.note-form small { display: block; font-size: 12.5px; margin-bottom: 4px; }

/* ---------- Weekly Business Review ---------- */
.wbr-kicker { color: #1F9D6B !important; letter-spacing: .22em; text-transform: uppercase; font-size: 12px !important; font-weight: 800 !important; }
.wbr-split { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 6px 18px; margin-bottom: 18px; font-size: 13px; color: var(--ink-2); }
.wbr-split > div { display: grid; grid-template-columns: 4fr 1fr; gap: 6px; }
.wbr-split i { height: 8px; border-radius: 99px; background: #8A93A6; }
.wbr-split i:first-child { background: #1F9D6B; }
.wbr-split b { font-family: var(--head); color: var(--ink); }
.wbr-sec-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.wbr-sec-h h2 { font-family: var(--head); font-weight: 800; font-size: clamp(20px, 2.4vw, 26px); }
.wbr-tag { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.wbr-tag.up { color: #1F9D6B; } .wbr-tag.flat { color: #D98E1A; } .wbr-tag.down { color: #D64545; } .wbr-tag.last { color: #8A93A6; } .wbr-tag.commit { color: #6D6AF0; }
.wbr-time { background: var(--gray); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.wbr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; margin-bottom: 14px; }
.wbr-card { display: flex; gap: 14px; background: #F3F4F7; border-radius: 12px; padding: 16px; }
.wbr-arrow { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 24px; font-weight: 700; }
.wbr-card.up .wbr-arrow { background: #1F9D6B; } .wbr-card.flat .wbr-arrow { background: #D98E1A; } .wbr-card.down .wbr-arrow { background: #D64545; }
.wbr-card-b { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wbr-card-b > span { color: var(--ink-2); font-size: 14px; }
.wbr-card-b > b { font-family: var(--head); font-weight: 800; font-size: 30px; line-height: 1.1; }
.wbr-card.up .wbr-card-b > b { color: #1F9D6B; } .wbr-card.flat .wbr-card-b > b { color: #D98E1A; } .wbr-card.down .wbr-card-b > b { color: #D64545; }
.wbr-card-b small { font-size: 12.5px; color: var(--ink-2); }
.wbr-ev { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.wbr-ev summary { cursor: pointer; font-weight: 600; }
.wbr-ev ul { margin: 4px 0 0 16px; }
.wbr-call { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; display: flex; gap: 6px; align-items: center; }
.wbr-call select { font: inherit; padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.wbr-field { display: block; margin-top: 10px; font-size: 14.5px; }
.wbr-field b.up { color: #1F9D6B; } .wbr-field b.flat { color: #D98E1A; } .wbr-field b.down { color: #D64545; }
.wbr-field textarea { width: 100%; margin-top: 4px; }
.wbr-warn { list-style: none; margin-top: 10px; }
.wbr-warn li { font-size: 13px; color: #8A4B00; background: #FFF4E0; border-radius: 8px; padding: 6px 10px; margin-top: 4px; }
.wbr-last { display: grid; grid-template-columns: 150px repeat(3, 1fr); gap: 12px; align-items: center; margin-bottom: 12px; }
@media (max-width: 800px) { .wbr-last { grid-template-columns: 1fr 1fr; } }
.wbr-donut { width: 140px; height: 140px; }
.wbr-donut .track { fill: none; stroke: #E3E5EA; stroke-width: 22; }
.wbr-donut .val { fill: none; stroke: #1F9D6B; stroke-width: 22; }
.wbr-donut text { font-family: var(--head); font-weight: 800; font-size: 26px; fill: var(--ink); }
.wbr-box { background: #F3F4F7; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 4px; min-height: 110px; justify-content: center; }
.wbr-box b { font-family: var(--head); font-size: 20px; }
.wbr-box.met b { color: #1F9D6B; } .wbr-box.missed b { color: #D64545; } .wbr-box.rec b { color: var(--ink-2); text-align: center; }
.wbr-box span { font-size: 13.5px; color: var(--ink-2); }
.wbr-mini { width: 100%; font-size: 13.5px; margin-bottom: 6px; }
.wbr-mini td { padding: 4px 8px 4px 0; border-top: 1px solid var(--line); }
.wbr-sub { font-weight: 700; font-size: 14px; margin-top: 14px; }
.wbr-prev { list-style: none; font-size: 13.5px; }
.wbr-prev li { padding: 5px 0; border-top: 1px solid var(--line); }
.wbr-save { position: sticky; bottom: 12px; display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 22px; box-shadow: 0 10px 24px -14px rgba(0,0,0,.3); font-size: 13px; flex-wrap: wrap; }
.wbr-actions th { background: var(--dark, #1C1F2A); color: #fff; }
.wbr-actions td { vertical-align: middle; }
.prio { font-weight: 800; } .prio.growth { color: #1F9D6B; } .prio.stagnation { color: #D98E1A; } .prio.risk { color: #D64545; } .prio.reliability { color: #6D6AF0; } .prio.execution { color: #4B5563; }
.wbr-status { display: flex; gap: 6px; align-items: center; }
.wbr-status select { font: inherit; font-size: 13px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; }
.wbr-add-f { display: grid; grid-template-columns: 130px 2fr 1fr 150px 2fr auto; gap: 8px; }
@media (max-width: 900px) { .wbr-add-f { grid-template-columns: 1fr; } }
.wbr-add-f input, .wbr-add-f select { font: inherit; font-size: 13.5px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; min-width: 0; }
.wbr-rule { margin-top: 10px; font-style: italic; font-size: 14px; } .wbr-rule b { color: #6D6AF0; }
.pill.p-open { background: #EEF0FF; color: #4B48C9; } .pill.p-done { background: #E8F6EE; color: #1F7A3A; } .pill.p-dropped { background: #F1F1F1; color: #666; }
.wbr-rules { background: #1C1F2A; color: #fff; border-radius: 14px; padding: 26px; margin-bottom: 24px; }
.wbr-rules h2 { font-family: var(--head); font-weight: 800; font-size: 26px; margin-bottom: 16px; }
.wbr-rules > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; }
.wbr-rules article { background: #4A5060; border-radius: 12px; padding: 18px; }
.wbr-rules article b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-family: var(--head); font-size: 18px; margin-bottom: 10px; }
.wbr-rules article b.up { background: #1F9D6B; } .wbr-rules article b.flat { background: #D98E1A; } .wbr-rules article b.down { background: #D64545; }
.wbr-rules h3 { font-size: 16px; margin-bottom: 6px; }
.wbr-rules p, .wbr-template { font-size: 13.5px; color: #D5D8E0; }
.wbr-template { margin-top: 14px; }
@media print {
  .side, .menu, .no-print, .flash { display: none !important; }
  .shell { display: block; } .main { padding: 0; max-width: none; }
  .card, .wbr-rules { break-inside: avoid; box-shadow: none; }
  .wbr-sec { page-break-after: always; }
  textarea { border: 0; resize: none; padding: 0; }
  .wbr-ev[open] summary, .wbr-call { display: none; }
}

.wbr-nodata { font-size: 13px; color: var(--ink-2); margin: -8px 0 18px; }
.wbr-nodata select { font: inherit; font-size: 12.5px; padding: 2px 4px; border: 1px solid var(--line); border-radius: 6px; }

.wbr-card.none .wbr-arrow { background: #8A93A6; }
.wbr-card.none .wbr-card-b > b { color: #8A93A6; font-size: 20px; }
.wbr-none-intro { font-size: 13px; margin: -6px 0 12px; }
.wbr-acts { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #D5D8E0; font-size: 13.5px; }
.wbr-acts > p { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 4px; }
.wbr-acts ul { list-style: none; }
.wbr-acts li { padding: 4px 0; }
.wbr-acts li + li { border-top: 1px solid #E3E5EA; }
.wbr-acts li small { display: block; font-size: 11.5px; color: var(--ink-2); }
.wbr-acts a { display: inline-block; margin-top: 4px; font-size: 12.5px; font-weight: 700; color: var(--orange-text); }

/* ---------- WBR, role-based layout ---------- */
.wbr-verdict { background: #1C1F2A; color: #fff; border-radius: 14px; padding: 18px 22px; margin-bottom: 18px; }
.wbr-v-calls { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.wbr-v-calls span { font-family: var(--head); font-weight: 800; font-size: 16px; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.08); }
.wbr-v-calls .up { color: #5FD3A0; } .wbr-v-calls .flat { color: #F2B65A; } .wbr-v-calls .down { color: #F08080; } .wbr-v-calls .none { color: #B9BFCC; }
.wbr-verdict p { font-size: 14.5px; color: #D5D8E0; } .wbr-verdict p b { color: #fff; }
.wbr-part { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin: 6px 0 10px; }
.wbr-part b { font-family: var(--head); font-size: 15px; color: #1F9D6B; margin-right: 4px; letter-spacing: 0; }
.wbr-score td { vertical-align: middle; }
.wbr-score td small { display: block; font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.wbr-score td a b { color: var(--ink); }
.wbr-score select { font: inherit; font-size: 12.5px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.wbr-score tr.c-up td:first-child { box-shadow: inset 4px 0 0 #1F9D6B; } .wbr-score tr.c-flat td:first-child { box-shadow: inset 4px 0 0 #D98E1A; }
.wbr-score tr.c-down td:first-child { box-shadow: inset 4px 0 0 #D64545; } .wbr-score tr.c-none td:first-child { box-shadow: inset 4px 0 0 #B9BFCC; }
.wbr-trend { font-family: var(--head); font-weight: 800; font-size: 15px; white-space: nowrap; }
.wbr-trend.up { color: #1F9D6B; } .wbr-trend.flat { color: #D98E1A; } .wbr-trend.down { color: #D64545; } .wbr-trend.none { color: #8A93A6; }
.wbr-foot { font-size: 12.5px; color: var(--ink-2); margin-top: 10px; }
.wbr-lined { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.wbr-l-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.wbr-l-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.wbr-l-card header b { font-family: var(--head); font-size: 15.5px; color: var(--ink); }
.wbr-exp { font-size: 12px; font-weight: 700; color: #1F9D6B; background: #E8F6EE; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.wbr-l-h { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin: 8px 0 2px; }
.wbr-items { list-style: none; font-size: 13.5px; }
.wbr-items li { padding: 4px 0; border-top: 1px solid var(--line); } .wbr-items li:first-child { border-top: 0; }
.wbr-items a { font-weight: 600; color: var(--ink); } .wbr-items small { display: block; font-size: 12px; color: var(--ink-2); }
.wbr-more { display: inline-block; margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--orange-text); }
.wbr-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 14px; }
.wbr-col { border-radius: 12px; padding: 14px 16px; background: #F3F4F7; border-top: 4px solid #8A93A6; }
.wbr-col.up { border-top-color: #1F9D6B; } .wbr-col.flat { border-top-color: #D98E1A; } .wbr-col.down { border-top-color: #D64545; }
.wbr-col h3 { font-family: var(--head); font-size: 17px; display: flex; align-items: center; gap: 8px; }
.wbr-col h3 span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-size: 15px; background: #8A93A6; }
.wbr-col.up h3 span { background: #1F9D6B; } .wbr-col.flat h3 span { background: #D98E1A; } .wbr-col.down h3 span { background: #D64545; }
.wbr-col h3 small { font-family: var(--body); font-size: 13px; color: var(--ink-2); font-weight: 600; }
.wbr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.wbr-chips span { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 12.5px; font-weight: 600; }
.wbr-col label { display: block; font-size: 13px; font-weight: 600; margin-top: 8px; }
.wbr-col textarea { width: 100%; margin-top: 4px; font-weight: 400; }
.wbr-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 12px; }
.wbr-check { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 14px; }
.wbr-check li { display: flex; gap: 12px; background: #4A5060; border-radius: 12px; padding: 16px; }
.wbr-check li > b { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 16px; }
.wbr-check li.ok > b { background: #1F9D6B; } .wbr-check li.no > b { background: #D64545; }
.wbr-check h3 { font-size: 15px; margin-bottom: 4px; }
.wbr-check p { font-size: 13px; color: #D5D8E0; }

/* ---------- date range bar ---------- */
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; background: #EEF0F3; border-radius: 10px; padding: 4px; margin-bottom: 10px; max-width: 100%; }
.seg a { padding: 7px 14px; border-radius: 7px; font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.seg a:hover { background: rgba(255,255,255,.6); }
.seg a.on { background: var(--white); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.date-range { display: inline-flex; align-items: center; gap: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; }
.date-range svg { width: 16px; height: 16px; color: #6D6AF0; flex: none; }
.date-range input { border: 0 !important; padding: 8px 2px !important; background: transparent; font: inherit; font-size: 14px; min-width: 0; }
.date-range span { color: var(--ink-2); font-size: 13px; }

/* ---------- labs portal ---------- */
.small { font-size: 12.5px; }
.ok { color: var(--good); font-weight: 700; }
.err { color: var(--low); }
.link { color: var(--orange-text); font-weight: 600; font-size: 14px; }
.hp { position: absolute; left: -9999px; }
.top-gap { margin-top: 12px; }
.inline { display: inline; margin-left: 8px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.tile span { display: block; font-size: 12.5px; color: var(--ink-2); }
.tile b { display: block; font-family: var(--head); font-size: 26px; line-height: 1.25; }
.tile small { font-size: 12px; color: var(--ink-2); }
.tile .bar { margin-top: 8px; height: 6px; border-radius: 99px; background: var(--gray); overflow: hidden; }
.tile .bar i { display: block; height: 100%; background: var(--orange); }
.feed { list-style: none; display: grid; gap: 8px; font-size: 14px; }
.feed li span { display: inline-block; min-width: 150px; color: var(--ink-2); font-size: 12.5px; }
.btn.big { padding: 14px 26px; font-size: 16px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.lab-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-left: 5px solid var(--line); }
.lab-card p { color: var(--ink-2); max-width: 60ch; }
.lab-card .flash { margin: 10px 0 0; }
.lab-card.running { border-left-color: var(--good); }
.lab-card.starting { border-left-color: var(--mid); display: block; }
.lab-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spinner { width: 28px; height: 28px; margin-top: 12px; border: 3px solid var(--line); border-top-color: var(--orange); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.p-running { background: #E8F6EE; color: #11663A; }
.p-starting { background: #FFF4E0; color: #8A5300; }
.p-ended { background: #F1F1F3; color: #6B6E76; }
.p-failed { background: #FDECE7; color: #9A2F0E; }
.join { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.join .code { font-family: ui-monospace, Consolas, monospace; font-size: 30px; font-weight: 700; letter-spacing: .06em; color: var(--orange-text); }
.join .grow { flex: 1 1 320px; }
.copy { width: 100%; padding: 9px 12px; border: 1px solid #D5D7DC; border-radius: 7px; background: var(--gray); font-family: ui-monospace, Consolas, monospace; font-size: 13px; cursor: copy; margin: 4px 0; }
.copy.copied { outline: 2px solid var(--good); }
.add-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.add-row input, .add-row select, .stack textarea { padding: 9px 11px; border: 1px solid #D5D7DC; border-radius: 7px; background: var(--white); }
.add-row input { flex: 1 1 180px; }
.inline-label { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 14px; }
.inline-label input { width: 90px; flex: none; }
.stack { display: grid; gap: 12px; }
.stack textarea { width: 100%; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 400 !important; }
.check input { width: auto !important; }
.login .stack label { display: grid; gap: 6px; font-weight: 600; font-size: 13.5px; }
.login .stack small.err { font-weight: 600; }
.login p { font-size: 14px; }
.login a:not(.btn) { color: var(--orange-text); font-weight: 600; }
.fake-term { background: #111; color: #9f9; padding: 14px; border-radius: 8px; font-family: ui-monospace, Consolas, monospace; }
td form { display: inline; }
.publish { flex-basis: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; }
.publish p { margin-top: 4px; }
.publish.on { background: #F4FBF7; margin: 0 -22px -22px; padding: 14px 22px; border-radius: 0 0 12px 12px; }
.app-url { font-family: ui-monospace, Consolas, monospace; font-size: 14px; color: var(--good); font-weight: 700; word-break: break-all; }
.inline-label input[name=port] { width: 100px; padding: 8px 10px; border: 1px solid #D5D7DC; border-radius: 7px; }

/* guides */
.guide { max-width: 860px; }
.guide-step p, .guide-step li, .guide-step dd { line-height: 1.6; max-width: 72ch; }
.guide-step p + p, .guide-step ol + p, .guide-step pre + p { margin-top: 10px; }
.guide-step ol { padding-left: 22px; margin: 6px 0 10px; }
.guide-step h2 { display: flex; align-items: center; gap: 10px; }
.step-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 14px; flex-shrink: 0; }
pre.cmd { background: #1E1F24; color: #E9EAEE; border-radius: 8px; padding: 14px 16px; margin: 10px 0; overflow-x: auto; font-size: 13.5px; line-height: 1.55; }
pre.cmd code { background: none; padding: 0; color: inherit; white-space: pre; }
kbd { font-family: ui-monospace, Consolas, monospace; font-size: 12px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 1px 5px; background: var(--white); }
.faq dt { font-weight: 700; margin-top: 14px; }
.faq dd { margin: 4px 0 0; color: var(--ink-2); }

/* ---------- sign-in pages: split screen with the campus photo (same as Truehost Students) ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.auth { background: #fff; min-height: 100vh; display: flex; flex-direction: column; }
.auth-top { display: flex; align-items: center; gap: 16px; padding: 22px clamp(16px, 4vw, 48px); flex-wrap: wrap; }
.auth-logo { margin-right: auto; }
.auth-logo .brand { margin: 0; }
.auth-nav { display: flex; gap: 2px; background: #F1F3F8; border-radius: 999px; padding: 5px; }
.auth-nav a { color: #3B475F; font-weight: 500; font-size: 14px; padding: 8px 16px; border-radius: 999px; }
.auth-nav a:hover { background: #fff; color: var(--navy); }
.auth-wrap { flex: 1; display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; padding: 8px clamp(16px, 4vw, 48px) 24px; grid-template-columns: minmax(0, 1fr); }
.auth-l { display: flex; justify-content: center; }
.auth-box { width: 100%; max-width: 440px; display: grid; gap: 14px; }
.auth-h { font: 600 clamp(30px, 3.4vw, 44px)/1.12 var(--head); color: #0B1220; letter-spacing: -.02em; margin: 0 0 6px; }
.auth-h span { display: block; color: #A3ACBD; }
.auth-form { display: grid; gap: 12px; }
.auth-form input { height: 54px; border-radius: 999px; padding: 0 22px; font-size: 16px; border: 1.5px solid #D5DBE7; width: 100%; }
.auth-form input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(45,99,213,.15); }
.btn-dark, .btn-out { display: flex; align-items: center; justify-content: center; height: 54px; border-radius: 999px; font: 600 16px var(--body); cursor: pointer; width: 100%; }
.btn-dark { background: var(--navy); color: #fff; border: 0; }
.btn-dark:hover { background: #10307A; }
.btn-out { background: #fff; color: var(--navy); border: 1.5px solid #D5DBE7; }
.btn-out:hover { border-color: var(--navy); }
.auth-or { display: flex; align-items: center; gap: 12px; color: #8C96A8; font-size: 14px; margin: 8px 0 0; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: #E4E8F0; }
.auth-note, .auth-alt { color: #6B7588; font-size: 14px; margin: 0; }
.auth-alt { text-align: center; line-height: 1.7; }
.auth-box a:not(.btn-dark):not(.btn-out) { color: var(--orange); font-weight: 600; }
.auth-err { background: #FDECEA; color: #C0352B; border-radius: 14px; padding: 12px 16px; margin: 0; font-weight: 500; }
.auth-box .stack { display: grid; gap: 12px; }
.auth-box .stack label { display: grid; gap: 6px; font-weight: 600; font-size: 13.5px; color: #3B475F; }
.auth-box .stack input { height: 48px; border-radius: 12px; padding: 0 14px; border: 1.5px solid #D5DBE7; font-size: 15px; }
.auth-box .stack input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(45,99,213,.15); }
.auth-box .stack small.err { color: #C0352B; font-weight: 600; }
.auth-r { order: -1; }
.auth-r img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 20px; box-shadow: 0 24px 60px rgba(9,31,83,.18); }
.auth-foot { text-align: center; color: #8C96A8; font-size: 13px; padding: 0 16px 22px; }
@media (min-width: 960px) {
  .auth-wrap { grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); }
  .auth-r { order: 0; }
  .auth-r img { border-radius: 28px; }
}
@media (max-width: 959.98px) { .auth-r img { max-height: 220px; object-position: 30% 60%; } .auth-nav a { padding: 7px 11px; } }
@media (max-width: 460px) { .auth-nav a:first-child { display: none; } }
