/* Emeko Connect - the client portal, as Fable designed it (ECO new look v4, Fable 5.2, 21 Nov 2026).
   Phone first; the same page on a desktop. Warm paper, white surfaces, deep petrol, a little brass. Metals are a text
   tag plus a colour, never a picture. One place for every colour, size and font. No web font, no image, no outside
   address: only fonts that are already on the device. Motion is short and soft, never holds a figure or a notice
   back, and stops with "reduce motion". */

:root {
  --paper: #F5F3EE; --surface: #FFFFFF; --surface-2: #FAF9F6; --surface-3: #F0EDE6; --line: #E4DFD4; --line-strong: #CFC8BA;
  --hair: rgba(23, 33, 43, .08);
  --ink: #17212B; --ink-2: #3F4C58; --ink-3: #626D78; --ink-4: #97A0A9;
  --brand: #0F3D3E; --brand-hover: #0A2E2F; --brand-soft: #E4EEEC; --brand-line: #B7D0CC;
  --brass: #A47E3B; --brass-ink: #7A5A1E; --brass-soft: #F6EFDF;
  --au: #775600; --au-bg: #FBF1D5; --au-line: #EAD59A; --au-mark: #C29010;
  --ag: #1D6A90; --ag-bg: #E3F2F9; --ag-line: #B4DBED; --ag-mark: #3E9FC9;
  --pt: #2B4585; --pt-bg: #E5EAF6; --pt-line: #BECAE8; --pt-mark: #34529B;
  --pd: #7C3E15; --pd-bg: #F8EBE1; --pd-line: #E8CDB8; --pd-mark: #9C5221;
  --ok: #1B6541; --ok-bg: #E4F2EA; --ok-line: #B5DAC5;
  --wait: #7A4F00; --wait-bg: #FFF3D1; --wait-line: #EBD08A;
  --info: #28527A; --info-bg: #E7EFF7; --info-line: #BFD3E8;
  --bad: #A1241C; --bad-bg: #FBE9E7; --bad-line: #EDBDB8;
  --none: #626D78; --none-bg: #F0EDE6; --none-line: #DDD7CA;
  --font-ui: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Liberation Sans", system-ui, Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Liberation Serif", "Times New Roman", serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --fs-xs: 11.5px; --fs-sm: 12.5px; --fs-md: 13.5px; --fs-lg: 15px; --fs-xl: 18px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --r-sm: 4px; --r-md: 6px; --r-lg: 10px; --r-xl: 16px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(23, 33, 43, .06);
  --shadow-2: 0 4px 14px rgba(23, 33, 43, .08), 0 1px 2px rgba(23, 33, 43, .05);
  --shadow-3: 0 16px 40px rgba(23, 33, 43, .16), 0 2px 6px rgba(23, 33, 43, .08);
  --focus: 0 0 0 3px rgba(164, 126, 59, .45);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --t-press: 90ms; --t-fast: 140ms; --t-med: 200ms; --t-slow: 240ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-ui); font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; min-height: 100vh; padding-bottom: env(safe-area-inset-bottom); }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand); text-underline-offset: 2px; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
bdi { unicode-bidi: isolate; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); padding: 10px 14px; border-radius: var(--r-lg); box-shadow: var(--shadow-3); font-weight: 600; }
.skip:focus { left: 8px; }
h1, h2, .serif { font-family: var(--font-serif); font-weight: 600; letter-spacing: -.005em; }
h1 { font-size: 30px; line-height: 1.15; }
h2 { font-size: 22px; line-height: 1.2; }
h3 { font-size: 16px; font-weight: 600; }
.soft, .muted { color: var(--ink-3); }
.small { font-size: var(--fs-md); }
.lead { font-size: 17px; color: var(--ink-2); }
.push { margin-left: auto; }

/* ---------- icons, tags ---------- */
.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic.sm { width: 14px; height: 14px; }
.ic.lg { width: 22px; height: 22px; }
.metal { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 20px; padding: 0 6px; border-radius: var(--r-sm); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .02em; border: 1px solid var(--none-line); background: var(--none-bg); color: var(--none); flex: none; }
.metal.au { background: var(--au-bg); border-color: var(--au-line); color: var(--au); }
.metal.ag { background: var(--ag-bg); border-color: var(--ag-line); color: var(--ag); }
.metal.pt { background: var(--pt-bg); border-color: var(--pt-line); color: var(--pt); }
.metal.pd { background: var(--pd-bg); border-color: var(--pd-line); color: var(--pd); }
.metal.lg { min-width: 38px; height: 30px; font-size: var(--fs-md); border-radius: var(--r-md); }
.metal.xl { min-width: 48px; height: 40px; font-size: var(--fs-lg); border-radius: var(--r-md); }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid var(--none-line); background: var(--none-bg); color: var(--none); }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.tag.ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
.tag.wait { background: var(--wait-bg); border-color: var(--wait-line); color: var(--wait); }
.tag.info { background: var(--info-bg); border-color: var(--info-line); color: var(--info); }
.tag.bad { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad); }
.tag.live::before { animation: pulse 1.4s ease-in-out infinite; }
.mark { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; border: 1px solid var(--line-strong); background: var(--surface-3); color: var(--ink-2); }
.mark.off { color: var(--bad); border-color: var(--bad-line); background: var(--bad-bg); }

