/* Atlan site base: globals and the parts every page shares (header, menu, footer, PL / EN, buttons, choices, fields,
   messages, dialogs, consent, entrances, focus). Needs tokens.css and fonts.css before it.
   Ported from the website prototype (docs/redesign/website/site.css). The prototype's container queries are media
   queries here, at the same widths: 1160 (the header's sections move into the menu), 760 (the phone pass), 420.
   A page's own layout lives in its area's stylesheet (home.css, gate.css, user.css, staff.css, pages.css). */

/* ---------- globals ---------- */
:root { color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: var(--line-2) var(--void); scrollbar-width: thin; }
/* a drawer or a dialog is open: the page under it stays put */
html.locked { overflow: hidden; scrollbar-gutter: stable; }
body { margin: 0; min-height: 100vh; min-height: 100svh; background: var(--void); color: var(--blush); font: 400 15px/1.5 var(--sans); font-kerning: normal; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
/* on a phone the band above the sticky header keeps the page colour, so nothing scrolls under the system bar */
body::before { content: ""; position: fixed; inset: 0 0 auto; z-index: 30; height: env(safe-area-inset-top, 0px); background: var(--void); pointer-events: none; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button, input { background: none; border: 0; padding: 0; }
button { cursor: pointer; }
button[disabled] { cursor: default; }
input, textarea { caret-color: var(--signal); }
[hidden] { display: none !important; }
/* a dialog is shut until it opens, also where the browser does not know <dialog> (site.js then sets [open]) */
dialog:not([open]) { display: none; }
::selection { background: var(--signal); color: var(--black); }
:focus { outline: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--blush); outline-offset: 2px; }
main:focus-visible { outline: 0; }
.ic { display: block; flex: none; width: 16px; height: 16px; }
/* the logo's SVG carries only a viewBox; its box keeps the word's proportions at any height */
.logo { display: block; width: auto; aspect-ratio: 815.56 / 261.08; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* parts that only work with the script stay out of the page without it */
html:not(.js) [data-needs-js] { display: none !important; }
main section[id], main [id].anchor { scroll-margin-top: calc(var(--hd) + 8px); }

/* the first stop for a keyboard: straight to the page's content */
.skip { position: fixed; z-index: 60; left: max(12px, env(safe-area-inset-left, 0px)); top: max(12px, env(safe-area-inset-top, 0px)); display: inline-flex; align-items: center; height: 40px; padding: 0 16px; background: var(--blush); color: var(--black); font-weight: 650; font-size: 14px; transform: translateY(calc(-100% - 24px)); transition: transform .16s var(--ease-out); }
.skip:focus, .skip:focus-visible { transform: none; outline: 2px solid var(--signal); outline-offset: 2px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin-inline: auto; padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }

/* ---------- type: clean sentences; Expanded Black only for a single word or number ---------- */
.h2 { font-weight: 650; font-size: clamp(30px, 3.5vw, 48px); line-height: 1.06; letter-spacing: -.03em; color: var(--blush); text-wrap: balance; }
.sub { margin-top: 14px; max-width: 46ch; font-size: 17px; line-height: 1.55; color: var(--rose); text-wrap: pretty; }
.mono, code, kbd { font-family: var(--mono); font-size: .92em; letter-spacing: 0; }

/* ---------- buttons: the app's plates ---------- */
/* --b is a plate's edge, --f its face. A secondary action is a filled plate, an icon button stays bare, and only the
   main action of a view gets the cut corner (.pri) */
.btn { --c: var(--blush); --b: var(--line); --f: var(--line); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; background: var(--b); font-weight: 600; font-size: 14px; line-height: 1; color: var(--c); isolation: isolate; white-space: nowrap; transition: transform .12s var(--ease-out); }
.btn::before { content: ""; position: absolute; inset: 1px; z-index: -1; background: var(--f); transition: background-color .12s; }
.btn:hover { --b: var(--lift); --f: var(--lift); }
.btn:active { transform: scale(.97); }
.btn.pri { --c: var(--black); --b: var(--signal); --f: var(--signal); --cap: var(--rose); background: linear-gradient(225deg, var(--cap) 0 12px, var(--b) 0); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
.btn.pri::before { clip-path: polygon(0 0, calc(100% - 9.6px) 0, 100% 9.6px, 100% 100%, 0 100%); }
.btn.pri:hover { --b: var(--signal-hi); --f: var(--signal-hi); }
.btn:focus-visible { outline: 0; --b: var(--blush); --cap: var(--blush); }
.btn:focus-visible::before { inset: 2px; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn.tall { height: 48px; padding: 0 24px; font-size: 15px; }
.btn.full { width: 100%; }
/* a disabled main action loses its rose corner too */
.btn[aria-disabled="true"], .btn[disabled] { pointer-events: none; --c: var(--dust); --b: var(--raise); --f: var(--raise); --cap: var(--raise); }
.btn .ic { width: 16px; height: 16px; }
/* the wait inside a submit keeps its place and its colour */
.btn.busy { pointer-events: none; }
.btn .scan { position: relative; width: 28px; height: 3px; overflow: hidden; background: rgba(0, 0, 0, .22); }
.btn .scan::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 40%; background: var(--black); }
@media (prefers-reduced-motion: no-preference) { .btn .scan::after { animation: scan 1s var(--ease-in-out) infinite; } }
@media (prefers-reduced-motion: reduce) { .btn .scan::after { left: 30%; } }
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.lnk { color: var(--rose); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--signal); text-decoration-thickness: 1px; transition: color .12s; }
.lnk:hover { color: var(--white); }
button.lnk { font-size: inherit; }

/* a segmented choice: currency, plan variant; wraps when it runs out of room */
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; min-height: 38px; padding: 3px; border-radius: var(--r); background: var(--void); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg > button, .seg > a { display: inline-flex; align-items: center; justify-content: center; min-width: 0; height: 32px; padding: 0 12px; border-radius: var(--r-s); font-size: 13.5px; font-weight: 600; color: var(--rose); white-space: nowrap; outline-offset: -2px; font-variant-numeric: tabular-nums; transition: background-color .12s, color .12s; }
.seg > button:hover, .seg > a:hover { color: var(--white); background: var(--raise); }
.seg > [aria-pressed="true"], .seg > [aria-selected="true"], .seg > [aria-current="true"], .seg > [aria-current="page"] { color: var(--white); background: var(--line-2); }
.seg.fill { display: flex; width: 100%; }
.seg.fill > * { flex: 1; }

/* ---------- header ---------- */
.hd { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(12, 3, 6, .84); -webkit-backdrop-filter: blur(16px) saturate(1.7); backdrop-filter: blur(16px) saturate(1.7); box-shadow: inset 0 -1px 0 transparent; transition: box-shadow .2s; }
/* the header gets its hairline once the page moves under it (site.js) */
.hd.down { box-shadow: inset 0 -1px 0 var(--line); }
.hd > .wrap { display: flex; align-items: center; gap: 28px; height: var(--hd); }
.brand { display: block; flex: none; color: var(--signal); transition: color .12s; }
.brand .logo { display: block; width: auto; height: 24px; }
.brand:hover { color: var(--signal-hi); }
.hnav { display: flex; align-items: center; gap: 22px; min-width: 0; }
.hnav a { font-size: 14px; font-weight: 500; color: var(--rose); white-space: nowrap; transition: color .12s; }
.hnav a:hover { color: var(--white); }
.hnav .ext, .ext { display: inline-flex; align-items: center; gap: 5px; }
.hnav .ext .ic { width: 13px; height: 13px; color: var(--dust); }
.hend { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.hend .in { font-size: 14px; font-weight: 600; color: var(--blush); }
.hend .in:hover { color: var(--white); }
.hend .out { display: contents; }
.hend .out button { font-size: 14px; font-weight: 500; color: var(--dust); transition: color .12s; }
.hend .out button:hover { color: var(--white); }

/* PL / EN: no background and no underline, only the active one lights. A POST form, so it works without the script */
.lang { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--dust); }
.lang button { padding: 4px 1px; color: var(--dust); transition: color .12s; }
.lang button:hover { color: var(--white); }
.lang button[aria-current="true"] { color: var(--blush); }
.lang i { font-style: normal; color: var(--line-2); }

/* the menu button: a link to the footer's links without the script, the drawer with it */
.burger { display: none; place-items: center; width: 40px; height: 40px; margin-right: -8px; color: var(--blush); }
.burger span { display: block; width: 20px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
/* below the full nav the landing's sections, the documentation and Discord move into the menu, on every page: at 1160,
   where AI cost would meet the account's buttons */
@media (max-width: 1160px) {
  .hd .hnav { display: none; }
  .hd .burger { display: grid; }
}

/* the menu: the page's sections, then language and the account. A native dialog (showModal), so focus stays in it and
   comes back to the menu button when it closes */
.drawer { position: fixed; inset: 0; z-index: 40; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0 0 env(safe-area-inset-bottom, 0px); border: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--void); color: var(--blush); }
.drawer[open] { display: grid; grid-template-rows: var(--hd) 1fr auto; }
.drawer::backdrop { background: var(--void); }
.drawer .top { display: flex; align-items: center; justify-content: space-between; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); box-shadow: inset 0 -1px 0 var(--line); }
.drawer .x, .dlg .x { display: grid; place-items: center; color: var(--rose); transition: background-color .12s, color .12s; }
.drawer .x { width: 40px; height: 40px; margin-right: -8px; }
.drawer .x .ic { width: 22px; height: 22px; }
.drawer .x:hover { color: var(--white); }
.drawer nav { display: grid; align-content: start; padding: 12px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); }
.drawer nav a { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; font-weight: 800; font-stretch: 112%; font-size: 22px; color: var(--blush); box-shadow: inset 0 -1px 0 var(--line); }
.drawer nav a .ic { width: 18px; height: 18px; color: var(--dust); }
.drawer .foot { display: grid; gap: 10px; padding: 16px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); }
.drawer .foot .lang { justify-self: start; margin-bottom: 8px; font-size: 15px; }
.drawer .foot form:not(.lang) { display: grid; }

