/* The page kit's shared look: base, type, the top bar, cards, fields, buttons and notes, for the host's shells and
   every web build. Its colours are platform/tokens/tokens.css's --stage-* properties, which the host serves at
   /tokens.css; this file holds no colour value of its own, so until tokens.css lands a page draws in the browser's
   defaults (plan unit 8). Every control a finger presses is at least 44 px tall; a field's text is 16 px, so iOS
   does not zoom on focus. */
/* Source: apps/artifactory/viewer/viewer.css and packages/kit/web/house.css (Quine 2) — diverges: colours come from the 3.0 Stage tokens, no remote font */
@import url("/tokens.css");

:root {
  --tap: 44px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --gutter: 16px; --measure: 1040px; --r-sm: 8px; --r: 14px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, ui-serif, Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
@media (min-width: 700px) { :root { --gutter: var(--space-gutter, 24px) } }

*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; min-height: 100vh; background: var(--stage-paper); color: var(--stage-print); font: var(--type-body, 16px)/1.55 var(--sans); overflow-wrap: break-word; overflow-x: hidden }
img, svg { max-width: 100% }
a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px }
:focus-visible { outline: 2px solid var(--stage-print); outline-offset: 2px; border-radius: 4px }
[hidden] { display: none !important }
.wrap { max-width: var(--measure); margin: 0 auto; padding-inline: var(--gutter) }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
.muted { color: var(--stage-dim) }
.num { font-variant-numeric: tabular-nums }

/* ---------- type ---------- */
.kicker { font: 600 var(--type-kicker, 11px)/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--stage-dim); margin: 0 0 var(--s3) }
.title { font: 500 clamp(32px, 9vw, var(--type-mast, 44px))/1.08 var(--serif); margin: 0 0 var(--s3); text-wrap: balance }
.lede { font-size: 17px; line-height: 1.5; color: var(--stage-dim); max-width: 56ch; margin: 0 0 var(--s5) }
p { text-wrap: pretty }

/* ---------- top bar: the way back, the page's name, one action ---------- */
.topbar { border-bottom: var(--space-rule, 1px) solid var(--stage-rule) }
.topbar .wrap { display: flex; align-items: center; gap: var(--s3); min-height: 56px }
.topbar .back { display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--tap); padding-inline: var(--s1); font-weight: 600; text-decoration: none }
.topbar .back::before { content: "\2039"; font-size: 24px; line-height: 1 }
.topbar .where { flex: 1; min-width: 0; font: 500 15px/1.2 var(--sans); color: var(--stage-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.topbar .brand { flex: 1; font: 600 var(--type-kicker, 11px)/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--stage-dim) }

/* ---------- the card: the one box on a page, its rows a hairline apart ---------- */
.card { background: var(--stage-raised); border-radius: var(--r); min-width: 0 }
.rows { list-style: none; margin: 0; padding: 0 }
.rows > li + li { border-top: var(--space-rule, 1px) solid var(--stage-rule) }

/* ---------- fields ---------- */
.field { display: block; margin: 0 0 var(--s4); font: 600 14px/1.3 var(--sans) }
.field input, .field textarea { display: block; width: 100%; margin-top: 6px; min-height: 48px; padding: 10px 12px; font: 400 16px/1.4 var(--sans); color: var(--stage-print); background: var(--stage-paper); border: 1px solid var(--stage-rule); border-radius: var(--r-sm) }
.field input[aria-invalid="true"] { border-color: var(--stage-ask) }
.check { display: flex; align-items: center; gap: var(--s3); min-height: var(--tap); margin: 0 0 var(--s3); font: 500 15px/1.3 var(--sans); cursor: pointer }
.check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--stage-print) }

