/* Onboarding hub: the prototype's components, on top of styles.css. Markup from hub.js uses these classes. */
.hubv { --grad: linear-gradient(var(--accent), var(--accent)); }
.hubv .muted { color: var(--soft-muted); } .hubv .small { font-size: 12.5px; }
.hubv .grid { display: grid; gap: 18px; grid-template-columns: none; }
.hubv .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hubv .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hubv .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hubv .card { margin-bottom: 0; }
.hubv .stack > .card + .card, .hubv .stack > * + * { margin-top: 18px; }
.hubv label { margin-bottom: 0; }
.hubv label.field > span { display: block; font-size: 13px; font-weight: 500; color: var(--soft-muted); margin-bottom: 5px; }
.hubv .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; flex-shrink: 0; }
.hubv .avatar.lg { width: 60px; height: 60px; font-size: 20px; }
/* links styled as buttons */
a.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: #fff; color: var(--text); font-weight: 600; font-size: 14px; padding: 8px 16px; border-radius: 999px; white-space: nowrap; box-shadow: var(--btn-shadow); cursor: pointer; }
a.btn:hover { text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--clay), 0 1px 2px rgba(42,25,19,.06), 0 6px 14px -10px rgba(42,25,19,.28); }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(42,25,19,.12), 0 8px 18px -10px rgba(42,25,19,.5); }
.btn.primary:hover { background: var(--accent-deep); color: #fff; }
.btn.ghost { background: transparent; box-shadow: none; } .btn.ghost:hover { background: var(--surface-2); box-shadow: none; }
.btn.danger { color: var(--accent-deep); }
.btn.sm { padding: 5px 12px; font-size: 13px; box-shadow: inset 0 0 0 1.5px var(--border), 0 1px 1px rgba(42,25,19,.06), 0 3px 7px -5px rgba(42,25,19,.28); }
.btn.sm.primary { box-shadow: 0 1px 1px rgba(42,25,19,.1), 0 4px 9px -5px rgba(42,25,19,.55); }
.btn.sm.ghost { box-shadow: none; }
.btn.big { padding: 14px 28px; font-size: 16px; }
.btn .i { width: 17px; height: 17px; }
.hubv table.list th, .hubv table.list td { padding: 10px 12px; }
.hubv .tabs a { padding: 7px 16px; }
.hubv .page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.hubv .page-head h1 { margin: 0; }
.hubv .person { display: flex; gap: 12px; align-items: center; } .hubv .person b { display: block; font-weight: 600; }
.hubv .chip, .hubv .tile, .hubv .choice, .hubv .type-card, .hubv .step-pill, .hubv .wk-day, .hubv .tgl-o, .hubv .seg-btn, .hubv .help-btn, .hubv .step-link, .hubv .wp-step, .hubv .team-row { box-shadow: none; }
.hubv .tile.on, .hubv .choice.on, .hubv .type-card.on { box-shadow: none; }
.hubv .step-pill { background: none; box-shadow: none; padding: 6px 4px; }
.hubv .btn.sm.ghost.del, .hubv button.del { box-shadow: none; }
.hubv .task input[type=checkbox] { width: 18px; height: 18px; }
.hubv .toast { position: fixed; }
.hubv .code-input { font-size: 28px; letter-spacing: .5em; text-align: center; padding: 14px; border-radius: 16px; font-variant-numeric: tabular-nums; }
.hubv .doc-row { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); } .hubv .doc-row:last-child { border-bottom: none; }
.hubv .doc-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hubv .reader { max-height: 62vh; overflow-y: auto; border-radius: 10px; border: 1px solid var(--border); margin-bottom: 18px; } .hubv .reader .paper { box-shadow: none; padding: 36px 40px; }
.hubv .read-hint { font-size: 13px; color: var(--soft-muted); margin: -8px 0 16px; }
.hubv .pre { max-width: 860px; margin: 0 auto; padding: 36px 20px 80px; }
.hubv .login { max-width: 460px; margin: 10vh auto 40px; padding: 0 16px; text-align: center; }
.hubv .login img.logo { height: 28px; display: block; margin: 0 auto 30px; }
.hubv .login h1 { font-size: 36px; }
.hubv .login .btn.primary, .hubv .login button.p { justify-content: center; padding: 12px; font-size: 15px; width: 100%; margin-top: 22px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--text); color: #fff; padding: 11px 20px; border-radius: 999px; font-weight: 500; z-index: 100; box-shadow: var(--shadow); }
.toast.error { background: var(--bad); color: #fff; }
.tok { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--clay); border-radius: 5px; padding: 0 5px; font-family: "Figtree", sans-serif; font-size: 12px; font-weight: 600; white-space: nowrap; }
/* ---------- components ---------- */