/* ---------- entrances: a block's parts rise in, staggered, once (site.js adds .in) ----------
   Hidden only under html.js (set inline in <head>), and never in the landing's hero, so a page without the script
   shows everything and the largest text paints at once. */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-in] > * { opacity: 0; transform: translateY(24px); }
  html.js [data-in].in > * { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); }
  html.js [data-in].in > :nth-child(2) { transition-delay: 70ms; }
  html.js [data-in].in > :nth-child(3) { transition-delay: 140ms; }
  html.js [data-in].in > :nth-child(4) { transition-delay: 210ms; }
  html.js [data-in].in > :nth-child(5) { transition-delay: 280ms; }
  html.js [data-in].in > :nth-child(n+6) { transition-delay: 350ms; }
  html.js [data-in].now > * { transition: none; }
  /* a figure or a word enters whole */
  html.js figure[data-in], html.js [data-in].whole { opacity: 0; transform: translateY(32px); }
  html.js figure[data-in] > *, html.js [data-in].whole > * { opacity: 1; transform: none; }
  html.js figure[data-in].in, html.js [data-in].whole.in { opacity: 1; transform: none; transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); }
  html.js figure[data-in].now, html.js [data-in].whole.now { transition: none; }
  html.js .hero [data-in], html.js .hero [data-in] > * { opacity: 1; transform: none; }
}

