/* Studio tokens in the Nord light palette. Source: .staff/design/007-nord-light-brand.md, section 4. The token names are binding. The product has 1 theme. */
:root {
  color-scheme:light;
  --canvas:#eceff4;
  --card:#ffffff;
  --card-2:#f6f8fb;
  --line:#e5e9f0;
  --line-strong:#d8dee9;
  --control:#808795;
  --text:#2e3440;
  --text-2:#4c566a;
  --text-3:#616a7c;
  --accent:#4c6e98;
  --accent-ink:#ffffff;
  --accent-text:#4c6e98;
  --accent-soft:#ebf0f6;
  --quiet:#7493b3;
  --good:#5a7244;
  --good-soft:#e8efe2;
  --bad:#ab4f59;
  --bad-soft:#f7eced;
  --warn:#894631;
  --warn-soft:#faf2e2;
  --warn-chip:#ebcb8b;
  --side:#ffffff;
  --side-text:#2e3440;
  --side-3:#4c566a;
  --side-hover:#eceff4;
  --side-line:#e5e9f0;
  --focus:var(--accent-text);
  --accent-edge:transparent;
  --frost:#88c0d0;
  --steel:#5e81ac;
  --c1:#5e81ac;
  --c2:#c57d66;
  --c3:#7e9867;
  --c4:#aa84a3;
  --heat-1:#bfccdc;
  --heat-2:#d5dee8;
  --heat-3:#e8edf3;
  --heat-4:#f4f6f9;
  --shadow-1:0 0 0 1px rgba(46,52,64,.05),0 1px 2px rgba(46,52,64,.04),0 8px 24px -8px rgba(46,52,64,.10);
  --shadow-2:0 0 0 1px rgba(46,52,64,.06),0 2px 6px rgba(46,52,64,.08),0 18px 44px -10px rgba(46,52,64,.24);
  --font:"Hanken Grotesk",system-ui,"Segoe UI",Roboto,sans-serif;
  --mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  --fs-1:12px;
  --fs-2:13px;
  --fs-3:14px;
  --fs-4:15px;
  --fs-5:16px;
  --fs-6:17px;
  --fs-7:20px;
  --fs-8:24px;
  --fs-9:30px;
  --fs-fig:32px;
  --fs-hero:36px;
  --fs-display:clamp(28px,4.4vw + 12px,44px);
  --lh-tight:1.15;
  --lh-heading:1.25;
  --lh-body:1.5;
  --lh-reader:1.6;
  --sp-1:4px;
  --sp-2:8px;
  --sp-3:12px;
  --sp-4:16px;
  --sp-5:20px;
  --sp-6:24px;
  --sp-7:32px;
  --sp-8:48px;
  --sp-9:64px;
  --r-sm:8px;
  --r-md:12px;
  --r-lg:16px;
  --r-xl:20px;
  --r-2xl:24px;
  --r-pill:999px;
  --measure:66ch;
  --gutter:clamp(16px,4vw,32px);
  --w-form:36rem;
  --w-page:68rem;
  --w-admin:76rem;
  --sidebar:272px;
  --target:44px;
  --control-h:40px;
  --control-h-lg:48px;
  --ease-out:cubic-bezier(.16,1,.3,1);
  --dur-1:120ms;
  --dur-2:200ms;
  --dur-3:320ms;
}
@media (prefers-reduced-motion:reduce){:root{--dur-1:.01ms;--dur-2:.01ms;--dur-3:.01ms}}

/* Self-hosted Hanken Grotesk. The build replaces each font:<file> reference with the hashed URL. AC-X-08 forbids a font CDN. */
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/hanken-grotesk-latin-ext-wght-normal.768af2923e.woff2") format("woff2-variations");
  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;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/hanken-grotesk-latin-wght-normal.e9201eddf1.woff2") format("woff2-variations");
  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;
}

/* Studio base: reset, type, focus and skip link. */
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 400 var(--fs-4) / var(--lh-body) var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent-text);
  text-underline-offset: 3px;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
}
.sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.i {
  flex: none;
  display: inline-block;
  vertical-align: middle;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
.skip {
  position: absolute;
  left: 8px;
  top: 8px;
  transform: translateY(-400%);
  background: var(--card);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--r-pill);
  font-weight: 650;
  z-index: 50;
  box-shadow: var(--shadow-2);
}
.skip:focus {
  transform: none;
}
.nw {
  white-space: nowrap;
}
.mono {
  font-family: var(--mono);
  font-size: var(--fs-1);
  overflow-wrap: anywhere;
}

/* Studio components: buttons, fields, cards, badges, notices, tabs, tables, empty and loading states, code, description lists and the script states. */
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--control-h);
  padding: 0 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--text);
  font: 650 var(--fs-3) / 1.2 var(--font);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition:
    background var(--dur-1) var(--ease-out),
    border-color var(--dur-1) var(--ease-out);
}
.btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent-text);
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent-edge, transparent);
  color: var(--accent-ink);
  box-shadow: inset 0 0 0 1px var(--accent-edge);
}
.btn-primary:hover {
  background: var(--accent);
  filter: brightness(1.08);
  border-color: var(--accent-edge, transparent);
}
.btn-quiet {
  border-color: transparent;
  background: transparent;
  color: var(--accent-text);
}
.btn-quiet:hover {
  background: var(--accent-soft);
  border-color: transparent;
}
.btn-danger {
  background: var(--bad-soft);
  border-color: transparent;
  color: var(--bad);
}
.btn-danger:hover {
  background: var(--bad-soft);
  border-color: var(--bad);
}
.btn-sm {
  min-height: 32px;
  padding: 0 14px;
  font-size: var(--fs-2);
}
.btn-lg {
  min-height: var(--control-h-lg);
  padding: 0 24px;
  font-size: var(--fs-5);
}
.btn-block {
  width: 100%;
  white-space: normal;
}
.btn[aria-disabled="true"] {
  opacity: 1;
  background: var(--card-2);
  border-color: var(--line);
  color: var(--text-3);
  cursor: not-allowed;
}
.btn[aria-busy="true"] {
  pointer-events: none;
}
.btn[aria-busy="true"]::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 700ms linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn[aria-busy="true"]::before {
    animation: none;
    border-right-color: currentColor;
  }
}

/* Fields */
.field {
  display: grid;
  gap: 6px;
  margin-bottom: var(--sp-5);
}
.field > label,
.label {
  font-weight: 650;
  font-size: var(--fs-3);
}
.hint {
  color: var(--text-3);
  font-size: var(--fs-2);
}
.input,
.select {
  width: 100%;
  min-height: var(--control-h);
  padding: 0 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--control);
  background: var(--card);
  color: var(--text);
  font: 400 var(--fs-4) / 1.4 var(--font);
}
.input::placeholder {
  color: var(--text-3);
}
.input:hover,
.select:hover {
  border-color: var(--text-2);
}
.input:focus-visible,
.select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}
.select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none' stroke='%23625e7e' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.input[aria-invalid="true"] {
  border-color: var(--bad);
  box-shadow: inset 0 0 0 1px var(--bad);
}
.error {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  color: var(--bad);
  font-size: var(--fs-3);
  font-weight: 550;
}
/* A message that holds text of the user wraps at any character and never widens the page. DT1-01. */
.error span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.input[readonly] {
  background: var(--card-2);
  color: var(--text-2);
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: var(--target);
}
.check input {
  appearance: none;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  border: 1.5px solid var(--control);
  border-radius: 7px;
  background: var(--card);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.check input:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.check input:checked::after {
  content: "";
  width: 10px;
  height: 5px;
  border: 2.5px solid var(--accent-ink);
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px);
}
.check input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.check input[aria-readonly="true"] {
  background: var(--card-2);
  cursor: default;
}
.check input[aria-readonly="true"]:checked {
  background: var(--card-2);
  border-color: var(--control);
}
.check input[aria-readonly="true"]:checked::after {
  border-color: var(--text-2);
}
.check.err input {
  border-color: var(--bad);
}

