/* Actual shared primitives, forms and states; no retired storefront or theme. */
* { box-sizing: border-box; }
html { scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--ph-body); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: 0; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { line-height: 1.13; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(34px,4.3vw,58px); font-weight: 600; }
h2 { font-size: clamp(27px,3vw,39px); font-weight: 600; }
h3 { font-size: 23px; font-weight: 600; }
h1, h2, h3, h4, p, td, code { overflow-wrap: anywhere; }
p { color: var(--muted); }
em { font-style: normal; font-weight: 600; color: var(--brand); }
code, kbd { font-family: var(--ph-mono); }
[hidden], .off { display: none !important; }
:is(a,button,input,select,textarea,summary):focus-visible { outline: 2px solid var(--ph-primary); outline-offset: 3px; }
.wrap { max-width: var(--wide); width: min(100% - 40px,1280px); margin-inline: auto; }
.page { padding: 36px 0 88px; min-height: 55vh; }
.narrow, .reading { max-width: 810px; margin-inline: auto; }
.muted { color: var(--muted); }
.small, small { font-size: 13px; }
.mini { font-size: 11px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack { display: grid; gap: 22px; }
.grow { flex: 1; min-width: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.grid3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.center { text-align: center; }
.justify-center { justify-content: center; }
.mt { margin-top: 26px; }
.mb { margin-bottom: 26px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 20px; color: var(--ph-primary); font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.eyebrow.center { justify-content: center; }
.icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 13px 22px; border: 1px solid var(--ph-primary); border-radius: 10px; background: linear-gradient(105deg,var(--ph-primary),var(--ph-secondary)); color: var(--ph-action-ink); font: 700 13px/1.5 var(--ph-display); text-align: center; white-space: normal; transition: background .16s,border-color .16s; }
.btn:hover { border-color: var(--ph-primary); filter: brightness(1.08); }
.btn.secondary { background: var(--soft); color: var(--ph-text); border-color: rgba(255,255,255,.16); }
.btn.secondary:hover { background: #293b4f; }
.btn.text { padding-inline: 0; background: none; color: var(--ph-primary); border-color: transparent; }
.btn.small { padding: 9px 15px; font-size: 12px; min-height: 42px; }
.btn.full { width: 100%; }
.btn:disabled { cursor: not-allowed; opacity: .55; filter: none; transform: none; }
.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.icon-button:hover { background: var(--soft); }
.pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid color-mix(in srgb,var(--ph-primary) 25%,transparent); border-radius: 999px; padding: 5px 9px; background: color-mix(in srgb,var(--ph-primary) 10%,var(--surface)); color: var(--ph-primary); font: 600 10px var(--ph-body); }
.pill.warm { background: var(--peach); color: var(--gold); }
.pill.purple { background: var(--lilac); color: #c6abe4; }
.alert { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); color: var(--muted); font-size: 13px; line-height: 1.75; }
.alert.warm { background: var(--peach); color: var(--ink); }
.alert.error { color: var(--error); background: var(--surface); border-color: var(--error); }
.alert > .icon { margin-top: 3px; }
.panel, .card { min-width: 0; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.panel.soft { background: var(--soft); }
.section { margin: 70px auto; }
.section-heading, .page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 29px; }
.page-heading { gap: 32px; margin-bottom: 28px; }
.page-heading h1 { font-size: clamp(25px,2.5vw,36px); }
.section-heading p, .page-heading p { max-width: 650px; margin-top: 12px; font-size: 14px; line-height: 1.8; }
.section-heading .eyebrow { margin-bottom: 13px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
.skip { position: absolute; top: -80px; left: 20px; z-index: 1200; padding: 15px; background: var(--soft); color: var(--ink); }
.skip:focus { top: 10px; }
.logo { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.breadcrumb { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 34px; color: var(--muted); font-size: 11px; }
.breadcrumb .icon { width: 12px; height: 12px; }
.input, input[type=email], input[type=password], input[type=text], input[type=number], input[type=search], textarea, select { width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.15); border-radius: 9px; background: var(--soft); color: var(--ink); font-size: 14px; }
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { resize: vertical; min-height: 110px; }
label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
input[type=checkbox], input[type=radio] { accent-color: var(--ph-primary); }
.form-field { min-width: 0; margin-bottom: 21px; }
.helptext { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; }
.errorlist { list-style: none; padding: 0; margin: 8px 0; color: var(--error); font-size: 12px; }
.field-error { color: var(--error); font-size: 12px; }
.form-heading { font-size: 30px; margin-bottom: 15px; }
.form-shell { max-width: 650px; margin-inline: auto; }
.split-form { display: grid; grid-template-columns: .8fr 1fr; gap: 60px; align-items: start; }
.split-form > aside { padding-top: 30px; }
.split-form > aside h1 { font-size: 45px; }
.split-form > aside > p { max-width: 360px; margin: 24px 0; line-height: 1.8; }
.login-form { align-items: center; }
.login-form > .panel { align-self: center; }
.mfa-qr-frame { background: #fff; }
.prose p { margin: 16px 0; line-height: 1.85; }
.prose h2 { font-size: 28px; margin: 30px 0 16px; }
.prose h3 { font-size: 22px; margin: 25px 0 12px; }
.prose ul, .prose ol { padding-left: 22px; color: var(--muted); line-height: 1.85; }
.empty { max-width: 650px; margin-inline: auto; padding: 52px 25px; text-align: center; }
.empty > .icon { width: 44px; height: 44px; margin-bottom: 20px; color: var(--brand); }
.empty h2 { font-size: 27px; }
.empty p { max-width: 500px; margin: 20px auto 25px; font-size: 14px; }
.empty .eyebrow { justify-content: center; }
.stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,160px),1fr)); gap: 16px; margin-top: 23px; }
.stat { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.stat small { color: var(--muted); font-size: 11px; }
.stat strong { display: block; margin-top: 10px; color: var(--ph-success); font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.table-wrap { width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
th { padding: 15px; background: var(--soft); color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; }
td { padding: 16px 15px; border-bottom: 1px solid var(--line); vertical-align: middle; line-height: 1.8; }
tr:last-child td { border-bottom: 0; }
td .btn { white-space: nowrap; }
.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.pagination a { color: var(--brand); }
.message { max-width: 86%; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.message p { white-space: pre-wrap; }
.message.staff { margin-left: auto; background: var(--soft); }
.message small { display: block; margin-top: 12px; color: var(--muted); }
.timeline { display: grid; margin: 26px 0; }
.timeline > div { position: relative; padding: 17px 0 17px 27px; border-left: 1px solid var(--line); font-size: 13px; }
.timeline > div::before { content: ''; position: absolute; left: -5px; top: 24px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
dialog { width: min(740px,calc(100% - 28px)); max-height: 90dvh; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); }
dialog::backdrop { background: #050911b3; backdrop-filter: blur(5px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 25px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { font-size: 24px; }
.dialog-content { padding: 25px; max-height: calc(90dvh - 100px); overflow: auto; }
.search-result { display: flex; justify-content: space-between; gap: 15px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.search-result strong { font-size: 14px; }
.search-result small { color: var(--muted); font-size: 11px; }
.dialog-note { font-size: 12px; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 25px; z-index: 1190; transform: translateX(-50%); max-width: min(650px,calc(100% - 30px)); padding: 16px 25px; border: 1px solid var(--line); border-radius: 12px; background: #253448; color: var(--ink); font-size: 13px; box-shadow: var(--shadow); }
.back-to-top { position: fixed; right: 24px; bottom: 25px; z-index: 1070; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); color: var(--ph-text); }
.error-page { max-width: 700px; margin-inline: auto; padding: 70px 0; text-align: center; }
.error-page p { margin: 20px 0; }
.error-code { color: var(--brand); font: 700 clamp(70px,10vw,120px)/1 var(--ph-display); }
.checkbox-list { display: grid; gap: 10px; }
.checkbox-list label { display: flex; align-items: flex-start; gap: 10px; }
.code-plain { overflow-wrap: anywhere; font-family: var(--ph-mono); }
.print-only, .mobile-bottom:not(.purchase) { display: none; }
@media (max-width:850px) {
  .grid3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .split-form { grid-template-columns: minmax(0,1fr); gap: 30px; }
  .split-form > aside { padding-top: 0; }
  .page-heading, .section-heading { align-items: flex-start; flex-wrap: wrap; }
}
@media (max-width:640px) {
  .page { padding: 25px 0 75px; }
  .grid2, .grid3 { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .panel, .card { padding: 22px; }
  .eyebrow { font-size: 9px; margin-bottom: 16px; }
  .form-heading { font-size: 27px; }
  .empty { padding: 37px 15px; }
  .empty h2 { font-size: 26px; }
  .empty p { font-size: 13px; }
  .stats { gap: 9px; }
  .stat { padding: 15px 11px; }
  .stat strong { font-size: 25px; }
  .message { max-width: 100%; padding: 20px; }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); padding: 13px 19px; }
  .back-to-top { right: 12px; bottom: calc(75px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  body { background: #fff; color: #111; }
  .page { padding: 0; }
  .print-only { display: block; }
  .skip, .back-to-top, .toast, dialog, [data-secret] { display: none !important; }
}
