/* Iris. The design is Opein's supplier portal design: Manrope, Lucide icons,
   the red #d6334a, grey surfaces instead of borders, pill buttons.

   No style attribute anywhere: the Content-Security-Policy allows styles from
   this file only, so every look a template needs is a class here. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Tokens. Light is the default; dark is chosen by the visitor (data-theme on
   <html>, from a cookie) or, when they have not chosen, by their system. */
:root {
  --bg: #fff; --s1: #f4f5f7; --s2: #f7f8fa; --s4: #eceef2;
  --line: #f1f2f5; --line2: #dde1e7;
  --ink: #15191f; --ink2: #3a404b; --ink3: #626a77; --mut: #8b929e; --mut2: #c4c9d1;
  --red: #d6334a; --red-h: #c42a40; --red-soft: #fcecee; --red-ink: #b02238;
  --green: #2c6b4c; --green-bg: #e8f3ec;
  --code-bg: #15191f; --code-ink: #e6e8ec; --inv: #15191f;
  --shadow: 0 1px 2px rgba(15, 18, 24, .04), 0 18px 48px rgba(15, 18, 24, .08);
  --rail: 248px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #131416; --s1: #1f2023; --s2: #1a1b1e; --s4: #2a2b2f;
  --line: #202124; --line2: #34363b;
  --ink: #f2f2f3; --ink2: #d2d2d7; --ink3: #a2a2aa; --mut: #8e8e97; --mut2: #4f5056;
  --red-soft: #3a1f24; --red-ink: #ff9aa8;
  --green: #85d0a5; --green-bg: #1c2b21;
  --code-bg: #0d0e10; --inv: #2c2d31;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 48px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131416; --s1: #1f2023; --s2: #1a1b1e; --s4: #2a2b2f;
    --line: #202124; --line2: #34363b;
    --ink: #f2f2f3; --ink2: #d2d2d7; --ink3: #a2a2aa; --mut: #8e8e97; --mut2: #4f5056;
    --red-soft: #3a1f24; --red-ink: #ff9aa8;
    --green: #85d0a5; --green-bg: #1c2b21;
    --code-bg: #0d0e10; --inv: #2c2d31;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 48px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body {
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-h); }
h1, h2, h3, p { margin: 0; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }
h1 { font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: 16px; font-weight: 700; }
h3 { font-size: 14px; font-weight: 700; }
input, button, select, textarea { font: inherit; color: inherit; }
input::placeholder, textarea::placeholder { color: var(--mut); font-weight: 400; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.quiet { color: var(--ink3); }
.muted { color: var(--mut); }
.nowrap { white-space: nowrap; }

/* Icons: <svg class="i"><use href="/static/icons.svg#i-name"></svg> */
.i { width: 1em; height: 1em; flex: 0 0 auto; fill: currentColor; stroke: currentColor; stroke-width: 22px; stroke-linejoin: round; vertical-align: -.125em; }

/* Logo: drawn inline so its letters follow the ink in dark mode. */
.logo { display: block; width: 76px; height: auto; }
.logo .ink { fill: var(--ink); }
.logo .mark { fill: #e3042e; }
:root[data-theme="dark"] .logo .mark { fill: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo .mark { fill: var(--ink); } }

/* App shell: the rail on the left, the page beside it.

   The rail folds to its icons and back by its width alone: nothing inside
   it moves or reflows. Icons sit at the same place in both widths, labels
   stay in their row and fade, and the rail's edge clips them as it closes,
   so folding is one smooth movement rather than a jump. */
.shell { min-height: 100vh; padding-left: var(--rail); transition: padding-left .22s cubic-bezier(.2, .8, .2, 1); }
.rail {
  position: fixed; inset: 0 auto 0 0; z-index: 40;
  display: flex; flex-direction: column; gap: 14px;
  width: var(--rail); padding: 18px 12px 14px;
  background: color-mix(in oklab, var(--s2) 72%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4);
  transition: width .22s cubic-bezier(.2, .8, .2, 1);
}
.rail-label, .rail-warn, .rail .switch, .me-text, .me-chev, .rail-brand .logo, .rail-fold { transition: opacity .16s ease; }
.rail-top, .rail-item, .me > summary { overflow: hidden; }
.rail-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 36px; }
.rail-brand { position: relative; display: flex; align-items: center; height: 36px; padding: 0 8px; color: var(--ink); }
.rail-brand .logo { width: 76px; }
/* Folded, the brand is the O of the logo, where the logo starts. */
.logo-mark { position: absolute; top: 4px; left: 10px; width: 28px; height: 28px; opacity: 0; transition: opacity .16s ease; }
.logo-mark .ink { fill: var(--ink); }
.rail-fold, .rail-unfold { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--mut); font-size: 16px; cursor: pointer; transition: background .15s ease, color .15s ease, opacity .16s ease; }
.rail-fold:hover, .rail-unfold:hover { background: var(--s1); color: var(--ink); }
.rail-unfold { display: none; width: 48px; height: 36px; border-radius: 999px; }
.rail-nav { display: flex; flex: 1; flex-direction: column; gap: 2px; min-height: 0; }
.rail-item {
  display: flex; align-items: center; gap: 11px; width: 100%; height: 46px; padding: 0 14px 0 7px;
  border: 0; border-radius: 999px; background: transparent;
  color: var(--ink2); font-size: 14.5px; font-weight: 600; white-space: nowrap; text-align: left; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.rail-item:hover { background: var(--s1); color: var(--ink); }
/* One axis for every icon in the rail: a 34px circle 7px into a 48px row,
   which is the whole row when folded, so each icon is centred there and
   sits the same 6px from the edges of its hover pill in either width. */
.rail-ico { position: relative; display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--mut); font-size: 19px; transition: background .15s ease, color .15s ease; }
.rail-item[aria-current="page"] { color: var(--red); font-weight: 700; }
.rail-item[aria-current="page"] .rail-ico { background: var(--red); color: #fff; }
.rail-label { flex: 1; }
.rail-warn { color: var(--red); font-size: 15px; }
.rail-theme [data-theme-icon] { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; color: var(--mut); font-size: 19px; }
.rail-theme [data-theme-icon][hidden] { display: none !important; }
.switch { position: relative; flex: 0 0 auto; width: 32px; height: 18px; border-radius: 999px; background: var(--mut2); transition: background .2s ease, opacity .16s ease; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: left .2s ease; }
[aria-checked="true"] > .switch, [aria-pressed="true"] > .switch { background: var(--red); }
[aria-checked="true"] > .switch::after, [aria-pressed="true"] > .switch::after { left: 16px; }
.theme-form { margin: 0; }

/* The account at the foot of the rail, and its menu. */
.me { position: relative; }
.me > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 14px; white-space: nowrap; cursor: pointer; transition: background .15s ease; }
.me > summary::-webkit-details-marker { display: none; }
.me > summary:hover, .me[open] > summary { background: var(--s1); }
.me-chev { color: var(--mut); font-size: 14px; }
.avatar { display: grid; flex: 0 0 auto; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--s4); color: var(--ink2); font-size: 11.5px; font-weight: 700; }
.me-text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.3; }
.me-name, .me-mail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-name { font-size: 12.5px; font-weight: 700; }
.me-mail { color: var(--mut); font-size: 11.5px; font-weight: 600; }
.menu {
  position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 50;
  display: flex; flex-direction: column; width: 236px; padding: 6px;
  border-radius: 14px; background: var(--bg);
  box-shadow: 0 16px 40px rgba(28, 36, 51, .18), 0 2px 6px rgba(28, 36, 51, .06), 0 0 0 1px var(--line); transform-origin: bottom left;
}
.menu form { margin: 0; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; transition: background .12s ease, color .12s ease; }
.menu-item:hover { background: var(--s2); color: var(--ink); }
.menu-item[aria-current="true"] { color: var(--ink); font-weight: 700; }
.menu-item .i { color: var(--mut); font-size: 16px; }
.menu-item .tick, .menu-item .tick .i { margin-left: auto; color: var(--red); }
.menu form[action="/signout"] .menu-item:hover, .menu form[action="/signout"] .menu-item:hover .i { color: var(--red); }
.menu-sep { height: 1px; margin: 4px -6px; background: var(--line); }
.menu-head { padding: 8px 10px 2px; color: var(--mut); font-size: 11.5px; font-weight: 600; }
/* Folded, the menu still opens beside the account, wide enough to read. */
.shell.folded .me .menu { left: 4px; }

/* Folded: chosen by the visitor, or forced by a narrow window. The same
   rules either way; only the width changes and the words fade. */
.shell.folded { --rail: 72px; }
.shell.folded .rail-label, .shell.folded .rail-warn, .shell.folded .rail .switch, .shell.folded .me-text, .shell.folded .me-chev,
.shell.folded .rail-brand .logo, .shell.folded .rail-fold { opacity: 0; pointer-events: none; }
.shell.folded .logo-mark { opacity: 1; }
.shell.folded .rail-fold { position: absolute; right: 0; }
.shell.folded .rail-unfold { display: grid; }
@media (max-width: 980px) {
  .shell { --rail: 72px; }
  .shell .rail-label, .shell .rail-warn, .shell .rail .switch, .shell .me-text, .shell .me-chev,
  .shell .rail-brand .logo, .shell .rail-fold, .shell .rail-unfold { opacity: 0; pointer-events: none; }
  .shell .rail-fold { position: absolute; right: 0; }
  .shell .logo-mark { opacity: 1; }
}

/* The page itself. */
.page { padding: 48px 48px 72px; }
/* The heading stays at the top while the page scrolls under it, across the
   full width of the page, padding included: frosted glass, like the rail,
   so what passes under it shows through blurred. Its negative margins keep
   it where it was before it sticks. */
