/* ==========================================================================
   EDUFLOW Design System v2
   Brand blue on white · Montserrat (display) + Open Sans (text & numbers)
   Colours sampled from the official EDUFLOW logo.
   ========================================================================== */

@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/opensans-var.woff") format("woff"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("../fonts/montserrat-var.woff") format("woff"); }

:root {
  --font: "Open Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Montserrat", "Open Sans", "Segoe UI", system-ui, sans-serif;

  /* Brand scale (logo: navy #03217D · royal #004EB7 · bright #007CFC · cyan #01CBFF) */
  --blue-950: #021452;
  --blue-900: #03217D;
  --blue-800: #052F96;
  --blue-700: #004EB7;
  --blue-600: #0661D6;
  --blue-500: #007CFC;
  --blue-400: #3D9BFF;
  --blue-300: #8EC3FF;
  --blue-200: #C7E0FF;
  --blue-100: #E2EFFF;
  --blue-50:  #F1F7FF;
  --cyan-400: #01CBFF;

  /* Neutrals with a faint blue cast so greys sit well next to the brand */
  --canvas: #F5F7FB;
  --surface: #FFFFFF;
  --surface-2: #F8FAFD;
  --surface-3: #EEF2F8;
  --border: #E2E8F1;
  --border-strong: #CBD4E1;

  --text: #0E1A33;
  --text-2: #3B4862;
  --text-3: #63708A;
  --text-4: #929CB1;

  /* Legacy names used by components, mapped onto the brand scale */
  --navy-950: #021452;
  --navy-900: #03217D;
  --navy-850: #052A8A;
  --navy-800: #052F96;
  --navy-700: #0A3EA8;
  --navy-300: #A9C2EE;
  --navy-200: #D3E1F8;
  --teal-800: #003E93;
  --teal-700: #004EB7;
  --teal-600: #0661D6;
  --teal-500: #007CFC;
  --teal-200: #C7E0FF;
  --teal-100: #E2EFFF;
  --teal-50:  #F1F7FF;

  --green-700: #08704C;
  --green-600: #0E8A5F;
  --green-50: #ECF8F2;

  --amber-700: #8F4E06;
  --amber-600: #B4650C;
  --amber-100: #FBE9C6;
  --amber-50:  #FFF8EA;

  --red-700: #A3241A;
  --red-600: #C2382A;
  --red-50:  #FDF1EF;

  --info-600: #0661D6;
  --info-50: #F1F7FF;

  --radius-sm: 3px;
  --radius: 5px;
  --radius-lg: 7px;
  --radius-xl: 10px;

  --shadow-xs: 0 1px 2px rgba(3, 33, 125, .05);
  --shadow-sm: 0 1px 2px rgba(3, 33, 125, .05), 0 1px 3px rgba(3, 33, 125, .06);
  --shadow-md: 0 6px 16px -6px rgba(3, 33, 125, .12), 0 2px 4px -2px rgba(3, 33, 125, .06);
  --shadow-lg: 0 24px 48px -16px rgba(3, 33, 125, .22), 0 6px 14px -6px rgba(3, 33, 125, .10);
  --ring: 0 0 0 3px rgba(0, 124, 252, .22);

  --sidebar-w: 252px;
  --sidebar-w-collapsed: 72px;
  --topbar-h: 62px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.6; color: var(--text);
  background: var(--canvas); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-700); text-decoration: none; }
a:hover { color: var(--teal-800); }
h1, h2, h3, h4 { margin: 0; color: var(--text); letter-spacing: -0.015em; line-height: 1.25; font-weight: 650; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-sm); }
.num, .tnum { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.icon { width: 18px; height: 18px; flex: none; }
.icon-sm { width: 15px; height: 15px; flex: none; }
.icon-lg { width: 22px; height: 22px; flex: none; }
.muted { color: var(--text-3); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 8px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.right { text-align: right; }
.hide-sm { }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px;
  border-radius: 5px; border: 1px solid transparent; font-weight: 550; font-size: 13.5px; cursor: pointer;
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease), transform .05s;
  white-space: nowrap; text-decoration: none; user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal-600); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, var(--shadow-xs); }
.btn-primary:hover { background: var(--teal-700); color: #fff; }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-800); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { background: var(--surface-2); color: var(--text); border-color: #BCC5CF; }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }
.btn-danger { background: var(--surface); color: var(--red-600); border-color: #F0C9C4; }
.btn-danger:hover { background: var(--red-50); color: var(--red-700); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 5px; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 6px; }
.btn-block { width: 100%; }
.btn-icon { width: 34px; padding: 0; }
.btn-icon.btn-sm { width: 30px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--teal-700); cursor: pointer; font-weight: 550; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--text-3); }
.input, .select, .textarea {
  width: 100%; height: 38px; padding: 0 12px; background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 5px; font-size: 14px; color: var(--text); transition: border-color .15s, box-shadow .15s; box-shadow: var(--shadow-xs);
}
.textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2366717F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.input:hover, .select:hover, .textarea:hover { border-color: #B6C0CB; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--teal-500); box-shadow: var(--ring); }
.input::placeholder, .textarea::placeholder { color: var(--text-4); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--red-600); }
.input-money { text-align: right; font-variant-numeric: tabular-nums; }
.input-affix { position: relative; }
.input-affix .input { padding-right: 34px; }
.input-affix .affix { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 13px; pointer-events: none; }
.input-otp { height: 52px; font-size: 24px; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; padding-left: .5em; }
.field-error { color: var(--red-600); font-size: 12.5px; font-weight: 500; }
.form-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px 16px; }
.col-12 { grid-column: span 12; } .col-8 { grid-column: span 8; } .col-6 { grid-column: span 6; } .col-4 { grid-column: span 4; } .col-3 { grid-column: span 3; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; color: var(--text-2); }
.checkbox input { width: 16px; height: 16px; accent-color: var(--teal-600); }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.radio-card { position: relative; display: block; border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card strong { display: block; font-size: 13.5px; }
.radio-card span { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.radio-card:has(input:checked) { border-color: var(--teal-500); box-shadow: var(--ring); background: var(--teal-50); }

/* ---------- Badges & chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--surface-3); color: var(--text-2); }
.badge-teal { background: var(--teal-50); color: var(--teal-700); box-shadow: inset 0 0 0 1px var(--teal-100); }
.badge-amber { background: var(--amber-50); color: var(--amber-700); box-shadow: inset 0 0 0 1px var(--amber-100); }
.badge-red { background: var(--red-50); color: var(--red-700); box-shadow: inset 0 0 0 1px #F6D3CE; }
.badge-navy { background: var(--navy-900); color: #fff; }
.badge-blue { background: var(--blue-50); color: var(--blue-700); box-shadow: inset 0 0 0 1px var(--blue-100); }
.badge-outline { background: transparent; box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--text-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.prio-high { color: var(--red-600); } .prio-normal { color: var(--blue-600); } .prio-low { color: var(--text-4); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); min-width: 0; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 0; }
.card-header h2, .card-header h3 { font-size: 14.5px; font-weight: 650; }
.card-header .sub { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.card-body { padding: 16px 18px 18px; }
.card-footer { padding: 12px 18px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.card-divider { border: 0; border-top: 1px solid var(--border); margin: 0; }
.section-title { font-size: 12px; font-weight: 650; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Metric tiles ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric { position: relative; display: block; padding: 16px 16px 15px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--text); box-shadow: var(--shadow-xs); transition: border-color .15s, box-shadow .15s, transform .15s var(--ease); min-width: 0; }
a.metric:hover { border-color: var(--teal-200); box-shadow: var(--shadow-md); color: var(--text); transform: translateY(-1px); }
.metric-label { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12.5px; font-weight: 550; color: var(--text-3); }
.metric-value { margin-top: 8px; font-size: 24px; font-weight: 680; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-value small { font-size: 14px; font-weight: 600; color: var(--text-3); letter-spacing: 0; }
.metric-foot { margin-top: 8px; font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.metric .go { position: absolute; top: 14px; right: 14px; color: var(--text-4); opacity: 0; transition: opacity .15s; }
a.metric:hover .go { opacity: 1; color: var(--teal-600); }
.metric-accent { background: var(--blue-900); border-color: var(--blue-900); color: #fff; }
.metric-accent .metric-label, .metric-accent .metric-foot { color: var(--navy-300); }
.metric-accent .metric-value small { color: var(--navy-300); }
a.metric-accent:hover { color: #fff; border-color: var(--navy-700); }
.estimate-tag { white-space: nowrap; font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--amber-700); background: var(--amber-50); border-radius: 4px; padding: 1px 5px; }
.metric-accent .estimate-tag { background: rgba(251,235,203,.12); color: #F3CD8A; }

.progress { height: 6px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 2px; background: var(--teal-500); transition: width .6s var(--ease); }
.progress.is-amber > span { background: #D9922B; }
.progress.is-navy > span { background: var(--navy-700); }
.metric-accent .progress { background: rgba(255,255,255,.12); }
.metric-accent .progress > span { background: var(--cyan-400); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.table th { text-align: left; font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .1s; }
.table tbody tr:hover { background: var(--surface-2); }
.table .num { text-align: right; white-space: nowrap; }
.table .actions { text-align: right; white-space: nowrap; width: 1%; }
.table tfoot td { font-weight: 650; background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 0; }
.table-compact td { padding: 8px 14px; }
.cell-title { font-weight: 550; color: var(--text); }
.cell-sub { font-size: 12px; color: var(--text-3); margin-top: 1px; }

/* ---------- Tabs / segmented ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px; color: var(--text-3); font-weight: 550; font-size: 13.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); border-color: var(--teal-600); }
.tab .count { font-size: 11px; font-weight: 650; background: var(--surface-3); color: var(--text-2); border-radius: 4px; padding: 1px 7px; }
.tab.is-active .count { background: var(--teal-50); color: var(--teal-700); }
.tab.is-alert .count { background: var(--red-50); color: var(--red-700); }
.segmented { display: inline-flex; background: var(--surface-3); border-radius: 5px; padding: 3px; gap: 2px; }
.segmented a, .segmented button { border: 0; background: transparent; padding: 5px 11px; font-size: 12.5px; font-weight: 600; color: var(--text-3); border-radius: 5px; cursor: pointer; }
.segmented .is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ---------- Toolbar / filters ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.search { position: relative; flex: 1; min-width: 200px; max-width: 340px; }
.search .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-4); width: 16px; height: 16px; }
.search .input { padding-left: 34px; height: 34px; }
.toolbar .select { width: auto; height: 34px; font-size: 13px; }

/* ---------- Empty states ---------- */
.empty { text-align: center; padding: 36px 20px; color: var(--text-3); }
.empty .empty-icon { width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 6px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-3); }
.empty h3 { font-size: 14.5px; color: var(--text); margin-bottom: 4px; }
.empty p { font-size: 13px; max-width: 360px; margin: 0 auto; }

/* ---------- Alerts / notices ---------- */
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius); font-size: 13px; line-height: 1.5; border: 1px solid; }
.notice .icon { margin-top: 1px; }
.notice-info { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue-900); }
.notice-amber { background: var(--amber-50); border-color: var(--amber-100); color: var(--amber-700); }
.notice-teal { background: var(--teal-50); border-color: var(--teal-100); color: var(--teal-800); }
.notice-red { background: var(--red-50); border-color: #F6D3CE; color: var(--red-700); }

/* ---------- Toast ---------- */
.toast-stack { position: fixed; z-index: 90; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 400px; padding: 12px 14px; background: var(--blue-950); color: #fff; border-radius: 6px; box-shadow: var(--shadow-lg); font-size: 13.5px; animation: toast-in .25s var(--ease); }
.toast .icon { color: var(--cyan-400); }
.toast-error .icon { color: #FF9C8F; }
.toast-warning .icon { color: #F3CD8A; }
.toast button { margin-left: auto; background: none; border: 0; color: var(--navy-300); cursor: pointer; padding: 2px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Dialog ---------- */
dialog.modal { border: 0; padding: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: min(560px, calc(100vw - 32px)); background: var(--surface); color: var(--text); }
dialog.modal::backdrop { background: rgba(8, 19, 34, .45); backdrop-filter: blur(2px); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-header h2 { font-size: 15.5px; }
.modal-body { padding: 18px 20px; }
.modal-footer { padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2); display: flex; justify-content: flex-end; gap: 8px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* ---------- Dropdown ---------- */
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 50; display: none; }
.dropdown.is-open .dropdown-menu { display: block; animation: toast-in .15s var(--ease); }
.dropdown-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 5px; color: var(--text-2); font-size: 13.5px; font-weight: 500; background: none; border: 0; cursor: pointer; text-align: left; }
.dropdown-item:hover { background: var(--surface-3); color: var(--text); }
.dropdown-item .icon { color: var(--text-3); }
.dropdown-sep { height: 1px; background: var(--border); margin: 6px 4px; }
.dropdown-head { padding: 8px 10px 6px; font-size: 12px; color: var(--text-3); }


/* ---------- Dashboard pieces ---------- */
.hello { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.hello h1 { font-size: 22px; font-weight: 680; letter-spacing: -0.02em; }
.hello-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--text-3); font-size: 13.5px; flex-wrap: wrap; }
.shift-chip { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 4px; background: var(--surface); border: 1px solid var(--border); font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.shift-chip .dot { color: var(--teal-500); box-shadow: 0 0 0 3px var(--teal-50); }
.shift-chip.is-off .dot { color: var(--text-4); box-shadow: none; }

.checklist { list-style: none; margin: 0; padding: 0; }
.check-item { display: flex; align-items: flex-start; gap: 11px; padding: 10px 18px; border-top: 1px solid var(--border); transition: background .1s; }
.check-item:first-child { border-top: 0; }
.check-item:hover { background: var(--surface-2); }
.check-toggle { margin: 1px 0 0; padding: 0; width: 20px; height: 20px; border-radius: 4px; border: 1.5px solid var(--border-strong); background: var(--surface); display: grid; place-items: center; cursor: pointer; flex: none; color: transparent; transition: all .12s; }
.check-toggle:hover { border-color: var(--teal-500); color: var(--teal-200); }
.check-toggle .icon { width: 13px; height: 13px; stroke-width: 3; }
.check-item.is-done .check-toggle { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.check-item.is-done .check-title { color: var(--text-4); text-decoration: line-through; text-decoration-color: var(--border-strong); }
.check-title { font-weight: 550; color: var(--text); line-height: 1.4; }
.check-meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.check-actions { margin-left: auto; display: flex; gap: 2px; opacity: 0; transition: opacity .12s; }
.check-item:hover .check-actions, .check-item:focus-within .check-actions { opacity: 1; }

.agenda { list-style: none; margin: 0; padding: 0; }
.agenda li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: start; padding: 10px 18px; border-top: 1px solid var(--border); }
.agenda li:first-child { border-top: 0; }
.agenda-time { font-weight: 650; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--text); }
.agenda-time small { display: block; font-weight: 500; color: var(--text-4); font-size: 11.5px; }
.agenda-title { font-weight: 550; line-height: 1.4; }
.agenda-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }

.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 10px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; min-width: 0; color: var(--text-3); }
.bar-col { width: 100%; max-width: 46px; border-radius: 4px 4px 3px 3px; background: var(--teal-100); position: relative; min-height: 3px; transition: background .15s; }
.bar.is-current .bar-col { background: var(--teal-500); }
.bar:hover .bar-col { background: var(--teal-600); }
.bar-val { font-size: 11.5px; font-weight: 650; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-label { font-size: 11.5px; white-space: nowrap; }

.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.quick { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text-2); font-weight: 550; font-size: 13px; cursor: pointer; text-align: left; transition: all .12s; }
.quick:hover { border-color: var(--teal-200); background: var(--teal-50); color: var(--teal-800); }
.quick .qi { width: 28px; height: 28px; border-radius: 5px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); flex: none; }
.quick:hover .qi { background: #fff; color: var(--teal-700); }

.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; font-size: 13.5px; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 550; white-space: nowrap; }
.kv .total { font-weight: 700; color: var(--text); padding-top: 8px; border-top: 1px solid var(--border); }
.kv .neg { color: var(--red-600); }
.kv .sub dt { padding-left: 14px; color: var(--text-3); font-size: 12.5px; }
.kv .sub dd { color: var(--text-3); font-size: 12.5px; font-weight: 500; }
.formula { font-family: var(--font); font-size: 13px; background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: 5px; padding: 10px 12px; color: var(--text-2); line-height: 1.6; overflow-x: auto; }

