/* AppCenter site styles ("carbon copy" design). One file, no build step, light and dark themes. */
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/libre-franklin-var.woff2") format("woff2");
}

:root {
  --paper: #FAFAF7;
  --paper-2: #F1F1EC;
  --sheet: #FFFFFF;
  --ink: #191B2E;
  --ink-2: #4E5270;
  --rule: #DCDDE6;
  --control: #7D8199;
  --carbon: #3A3FBF;
  --on-carbon: #FFFFFF;
  --carbon-tint: #EEEFFC;
  --canary: #F8E58C;
  --canary-edge: #E1C85A;
  --canary-tint: #FDF6D8;
  --on-canary: #191B2E;
  --ok: #1F7A4D;
  --ok-tint: #E4F3EA;
  --warn: #8F5300;
  --warn-tint: #FBEFD9;
  --error: #B3261E;
  --error-tint: #FBE7E5;
  --font: "Libre Franklin", "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  --mono: ui-monospace, "IBM Plex Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #14162B; --paper-2: #1A1D36; --sheet: #1F2242; --ink: #ECEDF7; --ink-2: #AEB1CC;
    --rule: #30345C; --control: #6E7398; --carbon: #A9ADFF; --on-carbon: #14162B; --carbon-tint: #262A55;
    --canary: #E9D46B; --canary-edge: #C9B24E; --canary-tint: #3A3520;
    --ok: #7FD3A6; --ok-tint: #173A2A; --warn: #F3BE6B; --warn-tint: #3D2E14; --error: #FF9C92; --error-tint: #40201E;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #14162B; --paper-2: #1A1D36; --sheet: #1F2242; --ink: #ECEDF7; --ink-2: #AEB1CC;
  --rule: #30345C; --control: #6E7398; --carbon: #A9ADFF; --on-carbon: #14162B; --carbon-tint: #262A55;
  --canary: #E9D46B; --canary-edge: #C9B24E; --canary-tint: #3A3520;
  --ok: #7FD3A6; --ok-tint: #173A2A; --warn: #F3BE6B; --warn-tint: #3D2E14; --error: #FF9C92; --error-tint: #40201E;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.6; font-weight: 400; }
a { color: var(--carbon); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--carbon); outline-offset: 2px; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
ul, ol { margin: 0 0 1em; }
img { max-width: 100%; height: auto; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--paper-2); border-radius: 2px; padding: 1px 5px; overflow-wrap: anywhere; }
pre { overflow-x: auto; }
table { border-collapse: collapse; }

