/* Xcode × AI developer survey report
   Look: near-black stage with film grain, soft per-chapter glow, rounded shadcn-style surfaces,
   floating iOS-style frosted-glass sidebar, centered chapter headers, generous spacing.
   Sections: tokens · grain · sidebar · hero · chapter head · cards · controls · parts 1–5 · wall · responsive. */

/* Tokens (shadcn semantics, dark) */
:root {
  color-scheme: dark;
  --background: #0e0e10;
  --foreground: #f4f4f5;
  --card: #151518;
  --muted: rgb(255 255 255 / .07);
  --muted-foreground: #9b9ba5;
  --subtle: #b9b9c2;
  --border: rgb(255 255 255 / .09);
  --radius: 6px;
  --radius-sm: 4px;
  --radius-lg: 8px;
  --r-xs: 2px;
  --side-w: 240px;
  --gmin: 48px;
  --C: min(1264px, calc(100vw - var(--side-w) - 3 * var(--gmin)));
  --G: calc((100vw - var(--side-w) - var(--C)) / 3);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --on-accent: #0a0a0c;
  --accent: #60a5fa; --accent-mid: #bfdbfe; --accent-ink: #bfdbfe;
  --accent-soft: color-mix(in srgb, var(--accent) 11%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 30%, transparent);
}
.part-profile, [data-part="1"] { --accent: #60a5fa; --accent-mid: #bfdbfe; --accent-ink: #bfdbfe; }
.part-global, [data-part="2"] { --accent: #22d3ee; --accent-mid: #a5f3fc; --accent-ink: #a5f3fc; }
.part-china, [data-part="3"] { --accent: #34d399; --accent-mid: #a7f3d0; --accent-ink: #a7f3d0; }
.part-difference, [data-part="4"] { --accent: #a78bfa; --accent-mid: #ddd6fe; --accent-ink: #ddd6fe; }
.part-xcode, [data-part="5"] { --accent: #fb923c; --accent-mid: #fed7aa; --accent-ink: #fed7aa; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; background: var(--background); }
body { margin: 0; color: var(--foreground); background: var(--background); font-family: var(--font); font-size: 16px; font-weight: 400; line-height: 1.65; letter-spacing: 0; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, h5, p, ul, ol, dl { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
strong, b { font-weight: 600; }
mark { padding: 0; color: var(--foreground); background: none; font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* Film grain over everything (static SVG turbulence) */
body::after { position: fixed; z-index: 60; inset: 0; pointer-events: none; opacity: .36; mix-blend-mode: soft-light; content: ""; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.7' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 -.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* Floating frosted-glass sidebar (iOS 18 style) */
.sidebar { position: fixed; z-index: 40; top: 50%; left: var(--G); display: flex; flex-direction: column; gap: 18px; width: var(--side-w); max-height: calc(100vh - 40px); padding: 18px 14px 14px; transform: translate(-16px, -50%); opacity: 0; pointer-events: none; transition: opacity .4s ease, transform .4s ease;
  border: 1px solid rgb(255 255 255 / .13); border-radius: 12px;
  background: rgb(38 38 44 / .5);
  backdrop-filter: blur(30px) saturate(190%); -webkit-backdrop-filter: blur(30px) saturate(190%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .2), inset 0 -1px 0 rgb(255 255 255 / .04), 0 24px 60px rgb(0 0 0 / .45); }
.sidebar.is-visible { opacity: 1; pointer-events: auto; transform: translate(0, -50%); }
.brand { display: block; padding: 4px 8px 14px; border-bottom: 1px solid rgb(255 255 255 / .1); }
.brand img { display: block; width: 100%; max-width: 150px; height: auto; margin: 0 auto; }
.chapter-nav { display: grid; gap: 4px; }
.chapter-nav a { display: grid; grid-template-columns: 22px 1fr; gap: 6px; align-items: baseline; padding: 11px 10px; white-space: nowrap; border-radius: var(--radius); color: rgb(255 255 255 / .6); font-size: 13px; font-weight: 500; line-height: 1.4; text-decoration: none; transition: background .25s, color .25s; }
.chapter-nav a:hover { color: var(--foreground); background: rgb(255 255 255 / .08); }
.nav-number { font-size: 12px; font-variant-numeric: tabular-nums; opacity: .8; }
.chapter-nav a.is-active { color: var(--foreground); background: color-mix(in srgb, var(--accent) 26%, rgb(255 255 255 / .06)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .18); }
.chapter-nav a.is-active .nav-number { color: var(--accent-ink); opacity: 1; font-weight: 600; }
.sidebar-foot { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid rgb(255 255 255 / .1); }
.reading-progress { height: 4px; border-radius: var(--r-xs); background: rgb(255 255 255 / .12); overflow: hidden; }
.reading-progress i { display: block; width: calc(var(--reading-progress, 0) * 1%); height: 100%; border-radius: var(--r-xs); background: rgb(255 255 255 / .85); }
.lang-toggle { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: var(--radius-sm); background: rgb(0 0 0 / .28); }
.lang-toggle { flex: none; }
.lang-toggle button { height: 30px; padding: 0 12px; white-space: nowrap; border: 0; border-radius: var(--radius-sm); background: transparent; color: rgb(255 255 255 / .6); font-size: 12.5px; font-weight: 500; }
.lang-toggle button[aria-pressed="true"] { color: var(--on-accent); background: rgb(255 255 255 / .9); }
.content { overflow-x: clip; }


/* Hero — monochrome, textured, no sidebar */
.hero { position: relative; display: flex; flex-direction: column; height: 100vh; height: 100svh; min-height: 560px; border-bottom: 1px solid var(--border); overflow: hidden; }
.hero::before { position: absolute; inset: 0; content: ""; pointer-events: none; background-image: linear-gradient(rgb(255 255 255 / .045) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .045) 1px, transparent 1px); background-size: 72px 72px; background-position: calc(50% + 36px) 100%; -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 20%, transparent 78%); mask-image: radial-gradient(70% 70% at 50% 40%, #000 20%, transparent 78%); }
.hero::after { position: absolute; inset: -20% 10% auto; height: 70%; content: ""; pointer-events: none; background: radial-gradient(closest-side, rgb(255 255 255 / .075), transparent); }
.hero-bar { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 32px 48px; }
.hero-logo { display: block; width: auto; height: 28px; }
.hero-bar .lang-toggle { width: 160px; }
.hero-inner { position: relative; z-index: 1; display: flex; flex: 1; flex-direction: column; justify-content: center; width: 100%; margin: 0 auto; padding: 8px 24px 72px; text-align: center; }
.hero-eyebrow { display: block; margin-bottom: clamp(20px, 4vh, 32px); color: var(--muted-foreground); font-size: 12px; font-weight: 500; letter-spacing: .28em; }
.hero h1 { font-size: clamp(34px, min(5.2vw, 8.6vh), 88px); text-wrap: balance; font-weight: 600; letter-spacing: 0; line-height: 1.12; }
.title-line { display: block; }
.latin-word { color: inherit; }
.hero-intro { max-width: 38em; margin: clamp(20px, 4vh, 40px) auto 0; color: var(--muted-foreground); font-size: 19px; line-height: 1.8; }
.metric-row { display: grid; grid-template-columns: repeat(4, 1fr); width: 1152px; max-width: 100%; height: 144px; margin: clamp(24px, 6vh, 72px) auto 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--background); }
.metric { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 12px; text-align: center; }
.metric + .metric { border-left: 1px solid var(--border); }
.metric b { display: block; color: var(--foreground); font-size: clamp(34px, 3.6vw, 52px); font-weight: 500; letter-spacing: 0; line-height: 1; font-variant-numeric: tabular-nums; }
.metric span { display: block; margin-top: 10px; color: var(--muted-foreground); font-size: 13.5px; }

/* Chapter head — centered, soft per-chapter glow */
.section { position: relative; border-bottom: 1px solid var(--border); overflow: hidden; }
.section::before { position: absolute; inset: 0 0 auto; height: min(1100px, 90vh); content: ""; pointer-events: none; background: radial-gradient(85% 100% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 75%); }
.section-inner { position: relative; margin: 0 var(--G) 0 calc(var(--G) * 2 + var(--side-w)); padding: 128px 0 136px; }
.part-head { display: grid; justify-items: center; gap: 28px; margin-bottom: 72px; text-align: center; }
.part-meta { display: inline-flex; align-items: center; gap: 12px; }
.part-no { padding-right: 12px; border-right: 1px solid var(--accent-line); color: var(--accent); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.part-label { color: var(--accent-ink); font-size: 13px; letter-spacing: .02em; }
.part-title h2 { max-width: 22em; margin: 0 auto; font-size: clamp(32px, 4.2vw, 54px); font-weight: 600; letter-spacing: 0; line-height: 1.2; text-wrap: balance; }
.part-ledes { display: grid; gap: 18px; max-width: 44em; margin: 28px auto 0; color: var(--muted-foreground); font-size: 17px; line-height: 1.85; text-wrap: pretty; }
.part-ledes p:first-child { color: var(--foreground); font-size: 18px; }

/* Cards: header / insight / tools / body / footer regions */
.section-inner > .card, .section-inner > .grid-2, .section-inner > .grid-5-7, .section-inner > .grid-4-8, .section-inner > .q-stack { margin-top: 32px; }
.part-head + .card, .part-head + .grid-2 { margin-top: 0; }
.q-stack { display: grid; gap: 32px; }
.card { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); box-shadow: 0 1px 0 rgb(255 255 255 / .04) inset, 0 20px 50px rgb(0 0 0 / .28); overflow: hidden; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 26px 36px; border-bottom: 1px solid var(--border); }
.card-titles { display: grid; gap: 6px; min-width: 0; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .14em; }
.card h3 { font-size: 19px; font-weight: 600; letter-spacing: 0; line-height: 1.5; }
.badge { flex: none; padding: 3px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--muted-foreground); font-size: 12px; font-weight: 500; white-space: nowrap; }
.card-insight { padding: 28px 36px 0; }
.card-tools { padding: 28px 36px 0; }
.card-body { padding: 36px; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 18px 36px; border-top: 1px solid var(--border); background: rgb(255 255 255 / .025); color: var(--muted-foreground); font-size: 13px; }
.card-foot .note { margin: 0; }
.insight { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; padding: 22px 26px; border: 1px solid var(--accent-line); border-radius: var(--radius); background: var(--accent-soft); }
.insight-label { padding: 3px 12px; border-radius: var(--radius-sm); color: var(--on-accent); background: var(--accent); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.insight p { color: #e4e4e7; font-size: 16px; line-height: 1.85; }
.insight strong, .insight b { color: var(--accent-ink); }
.insight .ev { white-space: nowrap; }
.note { color: var(--muted-foreground); font-size: 13px; line-height: 1.7; }
.note strong { color: var(--subtle); font-weight: 500; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-5-7 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; }
.grid-4-8 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; }
.grid-5-7 > .card, .grid-4-8 > .card, .grid-2 > .card { display: flex; flex-direction: column; }
.grid-5-7 > .card .card-body, .grid-4-8 > .card .card-body, .grid-2 > .card .card-body { flex: 1; }

/* Controls: segmented, toggles, tracks */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgb(255 255 255 / .04); }
.seg button { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 18px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--muted-foreground); font-size: 13.5px; font-weight: 500; transition: background .2s, color .2s; }
.seg-short { display: none; }
.seg button small { padding: 1px 8px; border-radius: var(--radius-sm); background: rgb(255 255 255 / .08); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.seg button:hover { color: var(--foreground); background: rgb(255 255 255 / .06); }
.seg button.is-active { color: var(--on-accent); background: var(--accent); }
.seg button.is-active small { background: rgb(0 0 0 / .16); }
.dot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: var(--r-xs); background: var(--accent); }
.dot.is-overseas { background: var(--accent-mid); }
.seg .is-active .dot { box-shadow: 0 0 0 2px rgb(0 0 0 / .25); background: var(--on-accent); }
.bar { display: block; height: 8px; border-radius: var(--r-xs); background: var(--muted); overflow: hidden; }
.bar em { display: block; width: var(--fill); height: 100%; border-radius: var(--r-xs); background: var(--accent); }
.more-toggle { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin-top: 20px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: transparent; color: var(--subtle); font-size: 13.5px; font-weight: 500; transition: background .2s; }
.more-toggle:hover { background: rgb(255 255 255 / .05); color: var(--foreground); }
.more-toggle .show-less, .is-expanded > .more-toggle .show-more { display: none; }
.is-expanded > .more-toggle .show-less { display: inline; }

/* Part 1 · blue */
.profile-region { border: 0; background: none; padding: 0; box-shadow: none; }
.region-stack { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; align-items: start; }
#profile-map .svgMap-map-wrapper { height: auto; aspect-ratio: 2 / 1; padding-top: 0; background: transparent; }
#profile-map .svgMap-map-wrapper, #profile-map .svgMap-map-wrapper * { pointer-events: none !important; }
.svgMap-tooltip { display: none !important; }
#profile-map .svgMap-country { fill: rgb(255 255 255 / .13) !important; stroke: #151518; stroke-width: 1; transition: fill .2s; }
#profile-map .svgMap-country.region-highlight { fill: #60a5fa !important; }
.region-list-wrap { position: relative; }
.region-list { display: grid; align-content: start; gap: 4px; max-height: var(--profile-map-height, 400px); padding-right: 8px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / .2) transparent; }
.region-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14.5px; transition: background .2s; }
.region-row:hover { background: var(--accent-soft); }
.region-row strong { font-variant-numeric: tabular-nums; }
.region-row i { grid-column: 1 / -1; height: 5px; border-radius: var(--r-xs); background: var(--muted); }
.region-row em { display: block; width: var(--fill); height: 100%; border-radius: var(--r-xs); background: var(--accent); }
.region-scroll-hint { display: none; margin-top: 10px; color: var(--muted-foreground); font-size: 12px; }
.region-list-wrap.is-scrollable:not(.is-at-end) .region-scroll-hint { display: flex; justify-content: space-between; }
.pie-wrap { display: grid; grid-template-columns: minmax(150px, 190px) minmax(0, 1fr); gap: 32px; align-items: center; }
.pie { width: 100%; height: auto; overflow: visible; }
.pie g { transition: opacity .2s; }
.pie path { stroke: var(--card); stroke-width: 3; stroke-linejoin: round; }
.pie text { font-size: 11px; font-weight: 600; text-anchor: middle; dominant-baseline: middle; pointer-events: none; font-variant-numeric: tabular-nums; }
.pie-legend { display: grid; gap: 4px; }
.pie-legend li { display: grid; grid-template-columns: 12px 1fr auto; gap: 14px; align-items: center; padding: 9px 12px; border-radius: var(--radius-sm); font-size: 14.5px; line-height: 1.45; transition: opacity .2s, background .2s; }
.pie-legend li:hover { background: rgb(255 255 255 / .05); }
.pie-legend i { width: 12px; height: 12px; border-radius: var(--r-xs); }
.pie-legend strong { font-variant-numeric: tabular-nums; }
.pie-wrap.is-rich { grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); max-width: 1000px; margin: 0 auto; gap: 72px; }
.pie-wrap.is-rich .pie-legend { gap: 8px; }
.pie-wrap.is-rich li { grid-template-columns: 12px 1fr auto; row-gap: 10px; padding: 14px 16px; font-size: 16px; }
.pie-wrap.is-rich li strong { font-size: 22px; }
.pie-bar { grid-column: 1 / -1; display: block; height: 6px; border-radius: var(--r-xs); background: var(--muted); overflow: hidden; }
.pie-bar u { display: block; height: 100%; }
.is-dim { opacity: .25; }
.identity-card { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; border: 0; padding: 0; background: none; box-shadow: none; }
.identity-word-cloud { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.identity-word { padding: 6px 16px; border-radius: var(--radius-sm); color: var(--accent-ink); background: color-mix(in srgb, var(--accent) calc(8% + var(--weight) * .4%), transparent); border: 1px solid var(--accent-line); font-size: calc(13px + var(--weight) * .3px); font-weight: 500; line-height: 1.35; }
.identity-note { margin-top: 28px; }
.identity-data { display: grid; align-content: start; }
.identity-data > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.identity-data p { color: var(--subtle); }
.identity-data b { font-variant-numeric: tabular-nums; }

/* Part 2 · cyan */
.lc-list { display: grid; gap: 6px; }
.lc-item { border-radius: var(--radius); transition: background .2s; }
.lc-item.is-open { background: var(--accent-soft); }
.lc-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) 56px 28px; gap: 20px; align-items: center; width: 100%; min-height: 60px; padding: 10px 18px; border: 0; border-radius: var(--radius); background: transparent; text-align: left; }
button.lc-row { border: 1px solid transparent; }
button.lc-row:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.lc-name { font-size: 15px; font-weight: 500; }
.lc-track { display: block; height: 12px; border-radius: var(--r-xs); background: var(--muted); overflow: hidden; }
.lc-track i { display: block; width: var(--fill); height: 100%; border-radius: var(--r-xs); background: var(--accent); }
.lc-item.is-static .lc-track i { background: #71717a; }
.lc-val { text-align: right; font-variant-numeric: tabular-nums; }
.lc-chev { display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-sm); color: var(--accent); }
button.lc-row .lc-chev { background: var(--accent-soft); border: 1px solid var(--accent-line); }
.lc-item.is-open .lc-chev { background: var(--accent); color: var(--on-accent); }
.lc-chev svg { width: 14px; height: 14px; transition: transform .25s; }
.lc-item.is-open .lc-chev svg { transform: rotate(180deg); }
.lc-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.lc-item.is-open .lc-detail { grid-template-rows: 1fr; }
.lc-detail-inner { min-height: 0; padding: 0 18px 0 198px; overflow: hidden; }
.lc-item.is-open .lc-detail-inner { padding-bottom: 22px; }
.lc-sub-title { margin-bottom: 10px; color: var(--accent-ink); font-size: 12.5px; font-weight: 500; letter-spacing: .06em; }
.lc-sub { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr) 52px; gap: 20px; align-items: center; padding: 6px 0; font-size: 14px; }
.lc-sub .lc-track { height: 7px; background: rgb(255 255 255 / .08); }
.lc-sub .lc-track i { background: var(--accent-mid); }
.lc-sub strong { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.lc-hint { display: none; }
.hint-chip { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--accent-line); border-radius: var(--radius-sm); color: var(--accent); background: var(--accent-soft); }
.hint-chip svg { width: 12px; height: 12px; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.pod-stage { display: flex; align-items: flex-end; height: 220px; }
.pod-bar { display: flex; flex-direction: column; justify-content: space-between; width: 100%; height: var(--h); min-height: 64px; padding: 14px 16px; border-radius: var(--radius); color: var(--on-accent); background: var(--accent); }
.pod-bar b { font-size: 28px; font-weight: 600; letter-spacing: 0; line-height: 1; }
.pod-bar span { font-size: 12.5px; opacity: .7; font-weight: 600; }
.place-2 .pod-bar { background: color-mix(in srgb, var(--accent) 62%, #0e0e10); }
.place-3 .pod-bar { background: color-mix(in srgb, var(--accent) 38%, #0e0e10); color: var(--accent-ink); }
.pod p { margin-top: 12px; font-size: 13.5px; line-height: 1.55; color: var(--subtle); }
.f-layout { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.f-controls { display: grid; gap: 8px; }
.f-control { display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: transparent; text-align: left; font-size: 14.5px; transition: border-color .2s, background .2s; }
.f-control i { width: 14px; height: 14px; border-radius: var(--r-xs); }
.f-control strong { font-variant-numeric: tabular-nums; }
.f-control:hover { background: rgb(255 255 255 / .05); }
.f-control.is-active { border-color: var(--accent); background: var(--accent-soft); }
.f-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; max-width: 380px; }
.f-cell { aspect-ratio: 1; border-radius: var(--r-xs); background: var(--c); transition: opacity .25s, transform .25s; }
.frequency.has-active .f-cell:not(.is-active) { opacity: .15; }
.f-cell.is-active { transform: scale(1.12); }
.sel-head { display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); margin-bottom: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--border); color: var(--muted-foreground); font-size: 13px; font-weight: 500; letter-spacing: .06em; }
.sel-head span:first-child { text-align: right; }
.sel-table { display: grid; }
.sel-row { display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); align-items: center; padding: 18px 0; border-bottom: 1px solid var(--border); }
.sel-row:last-child { border-bottom: 0; }
.sel-rank { display: grid; place-items: center; color: var(--accent); font-size: 36px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.sel-cell { display: grid; gap: 10px; }
.sel-row .sel-cell:first-child .sel-label { flex-direction: row-reverse; text-align: right; }
.sel-row .sel-cell:first-child .bar em { margin-left: auto; }
.sel-label { display: flex; justify-content: space-between; gap: 16px; font-size: 17px; line-height: 1.45; }
.sel-label strong { font-size: 19px; font-variant-numeric: tabular-nums; }
.sel-row .bar { height: 12px; }
.selection { --least: #fda4af; }
.sel-head span:last-child { color: var(--least); }
.sel-cell.is-muted .bar em { background: var(--least); }
.sel-cell.is-muted .sel-label strong { color: var(--least); }
.sel-compact { display: none; }
.role-row .sel-label { margin-bottom: 8px; font-size: 15px; }
.role-row .sel-label strong { font-size: 15px; }
.code-location .card-body { display: flex; flex-direction: column; gap: 14px; }
.loc-hero { display: grid; flex: 1; place-items: center; min-height: 200px; border-radius: var(--radius); background: radial-gradient(60% 80% at 30% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), rgb(255 255 255 / .03); border: 1px solid var(--border); }
.loc-hero img { width: clamp(96px, 9vw, 136px); height: auto; filter: drop-shadow(0 18px 30px rgb(0 0 0 / .45)); }
.loc-stack { display: grid; gap: 14px; }
.code-location .insight { margin-top: 4px; }
.loc-tile { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 18px 24px; border: 1px solid var(--border); border-radius: var(--radius); }
.loc-tile.is-primary { border-color: var(--accent-line); background: var(--accent-soft); }
.loc-share { display: block; font-size: 38px; font-weight: 600; letter-spacing: 0; line-height: 1.15; }
.loc-tile.is-primary .loc-share { color: var(--accent-ink); }
.loc-tile p { display: grid; justify-items: end; gap: 2px; padding-left: 20px; border-left: 1px solid var(--border); color: var(--muted-foreground); font-size: 12.5px; text-align: right; }
.loc-tile p b { color: var(--foreground); font-size: 26px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.role-list { display: grid; gap: 16px; }
.role-extra { display: none; }
.is-expanded .role-extra { display: block; }
.role-list .more-toggle { margin-top: 0; }
.role-more { display: flex; }
.is-expanded .role-more { display: none; }
.role-collapse { display: none; }
.is-expanded .role-collapse { display: flex; }

/* Part 3 · green */
.u-list { display: grid; }
.u-row { display: grid; gap: 8px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.u-row:first-child { padding-top: 4px; }
.u-row:last-child { border-bottom: 0; }
.u-row.is-extra { display: none; }
.is-expanded .u-row.is-extra { display: grid; }
.u-row h4 { margin-bottom: 4px; font-size: 15px; font-weight: 500; line-height: 1.5; }
.u-bar { display: grid; grid-template-columns: minmax(0, 1fr) 60px; gap: 16px; align-items: center; transition: opacity .25s; }
.u-bar i { position: relative; display: block; height: 10px; border-radius: var(--r-xs); background: var(--muted); }
.u-bar i::before { position: absolute; inset: 0 auto 0 0; width: var(--rate); border-radius: var(--r-xs); background: var(--accent); content: ""; }
.u-bar.is-overseas i::before { background: var(--accent-mid); }
.u-bar b { text-align: right; font-size: 13.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.usage-card[data-group="china"] .is-overseas, .usage-card[data-group="overseas"] .is-china { opacity: .14; }
.usage-card .card-tools { padding-bottom: 0; }
.usage-card .more-toggle { margin-top: 16px; }
.q15-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 28px; }
.q15-tabs button { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: transparent; text-align: left; transition: border-color .2s, background .2s; }
.q15-tabs button:hover { background: rgb(255 255 255 / .04); }
.q15-tabs button.is-active { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.tab-icon { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: var(--radius-sm); color: var(--subtle); background: var(--muted); }
.is-active > .tab-icon { color: var(--on-accent); background: var(--accent); }
.tab-icon svg { width: 20px; height: 20px; }
.tab-copy { display: grid; gap: 3px; }
.tab-copy b { font-size: 15px; font-weight: 600; }
.tab-copy small { color: var(--muted-foreground); font-size: 12.5px; line-height: 1.5; }
.q15-choice { margin: 0 .15em; padding: 0 .25em; border-bottom: 2px solid var(--accent); color: var(--accent-ink); }
.q15-choice:empty { display: none; }
.q15-panel .insight { margin-bottom: 20px; }
.q15-pager, .deck-pager { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.q15-pager button, .deck-pager button { min-height: 38px; padding: 0 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: transparent; font-size: 13.5px; font-weight: 500; }
.q15-pager button:hover:not(:disabled), .deck-pager button:hover:not(:disabled) { background: rgb(255 255 255 / .06); }
.q15-pager button:disabled { opacity: .35; cursor: not-allowed; }
.q15-count, .deck-count { color: var(--muted-foreground); font-size: 13px; font-variant-numeric: tabular-nums; }
.q15-card .card-body { padding-top: 28px; }

/* Part 4 · violet */
.waffle-scroller { position: relative; }
.waffle-row { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.waffle-row::-webkit-scrollbar { display: none; }
.waffle-item { flex: 0 0 calc((100% - 4 * 32px) / 4.5); display: grid; gap: 16px; align-content: start; margin-right: 32px; scroll-snap-align: start; }
.waffle { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.w-cell { aspect-ratio: 1; border-radius: var(--r-xs); background: var(--muted); }
.w-cell.is-filled { background: var(--accent); }
.waffle-copy strong { display: block; color: var(--accent-ink); font-size: 30px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.waffle-copy p { margin-top: 6px; color: var(--subtle); font-size: 14px; line-height: 1.55; }
/* Apple.com-style paddles */
.paddles { display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px; }
.paddle { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / .1); color: var(--foreground); transition: background .2s, opacity .2s; }
.paddle:hover:not(:disabled) { background: rgb(255 255 255 / .18); }
.paddle:disabled { opacity: .3; cursor: default; }
.paddle svg { width: 16px; height: 16px; transform: rotate(90deg); }
.paddle[data-paddle="1"] svg { transform: rotate(-90deg); }
.q-card .rank-list { display: none; }
.rank-list { display: grid; grid-auto-flow: column; grid-template-rows: repeat(5, auto); grid-template-columns: 1fr 1fr; gap: 0 56px; }
.rank-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--border); }
.rank-row:nth-child(5n) { border-bottom: 0; }
.rank-no { color: var(--muted-foreground); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rank-label { font-size: 15px; line-height: 1.5; }
.rank-row strong { color: var(--accent-ink); font-size: 20px; font-variant-numeric: tabular-nums; }
.rank-row .bar { grid-column: 2 / -1; height: 8px; }
.treemap { position: relative; aspect-ratio: 100 / 56; min-height: 460px; border-radius: var(--radius); overflow: hidden; }
.tile { position: absolute; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 3px solid var(--card); border-radius: var(--radius); color: var(--fg); background: var(--bg); overflow: hidden; transition: filter .2s; }
.tile:hover { filter: brightness(1.08); }
.tile strong { font-size: 24px; font-weight: 600; letter-spacing: 0; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile p { font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
.tile.is-l strong { font-size: 52px; }
.tile.is-l p { font-size: 16px; }
.tile.is-s { padding: 10px 12px; }
.tile.is-s strong { font-size: 17px; }
.tile.is-s p { font-size: 11.5px; line-height: 1.35; -webkit-line-clamp: 6; }
.tile.is-xs { padding: 6px 10px; }
.tile.is-xs strong { font-size: 13px; }
/* Wide, short tiles: number beside the label so the label still fits */
.tile.is-row { flex-direction: row; align-items: center; gap: 10px; }
.tile.is-row strong { flex: none; }
.tile.is-row p { font-size: 11.5px; line-height: 1.3; -webkit-line-clamp: 2; }
.q-card.is-treemap .card-tools { display: none; }
.priority-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.priority-leaders, .priority-more { display: grid; align-content: start; gap: 16px; padding: 36px; }
.priority-more { border-left: 1px solid var(--border); background: rgb(255 255 255 / .025); }
.chip { justify-self: start; padding: 4px 14px; border-radius: var(--radius-sm); color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--accent-line); font-size: 13px; font-weight: 500; }
.chip.is-muted { color: var(--subtle); background: transparent; border-color: var(--border); }
.leader { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--border); }
.leader:last-child { border-bottom: 0; }
.leader-rank { color: var(--accent); font-size: 26px; font-weight: 600; letter-spacing: 0; }
.leader strong { font-size: 16px; font-weight: 500; line-height: 1.5; }
.leader b { color: var(--accent-ink); font-size: 32px; font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.deck { position: relative; height: 220px; margin-right: 20px; margin-bottom: 20px; }
.deck-card { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 22px 24px; border: 1px solid var(--accent-line); border-radius: var(--radius); color: var(--accent-ink); background: var(--card); transform: translate(calc(var(--pos) * 10px), calc(var(--pos) * 10px)); z-index: calc(20 - var(--pos)); transition: transform .35s ease, opacity .35s ease; cursor: default; }
.deck-card.is-top { cursor: pointer; background: color-mix(in srgb, var(--accent) 14%, var(--card)); border-color: var(--accent); }
.deck-card[data-pos="1"] { opacity: .75; }
.deck-card[data-pos="2"] { opacity: .45; }
.deck-card[data-pos="3"] { opacity: 0; pointer-events: none; }
.deck-rate { font-size: 60px; font-weight: 600; letter-spacing: 0; line-height: 1; }
.deck-title { color: var(--foreground); font-size: 22px; font-weight: 500; line-height: 1.4; }
.deck-pager { margin-top: 28px; }

/* Part 5 · orange — voices */
.voice-editorial-heading h3 { margin-bottom: 28px; font-size: 24px; font-weight: 600; letter-spacing: 0; }
.voice-editorial-body { display: grid; grid-template-columns: 340px minmax(0, 1fr); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); overflow: hidden; }
.voice-topic-list { display: grid; align-content: start; border-right: 1px solid var(--border); }
.voice-topic { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 22px 24px; border: 0; border-bottom: 1px solid var(--border); background: transparent; text-align: left; transition: background .2s; }
.voice-topic:last-child { border-bottom: 0; }
.voice-topic span { color: var(--muted-foreground); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1.8; }
.voice-topic strong { font-size: 15px; font-weight: 500; line-height: 1.55; color: var(--subtle); }
.voice-topic:hover { background: rgb(255 255 255 / .04); }
.voice-topic.is-active { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.voice-topic.is-active span { color: var(--accent); font-weight: 600; }
.voice-topic.is-active strong { color: var(--foreground); }
.voice-transcript { display: flex; flex-direction: column; min-width: 0; padding: 44px 48px; }
.voice-stack { display: grid; flex: 1; }
.voice-slide { grid-area: 1 / 1; visibility: hidden; }
.voice-slide.is-active { visibility: visible; }
.voice-transcript blockquote { margin: 0; }
.voice-transcript blockquote p { font-size: 18px; line-height: 1.95; color: #e4e4e7; }
.voice-transcript-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.voice-transcript-tags-label { color: var(--muted-foreground); font-size: 12.5px; }
.voice-transcript-tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.voice-transcript-tag-list span { padding: 3px 12px; border: 1px solid var(--accent-line); border-radius: var(--radius-sm); color: var(--accent-ink); background: var(--accent-soft); font-size: 12.5px; font-weight: 500; }
.voice-transcript-footer { margin-top: 24px; }
.voice-transcript-attribution { color: var(--muted-foreground); font-size: 13.5px; }
.voice-transcript-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.voice-transcript-controls button { min-height: 38px; padding: 0 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: transparent; font-size: 13.5px; font-weight: 500; }
.voice-transcript-controls button:hover:not(:disabled) { background: rgb(255 255 255 / .06); }
.voice-transcript-controls button:disabled { opacity: .35; cursor: not-allowed; }
.voice-transcript-progress { color: var(--muted-foreground); font-size: 13px; font-variant-numeric: tabular-nums; }

/* Respondent wall: drifting rows of the sample's regions, roles and experience */
.respondent-wall-closing { --accent: #fb923c; padding: 112px var(--G) 128px calc(var(--G) * 2 + var(--side-w)); }
.respondent-wall { position: relative; isolation: isolate; min-height: 440px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); overflow: hidden; }
.respondent-wall-tracks { position: absolute; inset: -20px -10%; display: grid; align-content: center; gap: 14px; }
.respondent-wall-track { overflow: hidden; }
.respondent-wall-strip { display: flex; width: max-content; animation: respondent-wall-drift 92s linear infinite; animation-play-state: paused; }
.respondent-wall.is-visible .respondent-wall-strip { animation-play-state: running; }
.respondent-wall-track:nth-child(2) .respondent-wall-strip { animation-duration: 116s; animation-direction: reverse; }
.respondent-wall-track:nth-child(3) .respondent-wall-strip { animation-duration: 104s; }
.wall-chip { display: inline-flex; flex: none; align-items: center; gap: 10px; margin-right: 14px; padding: 16px 26px; border: 1px solid var(--border); border-radius: var(--radius); background: rgb(255 255 255 / .035); color: var(--subtle); font-size: clamp(15px, 1.3vw, 19px); font-weight: 500; white-space: nowrap; }
.wall-chip i { width: 8px; height: 8px; border-radius: var(--r-xs); background: var(--accent); opacity: .8; }
.respondent-wall-track:nth-child(2) .wall-chip i { background: var(--accent-mid); }
.respondent-wall-track:nth-child(3n) .wall-chip i { background: rgb(255 255 255 / .5); }
.respondent-wall-track:nth-child(4) .wall-chip i { background: var(--accent-mid); }
.respondent-wall-track:nth-child(5) .wall-chip i { background: var(--accent); }
.respondent-wall-scrim { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; padding: 24px; background: radial-gradient(closest-side, rgb(14 14 16 / .7), rgb(14 14 16 / .35)); pointer-events: none; }
.respondent-wall-copy { width: min(600px, 92%); padding: 40px 44px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: rgb(21 21 24 / .94); box-shadow: 0 24px 60px rgb(0 0 0 / .5); text-align: center; }
.respondent-wall-kicker { margin-bottom: 14px; color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .18em; }
.respondent-wall-copy h4 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.respondent-wall-copy p:last-child { text-wrap: balance; margin-top: 14px; color: var(--muted-foreground); font-size: 15px; line-height: 1.75; }
html[lang="en"] .respondent-wall-copy { width: min(760px, 94%); }
@keyframes respondent-wall-drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .respondent-wall-strip { animation: none; } html { scroll-behavior: auto; } * { transition: none !important; } }

/* Footer: credits + socials, then privacy */
.site-footer { border-top: 1px solid var(--border); }
.site-footer-inner { display: grid; gap: 36px; margin: 0 var(--G) 0 calc(var(--G) * 2 + var(--side-w)); padding: 48px 0 56px; color: var(--muted-foreground); font-size: 13px; line-height: 1.8; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.footer-credits { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.footer-credits li { display: flex; align-items: baseline; gap: 10px; }
.footer-credits b, .footer-credits a { color: var(--foreground); font-size: 14px; font-weight: 500; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.social { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); background: rgb(255 255 255 / .03); color: var(--subtle); transition: color .2s, background .2s, border-color .2s; }
.social:hover, .social-qr.is-open .social { color: var(--foreground); background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .18); }
.social svg { width: 16px; height: 16px; }
.social-text { font-size: 10.5px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.social-qr { position: relative; display: inline-flex; }
.qr-pop { position: absolute; z-index: 5; bottom: calc(100% + 12px); left: 0; display: grid; justify-items: center; gap: 10px; width: max-content; padding: 12px 12px 10px; border: 1px solid rgb(255 255 255 / .13); border-radius: var(--radius-lg); background: var(--card); box-shadow: 0 24px 60px rgb(0 0 0 / .5); transform: translateY(6px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
.qr-pop img { display: block; width: 136px; height: 136px; padding: 8px; border-radius: var(--radius); background: #fff; }
.qr-pop small { color: var(--muted-foreground); font-size: 12px; white-space: nowrap; }
.social-qr:hover .qr-pop, .social-qr:focus-within .qr-pop, .social-qr.is-open .qr-pop { opacity: 1; visibility: visible; transform: none; }
/* Legal fine print: centred, small and dim, like the bottom of apple.com */
.footer-privacy { display: grid; justify-items: center; gap: 10px; max-width: 60em; margin: 0 auto; color: rgb(255 255 255 / .38); font-size: 12px; line-height: 1.7; text-align: center; }
.footer-icon { width: 16px; height: 16px; color: rgb(255 255 255 / .38); }
.footer-icon svg { display: block; width: 100%; height: 100%; }
.site-footer a { color: var(--subtle); text-decoration: none; text-underline-offset: 3px; text-decoration-color: rgb(255 255 255 / .3); }
.site-footer a:hover { color: var(--foreground); }
.footer-credits a { text-decoration: underline; }
.footer-privacy a { color: rgb(255 255 255 / .55); text-decoration: underline; }

/* Responsive */
@media (max-width: 1180px) {
  .section-inner { margin: 0; padding-left: 32px; padding-right: 32px; }
  .site-footer-inner { margin: 0 32px; }
  .respondent-wall-closing { padding-left: 32px; padding-right: 32px; }
  .sidebar { position: fixed; top: 12px; right: 12px; left: 12px; flex-direction: row; align-items: center; gap: 10px; width: auto; max-height: none; margin: 12px 12px 0; padding: 8px 12px; transform: none; border-radius: var(--radius-sm); }
  .brand { padding: 0 8px 0 4px; border-bottom: 0; }
  .brand img { width: auto; height: 20px; max-width: none; }
  .chapter-nav { display: flex; flex: 1; justify-content: center; gap: 2px; }
  .chapter-nav a { display: block; padding: 8px 12px; border-radius: var(--radius-sm); }
  .nav-label { display: none; }
  .chapter-nav a.is-active .nav-label { display: none; }
  .sidebar-foot { display: flex; align-items: center; padding-top: 0; border-top: 0; }
  .reading-progress { display: none; }
  .grid-5-7, .grid-4-8 { grid-template-columns: 1fr; }
  .loc-stack { grid-template-columns: 1fr 1fr; }
  .section-inner { padding: 104px 32px 112px; }
}
@media (max-width: 900px) {
  .hero-bar { padding: 20px; }
  .hero-inner { padding: 24px 20px 56px; }
  .metric-row { grid-template-columns: 1fr 1fr; height: auto; }
  .metric { padding: 20px 12px; }
  .metric:nth-child(3) { border-left: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--border); }
  .section-inner { padding: 80px 16px 88px; }
  .part-head { margin-bottom: 48px; }
  .metric-row { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3, .region-stack, .identity-card, .f-layout, .priority-layout, .voice-editorial-body, .q15-tabs, .pie-wrap { grid-template-columns: 1fr; gap: 28px; }
  .pie { max-width: 240px; justify-self: center; }
  .priority-more { border-left: 0; border-top: 1px solid var(--border); }
  .voice-topic-list { border-right: 0; border-bottom: 1px solid var(--border); }
  .voice-transcript { padding: 28px 22px; }
  /* Name on its own line; bar, value and chevron share the next */
  .lc-row { grid-template-columns: minmax(0, 1fr) 44px 16px; gap: 8px 12px; padding: 12px 14px; }
  .lc-name { grid-column: 1 / -1; }
  button.lc-row { border-color: var(--border); }
  button.lc-row .lc-chev, .lc-item.is-open .lc-chev { width: 16px; height: 16px; border: 0; background: none; color: var(--accent); }
  .lc-chev svg { width: 16px; height: 16px; }
  .lc-hint { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--muted-foreground); font-size: 13px; }
  .lc-hint svg { flex: none; width: 14px; height: 14px; color: var(--accent); }
  .lifecycle .card-foot { display: none; }
  .lc-item.is-open .lc-detail-inner { padding-top: 18px; }
  .lc-detail-inner { padding-left: 18px; }
  .lc-sub { grid-template-columns: 1fr 48px; gap: 6px 12px; }
  .lc-sub .lc-track { grid-column: 1 / -1; order: 3; }
  .card-head, .card-body, .card-insight, .card-tools, .card-foot, .priority-leaders, .priority-more { padding-left: 20px; padding-right: 20px; }
  .sel-head, .sel-row { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); }
  .sel-rank { font-size: 24px; }
  .sel-label { font-size: 14px; flex-wrap: wrap; }
  .pie-wrap.is-rich { grid-template-columns: 1fr; gap: 28px; }
  .insight { grid-template-columns: 1fr; gap: 10px; }
  .insight-label { justify-self: start; }
  .loc-stack { grid-template-columns: 1fr; }
  .loc-share { font-size: 32px; }
  .treemap { aspect-ratio: auto; min-height: 0; display: grid; grid-template-columns: 1fr; gap: 6px; border-radius: 0; overflow: visible; }
  .tile, .tile.is-l, .tile.is-s, .tile.is-xs { position: static; flex-direction: row; align-items: center; gap: 16px; width: auto !important; height: auto !important; min-height: 0; padding: 14px 16px; border-width: 0; border-radius: var(--radius); }
  .tile strong, .tile.is-l strong, .tile.is-s strong, .tile.is-xs strong { flex: none; width: 76px; font-size: 24px; }
  .tile p, .tile.is-l p, .tile.is-s p, .tile.is-xs p { display: block; font-size: 14px; line-height: 1.45; -webkit-line-clamp: unset; }
  .respondent-wall-closing { padding: 64px 16px 72px; }
  .wall-chip { padding: 12px 18px; }
  /* Left-aligned reading on small screens */
  .hero-inner, .part-head, .respondent-wall-copy { text-align: left; }
  .hero-intro { margin-left: 0; }
  .metric { align-items: flex-start; justify-content: flex-start; text-align: left; padding-left: 16px; }
  .part-head { justify-items: start; }
  .part-title h2, .part-ledes { margin-left: 0; }
  .respondent-wall-scrim { place-items: center start; }
  .respondent-wall-copy { padding: 28px 24px; }
  /* Insight: claims stay bold, the bracketed figures are plain evidence */
  .insight .ev, .insight strong .ev, .insight b .ev { color: var(--subtle); font-weight: 400; }
  /* Part 3: three equal filter buttons that double as the bar legend */
  .seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .seg button { justify-content: center; gap: 6px; padding: 0 6px; }
  .seg-long { display: none; }
  .seg-short { display: inline; }
  /* Q18: top five as bars, least valued as one sentence */
  .sel-wide { display: none; }
  .sel-compact { display: grid; }
  .sel-compact-head { padding-bottom: 12px; border-bottom: 1px solid var(--border); color: var(--muted-foreground); font-size: 13px; font-weight: 500; }
  .sel-compact-row { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .sel-compact-row .sel-rank { place-items: start; font-size: 22px; }
  .sel-compact-row .sel-label { flex-wrap: nowrap; font-size: 15px; }
  .sel-compact-row .sel-label strong { font-size: 16px; }
  .sel-compact { gap: 28px; }
  .sel-compact-group { display: grid; }
  .sel-compact-group.is-least .sel-compact-head { color: var(--least); }
  .sel-compact-group.is-least .sel-rank { color: var(--least); }
  .sel-compact-row:last-child { border-bottom: 0; }
  /* Part 4 */
  .waffle-scroller { display: none; }
  .q-card .rank-list { display: grid; }
  .rank-list { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: 1fr; }
  .rank-row:nth-child(5n) { border-bottom: 1px solid var(--border); }
  .rank-row:last-child { border-bottom: 0; }
  .rank-label { font-size: 14px; }
  .rank-row strong { font-size: 17px; }
  .q-card.is-treemap .card-tools { display: block; }
  .q-card.is-treemap .card-foot { display: none; }
  .loc-hero { min-height: 160px; }
  /* Part 5: on narrow screens the quote keeps its natural height */
  .voice-stack { display: block; }
  .voice-slide { display: none; }
  .voice-slide.is-active { display: block; }
  /* Footer */
  .site-footer-inner { gap: 28px; padding: 40px 0 48px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-credits { flex-direction: column; gap: 6px; }
  .footer-privacy { justify-items: start; gap: 12px; max-width: none; margin: 0; color: var(--muted-foreground); font-size: 13px; line-height: 1.8; text-align: left; }
  .footer-icon { width: 20px; height: 20px; color: var(--muted-foreground); }
  .footer-privacy a { color: var(--subtle); }
  html[lang="en"] .respondent-wall-copy h4 { white-space: normal; }
}

@media (max-width: 600px) {
  .brand { display: none; }
  .sidebar { gap: 6px; padding: 6px 8px; }
  .chapter-nav { flex: 1 1 auto; min-width: 0; }
  .chapter-nav a { padding: 8px; }
  .lang-toggle button { height: 28px; padding: 0 9px; font-size: 12px; }
  .hero-bar { padding: 16px; }
}