.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack > * + * { margin-top: 18px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

.stat .num { font-size: 40px; font-weight: 400; letter-spacing: -.04em; line-height: 1.1; }
.stat .label { color: var(--muted); font-size: 13px; margin-top: 2px; }
.stat.bad .num { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }











.hubv .badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.hubv .badge.ok { background: var(--ok-soft); color: var(--ok); }
.hubv .badge.warn { background: var(--warn-soft); color: var(--warn); }
.hubv .badge.bad { background: var(--bad-soft); color: var(--bad); }
.hubv .badge.accent { background: var(--accent-soft); color: var(--accent); }

.progress { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
.progress.done > span { background: var(--ok); }

table.list { width: 100%; border-collapse: collapse; }
table.list th { text-align: left; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; padding: 8px 12px; border-bottom: 1px solid var(--border); }
table.list td { padding: 12px; border-bottom: 1px solid hsl(28 25% 93%); vertical-align: middle; }
table.list tr:last-child td { border-bottom: none; }
table.list tr.click { cursor: pointer; }
table.list tr.click:hover td { background: hsl(30 60% 97%); }


.person { display: flex; gap: 12px; align-items: center; }
.person b { display: block; font-weight: 600; }

/* ---------- forms ---------- */
label.field { display: block; }
label.field > span { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 5px; }



.form-section { border-top: 1px solid hsl(28 25% 92%); padding-top: 20px; margin-top: 20px; }
.form-section:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.lock { font-size: 11px; color: var(--muted); font-weight: 500; }

/* ---------- checklist ---------- */
.group-title { font-size: 11px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .28em; margin: 22px 0 6px; }
.group-title:first-child { margin-top: 0; }
.task { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; }
.task:hover { background: hsl(30 60% 97%); }
.task .title { flex: 1; }
.task.done .title { color: var(--muted); text-decoration: line-through; text-decoration-color: hsl(22 12% 70%); }
.task .del { visibility: hidden; }
.task:hover .del { visibility: visible; }

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 6px 13px; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; user-select: none; background: var(--surface); font-size: 13px; transition: all .15s; }
.chip:hover { border-color: hsl(18 50% 75%); }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.chip input { display: none; }

.tabs { display: flex; gap: 6px; margin-bottom: 22px; background: var(--surface-2); padding: 4px; border-radius: 999px; width: fit-content; max-width: 100%; overflow-x: auto; }
.tabs a { padding: 7px 16px; color: var(--muted); border-radius: 999px; font-weight: 500; white-space: nowrap; }
.tabs a.active { color: var(--accent); background: var(--surface); box-shadow: var(--shadow); }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs .soon { font-size: 10px; margin-left: 6px; padding: 0 6px; }

.hubv .empty { text-align: center; color: var(--muted); padding: 32px; }
.mail { white-space: pre-wrap; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; background: hsl(32 40% 96%); padding: 14px; border-radius: 12px; margin-top: 12px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 11px 20px; border-radius: 999px; font-weight: 500; z-index: 100; box-shadow: var(--shadow); }
.toast.error { background: var(--bad); color: #fff; }

.matrix th, .matrix td { text-align: center; }
.matrix th:first-child, .matrix td:first-child { text-align: left; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 12px 16px; border-right: none; border-bottom: 1px solid var(--border); }
  .brand { padding: 0 10px 0 0; }
  .brand .sub { display: none; }
  .nav { display: flex; flex-wrap: wrap; gap: 2px; }
  .nav-sep { display: none; }
  .main { padding: 24px 16px 60px; }
  h1 { font-size: 28px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
}

.banner-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 13px; margin: 8px 0; }
.tok { background: var(--accent-soft); color: var(--accent); border: 1px solid hsl(14 76% 42% / .35); border-radius: 5px; padding: 0 5px; font-family: -apple-system, sans-serif; font-size: 12px; font-weight: 600; white-space: nowrap; }

/* ---------- goals & KPIs ---------- */
.goals-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 18px; align-items: start; }
.resp-list { margin: 0; padding-left: 20px; }
.resp-list li { margin-bottom: 6px; }
.kpi-table td, .kpi-table th { padding: 9px 10px; }
.kpi-form { background: hsl(30 50% 98%); border: 1px solid hsl(28 25% 91%); border-radius: 12px; padding: 14px; }
.review-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid hsl(28 25% 92%); }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: var(--surface); }
.seg-btn { border: none; background: none; font: inherit; font-size: 12.5px; padding: 6px 11px; cursor: pointer; color: var(--muted); }
.seg-btn + .seg-btn { border-left: 1px solid var(--border); }
.seg-btn.on.hit { background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.seg-btn.on.partial { background: var(--warn-soft); color: var(--warn); font-weight: 600; }
.seg-btn.on.missed { background: var(--bad-soft); color: var(--bad); font-weight: 600; }
.review-note { margin-top: 10px; padding: 10px 14px; background: var(--surface-2); border-radius: 10px; font-style: italic; }
.banner { display: flex; gap: 12px; align-items: center; padding: 13px 18px; border-radius: 14px; font-size: 14px; }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner.info { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 900px) { .goals-grid { grid-template-columns: 1fr; } }



.stepper { display: flex; align-items: center; gap: 0; margin: 18px 0 26px; flex-wrap: wrap; }
.step-pill { display: inline-flex; align-items: center; gap: 8px; border: none; background: none; font: inherit; font-weight: 500; color: var(--muted); padding: 6px 4px; cursor: default; }
.step-pill.done { color: var(--text); cursor: pointer; }
.step-pill.current { color: var(--accent); font-weight: 600; }
.step-num { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.step-pill.current .step-num { background: var(--grad); color: #fff; box-shadow: 0 6px 16px -6px hsl(14 76% 42% / .6); }
.step-pill.done .step-num { background: var(--ok-soft); color: var(--ok); }
.step-line { width: 48px; height: 2px; background: var(--border); margin: 0 10px; border-radius: 2px; }
.wiz-card { padding: 26px 28px; }
.wiz-section { margin-top: 24px; padding-top: 22px; border-top: 1px solid hsl(28 25% 92%); }
.wiz-section h3, .wiz-card > h3 { margin-bottom: 12px; }
.wiz-nav { display: flex; align-items: center; gap: 10px; margin-top: 22px; position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(transparent, var(--bg) 40%); }

.reveal { animation: reveal .4s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.choice-grid { display: grid; gap: 10px; }
.choice-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.choice-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; }
.choice { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px; border: 1.5px solid var(--border); border-radius: 16px; background: var(--surface); font: inherit; color: var(--text); cursor: pointer; transition: all .15s; }
.choice.wide { align-items: flex-start; padding: 14px 18px; }
.choice:hover { border-color: hsl(18 50% 75%); transform: translateY(-1px); }
.choice.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 8px 20px -12px hsl(14 76% 42% / .6); }
.choice-icon { font-size: 26px; }
.choice-title { font-weight: 600; }
.choice-sub { font-size: 12.5px; color: var(--muted); }

.type-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.type-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; padding: 22px 20px 18px; border: 1.5px solid var(--border); border-radius: 20px; background: var(--surface); font: inherit; color: var(--text); cursor: pointer; transition: all .18s; box-shadow: var(--shadow); }
.type-card:hover { transform: translateY(-2px); border-color: hsl(18 50% 75%); }
.type-card.on { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--surface)); box-shadow: 0 16px 34px -16px hsl(14 76% 42% / .55); }
.type-icon { font-size: 34px; margin-bottom: 10px; }
.type-title { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.type-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.type-card ul { margin: 0; padding-left: 16px; font-size: 13px; color: var(--muted); }
.type-card li { margin-bottom: 3px; }
.type-check { position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 13px; font-weight: 700; display: none; align-items: center; justify-content: center; }
.type-card.on .type-check { display: flex; }

.tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tile { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); font: inherit; font-size: 13.5px; color: var(--text); cursor: pointer; text-align: left; transition: all .15s; }
.tile:hover { border-color: hsl(18 50% 75%); }
.tile.on { border-color: var(--accent); background: var(--accent-soft); }
.tile-check { width: 22px; height: 22px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 700; font-size: 12px; background: var(--surface-2); color: var(--muted); }
.tile.on .tile-check { background: var(--grad); color: #fff; }

.timeline { position: relative; }
.tl-group { margin-bottom: 14px; }
.tl-label { font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.tl-item { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 0 6px 18px; border-left: 2px solid hsl(18 60% 88%); margin-left: 5px; font-size: 13.5px; }
.tl-dot { position: absolute; left: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.tl-item.extra .tl-dot { background: var(--accent); }
.tl-title { flex: 1; }
.tl-date { font-size: 12px; color: var(--muted); white-space: nowrap; }

.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; }
.review-grid div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--surface-2); border-radius: 12px; }
.review-grid span { font-size: 12px; color: var(--muted); }
.next-list { display: flex; flex-direction: column; gap: 10px; }
.next-list div { display: flex; gap: 12px; align-items: center; }
.next-list p { margin: 0; }
.next-list span { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.switch-row { display: flex; gap: 14px; align-items: center; margin-top: 22px; padding: 16px 18px; border-radius: 14px; background: hsl(24 90% 98%); border: 1px solid hsl(18 60% 88%); cursor: pointer; }
.switch-row.disabled { opacity: .6; cursor: not-allowed; }
.switch-row input { display: none; }
.switch { width: 44px; height: 26px; border-radius: 999px; background: var(--border); position: relative; flex-shrink: 0; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .15s; }
.switch-row input:checked + .switch { background: var(--accent); }
.switch-row input:checked + .switch::after { left: 21px; }

@media (max-width: 900px) {
  .choice-grid.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .type-grid, .tile-grid, .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-line { width: 18px; margin: 0 4px; }
}
@media (max-width: 560px) { .type-grid, .tile-grid, .review-grid { grid-template-columns: 1fr; } }
/* cards */

.stat .num { font-family: "Figtree", sans-serif; font-weight: 600; font-size: 34px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat.bad .num { background: none; -webkit-text-fill-color: currentColor; color: var(--accent); }

/* sidebar */









/* buttons: pills on a soft shadow; press dips to 97% */















/* badges: pills; green only for done, amber for due, blush/red-deep for attention */
.hubv .badge { font-size: 13px; font-weight: 600; padding: 3px 11px; background: var(--surface-2); color: var(--soft-muted); }
.hubv .badge.ok { background: var(--ok-soft); color: var(--ok); }
.hubv .badge.warn { background: var(--warn-soft); color: var(--warn); }
.hubv .badge.bad { background: var(--accent-soft); color: var(--accent-deep); }
.hubv .badge.accent { background: var(--accent-soft); color: var(--accent-deep); }

.progress { background: var(--surface-2); }
.progress > span { background: var(--accent); }
.progress.done > span { background: var(--ok); }

/* forms */



label.field > span { font-size: 13px; font-weight: 500; color: var(--soft-muted); }
table.list th { font-size: 12px; letter-spacing: .06em; color: var(--soft-muted); }
table.list tr.click:hover td { background: #FFF9F5; }

/* avatars */
.avatar { background: var(--accent-soft); color: var(--accent-deep); font-weight: 600; }

/* tabs: the design-system toggle (track + white thumb) */
.tabs { background: var(--surface-2); border: 1px solid var(--border); padding: 3px; gap: 2px; }
.tabs a { color: var(--soft-muted); font-weight: 500; }
.tabs a.active { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(42,25,19,.08), 0 4px 12px -3px rgba(42,25,19,.16); }

/* choices: 20-round rows; picked = blush fill + red border */
.choice, .type-card, .tile, .chip { border-radius: 20px; border: 1.5px solid var(--border); box-shadow: none; }
.choice:hover, .type-card:hover, .tile:hover, .chip:hover { border-color: var(--clay); transform: none; }
.choice.on, .type-card.on, .tile.on, .chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--text); box-shadow: none; }
.choice-icon, .type-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--surface-2); color: var(--text); display: inline-flex; align-items: center; justify-content: center; font-size: 0; margin-bottom: 4px; }
.choice.on .choice-icon, .type-card.on .type-icon { background: #fff; color: var(--accent-deep); }
.type-icon { margin-bottom: 12px; }
.type-check { background: var(--accent); }
.tile { border-radius: 16px; }
.tile-check { border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1.5px #CDBFB6; color: transparent; }
.tile.on .tile-check { background: var(--accent); box-shadow: none; color: #fff; }
.tile-check .i { width: 14px; height: 14px; stroke-width: 2.6; }
.step-pill.current .step-num { background: var(--accent); box-shadow: 0 6px 16px -8px rgba(199,55,18,.6); }
.step-pill.current { color: var(--accent-deep); }
.step-num .i { width: 14px; height: 14px; stroke-width: 2.6; }
.tl-label { color: var(--accent); letter-spacing: .08em; font-weight: 700; }
.tl-dot { border-color: var(--accent); }
.tl-item { border-left-color: var(--border); }
.group-title { color: var(--accent); letter-spacing: .08em; font-weight: 700; font-size: 12px; }
.switch-row { background: #fff; border: 1px solid var(--border); border-radius: 20px; }
.switch-row input:checked + .switch { background: var(--accent); }
.next-list span { background: var(--surface-2); color: var(--text); border-radius: 12px; }
.next-list span .i { width: 18px; height: 18px; }
.review-grid div { background: #FFF9F5; border: 1px solid var(--border); border-radius: 16px; }
.review-grid b { font-variant-numeric: tabular-nums; }

/* banners */
.banner { border-radius: 20px; }
.banner.info { background: var(--accent-soft); color: var(--accent-deep); }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner .i { width: 18px; height: 18px; }
.banner-row { background: var(--accent-soft); color: var(--accent-deep); border-radius: 16px; }

.toast { background: var(--text); color: #fff; border-radius: 999px; }
.mail { background: #FFF9F5; border: 1px solid var(--border); border-radius: 16px; }
.review-note { background: #FFF9F5; border: 1px solid var(--border); font-style: normal; }
.seg-btn.on.hit { background: var(--ok-soft); color: var(--ok); }
.seg-btn.on.partial { background: var(--warn-soft); color: var(--warn); }
.seg-btn.on.missed { background: var(--accent-soft); color: var(--accent-deep); }

.icon-tile { width: 36px; height: 36px; border-radius: 12px; background: var(--surface-2); color: var(--text); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-tile.ok { background: var(--ok-soft); color: var(--ok); }
.icon-tile.accent { background: var(--accent-soft); color: var(--accent-deep); }
.icon-tile .i { width: 18px; height: 18px; }

/* ---------- dashboard ---------- */
.facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 6px; margin-bottom: 16px; }
.fact { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 18px; }
.fact + .fact { border-left: 1px solid var(--border); border-radius: 0; }
.fact-icon { color: var(--soft-muted); margin-bottom: 6px; }
.fact-num { font-size: 30px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.fact-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--soft-muted); }
.fact.warn .fact-num, .fact.warn .fact-icon { color: var(--warn); }
.fact.accent .fact-num, .fact.accent .fact-icon { color: var(--accent); }
.sign-strip { display: flex; align-items: center; gap: 14px; padding: 16px 20px; margin-bottom: 16px; border-color: var(--accent); background: linear-gradient(90deg, var(--accent-soft), #fff 70%); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; align-items: start; }

.week { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin-bottom: 18px; }
.wk-day { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 118px; padding: 10px 4px 8px; border: 1.5px solid transparent; border-radius: 16px; background: #FFF9F5; font: inherit; color: var(--text); cursor: pointer; transition: all .15s; }
.wk-day:hover { border-color: var(--border); }
.wk-day.on { background: var(--accent-soft); border-color: var(--accent); }
.wk-day.today { background: #fff; border-color: var(--border); }
.wk-day.today.on { background: var(--accent-soft); border-color: var(--accent); }
.wk-bar { width: 22px; border-radius: 8px; background: var(--clay); opacity: .55; transition: height .3s ease; }
.wk-bar.today { background: var(--accent); opacity: 1; }
.wk-bar.late { background: var(--amber); opacity: 1; }
.wk-n { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; min-height: 18px; }
.wk-label { font-size: 12px; color: var(--soft-muted); font-weight: 600; display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.wk-label small { font-weight: 500; font-size: 11px; }
.wk-day.has-late .wk-label { color: var(--warn); }

.dash-tasks { display: flex; flex-direction: column; gap: 14px; }
.tg { border: 1px solid var(--border); border-radius: 20px; padding: 6px 8px 8px; }
.tg-head { display: flex; align-items: center; gap: 10px; padding: 8px 8px 6px; color: var(--text); }
.tg-head:hover { text-decoration: none; }
.tg-head .avatar, .tg-row .avatar { width: 28px; height: 28px; font-size: 11px; }
.tg-head b { flex: 1; }
.tg-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; color: var(--text); }
.tg-row:hover { background: #FFF9F5; text-decoration: none; }
.tg-title { flex: 1; font-size: 14.5px; }
.tg-more { display: block; padding: 4px 8px 2px 38px; font-size: 13px; font-weight: 600; }
.due { font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--soft-muted); white-space: nowrap; }
.due.late { background: var(--warn-soft); color: var(--warn); }
.due.today { background: var(--accent-soft); color: var(--accent-deep); }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 10px; text-align: center; }
.empty-state .i { color: var(--ok); background: var(--ok-soft); border-radius: 50%; padding: 12px; width: 56px; height: 56px; margin-bottom: 4px; }

.lanes { display: flex; flex-direction: column; gap: 14px; }
.lane-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--soft-muted); margin-bottom: 8px; }
.lane-count { margin-left: auto; background: var(--surface-2); border-radius: 999px; padding: 0 8px; font-size: 12px; letter-spacing: 0; }
.lane-empty { font-size: 13px; color: var(--soft-muted); padding: 10px 12px; border: 1px dashed var(--border); border-radius: 16px; }
.mover { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 20px; color: var(--text); margin-bottom: 8px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.mover:hover { text-decoration: none; border-color: var(--clay); box-shadow: var(--shadow); }
.mover-ring { position: relative; width: 44px; height: 44px; flex-shrink: 0; }
.mover-ring .avatar { position: absolute; inset: 6px; width: 32px; height: 32px; font-size: 11px; }
.mover-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mover-meta { font-size: 12.5px; color: var(--soft-muted); }
.mover-next { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); width: fit-content; padding: 2px 9px 2px 6px; border-radius: 999px; background: var(--surface-2); }
.mover-next.accent { background: var(--accent-soft); color: var(--accent-deep); }
.mover-next.warn { background: var(--warn-soft); color: var(--warn); }
.mover-next.ok { background: var(--ok-soft); color: var(--ok); }
.mover-next { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: inline-block; }
.mover-next .i { margin-right: 3px; vertical-align: -2px; }
.mover-next .i { width: 13px; height: 13px; stroke-width: 2.4; }
.ring-track { fill: none; stroke: var(--surface-2); stroke-width: 4; }
.ring-fill { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.ring.done .ring-fill { stroke: var(--ok); }

@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fact:nth-child(4) { border-left: none; } }
@media (max-width: 600px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fact { border-left: none !important; } .week { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* questions from new people */
.hq { padding: 14px 0; border-top: 1px solid var(--border); }
.hq:first-of-type { border-top: none; padding-top: 0; }
.hq-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hq-msg { margin: 8px 0 10px; font-size: 15px; }
.hq-form { display: flex; flex-direction: column; gap: 8px; }
.hq-answer { padding: 10px 14px; border-radius: 14px; background: var(--ok-soft); }

/* equipment */
.eq-group { margin-bottom: 14px; }
.eq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.eq-tile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 20px; background: #fff; font: inherit; color: var(--text); text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.eq-tile:hover { border-color: var(--clay); }
.eq-tile.on { background: var(--accent-soft); border-color: var(--accent); }
.eq-tile.static { cursor: default; border-width: 1px; }
.eq-tile.static:hover { border-color: var(--border); }
.eq-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.eq-body b { font-size: 14px; font-weight: 600; }
.eq-note { font-size: 12px; color: var(--warn); margin-top: 2px; }
.eq-tile .tile-check { width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; background: #fff; box-shadow: inset 0 0 0 1.5px #CDBFB6; color: transparent; flex-shrink: 0; }
.eq-tile.on .tile-check { background: var(--accent); box-shadow: none; color: #fff; }
.eq-tile .tile-check .i { width: 14px; height: 14px; stroke-width: 2.6; }
.eq-tile.static .tile-check { display: none; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
.tgl-row { display: inline-flex; gap: 4px; padding: 3px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; width: fit-content; }
.tgl-o { border: none; background: none; font: inherit; font-weight: 500; padding: 7px 16px; border-radius: 999px; cursor: pointer; color: var(--soft-muted); }
.tgl-o.on { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(42,25,19,.08), 0 4px 12px -3px rgba(42,25,19,.16); }
@media (max-width: 760px) { .eq-grid { grid-template-columns: 1fr; } }
/* ---------- team hub (employee.css) ---------- */
/* Employee onboarding page — builds on styles.css */
.login { max-width: 460px; margin: 14vh auto 40px; padding: 0 16px; text-align: center; }
.login img.logo { height: 34px; display: block; margin: 0 auto 40px; }
.login h1 { font-size: 40px; }
.login form { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.login input { padding: 13px 16px; font-size: 15px; border-radius: 999px; }
.login .btn.primary { justify-content: center; padding: 12px; font-size: 15px; }
.demo-people { margin-top: 26px; }
.demo-people .chip { font-size: 12.5px; }

.topbar { display: flex; align-items: center; gap: 16px; padding: 18px 32px; border-bottom: 1px solid var(--border); background: hsl(36 38% 99% / .75); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10; }
.topbar img { height: 22px; }
.topbar .who { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.journey { display: grid; grid-template-columns: 290px 1fr; gap: 36px; max-width: 1120px; margin: 0 auto; padding: 36px 32px 80px; }
.steps { position: sticky; top: 90px; align-self: start; }
.steps .overall { margin-bottom: 18px; }
.steps .overall .num { font-size: 13px; color: var(--muted); margin-top: 8px; }
.step-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; color: var(--text); margin-bottom: 4px; cursor: pointer; border: 1px solid transparent; background: none; width: 100%; font: inherit; text-align: left; }
.step-link:hover { background: var(--surface-2); text-decoration: none; }
.step-link.current { background: var(--surface); box-shadow: var(--shadow); border-color: hsl(28 25% 91%); }
.step-link.locked { opacity: .45; cursor: not-allowed; }
.step-link .dot { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; background: var(--surface-2); }
.step-link.done .dot { background: var(--ok-soft); color: var(--ok); font-weight: 700; font-size: 13px; }
.step-link.current .dot { background: var(--grad); color: #fff; }
.step-link .name { flex: 1; font-weight: 500; }
.step-link .late { font-size: 11px; color: var(--bad); }

.step-card { padding: 34px 38px; }
.step-card h1 { font-size: 36px; margin-bottom: 8px; }
.step-card .intro { font-size: 16px; color: var(--muted); margin: 0 0 26px; max-width: 640px; }
.block { margin-bottom: 18px; }
.block.fresh { animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.block.text { font-size: 15px; line-height: 1.65; max-width: 680px; }
.block.text h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; margin: 26px 0 6px; }
.block.text h3:first-child { margin-top: 0; }
.block.text p { margin: 0 0 10px; }
.block.text ul, .block.text ol { margin: 4px 0 10px; padding-left: 22px; }
.block.text li { margin-bottom: 4px; }

.check-row { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border: 1.5px dashed hsl(18 60% 78%); border-radius: 14px; background: hsl(24 90% 98%); cursor: pointer; font-weight: 500; font-size: 15px; transition: all .15s; }
.check-row:hover { border-color: var(--accent); }
.check-row input { width: 22px; height: 22px; }
.check-row.on { border-style: solid; border-color: hsl(145 35% 75%); background: var(--ok-soft); color: var(--ok); }

.shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); max-width: 680px; }
.shot img { display: block; width: 100%; }
.shot .cap { font-size: 12.5px; color: var(--muted); padding: 8px 14px; background: var(--surface); }
.shot.placeholder { height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); border-style: dashed; }
.shot.placeholder .icon { font-size: 26px; opacity: .6; }

.video-wrap { border-radius: 18px; overflow: hidden; background: #000; box-shadow: var(--shadow); max-width: 820px; }
.video-wrap video { display: block; width: 100%; max-height: 62vh; }
.video-meta { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--muted); }

.more-hint { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin-top: 6px; }
.more-hint::before { content: ""; width: 20px; height: 1px; background: currentColor; }
.next-bar { display: flex; align-items: center; gap: 14px; margin-top: 30px; padding-top: 22px; border-top: 1px solid hsl(28 25% 92%); }

.banner { display: flex; gap: 12px; align-items: center; padding: 13px 18px; border-radius: 14px; margin-bottom: 20px; font-size: 14px; }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner.info { background: var(--accent-soft); color: var(--accent); }

.finish { text-align: center; padding: 60px 30px; }
.finish .big { font-size: 64px; }

@media (max-width: 860px) {
  .journey { grid-template-columns: 1fr; padding: 20px 16px 60px; gap: 18px; }
  .steps { position: static; }
  .step-list { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
  .step-link { width: auto; flex-shrink: 0; }
  .step-link .name, .step-link .late { display: none; }
  .step-card { padding: 22px 18px; }
  .step-card h1 { font-size: 28px; }
  .topbar { padding: 12px 16px; }
  .topbar .who .muted { display: none; }
}

.hub { max-width: 1180px; margin: 0 auto; padding: 36px 32px 80px; }
.top-tabs { display: flex; gap: 4px; margin-left: 24px; }
.top-tabs a { padding: 7px 14px; }
.team-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.team-list { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 4px; }
.team-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid transparent; background: none; font: inherit; color: var(--text); cursor: pointer; width: 100%; }
.team-row:hover { background: var(--surface-2); }
.team-row.on { background: var(--surface); box-shadow: var(--shadow); border-color: hsl(28 25% 91%); }
@media (max-width: 860px) {
  .hub { padding: 20px 16px 60px; }
  .team-layout { grid-template-columns: 1fr; }
  .team-list { position: static; }
  .top-tabs { margin-left: 0; order: 3; width: 100%; }
  .topbar { flex-wrap: wrap; }
}

/* Welcome video: the hero of step 1 */
.video-wrap.hero { position: relative; max-width: none; border-radius: 22px; padding: 4px; background: var(--grad); box-shadow: 0 24px 60px -24px hsl(14 76% 42% / .55); }
.video-wrap.hero video { border-radius: 18px; max-height: 70vh; background: #000; }
.play-overlay { position: absolute; inset: 4px; border: none; border-radius: 18px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(180deg, hsl(22 40% 10% / .15), hsl(22 40% 10% / .55)); color: #fff; font: inherit; }
.play-btn { width: 92px; height: 92px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; font-size: 34px; padding-left: 6px;
  box-shadow: 0 0 0 10px hsl(0 0% 100% / .18); animation: pulse 2s ease-in-out infinite; }
.play-label { font-size: 18px; font-weight: 600; letter-spacing: -.01em; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.play-overlay:hover .play-btn { transform: scale(1.06); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 10px hsl(0 0% 100% / .18); } 50% { box-shadow: 0 0 0 20px hsl(0 0% 100% / .06); } }

/* "Welcome to the winning team" pop-up */
.win-modal { position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: hsl(22 30% 12% / .45); backdrop-filter: blur(4px); animation: fade .25s ease both; }
.win-modal.out { animation: fade .25s ease reverse both; }
.win-card { background: var(--surface); border-radius: 26px; padding: 44px 40px 36px; max-width: 520px; width: 100%; text-align: center;
  box-shadow: 0 30px 80px -20px hsl(14 76% 30% / .5); animation: pop .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.win-card h1 { font-size: 40px; margin: 6px 0 10px; }
.win-card p { font-size: 16px; margin: 0 0 26px; }
.win-card .btn { padding: 12px 24px; font-size: 15px; }
.win-emoji { font-size: 64px; line-height: 1; margin-bottom: 14px; animation: bounce 1.2s ease-in-out infinite; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.85) translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* design system */
.step-link .dot { font-size: 0; color: var(--text); }
.step-link .dot .i { width: 16px; height: 16px; }
.step-link.done .dot { background: var(--ok-soft); color: var(--ok); }
.step-link.current .dot { background: var(--accent); color: #fff; }
.step-link.current { border-color: var(--border); }
.check-row { border: 1.5px solid var(--border); border-style: solid; background: #fff; border-radius: 20px; }
.check-row:hover { border-color: var(--clay); }
.check-row.on { background: var(--ok-soft); border-color: #CFE5D7; color: var(--ok); }
.video-wrap.hero { background: #fff; border: 1px solid var(--border); padding: 6px; border-radius: 24px; box-shadow: var(--shadow-raised); }
.video-wrap.hero video { border-radius: 18px; }
.play-overlay { inset: 6px; }
.play-btn { background: var(--accent); font-size: 0; color: #fff; padding-left: 4px; }
.play-btn .i { width: 34px; height: 34px; fill: #fff; stroke: #fff; }
.win-emoji, .finish .big { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 26px; background: var(--accent-soft); color: var(--accent-deep); display: flex; align-items: center; justify-content: center; font-size: 0; }
.win-emoji .i, .finish .big .i { width: 40px; height: 40px; }
.shot.placeholder .icon .i { width: 30px; height: 30px; color: var(--soft-muted); }
.block.text h3 { font-family: "Figtree", sans-serif; }
.step-card h1, .login h1, .hub h1 { font-family: "Young Serif", Georgia, serif; font-weight: 400; }
.banner > .i { flex-shrink: 0; }
.team-row.on { border-color: var(--border); }
.doc-icon { font-size: 0; color: var(--accent-deep); }
.doc-icon .i { width: 20px; height: 20px; }
.doc-icon.ok { background: var(--ok-soft); color: var(--ok); }

/* ---------- welcome home ---------- */
.home-hero { display: flex; align-items: center; gap: 30px; padding: 34px 38px; margin-bottom: 18px; }
.home-hero-text { flex: 1; }
.home-hero h1 { font-size: 40px; margin: 4px 0 0; }
.home-ring { position: relative; width: 132px; height: 132px; flex-shrink: 0; }
.home-ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.home-ring-label b { font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.home-ring-label span { font-size: 12px; color: var(--soft-muted); }
.ring-track { fill: none; stroke: var(--surface-2); }
.ring-fill { fill: none; stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.ring.done .ring-fill { stroke: var(--ok); }
.home-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 18px; align-items: start; }
.week-plan { display: flex; flex-direction: column; gap: 12px; }
.wp-day { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px; border-radius: 18px; border: 1px solid var(--border); }
.wp-day.today { border-color: var(--accent); background: #FFF9F5; }
.wp-label { display: flex; flex-direction: column; padding-top: 6px; }
.wp-label span { font-size: 12.5px; color: var(--soft-muted); }
.wp-steps { display: flex; flex-direction: column; gap: 6px; }
.wp-step { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: none; border-radius: 12px; background: none; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.wp-step:hover { background: var(--surface-2); }
.wp-step.done span:last-child { color: var(--soft-muted); text-decoration: line-through; text-decoration-color: #CDBFB6; }
.wp-step.locked { opacity: .5; cursor: default; }
.wp-step.locked:hover { background: none; }
.pp-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.pp-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pp-team { border-top: 1px solid var(--border); margin-top: 6px; }
.help-card { display: flex; gap: 14px; align-items: flex-start; }
.home-link { margin-bottom: 8px; }
@media (max-width: 860px) {
  .home-hero { flex-direction: column-reverse; align-items: flex-start; padding: 24px 20px; }
  .home-grid { grid-template-columns: 1fr; }
  .wp-day { grid-template-columns: 1fr; }
}

/* ---------- help on every step ---------- */
.help-zone { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.help-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; border: none; background: none; font: inherit; font-weight: 600; font-size: 14px; color: var(--soft-muted); cursor: pointer; padding: 6px 10px; border-radius: 999px; }
.help-btn:hover { background: var(--surface-2); color: var(--text); }
.help-form { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid var(--border); border-radius: 20px; background: #FFF9F5; }
.tgl-row { display: inline-flex; gap: 4px; padding: 3px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; width: fit-content; }
.tgl-o { border: none; background: none; font: inherit; font-weight: 500; padding: 7px 16px; border-radius: 999px; cursor: pointer; color: var(--soft-muted); }
.tgl-o.on { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(42,25,19,.08), 0 4px 12px -3px rgba(42,25,19,.16); }
.help-q { padding: 14px 16px; border: 1px solid var(--border); border-radius: 18px; background: #fff; }
.help-q.answered { border-color: #CFE5D7; }
.help-q-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--soft-muted); }
.help-q-head .badge { margin-left: auto; }
.help-msg { margin: 8px 0 0; }
.help-answer { margin-top: 10px; padding: 10px 14px; border-radius: 14px; background: var(--ok-soft); color: var(--text); }

/* ---------- documents (document.css) ---------- */
/* Contract documents: paper look on screen, clean A4 when printed / saved as PDF. */
.paper { background: #fff; color: #1a1a1a; max-width: 820px; margin: 0 auto; padding: 56px 64px; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 18px 50px -20px rgba(80,40,20,.25);
  font-family: "Times New Roman", Times, Georgia, serif; font-size: 13.5px; line-height: 1.5; }
.paper p { margin: 0 0 6px; }
.paper table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.paper td { border: 1px solid #d6d6d6; padding: 6px 10px; vertical-align: top; width: 50%; }
.paper ul, .paper ol { padding-left: 22px; margin: 4px 0 8px; }
.paper mark.missing { background: #ffe1d6; color: #b3360f; padding: 0 5px; border-radius: 4px; font-family: -apple-system, sans-serif; font-size: 12px; font-weight: 600; border: 1px dashed #e8835f; }
.paper .esig-note { color: #8a8580; font-size: 12px; }
.paper[contenteditable="true"] { outline: 2px dashed hsl(14 76% 42% / .35); outline-offset: 6px; }

.sig-page { margin-top: 48px; padding-top: 28px; border-top: 2px solid #eee; break-before: page; font-family: -apple-system, "Segoe UI", sans-serif; }
.sig-page h2 { font-size: 18px; margin: 0 0 2px; }
.sig-lead { color: #777; margin: 0 0 18px !important; }
.sig-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sig-box { border: 1px solid #e3e0d9; border-radius: 10px; padding: 14px 16px; }
.sig-title { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #888; margin-bottom: 6px; }
.sig-box img { height: 64px; max-width: 100%; display: block; object-fit: contain; object-position: left; }
.sig-name { font-weight: 600; border-top: 1px solid #ccc; padding-top: 4px; margin-top: 2px; }
.sig-meta { font-size: 11.5px; color: #777; margin-top: 4px; }
.sig-empty { height: 64px; display: flex; align-items: center; color: #bbb; font-style: italic; }
.cert { margin-top: 22px; font-size: 11.5px; color: #555; }
.cert h3 { font-size: 12px; margin: 0 0 6px; color: #333; }
.cert table td { border: none; border-bottom: 1px solid #eee; padding: 4px 6px; width: auto; }
.cert table td:first-child { white-space: nowrap; color: #888; width: 1%; }
.cert p { margin-top: 10px !important; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; word-break: break-all; }

/* Signing panel */
.sign-panel { display: flex; flex-direction: column; gap: 14px; }
.sp-tabs { display: flex; gap: 8px; }
.sp-preview { font-family: "Caveat", "Snell Roundhand", cursive; font-size: 44px; padding: 10px 18px; border: 1px dashed var(--border); border-radius: 12px; background: #fff; color: #1d1712; min-height: 76px; line-height: 1.2; }
.sp-preview.placeholder { color: #c9c2ba; }
.sp-canvas { width: 100%; height: 150px; border: 1px dashed var(--border); border-radius: 12px; background: #fff; touch-action: none; cursor: crosshair; }
.sp-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; }
.sp-consent input { margin-top: 2px; }

@media print {
  body { background: #fff !important; }
  .no-print { display: none !important; }
  .paper { box-shadow: none; padding: 0; max-width: none; border-radius: 0; }
  @page { size: A4; margin: 18mm 16mm; }
}
@media (max-width: 700px) {
  .paper { padding: 26px 18px; font-size: 13px; }
  .paper td { display: block; width: auto; }
  .sig-grid { grid-template-columns: 1fr; }
}
.paper td p { text-align: justify; }
/* team hub tabs in the top bar: a row of pills (the portal's .nav is a column, so these are set explicitly) */
.hubv .topbar .top-tabs { display: flex; flex-direction: row; gap: 4px; margin-left: 24px; }
.hubv .topbar .top-tabs a { padding: 7px 14px; border-radius: 999px; font-weight: 500; color: var(--soft-muted); display: inline-flex; align-items: center; gap: 6px; }
.hubv .topbar .top-tabs a:hover { background: var(--surface-2); color: var(--text); }
.hubv .topbar .top-tabs a.active { background: var(--accent-soft); color: var(--accent-deep); font-weight: 600; }
@media (max-width: 720px) { .hubv .topbar .top-tabs { margin-left: 0; order: 3; width: 100%; } }