/* Cards, panels */
.card {
  background: var(--card);
  border-radius: var(--r-2xl);
  padding: var(--sp-6);
  box-shadow: var(--shadow-1);
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px 12px;
  margin-bottom: var(--sp-4);
  flex-wrap: wrap;
}
.card-head > div:first-child {
  flex: 1 1 14rem;
  min-width: 0;
}
.card-head h2 {
  font: 700 var(--fs-6) / 1.3 var(--font);
  letter-spacing: -0.01em;
}
.card-head p,
.muted {
  color: var(--text-3);
  font-size: var(--fs-2);
}
.step {
  width: 28px;
  height: 28px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent-text);
  display: grid;
  place-items: center;
  font: 700 var(--fs-1) var(--font);
  flex: none;
}

/* Badges and status */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 99px;
  font: 650 var(--fs-1) / 1 var(--font);
  background: var(--card-2);
  color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--line);
  white-space: nowrap;
}
.badge.accent {
  background: var(--accent-soft);
  color: var(--accent-text);
  box-shadow: none;
}
.badge.good {
  background: var(--good-soft);
  color: var(--good);
  box-shadow: none;
}
.badge.bad {
  background: var(--bad-soft);
  color: var(--bad);
  box-shadow: none;
}
.badge.warn {
  background: var(--warn-soft);
  color: var(--warn);
  box-shadow: none;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.dot.ring {
  background: none;
  box-shadow: inset 0 0 0 2px currentColor;
}
.dot.dash {
  background: none;
  border: 2px dashed currentColor;
}
.count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--warn-chip);
  color: var(--text);
  font: 700 11px / 1 var(--font);
}

