/* Demo website styles, from the final design (docs/design/option_b_dashboard.html).
   No inline styles anywhere (the Content-Security-Policy forbids them): every look is a
   class here. System fonts (owner decision D5): no request to any font service. */

:root {
  --ink: #18202B; --muted: #5B6573; --line: #E2E5EA; --line2: #EEF0F3;
  --bg: #F6F7F9; --card: #FFFFFF; --side: #18202B; --side-on: #2C3747; --side-text: #C9D1DC;
  --blue: #0F5BD8; --blue-soft: #EEF3FD; --orange: #B54708; --red: #9A3412; --amber: #854D0E;
  --info: #1E40AF; --focus: #0F5BD8;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: system-ui, "Segoe UI", "Nirmala UI", "Noto Sans Bengali", Roboto, sans-serif;
  line-height: 1.4; overflow-x: hidden;
}
[hidden] { display: none !important; }
a { color: var(--blue); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; background: #fff; color: var(--ink);
        padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 8px; }

.app { min-height: 100vh; display: flex; flex-wrap: wrap; }
/* The sidebar only (#nav): the customers page has a second <nav>, the pager. */
#nav { flex: 1 1 220px; max-width: 100%; background: var(--side); color: #fff; padding: 20px 14px;
      display: flex; flex-direction: column; gap: 6px; }
#nav.hidden { display: none; }
.brand { display: flex; align-items: center; justify-content: space-between; gap: 10px;
         padding: 0 6px 16px; font-weight: 700; font-size: 19px; min-height: 44px; }