/* Week calendar */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--border); }
.week-day { border-right: 1px solid var(--border); min-height: 220px; display: flex; flex-direction: column; min-width: 0; }
.week-day:last-child { border-right: 0; }
.week-day.is-today { background: linear-gradient(180deg, var(--teal-50), transparent 120px); }
.week-head { padding: 10px 10px 8px; border-bottom: 1px solid var(--border); }
.week-dow { font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
.week-date { font-size: 18px; font-weight: 680; font-variant-numeric: tabular-nums; }
.week-day.is-today .week-date { color: var(--teal-700); }
.week-body { padding: 8px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.shift-select { height: 32px; font-size: 12px; padding: 0 22px 0 8px; text-overflow: ellipsis; background-position: right 6px center; border-radius: 5px; }
.shift-select.is-set { border-color: var(--teal-200); background-color: var(--teal-50); color: var(--teal-800); font-weight: 600; }
.shift-select.is-off { background-color: var(--surface-3); color: var(--text-3); }
.ev { display: block; padding: 6px 8px; border-radius: 5px; background: var(--surface-3); border-left: 3px solid var(--text-4); font-size: 12px; color: var(--text); line-height: 1.35; }
.ev:hover { color: var(--text); filter: brightness(.98); }
.ev-time { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-2); }
.ev.t-consultation { background: var(--teal-50); border-color: var(--teal-600); } .ev.t-consultation .ev-time { color: var(--teal-700); }
.ev.t-follow_up { background: var(--amber-50); border-color: #D9922B; } .ev.t-follow_up .ev-time { color: var(--amber-700); }
.ev.is-done { opacity: .55; text-decoration: line-through; }
.ev.is-cancelled { opacity: .45; text-decoration: line-through; }
.week-tasks { margin-top: auto; font-size: 11.5px; color: var(--text-3); padding-top: 4px; }


h1, h2, h3, h4 { font-family: var(--font-display); }
.num, .tnum, .metric-value, .kv dd, .table .num { font-family: var(--font); }

/* ==========================================================================
   APP SHELL — white workspace, brand blue for state and action
   ========================================================================== */
.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .2s var(--ease); }
html.sidebar-collapsed .app { grid-template-columns: var(--sidebar-w-collapsed) minmax(0, 1fr); }

.sidebar { position: sticky; top: 0; align-self: start; height: 100vh; background: #fff; color: var(--text-2); display: flex; flex-direction: column; overflow: hidden; border-right: 1px solid var(--border); z-index: 40; }
.sidebar-brand { display: flex; align-items: center; height: var(--topbar-h); padding: 0 20px; flex: none; border-bottom: 1px solid var(--border); }
.sidebar-brand .logo-full { height: 30px; width: auto; }
.sidebar-brand .logo-icon { height: 32px; width: auto; display: none; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 10px 12px; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.nav-group { margin-bottom: 10px; }
.nav-group-label { font-family: var(--font-display); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-4); padding: 6px 10px 4px; white-space: nowrap; }
.nav-link { position: relative; display: flex; align-items: center; gap: 11px; height: 35px; padding: 0 10px; border-radius: 5px; color: var(--text-2); font-weight: 600; font-size: 13.5px; white-space: nowrap; transition: background .12s, color .12s; }
.nav-link .icon { color: var(--text-4); transition: color .12s; }
.nav-link:hover { background: var(--surface-3); color: var(--text); }
.nav-link:hover .icon { color: var(--blue-600); }
.nav-link.is-active { background: var(--blue-50); color: var(--blue-800); box-shadow: inset 0 0 0 1px var(--blue-100); }
.nav-link.is-active .icon { color: var(--blue-600); }
.nav-link.is-active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blue-600); }
.nav-link .nav-count { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; background: var(--surface-3); color: var(--text-2); padding: 1px 7px; border-radius: 4px; }
.nav-link .nav-count.is-alert { background: var(--red-50); color: var(--red-700); }
.nav-link.is-soon { color: var(--text-4); cursor: default; }
.nav-link.is-soon .icon { color: var(--border-strong); }
.nav-link.is-soon:hover { background: transparent; color: var(--text-4); }
.nav-soon { margin-left: auto; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .03em; color: var(--text-4); border: 1px solid var(--border); border-radius: 4px; padding: 0 5px; }
.sidebar-foot { display: grid; gap: 2px; padding: 8px 12px 12px; border-top: 1px solid var(--border); flex: none; }
.sidebar-ws { margin-top: 6px; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); }
.ws-avatar { width: 30px; height: 30px; border-radius: 5px; display: grid; place-items: center; background: var(--blue-900); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 12px; flex: none; }
.ws-name { color: var(--text); font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-role { font-size: 11.5px; color: var(--text-3); }
html.sidebar-collapsed .logo-full, html.sidebar-collapsed .nav-group-label, html.sidebar-collapsed .nav-link span, html.sidebar-collapsed .nav-count, html.sidebar-collapsed .nav-soon, html.sidebar-collapsed .ws-meta { display: none; }
html.sidebar-collapsed .sidebar-brand .logo-icon { display: block; }
html.sidebar-collapsed .nav-link { justify-content: center; padding: 0; }
html.sidebar-collapsed .sidebar-brand { justify-content: center; padding: 0; }
html.sidebar-collapsed .sidebar-ws { justify-content: center; padding: 8px 0; background: none; border: 0; }
html.sidebar-collapsed .nav-group { margin-bottom: 6px; border-top: 1px solid var(--border); padding-top: 6px; }
html.sidebar-collapsed .nav-group:first-child { border-top: 0; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; height: var(--topbar-h); display: flex; align-items: center; gap: 12px; padding: 0 26px; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--border); }
.topbar-title { font-family: var(--font-display); font-size: 15.5px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-crumb { font-size: 13px; color: var(--text-3); white-space: nowrap; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang-switch { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 5px; overflow: hidden; height: 32px; background: #fff; }
.lang-switch button, .lang-switch a { border: 0; background: #fff; padding: 0 10px; font-size: 12px; font-weight: 700; color: var(--text-3); cursor: pointer; display: inline-flex; align-items: center; }
.lang-switch .is-active { background: var(--blue-900); color: #fff; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-100); color: var(--blue-800); font-family: var(--font-display); font-weight: 800; font-size: 12.5px; flex: none; }
.user-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 3px; border-radius: 99px; cursor: pointer; }
.user-btn:hover { background: var(--surface-3); }
.demo-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 4px; background: var(--amber-50); color: var(--amber-700); border: 1px solid var(--amber-100); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.demo-pill:hover { color: var(--amber-700); background: var(--amber-100); }

.content { padding: 28px 28px 40px; width: 100%; max-width: 1380px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--blue-950); }
.page-head p { color: var(--text-3); margin-top: 5px; font-size: 14px; max-width: 720px; }
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.grid-main-r { grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); }
.menu-toggle { display: none; }
.sidebar-scrim { display: none; }

/* ==========================================================================
   AUTH PAGES
   ========================================================================== */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: #fff; }
.auth-aside { position: relative; overflow: hidden; background: var(--blue-900); color: #fff; padding: 44px 56px; display: flex; flex-direction: column; }
.auth-aside .grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 65%, transparent 100%); pointer-events: none; }
.auth-aside .aside-mark { position: absolute; right: -90px; bottom: -70px; width: 420px; opacity: .08; pointer-events: none; }
.auth-aside h2 { color: #fff; font-size: 34px; line-height: 1.15; letter-spacing: -0.03em; max-width: 460px; font-weight: 800; }
.auth-aside h2 em { font-style: normal; color: var(--cyan-400); }
.auth-aside p { margin-top: 16px; max-width: 430px; color: #C9D8F5; font-size: 15.5px; line-height: 1.65; }
.auth-points { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; max-width: 430px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; color: #E4ECFB; font-size: 14.5px; }
.auth-points .icon { color: var(--cyan-400); margin-top: 2px; }
.auth-main { display: flex; flex-direction: column; padding: 28px 44px; }
.auth-top { display: flex; justify-content: space-between; align-items: center; }
.auth-card { width: 100%; max-width: 410px; margin: auto; padding: 24px 0; }
.auth-card h1 { font-size: 28px; letter-spacing: -0.025em; font-weight: 800; color: var(--blue-950); }
.auth-card .lead { color: var(--text-3); margin-top: 8px; font-size: 14.5px; }
.auth-foot { text-align: center; font-size: 12.5px; color: var(--text-4); }
.auth-simple { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: var(--canvas); }
.auth-simple .panel { width: 100%; max-width: 560px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); padding: 34px; }
.auth-simple .panel.wide { max-width: 780px; }
.panel-logo { height: 30px; width: auto; }
.qr-box { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-2); }
.qr-box > svg { width: 172px; height: 172px; border-radius: 6px; border: 1px solid var(--border); background: #fff; }
.secret { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; letter-spacing: .06em; background: #fff; border: 1px dashed var(--border-strong); padding: 8px 10px; border-radius: 5px; word-break: break-all; user-select: all; color: var(--blue-900); font-weight: 600; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: flex; gap: 10px; font-size: 14px; color: var(--text-2); }
.steps li::before { content: counter(s); width: 23px; height: 23px; border-radius: 50%; background: var(--blue-600); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; flex: none; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; font-weight: 600; letter-spacing: .06em; color: var(--blue-900); }
.codes span { padding: 6px 10px; background: #fff; border: 1px solid var(--border); border-radius: 4px; text-align: center; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 13px; }
.check-list li { display: flex; align-items: center; gap: 8px; }
.check-list .ok { color: var(--green-600); } .check-list .bad { color: var(--red-600); }

/* ==========================================================================
   PUBLIC WEBSITE — editorial, typography-led, brand blue on white
   ========================================================================== */
.site { background: #fff; color: var(--text); font-size: 16px; line-height: 1.65; }
.site h1, .site h2, .site h3, .site h4 { color: var(--blue-950); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 860px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--blue-900); color: #fff; padding: 10px 14px; border-radius: 5px; font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }

/* Header */
.site-nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-nav.is-scrolled { border-bottom-color: var(--border); }
.site-nav .wrap { display: flex; align-items: center; height: 76px; gap: 36px; }
.site-brand { display: flex; align-items: center; flex: none; }
.site-brand img { height: 34px; width: auto; }
.site-links { display: flex; gap: 2px; }
.site-links a { position: relative; padding: 8px 12px; color: var(--text-2); font-size: 15px; font-weight: 600; border-radius: 5px; }
.site-links a:hover { color: var(--blue-700); }
.site-links a[aria-current="page"] { color: var(--blue-700); }
.site-links a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -2px; height: 2px; border-radius: 2px; background: var(--blue-600); }
.site-nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang-text { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text-4); }
.lang-text a { color: var(--text-3); padding: 4px 2px; }
.lang-text a.is-active { color: var(--blue-900); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--blue-500); }
.nav-contact { font-size: 15px; font-weight: 600; color: var(--text-2); }
.nav-contact:hover { color: var(--blue-700); }
.site-menu { display: none; position: relative; }
.site-menu > summary { list-style: none; cursor: pointer; width: 42px; height: 42px; border-radius: 6px; display: grid; place-items: center; border: 1px solid var(--border-strong); color: var(--text); }
.site-menu > summary::-webkit-details-marker { display: none; }
.site-menu-panel { position: fixed; left: 0; right: 0; top: 76px; background: #fff; border-top: 1px solid var(--border); box-shadow: var(--shadow-lg); padding: 14px 20px 22px; max-height: calc(100vh - 76px); overflow-y: auto; }
.site-menu-panel a { display: flex; justify-content: space-between; align-items: center; padding: 13px 4px; border-bottom: 1px solid var(--border); font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--blue-950); }
.site-menu-panel .menu-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.site-menu-panel .menu-actions a { border: 0; justify-content: center; font-family: var(--font); font-size: 15px; }

/* Buttons on the site */
.site .btn { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 6px; font-weight: 700; }
.site .btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.site .btn-lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 6px; }
.btn-white { background: #fff; color: var(--blue-900); }
.btn-white:hover { background: var(--blue-50); color: var(--blue-900); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline-white:hover { background: rgba(255,255,255,.08); color: #fff; border-color: #fff; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--blue-700); }
.text-link .icon { transition: transform .15s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }

/* Typography */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--blue-600); }
.kicker::before { content: "✦"; font-size: 11px; line-height: 1; letter-spacing: 0; }
.display { font-size: clamp(38px, 5.1vw, 64px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; }
.display em, .h-section em { font-style: normal; color: var(--blue-600); }
.h-section { font-size: clamp(29px, 3.3vw, 42px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; }
.lede { font-size: clamp(17px, 1.45vw, 19.5px); line-height: 1.65; color: var(--text-2); }
.muted-copy { color: var(--text-3); }

/* Sections */
.section { padding: 108px 0; }
.section-tight { padding: 76px 0; }
.section-alt { background: var(--canvas); }
.section-line { border-top: 1px solid var(--border); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: 56px; }
.section-head .h-section { margin-top: 14px; }
.section-head.single { grid-template-columns: minmax(0, 760px); }

/* Home hero */
.hero { padding: 72px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.hero-copy .display { margin-top: 18px; }
.hero-copy .lede { margin-top: 22px; max-width: 520px; }
.hero-cta { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 22px; font-size: 14px; color: var(--text-3); display: flex; gap: 8px; align-items: flex-start; max-width: 480px; }
.hero-note .icon { color: var(--blue-600); margin-top: 3px; }
.hero-visual { position: relative; margin-right: calc((min(100vw, 1600px) - 1200px) / -2 - 28px); }
.shot { border-radius: 8px; border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-lg); overflow: hidden; }
.shot img { width: 100%; height: auto; display: block; }
.shot-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.shot-bar span { margin-left: 10px; font-size: 11.5px; color: var(--text-4); font-weight: 600; }
.callout { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 10px 14px; box-shadow: var(--shadow-md); font-size: 13px; font-weight: 600; color: var(--text); max-width: 270px; line-height: 1.35; }
.callout b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 5px; background: var(--blue-600); color: #fff; font-family: var(--font-display); font-size: 12px; flex: none; }
.callout-1 { left: -34px; top: 26%; }
.callout-2 { left: 8%; bottom: -22px; }
.hero-proof { margin-top: 92px; padding: 26px 0; border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.hero-proof div { font-size: 14px; color: var(--text-3); line-height: 1.5; }
.hero-proof strong { display: block; font-family: var(--font-display); font-size: 15px; color: var(--blue-950); margin-bottom: 4px; }

/* A working day timeline */
.day { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.day::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: linear-gradient(90deg, var(--blue-200), var(--blue-500)); }
.day-step { position: relative; padding: 0 22px 0 0; }
.day-time { position: relative; display: inline-flex; align-items: center; height: 46px; padding: 0 14px; border-radius: 6px; background: #fff; border: 2px solid var(--blue-500); font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--blue-900); font-variant-numeric: tabular-nums; }
.day-step:first-child .day-time { background: var(--blue-900); border-color: var(--blue-900); color: #fff; }
.day-step h3 { margin-top: 22px; font-size: 18px; font-weight: 750; letter-spacing: -0.015em; }
.day-step p { margin-top: 8px; font-size: 14.5px; color: var(--text-2); line-height: 1.6; }
.day-step a { margin-top: 12px; font-size: 14px; }

/* Three questions */
.questions { border-top: 1px solid var(--border); }
.question { display: grid; grid-template-columns: 96px minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; padding: 38px 0; border-bottom: 1px solid var(--border); align-items: start; }
.question-n { font-family: var(--font-display); font-size: 56px; font-weight: 800; line-height: .9; color: var(--blue-100); -webkit-text-stroke: 1.5px var(--blue-500); }
.question h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; }
.question p { color: var(--text-2); font-size: 16px; }
.question .text-link { margin-top: 14px; }

/* Feature split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 72px; align-items: center; }
.split + .split { margin-top: 112px; }
.split.flip .split-copy { order: 2; }
.split-copy h3 { margin-top: 14px; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -0.03em; font-weight: 800; }
.split-copy > p { margin-top: 16px; color: var(--text-2); font-size: 17px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; color: var(--text-2); font-size: 15.5px; align-items: flex-start; }
.ticks .icon { color: var(--blue-600); margin-top: 3px; flex: none; }
.split-visual { position: relative; align-self: center; }
.split-visual::before { content: ""; position: absolute; inset: 34px -18px -18px 34px; border-radius: 8px; background: var(--blue-50); border: 1px solid var(--blue-100); z-index: 0; }
.split.flip .split-visual::before { inset: 34px 34px -18px -18px; }
.split-visual .shot { position: relative; z-index: 1; }
.formula-note { margin-top: 22px; padding: 14px 16px; border-left: 3px solid var(--blue-500); background: var(--blue-50); border-radius: 0 6px 6px 0; font-size: 14px; color: var(--blue-900); }

/* Trust band */
.band { background: var(--blue-900); color: #D6E2F8; position: relative; overflow: hidden; }
.band .kicker { color: var(--cyan-400); }
.band h2, .band h3 { color: #fff; }
.band .lede { color: #C3D3F2; }
.band-mark { position: absolute; right: -120px; top: 50%; transform: translateY(-50%); width: 520px; opacity: .06; pointer-events: none; }
.band-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; }
.trust-list li { padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); }
.trust-list h3 { font-size: 16.5px; font-weight: 750; display: flex; gap: 10px; align-items: center; }
.trust-list h3 .icon { color: var(--cyan-400); }
.trust-list p { margin-top: 8px; font-size: 14.5px; color: #BFD0F0; line-height: 1.6; }

/* Status table (roadmap) */
.status-table { width: 100%; border-collapse: collapse; }
.status-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 700; padding: 12px 16px; border-bottom: 2px solid var(--blue-900); }
.status-table td { padding: 18px 16px; border-bottom: 1px solid var(--border); vertical-align: top; font-size: 15px; color: var(--text-2); }
.status-table td:first-child { font-family: var(--font-display); font-weight: 700; color: var(--blue-950); white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 4px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.pill .dot { width: 7px; height: 7px; }
.pill-live { background: var(--green-50); color: var(--green-700); }
.pill-next { background: var(--blue-50); color: var(--blue-700); }
.pill-later { background: var(--surface-3); color: var(--text-3); }

/* Inner page hero */
.page-hero { padding: 64px 0 72px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--blue-50), #fff 85%); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13.5px; color: var(--text-3); margin-bottom: 26px; }
.crumbs a { color: var(--text-3); font-weight: 600; }
.crumbs a:hover { color: var(--blue-700); }
.crumbs span[aria-current] { color: var(--blue-900); font-weight: 700; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; align-items: end; }
.page-hero .display { font-size: clamp(34px, 4.4vw, 54px); margin-top: 16px; }
.page-hero .lede { margin-top: 20px; max-width: 640px; }
.toc { border-left: 2px solid var(--blue-200); padding: 4px 0 4px 20px; display: grid; gap: 10px; }
.toc-title { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.toc a { font-weight: 600; color: var(--text-2); font-size: 15px; }
.toc a:hover { color: var(--blue-700); }

/* Module detail (features) */
.module-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 64px; align-items: center; padding: 88px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 90px; }
.module-block:last-child { border-bottom: 0; }
.module-index { font-family: var(--font-display); font-size: 13px; font-weight: 800; color: var(--blue-600); letter-spacing: .08em; }
.module-block h2 { margin-top: 10px; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.03em; line-height: 1.15; font-weight: 800; }
.module-block .lead-copy { margin-top: 14px; color: var(--text-2); font-size: 16.5px; }
.spec { margin-top: 26px; display: grid; gap: 0; border-top: 1px solid var(--border); }
.spec div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.spec dt { font-weight: 700; color: var(--blue-950); }
.spec dd { margin: 0; color: var(--text-2); }

/* Solutions (roles) */
.role { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 64px; padding: 72px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 90px; }
.role-tag { position: sticky; top: 110px; align-self: start; }
.role-tag h2 { font-size: 28px; letter-spacing: -0.025em; line-height: 1.15; font-weight: 800; margin-top: 12px; }
.role-tag p { margin-top: 10px; color: var(--text-3); font-size: 15px; }
.role-rows { display: grid; gap: 0; }
.role-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 22px 0; border-top: 1px solid var(--border); }
.role-row:first-child { border-top: 0; padding-top: 0; }
.role-row h3 { font-size: 17px; font-weight: 750; letter-spacing: -0.01em; }
.role-row .pain { font-size: 14.5px; color: var(--text-3); margin-top: 6px; }
.role-row .fix { font-size: 15px; color: var(--text-2); }
.role-row .fix a { display: inline-flex; margin-top: 8px; font-size: 14px; }

/* About */
.prose-lg p { font-size: 18px; line-height: 1.75; color: var(--text-2); }
.prose-lg p + p { margin-top: 18px; }
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--border); }
.principle { padding: 30px 32px 30px 0; border-bottom: 1px solid var(--border); }
.principle:nth-child(odd) { border-right: 1px solid var(--border); }
.principle:nth-child(even) { padding-left: 32px; }
.principle h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; display: flex; gap: 12px; align-items: baseline; }
.principle h3 span { font-size: 13px; color: var(--blue-500); font-weight: 800; }
.principle p { margin-top: 10px; color: var(--text-2); font-size: 15.5px; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 64px; }
.faq-nav { position: sticky; top: 110px; align-self: start; }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; scroll-margin-top: 100px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-family: var(--font-display); font-size: 17.5px; font-weight: 700; display: flex; justify-content: space-between; gap: 18px; color: var(--blue-950); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s; color: var(--blue-600); margin-top: 3px; flex: none; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--text-2); font-size: 16px; line-height: 1.75; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 34px; box-shadow: var(--shadow-md); }
.form-card h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.site .input, .site .select, .site .textarea { height: 46px; font-size: 15px; border-radius: 6px; }
.site .textarea { height: auto; min-height: 140px; }
.site .field > label { font-size: 13.5px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.info-stack { display: grid; gap: 0; border-top: 1px solid var(--border); }
.info-item { padding: 22px 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.info-item .ic { width: 40px; height: 40px; border-radius: 6px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-700); }
.info-item h3 { font-size: 16px; font-weight: 750; }
.info-item p { margin-top: 4px; font-size: 14.5px; color: var(--text-2); }
.success-box { text-align: left; padding: 8px 0; }
.success-box .ic { width: 52px; height: 52px; border-radius: 8px; display: grid; place-items: center; background: var(--green-50); color: var(--green-600); }

/* Next step (end of every page) */
.next { padding: 96px 0; border-top: 1px solid var(--border); }
.next-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; }
.next-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 240px; padding: 34px; border-radius: var(--radius-xl); border: 1px solid var(--border); background: #fff; color: var(--text); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); overflow: hidden; }
.next-card:hover { border-color: var(--blue-300); box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--text); }
.next-card.primary { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.next-card.primary:hover { color: #fff; border-color: var(--blue-800); }
.next-card.primary h2, .next-card.primary h3 { color: #fff; }
.next-card .eyebrow { font-family: var(--font-display); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-600); }
.next-card.primary .eyebrow { color: var(--cyan-400); }
.next-card h2 { margin-top: 12px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; max-width: 520px; }
.next-card h3 { margin-top: 12px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.next-card p { margin-top: 10px; font-size: 15px; color: var(--text-2); max-width: 460px; }
.next-card.primary p { color: #D3E1FA; }
.next-arrow { margin-top: 26px; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.next-arrow .circle { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-700); transition: transform .2s var(--ease); }
.next-card.primary .next-arrow .circle { background: #fff; color: var(--blue-800); }
.next-card:hover .next-arrow .circle { transform: translateX(4px); }
.next-card .card-mark { position: absolute; right: -40px; bottom: -50px; width: 220px; opacity: .1; pointer-events: none; }

/* Footer */
.site-footer { background: var(--canvas); border-top: 1px solid var(--border); padding: 72px 0 34px; font-size: 14.5px; color: var(--text-2); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.footer-brand img { height: 34px; width: auto; }
.footer-brand p { margin-top: 16px; max-width: 320px; color: var(--text-3); }
.site-footer h2 { font-family: var(--font-display); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 16px; color: var(--blue-950); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--text-2); font-weight: 500; }
.site-footer a:hover { color: var(--blue-700); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-3); }

/* Legal prose */
.prose { max-width: 780px; }
.prose h2 { font-size: 22px; margin-top: 44px; letter-spacing: -0.02em; font-weight: 800; scroll-margin-top: 100px; }
.prose p, .prose li { color: var(--text-2); font-size: 16.5px; line-height: 1.8; margin-top: 12px; }
.prose ul { padding-left: 20px; }
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; padding: 72px 0 40px; }

/* 404 */
.notfound { padding: 120px 0 80px; }
.notfound .code { font-family: var(--font-display); font-size: 120px; font-weight: 800; line-height: .9; color: var(--blue-100); -webkit-text-stroke: 2px var(--blue-500); }
.notfound-links { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--border); }
.notfound-links a { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-family: var(--font-display); font-weight: 700; color: var(--blue-950); }
.notfound-links a:hover { color: var(--blue-700); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main, .grid-main-r { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-visual { margin-right: 0; }
  .callout-1 { left: 12px; }
  .day { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .day::before { display: none; }
}
@media (max-width: 960px) {
  .app, html.sidebar-collapsed .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 276px; transform: translateX(-100%); transition: transform .22s var(--ease); }
  html.sidebar-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  html.sidebar-open .sidebar-scrim { display: block; position: fixed; inset: 0; background: rgba(2, 20, 82, .35); z-index: 35; }
  html.sidebar-collapsed .logo-full, html.sidebar-collapsed .nav-group-label, html.sidebar-collapsed .nav-link span, html.sidebar-collapsed .nav-count, html.sidebar-collapsed .nav-soon, html.sidebar-collapsed .ws-meta { display: initial; }
  html.sidebar-collapsed .sidebar-brand .logo-icon { display: none; }
  html.sidebar-collapsed .nav-link { justify-content: flex-start; padding: 0 10px; }
  .menu-toggle { display: inline-flex; }
  .collapse-toggle { display: none; }
  .content { padding: 20px 16px 32px; }
  .topbar { padding: 0 12px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .week { grid-template-columns: minmax(0, 1fr); }
  .week-day { border-right: 0; border-bottom: 1px solid var(--border); min-height: 0; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-aside { display: none; }
  .auth-main { padding: 20px; }
  .radio-cards { grid-template-columns: 1fr; }
  .hide-sm { display: none !important; }

  .site-links, .nav-contact, .site-nav-right .lang-text, .site-nav-right .btn { display: none; }
  .site-menu { display: block; }
  .section { padding: 80px 0; }
  .section-head, .band-grid, .split, .page-hero-grid, .module-block, .role, .faq-layout, .contact-grid, .legal-layout, .next-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .split.flip .split-copy { order: 0; }
  .split + .split { margin-top: 80px; }
  .role-tag, .faq-nav { position: static; }
  .question { grid-template-columns: 64px minmax(0, 1fr); }
  .question > div:last-child { grid-column: 2; }
  .question-n { font-size: 42px; }
  .trust-list { grid-template-columns: 1fr; }
  .hero-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .principles { grid-template-columns: 1fr; }
  .principle:nth-child(odd) { border-right: 0; }
  .principle:nth-child(even) { padding-left: 0; }
  .callout { display: none; }
  .legal-layout aside { display: none; }
}
@media (max-width: 640px) {
  .metrics { grid-template-columns: minmax(0, 1fr); }
  .form-grid > [class*="col-"] { grid-column: span 12; }
  .qr-box { grid-template-columns: 1fr; justify-items: center; }
  .codes { grid-template-columns: 1fr; }
  .topbar-crumb, .lang-switch-app { display: none; }
  .table th, .table td { padding-left: 10px; padding-right: 10px; }
  .auth-simple .panel { padding: 22px; }
  .quick-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 20px; }
  .hero { padding-top: 44px; }
  .day { grid-template-columns: minmax(0, 1fr); }
  .hero-proof { grid-template-columns: minmax(0, 1fr); margin-top: 56px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .form-card { padding: 22px; }
  .spec div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .role-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .notfound-links { grid-template-columns: minmax(0, 1fr); }
  .site-brand img { height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media print {
  .sidebar, .topbar, .page-actions, .toast-stack, .site-nav, .site-footer { display: none !important; }
  .app { display: block; }
  .card { box-shadow: none; }
}

/* ════════════════════════════════════════════════════════════
   v0.2 · CRM, billing, admin, pricing
   ════════════════════════════════════════════════════════════ */
.badge-green { background: var(--green-50); color: var(--green-700); box-shadow: inset 0 0 0 1px #CDEBD9; }
.badge-cyan { background: #E6FAFF; color: #00739A; box-shadow: inset 0 0 0 1px #BDEFFC; }
.badge-gray { background: var(--surface-3); color: var(--text-3); }
.badge-soft { background: var(--surface-2); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--border); }
.text-red { color: var(--red-600) !important; } .text-blue { color: var(--blue-700) !important; } .text-amber { color: var(--amber-700) !important; } .text-green { color: var(--green-700) !important; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; letter-spacing: -.01em; }
.center { text-align: center; }
.dot-blue { color: var(--blue-500); } .dot-cyan { color: #01B5E6; } .dot-green { color: var(--green-600); } .dot-amber { color: var(--amber-600); } .dot-red { color: var(--red-600); } .dot-gray { color: var(--text-4); }
.input-sm, .select-sm { height: 32px; font-size: 13px; padding-top: 0; padding-bottom: 0; }
.select-sm { padding-right: 28px; }
dialog.modal.modal-lg { width: min(760px, calc(100vw - 32px)); }
.modal-body { max-height: calc(100vh - 210px); overflow-y: auto; }
.toolbar-meta { margin-left: auto; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px; border-top: 1px solid var(--border); }
.empty-sm { padding: 18px 18px 20px; font-size: 13px; }
.empty-sm p { margin: 0; }
.ticks li:not(:has(.icon))::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.6l4.6-5' fill='none' stroke='%230661D6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; box-shadow: inset 0 0 0 1px var(--blue-100); }
.ticks.small { gap: 8px; margin-top: 14px; }
.ticks.small li { font-size: 13px; gap: 9px; }
.ticks.small li::before { margin-top: 1px; }
.steps-list { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 4px; line-height: 1.55; }
.code-pill { display: inline-block; padding: 5px 9px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--border); font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; word-break: break-all; }
.inline-form { margin: 0; }
.row-new td { background: var(--surface-2); }

/* Segment chips */
.seg-scroll { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 12px; margin-bottom: 2px; scrollbar-width: thin; }
.seg-chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; transition: border-color .15s, background .15s; }
.seg-chip em { font-style: normal; color: var(--text-4); font-weight: 600; font-variant-numeric: tabular-nums; }
.seg-chip:hover { border-color: var(--blue-200); color: var(--text); }
.seg-chip.is-active { background: var(--blue-50); border-color: var(--blue-200); color: var(--blue-800); }
.seg-chip.is-active em { color: var(--blue-600); }

/* Profile */
.kv-list { margin: 0; padding: 6px 18px 12px; display: grid; }
.kv-list > div { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px dashed var(--border); font-size: 13.5px; }
.kv-list > div:first-child { border-top: 0; }
.kv-list dt { color: var(--text-3); }
.kv-list dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.kv-lg > div { padding: 11px 0; align-items: center; }
.big-amount { font-family: var(--font-display); font-size: 22px; font-weight: 750; color: var(--blue-800); letter-spacing: -.01em; }
.notes-box { border-top: 1px solid var(--border); font-size: 13.5px; color: var(--text-2); white-space: normal; background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.log-form { border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.timeline { list-style: none; margin: 0; padding: 8px 18px 14px; position: relative; }
.timeline li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 10px 0; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 40px; bottom: -4px; width: 1px; background: var(--border); }
.tl-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-700); box-shadow: inset 0 0 0 1px var(--blue-100); }
.tl-head { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.tl-del { margin-left: auto; opacity: 0; transition: opacity .15s; }
.timeline li:hover .tl-del, .tl-del:focus-within { opacity: 1; }
.tl-body p { margin: 3px 0 6px; font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.mini-list { list-style: none; margin: 0; padding: 4px 0; }
.mini-list li { display: flex; align-items: center; gap: 10px; padding: 9px 18px; border-top: 1px solid var(--border); font-size: 13.5px; min-width: 0; }
.mini-list li:first-child { border-top: 0; }
.mini-list li > a, .mini-list li > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-list li > form + a { flex: 1; }
.mini-list li.is-done > a { color: var(--text-4); text-decoration: line-through; }
.mini-list-wide li { padding-top: 11px; padding-bottom: 11px; }

/* Kanban */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; scroll-snap-type: x proximity; }
.kb-col { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); min-height: 220px; display: flex; flex-direction: column; scroll-snap-align: start; transition: background .15s, border-color .15s; }
.kb-col.is-over { background: var(--blue-50); border-color: var(--blue-300); border-style: dashed; }
.kb-head { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 12px 14px 10px; border-bottom: 1px solid var(--border); }
.kb-head strong { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--text); }
.kb-head .muted { grid-column: 1; }
.kb-prob { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 11px; font-weight: 700; color: var(--blue-700); background: var(--blue-50); border-radius: 2px; padding: 3px 8px; box-shadow: inset 0 0 0 1px var(--blue-100); }
.kb-list { padding: 10px; display: grid; gap: 8px; flex: 1; align-content: start; }
.kb-card { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 11px 12px 10px; box-shadow: var(--shadow-xs); cursor: grab; display: grid; gap: 6px; transition: box-shadow .15s, transform .15s var(--ease), border-color .15s; }
.kb-card:hover { border-color: var(--blue-200); box-shadow: var(--shadow-sm); }
.kb-card.is-dragging { opacity: .55; transform: rotate(1.2deg); }
.kb-title { font-weight: 650; color: var(--text); font-size: 13.5px; line-height: 1.35; }
.kb-sub, .kb-next { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); }
.kb-sub .icon, .kb-next .icon { width: 13px; height: 13px; }
.kb-foot { display: flex; align-items: center; gap: 8px; padding-top: 4px; font-size: 12.5px; }
.kb-foot strong { font-family: var(--font-display); font-weight: 750; color: var(--blue-800); }
.kb-foot .small { display: inline-flex; align-items: center; gap: 4px; }
.kb-actions { margin-left: auto; display: inline-flex; gap: 0; }
.kb-actions .btn { width: 26px; height: 26px; }
.btn.win:hover { color: var(--green-700); background: var(--green-50); }
.btn.lose:hover { color: var(--red-600); background: var(--red-50); }
.kb-move.is-enhanced { display: none; }
.kb-empty { border: 1.5px dashed var(--border-strong); border-radius: 6px; padding: 22px 10px; text-align: center; color: var(--text-4); font-size: 12px; }

/* Reports & content editor layout */
.report-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 16px; align-items: start; }
.report-nav { padding: 10px; position: sticky; top: calc(var(--topbar-h) + 16px); display: grid; gap: 1px; }
.report-nav a { display: flex; justify-content: space-between; gap: 6px; padding: 7px 10px; border-radius: 5px; font-size: 13px; font-weight: 550; color: var(--text-2); }
.report-nav a:hover { background: var(--surface-3); color: var(--text); }
.report-nav a.is-active { background: var(--blue-50); color: var(--blue-800); box-shadow: inset 0 0 0 1px var(--blue-100); }
.report-nav a em { font-style: normal; }
.report-group { font-family: var(--font-display); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-4); font-weight: 700; padding: 10px 10px 4px; }
.report-group:first-child { padding-top: 2px; }
.hbars { display: grid; gap: 7px; }
.hbar { display: grid; grid-template-columns: 110px minmax(0, 1fr) 72px; gap: 10px; align-items: center; font-size: 12.5px; }
.hbar-k { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-track { height: 10px; background: var(--surface-3); border-radius: 2px; overflow: hidden; }
.hbar-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue-700), var(--blue-500)); min-width: 2px; }
.hbar-v { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.content-key { padding: 14px 0; border-top: 1px solid var(--border); }
.content-key:first-child { border-top: 0; padding-top: 0; }
.content-edit { gap: 0; }

/* Month calendar */
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--border); }
.month-dow { padding: 8px 10px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-4); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.month-cell { min-height: 108px; padding: 7px 8px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 3px; color: var(--text); min-width: 0; transition: background .12s; }
.month-cell:nth-child(7n) { border-right: 0; }
.month-cell:hover { background: var(--blue-50); }
.month-cell.is-out { background: var(--surface-2); color: var(--text-4); }
.month-cell.is-off { background: repeating-linear-gradient(135deg, var(--surface) 0 8px, var(--surface-2) 8px 16px); }
.mc-date { font-family: var(--font-display); font-weight: 700; font-size: 13px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.month-cell.is-today .mc-date { background: var(--blue-600); color: #fff; }
.mc-shift { font-size: 10.5px; font-weight: 700; color: var(--blue-700); text-transform: uppercase; letter-spacing: .03em; }
.mc-ev { font-size: 11.5px; line-height: 1.35; padding: 2px 6px; border-radius: 4px; background: var(--blue-50); color: var(--blue-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 2px solid var(--blue-500); }
.mc-ev.type-follow_up { background: var(--amber-50); color: var(--amber-700); border-left-color: var(--amber-600); }
.mc-ev.type-class { background: var(--green-50); color: var(--green-700); border-left-color: var(--green-600); }
.mc-more, .mc-tasks { font-size: 11px; color: var(--text-3); display: inline-flex; align-items: center; gap: 4px; }
.mc-tasks .icon { width: 12px; height: 12px; }
.agenda-day li { grid-template-columns: 60px 1fr auto; padding: 12px 18px; }
.agenda-day li.is-done .agenda-title { color: var(--text-4); text-decoration: line-through; }

/* Dashboard CRM strip */
.crm-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.crm-tile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: border-color .15s, transform .15s var(--ease); min-width: 0; }
.crm-tile:hover { border-color: var(--blue-200); transform: translateY(-1px); }
.crm-tile > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.crm-tile strong { font-family: var(--font-display); font-size: 18px; font-weight: 750; line-height: 1.15; font-variant-numeric: tabular-nums; }
.crm-tile strong small { font-size: 12px; font-weight: 600; color: var(--text-3); }
.crm-tile em { font-style: normal; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-icon { width: 34px; height: 34px; border-radius: 6px; display: grid; place-items: center; flex: none; background: var(--blue-50); color: var(--blue-700); }
.crm-tile.is-warn .ct-icon { background: var(--amber-50); color: var(--amber-700); }

/* Billing & checkout */
.sub-card.is-active { border-color: #CDEBD9; background: linear-gradient(120deg, #F3FBF6, var(--surface) 55%); }
.sub-card.is-inactive { border-color: var(--blue-100); background: linear-gradient(120deg, var(--blue-50), var(--surface) 55%); }
.sub-status { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.sub-status h2 { margin: 0 0 4px; font-size: 18px; }
.sub-status p { margin: 0; color: var(--text-2); }
.sub-icon { width: 52px; height: 52px; border-radius: 8px; display: grid; place-items: center; background: var(--surface); color: var(--blue-600); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--blue-100); flex: none; }
.sub-card.is-active .sub-icon, .sub-icon.is-ok { color: var(--green-600); box-shadow: var(--shadow-sm), inset 0 0 0 1px #CDEBD9; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; max-width: 880px; }
.plan-card { position: relative; padding: 22px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-xs); display: flex; flex-direction: column; }
.plan-card h3 { margin: 0; font-size: 15px; color: var(--text-2); }
.plan-card .ticks { margin-bottom: 18px; flex: 1; }
.plan-card.is-best { border-color: var(--blue-300); box-shadow: 0 0 0 3px var(--blue-50), var(--shadow-sm); }
.plan-flag { position: absolute; top: -11px; right: 18px; padding: 3px 10px; border-radius: 4px; background: linear-gradient(90deg, var(--blue-700), var(--blue-500)); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.plan-price { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--blue-900); margin: 8px 0 2px; }
.plan-price small { font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--text-3); margin-left: 4px; letter-spacing: 0; }
.checkout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; align-items: start; max-width: 960px; }
.checkout-qr .card-body { text-align: center; }
.checkout-qr img { width: 100%; max-width: 300px; height: auto; border-radius: 6px; border: 1px solid var(--border); background: #fff; }
.waiting { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; padding: 10px 12px; border-radius: 6px; background: var(--blue-50); color: var(--blue-800); font-size: 12.5px; font-weight: 600; text-align: left; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--blue-500); flex: none; animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 124, 252, .45); } 100% { box-shadow: 0 0 0 12px rgba(0, 124, 252, 0); } }
.copy-val { font-family: ui-monospace, Menlo, monospace; font-weight: 700; font-size: 15px; letter-spacing: .02em; color: var(--text); }
.success-box { text-align: center; padding: 36px 24px; }
.success-box .sub-icon { margin: 0 auto 14px; }
.sub-banner { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: inherit; }
.sub-banner .text-link { margin-left: auto; font-weight: 650; white-space: nowrap; }