/* Notices */
.notice {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r-xl);
  background: var(--warn-soft);
  color: var(--text);
}
.notice .chip {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--warn-chip);
  color: var(--warn);
  display: grid;
  place-items: center;
}
.notice h2,
.notice h3 {
  font: 700 var(--fs-4) / 1.4 var(--font);
  color: var(--warn);
}
.notice p {
  margin-top: 2px;
  color: var(--text-2);
  font-size: var(--fs-3);
  overflow-wrap: anywhere;
}
.notice.info {
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}
.notice.info .chip {
  background: var(--card-2);
  color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.notice.info h2,
.notice.info h3 {
  color: var(--text);
}
.notice.good {
  background: var(--good-soft);
}
.notice.good .chip {
  background: var(--card);
  color: var(--good);
}
.notice.good h2,
.notice.good h3 {
  color: var(--good);
}
.notice.bad {
  background: var(--bad-soft);
}
.notice.bad .chip {
  background: var(--card);
  color: var(--bad);
}
.notice.bad h2,
.notice.bad h3 {
  color: var(--bad);
}
.notice .act {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Segmented control and tabs */
.seg {
  display: inline-flex;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 4px;
  gap: 2px;
  box-shadow: var(--shadow-1);
  max-width: 100%;
}
.seg a {
  display: grid;
  place-items: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 99px;
  text-decoration: none;
  color: var(--text-2);
  font-weight: 600;
  font-size: var(--fs-3);
  white-space: nowrap;
}
.seg a:hover {
  background: var(--accent-soft);
  color: var(--text);
}
.seg a[aria-current] {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.tabs a {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--text-2);
  font-weight: 600;
  font-size: var(--fs-3);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.tabs a:hover {
  color: var(--text);
}
.tabs a[aria-current] {
  color: var(--accent-text);
  border-bottom-color: var(--accent-text);
  font-weight: 700;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  /* A `.sr` text in a cell is out of the flow, so the box clips it and the page gets no sideways scroll. */
  position: relative;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-3);
}
table.data th {
  font: 650 var(--fs-1) var(--font);
  color: var(--text-3);
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}
table.data td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.data tr:last-child td {
  border-bottom: 0;
}
table.data td.num,
table.data th.num {
  text-align: right;
}
table.data tbody tr:hover td {
  background: var(--card-2);
}

@media (max-width: 36rem) {
  table.data.stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  table.data.stack tr {
    display: grid;
    /* `minmax(0, 1fr)` lets a track shrink under a long value, so the value wraps in its cell. */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  table.data.stack tr:last-child {
    border-bottom: 0;
  }
  table.data.stack td {
    display: block;
    padding: 0;
    border: 0;
    text-align: left !important;
    /* A long step name, address or reference wraps, so each label and value shows in full. */
    min-width: 0;
    overflow-wrap: anywhere;
  }
  /* A button in a cell takes the width of its cell, and its text wraps. */
  table.data.stack td .btn {
    max-width: 100%;
    white-space: normal;
    padding-block: 8px;
  }
  table.data.stack td::before {
    content: attr(data-label);
    display: block;
    color: var(--text-3);
    font-size: var(--fs-1);
    font-weight: 650;
  }
}
/*
 * Nested row, section 10.1 part 3 of the Studio tokens file: a credit note under its invoice. It has
 * the `--card-2` fill and an indent of 28 px on the first cell. `.sub` is the quiet line under the
 * number. At 36 rem the table stacks, the row keeps its fill with the radius `--r-md` and 12 px of
 * side padding, and the empty cells go.
 */
table.data tr.cn td {
  background: var(--card-2);
}
table.data tr.cn td:first-child {
  padding-left: 28px;
}
table.data td .sub {
  display: block;
  margin-top: 2px;
  color: var(--text-3);
  font-size: var(--fs-2);
  overflow-wrap: anywhere;
}
@media (max-width: 36rem) {
  table.data.stack tr.cn {
    background: var(--card-2);
    border-radius: var(--r-md);
    padding-inline: 12px;
  }
  table.data.stack tr.cn td {
    background: none;
  }
  table.data.stack tr.cn td:first-child {
    padding-left: 0;
  }
  table.data.stack tr.cn td:empty {
    display: none;
  }
}
/*
 * F4: the cell of a row of `/account` holds 2 links, `Open` and `PDF`. Each link is a target of 24
 * pixels at least, so the 2 links meet the target size rule of WCAG 2.2 AA (2.5.8). Each link keeps the
 * left edge of its text, also when it wraps under the first link. The 2 links wrap under each other when
 * the card is narrow, so the table never scrolls in its card, DF4-02. The media rule of DF2-04 below sets
 * the height `--target` at 36 rem.
 */
table.data td.acts-cell a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-width: 24px;
  min-height: 24px;
  padding-inline: 4px;
  margin-inline-start: -4px;
}
/*
 * DF2-04: at 36 rem the cell of the link `Open` takes the full row of the stacked table, and the link
 * has the height `--target`. The cell has no label. Above 36 rem it does not change.
 *
 * F1, QAF4-08: the focus ring is 3 pixels wide with an offset of 2 pixels, so it starts 5 pixels
 * outside the box of the link. The wrapper of the table clips it on the left edge, so at this width
 * the link has no negative margin and no inline padding, and the cell holds the 6 pixels of the ring.
 * The ring then starts 1 pixel inside the wrapper. The height `--target` and the width of 24 pixels
 * stay.
 */
@media (max-width: 36rem) {
  table.data.stack td.acts-cell {
    grid-column: 1 / -1;
    padding-inline-start: 6px;
  }
  table.data.stack td.acts-cell::before {
    display: none;
  }
  table.data.stack td.acts-cell a:not(.btn) {
    display: inline-flex;
    align-items: center;
    min-height: var(--target);
    margin-inline-start: 0;
    padding-inline: 0;
  }
}
/* A negative amount never wraps. The sign sits before the code in the form of a locale. */
.neg {
  white-space: nowrap;
}
/* Empty */
.empty {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: var(--sp-6);
  border-radius: var(--r-xl);
  background: var(--card-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.empty .chip {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent-text);
  display: grid;
  place-items: center;
}
.empty h3 {
  font: 700 var(--fs-5) / 1.3 var(--font);
}
.empty p {
  color: var(--text-2);
  max-width: 52ch;
}

/* Skeleton */
.skel {
  border-radius: var(--r-md);
  background: linear-gradient(90deg, var(--card-2), var(--line), var(--card-2));
  background-size: 200% 100%;
  animation: sh 1.4s linear infinite;
}
@keyframes sh {
  to {
    background-position: -200% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .skel {
    animation: none;
  }
}

/* Code */
.code {
  position: relative;
  background: var(--card-2);
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 16px 18px;
  font: 500 var(--fs-2) / 1.7 var(--mono);
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--text);
}
.code .k {
  color: var(--accent-text);
}
.code .s {
  color: var(--good);
}
.copyrow {
  display: flex;
  gap: 8px;
  align-items: stretch;
  flex-wrap: wrap;
}

/* Description list */
.dlist {
  display: grid;
  gap: 0;
}
.dlist > div {
  display: grid;
  grid-template-columns: minmax(7rem, 11rem) 1fr;
  gap: 4px 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.dlist > div:first-child {
  border-top: 0;
  padding-top: 0;
}
.dlist dt {
  color: var(--text-3);
  font-size: var(--fs-3);
  font-weight: 600;
}
.dlist dd {
  font-size: var(--fs-4);
}
@media (max-width: 30rem) {
  .dlist > div {
    grid-template-columns: 1fr;
  }
}
.dlist.onecol > div {
  grid-template-columns: 1fr;
}
/* Script states: no script, loading, error with retry */
.sbox {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 16px;
  padding: var(--sp-6);
  border-radius: var(--r-2xl);
  background: var(--card);
  box-shadow: var(--shadow-1);
}
.sbox .chip {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-text);
  grid-row: span 3;
}
.sbox.err .chip {
  background: var(--bad-soft);
  color: var(--bad);
}
.sbox.ns .chip {
  background: var(--warn-soft);
  color: var(--warn);
}
.sbox h1,
.sbox h2,
.sbox h3 {
  font: 700 var(--fs-7) / 1.25 var(--font);
  letter-spacing: -0.01em;
}
.sbox p {
  color: var(--text-2);
  font-size: var(--fs-4);
  max-width: 56ch;
}
.sbox .acts {
  display: flex;
  gap: 8px 16px;
  flex-wrap: wrap;
  margin-top: 12px;
  align-items: center;
}
.sbox.load {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
.sbox.load .skel {
  height: 16px;
}
.fig-skel {
  display: grid;
  gap: 10px;
}
@media (max-width: 30rem) {
  .sbox {
    grid-template-columns: minmax(0, 1fr);
  }
  .sbox .chip {
    grid-row: auto;
  }
  .sbox .acts .btn {
    width: 100%;
  }
}

/* Form and list helpers */
textarea.input {
  min-height: 84px;
  padding-top: 10px;
  padding-bottom: 10px;
  resize: vertical;
}
.list-plain {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.stack-notice {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}
.notice.one {
  align-items: center;
}
.notice.one p {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  font-size: var(--fs-3);
}
.notice.good.one .chip,
.notice.bad.one .chip {
  background: var(--card);
}

/*
 * The part `Family` of `/account` and the invite page, milestone FS1 of 011. Section 10 of the design
 * `.staff/design/011-012-family-and-consent.md`. Each value is a token of the light Nord theme.
 */
.fam h3 {
  font: 700 var(--fs-4) / 1.4 var(--font);
  margin: var(--sp-6) 0 var(--sp-2);
}
.fam-lead {
  color: var(--text-2);
}
.fam-seats {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  font: 650 var(--fs-3) / 1.4 var(--font);
}
.seatbar {
  display: flex;
  gap: 6px;
  flex: none;
}
.seat {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}
.seat.free {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--control);
}
.fam-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.fam-list > li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2) var(--sp-4);
  flex-wrap: wrap;
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--line);
}
.fam-list > li:first-child {
  border-top: 0;
}
.fam-who {
  min-width: 0;
  flex: 1 1 13rem;
}
.fam-who b {
  display: block;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.fam-who span {
  display: block;
  color: var(--text-3);
  font-size: var(--fs-2);
}
.fam-form {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.fam-form .field {
  margin-bottom: var(--sp-3);
}
.fam-empty {
  color: var(--text-2);
}
.fam-notice {
  margin-top: var(--sp-4);
}
.fam-sched {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
  color: var(--text-2);
  font-size: var(--fs-3);
}
.inv-facts {
  list-style: none;
  margin: var(--sp-4) 0 0;
  padding: 0;
  display: grid;
  gap: var(--sp-2);
}
.inv-facts li {
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
}
.inv-facts .i {
  flex: none;
  margin-top: 2px;
  color: var(--good);
}
@media (max-width: 36rem) {
  .fam-list > li > .btn {
    width: 100%;
  }
}

.fam h3.fam-h-first {
  margin-top: 0;
}
.fam-gap-b {
  margin-bottom: var(--sp-4);
}
.fam-hint-b {
  margin-bottom: var(--sp-3);
}
.fam-gap-t {
  margin-top: var(--sp-3);
}
.fam-hint-t {
  margin-top: var(--sp-4);
}
.fam-quiet {
  color: var(--text-2);
}

/* Layer 1: the hosted reader pages. Studio with the site name. Uses tokens.css, base.css and components.css. No brand file. */
body.reader {
  font-size: var(--fs-5);
  line-height: var(--lh-reader);
}
.r-wrap {
  width: 100%;
  max-width: var(--w-page);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}
.r-header {
  padding-block: 16px;
}
.r-header .r-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.r-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font: 700 var(--fs-6) / 1.2 var(--font);
  letter-spacing: -0.01em;
  min-height: var(--target);
}
.r-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font: 800 15px var(--font);
  letter-spacing: -0.02em;
  box-shadow: inset 0 0 0 1px var(--accent-edge);
  flex: none;
}
.r-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.r-main {
  padding-block: clamp(16px, 4vw, 40px) 64px;
  /* An email address in a sentence is 1 long word. It wraps in its card at 320 px. DFS1-03. */
  overflow-wrap: anywhere;
}
/* Anywhere lowers the min-content width of a cell, so a wide table keeps its words and scrolls in its region. */
.r-main table {
  overflow-wrap: normal;
}
.r-title {
  font: 700 var(--fs-display) / var(--lh-tight) var(--font);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
/* A title is publisher content or a long word of a locale, so no heading runs out of its card at 320 px. */
.r-title,
.r-card h1,
.r-card h2,
.form-page h1,
.form-page h2,
.r-prose h1,
.r-prose h2,
.r-prose h3,
.guide h1,
.guide h2,
.guide h3 {
  overflow-wrap: anywhere;
}
.r-lead {
  margin-top: 12px;
  color: var(--text-2);
  font-size: var(--fs-6);
  max-width: 56ch;
  text-wrap: pretty;
}
.r-narrow,
.form-page {
  max-width: var(--w-form);
  margin-inline: auto;
}
.r-card,
.form-page {
  background: var(--card);
  border-radius: var(--r-2xl);
  padding: clamp(20px, 4vw, 32px);
  box-shadow: var(--shadow-1);
}
.r-card h2,
.form-page h2 {
  font: 700 var(--fs-7) / var(--lh-heading) var(--font);
  letter-spacing: -0.015em;
  margin-bottom: var(--sp-4);
}
.r-card h2:not(:first-child),
.form-page h2:not(:first-child) {
  margin-top: var(--sp-7);
}
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 16px;
  margin-top: var(--sp-7);
}
.plan {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--r-2xl);
  padding: 24px;
  box-shadow: var(--shadow-1);
  gap: 4px;
}
.plan h2 {
  font: 700 var(--fs-7) / 1.25 var(--font);
  letter-spacing: -0.015em;
  /* A plan name of 1 long word breaks inside the card, as `.ns-plan h3` of the offer box does. C4 fix round, decision (1). */
  overflow-wrap: anywhere;
}
.plan .desc {
  color: var(--text-2);
  font-size: var(--fs-4);
  margin-top: 2px;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.price b {
  font: 700 var(--fs-fig) / 1.1 var(--font);
  letter-spacing: -0.03em;
}
.price span {
  color: var(--text-2);
  font-weight: 600;
}
.perm {
  color: var(--text-3);
  font-size: var(--fs-3);
}
.trial {
  margin-top: 12px;
}
.renew {
  margin: 12px 0 20px;
  color: var(--text-3);
  font-size: var(--fs-3);
  flex: 1;
}
.plan .btn {
  margin-top: auto;
}
.plan .note-inline {
  margin-bottom: var(--sp-4);
}
.cancel-line {
  margin-top: var(--sp-6);
  color: var(--text-2);
  display: flex;
  gap: 8px;
  align-items: center;
}
.plans + .offer-login,
.codebox + .offer-login {
  margin-top: var(--sp-6);
}
.co-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px;
  align-items: start;
  margin-top: var(--sp-6);
}
.disc {
  position: sticky;
  top: 16px;
}
.disc .dlist dd {
  font-size: var(--fs-3);
}
.methods {
  display: grid;
  gap: 8px;
  border: 0;
  padding: 0;
  margin: 0 0 var(--sp-5);
}
.method {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 16px;
  border-radius: var(--r-lg);
  border: 1px solid var(--control);
  background: var(--card);
  cursor: pointer;
  font-weight: 650;
}
.method input {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--control);
  flex: none;
  margin: 0;
  display: grid;
  place-items: center;
  background: var(--card);
}
.method input:checked {
  border-color: var(--accent);
  background: var(--accent);
}
.method input:checked::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-ink);
}
.method:has(input:checked) {
  border: 2px solid var(--accent-text);
  background: var(--accent-soft);
  padding: 0 15px;
}
.method:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.method small {
  margin-left: auto;
  color: var(--text-3);
  font-weight: 500;
  font-size: var(--fs-2);
}
.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.paynow {
  margin: 20px 0 12px;
  font-size: var(--fs-5);
}
.r-footer {
  border-top: 1px solid var(--line);
  padding-block: 32px 48px;
  color: var(--text-2);
  font-size: var(--fs-3);
}
.r-footer .r-wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.r-footer h2 {
  font: 700 var(--fs-3) / 1.4 var(--font);
  color: var(--text);
  margin-bottom: 8px;
}
.r-footer ul {
  list-style: none;
  display: grid;
  gap: 2px;
}
.r-footer a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  color: var(--text-2);
  text-decoration: none;
}
.r-footer a:hover {
  text-decoration: underline;
}
.disc .dlist > div {
  grid-template-columns: 6.5rem 1fr;
}
.r-footer a:hover {
  color: var(--accent-text);
}
.r-footer [aria-current] {
  font-weight: 700;
  color: var(--text);
}
.success-mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--good-soft);
  color: var(--good);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.note-inline {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--text-3);
  font-size: var(--fs-3);
}
/* The shared account line. It sits under a heading or above a form, and it has the same gap as a notice. */
.form-page .shared-note {
  margin-top: var(--sp-5);
}
.r-card .shared-note {
  margin-bottom: var(--sp-3);
}
.summary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 56rem) {
  .co-grid {
    grid-template-columns: 1fr;
  }
  .disc {
    position: static;
  }
  .r-footer .r-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
@media (max-width: 30rem) {
  .disc .dlist > div {
    grid-template-columns: 1fr;
  }
  .row2 {
    grid-template-columns: 1fr;
  }
  .btn {
    min-height: var(--target);
  }
  .r-nav .btn {
    min-height: var(--target);
  }
}
.hint-box {
  margin-top: 16px;
}
/* Campaign presentation (step 3) */
.cp {
  display: grid;
  gap: 0;
  margin-top: 16px;
}
.cstep {
  display: grid;
  gap: 2px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.cstep:first-child {
  border-top: 0;
  padding-top: 0;
}
.cstep .when {
  color: var(--text-3);
  font-size: var(--fs-3);
  font-weight: 600;
}
.cstep .amt {
  font: 700 var(--fs-fig) / 1.1 var(--font);
  letter-spacing: -0.03em;
}
.cstep .amt small {
  font: 600 var(--fs-5) var(--font);
  color: var(--text-2);
  letter-spacing: 0;
  margin-left: 4px;
}
.cstep .for {
  color: var(--text-2);
  font-size: var(--fs-3);
}
.camp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.camp-hero .r-card {
  padding: clamp(var(--sp-5), 4vw, var(--sp-7));
}
.narrow-card > .r-title,
.r-narrow > .r-title:has(+ .r-card) {
  margin-bottom: var(--sp-5);
}
.camp-badge {
  margin-bottom: 8px;
}
/* A long campaign name wraps inside the badge. The icon keeps its size. */
.camp-badge .badge {
  white-space: normal;
  max-width: 100%;
  min-width: 0;
  line-height: 1.25;
  padding-block: var(--sp-1);
  overflow-wrap: anywhere;
  text-align: left;
}
.camp-badge .badge svg {
  flex: none;
}
.camp-note {
  margin-top: 12px;
}
.campaign-plan .desc {
  color: var(--text-2);
}
.campaign-plan h2 {
  margin-bottom: var(--sp-1);
}
/* The quiet box of the success page: the badge, the names, the 2 steps and the renewal sentence. */
.cp-box {
  margin: 24px 0;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  background: var(--card-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.r-card .cp-box h2,
.r-card .cp-box h2:not(:first-child) {
  margin: 0;
}
.cp-box .cp-campaign {
  margin-top: 2px;
  color: var(--text-2);
  overflow-wrap: anywhere;
}
.cp-box .renew {
  margin: 12px 0 0;
}
.disc .cp {
  margin-top: 0;
}
/* The amounts of the checkout disclosure are text of the card, not the figure of the page. DC2-01. */
.disc .cstep .amt {
  font-size: var(--fs-8);
}
.disc .cstep .amt small {
  font-size: var(--fs-3);
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.success-mark.quiet {
  background: var(--card-2);
  color: var(--text-2);
}
.codeform {
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
  flex-wrap: wrap;
}
.codeform .field {
  flex: 1 1 14rem;
  margin: 0;
}
.codeform .btn {
  /* The height of the field next to it, and the space of the label above the field: the line of the
     label (`--fs-3` at `--lh-reader`) and the gap of 6 px of `.field`. The button and the field then
     have the same top and the same bottom. */
  min-height: var(--control-h-lg);
  margin-top: calc(var(--fs-3) * var(--lh-reader) + 6px);
}
.codebox {
  margin-top: var(--sp-7);
  max-width: 40rem;
}
.codebox h2 {
  margin-bottom: var(--sp-1);
}
.codebox .code-help {
  color: var(--text-2);
  margin-bottom: var(--sp-4);
}
.codebox .field {
  margin-bottom: 0;
}
.codebox .stack-notice {
  margin-bottom: var(--sp-4);
}
/* The campaign page asks for the code in its card: the card is the page, so it has no top gap. */
.narrow-card .codebox {
  margin-top: 0;
}
.codebox .r-lead {
  margin-bottom: var(--sp-4);
}
.state-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: var(--sp-6);
}
.cap {
  color: var(--text-3);
  font-size: var(--fs-2);
  font-weight: 650;
  margin-bottom: 8px;
}
@media (max-width: 56rem) {
  .camp-hero {
    grid-template-columns: 1fr;
  }
  .state-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 30rem) {
  .codeform .btn {
    margin-top: 0;
    width: 100%;
  }
  .cstep .amt {
    font-size: 28px;
  }
}
/* Round 004 consistency: classes in place of style attributes on hosted pages */
.fake-strip {
  background: var(--warn-soft);
  color: var(--warn);
  text-align: center;
  padding: 8px 16px;
  font-size: var(--fs-3);
  font-weight: 650;
}
.mail {
  font: 500 var(--fs-3) / 1.7 var(--mono);
  white-space: pre-wrap;
  background: var(--card-2);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.mail-meta {
  color: var(--text-3);
  font-size: var(--fs-3);
  margin-bottom: 12px;
}
.narrow-card {
  max-width: var(--w-form);
  margin-inline: auto;
  margin-top: var(--sp-7);
}
/*
 * The card of the 5 account pages: log-in, sign-up, the 2 password pages and the staff invite. It is
 * a narrow card, as `r-card r-narrow`. The name is the class of the pages of version 1.
 */
.next-step {
  margin-top: 12px;
  color: var(--text-2);
  font-size: var(--fs-6);
  max-width: 56ch;
  text-wrap: pretty;
}
.form-page .notice,
.form-page .form,
.form-page .form-links {
  margin-top: var(--sp-5);
}
.form-links {
  list-style: none;
  padding: 0;
}
.form-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
}
.field > label.check {
  font-weight: 400;
}
.field > label.show-password {
  min-height: var(--target);
}
.check[hidden] {
  display: none;
}
.acts-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: var(--sp-5);
}
.sbox.err + .acts-row {
  margin-top: var(--sp-4);
}
/* The 2 buttons of a fake page stack on a phone, so each one has the full width and a 44 px target. */
@media (max-width: 30rem) {
  .fake-page .acts-row {
    flex-direction: column;
  }
  .fake-page .acts-row .btn {
    width: 100%;
  }
}

/* Sprite of the icons: no size and no style attribute, because style-src is 'self'. */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
/* Development and sandbox strip. In the flow of the page, never fixed. */
.fake-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: center;
  justify-content: center;
}
.fake-strip a {
  color: inherit;
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
}
.fake-strip strong {
  font-weight: 700;
}
@media print {
  .fake-strip {
    display: none;
  }
}
/* Header and footer details */
.r-nav ul,
.r-nav {
  list-style: none;
}
.r-nav form {
  margin: 0;
}
.r-footer .r-lang {
  display: grid;
  gap: 2px;
}
.r-footer .r-lang a .i {
  color: var(--accent-text);
}
@media print {
  .r-header,
  .r-footer {
    display: none;
  }
}
/* A page with 1 card: the legal pages, the error pages and the no-site page */
.r-prose {
  max-width: var(--measure);
  margin-inline: auto;
}
.r-prose h1 {
  font: 700 clamp(26px, 8.5vw, var(--fs-hero)) / var(--lh-tight) var(--font);
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-5);
  text-wrap: balance;
}
.r-prose h2 {
  font: 700 var(--fs-7) / var(--lh-heading) var(--font);
  letter-spacing: -0.015em;
  margin-block: var(--sp-7) var(--sp-3);
}
.r-prose h3 {
  font: 700 var(--fs-6) / var(--lh-heading) var(--font);
  margin-block: var(--sp-5) var(--sp-2);
}
.r-prose p,
.r-prose ul,
.r-prose ol {
  margin-block: 0 var(--sp-4);
  line-height: var(--lh-reader);
}
.r-prose ul,
.r-prose ol {
  padding-inline-start: 1.4em;
}
.r-prose li + li {
  margin-top: var(--sp-1);
}
.r-prose a {
  overflow-wrap: anywhere;
}
.r-prose code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--card-2);
  border-radius: var(--r-sm);
  padding: 0.1em 0.35em;
}
.r-prose blockquote {
  margin: 0 0 var(--sp-4);
  padding-inline-start: var(--sp-4);
  border-inline-start: 3px solid var(--line-strong);
  color: var(--text-2);
}
.r-prose > *:last-child {
  margin-bottom: 0;
}
.r-error {
  display: grid;
  justify-items: start;
  gap: var(--sp-3);
}
.r-error .r-title {
  font-size: clamp(26px, 8.5vw, var(--fs-9));
}
.r-error .r-lead {
  margin-top: 0;
}
.r-error .req-id {
  color: var(--text-3);
  font-size: var(--fs-2);
  user-select: all;
  overflow-wrap: anywhere;
}
.r-error .acts-row {
  margin-top: var(--sp-3);
}
/* The integration guide at /docs/integration: 1 column of text, code blocks and tables */
.guide {
  max-width: 52rem;
  margin-inline: auto;
}
.guide h1 {
  font: 700 var(--fs-hero) / var(--lh-tight) var(--font);
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-5);
}
.guide h2 {
  font: 700 var(--fs-7) / var(--lh-heading) var(--font);
  letter-spacing: -0.015em;
  margin-block: var(--sp-7) var(--sp-3);
  scroll-margin-top: var(--sp-4);
}
.guide h3 {
  font: 700 var(--fs-6) / var(--lh-heading) var(--font);
  margin-block: var(--sp-5) var(--sp-2);
}
.guide p,
.guide ul,
.guide ol {
  margin-block: 0 var(--sp-3);
  max-width: var(--measure);
}
.guide ul,
.guide ol {
  padding-inline-start: 1.4em;
}
.guide li + li {
  margin-top: var(--sp-1);
}
.guide code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--card-2);
  border-radius: var(--r-sm);
  padding: 0.1em 0.3em;
  /* The font joins `===` into 1 sign. A developer must tell `==` from `===`. */
  font-variant-ligatures: none;
}
.guide :not(pre) > code {
  overflow-wrap: anywhere;
}
/* A code word in a cell does not break. A narrow screen scrolls the table in its region. */
.guide td code,
.guide th code {
  overflow-wrap: normal;
}
.guide pre {
  font-variant-ligatures: none;
  margin: 0 0 var(--sp-4);
  padding: var(--sp-4);
  overflow-x: auto;
  background: var(--card-2);
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: var(--r-lg);
  line-height: 1.5;
}
.guide pre code {
  background: none;
  padding: 0;
  font-size: var(--fs-2);
}
.guide .table-scroll {
  overflow-x: auto;
  margin-block: 0 var(--sp-4);
}
.guide table {
  border-collapse: collapse;
  font-size: var(--fs-3);
}
.guide .table-scroll > table {
  min-width: 36rem;
}
.guide th,
.guide td {
  text-align: start;
  vertical-align: top;
  padding: var(--sp-2) var(--sp-3);
  border-bottom: 1px solid var(--line);
}
.guide th {
  font-weight: 700;
  white-space: nowrap;
  color: var(--text-3);
}