/* ---------- buttons: one filled petrol press per screen; the rest outline or quiet ---------- */
.btn, .cwrap button, .cwrap input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); height: 44px; padding: 0 18px; margin: 0;
  border-radius: var(--r-lg); border: 1px solid var(--brand); background: var(--brand); color: #fff; font-size: 15px; font-weight: 600;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), transform var(--t-press);
}
.btn:hover, .cwrap button:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn:active, .cwrap button:active { transform: scale(.975); }
.btn.plain, .cwrap button.quiet, .cwrap button[type="button"], .btn.sm.langbtn { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
.btn.plain:hover, .cwrap button.quiet:hover, .cwrap button[type="button"]:hover, .btn.sm.langbtn:hover { background: var(--surface-3); border-color: var(--line-strong); }
.btn.primary, .cwrap button.primary, .cwrap button.primary[type="button"] { border-color: var(--brand); background: var(--brand); color: #fff; }
.btn.primary:hover, .cwrap button.primary:hover, .cwrap button.primary[type="button"]:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn.quiet, .cwrap button.link { border-color: transparent; background: transparent; color: var(--brand); padding: 0 8px; }
.btn.quiet:hover, .cwrap button.link:hover { background: var(--brand-soft); border-color: transparent; }
.btn.danger, .cwrap button.danger { border-color: var(--bad-line); background: var(--surface); color: var(--bad); }
.btn.danger:hover, .cwrap button.danger:hover { background: var(--bad-bg); border-color: var(--bad-line); }
.btn.sm, .cwrap button.sm, .cwrap button.small { height: 34px; padding: 0 12px; font-size: var(--fs-md); border-radius: var(--r-md); }
.btn.lg, .cwrap button.lg { height: 54px; font-size: 17px; padding: 0 22px; }
.btn.block, .cwrap button.block { display: flex; width: 100%; }
.cwrap button[disabled], .cwrap button[aria-disabled="true"], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btnrow { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }
form.inline { display: inline; margin: 0; }

/* ---------- fields ---------- */
.cwrap label { display: block; font-weight: 600; font-size: var(--fs-md); color: var(--ink-2); margin: 0 0 6px; }
.cwrap input:not([type]), .cwrap input[type="text"], .cwrap input[type="password"], .cwrap input[type="email"], .cwrap input[type="search"],
.cwrap input[type="date"], .cwrap input[type="month"], .cwrap input[type="number"], .cwrap select, .cwrap textarea {
  display: block; width: 100%; height: 46px; padding: 0 12px; border-radius: var(--r-lg); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 16px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.cwrap input::placeholder { color: var(--ink-4); }
.cwrap input:hover, .cwrap select:hover { border-color: var(--ink-3); }
.cwrap input:focus, .cwrap select:focus, .cwrap textarea:focus { outline: none; border-color: var(--brass); box-shadow: var(--focus); }
.cwrap input[readonly] { background: var(--surface-2); color: var(--ink-2); }
.cwrap input:disabled, .cwrap select:disabled { background: var(--surface-2); color: var(--ink-3); }
.field { display: grid; gap: 0; }
.field + .field, .cwrap form > label:not(:first-of-type) { margin-top: var(--s4); }
.hint, .cwrap form p.soft { font-size: var(--fs-md); color: var(--ink-3); margin-top: 6px; }
.formgrid { display: grid; gap: var(--s4); }
.formgrid.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.formgrid > .field + .field { margin-top: 0; }
.formgrid > .field { align-content: start; }
.inputgroup { display: flex; }
.inputgroup > input { border-radius: var(--r-lg) 0 0 var(--r-lg) !important; text-align: right; }
.inputgroup > .addon { display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--line-strong); border-left: 0; border-radius: 0 var(--r-lg) var(--r-lg) 0; background: var(--surface-2); color: var(--ink-3); font-size: var(--fs-md); white-space: nowrap; }

/* ---------- header ---------- */
.chead { position: sticky; top: 0; z-index: 30; background: rgba(245, 243, 238, .93); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.chead .in { max-width: 1200px; margin: 0 auto; height: 66px; display: flex; align-items: center; gap: var(--s4); padding: 0 var(--s5); }
.brandlock { display: grid; line-height: 1.1; text-decoration: none; color: inherit; }
.wordmark { font-family: var(--font-serif); font-size: 21px; font-weight: 600; letter-spacing: .01em; color: var(--ink); white-space: nowrap; }
.brandlock small { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-top: 2px; }
.cnav { display: flex; gap: 2px; margin-left: var(--s4); }
.cnav a { padding: 9px 13px; border-radius: var(--r-lg); color: var(--ink-2); font-weight: 600; text-decoration: none; white-space: nowrap; transition: background var(--t-fast), color var(--t-fast), transform var(--t-press); }
.cnav a:hover { background: var(--surface-3); color: var(--ink); }
.cnav a:active { transform: scale(.97); }
.cnav a[aria-current="page"] { background: var(--brand); color: #fff; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.acctbtn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px 0 6px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--r-pill); font-weight: 600; max-width: 280px; color: var(--ink); transition: background var(--t-fast), box-shadow var(--t-fast); }
.acctbtn:hover { background: var(--surface-2); box-shadow: var(--shadow-1); }
.acctbtn .nm { display: grid; text-align: left; line-height: 1.15; min-width: 0; }
.acctbtn .nm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acctbtn .nm small { font-weight: 400; color: var(--ink-3); font-size: 11.5px; }
.acctbtn .ic { color: var(--ink-3); transition: transform var(--t-med) var(--ease-out); }
/* the two small menus (language, account) and "Meer": plain <details> */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.pop { position: absolute; z-index: 60; right: 0; top: calc(100% + 8px); min-width: 230px; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-xl); box-shadow: var(--shadow-3); }
.menu[open] > .pop { animation: pop-in var(--t-fast) var(--ease-out); transform-origin: 100% 0; }
.menu[open] > .acctbtn .ic { transform: rotate(180deg); }
.pop .item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; height: auto; padding: 8px 10px; border: 0; background: transparent; border-radius: var(--r-lg); text-align: left; color: var(--ink); font: inherit; font-weight: 500; text-decoration: none; justify-content: flex-start; cursor: pointer; transition: background var(--t-fast); }
.pop .item:hover { background: var(--surface-3); border: 0; }
.pop .item .ic { color: var(--ink-3); }
.pop .sep { height: 1px; background: var(--line); margin: 6px 0; }
.pop form { margin: 0; display: block; }
.pop.langs .lang .ic { visibility: hidden; color: var(--brand); }
.pop.langs .lang.on { color: var(--brand); font-weight: 600; }
.pop.langs .lang.on .ic { visibility: visible; }
.deskmsg { background: var(--brass-soft); border-bottom: 1px solid #E5D3A8; color: var(--brass-ink); }
.deskmsg .in { max-width: 1200px; margin: 0 auto; padding: 10px var(--s5); display: flex; gap: 10px; align-items: flex-start; }
.deskmsg h2 { font-family: var(--font-ui); font-size: 15px; font-weight: 700; letter-spacing: 0; }
.deskmsg.none { background: transparent; border-bottom: 0; color: var(--ink-3); font-size: var(--fs-md); }
.deskmsg.none .in { padding-top: 12px; padding-bottom: 0; }

/* ---------- page ---------- */
.cwrap { max-width: 1200px; margin: 0 auto; padding: var(--s5) var(--s5) 96px; display: grid; gap: var(--s5); align-content: start; }
.cwrap > .notice[hidden] + * { margin-top: 0; }
.pagetitle { display: flex; align-items: baseline; gap: 4px var(--s3); flex-wrap: wrap; }
.cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s5); align-items: start; }
.stack { display: grid; gap: var(--s5); align-content: start; min-width: 0; }
.panel, .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-1); min-width: 0; }
.panel > header { display: flex; align-items: center; gap: var(--s3); padding: 16px 20px 0; flex-wrap: wrap; }
.panel > header h2, .panel > header h3 { font-family: var(--font-serif); font-size: 19px; font-weight: 600; letter-spacing: -.005em; }
.panel > .body { padding: 12px 20px 18px; }
.panel > .body.flush { padding: 8px 0 6px; }
.card { padding: 18px 20px; }
.card > h2, .card > h3 { font-family: var(--font-serif); font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.card > * + * { margin-top: 10px; }
.card > p.soft { margin-top: 4px; }
.empty { padding: var(--s5) var(--s4); text-align: center; color: var(--ink-3); }
.empty b { display: block; color: var(--ink-2); margin-bottom: 2px; }

/* what the portal says back: a notice is there at once (never faded in); one soft ring helps the eye find it */
.notice { padding: 12px 16px; border-radius: var(--r-lg); border: 1px solid var(--none-line); background: var(--none-bg); color: var(--ink-2); font-weight: 600; }
.notice.ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
.notice.wait { background: var(--wait-bg); border-color: var(--wait-line); color: var(--wait); }
.notice.stop { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad); }
.notice .reason { display: block; font-weight: 500; margin-top: 4px; }
.notice:not([hidden]) { animation: ring-in .7s ease-out; }
p.reason { color: var(--ink-2); }
.infobox { display: flex; gap: var(--s3); align-items: flex-start; padding: 12px 14px; border-radius: var(--r-lg); border: 1px solid var(--info-line); background: var(--info-bg); color: var(--info); }
.infobox .ic { margin-top: 1px; }

/* tabs under a page title (the account pages' own sub-navigation) */
.wf-nav { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.wf-nav::-webkit-scrollbar { display: none; }
.wf-nav a { padding: 10px 14px 11px; font-weight: 600; color: var(--ink-3); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color var(--t-fast), border-color var(--t-fast); }
.wf-nav a:hover { color: var(--ink); border-bottom-color: var(--line-strong); }
.wf-nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--ink-2); font-size: var(--fs-xs); font-weight: 700; margin-left: 6px; }

