/* Orb Inspect — public site. Shares the Orb Security template: grey page, blue accent, light footer. */
:root {
  --bg: #F2F4F7;
  --surface: #fff;
  --ink: #0B1220;
  --muted: #6B7280;
  --line: #E5E7EB;
  --blue: #0A6CFF;
  --blue-dark: #0057D9;
  --soft: #E8F0FF;
  --red: #DC2626;
  --spring: cubic-bezier(.22, 1, .36, 1);
  --display: "Inter Tight", system-ui, sans-serif;
  --body: Manrope, system-ui, -apple-system, sans-serif;
  --shadow-card: 0 1px 2px rgba(11, 18, 32, .04), 0 8px 24px -12px rgba(11, 18, 32, .1);
  --text-2: #374151;
  --ghost-hover: #CBD2DC;
  --header-glass: rgba(242, 244, 247, .85);
  --card-edge: rgba(0, 0, 0, .04);
  --field-focus: #fff;
  --error-bg: #FEF2F2;
  --notice-ink: #0B3C8C;
  --ok-bg: #E7F7EE;
  --ok-ink: #0F7A3D;
  --danger: #B42318;
}

/* Dark appearance: signed-in pages only (the public site has no data-theme). */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B111C;
  --surface: #141C2B;
  --ink: #E8ECF3;
  --muted: #9AA4B5;
  --line: #243044;
  --blue: #3D8BFF;
  --blue-dark: #2F7AF0;
  --soft: #15284A;
  --red: #F87171;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .5);
  --text-2: #C7CEDA;
  --ghost-hover: #3A4760;
  --header-glass: rgba(11, 17, 28, .85);
  --card-edge: rgba(255, 255, 255, .04);
  --field-focus: #0F1624;
  --error-bg: #3A1518;
  --notice-ink: #B9D3FF;
  --ok-bg: #0F2F1F;
  --ok-ink: #6EE7A0;
  --danger: #F87171;
}
.logo-dark { display: none !important; }
[data-theme="dark"] .logo-light { display: none !important; }
[data-theme="dark"] .logo-dark { display: block !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; color: var(--ink); }
h1 { font-size: clamp(38px, 5.2vw, 56px); line-height: 1.04; letter-spacing: -.03em; }
h2 { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -.03em; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

.accent { color: var(--blue); }
.eyebrow { display: block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.lead, .lede { font-size: 19px; line-height: 1.55; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 14px; border: 1px solid transparent;
  font-family: var(--body); font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--spring), background-color .2s, box-shadow .25s var(--spring);
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px -6px rgba(10, 108, 255, .55); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); height: 42px; font-size: 15px; }
.btn-ghost:hover { border-color: var(--ghost-hover); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; transition: background-color .2s, border-color .2s; border-bottom: 1px solid transparent; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.site-header.scrolled { background: var(--header-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.brand img { height: 50px; width: auto; margin-left: -6px; }
.nav { display: flex; align-items: center; gap: 10px; }
.nav .btn { white-space: nowrap; }

/* Hero */
.hero { padding: 40px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.hero h1 { margin: 16px 0 20px; }
.hero .lead { max-width: 33em; }
.hero .btn { margin-top: 32px; }
.hero .note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero-media img { width: 100%; height: auto; border-radius: 28px; box-shadow: 0 24px 60px -28px rgba(11, 18, 32, .35); }

/* Blocks */
.block { padding: 48px 0; }
.block-head { max-width: 680px; }
.block-head .lead { margin-top: 16px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.card { background: var(--surface); border: 1px solid var(--card-edge); border-radius: 22px; padding: 26px; box-shadow: var(--shadow-card); }
.card h3 { margin: 22px 0 8px; }
.card p { color: var(--muted); font-size: 16px; }
.ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--soft); color: var(--blue); }
.ico svg { width: 22px; height: 22px; }

/* Blue band */
.band { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; background: var(--blue); color: #fff; border-radius: 28px; padding: 48px; overflow: hidden; }
.band h2 { color: #fff; }
.band p { margin-top: 18px; font-size: 19px; color: rgba(255, 255, 255, .82); max-width: 30em; }
.diagram { width: 100%; max-width: 420px; margin: 0 auto; color: #fff; }
.diagram text { font-family: var(--body); font-weight: 600; font-size: 16px; fill: #fff; }
.diagram .pulse { transform-box: fill-box; transform-origin: center; animation: pulse 3s var(--spring) infinite; }
.diagram .pulse.p2 { animation-delay: 1s; }
.diagram .pulse.p3 { animation-delay: 2s; }
@keyframes pulse { 0% { opacity: .55; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.5); } }

/* Close */
.close { padding: 72px 0 80px; text-align: center; }
.close h2 { max-width: 680px; margin: 0 auto; }
.close .lead { margin-top: 16px; }
.close .btn { margin-top: 28px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.site-footer .left { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.site-footer .left img { height: 34px; width: auto; margin-left: -4px; }
.site-footer a { color: var(--ink); text-underline-offset: 3px; }
.site-footer .right { display: flex; gap: 18px; }
.site-footer .right a { color: var(--muted); text-decoration: none; }
.site-footer .right a:hover { color: var(--ink); }

/* Simple pages */
.page { padding: 56px 0 96px; }
.page .wrap { max-width: 760px; }
.page h1 { margin: 16px 0 20px; }
.page h2 { font-size: 24px; margin: 36px 0 10px; }
.page p { color: var(--text-2); margin-bottom: 12px; }
.page p a:not(.btn) { color: var(--blue); }

/* Demo dialog */
dialog.demo { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 24px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(11, 18, 32, .45); overflow: auto; }
dialog.demo::backdrop { background: rgba(11, 18, 32, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
dialog.demo[open] { animation: dlg-in .35s var(--spring); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.demo-inner { padding: 28px; }
.demo-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.demo-head h2 { font-size: 28px; }
.demo-head p { margin-top: 6px; color: var(--muted); }
.icon-btn { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--bg); cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.form-grid { display: grid; gap: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-size: 15px; font-weight: 600; padding: 0; }
.opt { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid transparent;
  background: var(--bg); color: inherit; font-size: 16px; transition: border-color .15s, background-color .15s;
}
.field textarea { height: auto; min-height: 92px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: var(--field-focus); }
.field[data-invalid] input, .field[data-invalid] textarea { border-color: var(--red); background: var(--field-focus); }
.err { font-size: 13px; color: var(--red); }
.err:empty { display: none; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 4px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; cursor: pointer; white-space: nowrap; }
.checks input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: var(--error-bg); color: var(--red); font-size: 14px; }
.form-foot { margin-top: 20px; }
.form-foot .btn { width: 100%; }
.form-foot small { display: block; margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
.form-foot small a { color: var(--ink); }
.success { text-align: center; padding: 16px 0 4px; }
.success .tick { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; background: var(--soft); color: var(--blue); }
.success .tick svg { width: 26px; height: 26px; }
.success h2 { font-size: 26px; outline: none; }
.success p { margin-top: 8px; color: var(--muted); }
.success .btn { margin-top: 22px; }

/* Load reveal */
.reveal { opacity: 0; transform: translateY(14px); animation: rise .8s var(--spring) forwards; }
.d1 { animation-delay: .06s; } .d2 { animation-delay: .12s; } .d3 { animation-delay: .18s; } .d4 { animation-delay: .24s; } .d5 { animation-delay: .3s; }
@keyframes rise { to { opacity: 1; transform: none; } }
/* Account pages (/app/) */
.auth { padding: 40px 0 88px; }
.auth .wrap { max-width: 480px; }
.auth-card { background: var(--surface); border-radius: 24px; padding: 32px 28px; box-shadow: var(--shadow-card); }
.auth-card h1 { font-size: clamp(30px, 4vw, 36px); margin: 12px 0 10px; outline: none; }
.auth-card > p, .auth-card [data-view] > p { color: var(--muted); margin-bottom: 20px; }
.auth-links { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 14px; color: var(--muted); }
.auth-links a, .link { color: var(--blue); text-underline-offset: 3px; }
.link { background: none; border: 0; padding: 0; cursor: pointer; font-weight: 600; text-decoration: underline; }
.notice { margin-bottom: 16px; padding: 10px 14px; border-radius: 12px; background: var(--soft); color: var(--notice-ink); font-size: 14px; }
.pw { position: relative; }
.pw input { width: 100%; padding-right: 64px; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 34px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.hint { font-size: 13px; color: var(--muted); }
.account { padding: 40px 0 88px; }
.account .wrap { max-width: 760px; }
.account h1 { margin: 12px 0 8px; font-size: clamp(32px, 4.4vw, 44px); }
.account .lead { font-size: 17px; }
.panel { background: var(--surface); border-radius: 22px; padding: 26px; box-shadow: var(--shadow-card); margin-top: 18px; }
.panel h2 { font-size: 22px; margin-bottom: 4px; }
.panel > p { color: var(--muted); margin-bottom: 18px; }
.panel .form-foot .btn { width: auto; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.pill { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--bg); color: var(--muted); }
.pill.on { background: var(--ok-bg); color: var(--ok-ink); }
.sessions { list-style: none; margin: 0; padding: 0; }
.sessions li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.sessions li:first-child { border-top: 0; }
.sessions strong { display: block; font-weight: 700; }
.sessions span { font-size: 14px; color: var(--muted); }
.btn-small { height: 36px; padding: 0 14px; font-size: 14px; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 14px 0; padding: 16px; border-radius: 14px; background: var(--bg); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; }
.qr { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin: 8px 0 16px; }
.qr-img { width: 176px; height: 176px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.qr-img img, .qr-img svg { width: 100%; height: 100%; }
.secret { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; word-break: break-all; background: var(--bg); padding: 8px 10px; border-radius: 10px; }
.steps { margin: 0 0 16px; padding-left: 20px; color: var(--text-2); }
.steps li { margin-bottom: 6px; }
dialog.demo .form-foot .btn { width: 100%; }
/* Workspace pages (/app/) */
.ws-bar { border-bottom: 1px solid var(--line); background: var(--surface); }
.ws-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; min-height: 54px; }
.ws-switch { position: relative; }
.ws-switch summary { display: flex; align-items: baseline; gap: 8px; list-style: none; cursor: pointer; padding: 8px 12px; margin-left: -12px; border-radius: 12px; max-width: min(70vw, 420px); }
.ws-switch summary::-webkit-details-marker { display: none; }
.ws-switch summary::after { content: ""; align-self: center; flex: none; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-2px) rotate(45deg); }
.ws-switch summary:hover, .ws-switch[open] summary { background: var(--bg); }
.ws-switch strong { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-label { font-size: 13px; color: var(--muted); }
.ws-menu { position: absolute; top: calc(100% + 6px); left: -12px; z-index: 30; display: grid; min-width: 260px; max-width: calc(100vw - 32px); padding: 6px; border-radius: 16px; background: var(--surface); box-shadow: 0 24px 48px -20px rgba(11, 18, 32, .35); border: 1px solid var(--line); }
.ws-menu button, .ws-menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; font-size: 15px; text-align: left; text-decoration: none; cursor: pointer; }
.ws-menu button:hover, .ws-menu a:hover { background: var(--bg); }
.ws-menu .current { font-weight: 700; }
.ws-menu small { font-size: 12px; color: var(--muted); }
.ws-menu .ws-new { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; color: var(--blue); font-weight: 600; }
.ws-tabs { display: flex; gap: 4px; margin: 0 -10px; overflow-x: auto; }
.ws-tabs a { padding: 8px 10px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.ws-tabs a:hover { color: var(--ink); }
.ws-tabs a[aria-current="page"] { color: var(--ink); background: var(--bg); }
.next-steps { list-style: none; margin: 14px 0 0; padding: 0; }
.next-steps li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.next-steps li:first-child { border-top: 0; }
.next-steps strong { display: block; }
.next-steps span:not(.pill) { font-size: 14px; color: var(--muted); }
.next-steps .pill { flex: none; }
.people { margin-top: 10px; }
.people li { flex-wrap: wrap; }
.people li > div:first-child { min-width: 0; }
.people span { display: block; overflow-wrap: anywhere; }
.people .roles { margin-top: 2px; color: var(--ink); font-weight: 600; font-size: 13px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.role-edit { flex-basis: 100%; padding: 14px; border-radius: 14px; background: var(--bg); }
.role-edit .form-foot { display: flex; gap: 8px; margin-top: 12px; }
.role-edit .form-error { margin-top: 10px; }
.danger { color: var(--danger); }
.label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0 0 20px; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.form-foot.stack { display: grid; gap: 10px; }
.form-foot.stack .btn { width: 100%; }
.roles-help { margin-top: 22px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-ctas .btn, .close .hero-ctas .btn { margin-top: 0; }
.close-ctas { justify-content: center; margin-top: 28px; }
.nav-start { height: 42px; }
@media (max-width: 440px) { .nav-start { display: none; } }
@media (max-width: 560px) {
  .next-steps li, .people li { align-items: flex-start; }
  .next-steps li { flex-direction: column; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 8px; }
}
/* Sites & clients (/app/sites/, /app/site/, /app/clients/, /app/client/) */
.record-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; }
.record-head > div:first-child { min-width: 0; }
.record-head h1 { overflow-wrap: anywhere; }
.record-head .btn { width: auto; }
.back-link { display: inline-block; margin-bottom: 14px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.back-link:hover { color: var(--ink); }
.archived-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 18px; padding: 12px 16px; border-radius: 14px; background: var(--soft); color: var(--notice-ink); font-size: 15px; }
.archived-banner .btn { width: auto; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.filters:has(> .field:only-child) { grid-template-columns: 1fr; }
.filters .field label { font-size: 13px; }
.seg { display: inline-flex; gap: 4px; margin-top: 16px; padding: 4px; border-radius: 12px; background: var(--bg); }
.seg button { height: 34px; padding: 0 12px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); }
.seg span { font-weight: 500; }
.records { list-style: none; margin: 12px 0 0; padding: 0; }
.records[aria-busy="true"] { opacity: .6; }
.records li { border-top: 1px solid var(--line); }
.records li:first-child { border-top: 0; }
.record { display: grid; gap: 3px; padding: 14px 10px; margin: 0 -10px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.record:hover { background: var(--bg); }
.record strong { font-weight: 700; overflow-wrap: anywhere; }
.record .meta { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { padding: 2px 10px; border-radius: 999px; background: var(--bg); color: var(--text-2); font-size: 13px; font-weight: 600; }
.record:hover .chip { background: var(--surface); }
.records .empty { display: grid; justify-items: start; gap: 12px; padding: 18px 0 6px; color: var(--muted); }
.records .empty .btn { width: auto; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-rows { display: grid; gap: 10px; }
.contact-rows:empty { display: none; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); }
.contact-row label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.contact-row input { height: 42px; }
.contact-row [data-remove-contact] { justify-self: start; font-size: 14px; }
.add-row { justify-self: start; width: auto; }
.link-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.link-row { display: flex; gap: 10px; }
.link-row select { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid transparent; background: var(--bg); color: inherit; font-size: 16px; }
.link-row select:focus { outline: none; border-color: var(--blue); background: var(--field-focus); }
.link-row .btn { width: auto; flex: none; }
.contact-links { display: flex !important; flex-wrap: wrap; gap: 4px 14px; margin-top: 2px; }
.facts dd.notes { font-weight: 500; white-space: pre-line; }
.history { list-style: none; margin: 10px 0 0; padding: 0; }
.history li { display: grid; gap: 2px; padding: 10px 0 10px 18px; position: relative; border-left: 2px solid var(--line); margin-left: 4px; }
.history li::before { content: ""; position: absolute; left: -6px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--blue); }
.history strong { font-weight: 600; overflow-wrap: anywhere; }
.history span { font-size: 13px; color: var(--muted); }
dialog.demo .row-actions .btn { width: auto; flex: 1; }
@media (max-width: 560px) {
  .field-pair, .contact-row { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .field.search { grid-column: 1 / -1; }
}
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; animation: none; }
  .diagram .pulse, dialog.demo[open] { animation: none; }
  .btn { transition: none; }
}

@media (max-width: 900px) {
  .hero .wrap, .band { grid-template-columns: 1fr; }
  .hero { padding-top: 24px; }
  .band { padding: 36px 28px; }
}
@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
  .close { padding: 56px 0 64px; }
  .demo-inner { padding: 22px; }
}
@media (max-width: 560px) {
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
  .auth-card, .panel { padding: 24px 18px; border-radius: 20px; }
  .sessions li { flex-wrap: wrap; }
  .panel .form-foot .btn { width: 100%; }
}

/* ---------- profile & appearance (slice 06) ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.avatar { --avatar-hue: 215; display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
  background: hsl(var(--avatar-hue) 60% 45%); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .02em; line-height: 1; user-select: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-sm { width: 36px; height: 36px; font-size: 14px; }
.avatar-md { width: 56px; height: 56px; font-size: 20px; }
.avatar-lg { width: 88px; height: 88px; font-size: 30px; }
.avatar-link { display: inline-flex; border-radius: 50%; text-decoration: none; }
.avatar-link:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.avatar-link[hidden] { display: none; }
.hello-row { display: flex; align-items: center; gap: 16px; }
.photo-row { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.photo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.photo-actions .hint { flex-basis: 100%; }
.photo-actions label.btn { cursor: pointer; }
.photo-actions input:focus-visible + .btn, .photo-actions label.btn:has(+ input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
[data-bio-count].over { color: var(--danger); font-weight: 700; }
.readonly { margin: 4px 0 0; overflow-wrap: anywhere; }
.seg { display: inline-flex; gap: 4px; margin: 14px 0 10px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); }
.seg-opt { position: relative; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-opt span { display: block; padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--muted); }
.seg-opt input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.seg-opt input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 1px; }
.crop-stage { display: grid; place-items: center; margin-bottom: 16px; }
.crop-stage canvas { width: min(320px, 100%); aspect-ratio: 1; border-radius: 50%; touch-action: none; cursor: grab; background: var(--soft); box-shadow: 0 0 0 1px var(--line); }
.crop-stage canvas:active { cursor: grabbing; }
.crop-stage canvas:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.crop-zoom { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-weight: 600; }
.crop-zoom input { flex: 1; accent-color: var(--blue); }
.profile-card { max-width: 520px; }
.pc-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.pc-head h2 { font-size: 24px; overflow-wrap: anywhere; }
.pc-head p { margin-top: 4px; color: var(--muted); }
.pc-bio { margin: 6px 0 16px; white-space: pre-line; overflow-wrap: anywhere; }
.facts [hidden] { display: none; }
.people .person { display: flex; align-items: flex-start; gap: 12px; }
.people .avatar { display: inline-grid; font-size: 14px; color: #fff; }
.person-name { text-decoration: none; font-size: 16px; font-weight: 700; color: var(--ink); text-align: left; }
.person-name:hover { text-decoration: underline; }
.people .job { color: var(--ink); }
@media (max-width: 440px) { .nav-account { display: none; } }
