/* A quiet, readable surface shared by the invitation, setup, and privacy pages.
   Appearance follows the browser / system; an explicit local preference can override the system. */
:root {
  color-scheme: light;
  --canvas: #f5f6f0;
  --surface: #ffffff;
  --content-panel: #f5f6f0;
  --surface-soft: #edf2e9;
  --ink: #173b48;
  --muted: #526661;
  --subtle: #5c6d62;
  --line: #d6dfd4;
  --control-border: #788e80;
  --accent: #cbdc93;
  --accent-soft: #f0f3e6;
  --action: #173b48;
  --action-text: #ffffff;
  --action-hover: #255363;
  --secondary: #e7eee2;
  --secondary-text: #173b48;
  --focus: #1b715c;
  --warning-bg: #fff4d8;
  --warning-text: #6e4e14;
  --warning-line: #d8bb75;
  --error-bg: #fff1eb;
  --error-text: #873a2b;
  --error-line: #daa798;
  --success-bg: #e5f1cc;
  --success-text: #3f5d27;
  --brand-ink: #173b48;

  --shadow: 0 16px 48px #173b4809;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --canvas: #101d20;
    --surface: #192b2e;
    --content-panel: #192b2e;
    --surface-soft: #203534;
    --accent-soft: #2c3a2d;
    --ink: #eaf2eb;
    --muted: #afc2b9;
    --subtle: #a6bbb0;
    --line: #38504b;
    --control-border: #78988a;
    --action: #b9cd7e;
    --action-text: #173b48;
    --action-hover: #c6d89a;
    --secondary: #2a403d;
    --secondary-text: #eaf2eb;
    --focus: #b9cd7e;
    --warning-bg: #352c1c;
    --warning-text: #f3d69c;
    --warning-line: #8b7442;
    --error-bg: #3c2522;
    --error-text: #ffbeb0;
    --error-line: #9b6559;
    --success-bg: #293f2e;
    --success-text: #d5edb8;
    --brand-ink:#b9cd7e;

    --shadow: 0 16px 48px #00000024;
  }
}
:root[data-theme="dark"] {
    --canvas: #101d20;
    --surface: #192b2e;
    --content-panel: #192b2e;
    --surface-soft: #203534;
    --accent-soft: #2c3a2d;
    --ink: #eaf2eb;
    --muted: #afc2b9;
    --subtle: #a6bbb0;
    --line: #38504b;
    --control-border: #78988a;
    --action: #b9cd7e;
    --action-text: #173b48;
    --action-hover: #c6d89a;
    --secondary: #2a403d;
    --secondary-text: #eaf2eb;
    --focus: #b9cd7e;
    --warning-bg: #352c1c;
    --warning-text: #f3d69c;
    --warning-line: #8b7442;
    --error-bg: #3c2522;
    --error-text: #ffbeb0;
    --error-line: #9b6559;
    --success-bg: #293f2e;
    --success-text: #d5edb8;
    --brand-ink:#b9cd7e;

    --shadow: 0 16px 48px #00000024;
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 24px; }
body { margin: 0; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 0; }
button:disabled { cursor: not-allowed; opacity: .6; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(42px, 5.5vw, 64px); letter-spacing: -.04em; line-height: 1.08; font-weight: 700; text-wrap: balance; }
h2 { font-size: 22px; line-height: 1.3; letter-spacing: -.025em; }
h3 { font-size: 17px; line-height: 1.4; letter-spacing: -.015em; }
p { color: var(--muted); }
code { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; font-size: .88em; overflow-wrap: anywhere; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 10; padding: 10px 16px; border-radius: 10px; background: var(--action); color: var(--action-text); transform: translateY(-180%); text-decoration: none; font-weight: 600; }
.skip-link:focus { transform: translateY(0); }
.site-shell { max-width: 1224px; margin: auto; padding: 0 56px; }
.site-header { min-height: 100px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.header-tools { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; font-weight: 700; font-size: 24px; letter-spacing: -.04em; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; display: block; flex-shrink: 0; }
.site-header nav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.site-header nav > a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.site-header nav > a:not(.nav-button):hover, .site-footer > a:last-child:hover { text-decoration: underline; }
.nav-button { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; font-weight: 600; }
.nav-button:hover { background: var(--secondary); }
.nav-button span { margin-left: 16px; }
.hero { display: grid; grid-template-columns: 1.04fr 1fr; gap: 48px; min-height: 616px; align-items: center; padding: 76px 0 88px; }
.hero-copy, .invite-intro { min-width: 0; }
.eyebrow { font-size: 12px; line-height: 1.5; letter-spacing: .11em; font-weight: 700; color: var(--subtle); display: flex; align-items: center; gap: 10px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #76975e; box-shadow: 0 0 0 4px var(--surface-soft); display: inline-block; flex-shrink: 0; }
.hero h1 { margin-top: 24px; }
.lead { font-size: 18px; line-height: 1.7; max-width: 450px; margin-top: 26px; }
.hero .lead { max-width: 36ch; text-wrap: pretty; }
.primary, .secondary { border-radius: 10px; text-decoration: none; display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 15px; line-height: 1.5; font-weight: 600; padding: 14px 20px; min-height: 50px; max-width: 100%; text-align: left; }
.primary { background: var(--action); color: var(--action-text); }
.primary:hover { background: var(--action-hover); }
.primary > span { font-size: 21px; line-height: 1; flex-shrink: 0; }
.secondary { background: var(--secondary); color: var(--secondary-text); border: 1px solid var(--control-border); }
.secondary:hover { background: var(--surface-soft); }
.hero .primary { min-width: 228px; margin-top: 32px; }
.small-note { font-size: 13px; line-height: 1.65; margin-top: 16px; color: var(--subtle); }
.moment-visual { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
/* The note has its own row; restoring its color must not restore text over art. */
.moment-art { position: relative; height: 350px; isolation: isolate; min-width: 0; margin-inline: 16px; order: 2; }
.frame { position: absolute; width: min(78%, 326px); height: 220px; border: 1px solid #aabdac; border-radius: 15px; background: #f8fbf4; overflow: hidden; box-shadow: 0 16px 36px #081b2020; }
.back-frame { top: 28px; left: 0; transform: rotate(-9deg); }
.front-frame { right: 0; bottom: 42px; transform: rotate(7deg); box-shadow: 0 16px 40px #081b2033; }
/* Progressive enhancement: only the existing, decorative screens move. A native
   view timeline follows normal scrolling; unsupported/reduced/narrow views keep
   the original illustration, spacing, caption, and links untouched. */
@supports (animation-timeline: --sameframe-hero) and (animation-range: exit 0% exit 75%) and (view-timeline-name: --sameframe-hero) {
  @media (min-width: 1001px) and (prefers-reduced-motion: no-preference) {
    .hero[data-hero-motion="active"] { view-timeline-name: --sameframe-hero; view-timeline-axis: block; }
    .hero[data-hero-motion="active"] .back-frame,
    .hero[data-hero-motion="active"] .front-frame {
      animation: hero-back-close 1s linear both;
      animation-timeline: --sameframe-hero;
      animation-range: exit 0% exit 75%;
    }
    .hero[data-hero-motion="active"] .front-frame { animation-name: hero-front-close; }
  }
}
@keyframes hero-back-close {
  from { transform: translate(0, 0) rotate(-9deg); }
  to { transform: translate(12px, 10px) rotate(-7.4deg); }
}
@keyframes hero-front-close {
  from { transform: translate(0, 0) rotate(7deg); }
  to { transform: translate(-12px, -10px) rotate(5.4deg); }
}
.frame-bar { height: 28px; display: flex; gap: 4px; align-items: center; padding-left: 12px; background: #f8fbf4; }
.frame-bar i { height: 4px; width: 4px; border-radius: 50%; background: #a9baa1; }
.abstract-scene { position: relative; overflow: hidden; height: 158px; background: #deebe2; }
.sun { position: absolute; top: 23px; right: 58px; border-radius: 50%; height: 57px; width: 57px; background: #d9e5b9; }
.hill { position: absolute; bottom: -45px; left: -12px; height: 135px; width: 220px; border-radius: 55% 55% 0 0; background: #b1c7aa; transform: rotate(-14deg); }
.hill-two { left: auto; right: -45px; bottom: -28px; width: 225px; height: 143px; background: #527665; transform: rotate(22deg); }
.frame-controls { display: flex; align-items: center; padding: 7px 13px; gap: 9px; font-size: 8px; color: #526950; }
.frame-controls i { display: block; height: 3px; background: linear-gradient(to right, #6b8e59 36%, #e5ebdf 36%); width: 100%; border-radius: 4px; }
.art-caption { order: 1; align-self: flex-end; width: fit-content; max-width: calc(100% - 20px); margin: 8px 10px 2px; padding: 14px 17px; border: 1px solid #a2b782; border-radius: 12px; background: var(--accent); color: #173b48; font-size: 13px; line-height: 1.5; text-wrap: pretty; transform: rotate(6deg); box-shadow: 0 8px 15px #081b2014; }
.art-caption strong { display: block; font-size: 16px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding: 40px 0 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.step-number { font-size: 12px; font-weight: 700; color: var(--subtle); letter-spacing: .08em; }
.steps h2 { font-size: 19px; margin-top: 14px; }
.steps p { font-size: 15px; line-height: 1.7; margin-top: 12px; max-width: 310px; }
.setup-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; padding: 80px 0; scroll-margin-top: 24px; }
.setup-section h2 { font-size: 34px; margin: 18px 0; letter-spacing: -.035em; line-height: 1.15; text-wrap: balance; }
.setup-section > div > p:not(.eyebrow) { font-size: 15px; line-height: 1.75; max-width: 390px; }
.setup-limit { margin-top: 18px; font-size: 13px !important; color: var(--subtle); }
.setup-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 28px; }
.setup-steps li { display: flex; gap: 16px; }
.setup-steps li > span { display: flex; align-items: center; justify-content: center; height: 30px; min-width: 30px; border-radius: 50%; background: var(--surface-soft); color: var(--ink); font-size: 13px; font-weight: 600; margin-top: 1px; }
.setup-steps li > div { min-width: 0; }
.setup-steps strong { font-size: 15px; font-weight: 600; }
.setup-steps p { font-size: 14px; line-height: 1.75; margin-top: 7px; }
.setup-steps .primary, .setup-steps .secondary { margin-top: 14px; font-size: 14px; padding: 12px 16px; }
.setup-steps .text-button { display: block; margin-top: 10px; }
.setup-steps .helper { font-size: 13px; line-height: 1.7; }
#return-to-invite { text-align: left; }
#store-extension { width: fit-content; }
.site-footer { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 24px 0 32px; gap: 20px; }
.site-footer .brand { font-size: 19px; gap: 8px; }
.site-footer .brand-mark { transform: scale(.7); transform-origin: left center; margin-right: -6px; }
.site-footer p, .site-footer > a:last-child { font-size: 13px; color: var(--subtle); }
.site-footer > a:last-child { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.invite-layout { display: grid; grid-template-columns: 1fr .9fr; align-items: start; gap: 72px; padding: 72px 0 64px; }
.invite-intro h1 { font-size: clamp(44px, 4.8vw, 58px); margin-top: 24px; }
.invite-intro .lead { font-size: 17px; max-width: 390px; overflow-wrap: anywhere; }
.invite-benefits { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.invite-benefits p { display: flex; gap: 14px; font-size: 14px; }
.invite-benefits span { font-size: 12px; font-weight: 700; color: var(--subtle); margin-top: 2px; font-variant-numeric: tabular-nums; }
.join-panel { background: var(--content-panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: none; min-width: 0; }
.row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.early-access { font-size: 11px; letter-spacing: .04em; padding: 4px 7px; background: var(--surface-soft); border-radius: 5px; font-weight: 700; color: var(--subtle); white-space: nowrap; }
.room-heading { font-size: 28px; margin-top: 26px; overflow-wrap: anywhere; }
.room-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.room-facts span { font-size: 12px; background: var(--accent-soft); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; color: var(--muted); }
.helper { font-size: 13px; line-height: 1.7; color: var(--subtle); }
.join-panel .helper { margin-top: 14px; overflow-wrap: anywhere; }
.extension-checking { font-size: 14px; color: var(--muted); margin-top: 26px; }
.join-panel form { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 24px; }
.join-panel label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 9px; }
.join-panel input { display: block; width: 100%; min-height: 50px; border: 1px solid var(--control-border); padding: 12px 14px; border-radius: 10px; color: var(--ink); background: var(--surface); font-size: 16px; }
.join-panel input::placeholder { color: var(--subtle); opacity: 1; }
.join-panel form .helper { margin-top: 8px; }
.join-panel .primary { width: 100%; margin-top: 22px; }
.consent-note { font-size: 13px; line-height: 1.7; color: var(--subtle); margin-top: 14px; }
.room-code-note { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 26px; font-size: 13px; color: var(--subtle); text-align: center; }
.room-code-note strong { font-family: ui-monospace, monospace; letter-spacing: .08em; color: var(--ink); white-space: nowrap; }
.notice { padding: 18px; border: 1px solid var(--warning-line); border-radius: 13px; background: var(--warning-bg); color: var(--warning-text); }
.notice.error { border-color: var(--error-line); background: var(--error-bg); color: var(--error-text); }
.notice h2 { font-size: 18px; }
.notice p { color: inherit; font-size: 14px; line-height: 1.75; margin-top: 10px; }
.join-panel .notice { margin-top: 24px; font-size: 14px; }
.notice .secondary { margin-top: 16px; font-size: 14px; background: var(--surface); color: var(--ink); border: 1px solid var(--control-border); padding: 10px 14px; min-height: 44px; }
.notice a { font-size: 14px; display: flex; align-items: center; width: fit-content; min-height: 44px; margin-top: 8px; }
.install-notice { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 24px; }
.install-notice > p { font-size: 14px; margin-top: 12px; line-height: 1.75; }
.text-button { background: none; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; font-size: 14px; line-height: 1.6; padding: 10px 0; min-height: 44px; text-align: left; }
.text-button:hover { text-decoration-thickness: 2px; }
.install-notice .text-button { margin-top: 12px; }
.install-notice .helper { font-size: 13px; }
.join-success { text-align: center; padding-top: 32px; }
.success-mark { display: flex; align-items: center; justify-content: center; height: 48px; width: 48px; background: var(--success-bg); color: var(--success-text); border-radius: 50%; font-size: 24px; margin: 0 auto 16px; }
.join-success h2 { font-size: 30px; }
.join-success p { font-size: 15px; line-height: 1.75; margin-top: 12px; }
.loading-state { min-height: 190px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px; font-size: 15px; }
.spinner { display: block; height: 26px; width: 26px; border: 3px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
.privacy-page { max-width: 720px; margin: 72px auto 88px; }
.privacy-page h1 { font-size: clamp(36px, 4.5vw, 52px); margin-top: 24px; }
.privacy-page .lead { font-size: 19px; max-width: none; }
.updated { font-size: 13px; margin-top: 24px; color: var(--subtle); }
.privacy-page section { margin-top: 34px; }
.privacy-page section h2 { font-size: 21px; }
.privacy-page section p { font-size: 16px; line-height: 1.85; margin-top: 12px; }
.privacy-page .notice p { font-size: 14px; }
.noscript { padding: 18px; border-top: 1px solid var(--warning-line); background: var(--warning-bg); color: var(--warning-text); font-size: 15px; text-align: center; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1000px) {
  .site-shell { padding: 0 32px; }
  .hero { gap: 24px; min-height: 560px; }
  .moment-art { height: 320px; }
  .frame { height: 200px; }
  .abstract-scene { height: 138px; }
  .art-caption { font-size: 12px; }
  .art-caption strong { font-size: 15px; }
  .invite-layout { gap: 32px; }
  .setup-section { gap: 48px; }
  .steps { gap: 28px; }
}
@media (max-width: 760px) {
  .site-shell { padding: 0 24px; }
  .site-header { min-height: 88px; gap: 12px; }
  .header-tools { width: 100%; justify-content: space-between; gap: 8px 16px; }
  .site-header .brand { font-size: 22px; }
  .site-header nav { gap: 14px; font-size: 13px; }
  .nav-button { padding: 10px 12px; }
  .nav-button span { margin-left: 10px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 48px 0 28px; }
  .hero h1 { font-size: clamp(44px, 8.4vw, 64px); }
  .hero .lead { font-size: 17px; margin-top: 22px; }
  .hero .primary { margin-top: 26px; }
  .moment-visual { width: 100%; max-width: 372px; margin: auto; }
  .moment-art { order: 1; height: 350px; }
  .art-caption { order: 2; margin: 0 8px; transform: none; }
  .frame { width: 78%; height: 188px; }
  .abstract-scene { height: 126px; }
  .back-frame { top: 28px; left: 8px; }
  .front-frame { bottom: 28px; right: 8px; }
  .steps { grid-template-columns: 1fr; padding: 32px 0 36px; gap: 28px; }
  .steps h2 { margin-top: 9px; }
  .steps p { margin-top: 8px; max-width: 100%; }
  .setup-section { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
  .setup-section h2 { font-size: 32px; margin: 16px 0; }
  .setup-section > div > p:not(.eyebrow) { max-width: none; }
  .site-footer { flex-wrap: wrap; padding: 20px 0 28px; gap: 8px 20px; }
  .site-footer p { order: 3; width: 100%; }
  .invite-layout { grid-template-columns: 1fr; gap: 30px; padding: 44px 0 32px; }
  .invite-intro h1 { font-size: clamp(42px, 7.5vw, 54px); margin-top: 20px; }
  .invite-intro .lead { font-size: 17px; margin-top: 22px; }
  .invite-benefits { display: none; }
  .join-panel { padding: 26px; }
  .privacy-page { margin: 44px auto 60px; }
  .privacy-page .lead { font-size: 18px; }
  .privacy-page section p { font-size: 16px; }
}
@media (max-width: 400px) {
  .site-shell { padding: 0 20px; }
  .site-header { min-height: 80px; }
  .site-header .brand { font-size: 18px; gap: 8px; }
  .site-header nav { gap: 8px; font-size: 12px; }
  .site-header .brand-mark { transform: scale(.85); transform-origin: left center; margin-right: -4px; }
  .nav-button { padding: 10px; white-space: nowrap; }
  .nav-button span { display: none; }
  .hero .eyebrow { font-size: 11px; letter-spacing: .07em; }
  .hero .lead { font-size: 16px; }
  .small-note { max-width: 240px; }
  .moment-art { height: 320px; }
  .art-caption { font-size: 11px; }
  .art-caption strong { font-size: 14px; }
  .join-panel { padding: 22px; border-radius: 20px; }
  .join-panel .row { align-items: flex-start; }
  .join-panel .eyebrow { font-size: 11px; }
  .early-access { font-size: 10px; }
  .primary, .secondary { gap: 16px; }
  .privacy-page h1 { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .brand-mark { --brand-ink: CanvasText;  }
  .primary, .secondary, .nav-button, .join-panel, .notice, .success-mark { border: 1px solid ButtonText; }
  .spinner { border-color: CanvasText; border-top-color: Highlight; }
}

:root[data-page="invite"] .invite-layout{display:block;max-width:520px;margin:0 auto;padding:40px 0 56px}
:root[data-page="invite"] .room-heading{margin-top:16px}
:root[data-page="invite"] .site-header nav{margin-left:auto}
/* A low-frequency preference lives in the header, outside the task layout. */
.appearance-menu{position:relative;flex-shrink:0}
.appearance-menu>summary{display:grid;place-items:center;width:36px;height:36px;cursor:pointer;list-style:none;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:var(--surface)}
.appearance-menu>summary::-webkit-details-marker{display:none}
.appearance-menu>summary:hover{background:var(--surface-soft);border-color:var(--control-border)}
.appearance-menu>summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.appearance-icon{display:block;width:18px;height:18px;flex-shrink:0}
.appearance-panel{position:absolute;top:calc(100% + 8px);right:0;z-index:30;width:224px;max-width:calc(100vw - 32px);max-height:calc(100vh - 96px);overflow-y:auto;overscroll-behavior:contain;padding:8px;border:1px solid var(--control-border);border-radius:12px;background:var(--surface);box-shadow:0 8px 24px #10252b1c}
.appearance-switch{min-width:0;margin:0;padding:0;border:0}
.appearance-switch legend{padding:5px 8px 8px;color:var(--muted);font-size:12px;font-weight:600}
.appearance-options{display:grid;gap:3px}
.appearance-options label{position:relative;display:block;cursor:pointer}
.appearance-options input{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.appearance-options label>span{display:flex;align-items:center;gap:10px;min-height:40px;padding:8px;border-radius:7px;font-size:13px;font-weight:400;color:var(--ink)}
.appearance-options input:checked+span{background:var(--surface-soft);font-weight:600}
.appearance-options label:hover>span{background:var(--secondary)}
.appearance-options input:focus-visible+span{outline:3px solid var(--focus);outline-offset:-2px}
.appearance-check{margin-left:auto;width:16px;height:16px;flex-shrink:0;opacity:0}
.appearance-options input:checked+span .appearance-check{opacity:1}
.appearance-help,.appearance-error{font-size:12px;line-height:1.5;padding:8px;margin:0;color:var(--muted);overflow-wrap:anywhere}
.appearance-error{color:var(--error-text)}
@media(forced-colors:active){.appearance-menu>summary,.appearance-panel{border-color:ButtonText}.appearance-options input:checked+span{outline:2px solid Highlight;outline-offset:-2px}.appearance-check{color:CanvasText}}