/* Milestone R4: the offer, the checkout, the payment pages and the success page. Classes in place of style attributes. */
.r-wide {
  max-width: none;
}
.r-title-co {
  font-size: clamp(28px, 3.4vw, 40px);
}
.r-offer-head {
  max-width: 40rem;
}
.r-done-title {
  font-size: var(--fs-9);
}
.r-done-lead {
  font-size: var(--fs-5);
  /* The text holds the email of the reader, which has no break point. QAR4-04. */
  overflow-wrap: anywhere;
}
.r-done-trial {
  margin-top: 8px;
  color: var(--text-2);
}
.r-done .dlist {
  margin: 24px 0;
}
/* The note of a Swish payment in progress has --sp-5 under it, above the button. DT4-01. */
.r-done .swish-line {
  margin: 0 0 var(--sp-5);
}
.r-done-links {
  margin-top: 16px;
  text-align: center;
}
.co-grid .r-card h2 + .field,
.co-grid .r-card h2 + .check {
  margin-top: 0;
}
.co-grid form.r-card h2:not(:first-child) {
  margin-top: var(--sp-5);
}
.co-grid .notice,
.co-grid .stripe-element {
  margin-bottom: var(--sp-4);
}
.method input[type="radio"] + span {
  flex: 1;
}
.pay-note {
  margin-bottom: 20px;
}
.wallet-help {
  color: var(--text-2);
  font-size: var(--fs-3);
  margin-bottom: var(--sp-3);
}
.stripe-slot:focus {
  outline: none;
}
.stripe-slot .sbox {
  margin-bottom: var(--sp-4);
}
.card-fields .row2 {
  margin-top: 0;
}
.wait-mark,
.handoff-mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--accent-text);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.wait-mark.warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.notice-focus:focus {
  outline: none;
}
.notice-focus + .notice-focus {
  margin-top: var(--sp-3);
}
.plan-description {
  margin-top: 2px;
}
.fake-state {
  margin-top: var(--sp-4);
}
.field > .hint + .select,
.field > .hint + .input {
  margin-top: 0;
}
/* A rule that sets `display` beats the `hidden` attribute of the browser, so the elements that the
   payment script shows and hides state it. The wallet options hide until script is on (S13). */