/* ---------- buttons: the primary is ink on paper; the rest are quiet ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 var(--s5); font: 700 16px/1 var(--sans); color: var(--stage-paper); background: var(--stage-print); border: 0; border-radius: var(--r-sm); cursor: pointer; text-decoration: none }
.btn:disabled { opacity: .55; cursor: progress }
.btn.wide { width: 100% }
.btn.ghost { color: var(--stage-print); background: transparent; box-shadow: inset 0 0 0 1px var(--stage-rule) }
.quiet { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s2); font: 600 15px/1 var(--sans); color: var(--stage-print); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer }

/* ---------- notes: a tint names a state ---------- */
.note { min-height: 1.5em; margin: var(--s3) 0 0; font-size: 14.5px; line-height: 1.45; color: var(--stage-dim) }
.note.error, .error-text { color: var(--stage-ask) }
.callout { margin: 0; padding: var(--s3) var(--s4); border-radius: var(--r-sm); background: var(--stage-raised); border-left: 4px solid var(--stage-dim); font-size: 15.5px; line-height: 1.45 }
.callout.error { border-left-color: var(--stage-ask) }

/* ---------- the Share panel (share-panel.js) ---------- */
.share-panel { max-width: 760px; margin: var(--s6) auto var(--s7); padding-inline: var(--gutter); display: grid; gap: var(--s5) }
.share-body { padding: var(--s4) var(--s5) var(--s5) }
.share-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3) }
.share-top .kicker { margin: 0 }
.share-title, .share-live-title { font: 500 var(--type-title, 24px)/1.2 var(--serif); margin: var(--s2) 0 var(--s3) }
.share-lede { margin: 0 0 var(--s4); color: var(--stage-dim); max-width: 56ch }
.share-copy { margin: 0 0 var(--s4); padding: var(--s4); border: 1px solid var(--stage-rule); border-radius: var(--r-sm); background: var(--stage-paper); display: grid; gap: var(--s3) }
.share-copy p { margin: 0 }
.share-copy-title { font: 500 20px/1.25 var(--serif) }
.share-copy-head { font-weight: 600 }
.share-copy-line { color: var(--stage-dim); white-space: pre-wrap }
.share-pick { display: grid; gap: var(--s2); margin: 0 0 var(--s4) }
.share-choice { display: grid; gap: 2px; text-align: left; min-height: 56px; padding: var(--s3) var(--s4); border: 1px solid var(--stage-rule); border-radius: var(--r-sm); background: var(--stage-paper); color: var(--stage-print); font: inherit; cursor: pointer }
.share-choice[aria-checked="true"] { border-color: var(--stage-print); box-shadow: inset 0 0 0 1px var(--stage-print) }
.share-choice-label { font-weight: 700 }
.share-choice-label::before { content: "\25CB  "; }
.share-choice[aria-checked="true"] .share-choice-label::before { content: "\25CF  "; }
.share-choice-hint { font-size: 14.5px; color: var(--stage-dim) }
.share-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) }
.share-made { display: grid; gap: var(--s4); margin: 0 0 var(--s5) }
.share-label { margin: 0 0 var(--s1); font: 600 var(--type-kicker, 11px)/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--stage-dim) }
.share-field-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3) }
.share-value { flex: 1 1 240px; min-width: 0; margin: 0; padding: var(--s3); border-radius: var(--r-sm); background: var(--stage-paper); font: 500 16px/1.4 var(--mono); overflow-wrap: anywhere }
.share-copied { font-size: 14px; color: var(--stage-dim) }
.share-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s2) var(--s4); align-items: center; padding: var(--s3) var(--s4) }
.share-row p { margin: 0 }
.share-row-when { font-weight: 600 }
.share-row-meta { font-size: 14.5px; color: var(--stage-dim) }
.share-row-acts { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: flex-end }
.share-row-said { grid-column: 1 / -1; font-size: 14.5px }
.share-row-said:empty { display: none }
@media (max-width: 600px) { .share-row { grid-template-columns: minmax(0, 1fr) } .share-row-acts { justify-content: flex-start } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important } }
