:root {
  color-scheme: light;
  --bg: oklch(98% .004 285);
  --surface: oklch(99.5% .002 285);
  --sidebar: oklch(96.8% .006 285);
  --ink: oklch(25% .018 285);
  --muted: oklch(48% .018 285);
  --line: oklch(89% .009 285);
  --control: oklch(65% .022 285);
  --accent: oklch(45% .17 290);
  --accent-hover: oklch(38% .15 290);
  --soft: oklch(94% .025 290);
  --green: oklch(38% .075 160);
  --green-soft: oklch(96% .014 160);
  --danger: oklch(43% .15 25);
  --danger-soft: oklch(96% .018 25);
  --radius: 10px;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 15px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; -webkit-font-smoothing: antialiased; }
button,input,select,textarea { font: inherit; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: var(--accent-hover); }
button,a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
p { margin: 0 0 18px; max-width: 70ch; }
h1,h2,h3 { margin: 0; line-height: 1.25; font-weight: 650; }
h1 { font-size: 2rem; letter-spacing: -.045em; }
h2 { font-size: 1.2rem; letter-spacing: -.025em; }
h3 { font-size: .9rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.app-shell { min-height: 100vh; }
.sidebar { background: var(--sidebar); padding: 26px 18px 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 1.05rem; font-weight: 650; letter-spacing: -.045em; white-space: nowrap; }
.brand>span:last-child { display: flex; gap: 3px; }
.brand strong { font-weight: 400; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 31px; height: 35px; color: var(--accent); }
.brand-mark .icon { width: 30px; height: 30px; stroke-width: 1.7; }
.workspace-label { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 11px 10px; margin: 32px 0 24px; background: var(--surface); }
.workspace-label>div { min-width: 0; }
.workspace-label strong { display: block; font-size: .78rem; line-height: 1.3; overflow-wrap: anywhere; }
.workspace-label span:not(.avatar) { display: block; color: var(--muted); font-size: .68rem; margin-top: 4px; }
.avatar { width: 30px; height: 30px; border-radius: 6px; background: var(--soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 650; }
.sidebar nav { display: flex; flex-direction: column; gap: 5px; }
.sidebar nav a { min-height: 44px; display: flex; align-items: center; gap: 11px; padding: 10px 13px; border-radius: 7px; color: var(--muted); font-size: .85rem; text-decoration: none; font-weight: 500; }
.sidebar nav a:hover { background: var(--line); color: var(--ink); }
.sidebar nav a[aria-current] { background: var(--soft); color: var(--accent); font-weight: 650; }
.sidebar-bottom { margin-top: auto; padding: 36px 10px 0; display: flex; flex-direction: column; gap: 3px; }
.sidebar-bottom p { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .68rem; margin-bottom: 12px; }
.sidebar-bottom p .icon { width: 14px; height: 14px; }
.sidebar-bottom a { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .78rem; text-decoration: none; min-height: 44px; }
.sidebar-bottom a:hover { color: var(--accent); }
.main-column { min-width: 0; }
.context-bar { height: 66px; padding: 0 40px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); background: var(--surface); font-size: .76rem; color: var(--muted); }
.context-bar strong { color: var(--ink); font-weight: 500; }
.context-bar span span { margin: 0 12px; color: var(--control); }
.pill { padding: 4px 9px; border: 1px solid var(--line); border-radius: 5px; font-size: .65rem; }
.demo-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--soft); padding: 11px 40px; font-size: .75rem; color: var(--ink); }
.demo-banner strong { font-weight: 600; }
.demo-banner a { white-space: nowrap; font-weight: 600; text-decoration: none; }
.demo-banner .icon { width: 15px; height: 15px; margin-left: 6px; }
main { max-width: 1220px; margin: 0 auto; padding: 44px 40px 72px; min-height: calc(100vh - 145px); }
.eyebrow { color: var(--muted); font-size: .73rem; font-weight: 600; margin-bottom: 13px; }
.subtitle { color: var(--muted); margin: 12px 0 0; font-size: .9rem; }
.page-heading { margin-bottom: 32px; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 33px; }
.title-row .page-heading { margin-bottom: 0; }
.title-row>.button { flex-shrink: 0; }
.button,button { display: inline-flex; gap: 9px; align-items: center; justify-content: center; background: var(--accent); color: var(--surface); border: 1px solid var(--accent); border-radius: 7px; padding: 11px 16px; min-height: 44px; font-size: .82rem; font-weight: 600; line-height: 1.4; cursor: pointer; text-decoration: none; transition: background 160ms cubic-bezier(.22,1,.36,1),border-color 160ms cubic-bezier(.22,1,.36,1); }
button:hover,.button:hover { background: var(--accent-hover); color: var(--surface); border-color: var(--accent-hover); }
button:active,.button:active { transform: translateY(1px); }
button:disabled,button[aria-disabled=true] { opacity: .55; cursor: wait; }
.button .icon,button .icon { width: 17px; height: 17px; }
.secondary,button.secondary,.button.secondary { color: var(--ink); border-color: var(--line); background: var(--surface); box-shadow: 0 1px 2px oklch(25% .01 285 / .03); }
.secondary:hover,button.secondary:hover,.button.secondary:hover { border-color: var(--control); background: var(--sidebar); color: var(--ink); }
.quiet-button,.button.quiet-button { border-color: transparent; background: transparent; color: var(--muted); }
.quiet-button:hover,.button.quiet-button:hover { background: var(--sidebar); color: var(--ink); }
.text-button { background: transparent; color: var(--accent); border: none; padding: 10px 0; min-height: 44px; font-size: .8rem; }
.text-button:hover { color: var(--accent-hover); background: transparent; text-decoration: underline; }
.full { width: 100%; }
.compact { font-size: .75rem; min-height: 44px; }
.danger { background: var(--danger); border-color: var(--danger); }
.danger:hover { background: oklch(35% .13 25); }
.library-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 13px; }
.library-toolbar>p { margin: 0; color: var(--muted); font-size: .78rem; }
.library-toolbar strong { color: var(--ink); }
.search-field { display: flex; align-items: center; position: relative; margin: 0; width: 238px; }
.search-field .icon { position: absolute; left: 12px; width: 17px; height: 17px; color: var(--muted); }
.search-field input { margin: 0; padding-left: 37px; min-height: 42px; font-size: .8rem; border-color: var(--line); }
.badge-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.badge-row { display: flex; align-items: center; gap: 24px; padding: 25px 26px; }
.badge-row+.badge-row { border-top: 1px solid var(--line); }
.badge-art { width: 90px; height: 96px; background: var(--soft); border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent); }
.badge-art.realisation { background: oklch(95% .02 70); color: oklch(44% .08 65); }
.badge-art.competence { background: oklch(95% .02 170); color: oklch(39% .07 165); }
.badge-art img { width: 80px; height: 80px; object-fit: contain; }
.seal { display: flex; padding: 10px; border-radius: 50%; border: 1px solid currentColor; }
.seal .icon { width: 35px; height: 35px; stroke-width: 1.25; }
.badge-info { flex: 1; min-width: 0; }
.tag { font-size: .65rem; color: var(--muted); font-weight: 600; }
.badge-info h2 { margin: 5px 0 7px; font-size: 1.02rem; overflow-wrap: anywhere; }
.badge-info>p { color: var(--muted); font-size: .8rem; margin: 0; max-width: 52ch; }
.badge-info details { margin-top: 9px; }
.badge-info summary { min-height: 24px; font-size: .73rem; color: var(--muted); }
.badge-info details p { margin: 8px 0 0; color: var(--muted); font-size: .8rem; }
.badge-action .button { padding: 9px 13px; font-size: .77rem; }
summary { cursor: pointer; }
.library-note { display: flex; gap: 12px; color: var(--muted); font-size: .78rem; margin-top: 28px; max-width: 76ch; }
.library-note .icon { width: 17px; height: 17px; margin-top: 2px; }
.library-note strong { color: var(--ink); font-weight: 500; }
.library-note p { margin: 0; }
.empty-search { padding: 28px; color: var(--muted); text-align: center; }
.onboarding { padding: 46px 30px; text-align: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.onboarding-visual { color: var(--accent); background: var(--soft); width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 24px; border-radius: 18px; }
.onboarding-visual .icon { width: 40px; height: 40px; }
.onboarding h2 { font-size: 1.35rem; margin-bottom: 14px; }
.onboarding>p { color: var(--muted); max-width: 55ch; margin: 0 auto 24px; font-size: .9rem; }
.setup-steps { padding: 0; list-style: none; display: flex; justify-content: center; gap: 24px; margin: 28px 0; font-size: .75rem; color: var(--muted); }
.setup-steps span { border: 1px solid var(--line); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; margin: 0 auto 9px; }
.compact-empty { margin-top: 24px; }
.editor-layout { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(260px,1fr); gap: 36px; align-items: start; }
.form-panel { min-width: 0; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
form { margin: 0; }
label { display: block; font-size: .8rem; font-weight: 600; margin: 0 0 8px; }
input:not([type=checkbox]):not([type=radio]),textarea,select { display: block; width: 100%; min-height: 46px; border: 1px solid var(--control); border-radius: 6px; background: var(--surface); color: var(--ink); padding: 10px 12px; font-size: .92rem; line-height: 1.5; margin: 0 0 22px; transition: border-color 160ms ease-out; }
input::placeholder,textarea::placeholder { color: oklch(51% .016 285); }
input:focus,textarea:focus,select:focus { border-color: var(--accent); }
input[readonly] { background: var(--sidebar); color: var(--muted); }
textarea { resize: vertical; }
textarea#recipients { font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: .83rem; }
.hint { margin: -12px 0 25px; font-size: .74rem; color: var(--muted); }
.micro { color: var(--muted); font-size: .71rem; margin: 14px 0 0; }
fieldset { border: none; padding: 0; margin: 0 0 31px; }
legend { font-size: .9rem; font-weight: 650; margin-bottom: 15px; padding: 0; }
.choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.choices label { display: flex; flex-direction: column; align-items: flex-start; padding: 12px 10px; margin: 0; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; gap: 10px; }
.choices label:has(input:checked) { border-color: var(--accent); background: var(--soft); }
.choices strong { display: block; font-size: .74rem; font-weight: 600; }
.choices small { font-size: .65rem; font-weight: 400; color: var(--muted); display: block; margin-top: 5px; }
input[type=checkbox],input[type=radio] { accent-color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; margin: 0; }
.section-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-label h2 { font-size: .9rem; }
.section-label .text-button { font-size: .7rem; }
.preview-aside { padding: 8px 0; position: sticky; top: 24px; min-width: 0; }
.preview-aside>.eyebrow { margin-bottom: 16px; }
.badge-sheet { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px; box-shadow: 0 6px 18px oklch(25% .01 285 / .035); overflow-wrap: anywhere; }
.sheet-emblem { color: var(--accent); margin-bottom: 25px; }
.sheet-emblem .icon { width: 56px; height: 56px; stroke-width: 1.2; }
.badge-sheet h2 { font-size: 1.3rem; margin: 10px 0 15px; letter-spacing: -.035em; }
.badge-sheet p { font-size: .8rem; color: var(--muted); margin-bottom: 0; white-space: pre-line; }
.badge-sheet h3 { margin-bottom: 10px; font-size: .75rem; }
.sheet-divider { height: 1px; background: var(--line); margin: 25px 0; }
.sheet-issuer { display: flex; gap: 10px; align-items: center; margin-top: 28px; color: var(--muted); }
.sheet-issuer span { display: block; font-size: .62rem; }
.sheet-issuer strong { color: var(--ink); font-weight: 500; font-size: .72rem; }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.support-aside { padding: 18px 5px; }
.panel-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--soft); display: inline-flex; justify-content: center; align-items: center; color: var(--accent); margin-bottom: 20px; }
.support-aside h2 { font-size: 1.2rem; max-width: 22ch; margin-bottom: 18px; }
.support-aside p { color: var(--muted); font-size: .82rem; }
.support-aside h3 { margin-bottom: 12px; }
.notice,.error { padding: 15px 18px; border: 1px solid var(--line); border-radius: 8px; margin: 0 0 24px; max-width: none; font-size: .82rem; }
.notice { background: var(--green-soft); color: var(--green); }
.error { background: var(--danger-soft); color: var(--danger); border-color: oklch(84% .05 25); }
.notice .icon { width: 17px; margin-right: 6px; }
.steps { display: flex; list-style: none; padding: 0; margin: -3px 0 32px; gap: 30px; border-bottom: 1px solid var(--line); }
.steps li { display: flex; gap: 9px; align-items: center; padding: 0 0 16px; color: var(--muted); font-size: .78rem; border-bottom: 2px solid transparent; }
.steps li>span { width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-size: .68rem; }
.steps li[aria-current] { color: var(--accent); border-color: var(--accent); font-weight: 600; }
.steps li[aria-current]>span { background: var(--accent); color: var(--surface); border-color: var(--accent); }
.steps li.done>span { background: var(--soft); color: var(--accent); border-color: var(--soft); }
.steps .icon { width: 14px; height: 14px; }
.field-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.count-label { color: var(--muted); font-size: .66rem; }
.count-label.invalid { color: var(--danger); }
.check { display: flex; gap: 11px; align-items: flex-start; font-weight: 400; font-size: .8rem; line-height: 1.5; cursor: pointer; min-height: 44px; }
.check input { margin-top: 2px; }
.check small { display: block; color: var(--muted); margin-top: 5px; font-size: .72rem; }
.check strong { font-weight: 550; }
.option-check { padding: 18px 0 21px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 0; }
.advanced { border-bottom: 1px solid var(--line); margin-bottom: 21px; }
.advanced summary { padding: 16px 0; font-size: .78rem; }
.advanced summary span { color: var(--muted); font-size: .7rem; margin-left: 6px; }
.advanced input { max-width: 230px; }
.privacy-note { display: flex; gap: 8px; color: var(--muted); font-size: .68rem; }
.privacy-note .icon { width: 14px; height: 14px; margin-top: 2px; }
.award-summary .badge-art { margin-bottom: 25px; width: 104px; height: 108px; }
.review-heading { display: flex; gap: 16px; align-items: center; margin-bottom: 26px; }
.review-heading .panel-icon { margin: 0; }
.review-heading h2 { font-size: 1.15rem; }
.review-heading p { font-size: .8rem; color: var(--muted); margin: 4px 0 0; }
.review-facts { margin: 0 0 24px; padding: 0; }
.review-facts>div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .77rem; }
.review-facts dt { color: var(--muted); }
.review-facts dd { margin: 0; font-weight: 500; text-align: right; }
.inline-note { font-size: .75rem; color: var(--green); display: flex; gap: 8px; align-items: center; }
.inline-note .icon { width: 16px; height: 16px; }
.recipient-review { margin: 20px 0 28px; }
.recipient-review summary { font-size: .78rem; padding: 8px 0; }
.recipient-review ul { list-style: none; max-height: 220px; overflow: auto; margin: 8px 0; padding: 9px 14px; background: var(--sidebar); border-radius: 6px; font-size: .8rem; overflow-wrap: anywhere; }
.recipient-review li { padding: 6px 0; }
.edit-return { margin-top: 8px; }
.completion { display: flex; gap: 20px; align-items: center; padding: 28px; border: 1px solid var(--line); border-radius: 10px; background: var(--green-soft); margin-bottom: 28px; }
.completion-check { display: flex; justify-content: center; align-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: var(--surface); flex-shrink: 0; }
.completion p { font-size: .82rem; color: var(--green); margin: 8px 0 0; }
.result-list { border: 1px solid var(--line); background: var(--surface); border-radius: 9px; margin-bottom: 24px; overflow: hidden; }
.list-heading { display: flex; justify-content: space-between; gap: 20px; padding: 13px 22px; font-size: .69rem; color: var(--muted); background: var(--sidebar); border-bottom: 1px solid var(--line); }
.result-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 22px; font-size: .85rem; }
.result-row+.result-row { border-top: 1px solid var(--line); }
.result-row>span { min-width: 0; overflow-wrap: anywhere; }
.result-row small { display: block; color: var(--muted); font-size: .71rem; margin-top: 4px; }
.row-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .75rem; }
.status { display: inline-flex; gap: 5px; align-items: center; color: var(--green); background: var(--green-soft); padding: 4px 8px; border-radius: 5px; font-size: .67rem; white-space: nowrap; }
.status .icon { width: 13px; height: 13px; }
.status.inactive { color: var(--muted); background: var(--sidebar); }
.lookup-form { max-width: 620px; margin-bottom: 30px; }
.lookup-controls { display: flex; gap: 10px; }
.lookup-controls input { margin-bottom: 0; }
.lookup-controls button { flex-shrink: 0; }
.lookup-form .hint { margin: 9px 0 0; }
.results-label { display: flex; justify-content: space-between; font-size: .8rem; }
.history-list { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.history-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 20px 22px; }
.history-row+.history-row { border-top: 1px solid var(--line); }
.history-main,.history-row>div:first-child { flex: 1; min-width: 0; }
.history-row h2 { font-size: .9rem; overflow-wrap: anywhere; }
.history-row p { color: var(--muted); font-size: .74rem; margin: 7px 0 0; }
.history-details { width: 100%; border-top: 1px solid var(--line); padding-top: 5px; }
.history-details>summary { color: var(--accent); font-size: .75rem; min-height: 44px; padding: 12px 0; }
.history-tools { padding-top: 8px; }
.history-tools .row-actions { margin: 14px 0; }
.revoke-details { margin-top: 22px; }
.revoke-details>summary { font-size: .74rem; color: var(--danger); min-height: 44px; padding: 10px 0; }
.revoke-details form { margin-top: 16px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 25px; font-size: .75rem; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: calc(100vw - 32px); border-radius: 8px; background: var(--ink); color: var(--surface); padding: 12px 20px; font-size: .82rem; box-shadow: 0 6px 24px oklch(25% .02 285 / .12); z-index: 20; }
.toast:empty { display: none; }
footer { display: flex; justify-content: space-between; gap: 24px; padding: 24px 40px; font-size: .68rem; color: var(--muted); border-top: 1px solid var(--line); }
footer>div { display: flex; gap: 20px; }
footer a { color: var(--muted); text-decoration: none; }
.skip { position: fixed; top: -100px; left: 20px; z-index: 30; background: var(--surface); padding: 10px; }
.skip:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.public .sidebar { display: flex; flex-direction: row; align-items: center; justify-content: space-between; padding: 25px 40px; background: transparent; max-width: 1240px; margin: auto; }
.public .sidebar>.quiet { font-size: .78rem; text-decoration: none; color: var(--muted); }
.public .sidebar>.quiet .icon { width: 16px; height: 16px; }
.public main { min-height: calc(100vh - 165px); padding-top: 55px; }
.welcome-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 90px; align-items: center; }
.welcome-copy h1 { font-size: 2.8rem; letter-spacing: -.055em; line-height: 1.14; }
.welcome-copy .eyebrow { margin-bottom: 24px; }
.lead { font-size: 1rem; color: var(--muted); margin: 25px 0 28px; max-width: 48ch; }
.intro-steps { list-style: none; margin: 0 0 29px; padding: 0; display: grid; gap: 13px; }
.intro-steps li { display: flex; align-items: center; gap: 12px; font-size: .84rem; }
.intro-steps span { width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; font-size: .65rem; display: grid; place-items: center; color: var(--muted); }
.login-panel { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 30px; box-shadow: 0 7px 26px oklch(25% .02 285 / .04); }
.login-panel h2 { font-size: 1.2rem; margin-bottom: 10px; }
.login-panel>p { color: var(--muted); font-size: .8rem; margin-bottom: 25px; }
.login-panel .panel-icon { margin-bottom: 19px; }
.password-help { text-align: right; margin: -11px 0 21px; font-size: .74rem; }
.password-help a { display: inline-flex; min-height: 30px; align-items: center; }
.invitation { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 23px; font-size: .76rem; }
.invitation strong { font-weight: 550; }
.invitation p { color: var(--muted); margin: 6px 0 10px; }
.invitation a { text-decoration: none; font-weight: 550; display: inline-flex; align-items: center; min-height: 30px; gap: 8px; }
.invitation .icon { width: 15px; }
.public footer { max-width: 1240px; margin: auto; }
.narrow { max-width: 720px; margin: auto; }
.narrow h2 { margin: 28px 0 14px; }
.narrow h1 { margin-bottom: 24px; }
.narrow p { color: var(--muted); }
@media(min-width:1000px) {
  .app .app-shell { display: grid; grid-template-columns: 218px minmax(0,1fr); }
  .app .sidebar { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
}
@media(max-width:1199px) {
  main { padding: 34px 28px 60px; }
  .context-bar { padding: 0 28px; }
  .demo-banner { padding: 11px 28px; }
  .editor-layout { gap: 24px; grid-template-columns: minmax(0,1.5fr) minmax(240px,1fr); }
  .form-panel { padding: 24px; }
  .badge-row { gap: 18px; padding: 23px 20px; }
  .badge-art { width: 75px; height: 86px; }
  .badge-art img { width: 70px; height: 70px; }
  .welcome-grid { gap: 60px; }
}
@media(max-width:999px) {
  .app .sidebar { padding: 16px 24px 0; border-bottom: 1px solid var(--line); }
  .app .brand { margin-bottom: 14px; }
  .workspace-label { display: none; }
  .sidebar nav { flex-direction: row; gap: 8px; }
  .sidebar nav a { flex: 1; justify-content: center; border-radius: 6px 6px 0 0; padding: 12px 10px; font-size: .8rem; }
  .sidebar-bottom { display: none; }
  .context-bar { display: none; }
  .title-row h1 { font-size: 1.85rem; }
  .welcome-grid { gap: 38px; }
  .welcome-copy h1 { font-size: 2.35rem; }
}
@media(max-width:740px) {
  .editor-layout { grid-template-columns: 1fr; }
  .preview-aside { position: static; }
  .preview-aside>.eyebrow { margin-top: 5px; }
  .award-summary { display: none; }
  .title-row { display: block; margin-bottom: 28px; }
  .title-row>.button { margin-top: 22px; }
  .badge-action .icon { display: none; }
  .badge-row { gap: 18px; flex-wrap: wrap; }
  .badge-info { flex-basis: calc(100% - 98px); }
  .badge-action { margin-left: 93px; }
  .badge-info h2 { font-size: 1rem; }
  .welcome-grid { grid-template-columns: 1fr; gap: 42px; }
  .welcome-copy h1 { font-size: 2.4rem; }
  .public main { padding-top: 28px; }
  .welcome-copy .lead { max-width: 54ch; }
  .login-panel { max-width: 540px; width: 100%; }
}
@media(max-width:480px) {
  body { font-size: 16px; }
  .app .sidebar { padding: 14px 16px 0; }
  .brand { font-size: 1rem; }
  .brand-mark { width: 28px; }
  .sidebar nav { gap: 3px; }
  .sidebar nav a { flex-direction: column; gap: 5px; font-size: .65rem; padding: 10px 3px; min-height: 61px; }
  .sidebar nav .icon { width: 19px; height: 19px; }
  main { padding: 28px 18px 48px; }
  h1,.title-row h1 { font-size: 1.7rem; }
  .subtitle { font-size: .83rem; }
  .demo-banner { padding: 11px 18px; font-size: .66rem; align-items: flex-start; }
  .demo-banner strong { display: block; }
  .demo-banner a { font-size: .66rem; padding: 7px 0; }
  .demo-banner .icon { display: none; }
  .library-toolbar { display: block; }
  .library-toolbar>p { margin-bottom: 12px; }
  .search-field { width: 100%; margin-bottom: 14px; }
  .search-field input { font-size: 1rem; }
  .badge-row { padding: 20px 17px; gap: 14px; align-items: flex-start; }
  .badge-art { width: 61px; height: 70px; }
  .badge-art img { width: 58px; height: 58px; }
  .seal { padding: 7px; }
  .seal .icon { width: 26px; height: 26px; }
  .badge-info { flex-basis: calc(100% - 75px); }
  .badge-info>p { font-size: .76rem; }
  .badge-info summary { padding: 8px 0; }
  .badge-action { margin-left: 75px; }
  .badge-action .button { min-height: 44px; }
  .form-panel { padding: 21px 18px; }
  input:not([type=checkbox]):not([type=radio]),textarea,select,textarea#recipients { font-size: 1rem; }
  .choices { gap: 6px; }
  .choices label { padding: 10px 7px; }
  .choices strong { font-size: .68rem; }
  .choices small { font-size: .61rem; }
  .section-label { display: block; }
  .section-label .text-button { padding-bottom: 0; }
  .form-actions { gap: 8px; }
  .form-actions>button { width: 100%; }
  .steps { gap: 18px; }
  .steps li { font-size: .72rem; gap: 6px; }
  .steps li>span { width: 23px; height: 23px; }
  .field-heading { flex-wrap: wrap; gap: 0; margin-bottom: 8px; }
  .count-label { margin-left: auto; }
  .review-facts>div { display: block; }
  .review-facts dd { text-align: left; margin-top: 4px; }
  .result-row { align-items: flex-start; flex-wrap: wrap; padding: 16px; gap: 12px; }
  .completion { padding: 20px; align-items: flex-start; gap: 14px; }
  .completion h2 { font-size: 1.08rem; }
  .completion-check { width: 36px; height: 36px; }
  .lookup-controls { flex-direction: column; }
  .lookup-controls button { align-self: flex-start; }
  .setup-steps { flex-direction: column; align-items: flex-start; text-align: left; gap: 12px; margin: 25px auto; max-width: 220px; }
  .setup-steps li { display: flex; align-items: center; gap: 12px; }
  .setup-steps span { margin: 0; flex-shrink: 0; }
  .onboarding { padding: 32px 20px; }
  .public .sidebar { padding: 18px; }
  .public .sidebar>.quiet { font-size: .7rem; }
  .public .sidebar>.quiet .icon { display: none; }
  .welcome-copy h1 { font-size: 2.12rem; }
  .lead { font-size: .92rem; }
  .login-panel { padding: 25px 21px; }
  footer { padding: 22px 18px; flex-wrap: wrap; gap: 12px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition: none !important; scroll-behavior: auto !important; } }
.result-row { flex-wrap: wrap; }
.mail-state { flex-basis: 100%; color: var(--muted); font-size: .7rem; }
@media(min-width:741px) { .result-row>.row-actions { margin-left:auto; } }
@media(max-width:999px) {
  .sidebar-bottom { display: flex; flex-direction: row; justify-content: flex-end; padding: 0; position: absolute; right: 24px; top: 17px; gap: 20px; }
  .sidebar-bottom p { display: none; }
  .sidebar-bottom a { min-height: 30px; font-size: .69rem; }
  .sidebar-bottom a:first-of-type { display: none; }
  .sidebar-bottom .icon { width: 15px; height: 15px; }
}
@media(max-width:480px) { .sidebar-bottom { right: 16px; top: 17px; }.sidebar-bottom a { font-size:.62rem; gap:5px; } }
.search-field input[type=search] { margin:0; padding-left:38px; min-height:42px; border-color:var(--line); }
.review-criteria { margin:0 0 25px; padding:14px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); font-size:.8rem; }
.review-criteria p { margin:12px 0 0; color:var(--muted); }
.login-panel { scroll-margin-top:24px; }
@media(max-width:999px) { .sidebar nav a span { text-align:center; } }
/* Commercial pages reuse the studio's restrained visual language. */
.offer-panel{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:2rem 0;margin:2rem 0}.offer-price{font-size:3.2rem;font-weight:650;letter-spacing:-.04em;margin:.3rem 0}.offer-price span{font-size:1rem;font-weight:450;letter-spacing:0;color:var(--muted)}.offer-panel ul{padding-left:1.25rem;line-height:1.9;margin:1.4rem 0 2rem}.purchase-summary{display:flex;gap:1rem;align-items:baseline;justify-content:space-between;padding:1.2rem 0;margin:1rem 0;border-block:1px solid var(--line)}.purchase-summary strong{font-size:1.5rem;white-space:nowrap}.purchase-summary span{color:var(--muted);font-size:.92rem}.account-list{margin:1.5rem 0 2rem}.account-row{display:flex;justify-content:space-between;align-items:center;gap:1.5rem;border-bottom:1px solid var(--line);padding:1.3rem 0;color:inherit;text-decoration:none}.account-row h2{font-size:1.1rem;margin:0 0 .35rem}.account-row p{margin:0;color:var(--muted)}.section-gap{margin-top:2rem}.export-panel{margin:0 0 2rem;padding:1rem 0;border-block:1px solid var(--line)}.export-panel summary{cursor:pointer;font-weight:600}.export-panel p{max-width:65ch;color:var(--muted)}.legal-copy h2{font-size:1.25rem;margin-top:2rem}.legal-copy p{line-height:1.7}.welcome-offer{margin:0 0 3rem}.account-row .icon{vertical-align:middle}@media(max-width:480px){.account-row,.purchase-summary{align-items:flex-start;flex-direction:column;gap:.75rem}.offer-price{font-size:2.8rem}}
