/* FAK9 design system: pastel palette.
   Each hue has a soft fill (bars, ticks, tints) and a deeper "-2" tone of the same hue for text, links and
   chart lines, so pastel never costs legibility. Warm apricot/rose are reserved for things that need attention.
   No inline styles anywhere (strict CSP): bar widths use the generated .w-N / .l-N classes at the end of this file. */
/* Inter, self-hosted (variable weight 400-600): no third-party font requests, strict CSP, GDPR-friendly. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  --page: #f1f2f6; --card: #ffffff; --grey: #eceef1; --soft: #f2f0fa; --ink: #2a2840; --ink2: #55526e; --muted: #6f6b88;
  --line: rgb(60 50 110 / .09); --line2: rgb(60 50 110 / .17);
  --accent: #aab4f7; --accent-2: #4f5bd0; --on-accent: #1f2358;
  --money: #a3e2c9; --money-2: #1f8562;
  --warn: #fbd2a3; --warn-2: #8a540f; --warn-line: #e39a45;
  --down: #f7b2c0; --down-2: #b23b56;
  --tip: #2f2d48; --live: #5fcf9f;
  --shadow: 0 1px 2px rgb(60 50 110 / .06), 0 1px 1px rgb(60 50 110 / .03);
  --shadow-pop: 0 14px 34px -10px rgb(40 30 90 / .25), 0 0 0 1px rgb(60 50 110 / .07);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #14131f; --card: #1d1c2b; --grey: #2c2e36; --soft: #272538; --ink: #f0eff9; --ink2: #c5c2da; --muted: #9a97b3;
    --line: rgb(255 255 255 / .09); --line2: rgb(255 255 255 / .18);
    --accent: #a8b2ff; --accent-2: #b7c0ff; --on-accent: #14131f;
    --money: #86dcb8; --money-2: #8be3bf;
    --warn: #ffd3a1; --warn-2: #ffd8a6; --warn-line: #ffc27a;
    --down: #ff9fb2; --down-2: #ffa9ba;
    --tip: #34324f; --live: #86dcb8;
    --shadow: 0 1px 2px rgb(0 0 0 / .4); --shadow-pop: 0 14px 34px -10px rgb(0 0 0 / .6), 0 0 0 1px rgb(255 255 255 / .08);
  }
}

[hidden] { display: none !important; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }
h1 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 14px; }
h2 { font-size: 15px; font-weight: 500; margin: 18px 0 8px; }
p { margin: 0 0 12px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
svg { display: block; }
.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- app header ---------- */
.top { display: flex; align-items: center; gap: 16px; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
  background: var(--card); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: .02em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand svg { width: 22px; height: 22px; }
.top nav { display: flex; gap: 2px; flex-wrap: wrap; }
.top nav a { color: var(--ink2); padding: 6px 10px; border-radius: 8px; }
.top nav a:hover { background: var(--soft); text-decoration: none; }
.top nav a[aria-current="page"] { background: color-mix(in srgb, var(--accent) 30%, transparent); color: var(--accent-2); font-weight: 500; }
.top .sp { flex: 1; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 500;
  background: color-mix(in srgb, var(--accent) 38%, var(--card)); color: var(--accent-2); flex: none; }
.avatar:hover { text-decoration: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--soft); color: var(--ink2); font-size: 12.5px; border: 0; }

/* ---------- page shell + legacy components ---------- */
.wrap { max-width: 1100px; margin: 0 auto; padding: 20px max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px)); }
.wrap.wide { max-width: 1640px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 16px; }
.flash { padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; }
.flash.notice { background: color-mix(in srgb, var(--money) 45%, var(--card)); color: var(--money-2); }
.flash.alert { background: color-mix(in srgb, var(--down) 45%, var(--card)); color: var(--down-2); }
.errors { color: var(--down-2); padding-left: 18px; margin: 0 0 12px; }
.badge { display: inline-block; font-size: 12px; line-height: 1; padding: 4px 8px; border-radius: 999px; background: var(--soft); color: var(--ink2); }
a.badge:hover { text-decoration: none; background: var(--grey); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 12.5px; }
fieldset { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 14px; padding: 8px 14px 14px; }
legend { padding: 0 6px; font-weight: 500; color: var(--ink2); }
label { display: block; font-weight: 500; margin: 12px 0 5px; font-size: 13px; }
label input[type=checkbox], label input[type=radio] { margin-right: 6px; }
label.inline-label { display: inline-block; margin-right: 14px; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=tel], input[type=number], input[type=date], select, textarea {
  width: 100%; padding: 8px 11px; border: 1px solid var(--line2); border-radius: 9px; background: var(--card); }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); border-color: var(--accent-2); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
form.inline, .inline { display: inline; }
.btn, button.btn, input[type=submit] { display: inline-block; border: 1px solid var(--line2); background: var(--card); border-radius: 9px; padding: 6px 12px; font-size: 13px; color: var(--ink); text-decoration: none; }
.btn:hover, input[type=submit]:hover { background: var(--soft); text-decoration: none; }
.btn.primary, input[type=submit].primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 500; }
.btn.primary:hover { filter: brightness(1.05); }
.btn.secondary { color: var(--accent-2); background: transparent; }
.btn.danger { background: color-mix(in srgb, var(--down) 55%, var(--card)); border-color: transparent; color: var(--down-2); }