.wrap, .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.page { padding-top: 64px; padding-bottom: 8px; }
@media (max-width: 600px) { .wrap, .container { padding: 0 16px; } .page { padding-top: 40px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sheet); color: var(--ink); padding: 8px 12px; }
.skip:focus { left: 8px; z-index: 20; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; line-height: 1.45; color: var(--ink-2); font-weight: 450; letter-spacing: 0.005em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid transparent; }
.site-header.is-scrolled, .app-area .site-header { border-bottom-color: var(--rule); }
.header-row { display: flex; align-items: center; min-height: 64px; gap: 48px; }
.brand { font-weight: 800; font-size: 21px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.main-nav { display: flex; gap: 28px; align-items: center; flex: 1; }
.main-nav a, .main-nav > .apps-menu > button, .link-button {
  font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); text-decoration: none;
  background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.main-nav a:hover, .main-nav button:hover, .link-button:hover { color: var(--carbon); }
.main-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.apps-menu { position: relative; }
.apps-panel { position: absolute; top: calc(100% + 12px); left: -16px; width: 440px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 2px; padding: 8px 20px; z-index: 12; }
.apps-panel[hidden] { display: none; }
.apps-panel a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); font-weight: 400; }
.apps-panel a:last-child { border-bottom: 0; }
.apps-panel strong { display: block; font-weight: 700; color: var(--carbon); }
.apps-panel span { display: block; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.menu-btn { display: none; }
.mobile-panel { position: fixed; inset: 64px 0 0 0; background: var(--paper); z-index: 11; padding: 24px 16px; overflow-y: auto; display: none; flex-direction: column; gap: 4px; }
.mobile-panel.is-open { display: flex; }
.mobile-panel a:not(.btn) { font-size: 20px; font-weight: 600; color: var(--ink); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.mobile-panel .btn { margin-top: 24px; }
.mobile-panel .sub a { display: block; font-size: 17px; font-weight: 450; padding-left: 16px; }

@media (max-width: 900px) {
  .main-nav, .header-row > .btn { display: none; }
  .header-row { justify-content: space-between; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); background: none; border: 1.5px solid var(--rule); border-radius: 6px; cursor: pointer; }
}

/* Buttons */
.btn, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 6px;
  font: inherit; font-size: 16px; font-weight: 650; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; white-space: nowrap; line-height: 1.2;
}
.btn-primary, .button { background: var(--carbon); color: var(--on-carbon); }
.btn-primary:hover, .button:hover { filter: brightness(0.92); }
.btn-secondary, .button-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover, .button-secondary:hover { background: var(--paper-2); filter: none; }
.btn-ink { background: #191B2E; color: #FFFFFF; }
.btn-ink:hover { background: #2B2E48; filter: none; }
.btn[disabled], .button[disabled] { opacity: 0.6; cursor: default; }
.btn-small, .button-small { min-height: 36px; padding: 0 14px; font-size: 15px; }
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ext { width: 12px; height: 12px; flex: none; }

/* Sections */
main > section + section, main > .page + section { margin-top: 96px; }
@media (max-width: 600px) { main > section + section, main > .page + section { margin-top: 64px; } }
.hero { padding-top: 80px; }
@media (max-width: 600px) { .hero { padding-top: 40px; } }
.display { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 3.75rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.025em; max-width: 18ch; }
h1, .h1 { font-size: clamp(2.25rem, 1.8rem + 1.8vw, 3rem); line-height: 1.05; font-weight: 780; letter-spacing: -0.02em; }
h2, .h2 { font-size: 30px; line-height: 1.15; font-weight: 720; letter-spacing: -0.01em; }
h3, .h3 { font-size: 21px; line-height: 1.3; font-weight: 650; }
@media (max-width: 600px) { h2, .h2 { font-size: 26px; } }
.lead { margin: 24px 0 0; font-size: 21px; line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.hero .small { margin-top: 16px; }
.page-head { max-width: 68ch; }
.page-head + * { margin-top: 48px; }
.measure { max-width: 68ch; }
.section-head { margin-bottom: 32px; }

/* Breadcrumbs */
.breadcrumbs { font-size: 15px; color: var(--ink-2); margin-bottom: 24px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--control); }

/* Carbon set */
.carbon { position: relative; margin: 0; padding: 0 14px 54px 0; }
.carbon__copy {
  position: absolute; inset: 14px 0 0 14px; background: var(--canary); border: 1px solid var(--canary-edge); border-radius: 2px;
  display: flex; align-items: flex-end; padding: 0 24px 15px; animation: slide 450ms cubic-bezier(.2,.7,.2,1) 150ms both;
}
.carbon__note { margin: 0; font-size: 14px; line-height: 1.4; color: var(--on-canary); font-weight: 500; }
.carbon__sheet { position: relative; z-index: 1; background: var(--sheet); border: 1px solid var(--rule); border-radius: 2px; padding: 0 32px 8px; }
.carbon__stub {
  margin: 0; font-size: 14px; color: var(--ink-2); font-weight: 500; padding: 14px 0;
  background: repeating-linear-gradient(to right, var(--ink-2) 0 6px, transparent 6px 10px) left bottom / 100% 1px no-repeat;
}
.carbon__fields { margin: 0; font-variant-numeric: tabular-nums; }
.carbon__row { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.carbon__row:last-child { border-bottom: 0; }
.carbon__row dt { font-size: 14px; color: var(--ink-2); }
.carbon__row dd { margin: 0; font-size: 18px; text-align: right; }
.hl { background: var(--canary); color: var(--on-canary); padding: 2px 6px; border-radius: 2px; }
@keyframes slide { from { transform: translate(-14px, -14px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .carbon__copy { animation: none; } }
@media (max-width: 600px) {
  .carbon { padding: 0 10px 50px 0; }
  .carbon__copy { inset: 10px 0 0 10px; padding: 0 16px 13px; }
  .carbon__sheet { padding: 0 16px 4px; }
  .carbon__row { display: block; padding: 12px 0; }
  .carbon__row dd { text-align: left; margin-top: 2px; }
  @keyframes slide { from { transform: translate(-10px, -10px); } to { transform: none; } }
}

/* Ledger (home) */
.hero .carbon { margin-top: 64px; }
@media (max-width: 600px) { .hero .carbon { margin-top: 48px; } }
.ledger { width: 100%; font-variant-numeric: tabular-nums; }
.ledger th { text-align: left; font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 20px 24px 10px 0; border-bottom: 2px solid var(--ink); }
.ledger td { vertical-align: top; padding: 18px 24px 18px 0; border-bottom: 1px solid var(--rule); font-size: 17px; line-height: 1.45; }
.ledger tr:last-child td { border-bottom: 0; }
.ledger td:first-child { font-weight: 650; width: 18%; }
.ledger td:nth-child(2) { width: 36%; }
.ledger td:nth-child(3) { width: 26%; }
.ledger th:last-child, .ledger td:last-child { padding-right: 0; }
.app-name { font-weight: 700; color: var(--carbon); text-decoration: none; }
.app-name:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .ledger thead { display: none; }
  .ledger, .ledger tbody, .ledger tr, .ledger td { display: block; width: auto !important; }
  .ledger tr { padding: 18px 0; border-bottom: 1px solid var(--rule); }
  .ledger tr:last-child { border-bottom: 0; }
  .ledger td { border: 0; padding: 0; font-size: 16px; }
  .ledger td + td { margin-top: 6px; }
  .ledger td[data-label]::before { content: attr(data-label) " "; color: var(--ink-2); font-weight: 500; }
  .ledger td:last-child::before { content: "App: "; color: var(--ink-2); font-weight: 500; }
  .ledger td:last-child { margin-top: 10px; }
}

/* Status pill */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 550; line-height: 1; padding: 5px 9px 5px 8px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-live { background: var(--ok-tint); color: var(--ok); }
.pill-beta { background: var(--carbon-tint); color: var(--carbon); }
.pill-in_review { background: var(--warn-tint); color: var(--warn); }

/* Principles, jobs */
.pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 64px; max-width: 1040px; margin: 40px 0 0; padding: 0; list-style: none; }
.pairs h3 + p { margin-top: 10px; color: var(--ink-2); max-width: 46ch; margin-bottom: 0; }
@media (max-width: 760px) { .pairs { grid-template-columns: 1fr; gap: 32px; } }

/* Steps */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 14px; right: 14px; top: 14px; height: 1px; background: var(--rule); }
.steps li { position: relative; counter-increment: step; padding-right: 16px; }
.steps li::before { content: counter(step); position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper); font-size: 14px; font-weight: 700; }
.steps strong { display: block; margin-top: 16px; font-size: 18px; font-weight: 700; }
.steps span { display: block; margin-top: 4px; color: var(--ink-2); font-size: 17px; line-height: 1.5; }
.after-steps { margin-top: 32px; color: var(--ink-2); }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { left: 14px; right: auto; top: 14px; bottom: 14px; width: 1px; height: auto; }
  .steps li { padding-left: 48px; }
  .steps li::before { position: absolute; left: 0; top: 0; }
  .steps strong { margin-top: 1px; }
}