/* ---------- messages from the server ----------
   Quiet when it is good news, white when the user must act (the app's rule: white means a problem). */
.flashes { display: grid; gap: 10px; padding-block: 20px 0; }
.flashes:empty { display: none; }
.flash { display: flex; align-items: flex-start; gap: 10px; max-width: 760px; padding: 12px 14px; border-radius: var(--r); background: var(--raise); font-size: 14px; line-height: 1.45; color: var(--blush); }
.flash .ic { margin-top: 1px; color: var(--rose); }
.flash.ok { background: rgba(255, 10, 60, .1); box-shadow: inset 0 0 0 1px var(--line-2); }
.flash.ok .ic { color: var(--signal-hi); }
.flash.bad { background: none; box-shadow: inset 0 0 0 1px var(--white); color: var(--white); }
.flash.bad .ic { color: var(--white); }
.flash > span { min-width: 0; overflow-wrap: anywhere; }

/* ---------- fields: square, 44 px, outlined at 3:1 ---------- */
.form { display: grid; gap: 16px; }
.lf { display: grid; align-content: start; gap: 7px; min-width: 0; }
.lf > .lab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13.5px; font-weight: 550; color: var(--rose); }
.lf > .lab small { font-size: 12.5px; font-weight: 450; color: var(--dust); }
.lab a { font-size: 13px; font-weight: 500; }
.fld { display: flex; align-items: center; width: 100%; height: 44px; padding: 0 12px; background: var(--void); box-shadow: inset 0 0 0 1px var(--field); font-size: 15px; font-weight: 500; color: var(--blush); transition: box-shadow .12s; }
.fld input { flex: 1; width: 100%; min-width: 0; height: 100%; outline: 0; }
.fld input::placeholder, .fld textarea::placeholder { color: var(--dust); font-weight: 400; opacity: 1; }
.fld:hover { box-shadow: inset 0 0 0 1px var(--rose); }
/* focus takes 2 px, as every other focus does */
.fld:focus-within { box-shadow: inset 0 0 0 2px var(--blush); }
.lf.err .fld { box-shadow: inset 0 0 0 1px var(--white); }
.lf.err .fld:focus-within { box-shadow: inset 0 0 0 2px var(--white); }
/* a field error: its icon, then the message as one line of text that wraps */
.ferr { position: relative; display: block; padding-left: 21px; font-size: 13px; line-height: 1.4; font-weight: 550; color: var(--white); }
.ferr .ic { position: absolute; left: 0; top: 2px; width: 14px; height: 14px; }
.help { display: grid; gap: 3px; font-size: 12.5px; line-height: 1.45; color: var(--dust); }
.help li { position: relative; padding-left: 12px; }
.help li::before { content: ""; position: absolute; left: 0; top: 7px; width: 4px; height: 4px; background: var(--line-2); }