/* Admin */
.sidebar-admin { background: linear-gradient(180deg, var(--blue-950), #04205F); color: #B9C7E6; border-right: 0; }
.sidebar-admin .sidebar-brand { border-bottom-color: rgba(255, 255, 255, .08); gap: 10px; }
.sidebar-admin .nav-group-label { color: #6F84B3; }
.sidebar-admin .nav-link { color: #C6D3EE; }
.sidebar-admin .nav-link .icon { color: #7F95C6; }
.sidebar-admin .nav-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sidebar-admin .nav-link:hover .icon { color: var(--cyan-400); }
.sidebar-admin .nav-link.is-active { background: rgba(1, 203, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(1, 203, 255, .22); }
.sidebar-admin .nav-link.is-active .icon { color: var(--cyan-400); }
.sidebar-admin .nav-link.is-active::before { background: var(--cyan-400); }
.sidebar-admin .sidebar-foot { border-top-color: rgba(255, 255, 255, .08); }
.admin-tag { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-950); background: var(--cyan-400); border-radius: 4px; padding: 3px 6px; }
.metrics-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.setup-list { display: grid; gap: 8px; margin-bottom: 16px; }
.setup-list .notice { color: inherit; }
.chart { position: relative; margin: 0; padding-left: 52px; }
.chart svg { width: 100%; height: 200px; display: block; overflow: visible; }
.chart-grid { stroke: var(--border); stroke-dasharray: 3 4; }
.chart-bar { fill: var(--blue-500); transition: fill .12s; }
.chart-bar:hover { fill: var(--blue-800); }
.chart-x { font-size: 11px; fill: var(--text-4); font-family: var(--font); }
.chart-y { position: absolute; left: 0; top: 0; height: 180px; display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--text-4); font-variant-numeric: tabular-nums; transform: translateY(6px); width: 46px; text-align: right; }
.chart-y span { line-height: 1; }
.funnel { display: grid; gap: 10px; }
.funnel-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 64px 56px; gap: 12px; align-items: center; font-size: 13px; }
.funnel-k { color: var(--text-2); }
.funnel-bar { height: 22px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.funnel-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue-800), var(--blue-500) 70%, var(--cyan-400)); border-radius: 4px; }
.funnel-n { text-align: right; font-variant-numeric: tabular-nums; }
.manage { position: relative; display: inline-block; text-align: left; }
.manage > summary { list-style: none; }
.manage > summary::-webkit-details-marker { display: none; }
.manage-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 380px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: grid; gap: 10px; }
.mail-body { white-space: pre-wrap; font-size: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 10px; margin: 6px 0 0; max-width: 560px; }