/* ---------- dashboard ---------- */
.head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.head h1 { margin: 0; }
.head .sp { flex: 1; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 14px 16px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.kpi .lab { display: flex; align-items: center; justify-content: space-between; color: var(--ink2); }
.kpi .sq { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--soft); color: var(--muted); }
.kpi.alert .sq { background: color-mix(in srgb, var(--warn) 55%, var(--card)); color: var(--warn-2); }
.kpi .val { font-size: 28px; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .val small { font-size: 13px; letter-spacing: 0; color: var(--muted); font-weight: 400; margin-left: 4px; }
.kpi .sub { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.switch a { padding: 5px 12px; border-radius: 999px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.switch a:hover { background: var(--soft); color: var(--ink); text-decoration: none; }
.switch a[aria-current] { background: var(--accent); color: var(--on-accent); font-weight: 500; }
.figures { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 12px; margin: 0 0 16px; }
.figure { padding: 0 16px; border-left: 1px solid var(--line); min-width: 0; }
.figure:first-child { padding-left: 0; border-left: 0; }
.figure dt { font-size: 12.5px; color: var(--muted); }
.figure dd { margin: 0; font-size: 24px; font-weight: 500; font-variant-numeric: tabular-nums; }
.figure dd.note { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.layout-sales .k-revenue { order: -2; } .layout-sales .k-overdue { order: -1; }
@media (max-width: 900px) { .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } .figure { padding: 0; border-left: 0; } }
.delta { font-weight: 500; font-size: 12.5px; }
.delta.up { color: var(--money-2); } .delta.down { color: var(--down-2); }
.spark { height: 28px; width: 100%; }
.ticks { display: flex; gap: 2px; height: 22px; --c: var(--accent); }
.ticks i { flex: 1; border-radius: 1px; background: var(--line2); }
.ticks i.on { background: var(--c); }
.ticks i.mk { background: var(--ink); }
.ticks.warn { --c: var(--warn); } .ticks.money { --c: var(--money); }

.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 16px; min-height: 120px; min-width: 0; }
.pane { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); min-width: 0; }
.pane.dragging { opacity: .35; }
.ph { border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.pane > header { display: flex; align-items: center; gap: 8px; padding: 12px 10px 8px 6px; }
.pane h2 { margin: 0; font-size: 15px; font-weight: 500; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pi { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--grey); color: var(--ink2); }
.pi .ic { width: 14px; height: 14px; }
.grip { border: 0; background: transparent; color: var(--muted); width: 20px; height: 28px; display: grid; place-items: center; border-radius: 6px; cursor: grab; touch-action: none; padding: 0; }
.grip:hover { background: var(--soft); color: var(--ink); }
.grip:active { cursor: grabbing; }
.fold { border: 0; background: transparent; color: var(--muted); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; padding: 0; }
.fold:hover { background: var(--soft); color: var(--ink); }
.fold .ic { transition: transform .15s; }
.pane.collapsed .fold .ic { transform: rotate(-90deg); }
.pane.collapsed > .body { display: none; }
.pane > .body { padding: 0 16px 14px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 1; padding: 4px 8px; border-radius: 999px; background: var(--soft); color: var(--ink2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chip .ic { width: 12px; height: 12px; stroke-width: 1.6; }
.chip.warn { background: color-mix(in srgb, var(--warn) 55%, var(--card)); color: var(--warn-2); }
.chip.down { background: color-mix(in srgb, var(--down) 50%, var(--card)); color: var(--down-2); }
.chip.ok { background: color-mix(in srgb, var(--money) 50%, var(--card)); color: var(--money-2); }
.chip.acc { background: color-mix(in srgb, var(--accent) 42%, var(--card)); color: var(--accent-2); }
.chip.count { min-width: 22px; justify-content: center; }
.chip.sample { background: transparent; border: 1px dashed var(--line2); color: var(--muted); }

.row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); min-width: 0; }
.row:first-child, .body > .filters + .row { border-top: 0; }
.row.block { display: block; padding: 9px 0 11px; }
.row .main { flex: 1; min-width: 0; }
.row .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .t.wrap-text { white-space: normal; }
.row .s { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.row .end { text-align: right; flex: none; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.row .between { display: flex; justify-content: space-between; gap: 8px; }
.row-link { font-size: 12px; color: var(--muted); }
.chk { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line2); background: transparent; display: grid; place-items: center; padding: 0; flex: none; color: transparent; }
.chk:hover { border-color: var(--accent-2); }
.chk.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chk .ic { width: 12px; height: 12px; stroke-width: 2; }
.done .t { text-decoration: line-through; color: var(--muted); }
.task-form { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.task-form input[type=text] { grid-column: 1 / -1; }
.task-form .btn { grid-column: 1 / -1; padding: 8px; }
.filters { display: flex; gap: 4px; flex-wrap: wrap; margin: 2px 0 4px; }
.filters a { border-radius: 999px; padding: 3px 9px; font-size: 12.5px; color: var(--muted); }
.filters a:hover { text-decoration: none; background: var(--soft); }
.filters a[aria-current] { background: color-mix(in srgb, var(--accent) 38%, transparent); color: var(--accent-2); font-weight: 500; }
.subhead { font-size: 12px; color: var(--muted); margin: 8px 0 0; }

.bar { height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--line2) 70%, transparent); position: relative; }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--accent); }
.bar b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink2); border-radius: 1px; }
.bar.money i { background: var(--money); } .bar.warn i { background: var(--warn); }
.bar.mt { margin-top: 6px; }
.bar.split { display: flex; gap: 2px; overflow: hidden; }
.bar.split i { position: static; height: 100%; }
.bar.split i.pot { background: color-mix(in srgb, var(--accent) 45%, var(--card)); }
.bar-line { display: flex; align-items: center; gap: 10px; margin-top: 7px; }
.bar-line .bar { flex: 1; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.stat { font-size: 12.5px; color: var(--muted); }
.stat b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.warn-text { color: var(--warn-2); font-weight: 500; }
.legend { display: flex; gap: 12px; font-size: 12px; color: var(--muted); margin-bottom: 4px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 14px; height: 0; border-top: 2px solid; vertical-align: middle; margin-right: 5px; }
.legend i.money { border-color: var(--money-2); } .legend i.fc { border-color: var(--money-2); border-top-style: dotted; }
.legend i.floor { border-color: var(--warn-line); border-top-style: dashed; } .legend i.acc { border-color: var(--accent-2); }
.legend i.ly { border-color: var(--muted); border-top-style: dashed; }
.chart { width: 100%; height: auto; overflow: visible; }
.chart text { font: 11px var(--font); fill: var(--muted); }
.chart text.t-warn { fill: var(--warn-2); font-weight: 500; } .chart text.t-acc { fill: var(--accent-2); font-weight: 500; }
.date { width: 42px; text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 3px 0; flex: none; line-height: 1.15; }
.date b { display: block; font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.date span { font-size: 10.5px; text-transform: uppercase; color: var(--muted); letter-spacing: .05em; }
.big { font-size: 32px; font-weight: 500; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.checks { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tip { position: fixed; z-index: 50; pointer-events: none; background: var(--tip); color: #fff; border-radius: 10px; padding: 8px 11px; box-shadow: var(--shadow-pop);
  font-size: 12px; line-height: 1.35; max-width: 260px; opacity: 0; transition: opacity .08s; }
.tip strong { display: block; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.tip span { color: rgb(255 255 255 / .72); }

/* ---------- auth screens ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); min-height: 100dvh; }
.auth .left { display: flex; flex-direction: column; justify-content: center; padding: 32px max(24px, env(safe-area-inset-left, 0px)); }
.auth .box { width: 100%; max-width: 380px; margin: 0 auto; }
.auth .brand { margin-bottom: 36px; font-size: 17px; }
.auth h1 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 6px; }
.auth p.lead { margin: 0 0 20px; color: var(--muted); }
.auth label { margin: 14px 0 6px; }
.auth input[type=text], .auth input[type=email], .auth input[type=password] { padding: 10px 12px; border-radius: 10px; font-size: 15px; }
.auth .go { width: 100%; margin-top: 20px; padding: 11px; border-radius: 10px; font-size: 15px; font-weight: 500; text-align: center; }
.auth .meta { display: flex; justify-content: space-between; margin-top: 16px; font-size: 13px; }
.auth .flash { margin-bottom: 18px; }
.auth .errors { margin-top: 12px; }
.auth .right { position: relative; overflow: hidden; background: color-mix(in srgb, var(--accent) 18%, var(--page)); border-left: 1px solid var(--line); }
.auth .right svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.qr { background: #fff; padding: 10px; border-radius: 12px; border: 1px solid var(--line); width: 180px; margin: 4px 0 8px; }
.qr img { width: 100%; height: auto; display: block; }
.key { font-family: ui-monospace, Menlo, monospace; font-size: 13px; background: var(--soft); padding: 6px 10px; border-radius: 8px; letter-spacing: .06em; display: inline-block; }
.codes { columns: 2; list-style: none; padding: 0; font-family: ui-monospace, Menlo, monospace; }

@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth .right { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- generated utilities (replace inline style="width:N%" / "left:N%", blocked by CSP) ---------- */
.w-0 { width: 0%; }
.w-1 { width: 1%; }
.w-2 { width: 2%; }
.w-3 { width: 3%; }
.w-4 { width: 4%; }
.w-5 { width: 5%; }
.w-6 { width: 6%; }
.w-7 { width: 7%; }
.w-8 { width: 8%; }
.w-9 { width: 9%; }
.w-10 { width: 10%; }
.w-11 { width: 11%; }
.w-12 { width: 12%; }
.w-13 { width: 13%; }
.w-14 { width: 14%; }
.w-15 { width: 15%; }
.w-16 { width: 16%; }
.w-17 { width: 17%; }
.w-18 { width: 18%; }
.w-19 { width: 19%; }
.w-20 { width: 20%; }
.w-21 { width: 21%; }
.w-22 { width: 22%; }
.w-23 { width: 23%; }
.w-24 { width: 24%; }
.w-25 { width: 25%; }
.w-26 { width: 26%; }
.w-27 { width: 27%; }
.w-28 { width: 28%; }
.w-29 { width: 29%; }
.w-30 { width: 30%; }
.w-31 { width: 31%; }
.w-32 { width: 32%; }
.w-33 { width: 33%; }
.w-34 { width: 34%; }
.w-35 { width: 35%; }
.w-36 { width: 36%; }
.w-37 { width: 37%; }
.w-38 { width: 38%; }
.w-39 { width: 39%; }
.w-40 { width: 40%; }
.w-41 { width: 41%; }
.w-42 { width: 42%; }
.w-43 { width: 43%; }
.w-44 { width: 44%; }
.w-45 { width: 45%; }
.w-46 { width: 46%; }
.w-47 { width: 47%; }
.w-48 { width: 48%; }
.w-49 { width: 49%; }
.w-50 { width: 50%; }
.w-51 { width: 51%; }
.w-52 { width: 52%; }
.w-53 { width: 53%; }
.w-54 { width: 54%; }
.w-55 { width: 55%; }
.w-56 { width: 56%; }
.w-57 { width: 57%; }
.w-58 { width: 58%; }
.w-59 { width: 59%; }
.w-60 { width: 60%; }
.w-61 { width: 61%; }
.w-62 { width: 62%; }
.w-63 { width: 63%; }
.w-64 { width: 64%; }
.w-65 { width: 65%; }
.w-66 { width: 66%; }
.w-67 { width: 67%; }
.w-68 { width: 68%; }
.w-69 { width: 69%; }
.w-70 { width: 70%; }
.w-71 { width: 71%; }
.w-72 { width: 72%; }
.w-73 { width: 73%; }
.w-74 { width: 74%; }
.w-75 { width: 75%; }
.w-76 { width: 76%; }
.w-77 { width: 77%; }
.w-78 { width: 78%; }
.w-79 { width: 79%; }
.w-80 { width: 80%; }
.w-81 { width: 81%; }
.w-82 { width: 82%; }
.w-83 { width: 83%; }
.w-84 { width: 84%; }
.w-85 { width: 85%; }
.w-86 { width: 86%; }
.w-87 { width: 87%; }
.w-88 { width: 88%; }
.w-89 { width: 89%; }
.w-90 { width: 90%; }
.w-91 { width: 91%; }
.w-92 { width: 92%; }
.w-93 { width: 93%; }
.w-94 { width: 94%; }
.w-95 { width: 95%; }
.w-96 { width: 96%; }
.w-97 { width: 97%; }
.w-98 { width: 98%; }
.w-99 { width: 99%; }
.w-100 { width: 100%; }
.l-0 { left: 0%; }
.l-1 { left: 1%; }
.l-2 { left: 2%; }
.l-3 { left: 3%; }
.l-4 { left: 4%; }
.l-5 { left: 5%; }
.l-6 { left: 6%; }
.l-7 { left: 7%; }
.l-8 { left: 8%; }
.l-9 { left: 9%; }
.l-10 { left: 10%; }
.l-11 { left: 11%; }
.l-12 { left: 12%; }
.l-13 { left: 13%; }
.l-14 { left: 14%; }
.l-15 { left: 15%; }
.l-16 { left: 16%; }
.l-17 { left: 17%; }
.l-18 { left: 18%; }
.l-19 { left: 19%; }
.l-20 { left: 20%; }
.l-21 { left: 21%; }
.l-22 { left: 22%; }
.l-23 { left: 23%; }
.l-24 { left: 24%; }
.l-25 { left: 25%; }
.l-26 { left: 26%; }
.l-27 { left: 27%; }
.l-28 { left: 28%; }
.l-29 { left: 29%; }
.l-30 { left: 30%; }
.l-31 { left: 31%; }
.l-32 { left: 32%; }
.l-33 { left: 33%; }
.l-34 { left: 34%; }
.l-35 { left: 35%; }
.l-36 { left: 36%; }
.l-37 { left: 37%; }
.l-38 { left: 38%; }
.l-39 { left: 39%; }
.l-40 { left: 40%; }
.l-41 { left: 41%; }
.l-42 { left: 42%; }
.l-43 { left: 43%; }
.l-44 { left: 44%; }
.l-45 { left: 45%; }
.l-46 { left: 46%; }
.l-47 { left: 47%; }
.l-48 { left: 48%; }
.l-49 { left: 49%; }
.l-50 { left: 50%; }
.l-51 { left: 51%; }
.l-52 { left: 52%; }
.l-53 { left: 53%; }
.l-54 { left: 54%; }
.l-55 { left: 55%; }
.l-56 { left: 56%; }
.l-57 { left: 57%; }
.l-58 { left: 58%; }
.l-59 { left: 59%; }
.l-60 { left: 60%; }
.l-61 { left: 61%; }
.l-62 { left: 62%; }
.l-63 { left: 63%; }
.l-64 { left: 64%; }
.l-65 { left: 65%; }
.l-66 { left: 66%; }
.l-67 { left: 67%; }
.l-68 { left: 68%; }
.l-69 { left: 69%; }
.l-70 { left: 70%; }
.l-71 { left: 71%; }
.l-72 { left: 72%; }
.l-73 { left: 73%; }
.l-74 { left: 74%; }
.l-75 { left: 75%; }
.l-76 { left: 76%; }
.l-77 { left: 77%; }
.l-78 { left: 78%; }
.l-79 { left: 79%; }
.l-80 { left: 80%; }
.l-81 { left: 81%; }
.l-82 { left: 82%; }
.l-83 { left: 83%; }
.l-84 { left: 84%; }
.l-85 { left: 85%; }
.l-86 { left: 86%; }
.l-87 { left: 87%; }
.l-88 { left: 88%; }
.l-89 { left: 89%; }
.l-90 { left: 90%; }
.l-91 { left: 91%; }
.l-92 { left: 92%; }
.l-93 { left: 93%; }
.l-94 { left: 94%; }
.l-95 { left: 95%; }
.l-96 { left: 96%; }
.l-97 { left: 97%; }
.l-98 { left: 98%; }
.l-99 { left: 99%; }
.l-100 { left: 100%; }

/* Task pills: importance and person. Tone classes only set two variables; chips and pickers consume them. */
.i-today { --tone-bg: color-mix(in srgb, var(--down) 60%, var(--card)); --tone-fg: var(--down-2); }
.i-important { --tone-bg: color-mix(in srgb, var(--warn) 60%, var(--card)); --tone-fg: var(--warn-2); }
.i-read-and-tick { --tone-bg: color-mix(in srgb, var(--accent) 45%, var(--card)); --tone-fg: var(--accent-2); }
.i-to-clarify { --tone-bg: color-mix(in srgb, var(--money) 50%, var(--card)); --tone-fg: var(--money-2); }
.p0 { --tone-bg: color-mix(in srgb, var(--accent) 40%, var(--card)); --tone-fg: var(--accent-2); }
.p1 { --tone-bg: color-mix(in srgb, var(--money) 45%, var(--card)); --tone-fg: var(--money-2); }
.p2 { --tone-bg: color-mix(in srgb, var(--warn) 50%, var(--card)); --tone-fg: var(--warn-2); }
.p3 { --tone-bg: color-mix(in srgb, var(--down) 45%, var(--card)); --tone-fg: var(--down-2); }
.p4 { --tone-bg: color-mix(in srgb, #c9b6f2 50%, var(--card)); --tone-fg: #6540b0; }
.p5 { --tone-bg: color-mix(in srgb, #9fd6e6 50%, var(--card)); --tone-fg: #1f6b84; }
.chip[class*="i-"], .chip[class*=" p"] { background: var(--tone-bg); color: var(--tone-fg); }

.pick-group { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 8px 0 0; grid-column: 1 / -1; }
.pick-label { flex: 0 0 100%; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-left: 2px; }
.pick { position: relative; display: inline-flex; margin: 0; cursor: pointer; font-weight: 400; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.pick-text { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; background: var(--tone-bg, var(--grey)); color: var(--tone-fg, var(--ink2)); font-size: 11.5px; line-height: 1; white-space: nowrap; opacity: .72; }
.pick:hover .pick-text { opacity: 1; }
.pick input:checked + .pick-text { opacity: 1; font-weight: 600; box-shadow: inset 0 0 0 1.5px currentColor; }
.pick input:checked + .pick-text::before { content: "✓"; margin-right: 5px; font-size: 10px; }
.pick input:focus-visible + .pick-text { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Client form: two columns of section cards, labels above fields, sticky action bar. */
.page-head { margin: 0 0 14px; }
.page-head h1 { margin: 0 0 2px; }
.page-head p { margin: 0; }
.cform-cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cform-col { display: flex; flex-direction: column; min-width: 0; }
.fsec { padding: 14px 18px 18px; }
.fsec-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.fsec-head h2 { margin: 0; font-size: 15px; font-weight: 600; }
.fsec-purpose { margin: 0; font-size: 12.5px; color: var(--muted); flex-basis: 100%; padding-left: 34px; margin-top: -4px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.fld { min-width: 0; }
.fld.full { grid-column: 1 / -1; }
.fld label { margin: 12px 0 5px; }
.fld-hint, .fld-error { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.fld-error { color: var(--down-2); font-weight: 500; }
.fld.has-error input, .fld.has-error textarea { border-color: var(--down-2); background: color-mix(in srgb, var(--down) 12%, var(--card)); }
.form-errors { background: color-mix(in srgb, var(--down) 30%, var(--card)); color: var(--down-2); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; }
.form-errors .errors { margin: 6px 0 0; }
.opts { border: 0; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.opts legend { padding: 0; margin-bottom: 4px; font-size: 13px; font-weight: 500; color: var(--ink2); }
.opt { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 9px 12px; border: 1px solid var(--line2); border-radius: 10px; font-weight: 400; cursor: pointer; }
.opt input { margin: 3px 0 0; flex: none; accent-color: var(--accent-2); }
.opt span { display: flex; flex-direction: column; gap: 1px; }
.opt b { font-weight: 500; }
.opt small { color: var(--muted); font-size: 12px; }
.opt:hover { background: var(--soft); }
.opt:has(input:checked) { border-color: var(--accent-2); background: color-mix(in srgb, var(--accent) 18%, var(--card)); }
.opt:has(input:focus-visible) { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.pick-group.tags { margin-top: 10px; }
.fold-sec > summary { list-style: none; cursor: pointer; margin: 0; }
.fold-sec > summary::-webkit-details-marker { display: none; }
.fold-sec[open] > summary { margin-bottom: 4px; }
.fold-ic { margin-left: auto; color: var(--muted); display: grid; transition: transform .15s; }
.fold-sec[open] .fold-ic { transform: rotate(180deg); }
.fold-sec > summary:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 4px; border-radius: 8px; }
.formbar { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 8px; align-items: center; margin: 4px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--page) 94%, transparent); border-top: 1px solid var(--line); }
.formbar .btn { padding: 9px 18px; font-size: 14px; }
@media (max-width: 920px) { .cform-cols { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 560px) { .fgrid { grid-template-columns: 1fr; } .fsec-purpose { padding-left: 0; } }
@media (prefers-reduced-motion: reduce) { .fold-ic { transition: none; } }

/* Tasks: the whole title is always visible (wraps), and rows can be reordered by their handle. */
.row.task { align-items: flex-start; }
.row.task .t { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.35; padding-top: 3px; }
.row.task .chip, .row.task .row-link { flex: none; margin-top: 4px; }
.row.task .row-link { margin-top: 5px; }
.tgrip { flex: none; border: 0; background: transparent; color: var(--muted); width: 16px; height: 28px; display: grid; place-items: center; border-radius: 6px; cursor: grab; padding: 0; margin: 0 -4px 0 -6px; touch-action: none; opacity: .45; }
.row.task:hover .tgrip, .tgrip:focus-visible { opacity: 1; }
.tgrip:hover { background: var(--soft); color: var(--ink); }
.tgrip:active { cursor: grabbing; }
.row.task.dragging { opacity: .4; }
.task-list { display: block; }

/* Search autocomplete */
.ac { position: relative; display: inline-block; width: min(420px, 100%); vertical-align: middle; }
.ac-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: var(--card); border: 1px solid var(--line2); border-radius: 12px; box-shadow: var(--shadow-pop); max-height: 320px; overflow-y: auto; }
.ac-list li { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.ac-list li:hover, .ac-list li[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 25%, var(--card)); }
.ac-name { font-weight: 500; }
.ac-detail { font-size: 12px; color: var(--muted); }

.page-head.split { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-head.split h1 { margin: 0; display: flex; align-items: center; gap: 10px; }
.cav { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: var(--tone-bg); color: var(--tone-fg); }
.tag-admin summary { cursor: pointer; font-weight: 500; }
.tag-admin-item { display: inline-flex; align-items: center; gap: 2px; margin: 4px 10px 4px 0; }
.tag-admin-item button { border: 0; background: transparent; color: var(--down-2); cursor: pointer; padding: 2px 6px; border-radius: 6px; font-size: 14px; }
.tag-admin-item button:hover { background: color-mix(in srgb, var(--down) 35%, var(--card)); }

/* Tag picker under the tag box */
.tagbtn { border: 0; border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 12.5px; cursor: pointer; background: color-mix(in srgb, var(--accent) 38%, var(--card)); color: var(--accent-2); }
.tagbtn:hover { background: color-mix(in srgb, var(--accent) 55%, var(--card)); }
.tagbtn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.tagbtn.used, .tagbtn:disabled { background: var(--grey); color: var(--muted); cursor: default; text-decoration: line-through; opacity: .75; }

/* Tag box: chosen tags as rounded chips with an x, typing field after them */
.tagbox { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: 100%; min-height: 42px; padding: 5px 8px; border: 1px solid var(--line2); border-radius: 9px; background: var(--card); cursor: text; }
.tagbox:focus-within { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); border-color: var(--accent-2); }
.tagbox-chips { display: contents; }
.tagchip { display: inline-flex; align-items: center; gap: 2px; padding: 3px 4px 3px 11px; border-radius: 999px; font-size: 13px; background: color-mix(in srgb, var(--accent) 38%, var(--card)); color: var(--accent-2); }
.tagchip-x { border: 0; background: transparent; color: inherit; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; padding: 0; font-size: 15px; line-height: 1; cursor: pointer; }
.tagchip-x:hover { background: color-mix(in srgb, var(--down) 45%, var(--card)); color: var(--down-2); }
.tagchip-x:focus-visible { outline: 2px solid var(--accent-2); }
.tagbox-input { flex: 1 1 120px; min-width: 100px; width: auto; border: 0; outline: none; background: transparent; padding: 4px 2px; font: inherit; }
.tagbox-input:focus { outline: none; border: 0; }

/* Icon buttons: edit is quiet, delete is danger-tinted and always set apart from edit. */
.ibtn { display: inline-grid; grid-auto-flow: column; place-items: center; gap: 6px; min-width: 36px; height: 36px; padding: 0; border: 1px solid transparent; border-radius: 10px; background: var(--soft); color: var(--ink2); font: inherit; font-size: 13px; font-weight: 500; line-height: 1; cursor: pointer; text-decoration: none; transition: background-color .12s, color .12s, border-color .12s; }
.ibtn .ic { width: 16px; height: 16px; stroke-width: 1.6; }
.ibtn.labelled { padding: 0 14px 0 11px; }
.ibtn:hover { background: color-mix(in srgb, var(--accent) 35%, var(--card)); color: var(--accent-2); text-decoration: none; }
.ibtn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.ibtn:active { background: color-mix(in srgb, var(--accent) 50%, var(--card)); }
.ibtn.danger { background: transparent; color: var(--muted); border-color: var(--line2); }
.ibtn.danger:hover { background: color-mix(in srgb, var(--down) 40%, var(--card)); color: var(--down-2); border-color: transparent; }
.ibtn.danger:active { background: color-mix(in srgb, var(--down) 55%, var(--card)); }
.ibtn.sm { min-width: 30px; height: 30px; border-radius: 9px; }
.ibtn.sm .ic { width: 14px; height: 14px; }
@media (pointer: coarse) { .ibtn { min-width: 44px; height: 44px; } .ibtn.sm { min-width: 40px; height: 40px; } }
.ibar { display: inline-flex; align-items: center; gap: 8px; }
.ibar-sep { width: 1px; height: 22px; background: var(--line2); margin: 0 10px; }
.ibar form { display: inline-flex; }
.show-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.show-head h1 { margin: 0; }
.ibar-cell { width: 1%; white-space: nowrap; text-align: right; }
.row.task .ibtn { flex: none; margin-top: 0; }
.danger-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); }

/* Trips: clickable rows, detail page */
.rowlink { font-weight: 500; color: var(--ink); }
.rowlink::after { content: ""; position: absolute; inset: 0; }
.rowlink:hover { text-decoration: none; color: var(--accent-2); }
.rowlink:focus-visible { outline: none; }
.paidcell { min-width: 90px; }
.paidcell .bar { margin-top: 4px; height: 6px; }
.back { margin: 0 0 6px; font-size: 13px; }
.meter { margin: 10px 0 4px; max-width: 560px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 10px 0 18px; }
.facts div { background: var(--soft); border-radius: 12px; padding: 10px 14px; }
.facts dt { font-size: 12px; color: var(--muted); margin: 0 0 2px; }
.facts dd { margin: 0; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.facts dd.owed { color: var(--warn-2); }
.bar.paid > i { background: var(--money); }
.meter .bar { height: 10px; border-radius: 6px; }
.meter .bar i { border-radius: 6px; }

/* Trip form: € prefix, +/- steppers, live summaries */
.affixed { display: flex; align-items: stretch; border: 1px solid var(--line2); border-radius: 9px; background: var(--card); overflow: hidden; }
.affixed:focus-within { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); border-color: var(--accent-2); }
.affixed .affix { display: grid; place-items: center; padding: 0 11px; background: var(--soft); color: var(--ink2); font-weight: 500; border-right: 1px solid var(--line); }
.affixed input { border: 0; border-radius: 0; outline: none; background: transparent; text-align: right; font-variant-numeric: tabular-nums; }
.affixed input:focus { outline: none; }
.stepper { display: flex; align-items: stretch; border: 1px solid var(--line2); border-radius: 9px; background: var(--card); overflow: hidden; }
.stepper:focus-within { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); border-color: var(--accent-2); }
.stepper input { border: 0; border-radius: 0; outline: none; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; min-width: 0; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; }
.step { flex: none; width: 40px; border: 0; background: var(--soft); color: var(--ink2); font-size: 18px; line-height: 1; cursor: pointer; }
.step:hover { background: color-mix(in srgb, var(--accent) 35%, var(--card)); color: var(--accent-2); }
.step:focus-visible { outline: 2px solid var(--accent-2); outline-offset: -2px; }
@media (pointer: coarse) { .step { width: 48px; } }
.preview { margin: 14px 0 0; font-size: 13px; color: var(--ink2); min-height: 20px; }
.preview .bar { height: 10px; border-radius: 6px; margin-top: 6px; }
.preview .bar i { border-radius: 6px; transition: none; }
.preview .bad { color: var(--down-2); font-weight: 500; }

/* Trip participants and a client's trips */
.triplist { list-style: none; margin: 8px 0 0; padding: 0; }
.pmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; overflow-wrap: anywhere; }
.cav.sm { width: 32px; height: 32px; border-radius: 10px; font-size: 12px; flex: none; }
.tname { font-weight: 500; }
.triplist li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 0; border-top: 1px solid var(--line); }
.triplist li:first-child { border-top: 0; }

/* Trip page: tinted hero, key-fact tiles, colour-coded participant / potential cards, numbered zebra rows */




/* Fill-over-time line graph */
.fillcell { white-space: nowrap; min-width: 140px; }
.fillcell .fillpct { display: inline-block; min-width: 40px; text-align: right; margin-left: 6px; font-weight: 500; }
.spark { width: 96px; height: 28px; vertical-align: middle; overflow: visible; }
.spark polygon { fill: color-mix(in srgb, var(--accent) 32%, transparent); stroke: none; }
.spark polyline { fill: none; stroke: var(--accent-2); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.spark circle { fill: var(--accent-2); }
.spark.big { width: 100%; max-width: 240px; height: 44px; margin-top: 6px; display: block; }

/* Zebra rows on the trips table and the clients list: even rows get a faint silver background. */
:root { --stripe: #f3f4f7; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --stripe: rgb(255 255 255 / .045); } }

/* Very small text button (e.g. "unconfirm"): quiet until hovered or focused */

/* Trip names stand out everywhere: Courier, bold, white on a rounded indigo badge (white on #4f5bd0 is 5.5:1) */
:root { --tripname-bg: #4f5bd0; --tripname-fg: #ffffff; --tripname-hover: #2a2840; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --tripname-bg: #5a66dc; --tripname-fg: #ffffff; --tripname-hover: #7480ee; } }
.tripname { display: inline-block; max-width: 100%; padding: .1em .5em .14em; border-radius: 7px; background: var(--tripname-bg); color: var(--tripname-fg); font-family: "Courier New", Courier, ui-monospace, monospace; font-weight: 700; font-size: 1.04em; letter-spacing: -.01em; overflow-wrap: anywhere; vertical-align: baseline; }
a.tripname, a.tripname:hover { color: var(--tripname-fg); text-decoration: none; }
a.tripname:hover { background: var(--tripname-hover); }
a.tripname:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* /trips board ("premium travel operations"): ivory canvas, navy ink, hairlines, serif headings, aligned columns */
body.page-c { background: #F7F4EE; }
.csc { --c-ink: #14213D; --c-muted: #5F6B7A; --c-line: #E6E0D3; --c-line2: #D9D1BF; --c-surface: #FFFDF9; --c-navy: #1D3557; --c-bar: #2B4C7E; --c-ok: #2F7F6F; --c-warn: #8A6414; --c-track: #E9E3D6; --c-hover: #FFFDF9; --c-soft: #EFE9DC;
  max-width: 1360px; margin: 0 auto; color: var(--c-ink); font-variant-numeric: tabular-nums; }
@media (prefers-color-scheme: dark) {
  body.page-c { background: var(--page); }
  .csc { --c-ink: var(--ink); --c-muted: var(--muted); --c-line: var(--line); --c-line2: var(--line2); --c-surface: var(--card); --c-navy: var(--accent); --c-bar: var(--accent); --c-ok: var(--money); --c-warn: var(--warn); --c-track: var(--grey); --c-hover: var(--soft); --c-soft: var(--soft); }
}
.tserif { font-family: ui-serif, "Iowan Old Style", Georgia, "Times New Roman", serif; font-weight: 600; }
.tsub { display: block; margin-top: 3px; font-size: 12.5px; color: var(--c-muted); }
.tsub.tcount { display: inline; margin: 0; }
.behind { color: var(--c-warn); }
.tphead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--c-line); }
.tphead h1 { margin: 0; font-family: ui-serif, "Iowan Old Style", Georgia, "Times New Roman", serif; font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.tlead { margin: 4px 0 0; color: var(--c-muted); font-size: 13px; }
.tbtn { display: inline-block; font: inherit; font-size: 13px; font-weight: 500; border: 1px solid var(--c-line2); background: var(--c-surface); color: var(--c-ink); border-radius: 8px; padding: 9px 16px; cursor: pointer; text-decoration: none; }
.tbtn:hover { background: var(--c-soft); text-decoration: none; }
.tbtn.primary { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }
.tbtn.primary:hover { filter: brightness(1.12); background: var(--c-navy); }
.tbtn:focus-visible, .ttab:focus-visible, .tdots:focus-visible, .tmi:focus-visible, .tlink:focus-visible, .csc select:focus-visible, .tsearch input:focus-visible { outline: 2px solid var(--c-bar); outline-offset: 2px; }
.tkpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 22px 0; }
.tkpis.nofin { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tkpi { padding: 2px 22px; border-left: 1px solid var(--c-line); }
.tkpi:first-child { border-left: 0; padding-left: 0; }
.tkl { font-size: 12.5px; color: var(--c-muted); }
.tkv { font-family: ui-serif, "Iowan Old Style", Georgia, "Times New Roman", serif; font-size: 26px; font-weight: 600; letter-spacing: -.01em; margin-top: 3px; line-height: 1.15; }
.tkv small { font-family: var(--font); font-size: 13px; font-weight: 400; color: var(--c-muted); margin-left: 6px; letter-spacing: 0; }
.tks { font-size: 12.5px; color: var(--c-muted); margin-top: 3px; }
.tks.warn { color: var(--c-warn); }
.tbar { display: block; height: 5px; border-radius: 3px; background: var(--c-track); overflow: hidden; position: relative; margin: 8px 0 4px; }
.tbar i { display: block; height: 100%; border-radius: 3px; background: var(--c-bar); }
.tbar.ok i { background: var(--c-ok); }
.tbar.thin { max-width: 200px; margin-top: 9px; }
.ttool { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.ttabs { display: flex; gap: 4px; }
.ttab { font-size: 13px; font-weight: 500; border: 1px solid transparent; background: transparent; color: var(--c-muted); border-radius: 999px; padding: 7px 14px; text-decoration: none; }
.ttab:hover { background: var(--c-soft); text-decoration: none; color: var(--c-ink); }
.ttab.on { background: var(--c-ink); color: #fff; }
.ttab span { margin-left: 6px; font-weight: 400; opacity: .75; }
.tfilters { display: flex; align-items: center; gap: 12px; flex: 1; flex-wrap: wrap; }
.tsearch { position: relative; flex: 1; min-width: 220px; max-width: 340px; margin: 0; }
.tsearch svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--c-muted); }
.tsearch input { width: 100%; font-size: 13px; border: 1px solid var(--c-line2); border-radius: 999px; padding: 9px 14px 9px 34px; background: var(--c-surface); color: var(--c-ink); }
.csc select { width: auto; font-size: 13px; border: 1px solid var(--c-line2); border-radius: 999px; padding: 9px 14px; background: var(--c-surface); color: var(--c-ink); }
.tempty { text-align: center; padding: 56px 16px; border-top: 1px solid var(--c-line); margin-top: 18px; color: var(--c-muted); }
.tempty .tserif { font-size: 19px; color: var(--c-ink); margin: 0 0 4px; }

.ttable { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 4px; }
.ttable th, .ttable td { padding: 16px 10px; vertical-align: top; text-align: left; border: 0; }
.ttable thead th { position: sticky; top: 0; z-index: 5; background: #F7F4EE; padding-top: 12px; padding-bottom: 9px; font-size: 12px; font-weight: 500; color: var(--c-muted); border-bottom: 1px solid var(--c-line); }
@media (prefers-color-scheme: dark) { .ttable thead th { background: var(--page); } }
.ttable .r { text-align: right; }
.tgroup th { padding: 26px 10px 8px; font-weight: 400; background: transparent; }
.tgroup .tserif { font-size: 18px; margin-right: 8px; }
.tgroup .tsub { display: inline; }
.trow { position: relative; }
.trow > td { border-top: 1px solid var(--c-line); }
.trow:hover > td, .trow:focus-within > td { background: var(--c-hover); }
.trow:has(.rowlink:focus-visible) > td { background: var(--c-hover); }
.trow.past { opacity: .93; }
.tcell-tile { width: 56px; }
.tile { width: 52px; border: 1px solid var(--c-line); background: var(--c-surface); border-radius: 10px; text-align: center; padding: 6px 0 5px; }
.tile b { display: block; font-family: ui-serif, "Iowan Old Style", Georgia, "Times New Roman", serif; font-size: 20px; line-height: 1.05; font-weight: 600; }
.tile span { display: block; font-size: 11px; color: var(--c-muted); letter-spacing: .02em; }
.tname { font-size: 16px; font-weight: 600; color: var(--c-ink); text-decoration: none; overflow-wrap: anywhere; }
.tname:hover { color: var(--c-navy); text-decoration: underline; text-underline-offset: 3px; }
.tname:focus-visible { outline: none; }
.rowlink::after { content: ""; position: absolute; inset: 0; }
.tid { font-variant-numeric: tabular-nums; }
.tmain { display: block; font-size: 14px; font-weight: 500; }
.tmain b { font-weight: 600; }
.occ { min-width: 190px; }
.paidcell { min-width: 200px; }
.tmiss { display: inline-flex; align-items: center; gap: 6px; color: var(--c-warn); font-size: 13px; font-weight: 500; }
.tactions { white-space: nowrap; text-align: right; width: 96px; position: relative; z-index: 2; }
.tdots { border: 0; background: transparent; color: var(--c-muted); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: inline-grid; place-items: center; vertical-align: top; padding: 0; }
.tdots:hover { background: var(--c-soft); color: var(--c-ink); }
.tdots.chev .ic { transition: transform .15s; }
.tdots.chev.open .ic { transform: rotate(180deg); }
.tmenu { position: relative; display: inline-block; }
.tpanel { position: absolute; right: 0; top: 36px; z-index: 30; min-width: 200px; text-align: left; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 12px; box-shadow: 0 10px 28px rgb(20 33 61 / .12); padding: 5px; }
.tmi { display: block; width: 100%; text-align: left; font: inherit; font-size: 13px; border: 0; background: transparent; color: var(--c-ink); padding: 8px 10px; border-radius: 8px; cursor: pointer; text-decoration: none; }
.tmi:hover { background: var(--c-soft); text-decoration: none; }
.tmi.danger { color: #9B2C2C; }
.tmi.danger:hover { background: #FBEFEE; }
.tpanel form { margin: 0; display: block; }
.tsep { height: 1px; background: var(--c-line); margin: 4px 0; }
.texp > td { background: var(--c-surface); border-top: 1px dashed var(--c-line); padding-top: 6px; padding-bottom: 20px; }
.texp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.texp-grid.nofin { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.texp h4 { margin: 0 0 6px; font-size: 12px; font-weight: 500; color: var(--c-muted); }
.texp p { margin: 0 0 3px; font-size: 13px; }
.texp .spark.big { display: block; }
.tlink { font-size: 13px; font-weight: 500; color: var(--c-navy); text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .tdots.chev .ic { transition: none; } }

@media (max-width: 960px) {
  .tkpis { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .tkpi:nth-child(odd) { border-left: 0; padding-left: 0; }
  .ttable, .ttable tbody, .ttable tr, .ttable td, .ttable th { display: block; }
  .ttable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tgroup th { padding: 22px 4px 6px; }
  .trow { display: grid; grid-template-columns: 56px 1fr 1fr; gap: 8px 14px; padding: 14px 4px; border-top: 1px solid var(--c-line); }
  .trow > td { padding: 0; border: 0; }
  .trow > td::before { content: attr(data-label); display: block; font-size: 11.5px; color: var(--c-muted); margin-bottom: 1px; }
  .trow > .tcell-tile { grid-column: 1; grid-row: 1; }
  .trow > .tcell-name { grid-column: 2 / -1; grid-row: 1; min-width: 0; }
  .trow > .tcell-name::before, .trow > .tactions::before, .trow > .tcell-tile::before { display: none; }
  .trow > .tactions { grid-column: 1 / -1; text-align: right; width: auto; }
  .trow > .r { text-align: left; }
  .texp > td { padding: 6px 4px 18px; }
  .texp-grid, .texp-grid.nofin { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .texp > td:first-child { display: none; }
}
@media (max-width: 560px) { .trow { grid-template-columns: 56px 1fr; } .trow > .tcell-name { grid-column: 2; } .tkpis { grid-template-columns: 1fr; } .tkpi { border-left: 0; padding-left: 0; } }

.row .t.tripname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tmeta { margin-top: 5px; }

/* Trip page in the same language: serif title, hairline band of key figures, tinted participant / potential lists */
.csc .back { margin: 0 0 8px; font-size: 13px; }
.csc .back a { color: var(--c-muted); }
.csc .back a:hover { color: var(--c-ink); }
.csc .tlead { margin: 6px 0 0; }
.csc .spark polyline { stroke: var(--c-bar); }
.csc .spark circle { fill: var(--c-bar); }
.csc .spark polygon { fill: color-mix(in srgb, var(--c-bar) 14%, transparent); }
.csc .card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 12px; box-shadow: none; margin-bottom: 20px; }
.csc .card > h2 { margin: 0 0 4px; font-family: ui-serif, "Iowan Old Style", Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 600; }

/* Clients list in the same language */
.csc .tsearch.ac { display: block; width: auto; flex: 1; min-width: 240px; max-width: 420px; position: relative; }
.csc .tsearch .ac-ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--c-muted); pointer-events: none; z-index: 1; }
.csc .tsearch.ac input { width: 100%; font-size: 13px; border: 1px solid var(--c-line2); border-radius: 999px; padding: 9px 14px 9px 34px; background: var(--c-surface); color: var(--c-ink); }
.csc .ac-list { background: var(--c-surface); border-color: var(--c-line); border-radius: 12px; }
.csc .ac-list li:hover, .csc .ac-list li[aria-selected="true"] { background: var(--c-soft); }
.ttagrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 8px; }
.ttagrow .tsub { margin: 0; }
.ttagrow .filters { margin: 0; }
.csc .filters a { border-radius: 999px; padding: 4px 11px; font-size: 12.5px; color: var(--c-muted); }
.csc .filters a:hover { background: var(--c-soft); color: var(--c-ink); }
.csc .filters a[aria-current] { background: var(--c-ink); color: #fff; font-weight: 500; }
.ttable.clients .cname { font-size: 15.5px; }
.ttable.clients .tcell-tile { width: 60px; }
.csc .cav { width: 40px; height: 40px; border-radius: 50%; }
.csc .cbadges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.csc .ccontact { font-size: 13px; overflow-wrap: anywhere; min-width: 190px; }
.csc .ccontact > span { display: block; }
.csc .ctags { min-width: 120px; }
.csc .ctags a { position: relative; z-index: 1; margin: 0 4px 4px 0; }
.csc .cdate { white-space: nowrap; color: var(--c-muted); font-size: 12.5px; }
.csc .tcountline { margin: 12px 4px 0; }
.csc .cpager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px 0 4px; }
.csc .tag-admin { margin-top: 26px; padding: 14px 18px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 12px; }
.csc .tag-admin summary:focus-visible { outline: 2px solid var(--c-bar); outline-offset: 2px; border-radius: 6px; }
@media (max-width: 960px) {
  .trow.crow { grid-template-columns: 56px 1fr 1fr; }
  .trow.crow > .ctags, .trow.crow > .cdate { grid-column: auto; }
  .trow.crow > .cdate { text-align: left; }
}

.linkrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.linkrow input { flex: 1; min-width: 260px; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }

/* Trip page: command centre (same language as the /trips board) */
.tback { margin: 0 0 8px; font-size: 13px; }
.tback a { color: var(--c-navy); }
.csc .tphead { align-items: flex-start; padding-bottom: 14px; }
.csc .tphead h1 { overflow-wrap: anywhere; }
.tc-actions { display: flex; align-items: center; gap: 8px; }
.tc-kpis { margin: 18px 0; }
.tc-kpis dd { margin: 3px 0 0; }
.tc-band { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; margin-bottom: 16px; }
.tc-work { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: start; }
.tc-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 12px; padding: 16px 18px; min-width: 0; }
.tc-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.tc-head h2 { margin: 0; font-family: ui-serif, "Iowan Old Style", Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 600; color: var(--c-ink); }
.tc-head > .tc-muted:last-child { margin-left: auto; }
.tc-muted { font-size: 12.5px; color: var(--c-muted); }
p.tc-muted { margin: 6px 0 0; }
.tc-count { font-size: 13px; color: var(--c-muted); }
.tc-cap { display: flex; gap: 2px; height: 14px; border-radius: 7px; overflow: hidden; background: var(--c-track); }
.tc-cap i { display: block; height: 100%; }
.tc-cap i.w-0 { display: none; }
.tc-cap .confirmed { background: var(--c-navy); }
.tc-cap .potential { background: color-mix(in srgb, var(--c-bar) 58%, var(--c-surface)); }
.tc-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 10px 0 0; padding: 0; font-size: 12.5px; }
.tc-legend li::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; background: var(--c-track); }
.tc-legend li.confirmed::before { background: var(--c-navy); }
.tc-legend li.potential::before { background: color-mix(in srgb, var(--c-bar) 58%, var(--c-surface)); }
.tc-projected { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--c-line); font-size: 13px; }
.tc-over { margin: 4px 0 0; font-size: 13px; color: var(--c-warn); }
.tc-chart { display: block; width: 100%; height: auto; max-height: 170px; }
.tc-chart text { font-size: 10px; fill: var(--c-muted); }
.tc-chart .axis { fill: none; stroke: var(--c-line2); }
.tc-chart .step { fill: none; stroke: var(--c-bar); stroke-width: 2; }
.tc-chart .dot { fill: var(--c-navy); }
.tc-add { margin-bottom: 10px; }
.tc-add > summary { list-style: none; width: fit-content; padding: 6px 12px; }
.tc-add > summary::-webkit-details-marker { display: none; }
.tc-add .addclient { margin: 10px 0 0; }
.tc-add .ac { display: block; width: min(480px, 100%); }
.tc-people { counter-reset: person; }
.tc-people .people { list-style: none; margin: 0; padding: 0; }
.tc-people .people li { counter-increment: person; display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--c-line); }
.tc-people .people li::before { content: counter(person); flex: none; min-width: 20px; text-align: right; font-size: 12px; color: var(--c-muted); }
.tc-people .cav.sm { width: 30px; height: 30px; border-radius: 50%; font-size: 11px; }
.tc-people .tname { font-size: 14px; }
.tc-people .tname:focus-visible { outline: 2px solid var(--c-bar); outline-offset: 2px; }
.tc-people form { margin: 0; }
.tc-status { font-size: 12px; font-weight: 500; color: var(--c-ok); }
.tc-when { white-space: nowrap; }
.tbtn.sm { padding: 5px 11px; font-size: 12.5px; }
.tbtn:disabled, .tbtn.primary:disabled { background: transparent; border-color: var(--c-line2); color: var(--c-muted); cursor: not-allowed; filter: none; }
.tc-more > summary { cursor: pointer; padding: 8px 0; width: fit-content; }
.tc-finance { margin-top: 16px; }
.csc .facts { display: flex; flex-wrap: wrap; gap: 14px 44px; margin: 0 0 12px; }
.csc .facts div { background: none; border-radius: 0; padding: 0; }
.csc .facts dt { font-size: 12.5px; color: var(--c-muted); }
.csc .facts dd { font-family: ui-serif, "Iowan Old Style", Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 600; }
.csc .facts dd.owed { color: var(--c-warn); }
.csc .meter { max-width: 420px; margin: 0; }
.csc .meter p { margin: 0 0 6px; }
.csc .meter .bar { height: 6px; border-radius: 3px; background: var(--c-track); }
.csc .meter .bar i { border-radius: 3px; background: var(--c-ok); }
@media (max-width: 900px) { .tc-band, .tc-work { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .tc-card { padding: 14px 12px; } .tc-when, .tc-status { display: none; } }
@media (max-width: 600px) { .csc .tc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; } .csc .tc-kpis .tkpi:nth-child(odd) { border-left: 0; padding-left: 0; } .csc .tc-kpis .tkpi:nth-child(even) { border-left: 1px solid var(--c-line); padding-left: 14px; } }
.tc-contact { display: flex; flex-wrap: wrap; column-gap: 12px; min-width: 0; }
.tc-contact span { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) { .tc-contact { flex-direction: column; } .tc-people .people li { gap: 8px; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .csc .tbtn.primary:not(:disabled) { color: var(--on-accent); } }

/* Client page: 360° workspace (same language as the trip command centre) */
.cx-head { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--c-line); }
.cx-av { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--c-soft); color: var(--c-ink); font-weight: 600; }
.cx-who { flex: 1 1 260px; min-width: 0; }
.cx-who h1 { margin: 0; font-family: ui-serif, "Iowan Old Style", Georgia, "Times New Roman", serif; font-size: 26px; font-weight: 600; letter-spacing: -.01em; overflow-wrap: anywhere; }
.cx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 4px 0 0; font-size: 13px; color: var(--c-muted); }
.cx-head .tc-actions { flex-wrap: wrap; }
.cx-chip { display: inline-block; font-size: 12px; padding: 2px 9px; border: 1px solid var(--c-line2); border-radius: 999px; background: var(--c-surface); color: var(--c-ink); text-decoration: none; }
a.cx-chip:hover { background: var(--c-soft); text-decoration: none; }
.cx-chip.warn { border-color: var(--c-warn); color: var(--c-warn); }
.cx-alert { margin: 12px 0 0; padding: 9px 14px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--down-2) 55%, var(--c-surface)); background: color-mix(in srgb, var(--down) 25%, var(--c-surface)); color: var(--down-2); font-size: 13px; font-weight: 600; }
.cx-layout { display: grid; grid-template-columns: minmax(0, 65fr) minmax(0, 35fr); gap: 16px; align-items: start; }
.cx-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.csc .triplist { margin: 0; }
.csc .triplist li, .csc .triplist li:first-child { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(80px, .7fr) minmax(0, 1.1fr); gap: 4px 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--c-line); }
.csc .triplist .tname { font-size: 14px; }
.csc .triplist .tname:focus-visible { outline: 2px solid var(--c-bar); outline-offset: 2px; }
.csc .triplist .tc-muted { display: block; }
.cx-status { font-size: 12.5px; color: var(--c-muted); }
.cx-status.participant { color: var(--c-ok); font-weight: 500; }
.cx-status.potential { color: var(--c-warn); font-weight: 500; }
.cx-events { list-style: none; margin: 0; padding: 0; }
.cx-events li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--c-line); }
.cx-events p { margin: 0 0 2px; overflow-wrap: anywhere; }
.cx-evicon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--c-soft); color: var(--c-muted); }
.cx-diff { font-size: 13px; }
.cx-diff .from { color: var(--c-muted); }
.cx-note { overflow-wrap: anywhere; }
.cx-note p { margin: 0 0 8px; }
.cx-noteedit { margin: 8px 0 0; }
.cx-noteedit form { margin-top: 10px; }
.cx-noteedit textarea { width: 100%; margin-bottom: 8px; }
.cx-fields { margin: 0; }
.cx-field { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 6px 0; }
.cx-field dt { font-size: 12.5px; color: var(--c-muted); }
.cx-field dd { margin: 0; overflow-wrap: anywhere; }
.cx-field dd p { margin: 0 0 4px; }
.cx-field.allergies dd { color: var(--c-warn); font-weight: 500; }
.tc-card h3 { margin: 12px 0 4px; padding-top: 10px; border-top: 1px solid var(--c-line); font-size: 12.5px; font-weight: 500; color: var(--c-muted); }
.cx-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
/* One column: identity, contact actions, upcoming trips, notes, then the rest */
@media (max-width: 900px) {
  .cx-layout { display: flex; flex-direction: column; align-items: stretch; }
  .cx-col { display: contents; }
  .cx-o1 { order: 1; } .cx-o2 { order: 2; } .cx-o3 { order: 3; } .cx-o4 { order: 4; } .cx-o5 { order: 5; }
}
@media (max-width: 600px) { .csc .triplist li, .csc .triplist li:first-child { grid-template-columns: minmax(0, 1fr); gap: 2px; } .cx-field { grid-template-columns: minmax(0, 1fr) auto; } .cx-field dt { grid-column: 1 / -1; } }
/* Contact values get the full width (addresses and emails must not split), label above */
.cx-fields.stacked .cx-field { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0; }
.cx-fields.stacked dt { grid-column: 1 / -1; }
.csc .cx-events a, .csc .cx-fields a { color: var(--c-navy); }
.csc .cx-events a, .csc .cx-fields a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--c-line2); }