.page-head { position: sticky; top: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: -14px -48px 14px; padding: 14px 48px; background: color-mix(in oklab, var(--bg) 70%, transparent); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); }
@media (max-width: 640px) { .page-head { margin-right: -16px; margin-left: -16px; padding-right: 16px; padding-left: 16px; } }
.page-head .subtitle { margin-top: 8px; }
.page-head .subtitle a { font-weight: 600; }
.page-head h1 { min-width: 0; overflow-wrap: anywhere; }
.page-head .side { display: flex; align-items: center; gap: 10px; color: var(--mut); font-size: 14px; font-weight: 600; white-space: nowrap; }
.lead { margin-top: 8px; color: var(--ink3); font-size: 15px; }
.crumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--ink3); font-size: 13px; font-weight: 600; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink3); }
.crumbs a .i { font-size: 15px; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--mut2); }
.crumbs .here { color: var(--ink); font-weight: 600; }
.subtitle { margin-top: 10px; color: var(--ink3); }
.stack > * + * { margin-top: 12px; }
.stack-lg > * + * { margin-top: 24px; }
.section-title { display: flex; align-items: baseline; gap: 10px; margin: 32px 0 12px; }
.section-title:first-child { margin-top: 0; }
.section-title .muted { font-size: 12.5px; font-weight: 500; }
@media (max-width: 640px) { .page { padding: 28px 16px 56px; } h1 { font-size: 26px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap;
  cursor: pointer; transition: background .15s ease;
}
.btn:hover { background: var(--red-h); color: #fff; }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--red); opacity: .45; cursor: not-allowed; }
.btn-soft { background: var(--s1); color: var(--ink); }
.btn-soft:hover { background: var(--s4); color: var(--ink); }
.btn-soft:disabled { background: var(--s1); }
.btn-ghost { height: 40px; padding: 0 14px; background: transparent; color: var(--ink2); font-size: 13.5px; }
.btn-ghost:hover { background: var(--s1); color: var(--ink); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 13.5px; }
.btn-white { background: var(--bg); color: var(--ink); }
.btn-white:hover { background: var(--s4); color: var(--ink); }
.btn-block { width: 100%; }
.btn .i { font-size: 16px; }
.link-btn { padding: 0; border: 0; background: none; color: var(--ink3); font-size: 13px; font-weight: 600; cursor: pointer; }
.link-btn:hover { color: var(--red); }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--mut); font-size: 15px; cursor: pointer; }
.icon-btn:hover { background: var(--red-soft); color: var(--red); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.actions .push { margin-left: auto; }
.inline { display: inline; margin: 0; }

/* Fields */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--ink); }
.opt { margin-left: 6px; color: var(--mut); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; height: 46px; padding: 0 16px;
  border: 0; border-radius: 12px; outline: 0;
  background: var(--bg); box-shadow: 0 0 0 1.5px transparent;
  color: var(--ink); font-size: 14px; font-weight: 500;
  transition: box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus { box-shadow: 0 0 0 1.5px var(--ink3); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { box-shadow: 0 0 0 1.5px var(--red); }
.input[readonly] { background: var(--s2); color: var(--ink); }
.textarea { height: auto; min-height: 96px; padding: 12px 16px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 40px; cursor: pointer; }
.select-wrap { position: relative; }
.select-wrap > .i { position: absolute; top: 50%; right: 16px; margin-top: -.5em; color: var(--mut); pointer-events: none; }
.help { color: var(--ink3); font-size: 12.5px; }
.err { display: flex; align-items: flex-start; gap: 6px; color: var(--red); font-size: 12.5px; font-weight: 500; line-height: 1.45; }
.err .i { margin-top: 1px; font-size: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.grid-2 .wide { grid-column: 1 / -1; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }
.check { display: flex; align-items: flex-start; gap: 10px; color: var(--ink2); font-size: 13.5px; font-weight: 500; line-height: 1.55; cursor: pointer; }
.check input, .choice input { appearance: none; display: grid; flex: 0 0 auto; place-items: center; width: 18px; height: 18px; margin: 1px 0 0; border: 1.5px solid var(--mut2); border-radius: 5px; background: var(--bg); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.check input:checked { border-color: var(--red); background: var(--red); }
.check input:checked::after { content: ""; width: 9px; height: 5px; margin-top: -2px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.choice input { border-radius: 50%; }
.choice input:checked { border-color: var(--red); }
.choice input:checked::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.choice input[aria-invalid="true"], .check input[aria-invalid="true"] { border-color: var(--red); }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 720px) { .choice-row { grid-template-columns: 1fr; } }
.choice { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; }
.choice:has(input:checked) { background: var(--red-soft); }
fieldset[aria-describedby*="error"] .choice { border-color: var(--red); }
.choice strong { display: block; color: var(--ink); font-size: 13.5px; }
.choice > span > span { display: block; margin-top: 3px; color: var(--ink3); font-size: 12.5px; line-height: 1.5; }

/* Surfaces */
.card { padding: 26px 28px; border-radius: 20px; background: var(--s2); }
.card + .card { margin-top: 12px; }
.panel { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 24px; border-radius: 18px; background: var(--s2); }
.panel + .panel, .card + .panel, .panel + .card { margin-top: 12px; }
.panel-head h2 { font-size: 15px; }
.panel-head p { margin-top: 4px; color: var(--ink3); font-size: 13.5px; }
@media (max-width: 860px) { .panel { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px 24px; margin: 0; }
.facts dt { color: var(--mut); font-size: 12.5px; font-weight: 600; }
.facts dd { margin: 4px 0 0; font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.facts .wide { grid-column: 1 / -1; }
@media (max-width: 720px) { .facts { grid-template-columns: 1fr 1fr; } }

/* Alerts */
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 14px 18px; border-radius: 12px; background: var(--red-soft); color: var(--ink); font-size: 13.5px; font-weight: 600; line-height: 1.55; }
.alert > .i { margin-top: 2px; font-size: 17px; color: var(--red); }
.alert.ok { background: var(--green-bg); color: var(--green); }
.alert.ok > .i { color: var(--green); }
.alert.info { background: var(--s2); color: var(--ink2); }
.alert.info > .i { color: var(--mut); }
.alert strong { display: block; color: var(--ink); font-weight: 700; }
.alert .grow { flex: 1; }
.alert .grow p { margin-top: 2px; color: var(--ink2); font-weight: 500; }
.alert .btn { align-self: center; margin-left: auto; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.page > .alert, .wizard > .alert { margin-bottom: 18px; }
.page > .alert[role="alert"] { margin-bottom: 28px; font-weight: 500; }

/* Status badges */
.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; background: var(--bg); color: var(--ink2); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.badge.draft { color: var(--mut); }
.badge.approved, .badge.paid { background: var(--green-bg); color: var(--green); }
.badge.rejected { background: var(--red-soft); color: var(--red); }

/* Lists of rows: invoices, payments */
.rows { display: flex; flex-direction: column; gap: 6px; }
.rows-head, .row { display: grid; align-items: center; gap: 16px; padding: 0 16px; }
.rows-head { padding-bottom: 12px; color: var(--mut); font-size: 12.5px; font-weight: 600; }
.row { min-height: 64px; border-radius: 16px; background: var(--s2); color: var(--ink); }
a.row:hover { background: var(--s1); color: var(--ink); }
.cols-invoices { grid-template-columns: 20px minmax(0, 1.6fr) 120px 150px 140px; gap: 28px; }
.cols-invoices > :nth-child(1) { display: flex; align-items: center; }
.cols-invoices > :nth-child(3) { font-size: 13.5px; font-weight: 500; }
.cols-invoices > :nth-child(4) { justify-self: end; font-size: 14.5px; text-align: right; white-space: nowrap; }
.rows-head.cols-invoices > * { font-size: inherit; font-weight: inherit; }
.row .strong { font-weight: 700; overflow-wrap: anywhere; }
.row .faint { color: var(--mut); }
@media (max-width: 640px) {
  .cols-invoices { grid-template-columns: 20px 1fr auto; padding: 12px 16px; }
  .cols-invoices > :nth-child(3), .cols-invoices > :nth-child(4) { display: none; }
  .rows-head.cols-invoices { display: none; }
}
.pager { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; color: var(--ink3); font-size: 13px; }
.pager nav { display: flex; align-items: center; gap: 4px; }
.pager a, .pager .cur, .pager .off { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 6px; border-radius: 999px; color: var(--ink2); font-weight: 600; }
.pager a:hover { background: var(--s1); }
.pager .cur { background: var(--red); color: #fff; }
.pager .off { color: var(--mut2); }
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 88px 24px; border-radius: 16px; background: var(--s2); color: var(--ink2); font-size: 15px; font-weight: 600; text-align: center; }
.empty .btn-sm { padding: 0 20px; font-size: 14px; }
.empty.small { padding: 40px 24px; color: var(--ink3); font-size: 14px; }

/* Toolbar: search and filters */
.toolbar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-bottom: 18px; }
.search { position: relative; flex: 0 1 320px; }
.search > .i { position: absolute; top: 50%; left: 16px; margin-top: -.5em; color: var(--mut); }
.search .input { height: 42px; padding: 0 18px; border-radius: 999px; background: var(--s1); }
.toolbar .filters > summary { height: 42px; padding: 0 18px; }
.filters { position: relative; }
.filters > summary { list-style: none; }
.filters > summary::-webkit-details-marker { display: none; }
.filters-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; display: flex; flex-direction: column; gap: 14px; width: 300px; padding: 18px; border-radius: 16px; background: var(--bg); box-shadow: var(--shadow); }
.filters-menu .input, .filters-menu .select { background: var(--s1); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 18px; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--s1); color: var(--ink2); font-size: 12.5px; font-weight: 600; }
.tag a { display: inline-grid; color: var(--mut); }
.tag a:hover { color: var(--red); }

/* Segmented tabs */
.tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 24px; border-radius: 999px; background: var(--s1); }
.tabs a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 999px; color: var(--ink3); font-size: 13.5px; font-weight: 600; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--bg); color: var(--ink); }
.tabs .i { color: var(--red); font-size: 15px; }