/* Public pricing */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.15fr); gap: 18px; align-items: stretch; }
.price-card { position: relative; padding: 30px 28px 28px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.price-card h2 { margin: 0; font-size: 17px; color: var(--text-2); font-family: var(--font-display); font-weight: 700; }
.price-card.is-best { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--blue-700), var(--cyan-400)) border-box; border: 2px solid transparent; box-shadow: 0 18px 50px -20px rgba(0, 78, 183, .45); }
.price-amount { margin: 14px 0 6px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-amount span { font-family: var(--font-display); font-size: 44px; font-weight: 800; letter-spacing: -.03em; color: var(--blue-950); line-height: 1; }
.price-amount small { font-size: 14px; color: var(--text-3); font-weight: 600; }
.price-sub { margin: 0; color: var(--text-2); }
.price-save { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 13.5px; font-weight: 650; color: var(--green-700); }
.price-card .btn { margin-top: auto; }
.price-card .price-sub + .btn, .price-card .price-save + .btn { margin-top: 26px; }
.price-includes { padding: 28px; border-radius: 10px; background: var(--blue-950); color: #C9D6F2; }
.price-includes h2 { margin: 0; color: #fff; font-size: 17px; font-family: var(--font-display); }
.price-includes .ticks li { color: #D5E0F7; font-size: 14px; }
.price-includes .ticks li::before { background-color: rgba(1, 203, 255, .14); box-shadow: inset 0 0 0 1px rgba(1, 203, 255, .3); filter: brightness(1.6); }
.price-includes .muted-copy { color: #8FA3CF; margin: 18px 0 0; }
.plan-steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: none; }
.plan-steps li { padding: 24px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); }
.plan-steps h3 { margin: 12px 0 6px; font-size: 17px; }
.plan-steps p { margin: 0; color: var(--text-2); }
.step-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 6px; background: var(--blue-600); color: #fff; font-family: var(--font-display); font-weight: 800; }

/* Sign-up */
.auth-card-wide { max-width: 520px; }
.plan-pick { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.plan-pick .radio-cards { grid-template-columns: repeat(2, 1fr); }
.plan-pick .radio-card em { font-style: normal; display: block; font-size: 12.5px; color: var(--blue-700); font-weight: 650; margin-top: 2px; }
.radio-card:has(input:checked) { border-color: var(--blue-500); background: var(--blue-50); }

@media (max-width: 1180px) {
  .crm-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metrics-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-includes { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .report-layout, .checkout { grid-template-columns: minmax(0, 1fr); }
  .report-nav { position: static; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .report-group { grid-column: 1 / -1; }
  .month-cell { min-height: 76px; padding: 5px; }
  .mc-ev { font-size: 10.5px; padding: 1px 4px; }
  .funnel-row { grid-template-columns: 110px minmax(0, 1fr) 50px 44px; }
}
@media (max-width: 640px) {
  .crm-strip, .metrics-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-grid, .plan-steps { grid-template-columns: minmax(0, 1fr); }
  .kv-list > div { grid-template-columns: 110px minmax(0, 1fr); }
  .mc-ev, .mc-shift { display: none; }
  .month-cell { min-height: 54px; }
  .kanban { grid-auto-columns: 84%; }
  .manage-panel { width: min(340px, calc(100vw - 40px)); }
  .hbar { grid-template-columns: 80px minmax(0, 1fr) 60px; }
  .plan-pick .radio-cards { grid-template-columns: 1fr; }
}
@media print {
  .report-nav, .page-actions, .card-header form { display: none !important; }
  .report-layout { grid-template-columns: 1fr; }
}
.segmented a, .segmented button { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.kanban { grid-auto-columns: minmax(212px, 1fr); }
p.muted.small > .icon:first-child, p.small.muted > .icon:first-child { vertical-align: -2px; display: inline-block; margin-right: 2px; }
.chart { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 8px; padding: 0; }
.chart-y { position: static; height: 160px; transform: none; width: auto; }
.chart-plot svg { width: 100%; height: 160px; display: block; }
.chart-bar { rx: 2px; }
.chart-x { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11.5px; color: var(--text-4); font-variant-numeric: tabular-nums; }
.chart-empty { height: 190px; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--text-4); font-size: 13px; border: 1.5px dashed var(--border); border-radius: 6px; background: var(--surface-2); }
.plan-steps li { display: block; }
.plan-steps li::before { content: none; }
.price-grid { align-items: start; }
.price-card .btn { margin-top: 26px; }
p > svg.icon, p > svg.icon-sm, span > svg.icon-sm, .text-link > svg { display: inline-block; vertical-align: -3px; }
.h-sub { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin: 26px 0 12px; color: var(--text); }
.card-header form .input { width: auto; flex: none; }
.card-header form { align-items: center; }
.kb-foot strong, .kb-foot .small { white-space: nowrap; } .kb-foot { flex-wrap: wrap; row-gap: 4px; }
.chart { grid-template-columns: 70px minmax(0, 1fr); } .chart-y span { white-space: nowrap; }

/* ════════════════════════════════════════════════════════════
   v0.4 · shift, alarms, meetings, notes, team, avatar
   ════════════════════════════════════════════════════════════ */
.avatar.has-img { padding: 0; overflow: hidden; background: var(--surface-3); }
.avatar.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-xl { width: 72px; height: 72px; font-size: 22px; box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--blue-100); }
.avatar-edit { display: flex; gap: 18px; align-items: center; border-bottom: 1px solid var(--border); }
.file-btn { position: relative; overflow: hidden; cursor: pointer; }
.file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
kbd { font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; padding: 1px 5px; border-radius: 4px; background: rgba(255, 255, 255, .18); margin-left: 4px; }

/* Shift pill (topbar) */
.shift-pill { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--blue-200); background: var(--blue-50); color: var(--blue-800); font: 700 12.5px var(--font); cursor: pointer; transition: background .15s, box-shadow .15s; white-space: nowrap; }
.shift-pill:hover { background: #fff; box-shadow: var(--ring); }
.shift-pill.is-on { background: linear-gradient(135deg, var(--blue-900), var(--blue-700)); border-color: transparent; color: #fff; box-shadow: 0 6px 18px -8px rgba(0, 78, 183, .7); }
.shift-pill b { font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: .02em; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #3BE08D; box-shadow: 0 0 0 0 rgba(59, 224, 141, .6); animation: live 1.8s infinite; flex: none; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(59, 224, 141, .55); } 70% { box-shadow: 0 0 0 8px rgba(59, 224, 141, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 224, 141, 0); } }
form[data-shift-open] { display: inline-flex; }

/* Shift band (dashboard) */
.shift-band { position: relative; overflow: hidden; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin: 4px 0 18px; padding: 18px 22px; border-radius: 8px; color: #DCE6FB; background: radial-gradient(120% 140% at 0% 0%, #0A3AA8 0%, var(--blue-950) 55%, #010B33 100%); box-shadow: 0 20px 40px -24px rgba(2, 20, 82, .8); }
.shift-band .sb-glow { position: absolute; inset: -40% -10% auto auto; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(1, 203, 255, .35), transparent 62%); pointer-events: none; filter: blur(6px); }
.shift-band > * { position: relative; }
.sb-copy { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 240px; }
.sb-copy strong { font-family: var(--font-display); font-size: 17px; color: #fff; }
.sb-copy span { font-size: 13.5px; color: #A9BCE6; }
.sb-clock { display: flex; align-items: center; gap: 10px; }
.sb-clock b { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: #fff; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.sb-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #8FA6DA; }
.sb-since { font-size: 12px; color: #8FA6DA; }
.sb-next { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 240px; flex-wrap: wrap; padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .12); }
.sb-item { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 6px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 13.5px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.sb-item strong { color: var(--cyan-400); font-variant-numeric: tabular-nums; }
.sb-more { font-size: 12px; color: #8FA6DA; }

/* Full-screen alarm */
html.alarm-open { overflow: hidden; }
.alarm { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: radial-gradient(60% 60% at 50% 40%, rgba(0, 78, 183, .55), rgba(2, 10, 40, .88)); backdrop-filter: blur(6px); animation: alarm-in .25s var(--ease); }
.alarm[hidden] { display: none; }
@keyframes alarm-in { from { opacity: 0; } to { opacity: 1; } }
.alarm-card { width: min(560px, 100%); text-align: center; padding: 38px 32px 28px; border-radius: 10px; background: #fff; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .4); animation: alarm-pop .35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes alarm-pop { from { transform: scale(.92) translateY(12px); } to { transform: none; } }
.alarm-ring { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--blue-700), var(--cyan-400)); box-shadow: 0 0 0 10px var(--blue-50), 0 0 0 22px rgba(0, 124, 252, .08); animation: ring 1.2s ease-in-out infinite; }
.alarm-ring .icon-lg { width: 34px; height: 34px; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(14deg); } 20% { transform: rotate(-12deg); } 30% { transform: rotate(8deg); } 40% { transform: rotate(-4deg); } 50% { transform: rotate(0); } }
.alarm-kicker { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-700); background: var(--blue-50); padding: 4px 10px; border-radius: 4px; }
.alarm-card h2 { margin: 14px 0 6px; font-family: var(--font-display); font-size: 26px; line-height: 1.25; color: var(--blue-950); }
.alarm-sub { margin: 0; color: var(--text-2); }
.alarm-time { margin-top: 14px; font-family: var(--font-display); font-size: 15px; font-weight: 750; color: var(--blue-600); }
.alarm-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.alarm-more { margin: 14px 0 0; color: var(--text-3); }

/* Notes */
.note-compose { padding: 14px; display: grid; gap: 10px; margin-bottom: 14px; }
.note-compose .textarea { border: 0; box-shadow: none; resize: vertical; font-size: 15px; background: transparent; padding: 4px; }
.color-pick { display: flex; align-items: center; gap: 6px; }
.sw { width: 22px; height: 22px; border-radius: 50%; cursor: pointer; position: relative; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.sw input { position: absolute; opacity: 0; }
.sw:has(input:checked) { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue-500); }
.sw-yellow, .note-yellow { background: #FFF6D6; } .sw-blue, .note-blue { background: #E3F0FF; } .sw-green, .note-green { background: #E2F6EA; } .sw-pink, .note-pink { background: #FDE7EF; } .sw-gray, .note-gray { background: #EEF1F6; }
.toolbar-plain { padding: 0 0 14px; border: 0; }
.notes-grid { columns: 4 240px; column-gap: 14px; }
.note { break-inside: avoid; margin: 0 0 14px; padding: 14px 14px 8px; border-radius: 8px; box-shadow: 0 1px 0 rgba(3, 33, 125, .06), 0 8px 20px -14px rgba(3, 33, 125, .35); transition: transform .15s var(--ease); }
.note:hover { transform: translateY(-2px); }
.note-body { font-size: 14px; line-height: 1.55; color: #1E2A44; white-space: normal; overflow-wrap: anywhere; }
.note footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 10px; }
.note-actions { display: inline-flex; opacity: .55; transition: opacity .15s; }
.note:hover .note-actions { opacity: 1; }
.note-actions .is-on { color: var(--blue-700); }
.note.is-done .note-body { text-decoration: line-through; color: var(--text-4); }

/* Meetings */
.minutes-area { font-size: 14.5px; line-height: 1.6; min-height: 260px; background: repeating-linear-gradient(transparent 0 27px, var(--surface-3) 27px 28px); background-attachment: local; }

/* Team */
.team-goal { background: linear-gradient(120deg, #fff 40%, var(--blue-50)); }
.tg-top { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.tg-amount { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--blue-950); margin-top: 6px; letter-spacing: -.01em; }
.tg-amount small { font-size: 15px; } .tg-amount .muted { font-size: 15px; font-weight: 600; }
.tg-pct { font-family: var(--font-display); font-size: 40px; font-weight: 800; background: linear-gradient(90deg, var(--blue-700), var(--cyan-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.progress-lg { height: 12px; }
.progress > span { background: linear-gradient(90deg, var(--blue-700), var(--blue-500)); }
.rank { font-size: 17px; width: 36px; text-align: center; font-weight: 700; color: var(--text-3); }
tr.is-me td { background: var(--blue-50); }
.posts { list-style: none; margin: 0; padding: 0 0 6px; }
.posts li { padding: 12px 18px; border-top: 1px solid var(--border); }
.posts li.is-pinned { background: linear-gradient(90deg, var(--blue-50), transparent); }
.post-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.post-del { margin-left: auto; }
.posts p { margin: 4px 0 0; font-size: 13.5px; color: var(--text-2); }
.price-calc { display: flex; gap: 28px; align-items: flex-end; padding: 16px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); }
.price-calc > div { display: flex; flex-direction: column; gap: 2px; }
.price-calc-inline { display: flex; flex-direction: column; justify-content: flex-end; }
.team-upsell { display: flex; align-items: center; gap: 12px; max-width: 880px; padding: 14px 16px; border-radius: 8px; border: 1px dashed var(--blue-200); background: var(--blue-50); color: var(--text); }
.team-upsell > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; }
.team-upsell em { font-style: normal; font-size: 13px; color: var(--text-2); }
.team-upsell:hover { border-style: solid; }
.radio-cards-3 { grid-template-columns: repeat(3, 1fr); }
.big-line { font-size: 16px; }
details.card > summary { list-style: none; }
details.card > summary::-webkit-details-marker { display: none; }
@media (max-width: 960px) { .sb-next { border-left: 0; padding-left: 0; } .radio-cards-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .shift-pill > span:not(.live-dot) { display: none; } .alarm-card { padding: 28px 18px 20px; } .alarm-card h2 { font-size: 21px; } .notes-grid { columns: 1; } }

/* ─── v0.4 · centered glow hero + 3-plan pricing ─── */
.hero-glow { position: relative; padding: 84px 0 0; isolation: isolate; }
.hero-glow::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(60% 55% at 50% 0%, rgba(0, 124, 252, .14), transparent 70%), radial-gradient(35% 30% at 80% 8%, rgba(1, 203, 255, .10), transparent 70%), linear-gradient(180deg, #F3F8FF, #fff 70%); }
.hero-light { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-light i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: heroFloat 14s var(--ease) infinite alternate; }
.hero-light i:nth-child(1) { width: 520px; height: 320px; left: 50%; top: -140px; margin-left: -260px; background: rgba(0, 124, 252, .30); }
.hero-light i:nth-child(2) { width: 320px; height: 260px; left: 8%; top: 220px; background: rgba(1, 203, 255, .20); animation-delay: -5s; }
.hero-light i:nth-child(3) { width: 360px; height: 280px; right: 6%; top: 160px; background: rgba(61, 155, 255, .20); animation-delay: -9s; }
@keyframes heroFloat { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(24px, 18px, 0) scale(1.08); } }
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 4px; background: rgba(255, 255, 255, .8); border: 1px solid var(--blue-200); box-shadow: var(--shadow-xs); font-size: 13.5px; font-weight: 600; color: var(--blue-800); backdrop-filter: blur(6px); }
.hero-eyebrow b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-600), var(--cyan-400)); color: #fff; font-size: 12px; }
.hero-inner .display { margin-top: 24px; max-width: 900px; }
.hero-inner .display em { background: linear-gradient(90deg, var(--blue-600), var(--cyan-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-inner .lede { margin: 24px auto 0; max-width: 720px; }
.hero-inner .hero-cta { justify-content: center; }
.hero-inner .hero-note { justify-content: center; max-width: 640px; margin: 20px auto 0; }
.hero-stage { position: relative; width: 100%; max-width: 1120px; margin-top: 56px; }
.hero-stage::before { content: ""; position: absolute; left: 6%; right: 6%; top: 8%; bottom: -6%; z-index: -1; border-radius: 10px; background: radial-gradient(closest-side, rgba(0, 124, 252, .35), rgba(1, 203, 255, .12) 60%, transparent); filter: blur(40px); }
.shot-dark { border-color: rgba(3, 33, 125, .18); box-shadow: 0 40px 90px -30px rgba(3, 33, 125, .45), 0 0 0 6px rgba(255, 255, 255, .6); text-align: left; }
.shot-dark .shot-bar { background: var(--blue-950); border-bottom-color: rgba(255, 255, 255, .08); }
.shot-dark .shot-bar i { background: rgba(255, 255, 255, .22); }
.shot-dark .shot-bar span { color: #8FA3CF; }
.hero-stage .callout b { background: linear-gradient(135deg, var(--blue-600), var(--cyan-400)); font-size: 13px; }
.hero-stage .callout-1 { left: -28px; top: 30%; }
.hero-stage .callout-2 { left: auto; right: -28px; bottom: 18%; }
.hero-inner .hero-proof { width: 100%; text-align: left; margin-top: 80px; }

.price-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.price-grid-3 .price-card { display: flex; flex-direction: column; }
.price-grid-3 .price-card .btn { margin-top: auto; }
.price-desc { margin: 16px 0 22px; font-size: 14px; color: var(--text-3); line-height: 1.55; }
.price-card.is-team { background: radial-gradient(120% 80% at 100% 0%, rgba(1, 203, 255, .10), transparent 60%), var(--surface); border-color: var(--blue-200); }
.price-card.is-team .price-amount span { background: linear-gradient(90deg, var(--blue-700), var(--cyan-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-card.is-team .price-sub b { color: var(--blue-700); }
.price-card.is-team .price-desc { margin-bottom: 12px; }
.ticks-sm { margin: 0 0 14px; }
.ticks-sm li { font-size: 13.5px; }
.price-example { margin: 0 0 22px; font-size: 13px; font-weight: 650; color: var(--blue-800); background: var(--blue-50); border-radius: 6px; padding: 8px 12px; }
.price-includes-wide { margin-top: 22px; }
.price-includes-wide .ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
@media (max-width: 1180px) { .hero-stage .callout { display: none; } }
@media (max-width: 960px) { .price-grid-3 { grid-template-columns: minmax(0, 1fr); } .price-includes-wide .ticks { grid-template-columns: minmax(0, 1fr); } .hero-glow { padding-top: 56px; } }
@media (prefers-reduced-motion: reduce) { .hero-light i { animation: none; } }
.lb-name { min-width: 200px; }
.lb-name .cell-title { white-space: nowrap; }
.hero-stage .callout { max-width: none; white-space: nowrap; }
.lb-name { min-width: 170px; }

.ph { margin: 0; border-radius: 10px; overflow: hidden; background: var(--blue-50); box-shadow: 0 30px 60px -28px rgba(3, 33, 125, .35); }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.people { overflow: hidden; }
.people-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.people-media { position: relative; padding: 0 0 70px 0; }
.people-media::before { content: ""; position: absolute; left: -60px; top: -40px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(closest-side, rgba(1, 203, 255, .22), transparent); z-index: -1; }
.ph-main { aspect-ratio: 4 / 3; }
.ph-small { position: absolute; right: -28px; bottom: 0; width: 46%; aspect-ratio: 4 / 3; border: 6px solid #fff; }
.ph-chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); box-shadow: var(--shadow-md); border: 1px solid var(--border); font-size: 13px; }
.ph-chip b { display: block; font-weight: 700; color: var(--blue-950); }
.ph-chip small { display: block; color: var(--text-3); font-size: 12px; }
.ph-chip-1 { left: 22px; top: 22px; }
.ph-chip-2 { left: 34px; bottom: 30px; }
.ph-bell, .ph-ok { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; color: #fff; flex: none; }
.ph-bell { background: linear-gradient(135deg, var(--blue-600), var(--cyan-400)); animation: phRing 3.2s ease-in-out infinite; }
.ph-ok { background: var(--green-600); }
@keyframes phRing { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(-14deg); } 92% { transform: rotate(12deg); } 95% { transform: rotate(-8deg); } }
.people-copy .h-section { margin-top: 14px; }
.people-copy .lede { margin-top: 20px; }
.people-copy .ticks { margin-top: 26px; }
.ph-about { aspect-ratio: 4 / 3; }
.ph-contact { aspect-ratio: 16 / 9; margin-bottom: 8px; }
@media (max-width: 960px) {
  .people-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ph-small { right: 0; }
}
@media (prefers-reduced-motion: reduce) { .ph-bell { animation: none; } }

/* ─── v0.4.1 · responsive photography kit (desktop / tablet / mobile WebP) ─── */
.ph picture, .ph img { display: block; width: 100%; height: auto; }
.ph-main, .ph-small, .ph-about { aspect-ratio: auto; }
.ph img { object-fit: cover; }

/* Hero: photo on the right, copy on the clean wall area; stacks below 1100px */
.hero-photo { position: relative; overflow: hidden; background: #EEF5FC; }
.hero-photo-media { position: absolute; inset: 0; }
.hero-photo-media picture, .hero-photo-media img { width: 100%; height: 100%; }
.hero-photo-media img { object-fit: cover; object-position: 85% 35%; }
.hero-photo-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.82) 0%, rgba(255,255,255,.55) 32%, rgba(255,255,255,0) 52%); }
.hero-photo-inner { position: relative; z-index: 1; min-height: clamp(560px, 46vw, 720px); display: flex; align-items: center; padding-top: 56px; padding-bottom: 150px; }
.hero-photo-copy { max-width: 600px; }
.hero-photo-copy .display { margin-top: 22px; }
.hero-photo-copy .display em { color: var(--blue-600); }
.hero-photo-copy .lede { margin-top: 20px; color: var(--text-2); }
.hero-photo-copy .hero-cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-photo-copy .hero-note { margin-top: 18px; font-size: 14px; color: var(--text-3); }
.hero-stage-wrap { position: relative; z-index: 2; margin-top: -110px; padding-bottom: 8px; }
.hero-stage-wrap .hero-stage { max-width: 1120px; margin: 0 auto; }
.hero-stage-wrap .hero-proof { margin-top: 64px; }

/* Wide photo bands (productivity, features, solutions) */
.ph-band { margin: 0 0 40px; }
.ph-banner { margin: 48px 0 8px; }

/* Blue backgrounds: pricing, page heroes, login, trust band, CTA */
.section-sky, .page-hero { background: url(../img/kit/light-d.webp) center / cover no-repeat, #EEF5FF; }
.page-hero { border-bottom-color: rgba(3,33,125,.08); }
.band { background: url(../img/kit/dark-d.webp) center / cover no-repeat, var(--blue-950); }
.next-card.primary { background: url(../img/kit/dark-d.webp) 70% center / cover no-repeat, var(--blue-800); border-color: transparent; }
.auth-aside { background: url(../img/kit/dark-t.webp) center / cover no-repeat, var(--blue-900); }
.auth-aside .grid-lines { display: none; }

@media (max-width: 1100px) {
  .section-sky, .page-hero { background-image: url(../img/kit/light-t.webp); }
  .band, .next-card.primary { background-image: url(../img/kit/dark-t.webp); }
  .hero-photo { background: linear-gradient(180deg, #F4F8FD, #fff); }
  .hero-photo-media { position: static; order: 2; padding: 0 28px; max-width: 900px; margin: 0 auto; }
  .hero-photo-media::after { display: none; }
  .hero-photo-media picture, .hero-photo-media img { height: auto; border-radius: 10px; }
  .hero-photo-media img { box-shadow: 0 30px 60px -30px rgba(3, 33, 125, .35); }
  .hero-photo { display: flex; flex-direction: column; padding-bottom: 40px; }
  .hero-photo-inner { order: 1; min-height: 0; padding-top: 48px; padding-bottom: 32px; }
  .hero-photo-copy { max-width: 680px; }
  .hero-stage-wrap { margin-top: 48px; }
}
@media (max-width: 640px) {
  .section-sky, .page-hero { background-image: url(../img/kit/light-m.webp); }
  .band, .next-card.primary { background-image: url(../img/kit/dark-m.webp); }
  .hero-photo-media { padding: 0 18px; }
  .hero-photo-media img { max-height: 520px; object-fit: cover; object-position: 60% 60%; }
  .hero-photo-inner { padding-top: 36px; }
  .hero-photo-copy .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .ph-banner { margin-top: 32px; }
}

/* ─── v0.4.1 · device-specific compact layouts (iPad / mobile) ─── */
@media (max-width: 1100px) {
  .section { padding: 76px 0; }
  .section-tight { padding: 56px 0; }
  .page-hero { padding: 48px 0 52px; }
  .hero-photo-media { max-width: 760px; }
  .hero-photo-media img { aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 40%; }
  .split + .split { margin-top: 72px; }
  .module-block { padding: 64px 0; gap: 40px; }
  .price-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .price-grid-3 .price-card { padding: 24px 20px 22px; }
  .price-amount span { font-size: 36px; }
  .people-grid { gap: 48px; }
}
/* iPad portrait and small tablets: swipeable rows instead of long stacks */
@media (max-width: 960px) {
  .snap-row, .day, .price-grid-3, .questions, .trust-list {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(280px, 46%);
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
    gap: 14px; padding: 4px 2px 14px; margin: 0 -2px; scrollbar-width: none;
  }
  .day::-webkit-scrollbar, .price-grid-3::-webkit-scrollbar, .questions::-webkit-scrollbar, .trust-list::-webkit-scrollbar { display: none; }
  .day > *, .price-grid-3 > *, .questions > *, .trust-list > * { scroll-snap-align: start; }
  .day::before { display: none; }
  .day-step { padding: 18px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
  .questions { border-top: 0; }
  .question { display: block; padding: 22px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
  .question h3 { margin-top: 8px; }
  .question-n { font-size: 22px; }
  .trust-list > li { padding: 18px; border-radius: 8px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
  .price-grid-3 { grid-auto-columns: minmax(270px, 46%); padding-top: 16px; }
  .ph-band { display: none; }
  .ph-small { display: none; }
  .people-media { padding-bottom: 0; }
  .ph-chip-2 { bottom: 16px; }
}
/* Phones */
@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .section-tight { padding: 40px 0; }
  .page-hero { padding: 28px 0 32px; }
  .page-hero .display { font-size: 30px; }
  .page-hero .lede { font-size: 15.5px; margin-top: 12px; }
  .page-hero-grid { gap: 18px; }
  .toc { display: none; }
  .display { font-size: 33px; letter-spacing: -0.03em; }
  .h-section { font-size: 25px; }
  .lede { font-size: 15.5px; line-height: 1.6; }
  .section-head { gap: 12px; margin-bottom: 26px; }
  .hero-photo-inner { padding-top: 26px; padding-bottom: 22px; }
  .hero-photo-copy .display { margin-top: 16px; }
  .hero-photo-copy .lede { margin-top: 14px; }
  .hero-photo-copy .hero-cta { margin-top: 20px; }
  .hero-eyebrow { font-size: 12.5px; }
  .hero-photo-media img { aspect-ratio: 4 / 3; max-height: none; object-position: 50% 40%; border-radius: 8px; }
  .hero-photo { padding-bottom: 8px; }
  .hero-stage-wrap { margin-top: 28px; }
  .hero-stage-wrap .hero-proof { margin-top: 26px; padding: 18px 0 0; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
  .hero-proof div { font-size: 12.5px; line-height: 1.45; }
  .hero-proof strong { font-size: 13.5px; }
  .shot-bar { height: 24px; }
  .day, .price-grid-3, .questions, .trust-list { grid-auto-columns: 84%; }
  .split + .split { margin-top: 48px; }
  .split { gap: 20px; }
  .split .ticks li:nth-child(n+3), .formula-note { display: none; }
  .split-copy h3 { font-size: 21px; }
  .split-copy > a.text-link { margin-top: 14px !important; }
  .people-grid { gap: 26px; }
  .people-copy .ticks li:nth-child(n+3) { display: none; }
  .ph-chip { padding: 7px 10px; font-size: 12px; }
  .ph-chip-1 { left: 10px; top: 10px; }
  .ph-chip-2 { left: 10px; bottom: 10px; }
  .band-grid { gap: 22px; }
  .band .btn-lg { margin-top: 18px !important; }
  .trust-list h3 { font-size: 15px; }
  .trust-list p { font-size: 13.5px; }
  .faq-teaser details:nth-child(n+4) { display: none; }
  .faq-layout { gap: 16px; }
  .next-grid { gap: 12px; }
  .next-card { min-height: 0; padding: 22px; }
  .next-card:not(.primary) { display: none; }
  .next-card h2 { font-size: 21px; }
  .site-footer { padding: 36px 0 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .site-footer ul { gap: 7px; }
  .module-block { padding: 40px 0; gap: 18px; }
  .module-block h2 { font-size: 23px; }
  .lead-copy { font-size: 15px; }
  .spec div:nth-child(n+3) { display: none; }
  .ph-banner { margin: 24px 0 0; }
  .role { padding: 36px 0; }
  .price-includes-wide .ticks { grid-template-columns: 1fr; }
  .plan-steps { gap: 12px; }
}

/* ─── Legal documents ─── */
.legal-summary { padding: 22px 24px; border-radius: 8px; background: var(--blue-50); border: 1px solid var(--blue-100); margin-bottom: 36px; }
.legal-summary h2 { margin: 0 0 12px !important; font-size: 17px; color: var(--blue-900); }
.legal-summary h2 span { color: var(--blue-600); }
.legal-summary .ticks { margin: 0; }
.legal-summary .ticks li { font-size: 15px; }
.legal-jump { display: none; }
.legal-sec { scroll-margin-top: 90px; }
.legal-sec + .legal-sec { margin-top: 34px; }
.legal-sec h2 { margin-top: 0; }
.legal-sec ul { margin: 10px 0 14px; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.legal-sec ul li { position: relative; padding-left: 20px; }
.legal-sec ul li::before { content: "✦"; position: absolute; left: 0; top: 1px; font-size: 10px; color: var(--blue-600); }
.legal-contact { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-3); }
@media (max-width: 960px) {
  .legal-layout { padding-top: 32px; }
  .legal-jump { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 14px; margin-bottom: 18px; scrollbar-width: none; position: sticky; top: 64px; z-index: 5; background: linear-gradient(#fff 80%, rgba(255,255,255,0)); }
  .legal-jump::-webkit-scrollbar { display: none; }
  .legal-jump a { flex: none; padding: 7px 12px; border-radius: 4px; border: 1px solid var(--border); background: #fff; font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
}
@media (max-width: 640px) {
  .legal-summary { padding: 16px 18px; margin-bottom: 22px; }
  .legal-sec + .legal-sec { margin-top: 24px; }
  .legal-doc p, .legal-sec li { font-size: 15px; }
}
@media (max-width: 960px) {
  ol.day { list-style: none; padding-left: 2px; }
  .price-grid-3 { align-items: start; }
}
@media (max-width: 640px) {
  .ph-main img { aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 30%; }
  .ph-about img, .ph-contact img, .ph-banner img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 40%; }
}
.hero-photo-copy .lede { max-width: 520px; } .hero-photo-copy .display { max-width: 600px; }

/* ─── v0.4.2 · phone layout: vertical, compact, real phone screenshots ─── */
.screen-pic, .screen-pic img { display: block; width: 100%; height: auto; }
@media (min-width: 641px) and (max-width: 960px) {
  /* Tablets keep swipe rows, but let them run to the screen edge so the next card peeks naturally */
  .day, .price-grid-3, .questions, .trust-list { margin: 0 -28px; padding-left: 28px; padding-right: 28px; scroll-padding-left: 28px; }
}
@media (max-width: 640px) {
  /* No sideways scrolling on phones: everything stacks */
  .day, .price-grid-3, .questions, .trust-list {
    display: grid; grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); grid-auto-columns: auto;
    overflow: visible; scroll-snap-type: none; margin: 0; padding: 0; gap: 10px;
  }
  /* Day timeline: one compact row per moment */
  .day-step { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; padding: 14px 16px; border-radius: 8px; }
  .day-time { grid-row: 1 / span 3; align-self: start; font-size: 13px; padding: 5px 8px; text-align: center; }
  .day-step h3 { margin: 0; font-size: 16px; }
  .day-step p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; }
  .day-step .text-link { margin-top: 6px; font-size: 13px; }
  /* Questions: compact cards */
  .question { padding: 16px 18px; }
  .question h3 { font-size: 17px; }
  .question p { font-size: 14px; margin-top: 6px; }
  .question-n { font-size: 15px; }
  /* Trust: 2 x 2 tiles, title only + short text */
  .trust-list { grid-template-columns: 1fr 1fr; gap: 10px; }
  .trust-list > li { padding: 14px; }
  .trust-list h3 { font-size: 14px; gap: 6px; }
  .trust-list p { font-size: 12.5px; line-height: 1.45; margin-top: 4px; }
  /* Pricing: stacked, trimmed cards */
  .price-grid-3 { gap: 14px; padding-top: 12px; }
  .price-grid-3 .price-card { padding: 20px 18px 18px; }
  .price-grid-3 .price-card .price-desc { display: none; }
  .price-grid-3 .price-card .ticks-sm li:nth-child(n+3) { display: none; }
  .price-amount { margin: 8px 0 4px; }
  .price-amount span { font-size: 34px; }
  .price-card .btn { margin-top: 14px !important; }
  .price-example { margin-bottom: 12px; }
  /* Real phone screenshots inside a phone frame */
  .shot:has(.screen-pic.has-mobile) { max-width: 240px; margin: 0 auto; border-radius: 10px; border: 7px solid #0B1734; box-shadow: 0 24px 50px -24px rgba(3, 33, 125, .5); background: #0B1734; }
  .shot:has(.screen-pic.has-mobile) .shot-bar { display: none; }
  .shot:has(.screen-pic.has-mobile) img { border-radius: 10px; }
  .hero-stage-wrap .hero-stage { max-width: 240px; }
  .split-visual { margin-top: 4px; }
  .split-visual .shot { max-width: 220px; }
  .module-block .split-visual .shot { max-width: 220px; }
  /* People photo must always show */
  .ph-main picture { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 10px; }
  .ph-main img { width: 100%; height: 100%; }
}

/* Calmer backgrounds: the photo is only a soft texture behind the text */
.band, .next-card.primary { background: linear-gradient(135deg, rgba(2, 20, 82, .9) 0%, rgba(3, 33, 125, .84) 60%, rgba(5, 47, 150, .8) 100%), url(../img/kit/dark-d.webp) center / cover no-repeat, var(--blue-950); }
.auth-aside { background: linear-gradient(160deg, rgba(2, 20, 82, .9), rgba(3, 33, 125, .82)), url(../img/kit/dark-t.webp) center / cover no-repeat, var(--blue-900); }
.section-sky, .page-hero { background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .7)), url(../img/kit/light-d.webp) center / cover no-repeat, #F3F8FE; }
@media (max-width: 1100px) {
  .band, .next-card.primary { background-image: linear-gradient(135deg, rgba(2, 20, 82, .9), rgba(3, 33, 125, .84)), url(../img/kit/dark-t.webp); }
  .section-sky, .page-hero { background-image: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .7)), url(../img/kit/light-t.webp); }
}
@media (max-width: 640px) {
  .band, .next-card.primary { background-image: linear-gradient(135deg, rgba(2, 20, 82, .9), rgba(3, 33, 125, .84)), url(../img/kit/dark-m.webp); }
  .section-sky, .page-hero { background-image: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .7)), url(../img/kit/light-m.webp); }
}
/* Phone: app top bar keeps the page title readable; band button wraps */
@media (max-width: 640px) {
  .topbar { gap: 8px; }
  .topbar-title { flex: 1 1 auto; min-width: 0; font-size: 15px; }
  .topbar-right { flex: none; gap: 6px; }
  .demo-pill { display: none; }
  .band .btn-lg { white-space: normal; width: 100%; justify-content: center; text-align: center; }
}
/* Header: slides away while scrolling down, back on scroll up */
.site-nav { transition: transform .28s cubic-bezier(.2, .7, .2, 1), border-color .2s, box-shadow .2s; will-change: transform; }
.site-nav.nav-hidden { transform: translateY(-105%); }
.site-nav.is-scrolled { box-shadow: 0 6px 20px -14px rgba(3, 33, 125, .35); }
@media (prefers-reduced-motion: reduce) { .site-nav { transition: none; } }

/* ─── v0.4.2 · no sideways scrolling anywhere; 4-step day as tiles ─── */
.day { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) {
  .day, .price-grid-3, .questions, .trust-list {
    display: grid; grid-auto-flow: row; grid-auto-columns: auto; overflow: visible;
    scroll-snap-type: none; margin: 0; padding: 0;
  }
  .day { grid-template-columns: 1fr 1fr; gap: 12px; list-style: none; }
  .day::before { display: none; }
  .day-step { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--border); border-radius: 8px; background: #fff; box-shadow: 0 10px 24px -20px rgba(3, 33, 125, .35); }
  .day-time { height: auto; align-self: flex-start; padding: 5px 10px; font-size: 14px; border-radius: 5px; border-width: 1.5px; }
  .day-step h3 { margin: 4px 0 0; font-size: 16px; line-height: 1.25; }
  .day-step p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-3); }
  .day-step .text-link { margin-top: auto; padding-top: 4px; font-size: 13px; }
  .questions { grid-template-columns: minmax(0, 1fr); gap: 12px; border-top: 0; }
  .question { display: block; padding: 20px 22px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
  .trust-list { grid-template-columns: 1fr 1fr; gap: 12px; }
  .price-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
}
@media (max-width: 640px) {
  .day { gap: 10px; }
  .day-step { padding: 14px 13px; gap: 6px; border-radius: 8px; }
  .day-time { font-size: 13px; padding: 4px 8px; }
  .day-step h3 { font-size: 15px; }
  .day-step p { font-size: 12.5px; line-height: 1.45; }
  .day-step .text-link { display: none; }
  .price-grid-3 { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .question { padding: 16px 18px; }
  .trust-list { gap: 10px; }
}
ol.day { list-style: none; padding-left: 0; margin-left: 0; }
@media (max-width: 640px) { .split .ticks { display: none; } .split-copy .lede, .split-copy > p { margin-bottom: 0; } }

/* ---------- v0.4.4 Timesheet (Sổ giờ làm) ---------- */
.ts-band { margin-bottom: 18px; }
.ts-period { min-width: 150px; justify-content: center; }
.metric-value.is-neg { color: var(--amber-700); }
.ts-legend { display: flex; gap: 14px; align-items: center; }
.ts-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ts-key { width: 12px; height: 8px; border-radius: 3px; display: inline-block; }
.ts-key.is-work, .ts-bar .is-work { background: var(--blue-600, #1D5BD8); }
.ts-key.is-plan, .ts-bar .is-plan { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--border-strong); }
.ts-days { list-style: none; margin: 0; padding: 4px 0; }
.ts-days li + li { border-top: 1px solid var(--border); }
.ts-day { display: grid; grid-template-columns: 74px minmax(120px, 190px) 1fr 104px; gap: 14px; align-items: center; padding: 10px 18px; color: inherit; }
.ts-day:hover { background: var(--surface-2); }
.ts-date { display: flex; flex-direction: column; line-height: 1.25; }
.ts-date b { font-size: 13px; font-weight: 650; }
.ts-date span { font-size: 12px; color: var(--text-3); }
.ts-plan { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-bar { position: relative; height: 12px; border-radius: 4px; background: transparent; }
.ts-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.ts-bar .is-work { top: 2px; bottom: 2px; }
.ts-bar .is-work.is-over { background: var(--teal-600, #0E8A7E); }
.ts-val { text-align: right; font-size: 13px; font-weight: 600; }
.ts-days li.is-today .ts-date b { color: var(--blue-700); }
.ts-days li.is-today { box-shadow: inset 3px 0 0 var(--blue-600, #1D5BD8); }
.ts-days li.is-off .ts-plan { color: var(--text-4); }
.ts-empty { padding: 22px 18px; }
.ts-how { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.ts-how .icon-sm { flex: none; margin-top: 2px; color: var(--blue-700); }
.ts-table td .badge { margin-left: 6px; vertical-align: middle; }
.ts-table td .badge .live-dot { margin-right: 5px; }
.ts-table tfoot th { background: var(--surface-2); font-size: 12.5px; text-transform: none; letter-spacing: 0; color: var(--text); }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions form { display: inline; }
.nav-live { margin-left: auto; display: inline-flex; align-items: center; }
.sb-week { font-size: 12.5px; opacity: .86; }
.sb-week a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.sched-worked { display: block; font-size: 11.5px; color: var(--teal-700); font-weight: 600; margin-top: 2px; }
@media (max-width: 960px) {
  .ts-day { grid-template-columns: 64px 1fr 90px; }
  .ts-plan { grid-column: 2 / 4; grid-row: 2; }
  .ts-bar { grid-column: 2; grid-row: 1; }
}
@media (max-width: 640px) {
  .ts-day { padding: 10px 14px; gap: 10px; }
  .ts-legend { display: none; }
  .page-actions .ts-period { min-width: 0; }
}
.sb-end { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.sb-copy .sb-week { display: block; margin-top: 4px; }
@media (max-width: 640px) { .sb-end { justify-content: flex-start; } }
.ts-dcell { white-space: nowrap; }
@media (max-width: 640px) {
  .metrics.ts-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ts-metrics .metric { padding: 12px; }
  .ts-metrics .metric-value { font-size: 20px; }
  .ts-metrics .metric-foot { font-size: 11.5px; }
  .ts-table td, .ts-table th { padding: 10px 8px; }
  .ts-table .row-actions .btn { width: 30px; height: 30px; }
}

/* ---------- v0.4.4 Locked workspace (not paid yet / expired) ---------- */
.nav-link.is-locked { color: var(--text-4); }
.nav-link.is-locked .icon { opacity: .6; }
.nav-link.is-locked:hover { background: var(--surface-2); color: var(--text-3); }
.nav-lock { margin-left: auto; display: inline-flex; color: var(--text-4); }
.sidebar.is-collapsed .nav-lock, .app.sb-collapsed .nav-lock { display: none; }
.lock-banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 18px; border-radius: var(--radius-lg); background: linear-gradient(0deg, var(--blue-50), var(--blue-50)); box-shadow: inset 0 0 0 1px var(--blue-100); }
.lock-banner .lock-ic { flex: none; width: 38px; height: 38px; border-radius: 6px; display: grid; place-items: center; background: var(--surface); color: var(--blue-700); box-shadow: var(--shadow-xs); }
.lock-banner div { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.lock-banner strong { font-size: 14px; color: var(--text); }
.lock-banner span { font-size: 13px; color: var(--text-2); }
@media (max-width: 640px) { .lock-banner { flex-wrap: wrap; } .lock-banner .btn { width: 100%; justify-content: center; } }

/* ---------- v0.5.0 Customer import ---------- */
.drop-zone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 30px 18px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s; }
.drop-zone:hover, .drop-zone.is-over { border-color: var(--blue-600); background: var(--blue-50); }
.drop-zone.has-file { border-style: solid; border-color: var(--blue-600); background: var(--blue-50); }
.drop-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-zone .dz-ic { width: 44px; height: 44px; border-radius: 6px; display: grid; place-items: center; background: var(--surface); color: var(--blue-700); box-shadow: var(--shadow-xs); }
.drop-zone strong { font-size: 15px; word-break: break-all; }
.choice-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--border); cursor: pointer; background: var(--surface); }
.choice:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--blue-600); background: var(--blue-50); }
.choice input { margin-top: 3px; }
.choice span { display: flex; flex-direction: column; gap: 2px; }
.choice strong { font-size: 13.5px; }
.choice small { font-size: 12px; color: var(--text-3); line-height: 1.4; }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { font-size: 13px; font-weight: 600; color: var(--text-2); padding: 0; }
.imp-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.imp-rules li { display: grid; grid-template-columns: 150px 1fr; gap: 10px; align-items: start; font-size: 13px; color: var(--text-2); line-height: 1.45; }
.imp-rules .badge { justify-self: start; }
.imp-summary { display: flex; flex-wrap: wrap; gap: 10px; }
.imp-stat { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-xs); border: 0; cursor: pointer; font: inherit; color: inherit; }
.imp-stat strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.imp-stat.is-active { box-shadow: inset 0 0 0 1.5px var(--blue-600); }
.imp-stat.is-all span { font-size: 13px; color: var(--text-2); font-weight: 600; }
.imp-map > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.imp-map > summary::-webkit-details-marker { display: none; }
.imp-map[open] > summary .btn { display: none; }
.imp-map-table .select { min-width: 190px; }
.imp-table .imp-group { min-width: 170px; }
.imp-table tr.is-muted td { background: var(--surface-2); }
.imp-table tr[hidden] { display: none; }
.imp-dup-choice { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.imp-dup-choice label { display: inline-flex; gap: 6px; align-items: center; }
.field-error { color: var(--red-700); font-size: 13px; margin: 0; }
.show-sm { display: none; }
@media (max-width: 640px) {
  .choice-row { grid-template-columns: 1fr; }
  .imp-rules li { grid-template-columns: 1fr; gap: 4px; }
  .show-sm { display: block; margin-top: 4px; }
  .imp-stat { padding: 8px 10px; }
  .imp-stat strong { font-size: 16px; }
  .imp-table .imp-group { min-width: 130px; }
}

/* ───────────── v0.6 Consultation room ───────────── */
.con-tabs { margin-top: 4px; }
.con-team-note { margin-top: 14px; }
.field-hint { font-size: 12.5px; color: var(--text-3); margin: -2px 0 6px; line-height: 1.45; }
.con-setup { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.con-setup-item { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--text); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.con-setup-item:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.con-setup-icon { width: 34px; height: 34px; border-radius: 6px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-700); grid-row: span 2; }
.con-setup-text { display: flex; flex-direction: column; min-width: 0; }
.con-setup-text strong { font-size: 13.5px; font-weight: 650; }
.con-setup-text small { font-size: 12px; color: var(--text-3); }
.con-setup-item .progress { grid-column: 2; }
.con-people { list-style: none; margin: 0; padding: 4px 0 8px; }
.con-people li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 11px 18px; border-top: 1px solid var(--border); }
.con-people li:first-child { border-top: 0; }
.con-person { min-width: 0; }
.con-person-meta { display: flex; align-items: center; gap: 10px; }
.con-known { display: inline-flex; align-items: center; gap: 8px; min-width: 110px; }
.con-known .progress { flex: 1; min-width: 60px; }
.con-known small { font-size: 12px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.con-known-big { display: flex; flex-direction: column; gap: 6px; min-width: 190px; }
.con-known-big small { font-size: 12.5px; color: var(--text-2); font-weight: 550; }
.con-stat-total { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.con-stat-total strong { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--navy-900); }
.con-stat-total span { color: var(--text-3); font-size: 13px; }
.con-stat-list { list-style: none; margin: 0; padding: 0; }
.con-stat-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px dashed var(--border); font-size: 13px; }
.con-stat-list b { font-variant-numeric: tabular-nums; }

/* Cards (parent questions) */
.con-card-list { display: flex; flex-direction: column; gap: 8px; padding: 0 0 4px; }
section.card > .con-card-list { padding: 0 14px 14px; }
.con-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); scroll-margin-top: 90px; }
.con-card[open] { border-color: var(--teal-200); box-shadow: var(--shadow-xs); }
.con-card > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; }
.con-card > summary::-webkit-details-marker { display: none; }
.con-card-q { flex: 1; font-weight: 600; font-size: 14px; line-height: 1.4; }
.con-card-tags { display: flex; gap: 6px; flex-shrink: 0; }
.con-card-chev { color: var(--text-3); transition: transform .2s var(--ease); flex-shrink: 0; }
.con-card[open] .con-card-chev { transform: rotate(180deg); }
.con-card-check { display: inline-flex; padding: 2px; }
.con-card-check input { width: 18px; height: 18px; accent-color: var(--teal-600); }
.con-card-body { padding: 0 14px 14px; display: grid; gap: 10px; }
.con-part h4 { font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); font-weight: 650; margin-bottom: 4px; }
.con-part p { font-size: 13.5px; line-height: 1.6; color: var(--text-2); margin: 0; }
.con-part-ask p { color: var(--navy-800); font-style: italic; }
.con-part-answer { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; }
.con-part-answer p { color: var(--text); }
.con-part-next p { color: var(--teal-800); font-weight: 550; }
.fill { color: var(--text); }
.fill-missing { background: var(--amber-50); color: var(--amber-700); border-radius: 4px; padding: 0 4px; box-shadow: inset 0 0 0 1px var(--amber-100); font-weight: 600; text-decoration: none; }
a.fill-missing:hover { background: var(--amber-100); }
.con-card-actions { display: flex; gap: 6px; justify-content: flex-end; border-top: 1px solid var(--border); padding-top: 8px; }
.con-codes { display: flex; flex-wrap: wrap; gap: 6px; }
.con-code { display: inline-flex; align-items: center; gap: 6px; border: 1px dashed var(--border-strong); background: var(--surface); border-radius: 4px; padding: 3px 10px; font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--navy-800); cursor: pointer; }
.con-code span { font-family: var(--font); color: var(--text-3); }
.con-code:hover { border-color: var(--teal-500); }

/* Chips used for choices */
.check-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.check-chip { position: relative; display: inline-flex; cursor: pointer; }
.check-chip input { position: absolute; opacity: 0; pointer-events: none; }
.check-chip span { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 13px; color: var(--text-2); transition: all .12s var(--ease); }
.check-chip:hover span { border-color: var(--teal-500); }
.check-chip input:checked + span { background: var(--teal-50); border-color: var(--teal-500); color: var(--teal-800); font-weight: 600; }
.check-chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--ring); }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; }

/* Centre profile + courses */
.con-profile { display: grid; gap: 18px; }
.con-pf { scroll-margin-top: 90px; }
.con-pf:target textarea, .con-pf:target input { box-shadow: 0 0 0 3px var(--ring); border-color: var(--teal-500); }
.con-pf label { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.con-courses { list-style: none; margin: 0; padding: 6px 18px 14px; }
.con-courses li { padding: 12px 0; border-top: 1px solid var(--border); }
.con-courses li:first-child { border-top: 0; }
.con-course-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.con-course-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; }

/* Discovery guide */
.con-qlist { list-style: none; margin: 0; padding: 4px 18px 16px; }
.con-qlist li { padding: 14px 0; border-top: 1px solid var(--border); }
.con-qlist li:first-child { border-top: 0; }
.con-q-head { display: flex; align-items: center; gap: 10px; }
.con-q-num { width: 24px; height: 24px; border-radius: 50%; background: var(--navy-900); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.con-q-opts { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 0 34px; }
.con-q-guide { margin: 8px 0 0 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.con-q-guide dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); font-weight: 650; }
.con-q-guide dd { margin: 2px 0 0; font-size: 13px; color: var(--text-2); line-height: 1.55; }

/* Guided session */
.con-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 4px 0 14px; }
.con-step { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--text-3); font-size: 13px; font-weight: 550; min-width: 0; }
.con-step-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.con-step-n { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--surface-3); color: var(--text-2); font-size: 11.5px; font-weight: 700; flex-shrink: 0; }
.con-step.is-active { border-color: var(--teal-500); color: var(--text); box-shadow: 0 0 0 3px var(--teal-50); }
.con-step.is-active .con-step-n { background: var(--teal-600); color: #fff; }
.con-step.is-done .con-step-n { background: var(--navy-900); color: #fff; }
.card-header h2 .con-step-n { margin-right: 8px; background: var(--teal-50); color: var(--teal-700); }
.con-session { display: grid; gap: 14px; padding-bottom: 10px; }
.con-session.is-stepped .con-panel { display: none; }
.con-session.is-stepped .con-panel.is-current { display: block; }
.con-say { border-left: 3px solid var(--teal-500); background: var(--teal-50); padding: 10px 14px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.con-say h4 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--teal-800); margin-bottom: 4px; }
.con-say p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--navy-900); }
.con-tips { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13.5px; color: var(--text-2); }
.con-group-title { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); font-weight: 700; margin: 18px 0 8px; }
.con-group-title:first-child { margin-top: 0; }
.con-q { padding: 10px 0 12px; border-top: 1px solid var(--border); }
.con-q-label { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; flex-wrap: wrap; }
.con-q-label label { font-weight: 600; font-size: 14px; }
.con-q.is-key.is-answered .con-q-label label::after { content: "✓"; color: var(--green-600); margin-left: 6px; }
.con-a { min-height: 40px; }
.con-why { position: relative; }
.con-why summary { list-style: none; cursor: pointer; color: var(--text-3); display: inline-flex; padding: 2px; border-radius: 4px; }
.con-why summary::-webkit-details-marker { display: none; }
.con-why summary:hover, .con-why[open] summary { color: var(--teal-700); background: var(--teal-50); }
.con-why[open] { flex-basis: 100%; }
.con-why p { margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--text-2); background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 10px; }
.con-course-pick { display: grid; gap: 8px; }
.con-course-opt { display: block; cursor: pointer; }
.con-course-opt input { position: absolute; opacity: 0; }
.con-course-box { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.con-course-opt.is-match .con-course-box { border-color: var(--teal-200); }
.con-course-opt input:checked + .con-course-box { border-color: var(--teal-600); box-shadow: 0 0 0 3px var(--teal-50); }
.con-course-opt input:focus-visible + .con-course-box { box-shadow: 0 0 0 3px var(--ring); }
.con-reasons { display: flex; flex-wrap: wrap; gap: 5px; }
.con-reasons .icon { width: 12px; height: 12px; }
.con-next-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.con-next-opt { cursor: pointer; display: block; }
.con-next-opt input { position: absolute; opacity: 0; }
.con-next-opt > span { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.con-next-opt strong { font-size: 14px; }
.con-next-opt small { font-size: 12px; color: var(--text-3); line-height: 1.45; }
.con-next-opt input:checked + span { border-color: var(--teal-600); background: var(--teal-50); box-shadow: 0 0 0 3px var(--teal-50); }
.con-next-opt input:focus-visible + span { box-shadow: 0 0 0 3px var(--ring); }
.con-bar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.con-bar-mid { flex: 1; display: flex; justify-content: center; }
.con-session:not(.is-stepped) [data-step-prev], .con-session:not(.is-stepped) [data-step-next] { display: none; }
.con-session:not(.is-stepped) [data-step-finish] { display: inline-flex; }

/* Quick panel */
.con-quick-btn .icon { color: var(--teal-700); }
.con-drawer { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.con-drawer-scrim { position: absolute; inset: 0; background: rgba(10, 23, 48, .35); opacity: 0; transition: opacity .2s var(--ease); }
.con-drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--canvas); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .25s var(--ease); display: flex; flex-direction: column; }
.con-drawer.is-open { pointer-events: auto; }
.con-drawer.is-open .con-drawer-scrim { opacity: 1; }
.con-drawer.is-open .con-drawer-panel { transform: none; }
.con-drawer-x { position: absolute; top: 10px; right: 10px; z-index: 2; }
.con-drawer-body { overflow-y: auto; padding: 16px 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.con-quick-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-right: 40px; }
.con-quick-head strong { font-family: var(--font-display); font-size: 17px; }
body.drawer-open { overflow: hidden; }

@media (max-width: 1180px) {
  .con-setup { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .con-steps .con-step-l { display: none; }
  .con-steps .con-step.is-active .con-step-l { display: inline; }
  .con-steps { grid-template-columns: repeat(5, auto); justify-content: start; }
  .con-next-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .con-q-guide { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .con-setup { grid-template-columns: 1fr; }
  .con-people li { grid-template-columns: minmax(0, 1fr) auto; }
  .con-person-meta { grid-column: 1; grid-row: 2; }
  .con-people li > .btn { grid-row: 1 / span 2; grid-column: 2; }
  .con-next-grid { grid-template-columns: 1fr; }
  .con-q-opts, .con-q-guide { margin-left: 0; }
  .con-known-big { min-width: 0; width: 100%; }
  .con-card > summary { flex-wrap: wrap; }
  .con-card-q { flex-basis: calc(100% - 60px); }
}
.con-bar [hidden] { display: none !important; }
@media (max-width: 640px) {
  .con-bar { gap: 6px; padding: 8px; }
  .con-bar .btn { padding-left: 10px; padding-right: 10px; }
  .con-bar-mid .btn span { display: none; }
}

/* v0.6 policies, business details and badges */
.legal-others a { font-size: 14px; font-weight: 550; }
.legal-others a.is-active { color: var(--blue-700); }
.legal-others a.is-active::before { content: "✦ "; color: var(--blue-500); }
.legal-operator { margin-top: 40px; padding: 22px 24px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.legal-operator h2 { font-size: 16px !important; margin: 0 0 12px !important; }
.legal-operator dl { display: grid; gap: 8px; margin: 0; }
.legal-operator dl > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; font-size: 15px; }
.legal-operator dt { color: var(--text-3); }
.legal-operator dd { margin: 0; color: var(--text); }
@media (min-width: 961px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.footer-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-biz { margin: 0; font-size: 13.5px; color: var(--text-3); max-width: 720px; line-height: 1.6; }
.footer-badges { display: flex; align-items: center; gap: 12px; }
.footer-badge { display: grid; place-items: center; width: 156px; height: 58px; padding: 6px 10px; background: #fff; border: 1px solid var(--border); border-radius: 4px; box-sizing: border-box; }
.footer-badge img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.footer-legal + .footer-bottom { margin-top: 22px; }
@media (max-width: 640px) {
  .legal-operator dl > div { grid-template-columns: 1fr; gap: 2px; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}
/* Admin: logo slots */
.logo-slot { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px 0; border-top: 1px solid var(--border); }
.logo-slot:first-child { border-top: 0; }
.logo-slot-box { height: 84px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius); display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); font-size: 12.5px; text-align: center; padding: 8px; }
.logo-slot-box.has-img { border-style: solid; background: #fff; }
.logo-slot-box img { max-height: 64px; max-width: 180px; object-fit: contain; }
.logo-slot-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 640px) { .logo-slot { grid-template-columns: 1fr; } }
.footer-biz > .nw { white-space: nowrap; }
@media (max-width: 960px) {
  .footer-grid > nav[aria-labelledby="ft-trust"] { grid-column: 1 / -1; }
  .footer-grid > nav[aria-labelledby="ft-trust"] ul { grid-template-columns: 1fr 1fr; column-gap: 16px; }
}
/* v0.6.1: operator details in the footer */
.footer-legal { align-items: flex-start; }
.footer-biz { font-style: normal; display: grid; gap: 3px; max-width: 760px; }
.footer-biz-row { display: block; }
.footer-biz .nw { white-space: nowrap; color: var(--text-2); }
.footer-biz strong { color: var(--text); font-weight: 600; }
.footer-biz a, .footer-credit { color: inherit; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.footer-biz a:hover, .footer-credit:hover { color: var(--primary); text-decoration-color: currentColor; }
.footer-biz .sep, .footer-bottom .sep { margin: 0 4px; color: var(--border-strong); }
@media (max-width: 640px) { .footer-biz .nw { white-space: normal; } }
/* Policy pages printed or saved as PDF (for the Ministry of Industry and Trade filing) */
@media print {
  @page { size: A4; margin: 18mm 16mm; }
  .site-header, .site-footer, footer, .legal-layout > aside, .legal-jump, .legal-contact, .toast-stack, .skip-link, .page-hero .crumbs, .page-hero .kicker { display: none !important; }
  main:has(.legal-layout) > :not(.page-hero):not(.legal-layout), main:has(.legal-layout) .page-hero-grid > :not(:first-child) { display: none !important; }
  .legal-summary { border-radius: 0 !important; }
  .page-hero .display { font-size: 20pt !important; }
  body { background: #fff !important; color: #111 !important; }
  .legal-layout { display: block !important; padding: 0 !important; }
  .legal-doc { max-width: none !important; font-size: 11.5pt; line-height: 1.55; }
  .legal-doc h2 { font-size: 13pt; margin-top: 14pt; break-after: avoid; }
  .legal-sec, .legal-summary, .legal-operator { break-inside: avoid-page; }
  .legal-summary { border: 1px solid #ccc !important; background: #fff !important; }
  .legal-operator { border-top: 1px solid #ccc; padding-top: 10pt; }
  .page-hero, .hero { padding: 0 0 8pt !important; background: none !important; border: 0 !important; }
  a { color: #111 !important; text-decoration: none !important; }
}
.footer-biz a[href^="tel:"] { white-space: nowrap; }
@media print { .legal-operator dl > div { grid-template-columns: 200px minmax(0, 1fr) !important; } }
/* v0.6.1: sign-in always visible on phones */
.nav-login { display: inline-flex; align-items: center; gap: 6px; }
.nav-login .icon { display: none; }
@media (max-width: 960px) {
  .site-nav-right .nav-login { display: inline-flex; height: 40px; padding: 0 14px; border: 1px solid var(--blue-600); border-radius: 6px; color: var(--blue-700); font-size: 14.5px; font-weight: 600; white-space: nowrap; }
  .site-nav-right .nav-login .icon { display: inline-block; }
  .site-nav-right { gap: 10px; }
}
@media (max-width: 360px) { .site-nav-right .nav-login { padding: 0 10px; } .site-nav-right .nav-login .icon { display: none; } }

/* Week shift planner (0.6.9) */
.shift-hours { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; line-height: 1.35; }
.pattern-list { list-style: none; margin: 0; padding: 0 0 6px; }
.pattern-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--border); }
.pattern-info { display: grid; gap: 2px; min-width: 0; }
.pattern-info strong { overflow-wrap: anywhere; }
.sp-grid { border-top: 1px solid var(--border); }
.sp-row { display: grid; grid-template-columns: 118px minmax(170px, 1.5fr) repeat(4, minmax(112px, 1fr)) 64px; gap: 10px; align-items: center; padding: 10px 20px; border-bottom: 1px solid var(--border); }
.sp-row > .field-error { grid-column: 2 / -1; margin: -4px 0 0; }
.sp-row.has-error { background: var(--red-50); }
.sp-head { padding-top: 8px; padding-bottom: 8px; background: var(--surface-2); font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
.sp-day { display: grid; gap: 1px; }
.sp-lbl { display: none; }
.sp-sum { font-weight: 650; font-variant-numeric: tabular-nums; color: var(--text-2); }
.sp-row.is-template .sp-time, .sp-row.is-empty .sp-time, .sp-row.is-off .sp-time { visibility: hidden; }
.sp-total { font-variant-numeric: tabular-nums; color: var(--blue-700); }
.sp-foot { display: grid; gap: 12px; }
.sp-name { max-width: 420px; }
.sp-name.is-hidden { display: none; }
@media (max-width: 1240px) {
  .sp-head { display: none; }
  .sp-row { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 14px 16px; }
  .sp-row > div:nth-child(2) { grid-column: 1 / -1; }
  .sp-day { grid-column: 1 / 3; }
  .sp-sum { grid-column: 3 / 5; grid-row: 1; text-align: right; }
  .sp-row > div:nth-child(2) { grid-column: 1 / -1; }
  .sp-lbl { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 3px; }
  .sp-row.is-template .sp-time, .sp-row.is-empty .sp-time, .sp-row.is-off .sp-time { display: none; }
  .sp-row > .field-error { grid-column: 1 / -1; }
  .pattern-list li { flex-wrap: wrap; padding: 12px 16px; }
}
@media (max-width: 600px) {
  .sp-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-day { grid-column: 1 / 2; }
  .sp-sum { grid-column: 2 / 3; }
}

/* Brand assets page /logo (0.7.0) */
.brand-group h2, .brand-rules h2 { font-family: var(--font-display); font-size: 26px; letter-spacing: -.02em; color: var(--blue-900); margin: 0 0 8px; }
.brand-group .lead-copy { max-width: 720px; margin: 0 0 24px; }
.brand-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.brand-grid.is-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.brand-card { margin: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-xs); display: flex; flex-direction: column; }
.brand-preview { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 28px; background: #fff; border-bottom: 1px solid var(--border); }
.brand-grid.is-wide .brand-preview { aspect-ratio: 16 / 7; padding: 36px 48px; }
.brand-preview.is-dark { background: var(--blue-900); }
.brand-preview { overflow: hidden; }
.brand-preview img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.brand-card figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 14px 16px 16px; flex: 1; }
.brand-card figcaption .btn { margin-top: auto; }
.brand-grid.is-wide figcaption { flex-direction: row; align-items: center; justify-content: space-between; }
.brand-grid.is-wide figcaption .btn { margin-top: 0; }
.brand-preview.is-square { padding: 10px; }
.brand-card figcaption div { display: grid; gap: 2px; min-width: 0; }
.brand-card figcaption strong { font-size: 14.5px; }
.brand-card figcaption span { font-size: 12.5px; color: var(--text-3); }
.brand-rules { margin-top: 64px; max-width: 820px; }
.brand-rules ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--text-2); }
@media (max-width: 1080px) { .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .brand-grid, .brand-grid.is-wide { grid-template-columns: minmax(0, 1fr); } }