.method[hidden],
.error[hidden],
.stripe-element[hidden],
.sbox[hidden],
.btn[hidden] {
  display: none;
}
/* The card fields show when `card` is chosen, and the help line of a wallet when that wallet is
   chosen. CSS only, so the picker needs no script. */
.checkout-form .card-fields,
.checkout-form .wallet-help {
  display: none;
}
.checkout-form.single-method .card-fields,
.checkout-form:has(input[name="method"][value="card"]:checked) .card-fields,
.checkout-form:has(input[name="method"][value="apple_pay"]:checked) .wallet-help-apple_pay,
.checkout-form:has(input[name="method"][value="google_pay"]:checked) .wallet-help-google_pay {
  display: block;
}
.card-fields .hint {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* The seller block: the checkout disclosure, the invoice and the legal entity preview. N11, N12. */
.seller {
  display: block;
  font-style: normal;
  overflow-wrap: anywhere;
}
.seller > span,
.seller > strong {
  display: block;
}
.seller-name {
  font-weight: 600;
}
.seller-address {
  white-space: pre-line;
}
.disc .d-price {
  font-weight: 650;
}
.disc .d-per {
  color: var(--text-2);
}
.disc .d-vat,
.disc .d-monthly {
  display: block;
  color: var(--text-2);
  font-size: var(--fs-3);
  font-weight: 400;
}
.r-lead + .notice,
.r-lead + .notice-focus {
  margin-top: 16px;
}
/* A notice of the checkout that follows the `h1` has the same gap. DPR2-01. */
.r-title-co + .notice,
.r-title-co + .notice-focus {
  margin-top: var(--sp-4);
}
.r-wrap > .stack-notice {
  margin-bottom: 20px;
}
/* A notice that follows a lead or a note keeps a gap above it. DC2-04. */
.r-lead + .stack-notice,
.r-offer-head + .stack-notice,
.camp-note + .stack-notice {
  margin-top: var(--sp-4);
}

/* The cards of the outbox message page: a space under the title and a gap between the cards. DN1-04. */
.dev-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}
.dev-stack + .acts-row {
  margin-top: var(--sp-6);
}

