/* Ninja Builder client area (account.ninjabuilder.app): the sign-in pages, checkout and the
   signed-in portal. The website's look: navy surfaces, azure accent, Bricolage Grotesque
   headings. Light or dark follows the system. No inline styles (strict CSP). */
@font-face { font-family: "Bricolage Grotesque"; src: url(/static/bricolage.woff2) format("woff2"); font-weight: 600 800; font-display: swap; }
:root {
  color-scheme: light;
  --bg: #f1f4fd; --bg-elev: #ffffff; --bg-sunk: #e9edf9; --bg-hover: #f4f6fd;
  --line: #d5dcf3; --line-strong: #b9c3e6; --grid-line: rgba(16, 20, 47, .055);
  --text: #10142f; --soft: #3d4677; --muted: #5d6590;
  --accent: #0b6fc0; --accent-ink: #ffffff; --accent-soft: rgba(11, 116, 200, .10); --accent-line: rgba(11, 116, 200, .40); --accent-text: #0a5fa6;
  --ok: #0b7f59; --ok-soft: rgba(13, 154, 108, .12); --err: #b8003b; --err-soft: rgba(196, 0, 63, .09); --err-solid: #c4003f; --warn: #8a5600; --warn-soft: rgba(184, 115, 10, .13);
  --radius: 14px; --radius-sm: 9px; --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(16, 20, 47, .05), 0 6px 20px rgba(16, 20, 47, .05);
  --shadow-pop: 0 20px 48px rgba(16, 20, 47, .18);
  --fs-xs: 12px; --fs-sm: 13px; --fs-md: 15px; --fs-lg: 18px; --fs-xl: 24px; --fs-2xl: 30px; --fs-hero: 34px;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --gut: 16px; --page: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0b0e22; --bg-elev: #121638; --bg-sunk: #0d1130; --bg-hover: #171c46;
    --line: rgba(132, 146, 224, .2); --line-strong: rgba(132, 146, 224, .34); --grid-line: rgba(132, 146, 224, .075);
    --text: #eef1fb; --soft: #b4bce0; --muted: #959ec9;
    --accent: #1fb2ff; --accent-ink: #06102e; --accent-soft: rgba(31, 178, 255, .12); --accent-line: rgba(31, 178, 255, .45); --accent-text: #5cc6ff;
    --ok: #3fd8a4; --ok-soft: rgba(63, 216, 164, .12); --err: #ff6b98; --err-soft: rgba(255, 77, 133, .13); --err-solid: #c8245a; --warn: #f0b04a; --warn-soft: rgba(240, 176, 74, .13);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-pop: 0 24px 60px rgba(0, 0, 0, .55);
  }
}
@media (min-width: 760px) { :root { --gut: 32px; --fs-hero: 44px; } }
* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font: var(--fs-md)/1.5 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
a { color: var(--accent-text); text-underline-offset: 3px; }
button, select, input { font: inherit; }
a[href], button:not(:disabled), select:not(:disabled), summary, label[for] { cursor: pointer; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- page chrome ---- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--gut); height: 60px; border-bottom: 1px solid var(--line); background: var(--bg-elev); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 800 17px/1 var(--display); letter-spacing: -.01em; }
.brand img { border-radius: 7px; }
.top__link { font-size: var(--fs-sm); color: var(--soft); text-decoration: none; }
.top__link:hover { color: var(--text); }
.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 32px 16px 48px; flex: 1; }
.main--portal { flex: 1; display: flex; flex-direction: column; }
.foot { text-align: center; font-size: var(--fs-xs); color: var(--muted); padding: 24px 16px 32px; border-top: 1px solid var(--line); }
.foot a { color: var(--muted); }