.icon-btn { width: 44px; height: 44px; border: 0; border-radius: 8px; display: flex; align-items: center;
            justify-content: center; background: var(--side-on); color: #fff; flex: none; }
.nav-item { display: flex; align-items: center; text-decoration: none; border-radius: 8px;
            padding: 10px 12px; font-size: 15px; min-height: 44px; color: var(--side-text); }
.nav-item:hover { color: #fff; }
.nav-item.on { color: #fff; background: var(--side-on); font-weight: 600; }
#nav :focus-visible { outline-color: #fff; }

main { flex: 999 1 560px; min-width: 0; padding: 20px 28px 48px; display: flex; flex-direction: column; gap: 22px; }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.titles { min-width: 0; }
.top h1 { margin: 0; font-size: 26px; }
.sub { font-size: 14px; color: var(--muted); margin: 0; }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.spacer { flex: 1 1 auto; }
.demo { font-size: 12px; font-weight: 600; color: #7A3F00; background: #FFF1DB; padding: 4px 10px; border-radius: 999px; }
.lang { display: flex; border: 1px solid #D5D9E0; border-radius: 10px; overflow: hidden; }
.lang a { display: flex; align-items: center; font-size: 14px; font-weight: 600; min-height: 44px;
          padding: 0 14px; background: #fff; color: var(--ink); text-decoration: none; }
.lang a.on { background: var(--ink); color: #fff; }
.menu-btn { width: 44px; height: 44px; border: 1px solid #D5D9E0; border-radius: 10px; background: #fff;
            color: var(--ink); display: flex; align-items: center; justify-content: center; flex: none; }

.stale { margin: 0; padding: 10px 14px; border-radius: 10px; background: #FFF7E6; color: #7A3F00; font-size: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px;
        display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card h2 { margin: 0; font-size: 17px; font-weight: 600; }
.narrow { max-width: 760px; }
.next { border-style: dashed; border-color: #B8C0CC; }
.error-text { margin: 0; font-size: 17px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
       display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi .label { font-size: 14px; color: var(--muted); }
.kpi .note { font-size: 13px; color: var(--muted); }
.kpi .value { font-size: 26px; font-weight: 700; overflow-wrap: anywhere; }
.tone-ink { color: var(--ink); }
.tone-orange { color: var(--orange); }
.tone-blue { color: var(--blue); }
.tone-bad { color: var(--red); }
.tone-warn { color: var(--amber); }
.tone-info { color: var(--info); }

.bar { display: block; width: 100%; height: 28px; border-radius: 6px; overflow: hidden; background: var(--line2); }
.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.legend .item { display: flex; gap: 8px; align-items: flex-start; }
.swatch { width: 12px; height: 12px; border-radius: 3px; margin-top: 5px; flex: none; }
.legend span { font-size: 13px; color: var(--muted); display: block; }
.legend strong { font-size: 16px; }
.seg-b0 { fill: #CBD5E1; background: #CBD5E1; }
.seg-b1 { fill: #93C5FD; background: #93C5FD; }
.seg-b2 { fill: #3B82F6; background: #3B82F6; }
.seg-b3 { fill: #F59E0B; background: #F59E0B; }
.seg-b4 { fill: #C2410C; background: #C2410C; }

.row { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.grow { flex: 999 1 520px; min-width: 0; }
.side { flex: 1 1 280px; min-width: 0; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
th { text-align: left; color: var(--muted); font-size: 13px; font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 12px 10px; border-bottom: 1px solid var(--line2); vertical-align: top; }
th.num, td.num { text-align: right; }
td.num { font-weight: 700; white-space: nowrap; }
/* Table names are never cut: a long name wraps to a second line (the table scrolls inside
   its box on a phone). */
.cust-name { display: block; font-weight: 600; min-width: 12ch; overflow-wrap: anywhere; }
.cust-ref { display: block; font-size: 12px; color: var(--muted); }
.more { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--blue); }

details.flag { border-radius: 8px; }
details.flag > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px;
                         padding: 10px 12px; min-height: 44px; border-radius: 8px; color: var(--ink);
                         background: var(--bg); border: 1px solid transparent; cursor: pointer; }
details.flag > summary::-webkit-details-marker { display: none; }
details.flag[open] > summary { background: var(--blue-soft); border-color: var(--blue); }
.flag-count { display: flex; align-items: center; gap: 8px; }
.flag-count strong { font-size: 18px; }
.chev { transition: transform .15s; flex: none; }
details[open] > summary .chev { transform: rotate(180deg); }
.flag-list { display: flex; flex-direction: column; gap: 4px; padding: 2px 4px 6px 12px; border-left: 3px solid var(--blue); margin-top: 6px; }
/* A risk line: name (+ code) on the left, detail on the right. The NAME has priority: when
   both do not fit on one line, the detail moves to its own line (flex-wrap), so the name
   gets the full width. The name ends with "..." only when the name alone is wider than the
   box. Never cut a name in the template or on the server (names are shown exactly as in
   the data). */
.flag-list .p { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 10px; row-gap: 2px;
                padding: 6px 4px; border-bottom: 1px solid var(--line2); font-size: 14px; }
.flag-list .who { flex: 1 1 auto; min-width: 0; max-width: 100%; }
.flag-list .who strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flag-list .what { flex: 0 1 auto; margin-left: auto; text-align: right; }
.advice { font-size: 13px; color: var(--muted); padding-top: 4px; }
.flag-list .who .name-link { display: block; min-width: 0; }

/* Names that open the proof panel (W.1b): plain links, so they work without JavaScript. */
.name-link { color: var(--blue); text-decoration: underline; }
.name-link .cust-name { display: inline; }
td .name-link { display: inline-block; min-height: 24px; padding: 2px 0; }
tr.sel { background: var(--blue-soft); }
.tone-muted { color: var(--muted); }

/* Customers page: search, filter, pages. */
.cust-bar { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.search { flex: 1 1 260px; display: flex; gap: 8px; min-width: 0; }
.search input { flex: 1 1 auto; min-width: 0; font: inherit; font-size: 15px; min-height: 44px; padding: 0 14px;
                border: 1px solid #D5D9E0; border-radius: 10px; background: #fff; color: var(--ink); }
.search-btn { min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 10px;
              background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; flex: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.segs { display: flex; background: #E9ECF1; border-radius: 12px; padding: 4px; gap: 4px; }
.seg { display: flex; align-items: center; font-size: 15px; font-weight: 600; min-height: 44px; padding: 0 16px;
       border-radius: 9px; color: #3A4452; text-decoration: none; }
/* The active filter is dark (owner W.1b review: the design's white pill looked unselected),
   like the language toggle. Its keyboard focus ring stays visible: blue ring with a white gap
   between the dark pill and the ring. */
.seg.on { background: var(--ink); color: #fff; }
.seg.on:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }
.count { margin: 2px 0 0; font-size: 15px; font-weight: 600; }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pg { display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; min-height: 44px; padding: 0 14px;
      border-radius: 8px; border: 1px solid #D5D9E0; background: #fff; color: var(--ink); text-decoration: none; }
.pg.off { color: #9AA3AF; }
.page-of { font-size: 14px; }

/* Proof panel: the engine's evidence rows of one customer. */
.proof { border: 2px solid var(--blue); flex-basis: 360px; }
.proof-head { display: flex; gap: 10px; align-items: flex-start; }
.proof-who { flex: 1 1 auto; min-width: 0; }
.proof-who h2 { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.close-btn { border: 1px solid #D5D9E0; background: #fff; color: var(--ink); }
.proof-sum { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.proof-sum div { background: var(--bg); border-radius: 8px; padding: 8px 10px; min-width: 0; }
.proof-sum dt { font-size: 13px; color: var(--muted); }
.proof-sum dd { margin: 0; overflow-wrap: anywhere; }
.ev-title { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.ev-group { display: flex; flex-direction: column; gap: 6px; }
.ev-group h4 { margin: 0; font-size: 14px; font-weight: 600; }
.ev { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--bg); border-radius: 8px; }
.ev > div { min-width: 0; }
.ev .k { font-size: 14px; font-weight: 600; display: block; overflow-wrap: anywhere; }
.ev .s { font-size: 13px; display: block; }
.ev strong { white-space: nowrap; }
.ev-sum { margin: 0; font-size: 13px; font-weight: 600; }

/* Upload page (W.1c2, design "U4"): sample files only, saving off. */
.up-wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.up-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.up-side { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.up-intro { margin: 0; font-size: 15px; color: var(--muted); }
.up-bar { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.up-form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; min-width: 0; }
.up-pick { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.up-legend { float: left; padding: 0; font-size: 15px; font-weight: 600; }
/* Real radio buttons, drawn as the design's segmented pills: the input stays focusable and
   checkable by keyboard; the pill shows which one is chosen and where the focus is. */
.seg-radio { position: relative; display: flex; }
.seg-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.seg-radio span { display: flex; align-items: center; font-size: 15px; font-weight: 600; min-height: 44px;
                  padding: 0 16px; border-radius: 9px; color: #3A4452; cursor: pointer; }
.seg-radio input:checked + span { background: var(--ink); color: #fff; }
.seg-radio input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }
.primary { font-size: 15px; font-weight: 600; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 0;
           background: var(--blue); color: #fff; }
.primary.big { font-size: 16px; min-height: 48px; padding: 0 24px; }
.own { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.own span { font-size: 12px; color: var(--muted); }
.ghost-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 10px;
             border: 1px solid var(--blue); background: #fff; color: var(--blue); font-weight: 600; font-size: 15px;
             text-decoration: none; }
.up-empty { background: #fff; border: 1px dashed #B8C0CC; border-radius: 12px; padding: 28px 20px; text-align: center;
            font-size: 15px; color: var(--muted); }
.up-result { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.up-result-h { margin: 0; font-size: 17px; font-weight: 600; }
.up-notice { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px;
             background: #E8F3EC; border: 1px solid #B7DCC3; color: #14532D; font-size: 15px; }
.up-notice span { font-size: 14px; }
.up-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.tile { border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 4px; background: #fff;
        border: 1px solid var(--line); min-width: 0; }
.tile .l { font-size: 14px; color: var(--muted); }
.tile .l:last-child { font-size: 13px; }
.tile strong { font-size: 24px; overflow-wrap: anywhere; }
.tile.ok { background: #E8F3EC; border-color: #B7DCC3; } .tile.ok strong { color: #166534; } .tile.ok .l { color: #14532D; }
.tile.bad { background: #FDF0E8; border-color: #F1C9B3; } .tile.bad strong { color: var(--red); } .tile.bad .l { color: #7A2E0B; }
.tile.badnum strong { color: var(--red); }
.tile.warn strong { color: var(--amber); }
.tile.info strong { color: var(--blue); font-size: 22px; }
.card-h { margin: 0; font-size: 17px; font-weight: 600; }
details.grp { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
details.grp > summary { list-style: none; min-height: 48px; padding: 0 14px; background: #fff; color: var(--ink);
                        display: flex; align-items: center; justify-content: space-between; gap: 10px;
                        font-size: 15px; cursor: pointer; }
details.grp > summary::-webkit-details-marker { display: none; }
details.grp[open] > summary { background: var(--bg); }
.grp-label { font-weight: 600; }
.grp-right { display: flex; align-items: center; gap: 10px; }
.chip { font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.chip.ok { color: #166534; background: #E8F3EC; }
.chip.bad { color: var(--red); background: #FDF0E8; }
.grp-detail { font-size: 14px; color: #3A4452; padding: 4px 14px 14px; background: var(--bg); overflow-wrap: anywhere; }
.grp-detail p { margin: 0 0 4px; }
.up-problems > summary { font-weight: 600; cursor: pointer; }
.sev-h { margin: 6px 0 0; font-size: 14px; font-weight: 600; }
.sev-error { color: var(--red); } .sev-warning { color: var(--amber); } .sev-info { color: var(--muted); }
.problem-list { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px;
                overflow-wrap: anywhere; }
.problem-list .where { font-weight: 600; }
.expected { display: block; margin-top: 2px; font-size: 13px; color: #14532D; }
.dl-card { gap: 4px; }
.dl-card h2 { margin-bottom: 6px; }
.dl-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 4px; border-bottom: 1px solid var(--line2);
          text-decoration: none; color: var(--ink); }
.dl-ico { width: 34px; height: 34px; flex: none; border-radius: 8px; background: #E8F3EC; color: #166534;
          display: flex; align-items: center; justify-content: center; }
.dl-text { display: flex; flex-direction: column; min-width: 0; }
.dl-text strong { font-size: 15px; }
.dl-card > .sub { margin-top: 8px; }
/* Card 1 (owner review, option A): the full demo book, highlighted so it is not mistaken
   for a sample file. */
.book-card { background: var(--blue-soft); border: 2px solid var(--blue); }
.book-card .dl-row { border-bottom-color: #C9D8F5; }
.book-card .dl-ico { background: #fff; color: var(--blue); }
.book-card .sub { color: #3A4452; }
/* "Use your own file" popup (design): a modal <dialog> opened by site.js, with a dark
   backdrop. Closed, it is hidden; without JavaScript (scripting: none), or when the
   button's #own link was followed because site.js did not load (:target), the same element
   is shown in the page as a card, and its Close button (script only) is hidden. */
.own-dialog { width: calc(100% - 32px); max-width: 460px; padding: 0; border: 0; border-radius: 16px;
              background: #fff; color: var(--ink); box-shadow: 0 12px 40px rgba(24, 32, 43, 0.25); }
.own-dialog::backdrop { background: rgba(24, 32, 43, 0.45); }
.own-box { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.own-head { display: flex; align-items: flex-start; gap: 12px; }
.own-head h2 { margin: 0; flex: 1 1 auto; font-size: 20px; font-weight: 700; }
.own-dialog:not([open]) { position: static; margin: 0; width: auto; max-width: none;
                          border: 1px solid var(--line); border-radius: 12px; box-shadow: none; }
.own-dialog:not([open]) .own-box { padding: 18px 20px; gap: 12px; }
.own-dialog:not([open]) .own-head h2 { font-size: 17px; font-weight: 600; }
.own-dialog:not([open]) .close-btn { display: none; }
.own-dialog:target:not([open]) { display: block; border: 2px solid var(--blue); }
@media (scripting: none) { .own-dialog { display: block; } }
.own-text { margin: 0; font-size: 15px; color: #3A4452; line-height: 1.6; }
.safe { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: #E8F3EC; border-radius: 10px;
        font-size: 14px; color: #14532D; }
.shield { flex: none; margin-top: 2px; color: #166534; }
.cta-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.cta-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px;
           border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; }
.cta-btn.wa { background: #166534; color: #fff; }
.cta-btn.mail { background: #fff; color: var(--blue); border: 1px solid var(--blue); }

/* Weekly report (W.1d2, design "W1"). Bars are SVG rects with attributes (no inline style):
   the vertical bars on wide screens, the horizontal rows on a phone. */
.tone-good { color: #166534; }
.wk-banner { border-radius: 14px; padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center;
             gap: 12px 18px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.wk-banner.good { background: #E8F3EC; border-color: #B7DCC3; color: #14532D; }
.wk-banner.warn { background: #FFF7E6; border-color: #F3D9A4; color: #7A3F00; }
.wk-ico { width: 44px; height: 44px; flex: none; border-radius: 50%; display: flex; align-items: center;
          justify-content: center; background: var(--muted); color: #fff; }
.wk-banner.good .wk-ico { background: #166534; }
.wk-banner.warn .wk-ico { background: #B45309; }
.wk-head { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wk-head h2 { margin: 0; font-size: 22px; font-weight: 700; overflow-wrap: anywhere; }
.wk-range { font-size: 14px; }
.wk-hint { font-size: 13px; }
.wk-navs { display: flex; gap: 8px; }
.wk-nav { width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 10px; background: #fff;
          color: inherit; display: flex; align-items: center; justify-content: center; }
.wk-nav.off { color: #9AA3AF; border-color: #D5D9E0; }
.trend.good { color: #166534; font-weight: 600; }
.trend.bad { color: var(--red); font-weight: 600; }
.trend.flat { color: var(--muted); font-weight: 600; }
.wk-chart-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.wk-chart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; align-items: end;
            border-bottom: 1px solid var(--line); }
.wk-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.wk-val { font-size: 12px; font-weight: 600; color: #3A4452; white-space: nowrap; }
.wk-vbar { display: block; width: 100%; max-width: 56px; height: 150px; }
.wk-vbar rect, .wk-hbar rect { fill: #3B82F6; }
.wk-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; padding-top: 6px; }
.wk-day { font-size: 13px; color: var(--muted); text-align: center; }
.wk-rows { display: none; flex-direction: column; gap: 8px; }
.wk-r { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 14px; }
.wk-hbar { display: block; width: 100%; height: 14px; }
.wk-r .v { text-align: right; font-weight: 600; white-space: nowrap; }
.wk-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.wk-list { gap: 8px; }
.wk-list-h { display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.good { background: #166534; } .dot.bad { background: var(--red); } .dot.warn { background: #D97706; }
/* A line: the name has priority; the detail wraps to its own line before a name is cut
   (names are never cut on the server, like the risk lines). */
.wk-row { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 10px; row-gap: 2px;
          padding: 8px 0; border-bottom: 1px solid var(--line2); font-size: 15px; }
.wk-who { flex: 1 1 auto; min-width: 0; max-width: 100%; }
.wk-detail { flex: 0 1 auto; margin-left: auto; text-align: right; }
details.wk-more > summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px;
                            font-size: 14px; color: var(--blue); cursor: pointer; }
details.wk-more > summary::-webkit-details-marker { display: none; }
@media (max-width: 640px) { .wk-desktop { display: none; } .wk-rows { display: flex; } }

/* How it works (W.1d2, design "H2"): native <details>, the open one has a blue border. */
.faq-wrap { max-width: 820px; display: flex; flex-direction: column; gap: 10px; }
.faq-intro { margin: 0 0 4px; font-size: 17px; color: #3A4452; line-height: 1.6; }
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
details.faq[open] { border: 2px solid var(--blue); }
details.faq > summary { list-style: none; min-height: 60px; padding: 8px 20px; display: flex; align-items: center;
                        gap: 14px; color: var(--ink); cursor: pointer; }
details.faq > summary::-webkit-details-marker { display: none; }
.faq-ico { width: 34px; height: 34px; flex: none; border-radius: 50%; display: flex; align-items: center;
           justify-content: center; color: #1E3A8A; background: #E8EEFB; }
details.faq[open] .faq-ico { color: #fff; background: var(--blue); }
.faq-q { flex: 1 1 auto; min-width: 0; font-size: 17px; font-weight: 600; }
.faq-a { margin: 0; padding: 0 20px 20px 68px; font-size: 16px; line-height: 1.65; color: #3A4452; }
.badge { font-size: 12px; font-weight: 700; color: #1E3A8A; background: #E8EEFB; padding: 3px 10px; border-radius: 999px; }
.next-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.next-head h2 { font-weight: 700; }
.next-text { font-size: 15px; line-height: 1.6; }
.next-note { margin: 0; }
@media (max-width: 640px) { .faq-a { padding-left: 20px; } details.faq > summary { padding: 8px 14px; } }

@media (prefers-reduced-motion: reduce) { .chev { transition: none; } }
@media (max-width: 640px) {
  main { padding: 16px 16px 40px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 12px 12px; }
  .kpi .value { font-size: 20px; }
}