/* Milestone R5: the account pages, the invoice page and the payment method page. */
.r-account-title {
  font-size: var(--fs-9);
  margin-bottom: var(--sp-6);
}
.r-account-notice {
  margin-bottom: var(--sp-5);
}
/*
 * At 56 rem and wider the subscription sits left, and the details and the data sit right. The card of the
 * documents follows them and takes the full width, F4.
 */
.r-account-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--sp-6);
  align-items: start;
}
.r-account-grid.r-account-solo {
  grid-template-columns: minmax(0, var(--w-form));
}
.r-account-grid > .r-account-documents {
  grid-column: 1 / -1;
  min-width: 0;
}
.r-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-6);
  min-width: 0;
}
.r-card .notice {
  margin-bottom: var(--sp-4);
}
.r-card .notice h3,
.r-card .notice h2 {
  font: 700 var(--fs-5) / var(--lh-heading) var(--font);
  margin: 0 0 var(--sp-1);
}
.r-account-line {
  color: var(--text-2);
  margin-bottom: var(--sp-4);
}
.r-card .dlist {
  margin-top: var(--sp-2);
}
.r-card .dlist dd {
  overflow-wrap: anywhere;
}
.plan-monthly {
  display: block;
  color: var(--text-2);
  font-size: var(--fs-3);
}
.amount {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.r-inline-form {
  display: inline-flex;
}
.r-account-hint {
  margin-top: var(--sp-2);
}
.r-account-actions {
  align-items: center;
}
.warning-list {
  padding-inline-start: 1.25em;
  display: grid;
  gap: var(--sp-1);
}
.form-page .notice + .notice {
  margin-top: var(--sp-3);
}
/* 1 row of the account details: a native `details` with the heading in its summary. DR-12. */
.details-row {
  border-top: 1px solid var(--line);
}
.details-row:first-of-type {
  margin-top: var(--sp-2);
}
.details-row > summary {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-3);
  min-height: var(--target);
  cursor: pointer;
  list-style: none;
}
.details-row > summary::-webkit-details-marker {
  display: none;
}
.details-row > summary h3 {
  font: 650 var(--fs-3) / 1.3 var(--font);
  color: var(--text-3);
}
.details-row > summary .details-value {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: var(--fs-4);
}
.details-row > summary .i {
  flex: none;
  color: var(--text-3);
}
@media (prefers-reduced-motion: no-preference) {
  .details-row > summary .i {
    transition: transform 0.15s ease-out;
  }
}
.details-row[open] > summary .i {
  transform: rotate(180deg);
}
.details-row > .form,
.details-row > .hint {
  margin-top: var(--sp-2);
}
.details-row > .form {
  padding-bottom: var(--sp-4);
}
.details-row .form .btn {
  margin-top: var(--sp-2);
}
/* The log-out at the end of the card of the details: after a 1 px divider, under the 3 save buttons. */
.r-card-end {
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.r-method-current {
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-5);
}
.payment-method-page .checkout-form {
  margin-top: var(--sp-4);
}
/* The invoice page. Screen S20. Print first: black on white, no navigation, margins of 20 mm. */
.r-invoice-page {
  max-width: 48rem;
  margin-inline: auto;
}
.invoice-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2) var(--sp-4);
  margin-bottom: var(--sp-5);
}
.r-invoice-title {
  font-size: var(--fs-8);
}
.invoice-parties {
  display: grid;
  gap: var(--sp-4) var(--sp-6);
  margin-bottom: var(--sp-5);
}
.invoice-parties h2 {
  font: 650 var(--fs-3) / 1.3 var(--font);
  color: var(--text-3);
  margin-bottom: var(--sp-1);
}
.invoice-lines {
  margin: 0;
  overflow-wrap: anywhere;
}
.invoice-meta {
  margin-bottom: var(--sp-5);
}
/*
 * The totals of a bundle document, under the table of its lines. Milestone B4, ruling G6. A block of
 * 20 rem at the end of the line. With 2 VAT rates or more, the block `VAT by rate` comes first with
 * 1 pair of rows for each rate.
 */