/* ---- type ---- */
h1, h2, h3 { font-family: var(--display); font-weight: 800; color: var(--text); text-wrap: balance; }
h1 { font-size: var(--fs-xl); line-height: 1.15; margin: 0 0 8px; letter-spacing: -.02em; }
h2 { font-size: var(--fs-lg); line-height: 1.25; margin: 0 0 12px; letter-spacing: -.01em; }
h3 { font-size: var(--fs-md); line-height: 1.3; margin: 0 0 6px; }
.lead { color: var(--soft); margin: 0 0 20px; }
.eyebrow { font-size: var(--fs-sm); color: var(--accent-text); font-weight: 600; margin: 0 0 8px; }
.small { font-size: var(--fs-sm); color: var(--soft); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.email, .wrapany { overflow-wrap: anywhere; }

/* ---- cards, fields, buttons (shared with sign-in and checkout) ---- */
.card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; min-width: 0; }
.card + .card { margin-top: 16px; }
.card--narrow { max-width: 440px; margin: 24px auto 0; }
.field { display: block; margin: 0 0 14px; }
.field > span { display: block; font-size: var(--fs-sm); font-weight: 600; margin-bottom: 6px; }
.input, .select { width: 100%; font-size: var(--fs-md); padding: 0 12px; height: 42px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); min-width: 0; }
.select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%238d96c2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.select:hover, .input:hover { border-color: var(--accent-line); }
.input:focus, .select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: var(--fs-sm); line-height: 1; padding: 0 16px; height: 42px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--bg-elev); color: var(--text); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .12s var(--ease); }
.btn:hover { border-color: var(--accent-line); background: var(--bg-hover); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: default; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); filter: brightness(1.08); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--soft); }
.btn--ghost:hover { background: var(--bg-hover); border-color: transparent; color: var(--text); }
.btn--outline { background: transparent; }
.btn--danger { color: var(--err); }
.btn--danger-solid { background: var(--err-solid); border-color: var(--err-solid); color: #fff; }
.btn--danger-solid:hover { background: var(--err-solid); border-color: var(--err-solid); filter: brightness(1.1); }
/* a button that waits: a spinner before its label; then a tick (is-done) */
.btn[aria-busy="true"] { opacity: .8; cursor: progress; }
.btn[aria-busy="true"]::before { content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; }
.btn[aria-busy="true"] > .ic { display: none; }
@media (prefers-reduced-motion: no-preference) { .btn[aria-busy="true"]::before { animation: spin .8s linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-done .ic { color: var(--ok); }
.btn--primary.is-done .ic, .btn--danger-solid.is-done .ic { color: inherit; }
.btn--sm { height: 34px; padding: 0 12px; font-size: var(--fs-sm); }
.btn .ic { width: 16px; height: 16px; flex: none; }
form .btn, .btn--google { width: 100%; }
.btn--google { background: var(--bg-elev); }
.btn--google .g { width: 18px; height: 18px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: var(--fs-xs); margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.row { display: flex; gap: 10px; align-items: center; }
.row--wrap { flex-wrap: wrap; margin: 16px 0; }
.row .btn, .inline-form .btn, .acts .btn { width: auto; }
.banner { border-radius: var(--radius-sm); padding: 10px 12px; font-size: var(--fs-sm); margin: 0 0 14px; }
.banner--err { background: var(--err-soft); color: var(--err); }
.banner--ok { background: var(--ok-soft); color: var(--ok); }
.banner--warn { background: var(--warn-soft); color: var(--warn); }
.banner--info { background: var(--accent-soft); color: var(--text); }
.banner--x, .banner--act { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.banner--act { align-items: center; flex-wrap: wrap; }
.banner--act .btn { flex: none; }
.banner__x { flex: none; border: 0; background: transparent; color: inherit; opacity: .75; width: 22px; height: 22px; margin: -2px -4px -2px 0; border-radius: 6px; cursor: pointer; display: inline-grid; place-items: center; }
.banner__x:hover { opacity: 1; }
.banner__x .ic { width: 14px; height: 14px; }
.card > h2 + .banner { margin-top: 12px; }
.steps { color: var(--soft); padding-left: 20px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; line-height: 1; padding: 5px 9px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-text); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--ok { background: var(--ok-soft); color: var(--ok); }
.pill--warn { background: var(--warn-soft); color: var(--warn); }
.pill--err { background: var(--err-soft); color: var(--err); }
.pill--plain::before { display: none; }
.badge { display: inline-block; font: 700 11px/1 var(--sans); letter-spacing: .08em; padding: 5px 8px; border-radius: 6px; border: 1px solid var(--accent-line); color: var(--accent-text); }
.key { font-family: var(--mono); font-size: var(--fs-sm); background: var(--bg); border: 1px dashed var(--accent); border-radius: 8px; padding: 10px; overflow-wrap: anywhere; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form .input { flex: 1 1 220px; width: auto; }

/* ---- portal: hero band ---- */
.hero { position: relative; border-bottom: 1px solid var(--line); background-color: var(--bg); background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 48px 48px; background-position: center -1px; }
.hero__in { width: min(var(--page), 100% - 2 * var(--gut)); margin-inline: auto; padding: 40px 0 36px; }
.hero h1:focus { outline: none; }
.hero h1 { font-size: var(--fs-hero); line-height: 1.04; letter-spacing: -.035em; margin: 0; }
.hero__sub { margin: 10px 0 0; color: var(--soft); font-size: var(--fs-md); max-width: 60ch; overflow-wrap: anywhere; }
@media (min-width: 760px) { .hero__in { padding: 56px 0 48px; } .hero__sub { font-size: 17px; } }

/* ---- portal: tab bar + user ---- */
.tabbar { position: sticky; top: 0; z-index: 10; background: var(--bg-elev); border-bottom: 1px solid var(--line); }
.tabbar__in { width: min(var(--page), 100% - 2 * var(--gut)); margin-inline: auto; display: flex; align-items: center; gap: 16px; min-height: 56px; }
.tabs { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 0 4px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; display: inline-flex; align-items: center; height: 56px; padding: 0 12px; color: var(--soft); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; transition: color .15s ease; }
.tab:hover { color: var(--text); }
.tab::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .2s var(--ease); }
.tab[aria-current="page"] { color: var(--text); }
.tab[aria-current="page"]::after { transform: scaleX(1); }
.tab:focus-visible { outline-offset: -4px; border-radius: 8px; }
.user { display: flex; align-items: center; gap: 10px; min-width: 0; flex: none; }
.user__name { font-size: var(--fs-sm); font-weight: 600; color: var(--text); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 32px; height: 32px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; font: 700 14px/1 var(--sans); background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent-line); overflow: hidden; text-transform: uppercase; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar--lg { width: 48px; height: 48px; font-size: 19px; }
@media (max-width: 759px) {
  .tabbar__in { flex-wrap: wrap; gap: 0; }
  .user { order: -1; width: 100%; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .tabs { flex: 1 1 100%; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .user__name { flex: 1; max-width: none; }
  .tab { height: 48px; padding: 0 10px; }
  .tab::after { left: 10px; right: 10px; }
}

/* ---- portal: content ---- */
.portal { width: min(var(--page), 100% - 2 * var(--gut)); margin-inline: auto; padding: 32px 0 64px; display: grid; gap: 20px; align-content: start; flex: 1; }
.portal:focus { outline: none; }
.portal > * { min-width: 0; }
.portal .card + .card { margin-top: 0; }
@media (prefers-reduced-motion: no-preference) {
  .portal.is-in > * { animation: rise .32s var(--ease) both; }
  .portal.is-in > *:nth-child(2) { animation-delay: 40ms; }
  .portal.is-in > *:nth-child(3) { animation-delay: 80ms; }
  .portal.is-in > *:nth-child(n+4) { animation-delay: 120ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sec-h h2 { margin: 0; font-size: 20px; }
.sec-h p { margin: 4px 0 0; color: var(--soft); font-size: var(--fs-sm); }
.card__h { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding-bottom: 18px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.card__h h2, .card__h h3 { margin: 0; }
.card__h p { margin: 4px 0 0; }
.card__title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.card__title h2 { font-size: 20px; }
.ref { font-size: var(--fs-sm); color: var(--muted); }
.ref b { font-family: var(--mono); font-weight: 600; color: var(--soft); }
.card.card--flush { padding: 0; }
.card--flush:has(.table), .card--flush:has(.quick) { overflow: hidden; }
.disc:last-child, .disc:last-child summary { border-radius: 0 0 var(--radius) var(--radius); }
.disc[open]:last-child summary { border-radius: 0; }
.card--flush > .card__h { padding: 22px 28px 18px; margin: 0; }
@media (max-width: 559px) { .card { padding: 20px; } .card--flush > .card__h { padding: 18px 20px 16px; } .wrap { padding-top: 20px; } h1 { font-size: var(--fs-lg); } }

/* ---- the licence card: label / value rows ---- */
.lrows { display: grid; }
.lrow { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.lrow:last-child { border-bottom: 0; padding-bottom: 0; }
.lrow__k { font-size: var(--fs-sm); font-weight: 600; color: var(--soft); }
.lrow__v { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.lrow__note { flex-basis: 100%; margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.lrow__note--warn { color: var(--warn); }
@media (max-width: 639px) { .lrow { grid-template-columns: minmax(0, 1fr); padding: 16px 0; } .lrow .dot { display: none; } }
.keyfield { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; height: 42px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--bg-sunk); font: 500 14px/1 var(--mono); letter-spacing: .02em; color: var(--soft); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; user-select: all; -webkit-user-select: all; }
.keyfield--shown { color: var(--text); border-style: dashed; border-color: var(--accent); background: var(--accent-soft); white-space: normal; height: auto; min-height: 42px; padding: 10px 12px; overflow-wrap: anywhere; line-height: 1.4; }
.dl { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; }
.dl .pick { flex: 1 1 210px; }
.dl .pick--ver { flex: 0 1 190px; }
.dl .btn { flex: none; }
@media (max-width: 559px) { .dl .pick, .dl .pick--ver { flex: 1 1 100%; } .dl .btn { flex: 1 1 100%; } }
.pick { position: relative; min-width: 0; }
.pick__btn { display: flex; align-items: center; text-align: left; font-size: var(--fs-md); }
.pick__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick__btn[aria-expanded="true"] { border-color: var(--accent); }
.pick__list { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 100%; max-height: 300px; overflow: auto; margin: 0; padding: 4px; list-style: none; background: var(--bg-elev); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow-pop); transform-origin: top center; }
.pick__list:focus { outline: none; }
.pick__list li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 9px 10px; border-radius: 7px; cursor: pointer; font-size: var(--fs-md); white-space: nowrap; }
.pick__list li small { font-size: var(--fs-xs); color: var(--muted); }
.pick__list li.is-active { background: var(--bg-hover); }
.pick__list li[aria-selected="true"] { color: var(--accent-text); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) { .pick__list:not([hidden]) { animation: pickIn .16s var(--ease); } }
@keyframes pickIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.ver { font-weight: 600; }
.dot { color: var(--muted); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent-text); font-weight: 600; font-size: var(--fs-sm); cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .15s ease; }
.linkbtn:hover { text-decoration-color: currentColor; }
.meter { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.meter__bar { width: 72px; height: 6px; border-radius: 6px; background: var(--bg-sunk); border: 1px solid var(--line); overflow: hidden; }
.meter__bar i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }

/* ---- disclosure (How to install) ---- */
.disc { border-top: 1px solid var(--line); }
.disc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 28px; cursor: pointer; font-weight: 600; font-size: var(--fs-sm); color: var(--text); }
.disc summary::-webkit-details-marker { display: none; }
.disc summary:hover { background: var(--bg-hover); }
.disc summary:focus-visible { outline-offset: -2px; }
.disc summary .ic { width: 16px; height: 16px; color: var(--muted); transition: transform .2s var(--ease); }
.disc[open] summary .ic { transform: rotate(180deg); }
.disc__b { padding: 0 28px 22px; }
.disc__b ol { margin: 0; padding-left: 20px; color: var(--soft); font-size: var(--fs-sm); display: grid; gap: 6px; }
.disc__b p { margin: 12px 0 0; font-size: var(--fs-sm); color: var(--muted); }
.disc__b code, .steps code { font-family: var(--mono); font-size: 12.5px; background: var(--bg-sunk); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; overflow-wrap: anywhere; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--bg-sunk); border: 1px solid var(--line); margin: 0 0 14px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; color: var(--soft); font-weight: 600; font-size: var(--fs-sm); height: 30px; padding: 0 12px; border-radius: 7px; cursor: pointer; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow); }
@media (max-width: 559px) { .disc summary { padding: 14px 20px; } .disc__b { padding: 0 20px 18px; } }
.card--flush > .lrows { padding: 0 28px 22px; }
@media (max-width: 559px) { .card--flush > .lrows { padding: 0 20px 18px; } }

/* ---- dashboard ---- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.stat { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.stat__k { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.stat__v { font: 800 24px/1.15 var(--display); letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; overflow-wrap: anywhere; }
.stat__s { font-size: var(--fs-sm); color: var(--soft); }
.stat a { font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
.stat a:hover { text-decoration: underline; }
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0; }
.quick a { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; text-decoration: none; color: var(--text); border-top: 1px solid var(--line); transition: background-color .15s ease; }
.quick a:hover { background: var(--bg-hover); }
.quick a:focus-visible { outline-offset: -2px; }
.quick b { display: block; font-weight: 600; font-size: var(--fs-md); }
.quick span:not(.ib) { display: block; font-size: var(--fs-sm); color: var(--soft); }
.ib { flex: none; width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; color: var(--accent-text); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.ib .ic { width: 18px; height: 18px; }
.getapp { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.getapp h2 { margin: 0 0 4px; }
.getapp p { margin: 0; color: var(--soft); font-size: var(--fs-sm); }
.acts { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---- empty states, welcome ---- */
.empty { text-align: center; padding: 40px 24px; }
.empty .ib { width: 48px; height: 48px; border-radius: 14px; margin: 0 auto 14px; }
.empty .ib .ic { width: 22px; height: 22px; }
.empty h2 { margin: 0 0 6px; font-size: 20px; }
.empty p { margin: 0 auto; color: var(--soft); max-width: 46ch; font-size: var(--fs-md); }
.empty .acts--c { margin-top: 20px; }
.acts--c { justify-content: center; }
.welcome { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.welcome__t { flex: 1 1 360px; min-width: 0; }
.welcome h2 { margin: 0 0 6px; font-size: var(--fs-xl); }
.welcome p:not(.eyebrow) { margin: 0; color: var(--soft); max-width: 58ch; }
.stat__v--mono { font: 700 20px/1.3 var(--mono); letter-spacing: 0; }
/* the "Setting up your licence…" wait */
.ib--spin { width: 48px; height: 48px; border-radius: 14px; margin: 0 auto 14px; }
.ib--spin i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--accent-line); border-top-color: var(--accent); }
@media (prefers-reduced-motion: no-preference) { .ib--spin i { animation: spin .9s linear infinite; } }

/* ---- definition list (subscription, account) ---- */
.dlist { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0; margin: 0; }
.dlist > div { padding: 16px 16px 16px 0; min-width: 0; }
.dlist dt { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; margin: 0 0 4px; }
.dlist dd { margin: 0; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; overflow-wrap: anywhere; min-width: 0; }
.card__f { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); }
.card__h + .card__f { border-top: 0; }
.card__f p { margin: 0; font-size: var(--fs-sm); color: var(--muted); max-width: 60ch; }

/* ---- tables (seats, invoices); rows stack on phones ---- */
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th { text-align: left; font-weight: 600; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; min-width: 0; }
.table tr:last-child td { border-bottom: 0; }
.table th:first-child, .table td:first-child { padding-left: 28px; }
.table th:last-child, .table td:last-child { padding-right: 28px; text-align: right; }
.table tbody tr { transition: background-color .15s ease; }
.table tbody tr:hover { background: var(--bg-hover); }
.table .num { font-variant-numeric: tabular-nums; }
.table .amt { font-weight: 600; font-variant-numeric: tabular-nums; }
.table .who { overflow-wrap: anywhere; font-weight: 600; }
.table .who small { display: block; font-weight: 400; color: var(--muted); }
.table .inline-form { justify-content: flex-end; flex-wrap: nowrap; }
.table .inline-form .input { height: 34px; font-size: var(--fs-sm); min-width: 160px; }
@media (max-width: 699px) {
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 14px 20px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; }
  .table tr:last-child { border-bottom: 0; }
  .table td, .table th:first-child, .table td:first-child, .table td:last-child { padding: 0; border: 0; text-align: left; }
  .table td[data-k]::before { content: attr(data-k) " "; color: var(--muted); font-weight: 400; }
  .table td.full { grid-column: 1 / -1; }
  .table td.end { text-align: right; justify-self: end; }
  .table .inline-form { flex-wrap: wrap; justify-content: flex-start; }
  .table .inline-form .input { flex: 1 1 100%; min-width: 0; }
  .table .inline-form .btn { flex: 1; }
}

/* ---- account + support ---- */
.methods { list-style: none; margin: 0; padding: 0; }
.methods li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.methods li:last-child { border-bottom: 0; padding-bottom: 0; }
.methods .grow { flex: 1 1 160px; min-width: 0; }
@media (max-width: 559px) { .methods li > .acts { margin-left: 50px; } }
.methods b { display: block; font-weight: 600; }
.methods span.small { display: block; }
.methods li { flex-wrap: wrap; }
.methods .acts { gap: 8px; }
.methods .confirm { flex: 1 1 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 8px; background: var(--err-soft); font-size: var(--fs-sm); color: var(--text); }
.methods .confirm .acts { gap: 6px; }
.who-row { display: flex; align-items: center; gap: 14px; min-width: 0; }
.who-row > div { min-width: 0; }
.who-row b { display: block; font: 800 20px/1.2 var(--display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.pwform { display: grid; gap: 8px; max-width: 520px; margin-top: 16px; }
.pwform .field, .pwform .field > span { margin: 0; }
.pwform .btn { margin-top: 6px; }
.pwform .pwwrap { position: relative; }
.pwform .pwwrap .input { padding-right: 76px; }
.pwform .pwwrap .linkbtn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); text-decoration: none; }
.pwform .btn { width: auto; justify-self: start; }
.hint { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.hint--ok { color: var(--ok); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.contact { display: flex; flex-direction: column; gap: 10px; }
.contact h2 { margin: 6px 0 0; }
.contact p { margin: 0; color: var(--soft); font-size: var(--fs-sm); }
.contact .acts { margin-top: auto; padding-top: 8px; }
.quote { display: grid; gap: 0; margin: 0; }
.quote > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.quote > div:last-child { border-bottom: 0; padding-bottom: 0; }
.quote dt { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.quote dd { margin: 0; display: flex; align-items: center; gap: 10px; min-width: 0; font-family: var(--mono); font-size: 14px; overflow-wrap: anywhere; }

/* ---- dialogs ---- */
dialog.dlg { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); color: var(--text); padding: 0; max-width: 460px; width: calc(100% - 32px); box-shadow: var(--shadow-pop); max-height: calc(100dvh - 48px); }
dialog.dlg--wide { max-width: 620px; }
dialog.dlg::backdrop { background: rgba(5, 8, 22, .6); }
@media (prefers-reduced-motion: no-preference) {
  dialog.dlg[open] { animation: dlgIn .2s var(--ease); }
  dialog.dlg[open]::backdrop { animation: fade .2s ease; }
}
@keyframes dlgIn { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.dlg__h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px 0; }
.dlg__h h2 { margin: 0; font-size: 20px; }
.dlg__x { flex: none; width: 34px; height: 34px; margin: -6px -8px 0 0; border-radius: 8px; border: 0; background: transparent; color: var(--muted); display: inline-grid; place-items: center; cursor: pointer; }
.dlg__x:hover { background: var(--bg-hover); color: var(--text); }
.dlg__x .ic { width: 18px; height: 18px; }
.dlg__b { padding: 12px 24px 0; overflow: auto; }
.dlg__b > p { margin: 0 0 12px; color: var(--soft); font-size: var(--fs-md); }
.dlg__f { display: flex; gap: 8px; justify-content: flex-end; padding: 20px 24px 22px; flex-wrap: wrap; }
.dlg .banner { margin: 12px 0 0; }
.devlist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.devlist li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 14px; border-bottom: 1px solid var(--line); }
.devlist li:last-child { border-bottom: 0; }
.devlist .ib { width: 34px; height: 34px; }
.devlist b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.devlist span { display: block; font-size: var(--fs-sm); color: var(--muted); }
.devlist .confirm { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; padding: 10px 12px; border-radius: 8px; background: var(--err-soft); font-size: var(--fs-sm); color: var(--text); }
.devlist .confirm .acts { gap: 6px; }
.devnone { padding: 18px; text-align: center; color: var(--soft); font-size: var(--fs-sm); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); }
.changes { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.changes > li { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.changes > li:last-child { border-bottom: 0; padding-bottom: 0; }
.changes .ch-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.changes .ch-h b { font: 800 18px/1.2 var(--display); }
.changes .ch-t { margin: 0 0 8px; font-weight: 600; font-size: var(--fs-sm); }
.changes ul { margin: 0; padding-left: 18px; display: grid; gap: 5px; font-size: var(--fs-sm); color: var(--soft); }

/* ---- skeleton, toasts ---- */
.skel { display: grid; gap: 16px; }
.skel i { display: block; height: 120px; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--line); }
.skel i:first-child { height: 64px; }
@media (prefers-reduced-motion: no-preference) { .skel i { animation: pulse 1.4s ease-in-out infinite; } }
@keyframes pulse { 50% { opacity: .55; } }
.toasts { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 50; width: max-content; max-width: calc(100% - 32px); }
.toast { display: flex; align-items: center; gap: 10px; background: var(--text); color: var(--bg); padding: 8px 8px 8px 14px; border-radius: 10px; font-size: var(--fs-sm); box-shadow: var(--shadow-pop); }
.toast--err { background: var(--err-solid); color: #fff; }
.toast button { border: 0; background: transparent; color: inherit; opacity: .75; width: 26px; height: 26px; border-radius: 6px; cursor: pointer; display: inline-grid; place-items: center; }
.toast button:hover { opacity: 1; }
.toast .ic { width: 14px; height: 14px; }
@media (prefers-reduced-motion: no-preference) { .toast { animation: toastIn .22s var(--ease); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ic { display: inline-block; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card__banner { padding-top: 16px; } .card__banner .banner { margin: 0; }