/* lists that turn into cards on a phone */
.rows { display: grid; }
.row { display: grid; grid-template-columns: var(--cols, minmax(0, 1fr) auto); gap: 4px 16px; align-items: center; padding: 13px 20px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.row:first-child { border-top: 0; }
.row.head { font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; padding-top: 6px; padding-bottom: 8px; }
.row .sub { display: block; font-size: var(--fs-md); color: var(--ink-3); }
.row .r { text-align: right; white-space: nowrap; }
/* an order or a deal in a list: the reviewed card and its facts, drawn as one row (the facts read as one quiet line) */
.rows > .card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 16px; align-items: center; padding: 13px 20px; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; }
.rows > .card:first-child { border-top: 0; }
.rows > .card:has(> .when) { grid-template-columns: 132px minmax(0, 1fr) auto auto; }
.rows > .card > * + * { margin-top: 0; }
.rows > .card .main { min-width: 0; }
.rows > .card dl.facts { display: block; font-size: var(--fs-md); color: var(--ink-3); margin-top: 2px; }
.rows > .card dl.facts > dt, .rows > .card dl.facts > dd { display: inline; padding: 0; border: 0; font-weight: 400; text-align: left; }
.rows > .card dl.facts > dd { color: var(--ink-2); }
.rows > .card dl.facts > dd:not(:last-of-type)::after { content: "  ·  "; color: var(--ink-4); white-space: pre; }
.rows > .card dl.facts > dt::after { content: "\00a0"; }
.rows > .card > h2 { font-family: var(--font-ui); font-size: 15px; font-weight: 600; letter-spacing: 0; margin: 0; grid-column: 1 / -1; }
.rows > .card > dl.facts { grid-column: 1 / -1; }
.rows > .card > a { grid-column: 1 / -1; font-weight: 600; text-decoration: none; font-size: var(--fs-md); width: fit-content; }
.rows > .card > a:hover { text-decoration: underline; }
.rows > .card .r { text-align: right; white-space: nowrap; }
.rows > .card .sub { display: block; font-size: var(--fs-md); color: var(--ink-3); }
.rows > .card .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.rows > .card .acts:empty { display: none; }
.rows > .card .acts form { margin: 0; }
.rows > .pending { padding: 13px 20px; border-top: 1px solid var(--line); color: var(--wait); font-weight: 600; }
.row.c3 { --cols: minmax(0, 1fr) auto auto; } .row.c4 { --cols: 132px minmax(0, 1fr) auto auto; }
.row.tap { cursor: pointer; transition: background var(--t-fast); }
.row.tap:hover { background: var(--surface-2); }
.row.tap > .ic:last-child { color: var(--ink-4); transition: transform var(--t-fast) var(--ease-out), color var(--t-fast); }
.row.tap:hover > .ic:last-child { transform: translateX(3px); color: var(--brand); }
.row .lead-ic { display: flex; gap: 12px; align-items: center; min-width: 0; }
.row .lead-ic > .ic { color: var(--ink-3); }
.row .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.row .acts form { margin: 0; }
.doclink { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; text-decoration: none; white-space: nowrap; }
.doclink:hover { text-decoration: underline; }
.sumline { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.sumline:last-child { border-bottom: 0; }
.sumline > span, .sumline > dt { color: var(--ink-3); }
.sumline > b, .sumline > dd { font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
dl.facts { display: grid; grid-template-columns: minmax(120px, 40%) minmax(0, 1fr); gap: 0; margin: 0; }
dl.facts > dt { color: var(--ink-3); padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); }
dl.facts > dd { font-weight: 600; padding: 9px 0; border-bottom: 1px solid var(--line); text-align: right; min-width: 0; overflow-wrap: anywhere; }
dl.facts > dt:last-of-type, dl.facts > dd:last-of-type { border-bottom: 0; }
.statement { font-family: var(--font-serif); font-size: 26px; line-height: 1.25; font-weight: 600; }
.statement small { display: block; font-family: var(--font-ui); font-size: 14px; font-weight: 400; color: var(--ink-3); margin-top: 6px; letter-spacing: 0; }

/* ---------- Overzicht: what the account is worth ---------- */
.overview { position: relative; display: grid; gap: var(--s5); }
.overview > .hi { position: absolute; z-index: 2; top: 28px; left: 34px; right: 190px; color: rgba(244, 239, 226, .74); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.overview > .wf-refresh { position: absolute; z-index: 2; top: 20px; right: 24px; display: flex; flex-direction: row-reverse; align-items: center; gap: 10px; }
.overview > .wf-refresh button { height: 32px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid rgba(244, 239, 226, .28); background: rgba(255, 255, 255, .08); color: #F4EFE2; font-size: var(--fs-md); }
.overview > .wf-refresh button:hover { background: rgba(255, 255, 255, .16); border-color: rgba(244, 239, 226, .4); }
.overview > .wf-refresh #wf-status { color: rgba(244, 239, 226, .7); font-size: var(--fs-sm); }
/* without the hero (the figures could not be read) the greeting and the refresh are ordinary lines */
.overview:not(:has(.hero)) > .hi { position: static; color: var(--ink); font-family: var(--font-serif); font-size: 26px; font-weight: 600; white-space: normal; }
.overview:not(:has(.hero)) > .wf-refresh { position: static; flex-direction: row; }
.overview:not(:has(.hero)) > .wf-refresh button { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
.overview:not(:has(.hero)) > .wf-refresh #wf-status { color: var(--ink-3); }
#wf-content, #market-content { display: grid; gap: var(--s5); min-width: 0; }
#wf-content:empty, #market-content:empty { display: none; }
.hero { position: relative; overflow: hidden; display: grid; gap: 0; padding: 62px 34px 26px; border-radius: 22px; background: var(--brand); color: #F4EFE2; box-shadow: 0 18px 40px rgba(15, 61, 62, .22); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; /* fine engraved lines, like an assay certificate */
  background: repeating-radial-gradient(circle at 88% -30%, rgba(255, 255, 255, .05) 0 1px, transparent 1px 10px), repeating-radial-gradient(circle at -8% 130%, rgba(201, 164, 92, .07) 0 1px, transparent 1px 12px), radial-gradient(520px 320px at 92% 12%, rgba(201, 164, 92, .16), transparent 70%); }
.hero > * { position: relative; }
.hero .lbl { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #D9BE7C; font-weight: 600; }
.hero .worth { font-family: var(--font-serif); font-size: 54px; font-weight: 600; line-height: 1.05; letter-spacing: -.01em; margin-top: 4px; white-space: nowrap; }
.hero .worth .ac-unit { font-family: var(--font-ui); font-size: 16px; font-weight: 600; color: inherit; opacity: .7; letter-spacing: .04em; }
.hero .ac-account { color: rgba(244, 239, 226, .66); font-size: 13px; margin-top: 6px; }
.hero .facts { display: flex; gap: 14px 28px; margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(244, 239, 226, .16); flex-wrap: wrap; }
.hero .facts > div { display: grid; gap: 2px; align-content: start; }
.hero .facts span.k { font-size: 12px; color: rgba(244, 239, 226, .66); }
.hero .facts b { font-size: 16px; font-weight: 600; white-space: nowrap; }
.hero .facts .ac-unit { color: inherit; font-size: 1em; font-weight: 600; }
.hero .ac-state { display: grid; gap: 2px; font-size: 12px; color: rgba(244, 239, 226, .66); }
.hero .ac-state strong { display: inline-flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 600; color: #F4EFE2; }
.hero .ac-state strong::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #F1C36B; flex: none; }
.hero .ac-state-ok strong::before { background: #8FD3AE; }
.sectitle { display: flex; align-items: baseline; gap: 4px var(--s3); flex-wrap: wrap; margin-bottom: -12px; }
.sectitle h3 { font-family: var(--font-serif); font-size: 22px; font-weight: 600; letter-spacing: -.005em; }
.sectitle span { color: var(--ink-3); }
.metals { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s4); }
.hold { position: relative; overflow: hidden; display: grid; gap: 12px; align-content: start; padding: 22px 20px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-1); transition: box-shadow var(--t-med), transform var(--t-med) var(--ease-out); }
.hold:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.hold::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--mk, var(--line-strong)); }
.hold.au { --mk: var(--au-mark); } .hold.ag { --mk: var(--ag-mark); } .hold.pt { --mk: var(--pt-mark); } .hold.pd { --mk: var(--pd-mark); }
.hold .top { display: flex; align-items: center; gap: 10px; }
.hold .top .nm { font-weight: 600; font-size: 16px; }
.hold .qty { font-family: var(--font-serif); font-size: 32px; font-weight: 600; line-height: 1.05; white-space: nowrap; }
.hold .qty .ac-unit { font-family: var(--font-ui); font-size: 15px; font-weight: 600; color: var(--ink-3); margin-left: 2px; }
.hold .val { color: var(--ink-2); margin-top: 4px; }
.hold .val .ac-unit { color: inherit; font-size: 1em; font-weight: 400; }
.hold .more { display: grid; gap: 4px; font-size: 13px; color: var(--ink-3); padding-top: 10px; border-top: 1px solid var(--line); }
.hold .more div { display: flex; justify-content: space-between; gap: 10px; }
.hold .more b { color: var(--ink); font-weight: 600; }
.hold .more .ac-unit { color: inherit; font-size: 1em; }
.alltable > summary { cursor: pointer; font-weight: 600; color: var(--brand); padding: 4px 0; width: fit-content; }
/* where to next from the overview: plain links, each with a line that says what is there */
.wf-nav:has(> .go) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); border-bottom: 0; overflow: visible; }
.wf-nav > .go { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-1); color: var(--ink); white-space: normal; transition: box-shadow var(--t-med), transform var(--t-med) var(--ease-out), border-color var(--t-fast); }
.wf-nav > .go:hover { border-color: var(--line-strong); border-bottom-color: var(--line-strong); box-shadow: var(--shadow-2); transform: translateY(-2px); color: var(--ink); }
.wf-nav > .go > .ic:first-child { color: var(--ink-3); width: 22px; height: 22px; }
.wf-nav > .go > .ic:last-child { color: var(--ink-4); transition: transform var(--t-fast) var(--ease-out), color var(--t-fast); }
.wf-nav > .go:hover > .ic:last-child { transform: translateX(3px); color: var(--brand); }
.wf-nav > .go span { display: grid; min-width: 0; }
.wf-nav > .go small { font-weight: 400; color: var(--ink-3); font-size: var(--fs-md); }
.wf-nav > .go.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.wf-nav > .go.primary small, .wf-nav > .go.primary > .ic { color: rgba(255, 255, 255, .78); }
.wf-nav > .go.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }

/* ---------- Handelen: the live prices ---------- */
/* F-5 LOOK (25 Nov 2026): one row above the prices (the unit switch, the refresh), the moment of the prices with a
   small live mark, then a card per metal: who it is, then two wide buttons that say in words what they do. Sell is
   drawn in brass, Buy in petrol; never red and green (a price is not good or bad). */
.titlebar { display: flex; align-items: center; gap: 8px var(--s3); flex-wrap: wrap; }
.titlebar .pagetitle { margin-right: auto; }
.stack.tight { gap: var(--s3); }
.boardbar { display: flex; align-items: center; gap: 8px var(--s2); flex-wrap: wrap; }
.boardbar .market-refresh { margin-left: auto; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-3); border-radius: var(--r-lg); }
.seg label { display: inline-flex; align-items: center; height: 32px; padding: 0 13px; margin: 0; border-radius: var(--r-md); color: var(--ink-2); font-weight: 600; font-size: var(--fs-md); cursor: pointer; transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg input:checked + label { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.seg input:focus-visible + label { box-shadow: var(--focus); }
.market-refresh { display: flex; align-items: center; gap: 10px; min-height: 34px; }
.market-refresh #market-status { color: var(--ink-3); font-size: var(--fs-md); }
.cwrap .market-refresh button { gap: 6px; flex: none; }
.sheet .market-refresh { justify-content: space-between; min-height: 0; margin: -4px 0 -8px; }
.sheet .market-refresh button { margin-left: auto; }
/* F-5 LOOK: when the prices (or an outcome) cannot be read, the page's script empties the list and says why. That
   sentence then stands as a note of its own, with the refresh press in it, instead of a small grey line. */
.boardbar:has(+ #market-content:empty) .market-refresh:has(#market-status:not(:empty)) { flex: 1 0 100%; margin-left: 0; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); }
.boardbar:has(+ #market-content:empty) #market-status:not(:empty) { color: var(--ink-2); font-size: 15px; font-weight: 600; }
.sheet .market-refresh:has(+ #market-content:empty):has(#market-status:not(:empty)) { margin: 0; padding: 12px 14px; border: 1px solid var(--wait-line); border-radius: var(--r-lg); background: var(--wait-bg); }
.sheet .market-refresh:has(+ #market-content:empty) #market-status:not(:empty) { color: var(--wait); font-size: 14.5px; font-weight: 600; }
.tradepage #market-content { gap: var(--s3); }
.liveline { display: flex; align-items: center; gap: 8px; padding: 0 4px; color: var(--ink-3); font-size: var(--fs-md); }
.liveline b { color: var(--ok); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.livedot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); flex: none; animation: pulse 1.4s ease-in-out infinite; }
.liveline.off .livedot { background: var(--ink-4); box-shadow: 0 0 0 3px var(--surface-3); animation: none; }
.board { display: grid; gap: var(--s3); }
.pair { display: grid; grid-template-columns: minmax(216px, 6fr) minmax(0, 8fr); gap: var(--s4) var(--s5); align-items: center; padding: 18px 20px 18px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-1); position: relative; overflow: hidden; }
.pair::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--mk, var(--line-strong)); }
.pair.au { --mk: var(--au-mark); } .pair.ag { --mk: var(--ag-mark); } .pair.pt { --mk: var(--pt-mark); } .pair.pd { --mk: var(--pd-mark); }
.pair .who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pair .who > div { display: grid; gap: 1px; min-width: 0; }
.pair .who b { font-size: 18px; line-height: 1.25; }
.pair .who .cur { color: var(--ink-3); font-weight: 500; }
.pair .who .sub { display: block; font-size: var(--fs-md); color: var(--ink-3); }
.limitlink { display: inline-flex; align-items: center; gap: 3px; width: fit-content; margin-top: 6px; font-size: var(--fs-md); font-weight: 600; color: var(--brand); text-decoration: none; border-radius: var(--r-sm); }
.limitlink:hover { text-decoration: underline; }
.limitlink .ic { transition: transform var(--t-fast) var(--ease-out); }
.limitlink:hover .ic { transform: translateX(2px); }
.pair .side { display: grid; gap: 10px; min-width: 0; }
.pair .quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pair .quotes form { margin: 0; display: contents; }
.pair .q.ounce { display: none; }
.tradepage:has(#unit-ounce:checked) .pair .q.gram { display: none; }
.tradepage:has(#unit-ounce:checked) .pair .q.ounce { display: grid; }
.cwrap button.qbtn, .qprice { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; justify-items: start; align-content: start; text-align: left; min-width: 0; height: auto; padding: 12px 14px 10px; border-radius: var(--r-lg); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); white-space: normal; font-weight: 400; }
.cwrap button.qbtn { width: 100%; box-shadow: var(--shadow-1); transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast), transform var(--t-press); }
.cwrap button.qbtn:hover { border-color: var(--brand); background: var(--brand-soft); box-shadow: var(--shadow-2); }
.cwrap button.qbtn.sell:hover { border-color: var(--brass); background: var(--brass-soft); }
.cwrap button.qbtn:active { transform: scale(.985); }
.qbtn i, .qprice i { font-style: normal; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.qbtn b, .qprice b { font-family: var(--font-serif); font-size: 27px; font-weight: 600; line-height: 1.15; margin-top: 2px; overflow-wrap: anywhere; min-width: 0; }
.qbtn small, .qprice small { font-size: 11.5px; color: var(--ink-3); }
.qbtn .go { justify-self: stretch; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--brand); }
.qbtn.sell .go { color: var(--brass-ink); }
.qbtn .go .ic { transition: transform var(--t-fast) var(--ease-out); }
.cwrap button.qbtn:hover .go { border-top-color: var(--brand-line); }
.cwrap button.qbtn.sell:hover .go { border-top-color: #E5D3A8; }
.cwrap button.qbtn:hover .go .ic { transform: translateX(3px); }
.qprice { border-style: dashed; background: var(--surface-2); }
.qprice b { color: var(--ink-2); font-size: 22px; }
.qprice b.none { font-family: var(--font-ui); font-size: 15px; line-height: 1.75; font-weight: 600; color: var(--ink-3); overflow-wrap: normal; }
.pair .reason { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--r-lg); background: var(--surface-2); color: var(--ink-2); font-size: 14px; }
.pair .reason .ic { color: var(--ink-3); }
.fineprint { color: var(--ink-3); font-size: var(--fs-md); padding: 4px 4px 0; }
.points { display: grid; gap: 10px; color: var(--ink-2); }
.points li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; }
.points li .ic { color: var(--brand); margin-top: 2px; }
.panel.callout { background: var(--brass-soft); border-color: #E5D3A8; }
.panel.callout > header { flex-wrap: nowrap; }
.panel.callout > header .ic { color: var(--brass-ink); }
.panel.callout p { color: var(--ink-2); }
.panel.callout .btn .ic { color: var(--ink-3); }

/* ---------- the ticket and its outcome: one sheet ---------- */
.sheet { width: min(520px, 100%); margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-3); display: grid; overflow: hidden; }
.sheet > header { display: flex; align-items: center; gap: 12px; padding: 18px 22px 14px; border-bottom: 1px solid var(--line); }
.sheet > header h2 { font-size: 22px; flex: 1; min-width: 0; }
.sheet > header .x { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-md); color: var(--ink-3); text-decoration: none; transition: background var(--t-fast), color var(--t-fast); }
.sheet > header .x:hover { background: var(--surface-3); color: var(--ink); }
.sheet > .body, .sheet > form > .body { padding: 20px 22px; display: grid; gap: 18px; align-content: start; }
.sheet > footer, .sheet > form > footer { padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface-2); display: grid; gap: 10px; }
.sheet form { margin: 0; }
.bigqty { display: flex; align-items: baseline; gap: 8px; border-bottom: 2px solid var(--line-strong); padding-bottom: 6px; transition: border-color var(--t-fast); }
.bigqty:focus-within { border-color: var(--brass); }
.cwrap .bigqty input { flex: 1; min-width: 0; height: auto; border: 0; outline: 0; box-shadow: none; background: transparent; font-family: var(--font-serif); font-size: 44px; font-weight: 600; text-align: right; padding: 0; color: var(--ink); border-radius: 0; }
.cwrap .bigqty input:focus { box-shadow: none; }
.bigqty span { font-size: 18px; color: var(--ink-3); font-weight: 600; }
.checkline { font-size: 14.5px; line-height: 1.45; color: var(--ink-3); min-height: 52px; padding: 14px 16px; border-radius: var(--r-lg); border: 1px dashed var(--line-strong); background: var(--surface-2); }
.checkline.buy, .checkline.sell { font-family: var(--font-serif); font-size: 19px; line-height: 1.3; font-weight: 600; color: var(--ink); border-style: solid; border-color: var(--brand-line); background: var(--brand-soft); }
.checkline.sell { border-color: #E5D3A8; background: var(--brass-soft); }
.checkline.bad { font-family: var(--font-ui); font-size: 15px; color: var(--bad); }
.checkline .checkamount { display: block; font-family: var(--font-ui); font-size: var(--fs-md); font-weight: 400; color: var(--ink-2); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--brand-line); }
.checkline.sell .checkamount { border-top-color: #E5D3A8; }
.checkline .checkamount b { display: block; font-family: var(--font-serif); font-size: 24px; line-height: 1.2; color: var(--ink); font-weight: 600; margin-top: 2px; }
/* F-5 LOOK: the price the ticket holds, on top; the side of the trade as a thin line of its colour */
.pricebar { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface-2); }
.pricebar > span { color: var(--ink-3); font-weight: 600; font-size: var(--fs-md); }
.pricebar b { font-family: var(--font-serif); font-size: 24px; font-weight: 600; line-height: 1.15; white-space: nowrap; }
.pricebar b small { font-family: var(--font-ui); font-size: var(--fs-md); font-weight: 500; color: var(--ink-3); }
.sheet.ticket.buy > header { box-shadow: inset 0 3px 0 var(--brand); }
.sheet.ticket.sell > header { box-shadow: inset 0 3px 0 var(--brass); }
.sheet .hint { font-size: var(--fs-sm); }
/* F-5 LOOK: the ticket's two groups (what is typed / what is sent) and the outcome's two (what happens / what was
   booked). One under the other on a phone; side by side on a laptop, so the price, the quantity, the sentence of what
   is sent and the confirm press are seen together on a 768 px high screen. The note about the kept price stands under
   the presses. */
