/* ==========================================================================
   Dashboard prototypes (client-dashboard.html, admin-dashboard.html).
   Builds on css/style.css, the live site's design system.
   ========================================================================== */
:root {
  --color-warn-bg: #fff4e0;
  --color-warn: #8a5200;
  --color-ok-bg: #e7f6ee;
  --color-ok: #1f5f3d;
  --color-bad-bg: #fdecea;
  --color-bad: #8a2d12;
  --color-review-bg: #e6f2f1;
  --color-review: #1d6660;
  --color-grid: #ebe7df;
}
body { background: var(--color-bg); }
[hidden] { display: none !important; }
.ic { width: 18px; height: 18px; flex-shrink: 0; }

/* Prototype controls */
.proto-bar { background: #071f31; color: #fff; font-size: 0.85rem; }
.proto-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.4rem; padding-block: 0.55rem; }
.proto-tag {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #ffd9c4; background: rgba(255, 122, 69, 0.2); padding: 0.25rem 0.65rem; border-radius: 999px;
}
.seg { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; }
.seg-label { margin-right: 0.2rem; color: rgba(255, 255, 255, 0.6); }
.seg button {
  font: 600 0.8rem var(--font-body); color: rgba(255, 255, 255, 0.85); cursor: pointer;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.28rem 0.75rem; border-radius: 999px; transition: background var(--transition), color var(--transition);
}
.seg button:hover { background: rgba(255, 255, 255, 0.16); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--color-primary-dark); border-color: #fff; }
.proto-links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; margin-left: auto; }
.proto-links a { font-weight: 600; color: #ffd9c4; text-decoration: underline; text-underline-offset: 3px; }
.proto-links a:hover { color: #fff; }
.proto-links button { padding: 0; font: 600 0.8rem var(--font-body); color: rgba(255, 255, 255, 0.7); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.proto-links button:hover { color: #fff; }
.proto-note { color: rgba(255, 255, 255, 0.7); }

/* Avatars (sidebar and Account tab) */
.acct-avatar {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  font: 600 0.85rem var(--font-heading); color: #fff;
  background: linear-gradient(135deg, #ffb18c, var(--color-accent));
}
.acct-avatar.admin { background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary)); }

/* Hero + journey tracker */
.pd-hero { padding-bottom: clamp(5rem, 9vw, 6.5rem); }
.pd-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 0.6rem; text-wrap: balance; }
.pd-hero p.lead { margin-bottom: 0; }
.journey { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: 940px; margin-top: var(--space-4); }
.journey li { position: relative; display: grid; justify-items: start; gap: 0.55rem; padding-right: 0.6rem; font-size: 0.84rem; line-height: 1.3; color: rgba(255, 255, 255, 0.55); }
.journey li::after { content: ""; position: absolute; top: 14px; left: 36px; right: 6px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.16); }
.journey li:last-child::after { display: none; }
.j-dot {
  position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  font: 700 0.78rem var(--font-heading); color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06); border: 2px solid rgba(255, 255, 255, 0.25);
}
.j-dot .ic { width: 15px; height: 15px; stroke-width: 3; }
.j-label small { display: block; margin-top: 0.15rem; font-size: 0.74rem; color: rgba(255, 255, 255, 0.55); }
.journey li.done { color: rgba(255, 255, 255, 0.88); }
.journey li.done::after { background: var(--color-success); }
.journey li.done .j-dot { color: #fff; background: var(--color-success); border-color: var(--color-success); }
.journey li.current { color: #fff; font-weight: 600; }
.journey li.current .j-dot { color: #fff; background: var(--color-accent); border-color: #ffb18c; box-shadow: 0 0 0 5px rgba(255, 122, 69, 0.25); }
.journey li.current small { color: #ffd0b8; font-weight: 500; }
.journey li.closed .j-dot { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.35); }
.journey li.live { color: #fff; font-weight: 600; }
.journey li.live .j-dot { color: #fff; background: var(--color-success); border-color: #7fd3a6; animation: livePing 2s ease-out infinite; }
@keyframes livePing { 0% { box-shadow: 0 0 0 0 rgba(47, 158, 99, 0.6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(47, 158, 99, 0); } }
.journey-now { display: none; margin: 0.8rem 0 0; font-size: 0.92rem; color: rgba(255, 255, 255, 0.8); }
.journey-now strong { color: #fff; }

/* Shell: sidebar + main */
.pd-shell {
  position: relative; z-index: 2; display: grid; grid-template-columns: 250px minmax(0, 1fr);
  gap: var(--space-3); align-items: start; margin-top: -3.25rem;
}
.pd-side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: var(--space-2); }
.pd-nav {
  display: grid; gap: 2px; padding: 0.5rem; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-md);
}
.pd-nav button {
  display: flex; align-items: center; gap: 0.7rem; width: 100%; padding: 0.68rem 0.8rem;
  font: 500 0.94rem var(--font-body); line-height: 1.3; color: var(--color-text); text-align: left;
  background: none; border: 0; border-radius: var(--radius-sm); cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.pd-nav button .ic { color: var(--color-text-muted); }
.pd-nav button:hover { background: var(--color-bg-alt); }
.pd-nav button[aria-current="page"] { font-weight: 600; color: var(--color-accent-text); background: var(--color-accent-light); }
.pd-nav button[aria-current="page"] .ic { color: var(--color-accent-text); }
/* Admin sidebar: sections grouped under short headings */
.pd-nav.grouped button { padding-block: 0.52rem; }
.pd-group { display: grid; gap: 2px; margin-top: 0.4rem; }
.pd-group-label { padding: 0.45rem 0.8rem 0.15rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); }
.pd-count {
  display: grid; place-items: center; min-width: 21px; height: 21px; margin-left: auto; padding: 0 6px;
  font-size: 0.72rem; font-weight: 700; color: #fff; background: var(--color-accent); border-radius: 11px;
}
.pd-help { padding: var(--space-2) 1.1rem; font-size: 0.86rem; line-height: 1.5; color: var(--color-text); background: var(--color-primary-tint); border-radius: var(--radius-md); }
.pd-help strong { display: block; margin-bottom: 0.2rem; font-family: var(--font-heading); color: var(--color-primary); }
.pd-help span { display: block; color: var(--color-text-muted); }
.pd-help a { font-weight: 600; color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
/* Who is signed in, above the help text (the site header stays the normal one) */
.pd-user { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.2rem 0.7rem; margin-bottom: var(--space-2); padding-bottom: var(--space-2); border-bottom: 1px solid rgba(15, 61, 92, 0.12); }
.pd-help .pd-user .acct-avatar { display: grid; grid-row: span 2; width: 38px; height: 38px; color: #fff; }
.pd-user strong { margin: 0; font-size: 0.9rem; line-height: 1.3; }
.pd-user span { font-size: 0.8rem; overflow-wrap: anywhere; }
.pd-user .link-button { grid-column: 2; justify-self: start; font-size: 0.82rem; font-weight: 600; color: var(--color-primary); }
.pd-main { display: grid; gap: var(--space-3); min-width: 0; }

/* Panels */
.panel { min-width: 0; padding: var(--space-4); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.panel > :last-child { margin-bottom: 0; }
.panel-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.8rem 1.2rem; margin-bottom: var(--space-3); }
.panel-head h2 { margin: 0; font-size: 1.3rem; }
.panel-head p { margin: 0.3rem 0 0; font-size: 0.93rem; }
.panel h3 { font-size: 1.02rem; margin-bottom: 0.75rem; }

/* Next step card */
.next { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: var(--space-4); align-items: center; border-top: 4px solid var(--color-accent); box-shadow: var(--shadow-md); }
.next.solo { grid-template-columns: minmax(0, 1fr); }
.next.is-ok { border-top-color: var(--color-success); }
.next.is-muted { border-top-color: #cfcabf; }
.next h2 { margin-bottom: 0.55rem; font-size: clamp(1.35rem, 2.4vw, 1.75rem); text-wrap: balance; }
.next p { margin-bottom: 0; max-width: 60ch; }
.next .eyebrow { margin-bottom: 0.8rem; }
.eyebrow.ok { color: var(--color-ok); background: var(--color-ok-bg); }
.eyebrow.muted { color: var(--color-text-muted); background: var(--color-bg-alt); }
.eyebrow.ok::before, .eyebrow.muted::before { animation: none; }
.next-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: var(--space-3); }
.next-meta { margin-top: var(--space-2) !important; font-size: 0.86rem; }
.next-media { display: block; width: 100%; padding: 0; text-align: left; background: none; border: 0; cursor: zoom-in; border-radius: 12px; }
.next-media:hover .mock { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.next-media .mock { transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.media-hint { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin-top: 0.6rem; font-size: 0.82rem; font-weight: 600; color: var(--color-primary-light); }

/* Summary cards (clickable) */
.sums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.sum {
  display: grid; align-content: start; gap: 0.2rem; padding: var(--space-3); text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.sum:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d6d2c8; }
.sum-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.sum-ic { display: grid; place-items: center; width: 38px; height: 38px; color: var(--color-primary); background: var(--color-primary-tint); border-radius: 11px; }
.sum-go { color: var(--color-text-muted); font-size: 1.1rem; transition: transform var(--transition); }
.sum:hover .sum-go { transform: translateX(3px); color: var(--color-accent-text); }
.sum-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-text-muted); }
.sum-value { display: flex; align-items: center; gap: 0.45rem; font: 600 1.15rem/1.3 var(--font-heading); color: var(--color-text); }
.sum-sub { font-size: 0.87rem; color: var(--color-text-muted); }
.sum .bar { margin: 0.4rem 0 0.2rem; }
.dot-live { width: 10px; height: 10px; border-radius: 50%; background: var(--color-success); animation: livePing 2s ease-out infinite; }

/* Activity feed */
.feed li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 1rem; padding: 0.75rem 0; border-top: 1px solid var(--color-border); font-size: 0.93rem; color: var(--color-text); }
.feed li:first-child { border-top: 0; padding-top: 0; }
.feed time { font-size: 0.82rem; font-weight: 600; color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.feed li.fresh time { color: var(--color-accent-text); }

/* Status pills */
.pill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.28rem 0.72rem; font-size: 0.78rem; font-weight: 600; line-height: 1.3; white-space: nowrap; border-radius: 999px; }
.pill::before { content: ""; width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: currentColor; }
.p-new { color: var(--color-primary); background: var(--color-primary-tint); }
.p-sent { color: var(--color-accent-text); background: var(--color-accent-light); }
.p-ok { color: var(--color-ok); background: var(--color-ok-bg); }
.p-warn { color: var(--color-warn); background: var(--color-warn-bg); }
.p-bad { color: var(--color-bad); background: var(--color-bad-bg); }
.p-muted { color: var(--color-text-muted); background: #eeece8; }
.p-review { color: var(--color-review); background: var(--color-review-bg); }
.p-live { color: #fff; background: var(--color-success); }
.p-live::before { background: #fff; }

/* Progress bar */
.bar { height: 8px; overflow: hidden; background: var(--color-bg-alt); border-radius: 8px; }
.bar > i { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--color-accent), #ffb18c); transition: width 0.6s var(--ease); }

/* List rows (invoices, documents, previews) */
.rows { display: grid; gap: 0.6rem; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; padding: 0.9rem 1rem; background: var(--color-bg); border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); }
.row-ic { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; color: var(--color-primary); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 10px; }
.row-main { flex: 1 1 220px; min-width: 0; }
.row-main strong { display: block; color: var(--color-text); line-height: 1.35; }
.row-main small { display: block; margin-top: 0.1rem; font-size: 0.84rem; color: var(--color-text-muted); }
.row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; }
.amt { min-width: 5.5rem; font-weight: 600; text-align: right; color: var(--color-text); font-variant-numeric: tabular-nums; }
.row-meta .pill-slot { min-width: 8.6rem; }
.row-act { min-width: 4.8rem; text-align: right; }
.prev-thumb { width: 150px; flex-shrink: 0; }
.prev-empty { display: grid; place-items: center; align-content: center; gap: 0.3rem; aspect-ratio: 4 / 3; font-size: 0.78rem; font-weight: 600; color: var(--color-primary); background: var(--color-primary-tint); border: 1.5px dashed #c9dbe8; border-radius: 8px; }
.versions { display: flex; flex-wrap: wrap; gap: 0.3rem 0.6rem; margin-top: 0.45rem; font-size: 0.84rem; color: var(--color-text-muted); }
.dash-note { font-size: 0.86rem; margin: var(--space-3) 0 0; }

/* Empty states */
.empty { display: grid; justify-items: center; gap: 0.35rem; padding: var(--space-4) var(--space-2); text-align: center; }
.empty-ic { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 0.5rem; color: var(--color-primary); background: var(--color-primary-tint); border-radius: 16px; }
.empty-ic .ic { width: 26px; height: 26px; }
.empty h2 { margin: 0; font-size: 1.25rem; }
.empty p { max-width: 48ch; margin: 0 auto; }
.empty .btn { margin-top: var(--space-2); }

/* "How it works" mini steps */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); margin-top: var(--space-3); counter-reset: how; }
.how li { counter-increment: how; display: grid; gap: 0.3rem; padding: var(--space-2); font-size: 0.88rem; line-height: 1.45; color: var(--color-text-muted); background: var(--color-bg); border: 1px dashed var(--color-border); border-radius: var(--radius-sm); }
.how li::before { content: counter(how); display: grid; place-items: center; width: 26px; height: 26px; font: 700 0.8rem var(--font-heading); color: var(--color-accent-text); background: var(--color-accent-light); border-radius: 50%; }
.how strong { color: var(--color-text); font-size: 0.93rem; }

/* Things we need from the client */
.need { display: grid; gap: 0.6rem; margin-top: var(--space-3); }
.need li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 0.9rem; padding: 0.85rem 1rem; background: var(--color-bg); border: 1.5px dashed #f3b99d; border-radius: var(--radius-sm); }
.need li.ok { border-style: solid; border-color: var(--color-border); }
.need li > div { flex: 1 1 200px; min-width: 0; }
.need strong { display: block; color: var(--color-text); line-height: 1.35; }
.need small { display: block; font-size: 0.84rem; color: var(--color-text-muted); overflow-wrap: anywhere; }
.chk { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; color: var(--color-accent-text); border: 2px dashed var(--color-accent); border-radius: 50%; }
.need li.ok .chk { color: #fff; background: var(--color-success); border: 0; }
.chk .ic { width: 15px; height: 15px; stroke-width: 3; }
.upl { position: relative; }
.upl:focus-within { outline: 3px solid var(--color-accent); outline-offset: 2px; }

/* Project timeline */
.proj-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; }
.proj-top h2 { margin: 0 0 0.25rem; font-size: 1.3rem; }
.proj-top p { margin: 0; font-size: 0.92rem; }
.proj-kpi { text-align: right; }
.proj-kpi strong { display: block; font: 700 2rem/1 var(--font-heading); color: var(--color-primary); font-variant-numeric: tabular-nums; }
.proj-kpi span { font-size: 0.85rem; color: var(--color-text-muted); }
.tl { margin-top: var(--space-4); }
.tl > li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 1rem; padding-bottom: 1.5rem; }
.tl > li::before { content: ""; position: absolute; left: 16px; top: 36px; bottom: 2px; width: 2px; border-radius: 2px; background: var(--color-border); }
.tl > li.done::before { background: var(--color-success); }
.tl > li:last-child { padding-bottom: 0; }
.tl > li:last-child::before { display: none; }
.tl-dot { display: grid; place-items: center; width: 34px; height: 34px; font: 700 0.82rem var(--font-heading); color: var(--color-text-muted); background: var(--color-surface); border: 2px solid var(--color-border); border-radius: 50%; }
.tl-dot .ic { width: 16px; height: 16px; stroke-width: 3; }
.tl > li.done .tl-dot { color: #fff; background: var(--color-success); border-color: var(--color-success); }
.tl > li.current .tl-dot { color: #fff; background: var(--color-accent); border-color: var(--color-accent); box-shadow: 0 0 0 5px var(--color-accent-light); }
.tl h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; margin: 0.35rem 0 0.2rem; font-size: 1rem; }
.tl h3 time { font-family: var(--font-body); font-size: 0.8rem; font-weight: 500; color: var(--color-text-muted); }
.tl p { margin: 0; font-size: 0.9rem; }
.tl > li:not(.done):not(.current) h3 { color: var(--color-text-muted); }
.pages { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.75rem; }
.pages span { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.7rem; font-size: 0.8rem; font-weight: 600; border-radius: 999px; }
.pages .pg-done { color: var(--color-ok); background: var(--color-ok-bg); }
.pages .pg-wait { color: var(--color-warn); background: var(--color-warn-bg); }
.pages .pg-work { color: var(--color-primary); background: var(--color-primary-tint); }
.pages .ic { width: 13px; height: 13px; stroke-width: 3; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.55rem 1.5rem; margin: 0; font-size: 0.93rem; }
.kv dt { color: var(--color-text-muted); }
.kv dd { margin: 0; font-weight: 600; color: var(--color-text); overflow-wrap: anywhere; }
.history summary { margin-top: var(--space-3); font-weight: 600; color: var(--color-primary-light); cursor: pointer; }

/* Stat tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); }
.tile { display: grid; align-content: start; gap: 0.15rem; padding: 1rem 1.1rem; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
button.tile { font: inherit; text-align: left; cursor: pointer; transition: border-color var(--transition), box-shadow var(--transition); }
button.tile:hover { border-color: var(--color-primary-light); box-shadow: var(--shadow-sm); }
.tile-label { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-text-muted); }
.tile-value { font: 700 1.75rem/1.2 var(--font-heading); color: var(--color-primary); font-variant-numeric: tabular-nums; }
.tile-sub { font-size: 0.82rem; color: var(--color-text-muted); }
.delta { font-size: 0.8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.delta.up { color: #1f7a4a; }
.delta.down { color: var(--color-bad); }
.delta.flat { color: var(--color-text-muted); }

/* Month switcher */
.mini-seg { display: inline-flex; flex-wrap: wrap; gap: 0.3rem; padding: 0.25rem; background: var(--color-bg-alt); border-radius: 999px; }
.mini-seg button { padding: 0.35rem 0.85rem; font: 600 0.84rem var(--font-body); color: var(--color-text-muted); background: none; border: 0; border-radius: 999px; cursor: pointer; }
.mini-seg button[aria-pressed="true"] { color: var(--color-primary); background: var(--color-surface); box-shadow: var(--shadow-sm); }

/* Chart */
.chart-box { margin-top: var(--space-4); }
.chart-box h3 { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; }
.chart-box h3 span { font-family: var(--font-body); font-size: 0.84rem; font-weight: 500; color: var(--color-text-muted); }
.chart { position: relative; }
.chart svg { display: block; overflow: visible; touch-action: pan-y; }
.chart .grid line { stroke: var(--color-grid); stroke-width: 1; }
.chart .axis text { fill: var(--color-text-muted); font: 500 11px var(--font-body); font-variant-numeric: tabular-nums; }
.chart .area { fill: rgba(28, 90, 130, 0.12); }
.chart .line { fill: none; stroke: var(--color-primary-light); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .end { fill: var(--color-primary-light); stroke: var(--color-surface); stroke-width: 2; }
.chart .end-label { fill: var(--color-text); font: 600 12px var(--font-body); }
.chart .hover-line { stroke: var(--color-text-muted); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .hover-dot { fill: var(--color-surface); stroke: var(--color-primary-light); stroke-width: 2.5; }
.chart-tip {
  position: absolute; z-index: 2; pointer-events: none; padding: 0.4rem 0.65rem; font-size: 0.8rem; line-height: 1.35; white-space: nowrap;
  color: #fff; background: var(--color-primary-dark); border-radius: 8px; box-shadow: var(--shadow-md); transform: translate(-50%, calc(-100% - 12px));
}
.chart-tip strong { display: block; font-size: 0.92rem; }
.tbl-details summary { margin-top: 0.75rem; font-size: 0.86rem; font-weight: 600; color: var(--color-primary-light); cursor: pointer; }
.table-wrap { overflow-x: auto; }
.table-wrap.short { max-height: 240px; margin-top: 0.5rem; overflow-y: auto; border: 1px solid var(--color-border); border-radius: var(--radius-sm); }

/* Report: two columns */
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-4); }
.hbars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem 0.8rem; padding: 0.5rem 0; font-size: 0.9rem; color: var(--color-text); border-top: 1px solid var(--color-border); }
.hbars li:first-child { border-top: 0; }
.hbars b { font-weight: 600; font-variant-numeric: tabular-nums; }
.hbars i { grid-column: 1 / -1; display: block; height: 6px; width: var(--w); background: var(--color-primary-light); border-radius: 0 4px 4px 0; }
.ticks li { display: flex; gap: 0.6rem; padding: 0.45rem 0; font-size: 0.92rem; color: var(--color-text); }
.ticks li::before {
  content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-top: 0.1rem; border-radius: 50%;
  background: rgba(47, 158, 99, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f9e63' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Site status strip */
.status-strip { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; padding: 0.9rem 1.2rem; font-size: 0.9rem; color: var(--color-text); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.status-strip span { display: inline-flex; align-items: center; gap: 0.45rem; }
.status-strip .ic { color: var(--color-success); width: 17px; height: 17px; }
.status-strip strong { font-weight: 600; }

/* Support tickets */
.usage { display: grid; gap: 0.45rem; margin-bottom: var(--space-3); padding: 1rem 1.1rem; background: var(--color-primary-tint); border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--color-text); }
.usage .bar { background: rgba(255, 255, 255, 0.8); }
.ticket { background: var(--color-bg); border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); }
.ticket[open] { background: var(--color-surface); border-color: #d6d2c8; box-shadow: var(--shadow-sm); }
.ticket summary { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; padding: 0.9rem 1rem; cursor: pointer; list-style: none; }
.ticket summary::-webkit-details-marker { display: none; }
.ticket summary::after { content: ""; width: 8px; height: 8px; margin-left: 0.2rem; border-right: 2px solid var(--color-text-muted); border-bottom: 2px solid var(--color-text-muted); transform: rotate(45deg); transition: transform var(--transition); }
.ticket[open] summary::after { transform: rotate(225deg); }
.thread { display: grid; gap: 0.7rem; padding: 0.2rem 1rem 1rem; }
.msg { max-width: 82%; padding: 0.7rem 0.9rem; font-size: 0.92rem; line-height: 1.5; color: var(--color-text); border-radius: 14px; }
.msg small { display: block; margin-bottom: 0.2rem; font-size: 0.76rem; font-weight: 600; color: var(--color-text-muted); }
.msg.you { justify-self: end; background: var(--color-accent-light); border-bottom-right-radius: 4px; }
.msg.gw { justify-self: start; background: var(--color-primary-tint); border-bottom-left-radius: 4px; }
.reply { display: flex; gap: 0.5rem; padding: 0 1rem 1rem; }
.reply input { flex: 1; min-width: 0; padding: 0.6rem 0.85rem; font: inherit; font-size: 0.92rem; color: var(--color-text); background: var(--color-bg); border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); }
.reply input:focus { outline: none; border-color: var(--color-primary-light); box-shadow: 0 0 0 4px rgba(28, 90, 130, 0.14); }

/* Account */
.acct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.profile { display: flex; align-items: center; gap: 1rem; }
.profile .acct-avatar { width: 60px; height: 60px; font-size: 1.4rem; }
.profile strong { display: block; font-size: 1.05rem; color: var(--color-text); }
.profile span { display: block; font-size: 0.9rem; color: var(--color-text-muted); overflow-wrap: anywhere; }
.checks { display: grid; gap: 0.55rem; }
.checks label, .check { display: flex; align-items: center; gap: 0.6rem; font-size: 0.93rem; color: var(--color-text); cursor: pointer; }
.checks input, .check input { width: 18px; height: 18px; accent-color: var(--color-accent); }
.inline-form { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.inline-form input { flex: 1 1 220px; min-width: 0; padding: 0.7rem 0.9rem; font: inherit; font-size: 0.95rem; background: var(--color-bg); border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); }
.inline-form input:focus { outline: none; border-color: var(--color-primary-light); box-shadow: 0 0 0 4px rgba(28, 90, 130, 0.14); }
.danger-zone { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.form-field input[type="range"] { padding: 0; background: none; border: 0; box-shadow: none; accent-color: var(--color-accent); }
.form-field select { appearance: auto; }

/* Mock website (the free preview) */
.mock { container-type: inline-size; overflow: hidden; background: #fff; border: 1px solid var(--color-border); border-radius: 12px; box-shadow: var(--shadow-md); }
.mock-bar { display: flex; align-items: center; gap: 1.1cqw; height: max(6cqw, 14px); padding: 0 2.4cqw; background: var(--color-bg-alt); border-bottom: 1px solid var(--color-border); }
.mock-bar span { width: 1.7cqw; height: 1.7cqw; border-radius: 50%; background: #d8d4cb; }
.mock-bar span:first-child { background: var(--color-accent); }
.mock-bar i { flex: 1; min-width: 0; margin-left: 2cqw; padding: 0.5cqw 2cqw; overflow: hidden; font-size: 2.1cqw; font-style: normal; font-weight: 600; white-space: nowrap; color: var(--color-text-muted); background: #fff; border-radius: 3cqw; }
.mock-nav { display: flex; align-items: center; gap: 3.2cqw; padding: 2.6cqw 4.5cqw; font-size: 2.1cqw; font-weight: 500; color: #33505f; }
.mock-nav b { margin-right: auto; font-family: var(--font-heading); font-size: 3cqw; font-weight: 700; color: #0b2a3a; }
.mock-nav em { font-style: normal; color: #e0662e; }
.mock-btn { padding: 0.9cqw 2.4cqw; font-weight: 600; color: #fff; background: #e0662e; border-radius: 1.2cqw; }
.mock-hero {
  padding: 7.5cqw 4.5cqw 9cqw; color: #fff;
  background:
    radial-gradient(55cqw 38cqw at 92% 115%, rgba(255, 140, 60, 0.6), transparent 62%),
    radial-gradient(40cqw 30cqw at 0% 0%, rgba(40, 140, 170, 0.35), transparent 70%),
    linear-gradient(135deg, #0b2a3a, #145468);
}
.mock-hero small { display: block; margin-bottom: 1.6cqw; font-size: 1.9cqw; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #ffc39e; }
.mock-hero strong { display: block; max-width: 72%; margin-bottom: 3.2cqw; font-family: var(--font-heading); font-size: 5.6cqw; line-height: 1.1; }
.mock-cta { display: inline-block; padding: 1.6cqw 3.4cqw; font-size: 2.3cqw; font-weight: 600; background: var(--color-accent); border-radius: 1.4cqw; }
.mock-dishes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.6cqw; padding: 4cqw 4.5cqw 5cqw; background: #fbf8f3; }
.mock-dishes div { overflow: hidden; background: #fff; border-radius: 1.8cqw; box-shadow: 0 0.6cqw 2cqw rgba(0, 0, 0, 0.08); }
.mock-dishes i { display: block; aspect-ratio: 16 / 10; }
.mock-dishes .d1 { background: radial-gradient(ellipse 26% 30% at 50% 52%, #9c4424 60%, #c9683d 61% 100%, transparent 101%), radial-gradient(circle at 50% 52%, #fff 0 34%, #e9dccb 35%); }
.mock-dishes .d2 { background: radial-gradient(circle at 50% 52%, #e9eed8 0 17%, #b9cf8a 18% 21%, #fff 22% 34%, #d8cbb4 35%); }
.mock-dishes .d3 { background: repeating-linear-gradient(100deg, #e8756a 0 9%, #f4a79a 9% 11%) center / 42% 34% no-repeat, radial-gradient(circle at 50% 52%, #fff 0 34%, #2d3d45 35%); }
.mock-dishes b { display: block; padding: 1.4cqw 1.8cqw; font-size: 2.1cqw; color: #0b2a3a; }
.mock-sm { border-radius: 8px; box-shadow: none; }

/* Modal + drawer */
.overlay { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(7, 25, 40, 0.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fadeIn 0.2s ease; }
.modal-panel {
  position: relative; width: min(560px, 100%); max-height: calc(100% - 8px); overflow-y: auto; padding: var(--space-4);
  background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); animation: modalIn 0.3s var(--ease);
}
.modal-panel.wide { width: min(860px, 100%); }
.modal-panel h2 { margin: 0 3rem 0.5rem 0; font-size: 1.4rem; text-wrap: balance; }
.modal-panel > div > p { font-size: 0.95rem; }
.overlay.is-drawer { place-items: stretch end; padding: 0; }
.overlay.is-drawer .modal-panel { width: min(500px, 100%); max-height: none; height: 100%; border-radius: 0; animation: drawerIn 0.35s var(--ease); }
.modal-close { position: absolute; top: 1rem; right: 1rem; display: grid; place-items: center; width: 40px; height: 40px; color: var(--color-text-muted); background: var(--color-bg-alt); border: 0; border-radius: 50%; cursor: pointer; }
.modal-close:hover { color: var(--color-text); background: var(--color-border); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--space-3); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
@keyframes drawerIn { from { transform: translateX(40px); opacity: 0; } }
body.modal-open { overflow: hidden; }
.pv-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); margin-top: var(--space-3); }
.pv-notes li { padding: 0.8rem 0.9rem; font-size: 0.88rem; line-height: 1.45; color: var(--color-text); background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.pv-notes strong { display: block; margin-bottom: 0.15rem; font-family: var(--font-heading); color: var(--color-primary); }
.mini-steps { display: grid; gap: 0.5rem; margin: var(--space-2) 0 0; }
.mini-steps li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.93rem; color: var(--color-text); }
.mini-steps li span { display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; font: 700 0.75rem var(--font-heading); color: var(--color-accent-text); background: var(--color-accent-light); border-radius: 50%; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.form-field .chip { display: inline-flex; margin: 0; align-items: center; gap: 0.4rem; padding: 0.4rem 0.8rem; font-size: 0.88rem; font-weight: 500; color: var(--color-text); background: var(--color-bg); border: 1.5px solid var(--color-border); border-radius: 999px; cursor: pointer; }
.form-field .chip:has(input:checked) { color: var(--color-accent-text); background: #fff5f0; border-color: var(--color-accent); }
.form-field .chip input { width: 15px; height: 15px; margin: 0; padding: 0; accent-color: var(--color-accent); }
.form-field input.visually-hidden { width: 1px; height: 1px; padding: 0; border: 0; }
.form-field .drop { display: flex; margin: 0; align-items: center; justify-content: center; gap: 0.5rem; padding: 1.1rem; font-size: 0.92rem; font-weight: 600; text-align: center; color: var(--color-primary-light); background: var(--color-bg); border: 2px dashed var(--color-border); border-radius: var(--radius-sm); cursor: pointer; transition: border-color var(--transition), background var(--transition); }
.form-field .drop:hover, .form-field .drop:focus-within { border-color: var(--color-primary-light); background: var(--color-primary-tint); }
.form-field .drop.has-file { color: var(--color-ok); border-style: solid; border-color: #b9e0cb; background: var(--color-ok-bg); }
.invoice-doc { padding: var(--space-3); background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.invoice-doc table { width: 100%; font-size: 0.92rem; border-collapse: collapse; }
.invoice-doc td { padding: 0.5rem 0; border-bottom: 1px solid var(--color-border); color: var(--color-text); }
.invoice-doc td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.invoice-doc tr.total td { font-weight: 700; border-bottom: 0; }
.demo-note { margin: var(--space-2) 0; padding: 0.7rem 0.9rem; font-size: 0.86rem; color: var(--color-primary-dark) !important; background: var(--color-accent-light); border: 1px dashed var(--color-accent); border-radius: var(--radius-sm); }
.client-notes { margin: var(--space-2) 0; padding: 0.8rem 1rem; font-size: 0.92rem; color: var(--color-text); background: var(--color-warn-bg); border-radius: var(--radius-sm); }
.client-notes strong { display: block; margin-bottom: 0.2rem; font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-warn); }
.receipt-file { display: flex; align-items: center; gap: 0.8rem; padding: 1rem; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.receipt-file .row-ic { width: 48px; height: 48px; }

/* Admin */
.needs li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1rem; padding: 0.9rem 0; border-top: 1px solid var(--color-border); }
.needs li:first-child { border-top: 0; padding-top: 0; }
.needs .row-ic.hot { color: var(--color-accent-text); background: var(--color-accent-light); border-color: #ffd3bd; }
.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: var(--space-2); }
.filters button { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.85rem; font: 600 0.85rem var(--font-body); color: var(--color-text); background: var(--color-bg); border: 1.5px solid var(--color-border); border-radius: 999px; cursor: pointer; }
.filters button span { font-size: 0.75rem; color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.filters button[aria-pressed="true"] { color: #fff; background: var(--color-primary); border-color: var(--color-primary); }
.filters button[aria-pressed="true"] span { color: rgba(255, 255, 255, 0.75); }
.admin-table { width: 100%; min-width: 760px; font-size: 0.92rem; border-collapse: collapse; }
.admin-table th { padding: 0.6rem 0.8rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-align: left; text-transform: uppercase; color: var(--color-text-muted); border-bottom: 1.5px solid var(--color-border); white-space: nowrap; }
.admin-table td { padding: 0.8rem; vertical-align: middle; color: var(--color-text); border-bottom: 1px solid var(--color-border); }
.admin-table tbody tr:hover { background: var(--color-bg); }
.admin-table td strong { display: block; }
.admin-table td small { display: block; font-size: 0.82rem; color: var(--color-text-muted); }
.admin-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin-table tr.is-sample td:first-child { box-shadow: inset 3px 0 0 var(--color-accent); }
.sample-tag { display: inline-block; margin-left: 0.35rem; padding: 0.05rem 0.45rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-accent-text); background: var(--color-accent-light); border-radius: 999px; vertical-align: middle; }
.status-select { padding: 0.4rem 0.6rem; font: inherit; font-size: 0.86rem; color: var(--color-text); background: var(--color-bg); border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); }
.urgent { color: var(--color-bad); background: var(--color-bad-bg); }
.pd-count.inline { display: inline-grid; margin-left: 0.4rem; vertical-align: 0.15em; }
.needs .row-meta { gap: 0.5rem 0.8rem; }
.needs .match { display: flex; align-items: flex-start; gap: 0.35rem; margin-top: 0.3rem; font-weight: 600; color: var(--color-ok); }
.needs .match.none { color: var(--color-warn); }
.needs .match .ic { width: 15px; height: 15px; margin-top: 0.1rem; stroke-width: 2.5; }
.all-clear { display: flex; align-items: center; gap: 0.5rem; margin: 0; font-weight: 600; color: var(--color-ok); }
.all-clear .ic { width: 20px; height: 20px; padding: 3px; color: #fff; background: var(--color-success); border-radius: 50%; stroke-width: 3; }
.ticket-link { display: block; font-weight: 600; text-align: left; color: var(--color-text); }

/* Admin: sidebar client search */
.pd-search { position: relative; }
.pd-search input { width: 100%; padding: 0.7rem 0.9rem 0.7rem 2.3rem; font: inherit; font-size: 0.92rem; color: var(--color-text); background: var(--color-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356606e' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") 0.75rem center / 16px no-repeat; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.pd-search input:focus { outline: none; border-color: var(--color-primary-light); box-shadow: 0 0 0 4px rgba(28, 90, 130, 0.14); }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 70; padding: 0.35rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.search-results button { display: block; width: 100%; padding: 0.55rem 0.7rem; font: inherit; text-align: left; color: var(--color-text); background: none; border: 0; border-radius: 8px; cursor: pointer; }
.search-results button:hover, .search-results button:focus-visible { background: var(--color-bg-alt); }
.search-results strong { display: block; font-size: 0.9rem; }
.search-results small { font-size: 0.78rem; color: var(--color-text-muted); }
.search-none { padding: 0.55rem 0.7rem; font-size: 0.86rem; color: var(--color-text-muted); }

/* Admin: client profile */
.back-link { margin-bottom: 0.8rem; font-size: 0.88rem; font-weight: 600; text-decoration: none; }
.client-title { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.6rem 1rem; }
.client-title h2 { margin: 0 0 0.25rem; font-size: 1.5rem; }
.client-title p { margin: 0; font-size: 0.92rem; }
.client-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); align-items: start; }
.check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1rem; }
.checks label:has(input:disabled) { color: var(--color-text-muted); }
.diff { display: grid; gap: 0.2rem; margin-top: 0.3rem; }
.diff del { color: var(--color-text-muted); }
.diff ins { text-decoration: none; font-weight: 600; color: var(--color-ok); }
.speed-good { color: #1f7a4a; }
.speed-ok { color: var(--color-warn); }
.speed-bad { color: var(--color-bad); }
.admin-table td small .pill { margin-top: 0.25rem; }
@media (max-width: 960px) {
  .pd-search { display: none; }
  .client-grid, .check-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Website updates (client): a timeline of changes, grouped by month */
.upd-month { margin: var(--space-3) 0 var(--space-2); font: 700 0.78rem var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); }
.upd-list { margin: 0; padding: 0; list-style: none; }
.upd { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 0.9rem; }
.upd time { padding-top: 0.2rem; font-size: 0.82rem; font-weight: 600; color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.upd.fresh time { color: var(--color-accent-text); }
.upd-body { position: relative; padding: 0 0 1.4rem 1.3rem; border-left: 2px solid var(--color-border); }
.upd:last-child .upd-body { padding-bottom: 0.4rem; }
.upd-body::before { content: ""; position: absolute; left: -7px; top: 0.4rem; width: 12px; height: 12px; border-radius: 50%; background: var(--color-surface); border: 2px solid var(--color-primary-light); }
.upd.fresh .upd-body::before { background: var(--color-accent); border-color: var(--color-accent); box-shadow: 0 0 0 4px var(--color-accent-light); }
.upd-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; }
.upd-top strong { color: var(--color-text); line-height: 1.35; }
.upd-body p { margin: 0.3rem 0 0; font-size: 0.92rem; }
.upd-links { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; margin-top: 0.45rem; font-size: 0.86rem; }
.upd-links a { font-weight: 600; color: var(--color-primary-light); text-decoration: underline; text-underline-offset: 3px; }
.upd-links a:hover { color: var(--color-accent-text); }
@media (max-width: 720px) { .upd { grid-template-columns: 1fr; gap: 0.2rem; } .upd time { padding-left: 1.3rem; } }
/* Admin: floating "What's new" button (changes to gensanweb.com itself) */
.whats-new {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 250;
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.72rem 1.1rem;
  font: 600 0.92rem var(--font-body); color: #fff; cursor: pointer;
  background: var(--color-primary); border: 0; border-radius: 999px; box-shadow: var(--shadow-lg);
  transition: background var(--transition), transform var(--transition);
}
.whats-new:hover { background: var(--color-primary-dark); transform: translateY(-2px); }
.whats-new .ic { width: 17px; height: 17px; }
.wn-count { display: grid; place-items: center; min-width: 21px; height: 21px; padding: 0 6px; font-size: 0.72rem; font-weight: 700; background: var(--color-accent); border-radius: 11px; }
body.modal-open .whats-new { display: none; }

/* Website updates (admin): client filter + type chips, client name on each entry */
.tiles.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.upd-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-bottom: 0.4rem; }
.upd-client { font-weight: 600; text-decoration: none; color: var(--color-primary-light); }
.upd-client::after { content: "\00B7"; margin-left: 0.6rem; color: var(--color-text-muted); }
@media (max-width: 720px) { .tiles.tiles-3 { grid-template-columns: minmax(0, 1fr); } }

/* Leads (client): messages and table bookings from their website */
.lead-row.is-new { border-color: #f3b99d; background: var(--color-surface); }
.lead-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; }
.lead-top strong { display: inline; }
.lead-msg { margin: 0.35rem 0 0; font-size: 0.93rem; line-height: 1.5; color: var(--color-text); }

/* Client health (admin): signals on the profile, flagged cells in the table */
.signals li { display: flex; align-items: baseline; gap: 0.7rem; padding: 0.6rem 0; font-size: 0.93rem; color: var(--color-text); border-top: 1px solid var(--color-border); }
.signals li:first-child { border-top: 0; padding-top: 0; }
.sig-dot { width: 9px; height: 9px; flex-shrink: 0; border-radius: 50%; background: var(--color-success); }
.signals .sig-warn .sig-dot { background: #d68a00; }
.signals .sig-bad .sig-dot { background: #c43d1a; }
.signals .sig-warn, .signals .sig-bad { font-weight: 600; }
.health-table { min-width: 640px; }
.health-table td:first-child { min-width: 200px; }
.health-table td:not(:first-child) { white-space: nowrap; }
.health-table .check-in { display: block; margin-top: 0.4rem; font-size: 0.84rem; font-weight: 600; }
.admin-table .sig-warn { font-weight: 600; color: var(--color-warn); }
.admin-table .sig-bad { font-weight: 600; color: var(--color-bad); }
.admin-table td .delta { display: block; }
.rules { display: grid; gap: 0.45rem; margin: 0.6rem 0 0; font-size: 0.88rem; color: var(--color-text-muted); }
.rules strong { color: var(--color-text); }

/* Admin: daily reminder to find new clients on Facebook */
.fb-searches { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.fb-searches a { padding: 0.4rem 0.85rem; font-size: 0.85rem; font-weight: 600; color: var(--color-primary); text-decoration: none; background: var(--color-primary-tint); border-radius: 999px; transition: background var(--transition), color var(--transition); }
.fb-searches a:hover { color: #fff; background: var(--color-primary); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 400; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 0.6rem; padding: 0.8rem 1.1rem; font-size: 0.93rem; font-weight: 500; color: #fff;
  background: var(--color-primary-dark); border-radius: 12px; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity 0.25s ease, transform 0.3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .ic { color: #7fd3a6; }

/* Responsive */
@media (max-width: 1100px) {
  .pd-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .pd-shell { grid-template-columns: minmax(0, 1fr); margin-top: -2.75rem; }
  .pd-side { top: var(--header-h); z-index: 60; }
  .pd-nav { display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; padding: 0.4rem; }
  .pd-nav::-webkit-scrollbar { display: none; }
  .pd-nav button, .pd-nav.grouped button { width: auto; padding: 0.55rem 0.8rem; font-size: 0.88rem; white-space: nowrap; }
  .pd-group { display: contents; }
  .pd-group-label { display: none; }
  .pd-count { margin-left: 0.1rem; }
  .pd-help { display: none; }
  .next { grid-template-columns: minmax(0, 1fr); }
  .sums, .cols-2, .acct-grid, .how { grid-template-columns: minmax(0, 1fr); }
  .journey { max-width: 520px; }
  .journey li { padding-right: 0; }
  .journey li::after { left: 34px; right: 2px; }
  .j-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .journey-now { display: block; }
}
@media (max-width: 720px) {
  .panel { padding: var(--space-3); }
  .proto-inner { gap: 0.45rem 1rem; }
  .row-meta { width: 100%; justify-content: space-between; }
  .amt { min-width: 0; text-align: left; }
  .row-meta .pill-slot, .row-act { min-width: 0; }
  .prev-thumb { width: 100%; }
  .prev-empty { aspect-ratio: auto; padding-block: 1.2rem; }
  .pv-notes { grid-template-columns: minmax(0, 1fr); }
  .modal-panel { padding: var(--space-3); }
  .msg { max-width: 92%; }
  .proj-kpi { text-align: left; }
  .feed li { grid-template-columns: 62px minmax(0, 1fr); gap: 0.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .journey li.live .j-dot, .dot-live { animation: none; }
}