/* a square tick, the app's own */
.chk { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--blush); cursor: pointer; }
.chk input { appearance: none; -webkit-appearance: none; flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin: 1px 0 0; background: var(--void); box-shadow: inset 0 0 0 1px var(--field); cursor: pointer; transition: background-color .12s, box-shadow .12s; }
.chk input::after { content: ""; width: 9px; height: 5px; margin-top: -2px; border-left: 2px solid var(--black); border-bottom: 2px solid var(--black); transform: rotate(-45deg) scale(0); transition: transform .14s var(--ease-out); }
.chk input:checked { background: var(--signal); box-shadow: none; }
.chk input:checked::after { transform: rotate(-45deg) scale(1); }
.chk input:focus-visible { outline: 2px solid var(--blush); outline-offset: 2px; }
.chk small { display: block; color: var(--dust); font-size: 12.5px; }

/* a switch: a checkbox drawn as the app's toggle (consent categories) */
.sw { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 40px; height: 22px; margin: 0; border-radius: 11px; background: var(--line-2); cursor: pointer; transition: background-color .15s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--rose); transition: transform .22s var(--ease-out), background-color .15s; }
.sw:checked { background: var(--signal); }
.sw:checked::after { transform: translateX(18px); background: var(--black); }
.sw:disabled { cursor: default; opacity: .55; }
.sw:focus-visible { outline: 2px solid var(--blush); outline-offset: 2px; }