.tk-in, .tk-out, .st-main { display: grid; gap: 18px; align-content: start; min-width: 0; }
.sheet footer > .fineprint { padding: 0 2px; font-size: var(--fs-sm); }
@media (max-width: 899px) { .tk-in, .tk-out { display: contents; } }
@media (min-width: 900px) {
  .sheet.ticket, .sheet.outcome:has(.stateview) { width: min(880px, 100%); }
  .sheet.ticket > form > .body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 0; align-items: start; }
  .sheet.ticket .tk-in { padding-right: 26px; }
  .sheet.ticket .tk-out { padding-left: 26px; border-left: 1px solid var(--line); align-self: stretch; }
  .sheet.outcome .stateview { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 18px 0; align-items: start; }
  .sheet.outcome .stateview > .st-main { padding-right: 26px; }
  .sheet.outcome .stateview > dl.facts { padding-left: 26px; border-left: 1px solid var(--line); align-self: stretch; align-content: start; }
  .sheet.outcome .stateview > dl.facts > dt:first-of-type, .sheet.outcome .stateview > dl.facts > dd:first-of-type { padding-top: 0; }
}
@media (min-width: 720px) {
  /* the presses of a sheet as one row: the way back at the left, the press that sends at the right. The outcome has
     three presses: they stand in a row only on its wide sheet (below) */
  .sheet:not(.outcome) > footer, .sheet:not(.outcome) > form > footer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
  .cwrap .sheet:not(.outcome) footer > .btn, .cwrap .sheet:not(.outcome) footer > button { order: 2; width: auto; flex: 0 0 auto; min-width: 190px; }
  .cwrap .sheet:not(.outcome) footer > .btn.plain { order: 1; margin-right: auto; }
  .cwrap .sheet footer > .fineprint { order: 9; flex: 0 0 100%; }
}
@media (min-width: 900px) {
  .sheet.outcome > footer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
  .cwrap .sheet.outcome footer > .btn { order: 1; width: auto; flex: 0 0 auto; min-width: 190px; }
  .cwrap .sheet.outcome footer > .btn.quiet { order: 0; margin-right: auto; min-width: 0; }
  .cwrap .sheet.outcome footer > .only-ended { order: 3; }
  .cwrap .sheet.ticket footer > button.confirm { flex: 0 0 calc(50% - 26px); }
}
/* C-11: the reading bubble under a number field: how the portal reads what was typed ("= 744,5 g"). Small, in the flow
   (it never lies over the field or the next one), with a little point towards its field; empty = not shown. */
.numread { display: inline-block; position: relative; margin-top: 6px; padding: 3px 9px; border-radius: var(--r-sm);
  font-size: var(--fs-sm); line-height: 1.35; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2);
  max-width: 100%; overflow-wrap: anywhere; justify-self: start; }