.invoice-totals {
  display: grid;
  gap: var(--sp-4);
  width: min(100%, 20rem);
  margin: var(--sp-4) 0 0 auto;
  font-variant-numeric: tabular-nums;
}
.invoice-totals dl {
  display: grid;
  gap: var(--sp-1);
  margin: 0;
}
.invoice-totals dt {
  color: var(--text-2);
}
.invoice-totals dd {
  margin: 0;
  text-align: end;
  white-space: nowrap;
}
.invoice-sums > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 var(--sp-4);
}
.invoice-sums .grand {
  padding-top: var(--sp-2);
  border-top: 2px solid var(--text);
  font-weight: 700;
}
.invoice-sums .grand dt {
  color: var(--text);
}
.invoice-by-rate {
  font: 650 var(--fs-3) / 1.3 var(--font);
  color: var(--text-3);
  margin: 0 0 var(--sp-1);
}
.invoice-rate-rows .rate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sp-1) var(--sp-4);
}
.invoice-rate-rows .rate + .rate {
  margin-top: var(--sp-2);
}
/* No break inside a word or an amount on the invoice, on screen and in print. QA5-03. */
.invoice table.data td {
  overflow-wrap: normal;
  font-variant-numeric: tabular-nums;
}
.invoice table.data td.num {
  white-space: nowrap;
}
/* DB4-01: the cell Plan keeps the text of a bundle line on 1 row. Below 36 rem the rows stack. */
@media (min-width: 36rem) {
  .invoice table.data th:first-child,
  .invoice table.data td:first-child {
    min-width: 9rem;
  }
}
.invoice-currency,
.invoice-refund {
  margin-top: var(--sp-3);
  color: var(--text-2);
}
.invoice-refund {
  font-weight: 600;
  color: var(--text);
}
.invoice-actions {
  margin-top: var(--sp-4);
  align-items: center;
}
/* The credit notes of an invoice, under the document. They do not print. */
.invoice-credit-notes {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}
.invoice-credit-notes h2 {
  font: 700 var(--fs-6) / 1.3 var(--font);
  margin: 0 0 var(--sp-2);
}
.invoice-credit-notes ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.invoice-credit-notes li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  min-height: var(--target);
}
@media (min-width: 36rem) {
  .invoice-parties {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 56rem) {
  .r-account-grid,
  .r-account-grid.r-account-solo {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media print {
  .r-invoice-page {
    max-width: none;
  }
  .invoice-actions,
  .invoice-credit-notes,
  .skip,
  .fake-strip {
    display: none;
  }
  body.reader {
    background: #fff;
    color: #000;
  }
  .r-card.invoice {
    box-shadow: none;
    padding: 0;
    background: transparent;
    color: #000;
  }
  .invoice table.data th {
    color: #000;
  }
  .invoice-totals dt,
  .invoice-by-rate {
    color: #000;
  }
  @page {
    margin: 20mm;
  }
}
.r-account-grid .r-card .acts-row + p {
  margin-top: var(--sp-4);
}
.r-card .notice .btn {
  max-width: 100%;
  white-space: normal;
  height: auto;
  padding-block: var(--sp-2);
}

/* FR4-01. A field on a reader page has 16 px text and a height of 48 px, so a phone does not zoom on
   focus. The main button of a form is large, and it fills the width below 36rem. */
:is(.r-card, .form-page) .input,
:is(.r-card, .form-page) .select {
  min-height: var(--control-h-lg);
  font-size: var(--fs-5);
}
:is(.r-card, .form-page) form .acts-row > button[type="submit"] {
  min-height: var(--control-h-lg);
  padding-inline: 24px;
  font-size: var(--fs-5);
}
@media (max-width: 36rem) {
  :is(.r-card, .form-page) form .acts-row > button[type="submit"] {
    width: 100%;
    white-space: normal;
  }
}
/* FR4-04. A long email in a sentence wraps inside the card. */
.r-card .dlist + p {
  overflow-wrap: anywhere;
}
/* FR4-05. The hint above the card fields has the gap of the other blocks below it. */
.card-fields .hint:first-child {
  margin-bottom: var(--sp-5);
}
/* FR4-06, QAC0-02. A quiet button that starts a line of the subscription card aligns its text with the
   labels above it, at each width and in each language. Each quiet button moves back by its padding of
   18 px and its border of 1 px, so a button that wraps to a line of its own has its text at the label
   edge. The column gap grows by the same 19 px, so a quiet button on the same line as another button
   keeps its place. Below 36rem, the width where the main submit button is full width, the actions
   stack. */
.r-account-actions {
  column-gap: 31px;
}
.r-account-actions > .btn-quiet {
  margin-inline-start: -19px;
}
@media (max-width: 36rem) {
  .r-account-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Milestone SW2 of step 10: the Swish step, the QR tile and the note of the method row. */
.checkout-form .swish-line {
  display: none;
}
.checkout-form:has(input[name="method"][value="swish"]:checked) .swish-line {
  display: flex;
  margin: var(--sp-4) 0 var(--sp-5);
}
/* Milestone SW3 of step 10: the note above the button of the payment method page of a Swish subscriber. */
.swish-leave {
  margin: var(--sp-4) 0 var(--sp-5);
}
.swish-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: var(--sp-4) 0 0;
  padding: 12px 14px;
  border-radius: var(--r-lg);
  background: var(--card-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2);
  font-size: var(--fs-3);
}
.swish-note svg {
  flex: none;
  color: var(--text-3);
  margin-top: 2px;
}
.swish-page {
  max-width: 48rem;
  margin-inline: auto;
}
.swish-title {
  margin-bottom: 8px;
}
.swish-card .dlist {
  margin-top: var(--sp-5);
}
.swish-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: var(--sp-5);
}
.swish-grid > * {
  min-width: 0;
}
.swish-opt {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 20px;
  border-radius: var(--r-xl);
  background: var(--card-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.swish-opt h2 {
  font: 700 var(--fs-5) / 1.3 var(--font);
  margin: 0;
}
.swish-opt p {
  color: var(--text-2);
  font-size: var(--fs-3);
}
/*
 * The QR tile, section 10.1, part 14 of the tokens file. The tile is white and the modules are dark,
 * with forced colors too, so a phone can scan the code. The 2
 * literal colors are no tokens: paper is white. The SVG draws its modules with `currentColor`.
 */
.qr-tile {
  display: grid;
  place-items: center;
  width: fit-content;
  padding: 10px;
  background: #ffffff;
  color: #2e3440;
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  forced-color-adjust: none;
}
.qr {
  width: 176px;
  height: 176px;
  display: block;
}
@media (max-width: 36rem) {
  .swish-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .qr {
    width: 160px;
    height: 160px;
  }
  .swish-opt .btn {
    width: 100%;
  }
}
.ends-line {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: var(--sp-4);
  color: var(--text-3);
  font-size: var(--fs-3);
}
.swish-wait {
  margin-top: 8px;
  color: var(--text-3);
  font-size: var(--fs-3);
}
.swish-card .wait-mark {
  margin-bottom: 16px;
}
/* The buttons of the Swish step wrap and fill the width on a phone, as the mockup does. */
@media (max-width: 36rem) {
  .swish-card .acts-row .btn {
    white-space: normal;
    width: 100%;
    text-align: center;
    height: auto;
    min-height: var(--target);
    padding-block: 10px;
  }
}

/* The plan change pages of step 7: the back link, the list with its outcome boxes and the confirmation
   card. Design, part "Step 7 start gaps", rulings T3.2 and T3.4. Each value is a token. */
.r-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--target);
  margin-bottom: var(--sp-3);
  font-weight: 650;
  font-size: var(--fs-3);
}
.pc-list {
  display: grid;
  gap: 16px;
  margin-top: var(--sp-6);
}
.pc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 32px;
  background: var(--card);
  border-radius: var(--r-2xl);
  padding: 24px;
  box-shadow: var(--shadow-1);
}
.pc h2 {
  font: 700 var(--fs-7) / 1.25 var(--font);
  letter-spacing: -0.015em;
}
.pc .desc {
  color: var(--text-2);
  font-size: var(--fs-4);
  margin-top: 2px;
}
.pc .renew {
  margin: 12px 0 0;
  color: var(--text-3);
  font-size: var(--fs-3);
}
.pc-side {
  display: grid;
  gap: 12px;
  align-content: space-between;
}
.outcome {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 12px 14px;
  border-radius: var(--r-lg);
  background: var(--card-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: var(--fs-3);
  color: var(--text-2);
}
.outcome .chip {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-text);
  display: grid;
  place-items: center;
  grid-row: span 2;
}
.outcome b {
  display: block;
  color: var(--text);
  font-weight: 700;
  font-size: var(--fs-4);
}
.outcome p {
  margin: 0;
}
/* The second paragraph of a box, the seats line of a plan with too few seats, sits under the text in column 2. DFS1B-01. */
.outcome > p + p {
  grid-column: 2;
}
.curplan {
  display: flex;
  gap: 8px 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: var(--r-xl);
  background: var(--card);
  box-shadow: var(--shadow-1);
  margin-top: var(--sp-6);
}
.curplan .l {
  color: var(--text-3);
  font-size: var(--fs-3);
  font-weight: 600;
}
.curplan b {
  font-weight: 700;
}
@media (max-width: 48rem) {
  .pc {
    grid-template-columns: minmax(0, 1fr);
  }
}
.confirm-card {
  max-width: var(--w-form);
  margin-inline: auto;
}
.confirm-card .newplan {
  padding: 16px 18px;
  border-radius: var(--r-lg);
  background: var(--card-2);
  box-shadow: inset 0 0 0 1px var(--line);
  margin: var(--sp-4) 0 var(--sp-5);
}
.confirm-card .newplan h3 {
  font: 700 var(--fs-6) / 1.3 var(--font);
  margin: 0;
}
.confirm-card .newplan .p {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.confirm-card .newplan .p b {
  font: 700 var(--fs-fig) / 1.1 var(--font);
  letter-spacing: -0.03em;
}
.confirm-card .newplan .p span {
  color: var(--text-2);
  font-weight: 600;
}
.confirm-card .newplan p.r {
  margin: 8px 0 0;
  color: var(--text-3);
  font-size: var(--fs-3);
}
.confirm-card .dlist dd {
  font-size: var(--fs-4);
}
/* The note of a Swish upgrade has --sp-4 above it, under the rows. The VAT line keeps its gap. DT4-02. */
.confirm-card .swish-line {
  margin-top: var(--sp-4);
}
.confirm-card .vat {
  color: var(--text-3);
  font-size: var(--fs-3);
  margin-top: var(--sp-3);
}
.confirm-card .paynow {
  margin: var(--sp-5) 0 var(--sp-3);
  font-weight: 650;
}
.confirm-card .lead-line {
  margin-top: var(--sp-4);
  color: var(--text-2);
  font-size: var(--fs-3);
}
.confirm-card .outcome {
  margin-bottom: var(--sp-4);
}
/* The button of a confirmation has --sp-5 above it. A page with a Pay now line has its gap under that line. DT3-01. */
.confirm-card form > .acts {
  margin-top: var(--sp-5);
}
.confirm-card .paynow ~ .acts {
  margin-top: 0;
}
/* The notice under a heading of the plan change pages has --sp-4 above it. DT3-02. */
.r-title + .notice-focus {
  margin-top: var(--sp-4);
}
.notice .notice-act {
  margin-top: var(--sp-3);
}
.plan-state {
  margin-top: var(--sp-5);
}

/* Work 009-mcp-server: Grant page (hosted surface, Nord light tokens only) */
.g-wrap {
  max-width: var(--w-form);
  margin-inline: auto;
  overflow-wrap: anywhere;
}
.g-lead {
  margin-top: 12px;
  color: var(--text-2);
  font-size: var(--fs-5);
  text-wrap: pretty;
}
.r-title.g-title {
  font-size: var(--fs-9);
  line-height: 1.2;
}
.g-card {
  margin-top: var(--sp-5);
}
.g-alert {
  margin-bottom: var(--sp-5);
}
.g-wrap .host {
  display: inline-block;
  max-width: 100%;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  background: var(--card-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font: 600 var(--fs-2) / 1.5 var(--mono);
  overflow-wrap: anywhere;
}
.grant {
  display: grid;
  gap: var(--sp-5);
}
.grant > *,
.grant fieldset > *,
.grant .dlist > div > *,
.minibox .dlist > div > * {
  min-width: 0;
}
.grant .dlist > div,
.minibox .dlist > div {
  grid-template-columns: minmax(7rem, 10rem) minmax(0, 1fr);
}
.grant fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  display: grid;
  gap: 10px;
}
.grant legend {
  padding: 0;
  margin-bottom: 10px;
  max-width: 100%;
  overflow-wrap: anywhere;
  font: 700 var(--fs-5) / 1.3 var(--font);
  letter-spacing: -0.01em;
}
.scope {
  padding: 14px 16px;
  border-radius: var(--r-lg);
  background: var(--card-2);
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid;
  gap: 4px;
}
.scope:has(input:checked) {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.scope.personal:has(input:checked) {
  background: var(--warn-soft);
  box-shadow: inset 0 0 0 2px var(--warn);
}
.scope .head-line {
  display: flex;
  align-items: center;
  gap: 8px 10px;
  flex-wrap: wrap;
  font-weight: 700;
}
.scope .check {
  min-height: var(--target);
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.scope .check span.nm {
  display: flex;
  align-items: center;
  gap: 8px 10px;
  flex-wrap: wrap;
  font-weight: 700;
}
.scope .sdesc {
  margin: 0 0 0 34px;
  color: var(--text-2);
  font-size: var(--fs-3);
}
.scope.fixed {
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
}
.scope.fixed .tick {
  width: 22px;
  height: 22px;
  margin-top: 10px;
  border-radius: 7px;
  background: var(--text-2);
  color: var(--card);
  display: grid;
  place-items: center;
}
.scope.fixed .body {
  display: grid;
  gap: 4px;
  padding-top: 8px;
}
.scope.fixed .sdesc {
  margin: 0;
}
.fine {
  color: var(--text-2);
  font-size: var(--fs-3);
  display: grid;
  gap: 6px;
}
.fine p {
  margin: 0;
}
.grant .acts,
.g-login-acts {
  display: flex;
  gap: 8px 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0;
}
.grant .acts .btn {
  min-width: 8rem;
}
.who-line {
  display: flex;
  gap: 8px 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  color: var(--text-2);
  font-size: var(--fs-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}
.who-line b {
  color: var(--text);
  font-weight: 650;
  overflow-wrap: anywhere;
}
.minibox {
  padding: 14px 16px;
  border-radius: var(--r-lg);
  background: var(--card-2);
  box-shadow: inset 0 0 0 1px var(--line);
  margin-top: var(--sp-5);
}
.minibox .dlist > div {
  padding: 6px 0;
  border-top: 0;
}
.sbox .sb-t {
  font: 700 var(--fs-7) / 1.25 var(--font);
  letter-spacing: -0.01em;
}
.r-main .sbox {
  margin-top: var(--sp-6);
}
.r-main .sbox.first {
  margin-top: var(--sp-5);
}
.sbox .acts form {
  display: contents;
}
.g-wrap .sbox .acts .btn {
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 100%;
  padding-block: 10px;
}
@media (max-width: 30rem) {
  .grant .dlist > div,
  .minibox .dlist > div {
    grid-template-columns: minmax(0, 1fr);
  }
  .grant .acts,
  .g-login-acts {
    flex-direction: column;
    align-items: stretch;
  }
  .grant .acts .btn,
  .g-login-acts .btn {
    width: 100%;
  }
  .scope .sdesc,
  .scope.fixed .sdesc {
    margin-left: 0;
  }
  .who-line {
    flex-direction: column;
    align-items: flex-start;
  }
}
