* { box-sizing: border-box; }
:root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #202226; background: #f3f4f5; font-synthesis: none; letter-spacing: 0; }
body { margin: 0; padding: 36px; }
button, select, input { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, select { min-height: 48px; }
button { cursor: pointer; }
a { color: #285b98; text-underline-offset: 3px; }
svg { width: 20px; height: 20px; flex-shrink: 0; stroke-width: 1.7; }
.gallery-header { display: flex; justify-content: space-between; gap: 32px; align-items: end; max-width: 1680px; margin: 0 auto 28px; }
.eyebrow { font-size: 12px; font-weight: 600; margin: 0 0 8px; color: #626970; }
h1 { font-size: 30px; line-height: 1.2; font-weight: 600; margin: 0; }
.study-note { font-size: 14px; line-height: 1.55; max-width: 380px; color: #555d64; margin: 0; }
.comparison-controls { max-width: 1680px; margin: 0 auto 36px; padding: 22px 0; border-block: 1px solid #d4d8dc; display: flex; align-items: start; flex-wrap: wrap; gap: 18px 28px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend, .focus-field { font-size: 12px; font-weight: 600; color: #555d64; margin-bottom: 8px; }
.segments { display: flex; border: 1px solid #c4cbd2; border-radius: 6px; background: #fff; overflow: hidden; }
.segments label { position: relative; display: flex; }
.segments input, .theme-choice input { position: absolute; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.segments span { padding: 14px 13px; min-width: 44px; text-align: center; font-size: 13px; color: #333941; }
.segments input:checked + span { background: #242a30; color: #fff; }
.segments input:focus-visible + span, .theme-choice input:focus-visible + span { outline: 3px solid #446fbe; outline-offset: -3px; }
#themes { display: flex; gap: 4px; }
.theme-choice { position: relative; display: flex; flex-direction: column; align-items: center; font-size: 11px; color: #49535b; min-width: 48px; min-height: 48px; gap: 4px; }
.theme-choice span { width: 26px; height: 26px; border-radius: 50%; background: var(--swatch); border: 4px solid #f3f4f5; outline: 1px solid transparent; }
.theme-choice input:checked + span { outline: 2px solid #303941; }
.focus-field { display: flex; flex-direction: column; gap: 8px; margin: 0; }
select { background: #fff; color: #222; border: 1px solid #c4cbd2; border-radius: 6px; padding: 0 12px; max-width: 100%; font-size: 13px; }
.concept-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px 30px; max-width: 1260px; margin: auto; }
.concept { min-width: 0; }
.concept[hidden] { display: none; }
.concept-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.concept-number { font-size: 12px; font-weight: 700; color: #717b85; font-variant-numeric: tabular-nums; }
.concept h2 { font-size: 19px; font-weight: 600; margin: 0; flex: 1; }
.focus-button { padding: 0; width: 40px; min-height: 48px; display: grid; place-items: center; border: 0; background: transparent; color: #5c6872; }
.concept-description { font-size: 13px; line-height: 1.45; color: #58616a; min-height: 38px; margin: 0 0 16px; }
.concept-reference { font-size: 12px; color: #657078; line-height: 1.5; margin: 13px 0 0; }
.phone { --accent: #285b98; --on-accent: #fff; --tint: #e9eff7; --ink: #202731; --muted: #626c76; --base: #f6f7f9; --surface: #fff; --line: #dbe0e6; --inverse: #202731; --inverse-ink: #f6f7fa; --soft-shadow: 0 6px 20px #1524350c; color: var(--ink); background: var(--base); border: 1px solid var(--line); border-radius: 8px; height: 844px; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.phone[data-brightness="dark"] { --ink: #edf0f3; --muted: #a4aeb8; --base: #14171a; --surface: #1e2226; --line: #373e45; --inverse: #edf0f3; --inverse-ink: #171c22; --soft-shadow: 0 6px 20px #0003; }
.system-bar { height: 28px; min-height: 28px; padding: 9px 20px 0; display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; }
.system-bar .system-icons { display: flex; gap: 5px; }
.system-bar svg { width: 13px; height: 13px; }
.app-bar { min-height: 60px; padding: 8px 16px; display: flex; align-items: center; gap: 8px; }
.app-brand { font-size: 15px; line-height: 1.25; font-weight: 600; flex: 1; }
.brand-symbol { width: 22px; height: 22px; color: var(--accent); }
.app-actions { display: flex; align-items: center; gap: 13px; }
.app-actions svg { width: 19px; height: 19px; }
.screen { padding: 16px; display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.status { margin-bottom: 22px; flex-shrink: 0; }
.state-row { display: flex; gap: 15px; align-items: center; }
.state-copy { min-width: 0; flex: 1; }
.state-icon { display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.state-icon svg { width: 35px; height: 35px; }
.state-caption { margin: 0 0 4px; font-size: 12px; color: var(--muted); line-height: 1.4; }
.state-name { margin: 0; font-size: 31px; line-height: 1.15; font-weight: 600; overflow-wrap: anywhere; }
.state-support { margin: 8px 0 0; font-size: 12px; color: var(--muted); display: flex; align-items: center; flex-wrap: wrap; gap: 5px; line-height: 1.4; }
.state-support svg { width: 13px; height: 13px; }
.live-label { color: var(--muted); font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.live-label svg { width: 13px; height: 13px; }
.metadata { display: grid; grid-template-columns: 1.1fr 1fr; column-gap: 12px; margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line); }
.metadata div { min-width: 0; }
.metadata dt { font-size: 10px; color: var(--muted); margin-bottom: 5px; }
.metadata dd { font-size: 12px; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
.metadata small { font-size: 11px; color: var(--muted); }
.command-section { flex-shrink: 0; }
.section-label { display: flex; justify-content: space-between; align-items: center; margin: 0 0 10px; font-size: 12px; color: var(--muted); font-weight: 500; }
.section-label svg { width: 16px; height: 16px; }
.commands { display: flex; flex-direction: column; gap: 9px; }
.mode { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); min-height: 60px; padding: 12px 16px; display: flex; align-items: center; gap: 13px; cursor: default; text-align: left; flex-shrink: 0; }
.mode .mode-label { flex: 1; min-width: 0; font-size: 16px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.mode svg { color: var(--accent); width: 23px; height: 23px; }
.mode .arrow { width: 16px; height: 16px; color: var(--muted); }
.phone[data-modes="5"] .mode { min-height: 50px; padding-block: 10px; }
.phone[data-modes="5"] .commands { gap: 7px; }
.events { margin-top: 26px; flex-shrink: 0; }
.events-title { display: flex; align-items: center; justify-content: space-between; margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.events-title svg { width: 17px; height: 17px; color: var(--muted); }
.event { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.event:last-child { border: 0; }
.event > svg { width: 19px; height: 19px; color: var(--muted); }
.event-copy { min-width: 0; }
.event-copy strong { font-size: 12px; font-weight: 500; line-height: 1.45; display: block; }
.event-copy span { font-size: 11px; color: var(--muted); }
.event time { font-size: 11px; color: var(--muted); white-space: nowrap; }
.nav { margin-top: auto; flex-shrink: 0; min-height: 70px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); background: var(--surface); border-top: 1px solid var(--line); padding: 9px 6px 11px; gap: 2px; }
.nav-item { min-height: 48px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; font-size: 10px; color: var(--muted); }
.nav-item.current { color: var(--accent); font-weight: 600; }
.nav svg { width: 21px; height: 21px; }

/* 01: Familiar native list grouping, not individual tiles. */
.native { --base: #f1f2f4; }
.native[data-brightness="dark"] { --base: #101214; }
.native .status { padding: 8px 4px 0; }
.native .state-icon { order: 2; }
.native .state-name { font-size: 32px; }
.native .commands { gap: 0 !important; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.native .mode { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.native .mode:last-child { border-bottom: 0; }
.native .events { padding: 0 4px; }

/* 02: Native Material grouping and tonal controls. */
.material .status { background: var(--tint); border-radius: 8px; padding: 20px 18px; }
.material .state-row { flex-direction: row-reverse; }
.material .state-name { font-size: 29px; font-weight: 500; }
.material .metadata { border-color: color-mix(in srgb, var(--accent) 20%, transparent); }
.material .mode { background: var(--tint); border-color: transparent; }
.material .mode .arrow { display: none; }
.material .nav-item.current { background: var(--tint); border-radius: 8px; }

/* 03: High-contrast functional instrument; no decorative badges. */
.console .screen { padding: 0 16px 16px; }
.console .status { margin: 0 -16px 20px; padding: 22px 20px 18px; background: var(--inverse); color: var(--inverse-ink); }
.console .status .state-icon { color: inherit; }
.console .status .state-caption, .console .status .state-support, .console .status dt, .console .status small { color: inherit; opacity: .8; }
.console .metadata { border-color: currentColor; }
.console .metadata dd, .console .metadata dt, .console .section-label { font-family: ui-monospace, "Cascadia Mono", monospace; }
.console .state-name { font-size: 28px; }
.console .mode { border-radius: 0; border-color: var(--ink); border-left: 3px solid var(--accent); }
.console .mode .mode-label { font-size: 15px; font-weight: 600; }
.console .events { margin-top: 22px; }

/* 04: A circular state marker, never a progress or readiness score. */
.dial .status { text-align: center; margin-bottom: 16px; }
.dial .state-row { display: flex; flex-direction: column; gap: 8px; }
.dial .state-icon { width: 72px; height: 72px; border: 2px solid var(--accent); border-radius: 50%; outline: 6px solid var(--tint); margin: 6px 0; }
.dial .state-icon svg { width: 31px; height: 31px; }
.dial .state-caption { display: none; }
.dial .state-name { font-size: 28px; font-weight: 500; }
.dial .state-support { justify-content: center; }
.dial .metadata { text-align: left; margin-top: 16px; }
.dial .mode { justify-content: center; min-height: 52px; }
.dial .mode-label { flex: 0 1 auto; }
.dial .arrow { display: none; }
.dial .events { margin-top: 18px; }
.dial .event { padding-block: 11px; }

/* 05: Typography carries hierarchy; borders are used only as separators. */
.editorial { background: var(--surface); }
.editorial .status { padding-top: 2px; }
.editorial .state-icon { display: none; }
.editorial .state-caption { color: var(--accent); font-size: 13px; }
.editorial .state-name { font-size: 42px; font-weight: 400; }
.editorial .state-support { margin-top: 11px; }
.editorial .metadata { border-top: 2px solid var(--ink); margin-top: 20px; padding-top: 13px; }
.editorial .commands { gap: 0 !important; }
.editorial .mode { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); padding-inline: 0; }
.editorial .mode-label { font-size: 20px; font-weight: 400; }
.editorial .mode svg:first-child { display: none; }
.editorial .events { margin-top: 24px; }
.editorial .events-title { font-size: 18px; font-weight: 500; }
.editorial .event { grid-template-columns: minmax(0, 1fr) auto; }
.editorial .event > svg { display: none; }

/* 06: A continuous accent rail establishes alignment, not severity. */
.rail .status { border-left: 3px solid var(--accent); padding: 7px 0 6px 17px; }
.rail .state-icon { display: none; }
.rail .state-name { font-size: 30px; }
.rail .metadata { grid-template-columns: 1fr; gap: 9px; border: 0; margin-top: 15px; padding: 0; }
.rail .metadata div { display: flex; gap: 8px; align-items: baseline; }
.rail .metadata dt { min-width: 63px; margin: 0; }
.rail .metadata small { display: none; }
.rail .commands { padding-left: 20px; position: relative; }
.rail .commands::before { content: ""; position: absolute; left: 1px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.rail .mode { border: 0; background: var(--tint); border-radius: 4px; position: relative; }
.rail .mode::before { content: ""; position: absolute; left: -20px; width: 12px; height: 1px; background: var(--accent); }
.rail .mode .arrow { display: none; }
.rail .events { margin-left: 20px; }

/* 07: Commands sit low in the viewport, within a comfortable reach zone. */
.reach .screen { padding-bottom: 12px; }
.reach .status { margin-bottom: 0; padding: 7px 2px; }
.reach .state-icon { order: 2; }
.reach .command-section { order: 3; margin-top: auto; padding-top: 12px; }
.reach .events { order: 2; margin-top: 14px; margin-bottom: 0; flex: 1 1 auto; min-height: 70px; overflow: auto; }
.reach .event { padding-block: 10px; }
.reach .mode { justify-content: center; border-color: transparent; background: var(--tint); }
.reach .mode-label { flex: 0 1 auto; }
.reach .mode .arrow { display: none; }
.reach .commands { gap: 6px !important; }
.reach .section-label { text-align: center; display: block; }

/* 08: Chronology becomes the main secondary surface. */
.timeline .status { margin-bottom: 0; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.timeline .state-icon { width: 30px; }
.timeline .state-icon svg { width: 27px; height: 27px; }
.timeline .state-name { font-size: 25px; }
.timeline .state-caption { display: none; }
.timeline .metadata { display: none; }
.timeline .state-support { margin-top: 5px; }
.timeline .events { order: 2; margin: 20px 0 20px; }
.timeline .command-section { order: 3; }
.timeline .event { grid-template-columns: 22px minmax(0,1fr) auto; position: relative; border: 0; padding-block: 12px; }
.timeline .event::after { content: ""; position: absolute; top: 35px; bottom: -12px; left: 9px; border-left: 1px solid var(--line); }
.timeline .event:last-child::after { display: none; }
.timeline .event > svg { color: var(--accent); width: 18px; height: 18px; }
.timeline .mode { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); padding-inline: 0; }
.timeline .commands { gap: 0 !important; }
.timeline .mode-label { font-size: 15px; }

/* 09: Empty space and fine outlines replace all surface decoration. */
.outline { background: var(--surface); }
.outline .status { border: 1px solid var(--line); border-radius: 8px; padding: 19px 17px; }
.outline .state-row { gap: 12px; }
.outline .state-icon svg { width: 27px; height: 27px; stroke-width: 1.2; }
.outline .state-name { font-size: 29px; font-weight: 400; }
.outline .mode { background: transparent; border: 1px solid var(--accent); border-radius: 4px; }
.outline .mode .mode-label { font-weight: 400; }
.outline .mode svg { stroke-width: 1.3; }
.outline .mode .arrow { display: none; }
.outline .events-title { font-weight: 500; }

/* 10: A single colour band, with otherwise neutral controls. */
.band .screen { padding-top: 0; }
.band .status { margin: 0 -16px 23px; padding: 22px 21px; background: var(--accent); color: var(--on-accent); }
.band .state-row { flex-direction: row-reverse; }
.band .state-icon { color: inherit; }
.band .state-caption, .band .state-support, .band dt, .band small { color: inherit; }
.band .state-caption, .band dt, .band small { opacity: .85; }
.band .metadata { border-color: color-mix(in srgb, var(--on-accent) 25%, transparent); }
.band .mode { border: 0; border-radius: 4px; }
.band .mode .arrow { color: var(--accent); }
.band .events { margin-top: 23px; }

/* 11: Compact labelled facts and a restrained, tabular command list. */
.desk .status { display: grid; grid-template-columns: minmax(0,1fr) 118px; gap: 10px; border-block: 1px solid var(--line); padding-block: 16px; }
.desk .state-row { display: block; }
.desk .state-icon { display: none; }
.desk .state-name { font-size: 25px; }
.desk .state-support { font-size: 11px; }
.desk .metadata { display: block; border: 0; border-left: 1px solid var(--line); margin: 0; padding: 0 0 0 12px; }
.desk .metadata div:first-child { display: none; }
.desk .metadata dd { font-family: ui-monospace, "Cascadia Mono", monospace; font-size: 12px; }
.desk .metadata small { display: block; font-size: 10px; }
.desk .commands { gap: 0 !important; }
.desk .mode { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); padding-inline: 4px; min-height: 50px; background: transparent; }
.desk .mode .mode-label { font-size: 14px; }
.desk .mode svg { width: 19px; height: 19px; }
.desk .events { margin-top: 23px; }
.desk .event { padding-block: 11px; }
.desk .section-label { font-size: 11px; }

/* 12: Elevation separates neutral surfaces; colour is restricted to accents. */
.layered .status { background: var(--surface); border-radius: 8px; box-shadow: var(--soft-shadow); padding: 21px 19px 18px; }
.layered .state-row { flex-direction: row-reverse; }
.layered .state-name { font-size: 29px; }
.layered .state-icon { width: 46px; height: 46px; border-radius: 8px; background: var(--tint); }
.layered .state-icon svg { width: 26px; height: 26px; }
.layered .mode { border-color: transparent; box-shadow: 0 2px 6px #102b4610; justify-content: center; }
.layered .mode .mode-label { flex: 0 1 auto; }
.layered .mode .arrow { display: none; }
.layered .events { padding-inline: 3px; }

/* User preference overrides remain independent of the selected concept. */
.phone[data-finish="solid"] .mode { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.phone[data-finish="solid"] .mode svg { color: inherit; }
.phone[data-finish="neutral"] .mode { background: var(--surface); color: var(--ink); }
.phone[data-finish="neutral"] .mode svg { color: var(--muted); }
.phone[data-finish="neutral"] .mode { border-color: var(--line); }
.phone[data-finish="solid"] .commands { gap: 7px !important; background: transparent; border: 0; }
.phone[data-finish="solid"] .mode { border-radius: 6px; }
.research { max-width: 1260px; margin: 60px auto 0; padding-top: 28px; border-top: 1px solid #d4d8dc; }
.research h2 { font-size: 22px; font-weight: 600; }
.reference-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px; }
.reference h3 { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.reference p, .research-note { font-size: 13px; line-height: 1.6; color: #59636c; }
.research-note { margin-top: 30px; max-width: 950px; }
body.single .concept-grid { grid-template-columns: minmax(0,420px); justify-content: center; }
body.export { padding: 24px; background: #f4f5f6; }
body.export .gallery-header, body.export .comparison-controls, body.export .research, body.export .focus-button { display: none; }
body.export .concept-grid { max-width: none; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; }
body.export .concept-heading { min-height: 44px; }
body.export .concept-description { min-height: 40px; }
@media (min-width: 1680px) { body:not(.single):not(.export) .concept-grid { max-width: 1680px; grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width: 1050px) { body:not(.export):not(.single) .concept-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .gallery-header { align-items: start; flex-direction: column; gap: 16px; } }
@media (max-width: 700px) { body { padding: 20px 14px; } h1 { font-size: 26px; } body:not(.export) .concept-grid { grid-template-columns: minmax(0,1fr); max-width: 420px; } .reference-grid { grid-template-columns: 1fr; } .comparison-controls { gap: 16px; } .concept-description { min-height: 0; } .phone { height: 844px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