/* ---------- dialogs: native <dialog>, opened with showModal ---------- */
.dlg { position: fixed; inset: 0; width: min(calc(100% - 32px), 480px); height: fit-content; max-width: none; max-height: calc(100% - 32px); margin: auto; padding: 28px; border: 0; border-radius: var(--r-l); overflow-y: auto; overscroll-behavior: contain; background: var(--raise); color: var(--blush); box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 80px rgba(0, 0, 0, .6); }
.dlg[open] { display: grid; gap: 14px; }
.dlg::backdrop { background: rgba(12, 3, 6, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dlg h2 { padding-right: 36px; font-weight: 800; font-stretch: 112%; font-size: 21px; line-height: 1.2; color: var(--blush); text-wrap: balance; }
.dlg p { font-size: 15px; line-height: 1.55; color: var(--rose); }
.dlg p.det { font-size: 13.5px; color: var(--dust); }
.dlg .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.dlg .x { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: var(--r); }
.dlg .x:hover { background: var(--line); color: var(--white); }

/* ---------- consent: the banner and its settings ---------- */
.cookie { position: fixed; z-index: 45; left: max(16px, env(safe-area-inset-left, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); display: grid; gap: 10px; width: min(440px, calc(100% - 32px)); padding: 20px; border-radius: var(--r-l); background: var(--raise); box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 60px rgba(0, 0, 0, .55); }
.cookie h2 { font-weight: 800; font-stretch: 112%; font-size: 16px; color: var(--blush); }
.cookie p { font-size: 13.5px; line-height: 1.5; color: var(--rose); }
.cookie .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 4px; }
.cookie .acts .lnk { margin-left: 4px; font-size: 13.5px; }
/* a row per category with its switch */
.opts { display: grid; margin-top: 4px; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; box-shadow: inset 0 1px 0 var(--line); cursor: pointer; }
.opt b { display: block; font-weight: 650; font-size: 15px; color: var(--blush); }
.opt small { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: var(--rose); }

/* ---------- footer: the logo, the page, the account and help, then the legal line ---------- */
.ft { position: relative; background: var(--void); }
.ft > .wrap { padding-top: 72px; }
.ftgrid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.fbrand { display: grid; align-content: start; justify-items: start; gap: 28px; }
.fbrand .brand .logo { height: 28px; }
.ftgrid h2 { font-weight: 650; font-size: 14px; color: var(--blush); }
.ftgrid ul { display: grid; gap: 12px; margin-top: 18px; }
.ftgrid ul a { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; color: var(--rose); transition: color .12s; }
.ftgrid ul a:hover { color: var(--white); }
.ftgrid ul a .ic { width: 13px; height: 13px; color: var(--dust); }
.flegal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; margin-top: 80px; padding-block: 26px max(32px, env(safe-area-inset-bottom, 0px)); box-shadow: inset 0 1px 0 var(--line); }
.flegal small { font-size: 13px; color: var(--dust); }
.flinks { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.flinks a, .flinks button { font-size: 13.5px; color: var(--dust); transition: color .12s; }
.flinks a:hover, .flinks button:hover { color: var(--white); }

/* ---------- narrower screens ---------- */
@media (max-width: 760px) {
  .wrap { --gut: 16px; }
  .hd > .wrap { gap: 16px; }
  .hend { gap: 14px; }
  .hend .lang, .hend .out, .hend .dash, .hend .pri { display: none; }
  .ft > .wrap { padding-top: 56px; }
  .ftgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
  .fbrand { grid-column: 1 / -1; grid-auto-flow: column; align-items: center; justify-content: space-between; }
  .flegal { flex-direction: column-reverse; align-items: flex-start; margin-top: 56px; }
  /* 16 px keeps iOS from zooming into a field on focus, and the field is a full thumb's height */
  .fld { height: 48px; font-size: 16px; }
  .fld input.mono { font-size: inherit; }
}
@media (max-width: 420px) { .dlg .acts .btn { flex: 1 1 100%; } }

/* ---------- phones: every control a thumb can hit (44 px), looking as it does ---------- */
@media (max-width: 760px) {
  .btn, .btn.sm { height: 44px; }
  .seg { min-height: 44px; }
  .seg > button, .seg > a { position: relative; height: 38px; }
  .seg > button::after, .seg > a::after { content: ""; position: absolute; inset: -3px -1px; } /* the hit area covers the frame's padding */
  .brand { display: flex; align-items: center; min-height: 44px; }
  .burger, .drawer .x { width: 44px; height: 44px; margin-right: -10px; }
  .dlg .x::after { content: ""; position: absolute; inset: -5px; }
  /* links on a line of their own take a taller hit area with no change to the layout */
  .lab a { padding-block: 13px; margin-block: -13px; }
  .chk { padding-block: 12px; margin-block: -12px; }
  .hend .in { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
  .lang { gap: 0; }
  .lang button { min-width: 44px; min-height: 44px; padding-inline: 6px; }
  .lang button:first-of-type { margin-left: -12px; }
  .lang button:last-of-type { margin-right: -12px; } /* the letters keep their place */
  .ftgrid ul { gap: 0; margin-top: 8px; }
  .ftgrid ul a { min-width: 44px; min-height: 44px; }
  .flinks { gap: 0 24px; }
  .flinks a, .flinks button, .cookie .acts .lnk { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
}

/* ---------- Windows high contrast: lines drawn with box-shadow vanish there, so they become borders ---------- */
@media (forced-colors: active) {
  .btn, .seg, .fld, .flash, .dlg, .cookie, .skip { outline: 1px solid CanvasText; outline-offset: -1px; }
  .btn.pri, .btn.pri::before { clip-path: none; }
  .btn:focus-visible, .fld:focus-within { outline: 2px solid Highlight; outline-offset: 2px; }
  .seg > [aria-pressed="true"], .seg > [aria-selected="true"], .seg > [aria-current="true"], .seg > [aria-current="page"] { outline: 2px solid Highlight; outline-offset: -2px; }
  .lang button[aria-current="true"] { text-decoration: underline; }
  .hd, .drawer .top, .drawer nav a, .opt, .flegal { border-bottom: 1px solid CanvasText; }
  .sw, .chk input { appearance: auto; -webkit-appearance: auto; }
  .sw::after, .chk input::after { content: none; }
  .burger span { forced-color-adjust: none; background: CanvasText; box-shadow: 0 -6px 0 CanvasText, 0 6px 0 CanvasText; }
}

/* ---------- codes: one field that posts the whole code, six cells drawn over it by otp.js (sign-in and panel) ---------- */
/* without the script it is a plain field, set like a code */
.fld.code input { font-weight: 700; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
/* with it, the field already takes the cells' height, so nothing moves when they appear */
html.js .fld[data-otp] { height: 56px; }
.otp { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.otp .cell { display: grid; place-items: center; height: 56px; border-radius: var(--r); background: var(--void); box-shadow: inset 0 0 0 1px var(--field); font-weight: 800; font-stretch: 112%; font-size: 22px; line-height: 1; color: var(--blush); font-variant-numeric: tabular-nums; transition: box-shadow .12s; }
.otp:hover .cell { box-shadow: inset 0 0 0 1px var(--rose); }
/* the cell the next digit goes to; an empty one shows the caret */
.otp .cell.on { box-shadow: inset 0 0 0 2px var(--blush); }
.otp .cell.on:empty::after { content: ""; width: 2px; height: 24px; background: var(--signal); }
@media (prefers-reduced-motion: no-preference) {
  .otp .cell.on:empty::after { animation: caret 1.06s steps(1) infinite; }
}
@keyframes caret { 50% { opacity: 0; } }
.lf.err .otp .cell { box-shadow: inset 0 0 0 1px var(--white); }
.lf.err .otp .cell.on { box-shadow: inset 0 0 0 2px var(--white); }
/* the real field lies over the cells, invisible but there for typing, pasting, the keyboard's code and the reader */
.otp input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; color: transparent; -webkit-text-fill-color: transparent; caret-color: transparent; font-size: 16px; letter-spacing: 0; outline: 0; cursor: text; }
.otp input::selection { background: transparent; color: transparent; }
/* an autofilled field keeps out of sight too (two rules: a browser that misses one selector drops the whole list) */
.otp input:-webkit-autofill { -webkit-text-fill-color: transparent; transition: background-color 600000s 0s; }
.otp input:autofill { -webkit-text-fill-color: transparent; transition: background-color 600000s 0s; }
@media (forced-colors: active) {
  .otp .cell { outline: 1px solid CanvasText; outline-offset: -1px; }
  .otp .cell.on { outline: 2px solid Highlight; outline-offset: -2px; }
  .otp .cell.on:empty::after { forced-color-adjust: none; background: Highlight; }
}

/* Google on the sign-in pages and the Account page's "Connect Google" (prototype v30, site.css): Atlan's filled button,
   as the app draws it (owner 2026-11-14: "ten prostokąt skoro guideline mowi tylko o kolorze loga google"). Google's
   guidelines bind only the mark: its four colours, never monochrome, and on a button of another colour on a white
   background, so the G sits on a white disc, 16 px in 24 px, 10 px to the label. */
.btn.google { gap: 10px; }
.btn.google .gw { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; }
.btn.google .gw .ic { width: 16px; height: 16px; }