/* Steps of a draft: Data, Documents, Submit */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 32px; }
.step { position: relative; display: flex; align-items: flex-start; gap: 12px; padding-top: 13px; color: var(--mut); }
.step::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 3px; border-radius: 999px; background: var(--line); }
.step.ahead { opacity: .5; }
a.step:hover { color: var(--ink); }
.step-dot { display: grid; flex: 0 0 auto; place-items: center; width: 26px; height: 26px; border: 1.5px solid transparent; border-radius: 50%; color: var(--mut); font-size: 12px; font-weight: 700; }
.step-dot .i { font-size: 14px; }
.step-text { display: flex; flex-direction: column; min-width: 0; }
.step-name { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; }
.step-note { font-size: 12.5px; }
.step.done { color: var(--ink); }
/* A step done keeps the red line of the way forward, and its check is green. */
.step.done::before { background: var(--red); }
.step.done .step-dot { border-color: var(--green); background: var(--green); color: var(--bg); }
.step.done .step-note { color: var(--mut); }
.step.cur { color: var(--ink); }
.step.cur::before { background: var(--red); }
.step.cur .step-dot { border-color: var(--red); background: var(--red); color: #fff; }
.step.cur.done .step-dot { border-color: var(--green); background: var(--green); color: var(--bg); }
.step.cur .step-note { color: var(--mut); }
.step.warn .step-note, .step .warn-ico { color: var(--red); }
@media (max-width: 720px) { .step-note { display: none; } }
.wizard { max-width: none; }
.wizard-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.wizard-foot.bare { justify-content: flex-start; margin-top: 0; padding-top: 16px; border-top: 0; }
.wizard-foot:has(> :only-child) { justify-content: flex-end; }
.block + .block { margin-top: 18px; padding-top: 24px; border-top: 1px solid var(--line); }

/* The life of a submitted invoice: Submitted, In review, Approved, Paid */
.track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.track-step { position: relative; display: flex; align-items: flex-start; gap: 12px; padding-top: 16px; color: var(--mut); }
.track-step::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 4px; border-radius: 999px; background: var(--line); }
.track-dot { display: grid; flex: 0 0 auto; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bg); color: var(--mut2); font-size: 15px; }
.track-text { display: flex; flex-direction: column; min-width: 0; }
.track-name { font-size: 14px; font-weight: 600; }
.track-when { font-size: 12.5px; color: var(--mut2); }
.track-step.done { color: var(--ink); }
.track-step.done::before, .track-step.cur::before, .track-step.bad::before { background: var(--red); }
.track-step.done .track-dot { background: var(--red); color: #fff; }
.track-step.done .track-when { color: var(--ink3); }
.track-step.cur { color: var(--ink); }
.track-step.cur .track-name { font-weight: 700; }
.track-step.cur .track-dot { background: var(--red); color: #fff; }
.track-step.cur .track-when { color: var(--ink3); }
.track-step.bad { color: var(--red); }
.track-step.bad .track-dot { background: var(--red); color: #fff; }
.track-step.bad .track-when { color: var(--red); }
@media (max-width: 760px) { .track { grid-template-columns: 1fr 1fr; } }
.amount-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.amount-head .k { color: var(--mut); font-size: 12.5px; font-weight: 600; }
.amount-big { margin-top: 6px; font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }

/* Files */
.files-head h2 { font-size: 14.5px; }
.files-head p { margin: 2px 0 12px; color: var(--ink3); font-size: 12.5px; }
.file { display: flex; flex-direction: column; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--s2); }
.file:has(.file-extra) { padding: 12px 12px 14px; border-radius: 14px; }
.file + .file, .file + .file-error, .file-error + .file, .file-error + .file-error, .file + .drop, .file-error + .drop, .drop + .file-error { margin-top: 10px; }
.file-main { display: flex; align-items: center; gap: 14px; min-height: 32px; }
.file-ico { display: grid; flex: 0 0 auto; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--s1); color: var(--ink3); font-size: 17px; }
.file-name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 600; color: var(--ink); }
.file-name small { display: block; margin-top: 2px; color: var(--red); font-size: 12.5px; font-weight: 500; }
.file-name a { color: var(--ink); }
.file-name a:hover { color: var(--red); }
.file-state { display: inline-flex; align-items: center; gap: 6px; color: var(--ink3); font-size: 13px; font-weight: 600; white-space: nowrap; }
.file-state.clean { color: var(--green); }
.file-state.rejected, .file-state.infected, .file-state.failed { color: var(--red); }
.file-state .i { font-size: 15px; }
.file-extra { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 10px; align-items: end; margin-left: 50px; }
.file-extra .input { height: 40px; border-radius: 10px; }
.file-extra .field { gap: 5px; }
.file-extra .label { color: var(--ink2); font-size: 12.5px; }
.file-extra .input { padding: 0 14px; font-size: 13.5px; }
@media (max-width: 720px) { .file-extra { grid-template-columns: 1fr; margin-left: 0; } }
.file-error { display: flex; align-items: flex-start; gap: 10px; padding: 12px 12px 12px 14px; border-radius: 12px; background: var(--red-soft); }
.file-error > .i { margin-top: 3px; color: var(--red); font-size: 15px; }
.file-error strong { display: block; font-size: 13px; }
.file-error span { color: var(--ink2); font-size: 12.5px; line-height: 1.5; }
.drop { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 12px; background: var(--red); color: #fff; font-size: 13.5px; font-weight: 500; }
.drop.dragging { background: var(--red-h); }
.drop-ico { display: grid; flex: 0 0 auto; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .18); font-size: 16px; }
.drop label { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.drop .send { margin-left: auto; }
.drop .picked { flex-basis: 100%; color: rgba(255, 255, 255, .9); font-size: 13px; }
.drop .picked:empty { display: none; }
.roles { display: flex; gap: 16px; flex-basis: 100%; }
.roles .check { color: #fff; font-size: 13px; }
.roles .check input { border-color: rgba(255, 255, 255, .7); background: transparent; }
.roles .check input:checked { border-color: #fff; background: #fff; }
.roles .check input:checked::after { border-color: var(--red); }
.doc { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 14px; background: var(--bg); }
.doc + .doc { margin-top: 8px; }
.doc-text { flex: 1; min-width: 0; }
.doc-text strong { display: block; font-size: 14.5px; overflow-wrap: anywhere; }
.doc-text span { display: block; color: var(--mut); font-size: 12.5px; overflow-wrap: anywhere; }
.doc-text p { margin-top: 2px; color: var(--ink2); font-size: 13px; }
.doc .file-state { margin-right: 4px; }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--s4); border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.corrections { display: flex; flex-direction: column; }
.corrections a { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.corrections .badge { height: auto; padding: 0; background: none; font-size: 13px; font-weight: 600; }
.corrections .amt { font-size: 13.5px; font-weight: 600; }
.corrections a:hover { color: var(--red); }

/* Messages to Finance */
.message { padding: 14px 16px; border-radius: 14px; background: var(--bg); }
.message + .message { margin-top: 8px; }
.message p { white-space: pre-wrap; overflow-wrap: anywhere; }
.message .when { margin-bottom: 4px; color: var(--mut); font-size: 12.5px; }
details.more > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; color: var(--ink3); font-size: 13px; font-weight: 600; cursor: pointer; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary:hover { color: var(--red); }
details.more[open] > summary { margin-bottom: 14px; }

/* Home */
.home-top { position: relative; padding-top: 160px; }
.home-art { position: absolute; top: -48px; right: -48px; left: -48px; height: 260px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%), linear-gradient(180deg, #000 60%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%), linear-gradient(180deg, #000 60%, transparent 100%); -webkit-mask-composite: source-in; mask-composite: intersect; pointer-events: none; }
.home-art canvas { width: 100%; height: 100%; }
.greet { position: relative; }
@media (max-width: 760px) { .home-art { display: none; } }
@media (max-width: 760px) { .home-top { padding-top: 16px; } }
.greet .date { color: var(--mut); font-size: 13px; font-weight: 600; }
.greet h1 { margin-top: 8px; font-size: 36px; line-height: 1.1; letter-spacing: -.03em; }
.banner + .home-stats { margin-top: 32px; }
/* The start page: a figure for each of the list's tabs, then the latest
   invoices beside a new one and the way to each section. */
.home-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
@media (max-width: 900px) { .home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Flat throughout: no shadows, no glows, nothing that moves on hover; a
   card under the pointer only changes its surface. */
.hstat { position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 112px; padding: 18px 20px; overflow: hidden; border-radius: 18px; background: var(--s2); color: var(--ink); }
.hstat:hover { background: var(--s1); color: var(--ink); }
.hstat-l { display: flex; align-items: center; gap: 8px; color: var(--ink3); font-size: 13px; font-weight: 600; }
.hstat strong { font-size: 32px; font-weight: 700; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hstat.bad strong { color: var(--red); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; margin-top: 16px; }
@media (max-width: 1100px) { .home-grid { grid-template-columns: minmax(0, 1fr); } }
.home-recent { padding: 20px 12px 12px; border-radius: 18px; background: var(--s2); }
.hr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px 10px; }
.hr-head h2 { font-size: 15px; }
.hr-head a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink3); font-size: 13px; font-weight: 600; }
.hr-head a:hover { color: var(--red); }
.hr-head a .i { font-size: 14px; }
.hr-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 140px; align-items: center; gap: 16px; min-height: 60px; padding: 8px 12px; border-radius: 12px; color: var(--ink); }
.hr-row:hover { background: var(--bg); color: var(--ink); }
.hr-row + .hr-row { margin-top: 2px; }
.hr-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hr-main strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.hr-main strong.faint { color: var(--mut); }
.hr-main span { color: var(--mut); font-size: 12.5px; }
.hr-amount { font-size: 14px; font-weight: 700; text-align: right; }
@media (max-width: 640px) { .hr-row { grid-template-columns: minmax(0, 1fr) auto; } .hr-row .state { display: none; } }
.hr-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 12px 32px; color: var(--ink3); font-size: 14px; text-align: center; }
/* The drawings: strokes in the ink, washed out, and one in the brand's red. */
.draw { fill: none; stroke: color-mix(in oklab, var(--ink) 22%, transparent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.draw .accent { stroke: var(--red); }
.hstat .draw { position: absolute; right: -4px; bottom: -6px; width: 112px; height: auto; }
.hstat.good .draw .accent { stroke: var(--green); }
.home-new .draw { position: absolute; top: 50%; right: 8px; width: 96px; height: auto; margin-top: -34px; stroke: rgb(255 255 255 / .45); }
.home-new .draw .accent { stroke: #fff; }
.hr-empty .draw { width: 132px; height: auto; }
.home-side { display: flex; flex-direction: column; gap: 12px; }
.home-new { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 120px; padding: 18px 110px 18px 20px; overflow: hidden; border-radius: 18px; background: var(--red); color: #fff; }
.home-new:hover { background: var(--red-h); color: #fff; }
.home-new strong { font-size: 15px; }
.home-new > span { color: rgb(255 255 255 / .82); font-size: 12.5px; line-height: 1.45; }
.home-links { display: flex; flex-direction: column; padding: 8px; border-radius: 18px; background: var(--s2); }
.home-links a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px; border-radius: 12px; color: var(--ink); }
.home-links a:hover { background: var(--bg); color: var(--ink); }
.home-links a > .i:first-child { flex: 0 0 auto; color: var(--ink3); font-size: 18px; }
.home-links a > .i:last-child { flex: 0 0 auto; margin-left: auto; color: var(--mut); font-size: 14px; }
.home-links a > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.home-links strong { font-size: 13.5px; }
.home-links a > span > span { color: var(--mut); font-size: 12.5px; }
.home-links a > span > span.bad { color: var(--red); }
.banner { display: flex; align-items: center; gap: 16px; margin-top: 40px; padding: 16px 20px; border-radius: 16px; background: var(--red-soft); }
.banner > .i { color: var(--red); font-size: 20px; }
.banner strong { font-size: 14px; }
.banner p { font-size: 13.5px; }
.banner .grow { flex: 1; }
.banner strong { display: block; }
.banner p { color: var(--ink2); }

/* Settings, API */
.status-line { display: flex; align-items: center; gap: 10px; color: var(--ink3); font-weight: 600; }
.status-line.on { color: var(--green); }
.status-line .i { font-size: 20px; }
.status-disc { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff; }
.status-disc .i { font-size: 13px; }
.status-ring { width: 20px; height: 20px; border: 2px solid var(--mut2); border-radius: 50%; }
.panel-row { display: flex; align-items: center; gap: 16px; }
.panel-row .push { margin-left: auto; }
.toggle { display: inline-flex; padding: 0; border: 0; background: none; cursor: pointer; }
.toggle .switch { width: 44px; height: 26px; }
.toggle .switch::after { top: 3px; left: 3px; width: 20px; height: 20px; }
.toggle[aria-pressed="true"] .switch::after { left: 21px; }
.key { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 8px 8px 16px; border-radius: 14px; background: var(--bg); }
.key code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: inherit; font-size: 14px; font-weight: 600; }
.key .muted { padding-right: 8px; font-size: 12.5px; }
.hint { display: flex; align-items: center; gap: 8px; color: var(--ink3); font-size: 13px; }
.hint .i { color: var(--mut); font-size: 15px; }

/* Settings and help: a menu down the side, the page beside it. The menu
   stays in view while a long page scrolls; on a narrow window it becomes a
   row that scrolls sideways. */
.settings { display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 40px; align-items: start; }
.settings-body { min-width: 0; }
.side-nav { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; }
.side-head { padding: 16px 12px 6px; color: var(--mut); font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.side-head:first-child { padding-top: 0; }
.side-nav > a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 12px; color: var(--ink2); font-size: 13.5px; font-weight: 600; transition: background .15s ease, color .15s ease; }
.side-nav > a:hover { background: var(--s2); color: var(--ink); }
.side-nav > a[aria-current="page"] { background: var(--s2); color: var(--ink); }
.side-nav > a .i { flex: 0 0 auto; color: var(--mut); font-size: 16px; }
.side-nav > a[aria-current="page"] .i { color: var(--red); }
.side-count { margin-left: auto; color: var(--mut); font-size: 12px; font-variant-numeric: tabular-nums; }
.side-warn { display: inline-flex; margin-left: auto; }
.side-nav > a .side-warn .i { color: var(--red); }
.side-sub { display: flex; flex-direction: column; gap: 1px; margin: 4px 0 8px 20px; padding-left: 10px; border-left: 1px solid var(--line); }
.side-sub a { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 10px; border-radius: 9px; color: var(--ink3); font-size: 12.5px; font-weight: 600; }
.side-sub a:hover { background: var(--s2); color: var(--ink); }
.side-sub .method { min-width: 42px; padding: 2px 0; font-size: 10px; }
.settings-body [id] { scroll-margin-top: 96px; }
@media (max-width: 900px) {
  .settings { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .side-nav { position: static; flex-direction: row; gap: 4px; margin: 0 -16px; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; }
  .side-head, .side-sub { display: none; }
  .side-nav > a { flex: 0 0 auto; white-space: nowrap; }
}

/* Developers */
/* The address and the key on the left; in the corner, the offer to build
   it for the supplier. */
.dev-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 24px; }
.done-for-you { display: flex; align-items: center; gap: 14px; max-width: 380px; padding: 14px 18px 14px 14px; border-radius: 18px; background: var(--s2); color: var(--ink); transition: background .15s ease; }
.done-for-you:hover { background: var(--s1); color: var(--ink); }
.done-for-you strong { display: block; font-size: 13.5px; }
.done-for-you strong + span { display: block; margin-top: 2px; color: var(--ink3); font-size: 12.5px; line-height: 1.45; }
.w1949 { flex: 0 0 auto; width: 40px; height: 40px; }
.w1949 .w-bg { fill: var(--ink); }
.w1949 .w-ink { fill: var(--bg); }
.agent { display: flex; flex-direction: column; gap: 10px; }
.agent h2 { font-size: 17px; }
.agent > p { max-width: 720px; color: var(--ink2); font-size: 14px; line-height: 1.6; }
.agent-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
details.agent-more > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; color: var(--ink3); font-size: 13px; font-weight: 600; cursor: pointer; }
details.agent-more > summary::-webkit-details-marker { display: none; }
details.agent-more > summary .i { transition: transform .2s ease; }
details.agent-more[open] > summary .i { transform: rotate(180deg); }
details.agent-more .code { max-height: 420px; margin-top: 12px; overflow: auto; white-space: pre-wrap; }
.dev { max-width: none; }
.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink2); font-size: 13px; }
.meta-line + .meta-line { margin-top: 6px; }
.meta-line .k { color: var(--mut); }
.meta-line .k:empty { display: none; }
.meta-line code { font-family: inherit; font-weight: 600; color: var(--ink2); overflow-wrap: anywhere; }
.meta-line .link-btn { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--s1); color: var(--ink2); font-size: 12px; }
.endpoint { border: 1px solid transparent; border-radius: 12px; background: var(--s2); }
.endpoint + .endpoint { margin-top: 10px; }
.endpoint > summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; font-size: 13px; cursor: pointer; }
.endpoint > summary::-webkit-details-marker { display: none; }
.endpoint > summary .chev { margin-left: auto; color: var(--mut); transition: transform .15s ease; }
.endpoint[open] { border-color: var(--line2); background: var(--bg); }
.endpoint[open] > summary { background: var(--s2); border-radius: 11px 11px 0 0; }
.endpoint[open] > summary .chev { transform: rotate(180deg); }
.endpoint .path { font-weight: 600; overflow-wrap: anywhere; }
.endpoint .what { color: var(--ink3); }
.endpoint-body { display: flex; flex-direction: column; gap: 14px; padding: 16px 16px 18px; }
.endpoint-body p { color: var(--ink2); }
.method { display: inline-grid; flex: 0 0 auto; place-items: center; min-width: 64px; padding: 3px 0; border-radius: 6px; background: var(--bg); color: var(--ink2); font-size: 11.5px; font-weight: 700; }
.method.get { background: var(--green-bg); color: var(--green); }
.method.post { background: var(--red-soft); color: var(--red); }
.code-label { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; color: var(--mut); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
pre.code { margin: 0; padding: 14px 16px; overflow-x: auto; border-radius: 10px; background: var(--code-bg); color: var(--code-ink); font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }
.codes { display: flex; flex-wrap: wrap; gap: 6px; text-transform: none; letter-spacing: 0; }
.codes label { display: inline-grid; place-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--s1); color: var(--ink3); font-size: 12px; cursor: pointer; transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
.codes label:hover { background: var(--s4); color: var(--ink); }
.codes label.ok { background: var(--green-bg); color: var(--green); }
/* The answer shown is the chip filled in the brand's red: the others stay
   pale. */
.codes label.on, .codes label.on:hover, .codes label.ok.on, .codes label.ok.on:hover { background: var(--red); color: #fff; }
/* One answer at a time: the panel after the ticked radio. */
.responses .response { display: none; flex-direction: column; gap: 10px; }
.responses input:checked + .response { display: flex; animation: fade .15s ease backwards; }
.responses input:focus-visible + .response .codes label.on { outline: 2px solid var(--red); outline-offset: 2px; }
table.params { width: 100%; border-collapse: collapse; font-size: 13px; }
table.params th { padding: 6px 8px; color: var(--ink3); font-weight: 600; text-align: left; }
table.params td { padding: 8px; border-top: 1px solid var(--line); vertical-align: top; color: var(--ink2); }
table.params code { color: var(--ink); font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; font-weight: 600; }
details.limits > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; }
details.limits > summary::-webkit-details-marker { display: none; }
details.limits[open] > summary { margin-bottom: 12px; }
details.limits > summary .i, details.auth-more > summary .i { color: var(--mut); transition: transform .2s ease; }
details.limits[open] > summary .i, details.auth-more[open] > summary .i { transform: rotate(180deg); }
.limit-list { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.limit-list dt { color: var(--ink); font-size: 13.5px; font-weight: 700; }
.limit-list dd { margin: 3px 0 0; color: var(--ink2); font-size: 13.5px; line-height: 1.6; }
/* Errors: room between the sentence, the example and the specification. */
.errors-card { display: flex; flex-direction: column; gap: 18px; margin-top: 32px; }
.errors-card h2 { font-size: 17px; }
.errors-card p { max-width: 760px; color: var(--ink2); font-size: 14px; line-height: 1.7; }
.errors-card .spec-line { padding-top: 4px; color: var(--mut); font-size: 13.5px; }
.limit-list code, .auth-body code, .errors-card p code { padding: 1px 4px; border-radius: 5px; background: var(--s4); color: var(--ink); font: 600 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
details.auth-more { margin-top: 6px; }
details.auth-more > summary { list-style: none; cursor: pointer; }
details.auth-more > summary::-webkit-details-marker { display: none; }
details.auth-more > summary .i { font-size: 14px; }
.auth-body { display: flex; flex-direction: column; gap: 10px; max-width: 760px; margin-top: 10px; padding: 16px; border-radius: 12px; background: var(--s2); color: var(--ink2); font-size: 13.5px; line-height: 1.6; }
/* Opening a section slides its content in; where the browser can, its
   height grows from nothing instead of jumping. */
.endpoint[open] .endpoint-body, details.limits[open] > .card, details.auth-more[open] > .auth-body, .faq[open] .faq-body { animation: rise .22s ease backwards; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .endpoint::details-content, details.limits::details-content, details.auth-more::details-content, .faq::details-content { height: 0; overflow: clip; transition: height .25s ease, content-visibility .25s allow-discrete; }
  .endpoint[open]::details-content, details.limits[open]::details-content, details.auth-more[open]::details-content, .faq[open]::details-content { height: auto; }
}

/* Help */
.help-search { position: relative; margin-bottom: 28px; }
.help-search > .i { position: absolute; top: 50%; left: 20px; margin-top: -.5em; color: var(--mut); font-size: 17px; }
.help-search .input { height: 48px; padding-left: 47px; border-radius: 999px; background: var(--s1); font-size: 14.5px; }
.faqs { max-width: none; }
.faq { border: 1px solid transparent; border-radius: 12px; background: var(--s2); }
.faq + .faq { margin-top: 8px; }
.faq > summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 12px 16px; font-size: 14px; font-weight: 600; line-height: 1.45; cursor: pointer; }
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary .where { margin-left: auto; color: var(--mut); font-size: 12px; font-weight: 600; white-space: nowrap; }
.faq > summary .i { color: var(--mut); transition: transform .15s ease; }
.faq[open] { border-color: var(--line2); background: var(--bg); box-shadow: var(--shadow); }
.faq[open] > summary { background: var(--s2); border-radius: 11px 11px 0 0; }
.faq[open] > summary .i { transform: rotate(180deg); }
.faq-body { padding: 16px 16px 18px; color: var(--ink2); line-height: 1.65; }
.faq-body p + p { margin-top: 10px; }
.faq-body .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; }
.faq[hidden] { display: none; }

/* Analytics */
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.charts.one { grid-template-columns: 1fr; }
@media (max-width: 900px) { .charts { grid-template-columns: 1fr; } }
.chart-card { padding: 24px; border-radius: 20px; background: var(--s2); }
.chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.chart-head span { color: var(--ink2); font-size: 13.5px; font-weight: 600; }
.chart-head strong { font-size: 15px; }
.chart { display: flex; flex-direction: column; gap: 10px; }
.chart .plot { display: block; width: 100%; height: 170px; overflow: hidden; border-bottom: 1px solid var(--line2); }
.chart .bar { stroke: var(--red); stroke-width: 18px; stroke-linecap: round; transition: stroke .15s ease; }
.chart .bar:hover { stroke: var(--red-h); }
.chart .months { display: flex; }
.chart .months span { flex: 1; color: var(--mut); font-size: 11.5px; font-weight: 500; text-align: center; }
.charts:not(.one) .chart .bar { stroke-width: 16px; }
.cols-payments { grid-template-columns: minmax(120px, .8fr) minmax(200px, 2fr) 140px; gap: 24px; padding: 16px 20px; border-radius: 18px; }
.cols-payments > :last-child { justify-self: end; font-size: 15px; font-weight: 700; }
.cols-payments .strong { font-size: 14.5px; }
@media (max-width: 640px) { .cols-payments { grid-template-columns: 1fr auto; } .cols-payments .will { display: none; } }
.cols-payments .will { color: var(--green); font-weight: 600; }
.row .sub { display: block; color: var(--mut); font-size: 12.5px; }
.section-split { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 32px 0 12px; }
.section-split p { margin-top: 2px; color: var(--ink3); font-size: 13.5px; }
.pending-total { text-align: right; }
.pending-total span { display: block; color: var(--mut); font-size: 12.5px; }
.pending-total strong { font-size: 15px; }
.pending-total strong + strong { margin-left: 12px; }

/* Public pages: the art on the left, the card on the right. */
.auth { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(400px, 1fr); min-height: 100vh; }
/* The arcs cover the whole page, washed out under the card. */
.auth-art { position: absolute; inset: 0; overflow: hidden; }
.auth-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 40% 55% at 72% 50%, color-mix(in oklab, var(--bg) 40%, transparent) 0%, transparent 100%); pointer-events: none; }
.auth-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-side { position: relative; grid-column: 2; display: flex; align-items: center; justify-content: center; padding: 96px 24px 48px; }
html { scrollbar-gutter: stable; }
.auth-card { width: 100%; max-width: 380px; padding: 36px 34px; border-radius: 28px; background: var(--bg); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(28, 36, 51, .04), 0 24px 60px rgba(28, 36, 51, .10); }
.auth-card .logo { width: 104px; margin-bottom: 22px; }
.auth-card h1 { font-size: 26px; letter-spacing: -.02em; text-wrap: balance; }
.auth-card .lead { margin-top: 8px; font-size: 14px; font-weight: 500; line-height: 1.55; }
.auth-card .auth-note { margin-top: 28px; color: var(--mut); font-size: 13px; line-height: 1.55; }
.auth-card form { margin-top: 28px; }
.auth-card .btn:not(.btn-sm) { height: 46px; }
/* A button at work: its words give way to three dots that pulse in turn. */
.btn.dotting { position: relative; color: transparent; pointer-events: none; }
.btn.dotting::before { display: none !important; }
.btn.dotting .dots { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; }
.btn.dotting .dots i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: dot-wave 1s ease-in-out infinite; }
.btn.dotting .dots i:nth-child(2) { animation-delay: .15s; }
.btn.dotting .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot-wave { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .btn.dotting .dots i { animation: none; opacity: .8; } }
.auth-card .big-ico { margin-bottom: 20px; font-size: 28px; color: var(--ink); }
.auth-card .big-ico.red { color: var(--red); }
.auth-card .code { margin-bottom: 8px; color: var(--red); font-size: 13px; font-weight: 700; }
.auth-card .field { margin-bottom: 16px; }
.auth-card .input { background: var(--s1); }
.auth-card .after .btn-block { align-self: stretch; }
.auth-card .after { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 28px; }
.lang-pick { position: absolute; top: 28px; right: 40px; z-index: 5; }
.lang-pick > summary { list-style: none; display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 8px; background: color-mix(in oklab, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 2px rgba(28, 36, 51, .06), 0 0 0 1px var(--line); color: var(--ink2); font-size: 13px; font-weight: 600; cursor: pointer; }
.lang-pick > summary .i { font-size: 15px; }
.lang-pick > summary .i:last-child { font-size: 14px; }
.lang-pick > summary::-webkit-details-marker { display: none; }
.lang-pick > summary:hover { background: var(--bg); }
.lang-pick > summary .i { color: var(--mut); }
.flag { flex: 0 0 auto; width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(15, 18, 24, .08); object-fit: cover; }
.lang-pick .menu { top: calc(100% + 6px); bottom: auto; right: 0; left: auto; width: 180px; }
@media (max-width: 880px) { .auth { grid-template-columns: 1fr; } .auth-side { grid-column: 1; } .auth-art { display: none; } .lang-pick { top: 16px; right: 16px; } .auth-card { background: var(--bg); } }

/* Motion, as the design has it: what appears rises or pops in, lists come
   in one after another, bars grow from the axis. All of it is entrance only,
   so a page that loads with motion reduced is simply already there. */
/* Entrances fill backwards, never both: a transform still applied once the
   animation is over, even an identity one, makes the element the frame of
   everything fixed inside it, and a dialog opened from it was drawn inside
   that element instead of over the window. */
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes pop-out { to { opacity: 0; transform: scale(.94); } }
@keyframes pay-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes card-pop { from { opacity: 0; transform: translateY(-4px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes dot-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* The sign-in card does not rise in: it sits where it was from one step
   to the next, which read as a shift every time the email was sent. */
.auth-card .input[aria-invalid="true"] { animation: shake .3s ease; }
main.page { animation: rise .25s ease backwards; }
.hstat, .home-recent, .home-side { animation: rise .3s ease backwards; }
.hstat:nth-child(2) { animation-delay: .04s; }
.hstat:nth-child(3) { animation-delay: .08s; }
.hstat:nth-child(4) { animation-delay: .12s; }
.home-recent { animation-delay: .1s; }
.home-side { animation-delay: .14s; }
.rows > .row { animation: rise .25s ease backwards; }
.rows > .row:nth-child(2) { animation-delay: .03s; }
.rows > .row:nth-child(3) { animation-delay: .06s; }
.rows > .row:nth-child(4) { animation-delay: .09s; }
.rows > .row:nth-child(5) { animation-delay: .12s; }
.rows > .row:nth-child(n+6) { animation-delay: .15s; }
.faqs > .faq { animation: rise .35s cubic-bezier(.2, .8, .2, 1) backwards; }
.faqs > .faq:nth-child(2) { animation-delay: 35ms; }
.faqs > .faq:nth-child(3) { animation-delay: 70ms; }
.faqs > .faq:nth-child(4) { animation-delay: 105ms; }
.faqs > .faq:nth-child(5) { animation-delay: 140ms; }
.faqs > .faq:nth-child(6) { animation-delay: 175ms; }
.faqs > .faq:nth-child(n+7) { animation-delay: 210ms; }
.err, .alert, .banner, .file-error, .key { animation: rise .2s ease backwards; }
.me .menu { animation: pop .16s ease backwards; }
.lang-pick .menu { animation: pop .14s ease backwards; }
/* The filters drop from their button: in from a little above and smaller,
   and back the same way when they close (see closeMenu in app.js). */
.filters-menu { transform-origin: top right; animation: menu-in .22s cubic-bezier(.2, .8, .2, 1) backwards; }
details.closing > .filters-menu, details.closing > .menu { animation: menu-out .14s ease forwards; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes menu-out { to { opacity: 0; transform: translateY(-6px) scale(.97); } }
.chart .bar { transform-box: fill-box; transform-origin: bottom; animation: grow-y .5s cubic-bezier(.2, .8, .2, 1) backwards; }
.track-step .track-dot { animation: dot-pop .3s cubic-bezier(.2, 1.3, .4, 1) both; }
.track-step:nth-child(2) .track-dot { animation-delay: .18s; }
.track-step:nth-child(3) .track-dot { animation-delay: .36s; }
.track-step:nth-child(4) .track-dot { animation-delay: .54s; }

/* A button whose form is on its way: a spinner in place of nothing, and no
   second press. Not disabled, which would drop its name and value from the
   form being sent. */
.btn[aria-busy="true"] { pointer-events: none; }
.btn[aria-busy="true"]::before { content: ""; width: 14px; height: 14px; box-sizing: border-box; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-ghost[aria-busy="true"]::before, .btn-soft[aria-busy="true"]::before, .btn-white[aria-busy="true"]::before { border-color: var(--s4); border-top-color: var(--red); }

/* The modal over a page while something long happens: a spinner while it
   runs, a check drawing itself when it is done. */
.busy { position: fixed; inset: 0; z-index: 2147483640; display: flex; justify-content: center; align-items: center; padding: 24px; background: rgba(15, 18, 24, .42); animation: fade .18s ease both; }
.busy[hidden] { display: none; }
.busy-card { display: grid; width: 240px; height: 240px; padding: 24px; box-sizing: border-box; place-items: center; border-radius: 32px; background: var(--red); color: #fff; box-shadow: 0 24px 60px rgba(15, 18, 24, .28); text-align: center; animation: card-pop .26s cubic-bezier(.2, 1.2, .4, 1) backwards; }
.busy-run, .busy-done { display: flex; flex-direction: column; align-items: center; }
.busy-run { gap: 20px; }
.busy-done { gap: 14px; }
.busy-run[hidden], .busy-done[hidden] { display: none; }
.busy-ring { position: relative; display: block; width: 64px; height: 64px; }
.busy-ring::before, .busy-ring::after { content: ""; position: absolute; inset: 0; box-sizing: border-box; border: 5px solid rgba(255, 255, 255, .22); border-radius: 50%; }
.busy-ring::after { border-color: transparent; border-top-color: #fff; animation: spin .8s linear infinite; }
.busy-run strong { font-size: 15px; font-weight: 600; line-height: 1.4; }
/* Three dots after what is happening, coming and going while it does. They
   hold their room, so the words do not move as the dots change. */
.busy-run strong::after { content: ""; display: inline-block; width: 1.1em; text-align: left; animation: dots 1.2s steps(1, end) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.busy-count { margin-top: -12px; color: rgba(255, 255, 255, .8); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.busy-count:empty { display: none; }
.file-state.uploaded { color: var(--mut); }
.busy-done svg { animation: pay-pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.busy-done circle { stroke-dasharray: 277; stroke-dashoffset: 277; animation: draw .55s cubic-bezier(.6, 0, .3, 1) .05s forwards; }
.busy-done path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .35s cubic-bezier(.6, 0, .3, 1) .5s forwards; }
.busy-done strong { font-size: 17px; font-weight: 700; animation: rise .3s ease .55s backwards; }
.busy.leaving { animation: fade-out .26s ease both; }
.busy.leaving .busy-card { animation: pop-out .26s ease backwards; }

/* A word that something worked, at the foot of the window for a moment. */
.toast { position: fixed; left: 50%; bottom: 32px; z-index: 70; display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; background: color-mix(in oklab, var(--inv) 82%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 16px 40px rgba(15, 18, 24, .22); transform: translateX(-50%); animation: toast-in .2s ease both; pointer-events: none; }
.toast .i { font-size: 16px; color: #85d0a5; }
.toast.error .i { color: #ff9aa8; }
.toast.leaving { animation: fade-out .3s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translateX(-50%); } }

/* Deleting a draft asks in a dialog over the page. It is a <details>, so it
   opens without the script; the script closes it on a click outside. */
.more.modal[open] > summary::before { content: ""; position: fixed; inset: 0; z-index: 60; background: rgba(15, 18, 24, .28); animation: fade .15s ease both; cursor: default; }
.more.modal[open] > .dialog { position: fixed; top: 50%; left: 50%; z-index: 61; display: flex; flex-direction: column; gap: 18px; width: calc(100% - 48px); max-width: 440px; padding: 26px; box-sizing: border-box; border-radius: 20px; background: var(--bg); color: var(--ink); box-shadow: 0 24px 64px rgba(15, 18, 24, .24); transform: translate(-50%, -50%); animation: dialog-in .15s ease both; }
.dialog > strong { font-size: 17px; font-weight: 700; }
.dialog .input { background: var(--s1); }
.dialog-foot { display: flex; justify-content: flex-end; gap: 8px; }
@keyframes dialog-in { from { opacity: 0; transform: translate(-50%, calc(-50% + 6px)); } to { opacity: 1; transform: translate(-50%, -50%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  /* A spinner that stops says nothing is happening: it turns, slower. */
  .spin, .busy-ring::after, .btn[aria-busy="true"]::before { animation: spin 1.6s linear infinite !important; }
  .busy-done circle, .busy-done path { stroke-dashoffset: 0; }
}

/* The foot of a long form: what is left to fix beside the button. */
.form-foot { position: sticky; bottom: 20px; z-index: 10; display: flex; justify-content: flex-end; margin-top: 8px; }
.foot-pill { display: inline-flex; align-items: center; gap: 16px; padding: 4px 4px 4px 20px; border-radius: 999px; background: var(--s2); }
.foot-pill .count { color: var(--red); font-size: 13px; font-weight: 600; }
.divider-sm { height: 18px; }
.wizard-foot-col { margin-top: 24px; }
.row-problem { box-shadow: inset 3px 0 0 var(--red); }
ol.track { margin: 18px 0 0; padding: 0; list-style: none; }
.file-error .grow { flex: 1; min-width: 0; }

/* Narrow screens: nothing wider than the screen. */
.steps, .track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.track { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step-name, .track-name { overflow-wrap: anywhere; }
.page { min-width: 0; }
@media (max-width: 640px) {
  .steps { gap: 6px; }
  .step { gap: 8px; }
  .step-name { font-size: 12.5px; }
  .track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabs { display: flex; flex-wrap: wrap; border-radius: 18px; }
  .page-head { flex-wrap: wrap; }
  .amount-head { flex-direction: column; }
  .wizard-foot { flex-wrap: wrap; }
  .panel { padding: 18px; }
  .card { padding: 18px; }
  .facts { grid-template-columns: 1fr; }
  .toolbar .search { flex: 1 1 100%; }
  .greet h1 { font-size: 28px; }
}
@media (max-width: 640px) { .step-dot { display: none; } .step-name { overflow-wrap: normal; } }

/* Profile and sign-in fields are the design's lighter kind: 44px, a 1px
   border that turns red when the value is wrong. */
.panel .input, .panel .select, .auth-card .input { height: 44px; padding: 0 14px; border: 1px solid transparent; border-radius: 10px; box-shadow: none; }
.panel .select { padding-right: 40px; }
.auth-card .input { height: 46px; }
.panel .input:focus, .panel .select:focus { border-color: var(--ink3); box-shadow: none; }
.auth-card .input:focus { background: var(--s4); box-shadow: none; }
.panel .input[aria-invalid="true"], .panel .select[aria-invalid="true"], .auth-card .input[aria-invalid="true"] { border-color: var(--red); box-shadow: none; }
.auth-card .err { font-size: 13px; }

/* The submit step: deleting the draft sits at the end of the buttons' row. */
.submit-area { position: relative; padding-top: 6px; }
/* The review before submitting: the details and the documents side by side
   on one surface, each with its way back. */
.review { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; margin: 18px 0 24px; padding: 24px; border-radius: 18px; background: var(--s2); }
@media (max-width: 860px) { .review { grid-template-columns: minmax(0, 1fr); } }
.review-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.review-head h2 { font-size: 15px; }
.review-head a { color: var(--ink3); font-size: 13px; font-weight: 600; }
.review-head a:hover { color: var(--red); }
.review .facts { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.review-files { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.review-files li { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 12px; background: var(--bg); }
.review-files strong { overflow-wrap: anywhere; font-size: 13.5px; }
.review-files span { color: var(--ink3); font-size: 12.5px; }
.submit-area .declaration { max-width: 760px; }
.submit-area .delete-draft { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; height: 44px; }
.submit-area .delete-draft[open] > summary { margin-bottom: 0; }
@media (max-width: 640px) { .submit-area .delete-draft { position: static; height: auto; margin-top: 16px; } }

/* Morph: going from one page to the next, or from one state to the next,
   the browser draws the change instead of swapping it. What is the same
   thing on both sides keeps a name, and the browser moves and reshapes it:
   the sign-in card through its steps, the rail that stays still, the steps
   of a draft, a button into the modal, the modal from one page to the next.
   Browsers without view transitions simply change page, as before. */
@view-transition { navigation: auto; }
/* Words changed to another language fade in where they are. */
.relabelled main, .relabelled .rail, .relabelled .lang-pick { animation: fade .22s ease both; }
.rail { view-transition-name: rail; }
.auth-art { view-transition-name: auth-art; }
.lang-pick { view-transition-name: lang-pick; }
.page-head h1 { view-transition-name: page-title; }
.crumbs { view-transition-name: crumbs; }
.steps { view-transition-name: steps; }
.tabs { view-transition-name: tabs; }
.key-box { view-transition-name: api-key; }
.track { view-transition-name: track; }
.amount-head { view-transition-name: amount; }
/* The modal is one layer across a change of page: submitting shows it
   over the form, and the next page arrives with it already showing the
   check, so the dark backdrop never drops out in between. */
.busy { view-transition-name: busy; }
.toast { view-transition-name: toast; }
details.modal > summary.morph-source { view-transition-name: dialog; }
.more.modal[open] > .dialog { view-transition-name: dialog; }

/* A change within the page (the modal, the dialog, the theme) is one
   picture changing: the page's own names would lift the rail, the steps
   and the title above the modal's backdrop while it fades in. */
:root.local-morph .rail, :root.local-morph .page-head h1, :root.local-morph .crumbs, :root.local-morph .steps,
:root.local-morph .tabs, :root.local-morph .track, :root.local-morph .amount-head, :root.local-morph .lang-pick,
:root.local-morph .auth-art { view-transition-name: none; }
/* The sign-in card changing its content in place: the box grows or shrinks
   smoothly, its old words fade out and the new ones in, both held at the
   top and at their own size, never stretched. */
:root.local-morph .auth-card { view-transition-name: auth-card; }
::view-transition-old(auth-card), ::view-transition-new(auth-card) { width: 100%; height: 100%; object-fit: none; object-position: top center; }
::view-transition-old(auth-card) { animation: .14s ease both fade-out; }
::view-transition-new(auth-card) { animation: .24s ease .08s both fade; }
::view-transition-group(*) { animation-duration: .32s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(root) { animation: .18s ease both fade-out; }
::view-transition-new(root) { animation: .22s ease both fade; }
/* The card keeps its content steady while its box reshapes: the old text
   fades fast, the new one comes in over it. */
::view-transition-old(dialog) { animation: .14s ease both fade-out; }
::view-transition-new(dialog) { animation: .24s ease .06s both fade; height: 100%; object-fit: none; object-position: 50% 50%; }
/* The theme switch is a circle opening from the switch, as in the design:
   no crossfade under it. */
:root.theme-reveal::view-transition-old(root), :root.theme-reveal::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
/* The arcs behind the sign-in pages carry on from one page to the next:
   no fade, the new page's drawing simply takes over where the old one was.
   The card fades with the page rather than reshaping, which shifted its
   contents as it grew. */
::view-transition-old(auth-art) { display: none; }
::view-transition-new(auth-art) { animation: none; }
:root.morphing .auth-card { animation: none; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
/* Arriving at a sign-in page swaps it in place, even when the script is not
   running yet to skip the transition: no crossfade of the card. */
:root:has(.auth)::view-transition-old(root) { display: none; }
:root:has(.auth)::view-transition-new(root) { animation: none; }

/* Deleting the draft, beside its status at the head of every step, and the
   drafts ticked in the list. Both open the same dialog: what deleting does,
   and the reason it asks for. */
.page-head .side .badge { height: 32px; background: var(--s1); }
.page-head .side details.more > summary { height: 32px; padding: 0 12px; border-radius: 999px; background: transparent; color: var(--mut); font-size: 12.5px; transition: background .15s ease, color .15s ease, opacity .15s ease; }
.page-head .side details.more > summary:hover { background: var(--red-soft); color: var(--red); }
.page-head .side details.more > summary .i { font-size: 14px; }
.page-head .side details.more[open] > summary { margin-bottom: 0; }
.more.modal .dialog { white-space: normal; }
.dialog-head { display: flex; flex-direction: column; gap: 6px; }
.dialog-head strong { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.dialog-head p { color: var(--mut); font-size: 13.5px; font-weight: 500; line-height: 1.5; }

/* A dark bar floating at the foot of the window with what can be done to
   the drafts ticked in the list. It shows by CSS as soon as one is ticked,
   with or without the script. */
.floatbar { position: sticky; bottom: 24px; z-index: 60; display: flex; justify-content: center; margin-top: 24px; pointer-events: none; }
.floatbar.picks { display: none; }
main:has(.pick input[form="delete-drafts"]:checked) .floatbar.picks { display: flex; }
.floatbar-bar { display: flex; align-items: center; gap: 6px; padding: 7px 7px 7px 20px; border-radius: 999px; background: var(--inv); color: #fff; box-shadow: 0 18px 48px rgba(15, 18, 24, .28); pointer-events: auto; animation: rise .2s ease backwards; }
.floatbar-count { margin-right: 10px; font-size: 14px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.floatbar-ghost { height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: rgba(255, 255, 255, .82); font: inherit; font-size: 13.5px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background .15s ease, color .15s ease; }
.floatbar-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.floatbar .floatbar-main, .floatbar details.more > summary.floatbar-main { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 20px; border-radius: 999px; background: var(--red); color: #fff; font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: background .15s ease, opacity .15s ease; }
.floatbar .floatbar-main:hover, .floatbar details.more > summary.floatbar-main:hover { background: var(--red-h); color: #fff; }
.floatbar .floatbar-main.dim { opacity: .5; }
.floatbar details.more > summary .i { font-size: 15px; }
.floatbar details.more[open] > summary { margin-bottom: 0; }
.floatbar .dialog { color: var(--ink); }

/* A row of the list is a link all over, with a box to tick a draft that sits
   above the link. */
.row { position: relative; }
.row-first { display: flex; align-items: center; gap: 12px; min-width: 0; }
.row-link { color: inherit; }
.row-link::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.row:has(.row-link:hover) { background: var(--s1); }
.row:has(.row-link:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
.row-link:focus-visible { outline: none; }
.check.pick { position: relative; z-index: 1; margin: -8px; padding: 8px; }
.check.pick input { width: 20px; height: 20px; margin: 0; border-radius: 7px; }
.check.pick input:indeterminate { border-color: var(--red); background: var(--red); }
.check.pick input:indeterminate::after { content: ""; width: 9px; height: 2px; background: #fff; }
.row.picked, .row:has(.pick input:checked) { background: var(--red-soft); }

/* The steps after the data, before the data is complete. */
.step.locked { cursor: not-allowed; }

/* The check a page arrives with after submitting: it shows, then goes by
   itself, with or without the script. With motion reduced there is no
   animation to end it, so it is not shown at all. */
.busy.auto { animation: fade-out .26s ease 1.9s forwards; pointer-events: none; }
.busy.auto .busy-card { animation: pop-out .26s ease 1.9s forwards; }
@media (prefers-reduced-motion: reduce) { .busy.auto { display: none; } }
.check input:indeterminate { border-color: var(--red); background: var(--red); }
.check input:indeterminate::after { content: ""; width: 8px; height: 2px; border-radius: 1px; background: #fff; }

/* The conversation with Opein: the same two columns as the invoice's other
   sections, how many messages under the heading. Each message a bubble
   beside a round initial, Opein's tinted red with its name in red; the pill
   to write in at the foot, its round button grey until there is something
   to send. */
.panel + .comments { margin-top: 12px; }
.notes-count { color: var(--mut); font-size: 12.5px; font-weight: 600; }
.thread { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.note-list { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.note { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; animation: rise .2s ease backwards; }
.note-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--s4); color: var(--ink2); font-size: 12.5px; font-weight: 700; }
.note.from-finance .note-avatar { background: var(--red); color: #fff; }
.note-bubble { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 12px 16px 14px; border-radius: 4px 16px 16px 16px; background: var(--bg); }
.note.from-finance .note-bubble { background: var(--red-soft); }
.note-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.note-meta strong { color: var(--ink); font-size: 13px; font-weight: 700; }
.note.from-finance .note-meta strong { color: var(--red); }
.note-meta time { color: var(--mut); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.note-text { color: var(--ink); font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.notes-empty { color: var(--mut); font-size: 13.5px; }
.composer { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 0; }
.composer-pill { display: flex; align-items: flex-end; gap: 10px; padding: 8px 8px 8px 18px; border-radius: 22px; background: var(--bg); box-shadow: 0 1px 2px rgba(20,24,32,.06); transition: box-shadow .15s ease; }
.composer-pill:focus-within { box-shadow: 0 0 0 2px var(--red); }
.composer-pill.bad { box-shadow: 0 0 0 2px var(--red); }
.composer-pill textarea { flex: 1; min-width: 0; min-height: 40px; max-height: 200px; padding: 9px 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14px; line-height: 1.5; resize: none; }
.composer-pill textarea::placeholder { color: var(--mut); }
.composer-send { display: grid; flex: 0 0 auto; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--red); color: #fff; font-size: 17px; cursor: pointer; transition: background .15s ease; }
.composer-send:hover { background: var(--red-h); }
.composer-send[aria-busy="true"] { pointer-events: none; }
.composer-send[aria-busy="true"] .i { display: none; }
.composer-send[aria-busy="true"]::before { content: ""; width: 16px; height: 16px; box-sizing: border-box; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
/* A region on its way to the next answer dims what it will replace. */
[data-morph] .rows { transition: opacity .15s ease; }
[data-morph][aria-busy="true"] .rows { opacity: .55; }
/* While a search is on its way the rows show their outline: each cell a
   bar that shimmers, the words and icons hidden under it. */
[data-morph].searching .rows { opacity: 1; }
[data-morph].searching .rows .row { pointer-events: none; }
[data-morph].searching .rows .row > :not(:first-child) { position: relative; color: transparent; }
[data-morph].searching .rows .row > :not(:first-child) * { visibility: hidden; }
[data-morph].searching .rows .row > :not(:first-child)::after { content: ""; position: absolute; top: 50%; left: 0; width: 70%; height: 12px; margin-top: -6px; border-radius: 6px; background: linear-gradient(90deg, var(--s1) 0%, var(--s4) 50%, var(--s1) 100%) 0 0 / 200% 100%; animation: shimmer 1.1s linear infinite; }
[data-morph].searching .rows .row > .num::after { right: 0; left: auto; width: 76px; }
[data-morph].searching .rows .row > .row-main::after { width: 55%; height: 14px; }
.composer-pill:has(textarea:placeholder-shown) .composer-send { background: var(--mut2); cursor: default; }
.composer-hint { padding-left: 18px; color: var(--mut); font-size: 12.5px; }
.composer .err { padding-left: 18px; }
@media (max-width: 720px) { .composer-hint { display: none; } }
.page-head .side .side-link { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--s1); color: var(--ink2); font-size: 12.5px; font-weight: 600; transition: background .15s ease, color .15s ease; }
.page-head .side .side-link:hover { background: var(--s4); color: var(--ink); }
.page-head .side .side-link .i { font-size: 14px; }

/* A status and how many invoices stand in it. */
/* A chart with nothing to show yet keeps its months and its axis. */
.chart-note { margin-top: 10px; color: var(--mut); font-size: 12.5px; font-weight: 500; }

/* The invoice list's head: what is on its way to being paid and the drafts
   left, side by side; the statuses as tabs underlined in red; each row the
   number over its order, and the status as an icon and a word in its
   colour. */
.list-tabs { display: flex; gap: 24px; margin-bottom: 24px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.list-tabs a { flex: 0 0 auto; display: inline-flex; align-items: center; height: 44px; margin-bottom: -1px; padding: 0 2px; border-bottom: 2px solid transparent; color: var(--ink3); font-size: 14px; font-weight: 600; white-space: nowrap; transition: color .15s ease, border-color .15s ease; }
.list-tabs a:hover { color: var(--ink); }
.list-tabs a[aria-current="page"] { border-bottom-color: var(--red); color: var(--red); }
.toolbar .filters > summary.on { background: var(--red); color: #fff; }
.filters > summary .count { display: grid; min-width: 20px; height: 20px; margin-left: 8px; padding: 0 6px; box-sizing: border-box; place-items: center; border-radius: 999px; background: var(--bg); color: var(--red); font-size: 11.5px; font-weight: 700; }
.toolbar .filters-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: min(400px, calc(100vw - 48px)); padding: 20px; border-radius: 18px; }
.filter-group { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.filter-group > span { margin-bottom: 6px; color: var(--mut); font-size: 12px; font-weight: 600; }
.filter-group a { display: flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 10px; color: var(--ink); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.filter-group a:hover { background: var(--s2); }
.filter-group a[aria-current="true"] { background: var(--red-soft); color: var(--red); font-weight: 700; }
.filter-range { grid-column: 1 / -1; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.filter-range > span { margin-bottom: 0; }
.range-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.range-fields label { display: flex; flex-direction: column; gap: 5px; min-width: 0; color: var(--ink3); font-size: 12px; font-weight: 600; }
.range-fields .input { height: 40px; padding: 0 12px; border-radius: 10px; font-size: 13.5px; }
.filter-range .btn { justify-self: start; align-self: flex-start; }
.filters-clear { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; color: var(--red); font-size: 13px; font-weight: 600; }
.filters-clear:hover { background: var(--red-soft); }
.row-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.row-main .row-link { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.row-main .row-link .i { flex: 0 0 auto; color: var(--red); font-size: 14px; opacity: 0; transform: translate(-3px, 3px); transition: opacity .15s ease, transform .15s ease; }
.row:hover .row-main .row-link .i, .row-main .row-link:focus-visible .i { opacity: 1; transform: none; }
.row-sub { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink3); font-size: 12.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.row-sub > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub .faint { color: var(--mut); }
.row-tag { flex: 0 0 auto; padding: 1px 8px; border-radius: 999px; background: var(--bg); color: var(--ink3); font-size: 11.5px; font-weight: 600; }
.state { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 8px; padding-left: 4px; color: var(--ink2); font-size: 13px; font-weight: 700; }
.state .i { justify-self: center; font-size: 16px; }
.state > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.state.draft { color: var(--mut); }
.state.approved, .state.paid { color: var(--green); }
.state.rejected { color: var(--red); }
@media (max-width: 720px) {
  .toolbar .filters-menu { grid-template-columns: 1fr; }
}

/* Analytics. Where things stand: four tiles, each status with its icon,
   how many and what they add up to; what the status means shows on hover
   or focus. Then the trend under a rule: its choices as pills on the right,
   the year's figure and how it compares, and the bars, the one under the
   pointer lit and the others faded. */
.stats-now .section-title { margin: 0 0 12px; font-size: 15px; }
/* As the start page has them: flat cards, the figure large, a drawing in
   the corner; under the pointer only the surface changes. */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 112px; padding: 18px 20px; border-radius: 18px; background: var(--s2); outline: 0; }
.stat:hover, .stat:focus-visible { background: var(--s1); }
.stat-k { position: relative; z-index: 1; color: var(--ink3); font-size: 13px; font-weight: 600; }
.stat-n { position: relative; z-index: 1; font-size: 32px; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.stat-n.faint { color: var(--mut); }
.stat.rejected .stat-n:not(.faint) { color: var(--red); }
/* The drawing is clipped to the card by its own box, not the card's
   overflow, which would cut the tooltip too. */
.stat .draw { position: absolute; right: 0; bottom: 0; width: 108px; height: 76px; clip-path: inset(0 round 0 0 18px 0); }
.stat.approved .draw .accent { stroke: var(--green); }
.stat-tip { position: absolute; top: calc(100% + 8px); left: 0; z-index: 20; display: none; flex-direction: column; gap: 4px; width: 240px; padding: 11px 13px; box-sizing: border-box; border-radius: 12px; background: var(--inv); color: #fff; box-shadow: 0 14px 36px rgba(15,18,24,.22); pointer-events: none; }
.stat:hover .stat-tip, .stat:focus-visible .stat-tip { display: flex; animation: rise .12s ease both; }
.stat-tip strong { font-size: 12.5px; font-weight: 700; }
.stat-tip span { color: rgba(255,255,255,.8); font-size: 12px; line-height: 1.45; }
.evolution { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; padding: 22px 24px 24px; border-radius: 18px; background: var(--s2); }
.chart-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px 0 12px; text-align: center; }
.chart-empty .draw { width: 132px; height: auto; }
.evo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.evo-head h2 { font-size: 15px; }
.evo-picks { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.evo-figure { display: flex; align-items: baseline; gap: 10px 16px; flex-wrap: wrap; min-height: 30px; }
.evo-figure strong { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.evo-figure > span { color: var(--ink3); font-size: 13px; font-weight: 600; }
.evo-delta { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; }
.evo-figure .evo-delta.good { color: var(--green); }
.evo-figure .evo-delta.bad { color: var(--red); }
.evo-body { display: flex; flex-direction: column; gap: 20px; animation: fade .25s ease both; }
.evolution .chart .plot { height: 200px; }
/* The amounts by currency, folded under the tiles: a quiet line that
   opens into one line per currency, each amount in its status's column,
   on the same grid as the tiles and where their count starts. */
.by-currency { margin-top: 8px; }
.by-currency summary { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 10px; margin-left: 4px; border-radius: 999px; color: var(--ink3); font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; transition: background .15s ease, color .15s ease; }
.by-currency summary::-webkit-details-marker { display: none; }
.by-currency summary:hover { background: var(--s2); color: var(--ink); }
.bc-title { display: inline-flex; align-items: center; gap: 6px; }
.bc-title .i { font-size: 14px; transform: rotate(-90deg); transition: transform .15s ease; }
.by-currency[open] .bc-title .i { transform: none; }
.bc-count { color: var(--mut); font-weight: 500; }
.by-currency table, .by-currency tbody { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 12px; }
.by-currency table { margin-top: 4px; animation: fade .2s ease both; }
.by-currency tbody { grid-column: 1 / -1; }
.by-currency tr { display: contents; }
.by-currency td { min-width: 0; padding: 9px 16px; border-top: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
/* Each amount says, on hover or focus, how many invoices it adds up. */
.bc-cell { position: relative; display: inline-block; max-width: 100%; border-radius: 6px; outline: 0; cursor: default; }
.bc-cell:focus-visible { box-shadow: 0 0 0 2px var(--ink3); }
.bc-cell:hover .stat-tip, .bc-cell:focus-visible .stat-tip { display: flex; animation: rise .12s ease both; }
.bc-cell .stat-tip { white-space: normal; font-weight: 500; }
.by-currency tr:first-child td { border-top: 0; }
.by-currency td .num { font-variant-numeric: tabular-nums; }
.by-currency td .faint { color: var(--mut2); font-weight: 500; }
.bc-code { margin-left: 2px; color: var(--mut); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
@media (max-width: 720px) {
  .by-currency { overflow-x: auto; }
  .by-currency table { min-width: 560px; }
}
/* The scale: two quiet lines with their figures at the left, and last
   year's bars in grey behind this year's. The figures sit at the plot's
   top line and its half, always the same two heights (see charts.go). */
.plot-wrap { position: relative; padding-left: 52px; }
.chart:has(.plot-wrap) .months { padding-left: 52px; }
.chart .tick { stroke: var(--line); stroke-width: 1px; stroke-dasharray: 3 4; }
.chart .ticks span { position: absolute; left: 0; width: 44px; z-index: 1; transform: translateY(-50%); text-align: right; color: var(--mut); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none; }
.chart .ticks span:nth-child(1) { top: 7.41%; }
.chart .ticks span:nth-child(2) { top: 53.7%; }
.chart .ghost { stroke: var(--s4); stroke-width: 22px; stroke-linecap: round; }
.chart.wide .ghost { stroke-width: 64px; }
.chart-legend { display: flex; justify-content: flex-end; gap: 16px; margin: 0; color: var(--ink3); font-size: 12px; font-weight: 600; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--red); }
.chart-legend .was::before { background: var(--s4); }
/* On the evolution's card the year before is drawn in the ink, faintly:
   the card's surface is the grey the bars used to be. */
.evolution .chart .ghost { stroke: color-mix(in oklab, var(--ink) 12%, transparent); }
.evolution .chart-legend .was::before { background: color-mix(in oklab, var(--ink) 12%, transparent); }
.chart .bar { stroke-width: 22px; }
.chart.wide .bar { stroke-width: 64px; }
.chart .hit { fill: transparent; transition: fill .12s ease; }
.chart .slot:hover .hit { fill: var(--s2); }
.chart .bar { transition: stroke .12s ease, opacity .12s ease; }
.chart .plot:has(.slot:hover) .bar { opacity: .35; }
.chart .plot .slot:hover .bar { opacity: 1; stroke: var(--red-h); }
.chart-tip { position: fixed; z-index: 60; display: flex; flex-direction: column; gap: 2px; padding: 8px 11px; border-radius: 10px; background: var(--inv); color: #fff; font-size: 12px; white-space: nowrap; pointer-events: none; }
.chart-tip span { color: rgba(255,255,255,.7); }
.chart-tip strong { font-weight: 700; font-variant-numeric: tabular-nums; }
.chart-tip em { color: rgba(255,255,255,.6); font-style: normal; font-variant-numeric: tabular-nums; }
.chart-tip em[hidden] { display: none; }
.sk { display: inline-block; border-radius: 8px; background: linear-gradient(90deg, var(--s1) 0%, var(--s4) 50%, var(--s1) 100%); background-size: 200% 100%; animation: shimmer 1.1s linear infinite; }
.sk-figure { width: 180px; height: 26px; }
.sk-label { width: 120px; height: 14px; border-radius: 6px; }
.sk-bars { display: flex; align-items: flex-end; justify-content: space-around; height: 200px; border-bottom: 1px solid var(--line2); }
.sk-bar { flex: 0 0 22px; height: 60%; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, var(--s4) 0%, var(--s1) 100%); animation: pulse 1.1s ease-in-out infinite; }
.sk-bar:nth-child(3n) { height: 45%; animation-delay: .12s; }
.sk-bar:nth-child(3n+1) { height: 75%; animation-delay: .24s; }
.sk-bar:nth-child(4n) { height: 85%; animation-delay: .36s; }
@keyframes pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Dropdowns: the script draws each select as a button with its choice and
   a chevron, and a list under it, the choice ticked in red; the native
   select stays beside them, hidden, for the form. The pill kind sits in a
   row of choices, as the analytics' trend. Without the script the select
   is drawn the same way and opens the system's list. */
.select.pill { width: auto; height: 36px; padding: 0 34px 0 14px; border: 0; border-radius: 999px; background: var(--s1); color: var(--ink); font-size: 13px; font-weight: 600; }
.select.pill:hover { background: var(--s4); }
.select-wrap:has(.select.pill) > .i, .evo-picks .select-wrap > .i { right: 12px; font-size: 14px; }
.dd { display: block; }
.dd.dd-pill { display: inline-block; }
.dd > .i { display: none; }
.dd-native { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; opacity: 0; pointer-events: none; }
.dd-button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; color: var(--ink); font: inherit; text-align: left; }
.dd-pill .dd-button { width: auto; padding-right: 12px; }
.panel .dd-button, .filters-menu .dd-button { padding-right: 14px; }
.dd-button .dd-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-button .i { flex: 0 0 auto; color: var(--mut); font-size: 14px; transition: transform .15s ease; }
.dd.open .dd-button .i { transform: rotate(180deg); }
.dd.open .dd-button { box-shadow: 0 0 0 1.5px var(--ink3); }
.dd-pill.open .dd-button { box-shadow: none; background: var(--s4); }
.dd-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; display: flex; flex-direction: column; min-width: 100%; max-height: 280px; padding: 4px; overflow-y: auto; box-sizing: border-box; border-radius: 12px; background: var(--bg); box-shadow: 0 12px 32px rgba(15,18,24,.12), 0 0 0 1px var(--line); outline: 0; animation: pop .14s ease both; }
.dd-menu[hidden] { display: none; }
.dd.up .dd-menu { top: auto; bottom: calc(100% + 6px); }
.dd-pill .dd-menu { right: 0; left: auto; min-width: 170px; }
.dd-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; padding: 0 10px; border-radius: 8px; color: var(--ink); font-size: 13.5px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.dd-option.active { background: var(--s2); }
.dd-option[aria-selected="true"] { font-weight: 700; }
.dd-option .i { flex: 0 0 auto; color: var(--red); font-size: 14px; opacity: 0; }
.dd-option[aria-selected="true"] .i { opacity: 1; }
.dd-option[aria-disabled="true"] { color: var(--mut); cursor: default; }

/* The pages before signing in: the card in the middle, the arcs faded
   behind it and cleared around it, the language at the top right, and at
   the foot who makes Iris and its privacy policy. */
.auth { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; min-height: 100vh; min-height: 100dvh; }
.auth-art canvas { opacity: .6; }
.auth-art::after { background: radial-gradient(ellipse 42% 58% at 50% 50%, var(--bg) 30%, transparent 100%); }
.auth-side { grid-column: 1; padding: 88px 24px 32px; }
.auth-card { max-width: 380px; padding: 34px 32px; border-radius: 24px; box-shadow: 0 1px 2px rgba(20, 24, 32, .04), 0 12px 40px rgba(20, 24, 32, .07); }
.auth-card .logo { width: 88px; margin-bottom: 28px; }
.auth-card .lead { margin-top: 8px; }
.auth-card form { margin-top: 24px; }
.lang-pick > summary { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.lang-pick > summary:hover { background: color-mix(in oklab, var(--bg) 88%, transparent); }
.auth-foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 18px; padding: 8px 24px 28px; color: var(--mut); font-size: 12.5px; font-weight: 500; }
.auth-foot > span { display: inline-flex; align-items: center; gap: 6px; }
.auth-foot .logo { width: 46px; height: auto; }
.auth-foot a { color: var(--ink3); font-weight: 600; }
.auth-foot a:hover { color: var(--red); }

/* Home: the arcs only in the top right corner, fading out towards the
   greeting; the quick actions change colour on hover, no box around them. */
.home-art { -webkit-mask-image: radial-gradient(ellipse 75% 120% at 100% 0%, #000 25%, transparent 72%); mask-image: radial-gradient(ellipse 75% 120% at 100% 0%, #000 25%, transparent 72%); -webkit-mask-composite: source-over; mask-composite: add; }
.home-art canvas { opacity: .75; }
.dd-button.dd-empty .dd-value { color: var(--mut); }
/* The phone: its country, flag and calling code, beside the number. */
.phone-row { position: relative; display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 8px; }
.dd-flags .dd-button { justify-content: flex-start; }
.dd-flags .dd-button .dd-value { flex: 1; }
/* The list opens under the whole row, country and number, so it stays
   inside the form however near the edge the row is. */
.phone-row > .phone-country { position: static; }
.phone-row .dd-flags .dd-menu { right: 0; }
.dd-flagged { display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) {
  .row-main .row-link { display: block; overflow: hidden; overflow-wrap: normal; text-overflow: ellipsis; white-space: nowrap; }
  .row-main .row-link .i { display: none; }
}
/* On a phone the status is its icon; the word stays for a screen reader. */
@media (max-width: 480px) {
  .state { grid-template-columns: 18px; padding-left: 0; }
  .state > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