.numread::before { content: ""; position: absolute; left: 12px; top: -5px; width: 8px; height: 8px; background: inherit;
  border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.numread:empty { display: none; }
.numread.ok b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.numread.bad { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad); }
.numread.bad::before { border-color: var(--bad-line); }
input[aria-invalid="true"] { border-color: var(--bad); }
.cwrap button.confirm { display: flex; width: 100%; height: 54px; font-size: 17px; gap: 8px; }
.cwrap button.confirm b { font-weight: 700; }
.okmark { width: 58px; height: 58px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; }
.okmark .ic { width: 30px; height: 30px; stroke-width: 2.2; }
.okmark.neutral, .okmark.bad { background: var(--surface-3); color: var(--ink-2); }
.okmark.wait { background: var(--wait-bg); color: var(--wait); }
.track { display: grid; gap: 0; }
.track li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding-bottom: 14px; position: relative; color: var(--ink-3); }
.track li::before { content: ""; width: 12px; height: 12px; margin: 4px 5px 0; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); z-index: 1; }
.track li::after { content: ""; position: absolute; left: 10px; top: 16px; bottom: -4px; width: 2px; background: var(--line); }
.track li:last-child { padding-bottom: 0; }
.track li:last-child::after { display: none; }
.track li.done { color: var(--ink-2); }
.track li.done::before { background: var(--ok); border-color: var(--ok); }
.track li.now { color: var(--ink); font-weight: 600; }
.track li.now::before { border-color: var(--wait); background: var(--wait-bg); animation: pulse 1.4s ease-in-out infinite; }
.track li.fail { color: var(--ink-2); font-weight: 600; }
.track li.fail::before { background: var(--ink-3); border-color: var(--ink-3); }
.waitbar { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.waitbar i { display: block; height: 100%; width: 38%; border-radius: 3px; background: var(--brass); animation: slide-bar 1.6s ease-in-out infinite; }
.stateview { display: grid; gap: 18px; }
.statehead { display: flex; align-items: center; gap: 14px; }
.statehead .okmark { flex: none; }
.statehead .statement { font-size: 24px; min-width: 0; overflow-wrap: anywhere; }
.withtag { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
/* an outcome that is not confirmed and not known yet: the warning stands once, inside the sheet above "Check status",
   not a second time above it */
.tradepage > .notice.wait:has(+ .sheet.outcome #market-content > .notice.wait) { display: none; }
.sheet footer .only-ended { display: none; }
.sheet:has(.stateview.is-done) footer .only-ended, .sheet:has(.stateview.is-ended) footer .only-ended { display: flex; }
.stateview dl.facts > .total { border-top: 2px solid var(--line-strong); border-bottom: 0; padding-top: 12px; }
.stateview dl.facts > dt.total { color: var(--ink-2); font-weight: 600; padding-top: 18px; }
.stateview dl.facts > dd.total { font-family: var(--font-serif); font-size: 24px; line-height: 1.2; }
.stateview dl.facts > dt:has(+ dd + .total), .stateview dl.facts > dd:has(+ .total) { border-bottom: 0; }

/* ---------- limit orders, history, payouts ---------- */
.finder.card > form { margin-top: 0; }
.finder > summary { cursor: pointer; color: var(--brand); font-weight: 600; width: fit-content; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.finder > summary::-webkit-details-marker { display: none; }
.finder[open] > summary { margin-bottom: 12px; }
.finder form, form.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; margin: 0; }
.finder form label, form.filters label, .wf-period label { display: grid; gap: 6px; margin: 0; }
.finder form .btnrow, form.filters .btnrow { grid-column: 1 / -1; }
.wf-period { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 0; }
.wf-period fieldset, form.filters fieldset { display: contents; border: 0; padding: 0; margin: 0; }
.wf-period legend, form.filters legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.wf-period label { flex: 0 1 190px; }
.wf-period > a, .finder form a, form.filters a { align-self: center; font-weight: 600; text-decoration: none; }
.wf-period > a:hover, .finder form a:hover, form.filters a:hover { text-decoration: underline; }
.dealer-report { display: grid; gap: var(--s5); }
.dealer-report > section h2 { font-size: 20px; }
.dealer-slip > .card, .dealer-slip > section > .card { width: min(560px, 100%); }
.dealer-slip > .card > h2 { font-size: 22px; }
.dealer-report > section { display: grid; gap: var(--s3); }
.dealer-slip #dealer-print { justify-self: start; }

/* ---------- F-5 LOOK (25 Nov 2026): an order or a deal as one record, on every trading page ----------
   The metal's tag, in bold what was asked, a coloured state (or the amount of a deal) at the right; under it the
   figures as small labelled cells that line up from row to row. On a phone the cells stand two by two. The row is the
   reviewed card (article.card): its heading, its facts and its presses are unchanged. */
.tradepage .rows > .card, .dealer-report .rows > .card { grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; align-items: start; padding: 16px 20px; }
.tradepage .rows > .card > .main, .dealer-report .rows > .card > .main { display: contents; }
.rows > .card .what { grid-column: 1; grid-row: 1; display: flex; align-items: center; gap: 12px; min-width: 0; }
.rows > .card .what > span:not(.metal) { display: grid; gap: 1px; min-width: 0; }
.rows > .card .what b { font-size: 16px; font-weight: 600; line-height: 1.3; overflow-wrap: break-word; }
.rows > .card .what small { font-size: var(--fs-sm); color: var(--ink-3); }
.tradepage .rows > .card > .r, .dealer-report .rows > .card > .r { grid-column: 2; grid-row: 1; align-self: center; }
.rows > .card .r.total b { font-family: var(--font-serif); font-size: 20px; font-weight: 600; line-height: 1.2; }
.tradepage .rows > .card dl.facts, .dealer-report .rows > .card dl.facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px 20px; margin: 0; padding-left: 50px; font-size: 14.5px; color: var(--ink); }
.dealer-report .rows > .card dl.facts { grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); }
.rows > .card dl.facts > div { display: grid; grid-template-rows: 1fr auto; gap: 1px; min-width: 0; }
.rows > .card dl.facts > div > dt { align-self: end; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.rows > .card dl.facts > div > dd { font-weight: 600; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.rows > .card dl.facts > div > dd a { font-weight: 600; }
.rows > .card dl.facts > div > dd .doclink { vertical-align: top; height: 1.45em; }
.tradepage .rows > .card > .acts, .dealer-report .rows > .card > a.more { grid-column: 1 / -1; padding-left: 50px; }
.tradepage .rows > .card > .acts { justify-content: flex-start; }
.rows > .card > a.more { display: inline-flex; align-items: center; gap: 3px; color: var(--brand); }
.rows > .card > a.more .ic { transition: transform var(--t-fast) var(--ease-out); }
.rows > .card > a.more:hover .ic { transform: translateX(2px); }
.tradepage .panel > .body.flush, .dealer-report .panel > .body.flush { padding: 0; }
.tradepage .panel > .body + .body.flush { border-top: 1px solid var(--line); }
/* a list's own title with how many it holds, and the line above the lists (the total, the refresh) */
.rechead { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; }
.rechead .count, .panel > header .count, .finder > summary .count { margin-left: 0; }
.listbar { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.listbar strong { color: var(--ink); }
.quietnote { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); }
.quietnote .ic { color: var(--ink-3); margin-top: 2px; }
.olderrow { display: flex; justify-content: center; }
/* the search form of a register: one slim bar until it is opened */
.dealer-report .finder.card { padding: 12px 16px; }
.dealer-report .finder.card > summary { display: flex; width: 100%; align-items: center; gap: 8px; }
.dealer-report .finder.card > summary::after { content: ""; width: 8px; height: 8px; margin-left: auto; margin-right: 4px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-2px) rotate(45deg); transition: transform var(--t-med) var(--ease-out); }
.dealer-report .finder.card[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.dealer-report .finder.card[open] > summary { margin-bottom: 14px; }
/* the limit-order form: metal and side, unit and quantity, the limit, how long */
.orderform { margin: 0; }
.orderform .hint { margin-top: -8px; font-size: var(--fs-sm); }
.orderpanel .orderform { display: grid; gap: var(--s4); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.orderpanel .orderform > * { grid-column: 1 / -1; }
.orderpanel .orderform > .formgrid { display: contents; }
.orderpanel .orderform .field { grid-column: auto; align-content: start; }
.orderpanel .orderform .field:has(#order-limit) { grid-column: 1 / -1; }
.orderform [data-until].is-off { display: none; }
.orderform:has([data-until].is-off) .field:has(#order-stands) { grid-column: 1 / -1; }
.orderpanel:target, .orderpanel.is-aimed { box-shadow: var(--shadow-1), 0 0 0 3px rgba(164, 126, 59, .35); }
.panel > header .jump { margin-left: auto; display: none; }
.nowline { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface-2); }
.nowline > span { color: var(--ink-3); font-size: var(--fs-md); }
.nowline b { font-size: 16px; font-weight: 600; }
ol.howto { display: grid; gap: 12px; counter-reset: how; color: var(--ink-2); font-size: var(--fs-md); }
ol.howto li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; counter-increment: how; }
ol.howto li::before { content: counter(how); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 700; }
/* the sub-tabs can be wider than a phone: the edge fades while more stands to the right (portal.js marks it) */
.wf-nav[data-more] { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
.wf-nav[data-less] { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); }
.wf-nav[data-more][data-less] { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
/* a figure that cannot be read is said once: the field's own sentence, not also its reading bubble */
.numread.bad:has(+ .fe-msg) { display: none; }
.stateview > .what { display: flex; align-items: center; gap: 12px; min-width: 0; }
.stateview > .what b { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
/* a delivery's way through the house: its steps, one under the other */
ol.steps { display: grid; gap: 0; margin-top: 12px; }
ol.steps li { position: relative; padding: 0 0 14px 26px; color: var(--ink-2); }
ol.steps li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
ol.steps li::after { content: ""; position: absolute; left: 8px; top: 17px; bottom: -3px; width: 2px; background: var(--brand-line); }
ol.steps li:last-child { padding-bottom: 0; }
ol.steps li:last-child::after { display: none; }
ol.steps time { font-weight: 600; color: var(--ink); }
.keys { display: grid; }
.keys li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.keys li:first-child { border-top: 0; }
.keys .kname { font-weight: 600; }
.keys li > .soft { grid-column: 1; font-size: var(--fs-md); }
.keys li > form { grid-row: 1 / span 2; grid-column: 2; }
.picks { display: grid; gap: var(--s3); }
.pick > a, .pick.off { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-1); color: var(--ink); text-decoration: none; transition: box-shadow var(--t-med), transform var(--t-med) var(--ease-out), border-color var(--t-fast); }
.pick > a:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.pick .num { font-family: var(--font-serif); font-size: 19px; font-weight: 600; }
.pick.off { color: var(--ink-3); background: var(--surface-2); }
.links { display: flex; gap: var(--s4); flex-wrap: wrap; }

/* ---------- aanmelden: the brand beside the form ---------- */
body.is-out .chead { background: transparent; border-bottom: 0; position: absolute; left: 0; right: 0; backdrop-filter: none; -webkit-backdrop-filter: none; z-index: 5; }
body.is-out .chead .in { max-width: none; }
body.is-out .chead .brandlock, body.is-out .chead .cnav { visibility: hidden; }
body.is-out { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
body.is-out::before { content: ""; grid-column: 1; grid-row: 1; background: var(--brand) repeating-radial-gradient(circle at 20% 110%, rgba(255, 255, 255, .05) 0 1px, transparent 1px 11px); }
body.is-out > .cwrap { grid-column: 2; grid-row: 1; width: min(440px, 100%); max-width: none; margin: 0 auto; padding: 110px 24px 64px; align-content: center; gap: 18px; }
body.is-out .loginart { position: absolute; left: 0; top: 0; bottom: 0; width: 50%; padding: 48px; display: grid; align-content: space-between; color: #F4EFE2; overflow: hidden; pointer-events: none; }
body.is-out .loginart::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 110% 0%, rgba(201, 164, 92, .08) 0 1px, transparent 1px 13px), radial-gradient(520px 360px at 100% 100%, rgba(201, 164, 92, .14), transparent 70%); }
body.is-out .loginart > * { position: relative; }
body.is-out .loginart .wordmark { color: #F4EFE2; font-size: 26px; }
body.is-out .loginart blockquote { margin: 0; font-family: var(--font-serif); font-size: 34px; line-height: 1.2; font-weight: 600; max-width: 12em; }
body.is-out .loginart small { color: rgba(244, 239, 226, .7); font-size: 14px; }
body.is-out .card { box-shadow: none; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.center { text-align: center; }

/* ---------- TESTDATA corner label ---------- */
.testlabel { position: fixed; right: 10px; bottom: 10px; z-index: 70; display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: var(--r-pill); border: 1px dashed var(--brass); background: var(--brass-soft); color: var(--brass-ink); font-size: 10.5px; font-weight: 700; letter-spacing: .09em; }

/* ---------- bottom bar (phone) ---------- */
.tabbar { display: none; }

@media (max-width: 1023px) {
  .cnav { display: none; }
  .cols { grid-template-columns: 1fr; }
  .wf-nav:has(> .go) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel > header .jump { display: inline-flex; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar > a, .tabbar .moremenu > summary { display: grid; justify-items: center; gap: 2px; padding: 8px 2px 7px; font-size: 11px; font-weight: 600; color: var(--ink-3); text-decoration: none; transition: color var(--t-fast), transform var(--t-press); }
  .tabbar > a:active, .tabbar .moremenu > summary:active { transform: scale(.94); }
  .tabbar .ic { width: 22px; height: 22px; }
  .tabbar > a[aria-current="page"], .tabbar .moremenu[open] > summary, .tabbar .moremenu[data-here] > summary { color: var(--brand); }
  .tabbar .moremenu { position: static; }
  .tabbar .sheetmenu { position: fixed; left: 8px; right: 8px; top: auto; bottom: calc(66px + env(safe-area-inset-bottom)); padding: 8px; border-radius: 20px; }
  .tabbar .moremenu[open] > .sheetmenu { animation: sheet-up var(--t-med) var(--ease-out); transform-origin: 50% 100%; }
  .sheetmenu .item { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; padding: 12px; }
  .sheetmenu .item > span { display: grid; }
  .sheetmenu .item small { color: var(--ink-3); font-weight: 400; font-size: var(--fs-md); }
  .sheetmenu .item[aria-current="page"] b { color: var(--brand); }
  .testlabel { bottom: 74px; }
  /* the TESTDATA label may never sit on a button: with the "Meer" sheet open it moves up under the header */
  body:has(.moremenu[open]) .testlabel { bottom: auto; top: 74px; }
  /* the payout is in "Meer" on a phone; in the account menu only where there is no phone bar */
  .acctmenu .pop .item.wide-only { display: none; }
}
@media (max-width: 719px) {
  .chead .in { height: 58px; padding: 0 16px; gap: 10px; }
  .brandlock small { display: none; }
  .wordmark { font-size: 19px; }
  .acctbtn .nm small, .acctbtn .ic { display: none; }
  .acctbtn { max-width: 150px; height: 38px; padding-right: 12px; }
  .langbtn > span { display: none; }
  .cwrap { padding: 16px 16px 110px; gap: 20px; }
  h1 { font-size: 26px; }
  .overview > .hi { top: 20px; left: 20px; right: 130px; }
  .overview > .wf-refresh { top: 12px; right: 12px; }
  .overview > .wf-refresh #wf-status { display: none; }
  .hero { padding: 52px 20px 18px; border-radius: 18px; margin: 0 -4px; }
  .hero .worth { font-size: 40px; }
  .hero .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-top: 16px; padding-top: 14px; }
  .hero .facts > div:last-child { grid-column: 1 / -1; }
  .metals { grid-template-columns: 1fr; }
  .hold .qty { font-size: 30px; }
  .wf-nav:has(> .go) { grid-template-columns: 1fr; }
  .panel > header { padding: 14px 16px 0; }
  .panel > .body { padding: 10px 16px 16px; }
  .card { padding: 16px; }
  .row { padding: 12px 16px; grid-template-columns: minmax(0, 1fr) auto !important; }
  .rows > .card, .rows > .card:has(> .when) { padding: 12px 16px; grid-template-columns: minmax(0, 1fr) auto; }
  .rows > .card .acts { grid-column: 1 / -1; justify-content: flex-start; }
  .row.head, .hide-phone { display: none !important; }
  .row .acts { grid-column: 1 / -1; justify-content: flex-start; }
  .pair { grid-template-columns: 1fr; gap: 12px; padding: 14px 14px 14px 18px; }
  .qbtn b { font-size: 24px; }
  .cwrap button.qbtn, .qprice { padding: 10px 12px 9px; }
  .boardbar .seg { flex: 1; }
  .boardbar .seg label { flex: 1; justify-content: center; height: 38px; }
  /* a finger needs room: the small links of a card and of a record are 36 px high on a phone */
  .limitlink { margin-top: 0; min-height: 36px; }
  .rows > .card > a.more { min-height: 36px; margin-top: 4px; }
  .cwrap .market-refresh button { width: 38px; padding: 0; }
  .market-refresh button > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* a record on a phone: the metal's tag, then the title over the whole width (never squeezed by a long state);
     the state stands on the line of the number, at the right; the cells two by two; a deal's amount closes the row */
  .tradepage .rows > .card, .dealer-report .rows > .card { padding: 14px 16px; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0 12px; align-items: center; }
  .tradepage .rows > .card .what, .dealer-report .rows > .card .what, .tradepage .rows > .card .what > span:not(.metal), .dealer-report .rows > .card .what > span:not(.metal) { display: contents; }
  .tradepage .rows > .card .what > .metal, .dealer-report .rows > .card .what > .metal { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
  .tradepage .rows > .card .what b, .dealer-report .rows > .card .what b { grid-column: 2 / -1; grid-row: 1; }
  .tradepage .rows > .card .what small, .dealer-report .rows > .card .what small { grid-column: 2; grid-row: 2; min-width: 0; }
  .tradepage .rows > .card > .r, .dealer-report .rows > .card > .r { grid-column: 3; grid-row: 2; align-self: center; justify-self: end; }
  .tradepage .rows > .card dl.facts, .dealer-report .rows > .card dl.facts { grid-row: 3; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; padding-left: 0; margin-top: 12px; }
  .tradepage .rows > .card > .acts, .dealer-report .rows > .card > a.more { grid-row: 4; padding-left: 0; margin-top: 12px; }
  .dealer-report .rows > .card > a.more { margin-top: 4px; }
  .tradepage .rows > .card > .r.total, .dealer-report .rows > .card > .r.total { grid-column: 1 / -1; grid-row: 4; justify-self: stretch; display: flex; flex-direction: row-reverse; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
  .rows > .card .r.total .sub { font-weight: 600; }
  .orderpanel .orderform .field:has(#order-stands), .orderpanel .orderform .field:has(#order-until) { grid-column: 1 / -1; }
  .statehead .statement { font-size: 22px; }
  .sheet { border-radius: 18px; }
  .sheet > .body, .sheet > form > .body { padding: 18px; }
  .cwrap .bigqty input { font-size: 40px; }
  .formgrid.two { grid-template-columns: 1fr; }
  .titlebar .seg { width: 100%; }
  .titlebar .seg label { flex: 1; justify-content: center; }
  body.is-out { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  body.is-out::before { grid-row: 1; min-height: 150px; }
  body.is-out .loginart { position: absolute; width: 100%; height: 150px; bottom: auto; padding: 24px; }
  body.is-out .loginart blockquote { font-size: 22px; }
  body.is-out .loginart small { display: none; }
  body.is-out > .cwrap { grid-column: 1; grid-row: 2; padding: 24px 20px 64px; align-content: start; }
  body.is-out .chead { position: absolute; }
  body.is-out .testlabel { bottom: 10px; }
}
.only-phone { display: none !important; }
@media (max-width: 719px) { .only-phone { display: inline !important; } }

/* ---------- motion ---------- */
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
@keyframes sheet-up { from { opacity: 0; transform: translateY(16px); } }
@keyframes sheet-in { from { opacity: 0; transform: translateX(28px); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes ring-in { 0% { box-shadow: 0 0 0 0 rgba(164, 126, 59, .45); } 100% { box-shadow: 0 0 0 10px rgba(164, 126, 59, 0); } }
@keyframes slide-bar { 0% { transform: translateX(-110%); } 100% { transform: translateX(290%); } }
/* a page arrives in order, 20 ms apart, all there within a quarter of a second; a notice is never part of it */
.cwrap > :not(.notice) { animation: rise 180ms var(--ease-out) both; }
.cwrap > :nth-child(3) { animation-delay: 20ms; }
.cwrap > :nth-child(4) { animation-delay: 40ms; }
.cwrap > :nth-child(n+5) { animation-delay: 60ms; }
.cwrap > .sheet { animation: sheet-in var(--t-slow) var(--ease-out) both; }
/* from one page to the next (Chromium, Safari): the header and the bar stay, the mark of "where am I" glides, the
   ticket slides in as a sheet. Other browsers simply show the next page. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .chead { view-transition-name: cl-head; }
  .tabbar { view-transition-name: cl-bar; }
  .cnav a[aria-current="page"] { view-transition-name: cl-here; }
  ::view-transition-group(*) { animation-duration: 220ms; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 150ms; }
  ::view-transition-old(cl-head), ::view-transition-new(cl-head), ::view-transition-old(cl-bar), ::view-transition-new(cl-bar) { animation: none; }
  ::view-transition-old(cl-head), ::view-transition-old(cl-bar) { display: none; }
}
@media (max-width: 719px) { .cwrap > .sheet { animation-name: sheet-up; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print {
  .chead, .tabbar, .testlabel, .deskmsg, .wf-nav { display: none !important; }
  body { background: #fff; }
}

/* C-07: the small "?" help mark (templates/help.html, account_components/macros.html; portal.js opens it on hover,
   keyboard focus and tap). Very small, muted, our own look; the explanation opens ABOVE its mark (below only when the
   window has no room), so it never lies over the field it explains. Never printed. */
.helpmark { position: relative; display: inline-block; vertical-align: super; line-height: 1; margin-left: 3px; font-size: 0; }
button.help-q, .cwrap button.help-q, .cwrap button.help-q[type="button"] { position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; min-width: 0; min-height: 0; padding: 0; margin: 0; border: 1px solid var(--line-strong);
  border-radius: 50%; background: var(--surface); color: var(--ink-3); font: 600 10px/1 var(--font-ui); letter-spacing: 0;
  text-transform: none; box-shadow: none; cursor: help; vertical-align: middle; }
button.help-q::before { content: ""; position: absolute; inset: -6px; }      /* a finger-sized place to tap, same small mark */
button.help-q:hover, .cwrap button.help-q[type="button"]:hover, button.help-q:focus-visible, .helpmark.open button.help-q { color: var(--brand); border-color: var(--brand-line); background: var(--brand-soft); }
.cwrap button.help-q:active { transform: none; }
button.help-q:focus-visible { outline: none; box-shadow: var(--focus); }
.help-tip { display: none; position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); z-index: 60;
  width: max-content; max-width: min(280px, 78vw); padding: 8px 11px; border-radius: var(--r-sm); background: #1d2a31; color: #fff;
  font: 400 13px/1.45 var(--font-ui); letter-spacing: normal; text-transform: none; text-align: left; white-space: normal;
  box-shadow: var(--shadow-2); pointer-events: none; }
.help-tip::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -5px; border: 5px solid transparent; border-top-color: #1d2a31; }
.helpmark:hover .help-tip, .help-q:focus-visible + .help-tip, .helpmark.open .help-tip { display: block; }
.helpmark.closed .help-tip { display: none; }
.helpmark.below .help-tip { bottom: auto; top: calc(100% + 8px); }
.helpmark.below .help-tip::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #1d2a31; }
.helpmark.left .help-tip { left: 0; transform: none; }
.helpmark.left .help-tip::after { left: 9px; }
.helpmark.right .help-tip { left: auto; right: 0; transform: none; }
.helpmark.right .help-tip::after { left: auto; right: 4px; }
/* SOL-B #19: placed by portal.js against the window (no box around it can cut it); the arrow points at its mark */
.help-tip.fixed, .helpmark.below .help-tip.fixed { position: fixed; bottom: auto; right: auto; transform: none; }
.help-tip.fixed::after, .helpmark.below .help-tip.fixed::after { left: var(--arrow-x, 50%); right: auto; }
@media print { .helpmark { display: none !important; } }

/* C-12: what is missing or wrong in a form, said very visibly (templates/field_errors.html, portal.js form[data-fe]).
   The summary at the top of the form: strong colour, a sign and a heading; each field: a thick border, a sign and its
   own sentence right under it. Never colour alone. */
.fe-summary { margin: 0 0 var(--s4); padding: 14px 16px; border: 2px solid var(--bad); border-left-width: 6px; border-radius: var(--r-md);
  background: var(--bad-bg); color: var(--ink); }
.fe-summary:focus { outline: none; box-shadow: var(--focus); }
.fe-summary .fe-head { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: var(--fs-lg); font-weight: 700; color: var(--bad); }
.fe-summary ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.fe-summary li { line-height: 1.4; }
.fe-summary a { color: var(--bad); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.fe-summary .fe-foot { margin: 8px 0 0; font-size: var(--fs-sm); color: var(--ink-2); }
.fe-ic { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bad); color: #fff; font: 700 12px/1 var(--font-ui); }
.fe-msg { display: flex; width: fit-content; align-items: flex-start; gap: 6px; margin: 6px 0 0; font-size: var(--fs-md); font-weight: 600; color: var(--bad); justify-self: start; }
.fe-msg .fe-ic { width: 16px; height: 16px; font-size: 11px; margin-top: 1px; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--bad); border-width: 2px;
  box-shadow: 0 0 0 3px var(--bad-bg); }
@media print { .fe-summary, .fe-msg { display: none !important; } }

/* C-19: the statement's two ways to keep it (Excel, printed / PDF); not printed themselves, nor the period form */
.statement-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--s3) 0; }
.statement-actions .btn, .statement-actions button { display: inline-flex; align-items: center; gap: 6px; }
@media print { .statement-actions, .panel:has(.wf-period) { display: none !important; } }
/* SOL-B #8: the printed (or PDF) statement shows every column. On screen the movements table is at least 1040px wide in
   a scroll box; on paper there is no scroll: the box lets the table out, the table takes the page's width, text wraps,
   figures and dates stay whole, the header row repeats on each page, a row is never cut in two. The statement prints on
   A4 landscape (a named page, so no other printed page changes). */
@page statement { size: A4 landscape; margin: 12mm; }
@media print {
  .statement-paper { page: statement; min-width: 0; }
  .cwrap:has(> .statement-paper) { display: block; padding: 0; max-width: none; }
  .statement-paper .ac-scroll { overflow: visible !important; max-width: none !important; border: 0 !important; border-radius: 0 !important; container-type: normal !important; }
  .statement-paper .ac-table { width: 100% !important; min-width: 0 !important; font-size: 8.5pt; }
  .statement-paper .ac-table th, .statement-paper .ac-table td { min-width: 0 !important; max-width: none !important; padding: 3pt 4pt !important; overflow-wrap: anywhere; }
  .statement-paper .ac-table thead th { font-size: 7.5pt; overflow-wrap: normal; }
  .statement-paper .ac-table .ac-figure, .statement-paper .ac-table time, .statement-paper .ac-table .ac-ref { white-space: nowrap; overflow-wrap: normal; }
  .statement-paper .ac-table thead { display: table-header-group; }
  .statement-paper .ac-table tr { break-inside: avoid; }
  .statement-paper .ac-table caption { break-after: avoid; padding: 6pt 0; font-size: 11pt; }
  .statement-paper .ac-table tbody tr:hover { background: none; }
  .statement-paper .ac-scroll-hint { display: none !important; }
}

/* Keep a full document name readable inside its download row on a phone. */
.row[download] bdi { overflow-wrap: anywhere; }