/* Band */
.band { background: var(--canary); color: var(--on-canary); padding: 72px 0; }
.band p { margin-top: 14px; max-width: 58ch; margin-bottom: 0; }
.band .actions { margin-top: 28px; }
.band :focus-visible { outline-color: #191B2E; }
.closing { border-top: 1px solid var(--rule); padding-top: 48px; }

/* Data tables */
.data-table { width: 100%; font-size: 17px; line-height: 1.45; }
.data-table th { background: var(--paper-2); text-align: left; font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 10px 20px 10px 12px; border-bottom: 2px solid var(--ink); }
.data-table td { vertical-align: top; padding: 14px 20px 14px 12px; border-bottom: 1px solid var(--rule); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
@media (max-width: 760px) {
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; }
  .data-table tr { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .data-table td { border: 0; padding: 2px 0; }
  .data-table td[data-label]::before { content: attr(data-label) ": "; color: var(--ink-2); font-size: 15px; }
  .data-table .num { text-align: left; }
}

/* FAQ */
.faq { border-bottom: 1px solid var(--rule); }
.faq:first-of-type { border-top: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-size: 18px; font-weight: 600; padding: 16px 40px 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 12px; font-size: 24px; font-weight: 400; }
.faq[open] summary::after { content: "\2212"; }
.faq > div, .faq > p { margin: 0 0 16px; color: var(--ink-2); max-width: 68ch; }

/* Callouts, Ui, figures */
.callout, .tip { background: var(--carbon-tint); border-left: 3px solid var(--carbon); padding: 12px 16px; border-radius: 2px; margin: 16px 0; }
.callout p:last-child, .tip p:last-child { margin-bottom: 0; }
.callout-note { background: var(--canary-tint); border-left-color: var(--canary-edge); }
.callout-warn, .tip-warning { background: var(--warn-tint); border-left-color: var(--warn); }
.tip-warning { background: var(--canary-tint); border-left-color: var(--canary-edge); }
.ui { font-weight: 650; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; padding: 1px 6px; white-space: nowrap; }
.screenshot { margin: 12px 0 4px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 2px; padding: 8px; }
.screenshot img { display: block; width: 100%; }
.screenshot figcaption { color: var(--ink-2); font-size: 14px; margin-top: 8px; }
.screenshot-missing { display: none; }
.screenshot-missing div { border: 2px dashed var(--control); padding: 24px 16px; text-align: center; color: var(--ink-2); font-size: 15px; }

/* Lists */
.checks { list-style: none; padding: 0; }
.checks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 14px; height: 8px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.plain-list { padding-left: 20px; }
.plain-list li { margin-bottom: 10px; }
.box { background: var(--sheet); border: 1px solid var(--rule); border-radius: 2px; padding: 20px 24px; margin: 24px 0; }
.box h2 { font-size: 20px; margin-bottom: 12px; }

/* App page */
.app-hero { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: start; }
.app-hero__main .for { margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; color: var(--ink-2); font-size: 16px; }
@media (max-width: 960px) { .app-hero { grid-template-columns: 1fr; gap: 40px; } }
.jobs { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; list-style: none; margin: 32px 0 0; padding: 0; }
.jobs li { border-top: 1px solid var(--rule); padding-top: 20px; }
.jobs p { margin: 8px 0 0; color: var(--ink-2); }
@media (max-width: 760px) { .jobs { grid-template-columns: 1fr; } }
.perm h3 { margin: 32px 0 12px; }
.perm ul { list-style: none; padding: 0; margin: 0; }
.perm li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.perm li p { display: inline; margin: 0; }
.perm code { display: block; width: max-content; max-width: 100%; margin-bottom: 4px; }
.price-note { margin-top: 12px; }

/* Apps list */
.app-row { padding: 48px 0; border-top: 1px solid var(--rule); max-width: 840px; }
.app-row .lead { margin-top: 12px; font-size: 19px; }
.app-row .small { margin-top: 12px; }
.closing p { margin-top: 12px; }
.app-row ul { padding-left: 20px; margin: 20px 0 0; }
.app-row li { margin-bottom: 6px; }

/* Help */
.help-search { display: flex; gap: 12px; max-width: 640px; margin-top: 32px; }
.help-search input { flex: 1; }
.help-block { padding: 32px 0; border-top: 1px solid var(--rule); }
.help-block ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.search-results { list-style: none; padding: 0; margin: 32px 0 0; max-width: 72ch; }
.search-results li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.search-results a { font-weight: 650; font-size: 19px; }
.search-results p { margin: 4px 0 0; color: var(--ink-2); }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 72ch); gap: 64px; align-items: start; }
.article-layout.no-toc { grid-template-columns: minmax(0, 72ch); }
.toc { position: sticky; top: 88px; font-size: 15px; }
.toc h2 { font-size: 15px; font-weight: 650; margin-bottom: 10px; letter-spacing: 0; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc a { display: block; padding: 5px 0 5px 14px; border-left: 2px solid var(--rule); color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc a:hover, .toc a.is-current { color: var(--carbon); border-left-color: var(--carbon); }
.toc-details { display: none; margin-bottom: 32px; }
.toc-details summary { cursor: pointer; font-weight: 650; }
@media (max-width: 1023px) {
  .article-layout { grid-template-columns: minmax(0, 72ch); }
  .toc { display: none; }
  .toc-details { display: block; }
  .toc-details ol { margin-top: 8px; }
}
.guide { font-size: 17px; line-height: 1.65; }
.guide .lead { font-size: 20px; }
.guide-meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 24px 0; font-size: 16px; }
.guide-meta dt { color: var(--ink-2); }
.guide-meta dd { margin: 0; }
.guide-section { margin-top: 48px; scroll-margin-top: 88px; }
.guide-section h2 { font-size: 26px; display: flex; align-items: baseline; gap: 12px; }
.guide-number { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); font-size: 15px; font-weight: 700; transform: translateY(-2px); }
.copy-link { margin-left: 4px; opacity: 0; font: inherit; font-size: 14px; font-weight: 450; color: var(--carbon); background: none; border: 0; cursor: pointer; padding: 0 4px; }
.guide-section h2:hover .copy-link, .copy-link:focus-visible { opacity: 1; }
.guide-section > p { margin-top: 12px; }
.guide-steps { padding-left: 24px; margin-top: 20px; }
.guide-steps > li { margin-bottom: 18px; padding-left: 4px; }
.guide-steps > li::marker { font-weight: 700; }
.guide-step-text p { margin: 0 0 8px; }
.guide-before h2 { font-size: 20px; }
.updated { margin-top: 48px; }
.contact-grid { display: grid; grid-template-columns: 7fr 4fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.direct dt { font-size: 14px; color: var(--ink-2); margin-top: 16px; }
.direct dd { margin: 0; }
.prose { max-width: 68ch; }
.prose h2 { margin: 40px 0 12px; font-size: 26px; }
.prose h3 { margin: 28px 0 8px; }
.prose-wide { max-width: 72ch; }
.section-stack > * + * { margin-top: 48px; }
.page h2 { margin-bottom: 16px; }
.page h2:not(:first-child) { margin-top: 48px; }

/* Forms */
.form { max-width: 640px; display: grid; gap: 22px; }
.field { display: grid; gap: 6px; }
.field > label, legend { font-weight: 650; font-size: 16px; }
.hint { font-size: 14px; color: var(--ink-2); margin: 0; }
input, select, textarea { font: inherit; font-size: 17px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--control); border-radius: 6px; background: var(--sheet); color: var(--ink); width: 100%; }
textarea { min-height: 150px; resize: vertical; }
[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field-error, .error-text { color: var(--error); margin: 0; font-size: 15px; font-weight: 500; }
.error-summary { background: var(--error-tint); border-left: 3px solid var(--error); padding: 12px 16px; border-radius: 2px; margin-bottom: 24px; max-width: 640px; }
.error-summary h2 { font-size: 18px; margin-bottom: 6px; }
.error-summary ul { margin: 0; padding-left: 20px; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: 2px; border-left: 3px solid; max-width: 640px; }
.notice-success { background: var(--ok-tint); border-color: var(--ok); }
.notice-error { background: var(--error-tint); border-color: var(--error); }
.notice-info { background: var(--carbon-tint); border-color: var(--carbon); }
.notice h2 { font-size: 20px; margin-bottom: 4px; }
.notice p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--rule); padding: 56px 0 28px; font-size: 15px; margin-top: 96px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.foot-grid h2 { font-size: 15px; font-weight: 650; margin-bottom: 10px; letter-spacing: 0; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-grid a { color: var(--ink); text-decoration: none; }
.foot-grid a:hover { color: var(--carbon); text-decoration: underline; }
.foot-brand p { margin-top: 10px; color: var(--ink-2); max-width: 30ch; }
.foot-meta { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--rule); display: grid; gap: 8px; color: var(--ink-2); font-size: 14px; }
.foot-meta p { margin: 0; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.theme { display: inline-flex; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.theme button { font: inherit; font-size: 13px; font-weight: 550; min-height: 32px; padding: 0 12px; background: none; border: 0; color: var(--ink-2); cursor: pointer; }
.theme button[aria-pressed="true"] { background: var(--sheet); color: var(--ink); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
.sr-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Dashboard and CRM shells */
.app-area main { padding-top: 48px; }
.app-area main .card, .card { background: var(--sheet); border: 1px solid var(--rule); border-radius: 2px; padding: 20px 24px; }
.inline { display: inline-flex; gap: 12px; align-items: center; }
.debug { white-space: pre-wrap; font-size: 13px; background: var(--paper-2); padding: 16px; overflow-x: auto; }
.draft-banner { background: var(--warn-tint); border-left: 3px solid var(--warn); padding: 12px 16px; margin: 24px 0; border-radius: 2px; max-width: 68ch; }
.page-404 .actions { margin-top: 24px; }
.mt { margin-top: 24px; }
.steps-3 { grid-template-columns: repeat(3, 1fr); }
.steps-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 760px) { .steps-3, .steps-5 { grid-template-columns: 1fr; } }
.app-logo { display: block; width: 48px; height: 48px; object-fit: contain; margin-bottom: 16px; }
.app-logo-large { width: 72px; height: 72px; }
.carbon--tall { padding-bottom: 84px; }
@media (max-width: 600px) { .carbon--tall { padding-bottom: 92px; } }
