/* Secret Share v1 — shared component stylesheet for the static templates.
   Rules for this file: no remote resources, no expressions, no inline styles in the
   templates. States are driven by ARIA/HTML attributes where possible (aria-selected,
   aria-invalid, aria-busy, disabled, hidden) so the same markup works in the app.
   Breakpoint: phone layout at max-width 767px (designs drawn at 1280px and 390px). */

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: normal; /* matches the canvas; components set their own line-heights */
  color: var(--text-body);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
strong { font-weight: 700; }
a { color: var(--action); }
a:hover { color: var(--action-hover); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a, button, input, textarea, select, [tabindex] {
  transition: background var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease);
}
:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.icon { flex: 0 0 auto; }
.mono { font-family: var(--font-mono); }
/* Runtime values (addresses, references, IDs) can be long: let them wrap instead of overflowing. */
[data-slot] { overflow-wrap: anywhere; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Stacks: vertical flex groups with a fixed gap (px). */
.stack { display: flex; flex-direction: column; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-18 { gap: 18px; } .gap-20 { gap: 20px; }
.gap-24 { gap: 24px; } .gap-28 { gap: 28px; } .gap-14 { gap: 14px; }

/* ── Product lockup (logo · divider · "Secret Share") ─────────────────── */
.lockup { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.lockup__logo { height: 30px; width: auto; }
.lockup__divider { width: 1px; height: 26px; background: var(--border-subtle); }
.lockup__name { font-size: 16px; font-weight: 600; color: var(--text-lockup); }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 700; line-height: 1; white-space: nowrap; text-decoration: none;
}
.btn--lg { height: 48px; padding: 0 24px; font-size: 16px; }
.btn--xl { height: 52px; padding: 0 28px; font-size: 16px; }
.btn--sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn--block { display: flex; width: 100%; }
.btn--primary { background: var(--action); color: #FFFFFF; border-color: var(--action); }
.btn--primary:hover { background: var(--action-hover); border-color: var(--action-hover); color: #FFFFFF; }
.btn--primary:active { background: var(--action-press); border-color: var(--action-press); }
/* Secondary: production uses #0043CE text and border (the canvas drew #0F62FE, 4.48:1). */
.btn--secondary { background: var(--action-soft); color: var(--action-hover); border-color: var(--action-hover); }
.btn--secondary:hover { background: var(--action-soft-hover); color: var(--action-hover); }
.btn--secondary:active { background: var(--action-soft-hover); color: var(--action-press); border-color: var(--action-press); }
.btn--text { background: transparent; color: var(--action); border-color: transparent; padding: 0 12px; height: 40px; }
.btn--text:hover { color: var(--action-hover); }
.btn--icon { width: 44px; padding: 0; }
.btn:disabled, .btn[aria-disabled="true"] { cursor: default; }
/* Disabled (not available yet) is grey; busy (request in progress) is pale blue with a changed label. */
.btn--primary:disabled { background: var(--bg-page); border-color: var(--border-subtle); color: var(--text-disabled); cursor: not-allowed; }
.btn--primary[aria-busy="true"] { background: var(--action-busy); border-color: var(--action-busy); color: #FFFFFF; cursor: progress; }
.btn--secondary:disabled { background: var(--bg-page); border-color: var(--border-subtle); color: var(--text-disabled); cursor: not-allowed; }
.btn--text:disabled { color: var(--action-busy); cursor: progress; }

/* In-page actions that look like links (help, "What happens to my email address?").
   They open something over the current screen, so they are buttons, not links. */
.link-button {
  display: inline; padding: 0; border: 0; background: none;
  color: var(--action); font-weight: 600; text-decoration: underline; text-align: left; cursor: pointer;
}
.link-button:hover { color: var(--action-hover); }
.icon-button {
  flex: 0 0 44px; width: 44px; height: 44px; border: none; border-radius: var(--radius-pill);
  background: var(--bg-subtle); color: var(--text-strong);
  display: flex; align-items: center; justify-content: center;
}
.icon-button:hover { background: var(--border-subtle); }

/* Busy status that replaces a button while a request runs (no spinner: brand rule). */
.busy-pill {
  display: flex; align-items: center; justify-content: center;
  height: 48px; border-radius: var(--radius-pill);
  background: var(--action-soft); color: var(--action-hover);
  font-size: 15px; font-weight: 700;
}

/* Google sign-in: Social Edge blue pill with Google's official G (unmodified) on a white circle.
   The G is cropped from Google's 40px pill asset: the 36px image is offset so its 18px G area shows. */
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  height: 48px; padding: 0 22px 0 10px;
  border: none; border-radius: var(--radius-pill);
  background: var(--action); color: #FFFFFF;
  font-size: 16px; font-weight: 700;
}
.btn-google:hover { background: var(--action-hover); }
.btn-google:active { background: var(--action-press); }
.btn-google__badge {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: var(--radius-pill);
  background: #FFFFFF; display: flex; align-items: center; justify-content: center;
}
.btn-google__crop { position: relative; width: 18px; height: 18px; overflow: hidden; }
.btn-google__g { position: absolute; left: -9px; top: -9px; width: 36px; height: 36px; max-width: none; }

/* ── Callouts and notes ───────────────────────────────────────────────── */
.callout {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--radius-md);
  font-size: 15px; line-height: 1.55;
}
.callout > .icon { margin-top: 2px; }
.callout__text { min-width: 0; overflow-wrap: anywhere; }
.callout--plain { display: block; padding: 14px 16px; }
.callout--info, .callout--wait { background: var(--callout-info-bg); color: var(--callout-info-fg); }
.callout--warn { background: var(--callout-warn-bg); color: var(--callout-warn-fg); border: 1px solid var(--callout-warn-border); }
.callout--warn > .icon { color: var(--callout-warn-icon); }
.callout--error { background: var(--callout-error-bg); color: var(--callout-error-fg); }
.callout--success { background: var(--callout-success-bg); color: var(--callout-success-fg); }
.callout--neutral { background: var(--callout-neutral-bg); color: var(--callout-neutral-fg); }

.footnote { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); }

/* ── Status badges ────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 700; white-space: nowrap;
}
.badge--pending { background: var(--status-pending-bg); color: var(--status-pending-fg); }
.badge--redeemed { background: var(--status-redeemed-bg); color: var(--status-redeemed-fg); }
.badge--revoked { background: var(--status-revoked-bg); color: var(--status-revoked-fg); }
.badge--expired { background: var(--status-expired-bg); color: var(--status-expired-fg); }

/* ── Filter chips (S02) ───────────────────────────────────────────────── */
.chips { display: flex; gap: 8px; }
.chip {
  height: 40px; padding: 0 16px; border-radius: var(--radius-pill);
  background: #FFFFFF; color: var(--text-strong); border: 1px solid var(--border-input);
  font-size: 14px; font-weight: 700;
}
.chip:hover { background: var(--bg-subtle); }
.chip[aria-pressed="true"] { background: var(--text-heading); color: #FFFFFF; border-color: var(--text-heading); }

/* ── Typography helpers ───────────────────────────────────────────────── */
.eyebrow { font-size: 16px; font-weight: 700; color: var(--eyebrow); }
.page-title { font-size: 36px; line-height: 1.2; font-weight: 600; color: var(--text-heading); }
.hero-title { font-size: 36px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; color: var(--text-display); }
.lead { font-size: 17px; line-height: 1.6; color: var(--text-body); }

/* ════════════════════════════════════════════════════════════════════════
   S01 — Sign in (full-viewport wash, blob and wave, centred 520px card)
   ════════════════════════════════════════════════════════════════════════ */
.signin {
  position: relative; overflow: hidden;
  min-height: 100vh; padding: 40px 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--wash);
}
/* Organic shapes: every straight cut edge sits flush against a container edge. */
.signin__blob { position: absolute; right: 0; top: 0; height: 100%; width: auto; max-width: none; opacity: .12; }
.signin__wave { position: absolute; left: 0; bottom: 0; width: 460px; opacity: .14; }
.signin-card {
  position: relative; width: 520px; max-width: 100%;
  padding: 44px 48px;
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 20px;
}
.signin-card .lockup__logo { height: 36px; }
.signin-card .lockup__divider { height: 28px; }
.signin-card .lockup__name { font-size: 17px; }
.signin-card__elig { font-size: 14px; line-height: 1.55; color: var(--text-body); text-align: center; }
.signin-card__test { align-self: center; font-size: 15px; }
.signin-card__scope { font-size: 13px; line-height: 1.55; color: var(--text-muted); }
.signin-card__received { font-size: 15px; line-height: 1.6; color: var(--text-body); }
.signin-card__received strong { color: var(--text-heading); }
.rule { height: 1px; background: var(--border-subtle); border: 0; margin: 0; }

/* ════════════════════════════════════════════════════════════════════════
   Employee app shell (S02–S06)
   ════════════════════════════════════════════════════════════════════════ */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.app-header {
  height: 72px; flex: 0 0 72px; padding: 0 var(--gutter-desktop);
  background: var(--bg-surface); border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: space-between;
}
.app-header__mark { display: none; height: 28px; width: auto; }
.app-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.app-nav__help { font-weight: 600; }
.app-nav__account { color: var(--text-muted); }
.app-nav__account strong { color: var(--text-heading); font-weight: 600; }
.app-header__menu { display: none; }
.app-main { flex: 1; }

.page { width: 100%; max-width: calc(var(--width-wide) + 2 * var(--gutter-desktop)); margin: 0 auto; padding: 40px var(--gutter-desktop) 48px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.page-head__actions { display: flex; gap: 12px; }
.btn--create { padding: 0 22px; }

/* S02 table */
.shares { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.shares__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.shares__table th {
  text-align: left; padding: 12px 16px; background: var(--bg-page);
  font-size: 13px; font-weight: 700; color: var(--text-muted); border-bottom: 1px solid var(--border-subtle);
}
.shares__table th:first-child, .shares__table td:first-child,
.shares__table th:last-child, .shares__table td:last-child { padding-left: 24px; padding-right: 24px; }
.shares__col-ref { width: 36%; } .shares__col-status { width: 30%; } .shares__col-date { width: 13%; } .shares__col-actions { width: 8%; }
.shares__table td { padding: 16px; vertical-align: top; }
/* Column widths are content widths, as drawn (padding is added on top). */
.shares__table th, .shares__table td { box-sizing: content-box; }
.share-row { border-bottom: 1px solid var(--border-row); }
.share-row:hover { background: #FAFBFF; }
.share-ref { font-size: 15px; font-weight: 600; color: var(--text-heading); overflow-wrap: anywhere; }
.share-ref--untitled { font-style: italic; color: var(--text-muted); }
.share-id { margin-top: 4px; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.share-expl { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.share-date { font-size: 14px; color: var(--text-body); }
.share-date__label { display: none; }
.shares__table td.share-actions { text-align: right; }
.share-details { font-size: 14px; font-weight: 700; white-space: nowrap; }

/* ════════════════════════════════════════════════════════════════════════
   Recipient shell (R01–R10): band, overlapping card, footer
   ════════════════════════════════════════════════════════════════════════ */
.recipient { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg-page); }
.r-band { position: relative; overflow: hidden; height: 300px; flex: 0 0 300px; background: var(--band); }
.r-band__blob { position: absolute; right: -60px; top: -120px; width: 380px; max-width: none; }
.r-band__wave { position: absolute; left: 0; bottom: 0; width: 380px; opacity: .5; }
.r-band__inner {
  position: relative; width: 1120px; max-width: calc(100% - 80px); margin: 0 auto; padding-top: 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.r-band .lockup__logo { height: 34px; }
.r-band .lockup__divider { background: rgba(255, 255, 255, .4); }
.r-band .lockup__name { color: #FFFFFF; }
.r-band__help { color: #FFFFFF; font-size: 15px; font-weight: 700; }
.r-band__help:hover { color: var(--band-text-sub); }

.r-card {
  position: relative; width: 640px; max-width: calc(100% - 48px); margin: -160px auto 0;
  padding: 48px; background: var(--bg-surface);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 20px;
}
.r-card__footer { display: none; }
.r-footer {
  margin-top: auto; padding: 40px 16px 28px;
  display: flex; justify-content: center; align-items: center; gap: 12px;
  font-size: 13px; color: var(--text-muted);
}
.r-footer__mark { height: 20px; width: auto; }

.r-title { font-size: 36px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; color: var(--text-heading); }
.r-title--display { color: var(--text-display); }
.r-lead { font-size: 17px; line-height: 1.6; color: var(--text-strong); }
.r-body { font-size: 15px; line-height: 1.6; color: var(--text-body); }
.r-ready { display: flex; flex-direction: column; gap: 20px; }
.availability {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-radius: var(--radius-md);
  background: var(--bg-info); font-size: 16px; color: var(--text-heading);
}
.availability > .icon { color: var(--eyebrow); }
.reveal-actions { display: flex; align-items: center; gap: 20px; }
.btn-reveal {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 32px; border: none; border-radius: var(--radius-pill);
  background: var(--action); color: #FFFFFF; font-size: 17px; font-weight: 700;
  box-shadow: var(--shadow-reveal);
}
.btn-reveal:hover { background: var(--action-hover); }
.btn-reveal:active { background: var(--action-press); }
.not-used { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-muted); }

/* ════════════════════════════════════════════════════════════════════════
   Forms (S03, R09, R10, S07)
   ════════════════════════════════════════════════════════════════════════ */
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: 15px; font-weight: 700; color: var(--text-heading); }
legend.field__label { margin-bottom: 10px; }
.field__help { font-size: 14px; line-height: normal; color: var(--text-muted); }
.option__details .field__help { line-height: 1.55; }
.field__meta { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }
.field__count { margin-left: auto; font-size: 13px; color: var(--text-muted); }
.field__count--end { align-self: flex-end; }
.input {
  width: 100%; height: 46px; padding: 0 14px;
  border: 1px solid var(--border-input); border-radius: var(--radius-sm);
  background: #FFFFFF; color: var(--text-heading); font-size: 15px;
}
.input[aria-invalid="true"] { border: 2px solid var(--danger); padding: 0 13px; }
.input--secret {
  height: auto; padding: 14px; font-family: var(--font-mono); font-size: 15px; line-height: 1.6;
  resize: vertical; white-space: pre;
}
.input--secret[aria-invalid="true"] { padding: 13px; }
.field-error {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: 13px; line-height: 1.45; font-weight: 600; color: var(--danger);
}
.field-error > .icon { margin-top: 1px; }

/* Radio / checkbox rows */
input[type="radio"], input[type="checkbox"] { accent-color: var(--action); margin: 0; flex: 0 0 auto; }
input[type="radio"] { width: 18px; height: 18px; }
input[type="checkbox"] { width: 20px; height: 20px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--text-heading); cursor: pointer; }
.check-field { display: flex; flex-direction: column; gap: 4px; }
.check-field__help { margin-left: 32px; font-size: 14px; line-height: 1.55; color: var(--text-muted); overflow-wrap: anywhere; }

/* Option tiles (expiry): the checked tile is highlighted via :has(), so no class is needed. */
.option-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.option-tile {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; margin: 1px;
  border: 1px solid var(--border-input); border-radius: var(--radius-sm); background: #FFFFFF;
  font-size: 15px; font-weight: 600; color: var(--text-strong); cursor: pointer;
}
.option-tile:has(input:checked) { margin: 0; border: 2px solid var(--action); background: var(--action-soft); color: var(--action-hover); }

/* S03 recipient access */
.access { gap: 10px; }
.access__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; margin-bottom: 12px; }
.access-pill {
  display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: var(--radius-pill);
  background: var(--bg-info); color: var(--text-display); font-size: 13px; font-weight: 700;
}
.access-box {
  display: flex; flex-direction: column; gap: 10px; padding: 8px 16px;
  border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: #FFFFFF;
}
.access-box:has(.policy) { padding-bottom: 16px; }
.access-box:has(.policy[aria-invalid="true"]) { border: 2px solid var(--danger); }
.policy { margin-left: 32px; display: flex; flex-direction: column; gap: 10px; }
.option__label {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; margin: 1px;
  border: 1px solid var(--border-input); border-radius: var(--radius-sm); background: #FFFFFF; cursor: pointer;
}
.option__label > input { margin-top: 3px; }
.option:has(> .option__label input:checked) > .option__label { margin: 0; border: 2px solid var(--action); background: var(--action-soft); }
.option__text { display: flex; flex-direction: column; gap: 6px; }
.option__title { font-size: 15px; font-weight: 600; color: var(--text-heading); }
.option__desc { font-size: 14px; line-height: 1.55; color: var(--text-body); }
.option__desc--muted { color: var(--text-body); } /* muted grey fails contrast on the selected option fill */
.option__details { margin-top: 6px; padding: 0 16px 16px 46px; }
.delivery-preview {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px;
  border-radius: var(--radius-sm); background: var(--bg-info); border: 1px solid var(--border-value);
  font-size: 15px; line-height: 1.5; color: var(--text-display); overflow-wrap: anywhere;
}
.note-box { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: var(--radius-md); background: var(--bg-info); }
.note-box__main { font-size: 14px; line-height: 1.6; color: var(--text-display); }
.note-box__sub { font-size: 13px; line-height: 1.55; color: var(--text-body); }

/* S03 layout: fields left, sticky security card right, actions under the fields. */
.page--create { padding-top: 40px; }
.create { display: grid; grid-template-columns: minmax(0, 1fr) 360px; column-gap: 48px; align-items: start; }
.create__fields { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 28px; }
.create__aside { grid-column: 2; grid-row: 1 / span 2; }
.create__actions {
  grid-column: 1; grid-row: 2; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border-subtle);
  display: flex; align-items: center; gap: 16px;
}
.btn--create-link { padding: 0 28px; }
.create__actions .btn--text { height: 48px; padding: 0 20px; font-size: 16px; }
.back-link { font-size: 14px; font-weight: 600; text-decoration: none; align-self: flex-start; }
.security-card {
  position: sticky; top: 24px; padding: 28px; display: flex; flex-direction: column; gap: 16px;
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.security-card__icon {
  width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--action-soft); color: var(--eyebrow);
  display: flex; align-items: center; justify-content: center;
}
.security-card__text { font-size: 15px; line-height: 1.65; color: var(--text-strong); }
.security-card__help { align-self: flex-start; font-size: 14px; font-weight: 700; }

/* ════════════════════════════════════════════════════════════════════════
   Overlays: help dialog (side panel / bottom sheet), scrims
   ════════════════════════════════════════════════════════════════════════ */
.scrim { position: fixed; inset: 0; z-index: 20; background: var(--scrim); }
.scrim--panel { background: var(--scrim-panel); }
.help-dialog {
  position: fixed; z-index: 21; top: 0; right: 0; bottom: 0; width: 480px; max-width: 100%;
  padding: 32px; overflow: auto; background: var(--bg-surface); box-shadow: var(--shadow-dialog);
  display: flex; flex-direction: column; gap: 20px;
}
.help-dialog__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.help-dialog__head h2 { font-size: 26px; font-weight: 600; color: var(--text-heading); }
.help-dialog__sub { font-size: 14px; color: var(--text-muted); }
.help-dialog__items { display: flex; flex-direction: column; gap: 18px; font-size: 15px; line-height: 1.6; }
.help-item h3 { margin-bottom: 4px; font-size: 16px; font-weight: 700; color: var(--text-heading); }
.help-item__extra { margin-top: 8px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--bg-subtle); font-size: 14px; line-height: 1.55; color: var(--text-strong); }
.help-item__extra span { display: block; margin-top: 8px; }
.help-item--employee { padding: 16px 18px; border-radius: var(--radius-md); background: var(--action-soft); color: var(--text-display); }
.help-item--employee h3 { color: inherit; }
/* Recipient: a bottom sheet on phones; a centred dialog on desktop (not drawn on the canvas). */
.help-dialog--recipient {
  top: 50%; left: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%);
  width: 640px; max-width: calc(100% - 48px); max-height: 85vh; border-radius: var(--radius-lg); padding: 32px;
}
.help-dialog--recipient .help-dialog__head h2 { font-size: 22px; }

/* Phone account menu (new in v1 templates; not drawn on the canvas). */
.account-menu { display: none; }

/* ════════════════════════════════════════════════════════════════════════
   R10 Enter the code
   ════════════════════════════════════════════════════════════════════════ */
.r-code { display: flex; flex-direction: column; gap: 16px; }
.r-code .r-title { margin-top: 0; }
.r-small { font-size: 14px; line-height: 1.55; color: var(--text-body); }
.r-fine { font-size: 13px; line-height: 1.55; color: var(--text-muted); }
/* Desktop: label / help / [input · Verify] / note / error / attempts. */
.code-entry { display: grid; grid-template-columns: 260px max-content minmax(0, 1fr); column-gap: 12px; row-gap: 6px; }
.code-entry > * { grid-column: 1 / -1; }
.code-entry__input { grid-column: 1; }
.code-entry__verify { grid-column: 2; grid-row: 3; }
.code-entry__note { font-size: 13px; line-height: 1.55; color: var(--text-muted); }
.code-entry__status { margin-top: 8px; }
.input--code {
  height: 56px; padding: 0 16px; font-family: var(--font-mono); font-size: 24px; letter-spacing: .28em; color: var(--text-heading);
}
.input--code[aria-invalid="true"] { padding: 0 15px; }
.code-entry__verify { height: 56px; padding: 0 28px; font-size: 16px; }
.resend { display: flex; align-items: center; gap: 14px; }
.resend__wait { font-size: 14px; color: var(--text-muted); }
.r-code__change { align-self: flex-start; height: 40px; padding: 0; font-size: 15px; }
.r-code__privacy .link-button { font-size: 14px; }

/* ════════════════════════════════════════════════════════════════════════
   Dialogs (leave warnings, revoke) — centred card; bottom sheet on phones
   ════════════════════════════════════════════════════════════════════════ */
.dialog {
  position: fixed; z-index: 21; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 500px; max-width: calc(100% - 48px); padding: 32px;
  background: var(--bg-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-dialog);
  display: flex; flex-direction: column; gap: 20px;
}
.dialog__title { font-size: 24px; line-height: 1.3; font-weight: 600; color: var(--text-heading); }
.dialog__text { font-size: 15px; line-height: 1.6; color: var(--text-body); }
.dialog__actions { display: flex; justify-content: flex-end; gap: 12px; }

/* ════════════════════════════════════════════════════════════════════════
   Recipient outcome pages (R01 check, R02, R04–R08) and R03
   ════════════════════════════════════════════════════════════════════════ */
.r-status { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.status-tile {
  width: 52px; height: 52px; border-radius: var(--radius-pill); display: flex; align-items: center; justify-content: center;
}
.status-tile--sm { width: 48px; height: 48px; }
.status-tile--brand { background: var(--action-soft); color: var(--eyebrow); }
.status-tile--success { background: var(--status-redeemed-bg); color: var(--status-redeemed-fg); }
.status-tile--neutral { background: var(--status-expired-bg); color: var(--status-expired-fg); }
.status-tile--warn { background: var(--callout-warn-bg); color: var(--callout-warn-icon); }
.status-tile--danger { background: var(--danger-soft); color: var(--danger); }
.r-title--status { font-size: 30px; }
.r-body--strong { font-size: 16px; color: var(--text-strong); }
.r-status__action { align-self: flex-start; margin-top: 8px; }
.r-status__hint { margin-top: -4px; }
.btn--xl { height: 52px; padding: 0 28px; font-size: 16px; }
.btn-reveal:disabled { background: var(--action-busy); box-shadow: none; cursor: progress; }
.callout__line { display: block; margin-top: 2px; font-weight: 400; }

.r-revealed { display: flex; flex-direction: column; gap: 18px; }
.value-label { margin-bottom: -10px; font-size: 13px; font-weight: 700; color: var(--text-muted); }
.value-box {
  padding: 18px; border-radius: var(--radius-md); background: var(--bg-info); border: 1px solid var(--border-value);
  font-family: var(--font-mono); font-size: 15px; line-height: 1.65; color: var(--text-display);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.value-box::selection, .value-box *::selection { background: var(--selection-value); }
.r-revealed__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.r-revealed__copied { font-size: 15px; font-weight: 600; color: var(--status-redeemed-fg); }
/* Live regions stay rendered (never display:none) so screen readers announce the change. */
.r-revealed__copy-failed { flex-basis: 100%; }

/* R09 Verify your email: desktop puts Send code beside the input. */
.r-verify { display: flex; flex-direction: column; gap: 18px; }
.email-entry { display: grid; grid-template-columns: minmax(0, 1fr) max-content; column-gap: 12px; row-gap: 6px; }
.email-entry > * { grid-column: 1 / -1; }
.email-entry__input { grid-column: 1; }
.email-entry__send { grid-column: 2; grid-row: 2; height: 52px; padding: 0 28px; font-size: 16px; }
.input--email { height: 52px; padding: 0 16px; font-size: 16px; }
.input--email[aria-invalid="true"] { padding: 0 15px; }
.email-entry__alias { justify-self: start; margin-top: 4px; font-size: 14px; }
.email-entry__status { margin-top: 8px; }
.r-verify__no-use { margin-top: -10px; color: var(--text-muted); }
.privacy-box { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--bg-page); }
.privacy-box p { font-size: 13px; line-height: 1.55; color: var(--text-body); }
.privacy-box .privacy-box__muted { color: var(--text-muted); }
.r-code__resumed { margin-top: -10px; }
.r-code__check-status { align-self: flex-start; }

/* ════════════════════════════════════════════════════════════════════════
   Shared extras: support reference, callout variants, empty/loading cards, pager, danger buttons
   ════════════════════════════════════════════════════════════════════════ */
.support-ref { font-size: 12px; color: var(--text-muted); }
.callout--lg { padding: 16px 20px; gap: 14px; }
.callout--strong { font-weight: 600; padding: 14px 18px; }
.callout--action { align-items: center; }
.callout--action .callout__text { flex: 1; }
.callout--action .btn { flex: 0 0 auto; }
.field__count--over { color: var(--danger); font-weight: 600; }
.empty-card {
  display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 48px 32px; text-align: center;
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}
.empty-card--left { align-items: flex-start; text-align: left; padding: 32px; }
.empty-card__text { font-size: 16px; line-height: 1.6; color: var(--text-body); }
.empty-card__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.shares--loading { padding: 16px 24px 24px; display: flex; flex-direction: column; gap: 4px; }
.shares__loading-text { padding-top: 8px; font-size: 14px; color: var(--text-muted); }
.skeleton-row { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--border-row); width: 100%; }
.skeleton-row span { display: block; height: 14px; border-radius: 7px; background: var(--bg-subtle); }
.pager { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-muted); }
.pager__range { font-weight: 600; color: var(--text-heading); }
.pager__note { margin-right: auto; }
.btn--danger { background: var(--danger); border-color: var(--danger); color: #FFFFFF; }
.btn--danger:hover { background: var(--danger-hover); border-color: var(--danger-hover); }
.btn--danger[aria-busy="true"], .btn--danger:disabled { background: var(--danger-busy); border-color: var(--danger-busy); cursor: progress; }
.btn--danger-outline { background: #FFFFFF; border-color: var(--danger); color: var(--danger); padding: 0 22px; }
.btn--danger-outline:hover { background: var(--danger-soft); }
.btn--danger-outline:disabled { border-color: var(--border-subtle); color: var(--text-disabled); background: var(--bg-page); cursor: not-allowed; }
.btn--sm40 { height: 40px; padding: 0 18px; font-size: 14px; }
.page-title--sm { font-size: 30px; }

/* S01 extras */
.btn--signin { height: 48px; font-size: 16px; }
.signin-card__support { font-size: 14px; line-height: 1.55; color: var(--text-body); text-align: center; }

/* S07 Cognito managed login (visual reference only) */
.cognito { min-height: 100vh; padding: 48px 16px; background: #F2F3F5; display: flex; justify-content: center; align-items: center; }
.cognito__card { width: 400px; max-width: 100%; padding: 32px; background: #FFFFFF; border: 1px solid #DADCE0; border-radius: var(--radius-md); }
.cognito__card form { gap: 16px; }
.cognito__logo { align-self: center; height: 28px; width: auto; }
.cognito__title { margin-top: 4px; font-size: 22px; font-weight: 600; color: var(--text-heading); text-align: center; }
.cognito__sub { margin-top: -6px; font-size: 14px; color: var(--text-body); text-align: center; }
.cognito__field { gap: 6px; }
.cognito__field .field__label { font-size: 14px; }
.cognito__field .input { height: 44px; padding: 0 12px; }
.cognito__submit { height: 44px; border: none; border-radius: var(--radius-sm); background: var(--action); color: #FFFFFF; font-size: 15px; font-weight: 700; }
.cognito__submit:hover { background: var(--action-hover); }
.cognito__submit[aria-busy="true"] { background: var(--action-busy); cursor: progress; }
.cognito__submit:disabled:not([aria-busy]) { background: var(--bg-page); border: 1px solid var(--border-subtle); color: var(--text-disabled); cursor: not-allowed; }
.cognito__back { align-self: center; font-size: 14px; font-weight: 600; }
.cognito .callout { font-size: 14px; }

/* S03 creating status */
.create__status { font-size: 14px; color: var(--text-muted); }

/* ════════════════════════════════════════════════════════════════════════
   S04 Link ready
   ════════════════════════════════════════════════════════════════════════ */
.page--ready { max-width: calc(var(--width-ready) + 2 * var(--gutter-desktop)); padding-top: 32px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 20px; }
.ready__head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ready__head .status-tile { width: 52px; height: 52px; }
.ready__sub { font-size: 16px; line-height: 1.6; color: var(--text-body); }
.ready__sub strong { color: var(--text-heading); }
.link-card {
  display: flex; flex-direction: column; gap: 10px; padding: 24px;
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.value-label--strong { margin-bottom: 0; font-size: 14px; color: var(--text-heading); }
.value-label--plain { margin-bottom: 0; }
.value-box--link { padding: 16px; border-radius: var(--radius-sm); font-size: 15px; line-height: 1.6; user-select: all; }
.link-card__actions { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.link-card__copied { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--status-redeemed-fg); }
.link-card__reminder { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--text-body); }
.access-summary {
  display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px;
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
}
.access-summary__icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--action-soft); color: var(--eyebrow); display: flex; align-items: center; justify-content: center; }
.access-summary__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.access-summary__value { font-size: 16px; font-weight: 600; color: var(--text-heading); }
.access-summary__note { margin-top: 2px; font-size: 14px; line-height: 1.55; color: var(--text-body); }
.access-summary__change { margin-top: 2px; font-size: 13px; line-height: 1.55; color: var(--text-muted); }
.ready__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.info-card { padding: 18px 20px; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
.info-card__value { margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--text-heading); }
.info-card__text { margin-top: 6px; font-size: 15px; color: var(--text-heading); }
.ready__nav { display: flex; gap: 12px; flex-wrap: wrap; }
.ready__nav .btn--text { padding: 0 16px; height: 44px; }

/* ════════════════════════════════════════════════════════════════════════
   S05 Share details · S06 Revoke
   ════════════════════════════════════════════════════════════════════════ */
.page--detail { max-width: calc(var(--width-detail) + 2 * var(--gutter-desktop)); display: flex; flex-direction: column; gap: 24px; }
.detail__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.detail__bar-actions { display: flex; gap: 12px; }
.detail__head { display: flex; flex-direction: column; gap: 12px; }
.detail__title { font-size: 32px; line-height: 1.25; font-weight: 600; color: var(--text-heading); }
.detail__title--untitled { font-style: italic; color: var(--text-muted); }
.detail__status { display: flex; align-items: center; gap: 12px; }
.detail__status .share-id { margin-top: 0; font-size: 13px; }
.badge--lg { height: 28px; padding: 0 12px; font-size: 14px; }
.detail__text { font-size: 16px; line-height: 1.6; color: var(--text-strong); }
.detail__card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.meta-grid { margin: 0 0 -1px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.meta-grid__cell { padding: 18px 24px; border-bottom: 1px solid var(--border-row); min-width: 0; }
.meta-grid__cell:nth-child(odd):not(.meta-grid__cell--wide) { border-right: 1px solid var(--border-row); }
.meta-grid__cell--wide { grid-column: 1 / -1; }
.meta-grid dt { font-size: 13px; font-weight: 700; color: var(--text-muted); }
.meta-grid dd { margin: 6px 0 0; font-size: 15px; color: var(--text-heading); }
.meta-grid__sub { display: block; margin-top: 4px; font-size: 14px; color: var(--text-muted); }
.redemption-panel {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px 24px;
  background: var(--bg-info); border: 1px solid var(--border-value); border-radius: var(--radius-lg);
}
.redemption-panel__icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: var(--radius-md); background: #FFFFFF; color: var(--eyebrow); display: flex; align-items: center; justify-content: center; }
.redemption-panel__body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.redemption-panel__main { font-size: 16px; line-height: 1.5; color: var(--text-display); }
.redemption-panel__text { font-size: 14px; line-height: 1.55; color: var(--text-strong); }
.redemption-panel__fine { font-size: 13px; line-height: 1.55; color: var(--text-muted); }
.revoke-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 24px;
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
}
.revoke-panel__text { font-size: 15px; line-height: 1.55; color: var(--text-body); }
.dialog__ref { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-subtle); font-size: 14px; color: var(--text-strong); overflow-wrap: anywhere; }
.dialog .dialog__title + .dialog__ref { margin-top: -4px; }

/* ════════════════════════════════════════════════════════════════════════
   H01 standalone page (direct help URL)
   ════════════════════════════════════════════════════════════════════════ */
.help-page { min-height: 100vh; background: var(--bg-page); }
.help-band { position: relative; overflow: hidden; height: 280px; background: var(--band); }
.help-band__inner { position: relative; width: 1120px; max-width: calc(100% - 80px); margin: 0 auto; padding-top: 32px; height: 100%; }
.help-band .lockup__logo { height: 34px; }
.help-band .lockup__divider { background: rgba(255, 255, 255, .4); }
.help-band .lockup__name { color: #FFFFFF; }
.help-band__back { position: absolute; right: 0; top: 40px; color: #FFFFFF; font-size: 15px; font-weight: 700; }
.help-band__back:hover { color: var(--band-text-sub); }
.help-band__title { position: absolute; left: 0; bottom: 40px; }
.help-band__eyebrow { font-size: 16px; font-weight: 700; color: var(--band-text-sub); }
.help-band__title h1 { margin-top: 6px; font-size: 40px; font-weight: 600; color: #FFFFFF; }
.help-page__main { width: 1120px; max-width: calc(100% - 80px); margin: 0 auto; padding: 40px 0 64px; }
.help-grid { columns: 2; column-gap: 24px; font-size: 15px; line-height: 1.6; }
.help-grid .help-item {
  break-inside: avoid; margin-bottom: 24px; padding: 20px 24px;
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
}
.help-grid .help-item h2 { margin-bottom: 4px; font-size: 16px; font-weight: 700; color: var(--text-heading); }
.help-grid .help-item--employee { background: var(--action-soft); border-color: var(--action-soft); color: var(--text-display); }
.help-grid .help-item--employee h2 { color: inherit; }

/* ════════════════════════════════════════════════════════════════════════
   Phone (≤767px)
   ════════════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  /* S01: not drawn at phone width; the card goes full width with the same order. */
  .signin { padding: 24px 16px; align-items: flex-start; }
  .signin-card { padding: 32px 24px; }
  .signin-card .hero-title { font-size: 30px; }
  .signin__wave { width: 260px; }

  /* Employee shell */
  .app-header { height: 60px; flex-basis: 60px; padding: 0 var(--gutter-phone-employee); }
  .app-header .lockup { gap: 10px; }
  .app-header .lockup__logo, .app-header .lockup__divider { display: none; }
  .app-header__mark { display: block; }
  .app-header .lockup__name { font-size: 15px; }
  .app-nav { display: none; }
  .app-header__menu {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: none; border-radius: var(--radius-pill);
    background: var(--bg-subtle); color: var(--text-strong);
  }

  .page { padding: 20px var(--gutter-phone-employee); }
  .page.gap-24 { gap: 16px; }
  .page-head { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "title refresh" "create create"; align-items: center; gap: 16px; }
  .page-head__title { grid-area: title; }
  .page-head__title .eyebrow { display: none; }
  .page-title { font-size: 28px; }
  .page-head__actions { display: contents; }
  .btn--refresh { grid-area: refresh; width: 44px; padding: 0; }
  .btn--refresh .btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .btn--create { grid-area: create; height: 48px; font-size: 16px; }
  .btn--create .icon { display: none; }
  .chips { overflow-x: auto; padding-bottom: 2px; }
  .chip { flex: 0 0 auto; padding: 0 14px; }

  /* S02: table rows become cards (reference · badge + ID · explanation · created). */
  .shares { background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
  .shares__table, .shares__table tbody { display: block; }
  .shares__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .share-row {
    position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; row-gap: 8px;
    grid-template-areas: "ref ref" "badge id" "expl expl" "created created";
    margin-bottom: 10px; padding: 16px;
    background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  }
  .shares__table td { display: contents; }
  .share-ref { grid-area: ref; }
  .share-id { grid-area: id; align-self: center; margin-top: 0; }
  .share-row .badge { grid-area: badge; height: 24px; font-size: 12px; }
  .share-expl { grid-area: expl; margin-top: 0; }
  .share-date { grid-area: created; font-size: 12px; color: var(--text-muted); }
  .share-date__label { display: inline; }
  .shares__table td.share-cell--expires { display: none; }
  /* The whole card is the link; the visible "Details" text is hidden on phones. */
  .share-details { position: absolute; inset: 0; border-radius: var(--radius-md); }
  .share-details__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .footnote { font-size: 13px; line-height: 1.55; }
  .footnote > .icon { display: none; }

  /* Recipient: 148px band, sheet overlaps by 24px with 20px top corners. */
  .recipient { background: var(--bg-surface); }
  .r-band { height: 148px; flex-basis: 148px; }
  .r-band__blob { right: -70px; top: -40px; width: 190px; opacity: .9; }
  .r-band__wave { width: 200px; opacity: .55; }
  .r-band__inner { width: auto; max-width: none; margin: 0; padding: 28px var(--gutter-phone-recipient) 0; }
  .r-band .lockup { flex-direction: column; align-items: flex-start; gap: 10px; }
  .r-band .lockup__logo { height: 30px; }
  .r-band .lockup__divider { display: none; }
  .r-band .lockup__name { font-size: 14px; color: var(--band-text-sub); }
  .r-band__help { display: none; }
  .r-card {
    flex: 1; width: auto; max-width: none; margin: -24px 0 0;
    padding: 28px var(--gutter-phone-recipient) 24px;
    border: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: none;
  }
  .r-card__footer {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border-row); font-size: 14px;
  }
  .r-card__help { font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
  .r-card__mark { height: 24px; width: auto; }
  .r-footer { display: none; }

  .r-title { font-size: 28px; line-height: 1.25; }
  .r-lead { font-size: 16px; }
  .r-ready { gap: 16px; }
  .availability { padding: 12px 14px; font-size: 15px; }
  .reveal-actions { flex-direction: column; align-items: stretch; gap: 16px; }
  .btn-reveal { width: 100%; padding: 0 24px; }
  .not-used { justify-content: center; }

  /* Overlays on phones: help is a bottom sheet. */
  .help-dialog, .help-dialog--recipient {
    top: auto; left: 0; right: 0; bottom: 0; transform: none; width: 100%; max-width: none; max-height: 90vh;
    padding: 24px; gap: 16px; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .help-dialog__head h2 { font-size: 22px; }
  .help-dialog__items { gap: 16px; }

  /* Account menu: drops down under the 60px header. */
  .app-header { position: relative; }
  .account-menu {
    display: flex; flex-direction: column; gap: 4px; position: absolute; z-index: 10;
    top: 64px; left: 12px; right: 12px; padding: 8px 8px 12px;
    background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  }
  .account-menu__who {
    display: flex; flex-direction: column; gap: 2px; padding: 8px 8px 12px; margin-bottom: 4px;
    border-bottom: 1px solid var(--border-row); font-size: 13px; color: var(--text-muted);
  }
  .account-menu__who strong { font-size: 15px; font-weight: 600; color: var(--text-heading); overflow-wrap: anywhere; }
  .account-menu__item {
    display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 8px; margin-bottom: 4px;
    border: 0; border-radius: var(--radius-sm); background: none; color: var(--text-heading);
    font-size: 15px; font-weight: 600; text-align: left;
  }
  .account-menu__item:hover { background: var(--bg-subtle); }
  .account-menu__item .icon { color: var(--eyebrow); }

  /* S03 on phones: one column, security card becomes an info callout above Create link. */
  .page--create { padding-top: 20px; }
  .create { display: flex; flex-direction: column; align-items: stretch; }
  .create__fields { gap: 20px; }
  .create__intro { gap: 6px; }
  .create .back-link, .access-pill, .security-card__icon, .security-card__help { display: none; }
  .create .lead { font-size: 15px; }
  .field { gap: 6px; }
  .field__help { font-size: 13px; line-height: 1.5; }
  .field__count { font-size: 12px; }
  .input--secret { height: 9.5em; padding: 12px; }
  .option-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .option-tile { padding: 0 12px; }
  .access-box { padding: 6px 12px 12px; }
  .policy { margin-left: 0; gap: 8px; }
  .option { border-radius: var(--radius-sm); }
  .option__label { padding: 12px; gap: 10px; }
  .option:has(> .option__label input:checked) { border: 2px solid var(--action); background: var(--action-soft); }
  .option:has(> .option__label input:checked) > .option__label { border: 0; background: none; }
  .option__details { margin-top: 0; padding: 0 12px 12px; }
  .option__details .field__help { color: var(--text-body); }
  .note-box { padding: 12px 14px; }
  .note-box__main { font-size: 13px; line-height: 1.55; }
  .note-box__sub { font-size: 12px; line-height: 1.5; }
  .check-field__help { font-size: 13px; line-height: 1.5; }
  .security-card {
    position: static; margin-top: 20px; padding: 14px; gap: 0; border: 0; box-shadow: none; border-radius: var(--radius-md); background: var(--bg-info);
  }
  .security-card__text { font-size: 14px; line-height: 1.55; color: var(--text-display); }
  .create__actions { margin-top: 20px; padding-top: 0; border-top: 0; flex-direction: column; align-items: stretch; gap: 8px; }
  .btn--create-link { height: 52px; }

  /* R10 on phones: Verify email moves after the error and attempts callout, full width. */
  .r-code { gap: 14px; }
  .r-code .callout { font-size: 14px; }
  legend.field__label { margin-bottom: 8px; }
  .r-code .r-title { font-size: 26px; }
  .code-entry { display: flex; flex-direction: column; gap: 6px; }
  .input--code { font-size: 22px; padding: 0 14px; }
  .input--code[aria-invalid="true"] { padding: 0 13px; }
  .code-entry__verify { order: 1; margin-top: 8px; height: 52px; }
  .resend { flex-direction: column; align-items: stretch; gap: 8px; }
  .resend__button { height: 48px; font-size: 16px; }
  .resend__wait { text-align: center; }
  .r-code__change { align-self: center; height: 44px; padding: 0 12px; }
  .r-code__privacy .link-button { display: block; margin-top: 8px; }

  /* Dialogs become bottom sheets on phones. */
  .dialog {
    top: auto; left: 0; right: 0; bottom: 0; transform: none; width: 100%; max-width: none;
    padding: 24px; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .dialog__title { font-size: 20px; }
  .dialog__actions { flex-direction: column; align-items: stretch; } /* DOM order: the safe choice comes first */
  .dialog__actions .btn { height: 48px; }

  /* Recipient outcome pages and R03 on phones. */
  .r-title--status { font-size: 24px; }
  .r-status { padding-top: 16px; }
  .r-status__action { align-self: stretch; }
  .r-revealed { gap: 16px; }
  .r-revealed .r-title { font-size: 28px; }
  .r-revealed .callout { font-size: 14px; }
  .value-box { padding: 16px; font-size: 14px; }
  .r-revealed__actions { flex-direction: column; align-items: stretch; }
  .r-revealed__copied { order: 1; min-height: 20px; text-align: center; } /* reserved so Done doesn't move */
  .r-revealed__actions .btn--secondary { order: 2; }
  .r-revealed__copy-failed { order: 1; }
  .r-revealed__done-help { margin-top: -6px; text-align: center; }

  /* R09 on phones: Send code after the error, alias help and status, full width. */
  .r-verify { gap: 14px; }
  .r-verify .r-title { font-size: 26px; }
  .r-verify .callout { font-size: 14px; }
  .email-entry { display: flex; flex-direction: column; gap: 6px; }
  .input--email { height: 48px; padding: 0 14px; }
  .input--email[aria-invalid="true"] { padding: 0 13px; }
  .email-entry__send { order: 1; margin-top: 8px; }
  .email-entry__alias { align-self: flex-start; }
  .r-verify__no-use { margin-top: -8px; }
  .privacy-box { padding: 12px 14px; }

  /* Employee extras on phones */
  .empty-card { padding: 32px 20px; }
  .callout--action { flex-wrap: wrap; }
  .pager { flex-wrap: wrap; }
  .pager__note { flex-basis: 100%; order: -1; }
  .detail__bar-actions .btn { padding: 0 14px; }
  .detail__title { font-size: 26px; }
  .page-title--sm { font-size: 24px; }
  .meta-grid { grid-template-columns: minmax(0, 1fr); }
  .meta-grid__cell:nth-child(odd):not(.meta-grid__cell--wide) { border-right: 0; }
  .meta-grid__cell { padding: 14px 18px; }
  .redemption-panel, .access-summary { padding: 16px; gap: 12px; }
  .revoke-panel { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
  .page--ready { padding-top: 20px; gap: 16px; }
  .ready__head .page-title { font-size: 28px; }
  .link-card { padding: 16px; }
  .value-box--link { font-size: 14px; padding: 12px; }
  .link-card__actions { flex-direction: column; align-items: stretch; }
  .ready__cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ready__nav { flex-direction: column; }
  .ready__nav .btn { width: 100%; }
  .help-band { height: 200px; }
  .help-band__inner, .help-page__main { max-width: calc(100% - 32px); }
  .help-band__back { position: static; display: inline-block; margin-top: 16px; }
  .help-band__title { bottom: 24px; }
  .help-band__title h1 { font-size: 28px; }
  .help-grid { columns: 1; }
  .help-grid .help-item { padding: 16px; margin-bottom: 16px; }
}
