@font-face {
  font-family: Manrope;
  src: url('fonts/manrope-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url('fonts/inter-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}
:root {
  color-scheme: light;
  --canvas: #f8fbf4;
  --white: #ffffff;
  --ink: #203c33;
  --muted: #4e6257;
  --jade: #126455;
  --mint: #e1edd8;
  --line: #c6d4c4;
  --coral: #af4235;
  --surface: #ffffff;
  --app-surface: #edf4e8;
  --action: #203c33;
  --on-action: #ffffff;
  --action-hover: #126455;
  --control-border: #6c876c;
  --note-border: #aac1a5;
  --capture-border: #365a4c;
  --capture-bg: #f7f5e9;
  --landscape-bg: #d5e5c7;
  --fade-soft: #f8fbf4eb;
  --fade-middle: #f8fbf466;
  --fade-clear: #f8fbf400;
  --fade-mobile-soft: #f8fbf4f0;
  --fade-mobile-middle: #f8fbf480;
  --display: Manrope, 'Avenir Next', Arial, sans-serif;
  --body: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
/* 2.2: night palette; layout, type and Light values remain unchanged. */
:root[data-theme=dark] {
  color-scheme: dark;
  --canvas: #171e2e;
  --surface: #263346;
  --ink: #eef3f1;
  --muted: #bccbd2;
  --jade: #8dd5c2;
  --mint: #263a47;
  --line: #4c6170;
  --coral: #f0ac9b;
  --app-surface: #202b3d;
  --action: #b3dfd0;
  --on-action: #172b2b;
  --action-hover: #c7eddf;
  --control-border: #8199a6;
  --note-border: #526978;
  --capture-border: #8da8b0;
  --capture-bg: #202b3d;
  --landscape-bg: #253747;
  --fade-soft: #171e2ef5;
  --fade-middle: #171e2e85;
  --fade-clear: #171e2e00;
  --fade-mobile-soft: #171e2ef5;
  --fade-mobile-middle: #171e2e99;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 18px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
button, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
p, h1, h2, h3, figure { margin: 0; }
svg:not(.apple-mark) { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.apple-mark { fill: currentColor; }
button:focus-visible, a:focus-visible, select:focus-visible, summary:focus-visible, [role=tabpanel]:focus-visible { outline: 3px solid var(--coral); outline-offset: 6px; }
::selection { background: #eed5bb; color: #203c33; }
.skip { position: fixed; z-index: 100; top: 12px; left: 12px; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; background: var(--surface); color: var(--ink); }
.skip:focus { width: auto; height: auto; clip-path: none; padding: 12px 20px; }
.wrap { width: min(1248px, calc(100% - 96px)); margin-inline: auto; }
.preview-bar { display: flex; justify-content: center; align-items: center; gap: 30px; background: var(--mint); padding: 8px 24px; font-size: 16px; min-height: 44px; }
.preview-bar a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.mobile-art-note { display: none; }
.site-header { width: min(1392px, calc(100% - 96px)); margin: auto; height: 100px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font: 800 29px/1 var(--display); letter-spacing: -.055em; }
.brand img { border-radius: 11px; }
.brand-dot { color: var(--coral); }
.site-header nav { display: flex; align-items: center; gap: 35px; margin-left: auto; }
.site-header nav a { font-size: 16px; padding: 12px 0; text-underline-offset: 6px; }
.site-header nav a:hover { text-decoration: underline; }
.header-store { border: 1px solid var(--ink); border-radius: 30px; padding: 10px 19px; font-size: 16px; display: flex; align-items: center; gap: 18px; min-height: 46px; }
.header-store:hover { background: var(--mint); }
.hero { position: relative; isolation: isolate; height: 790px; overflow: hidden; background: var(--canvas); }
.hero-copy { position: relative; z-index: 2; text-align: center; padding-top: 28px; margin: auto; }
h1 { font: 700 clamp(80px, 7.4vw, 112px)/1.04 var(--display); letter-spacing: -.055em; }
h1>span { color: var(--jade); }
.title-dot { color: var(--coral); }
.hero-copy>p { font-size: 20px; line-height: 1.6; margin-top: 26px; color: var(--ink); }
.store-button { display: inline-flex; align-items: center; gap: 15px; min-height: 68px; margin-top: 27px; background: var(--action); color: var(--on-action); border-radius: 38px; padding: 10px 23px; transition: background .2s, transform .2s; }
.store-button>span { font-size: 16px; line-height: 1.4; text-align: left; }
.store-button strong { font-size: 23px; font-weight: 500; }
.store-button .arrow { margin-left: 15px; }
.store-button:hover { background: var(--action-hover); transform: translateY(-2px); }
.hero-landscape { position: absolute; inset: 280px 0 0; z-index: -2; overflow: hidden; background: var(--landscape-bg); mask-image: linear-gradient(transparent, #000 40%); }
.hero-landscape>img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 37%; }
.landscape-fade { position: absolute; inset: 0; background: linear-gradient(var(--canvas) 0%, var(--fade-soft) 18%, var(--fade-middle) 40%, var(--fade-clear) 65%); }
.hero-bear { position: absolute; width: 215px; left: calc(50% - 107px); bottom: 20px; z-index: 1; }
.hero-next { position: absolute; bottom: 25px; left: max(48px, calc((100vw - 1248px) / 2)); border-radius: 50%; display: grid; place-items: center; width: 50px; height: 50px; background: var(--canvas); color: var(--ink); border: 1px solid var(--ink); }
h2 { font: 700 clamp(40px, 4vw, 58px)/1.12 var(--display); letter-spacing: -.05em; text-wrap: balance; }
h2 span { color: var(--jade); }
.how-section { padding-block: 78px 80px; }
.how-section h2 { max-width: 800px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; padding: 0; margin: 40px 0 0; }
.steps li { border-top: 2px solid var(--jade); padding-top: 21px; }
.steps li:nth-child(2) { border-color: var(--coral); }
.steps h3 { font: 700 24px/1.25 var(--display); letter-spacing: -.04em; margin-bottom: 15px; }
.steps p { color: var(--muted); font-size: 18px; line-height: 1.65; }
.app-section { background: var(--app-surface); padding-block: 65px 60px; }
.app-heading { display: flex; align-items: end; justify-content: space-between; gap: 35px; }
.app-tabs { display: flex; gap: 8px; padding-bottom: 5px; }
.app-tabs button { background: transparent; border: 1px solid var(--control-border); padding: 10px 22px; min-height: 50px; border-radius: 30px; font-size: 18px; font-weight: 500; transition: background .2s, border-color .2s; }
.app-tabs button[aria-selected=true] { background: var(--action); color: var(--on-action); border-color: var(--action); }
.app-tabs button:hover:not([aria-selected=true]) { background: var(--mint); border-color: var(--ink); }
.app-panel { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; column-gap: 10%; min-height: 835px; padding-top: 38px; }
.app-panel[hidden] { display: none; }
.app-copy { max-width: 405px; padding-bottom: 40px; }
.app-copy h3 { font: 700 clamp(30px, 3vw, 42px)/1.15 var(--display); letter-spacing: -.055em; margin-bottom: 25px; }
.app-copy p { font-size: 20px; line-height: 1.65; }
.app-copy .app-note { border-top: 1px solid var(--note-border); padding-top: 20px; margin-top: 28px; color: var(--muted); font-size: 18px; }
.app-capture { justify-self: center; width: 340px; }
.app-capture img { width: 100%; border: 2px solid #365a4c; border-radius: 25px; background: #f7f5e9; }
.app-capture figcaption { text-align: center; font-size: 16px; line-height: 1.5; color: var(--muted); margin-top: 18px; }
.library-panel .app-capture { width: min(500px, 100%); }
.closing { background: var(--mint); padding-block: 65px; }
.closing-content { display: flex; align-items: center; justify-content: space-between; gap: 8%; }
.closing-content>img { width: 35%; max-width: 390px; }
.closing-content>div { flex: 1; }
.closing h2 { font-size: clamp(38px, 4vw, 56px); }
.closing-store { display: inline-flex; align-items: center; gap: 22px; margin-top: 30px; min-height: 52px; padding: 13px 22px; border-radius: 32px; color: var(--on-action); background: var(--action); font-size: 18px; transition: background .2s; }
.closing-store:hover { background: var(--action-hover); }
.site-footer { padding-block: 42px 28px; }
.footer-main { display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.footer-main nav { display: flex; gap: 28px; font-size: 16px; }
.footer-main nav a { padding-block: 10px; min-height: 44px; }
.footer-main nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.useful-info { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 8px; }
.useful-info details { border-bottom: 1px solid var(--line); }
.useful-info summary { list-style: none; cursor: pointer; padding: 16px 35px 16px 0; font-size: 18px; line-height: 1.5; position: relative; }
.useful-info summary::-webkit-details-marker { display: none; }
.useful-info summary:after { content: '+'; position: absolute; right: 4px; top: 15px; font-size: 24px; }
.useful-info details[open] summary:after { content: '−'; }
.useful-info details p { font-size: 17px; line-height: 1.65; max-width: 850px; color: var(--muted); padding: 0 25px 20px 0; }
.footer-preview { margin-top: 23px; font-size: 16px; color: var(--muted); display: flex; justify-content: space-between; gap: 20px; }
.footer-preview a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
@media (min-width:1800px) {
  .hero { height: 850px; }
  .hero-copy { padding-top: 38px; }
  .hero-landscape { top: 300px; }
  .hero-bear { width: 235px; left: calc(50% - 117px); }
}
@media (max-width:1100px) {
  .wrap, .site-header { width: calc(100% - 64px); }
  .hero { height: 790px; }
  h1 { font-size: 90px; }
  .hero-bear { width: 205px; left: calc(50% - 102px); bottom: 20px; }
  .steps { gap: 30px; }
  .steps h3 { font-size: 23px; }
  .app-panel { column-gap: 5%; min-height: 820px; }
  .app-capture { width: 320px; }
  .app-tabs button { padding-inline: 18px; }
  .app-copy p { font-size: 19px; }
  .app-copy .app-note { font-size: 18px; }
  .app-copy h3 { font-size: 37px; }
  .closing-store { font-size: 17px; padding-inline: 18px; gap: 16px; }
}
@media (max-width:899px) {
  .preview-bar { gap: 15px; font-size: 16px; }
  .preview-bar>p { max-width: 315px; }
  .site-header { height: 90px; }
  .site-header nav { gap: 22px; }
  .header-store { gap: 12px; padding-inline: 17px; }
  .hero { height: 770px; }
  h1 { font-size: 84px; }
  .hero-copy { padding-top: 30px; }
  .hero-bear { width: 205px; }
  .hero-landscape { top: 310px; }
  .steps { gap: 25px; }
  .steps h3 { font-size: 22px; }
  .steps p { font-size: 18px; line-height: 1.55; }
  .how-section { padding-block: 65px; }
  .app-section { padding-block: 60px 45px; }
  .app-heading { display: block; }
  .app-tabs { margin-top: 30px; }
  .app-panel { grid-template-columns: 1fr 1fr; column-gap: 6%; min-height: 760px; padding-top: 35px; }
  .app-capture, .library-panel .app-capture { width: 285px; max-width: 100%; }
  .app-copy h3 { font-size: 35px; }
  .app-copy p { font-size: 18px; }
  .app-copy .app-note { font-size: 17px; }
  .app-capture figcaption { font-size: 16px; }
  .closing { padding-block: 55px; }
  .closing-content { gap: 7%; }
  .closing h2 { font-size: 40px; }
  .closing-store { font-size: 16px; gap: 10px; padding-inline: 17px; }
  .closing-store svg { flex-shrink: 0; }
  .footer-preview { display: block; }
  .footer-preview a { display: block; margin-top: 8px; width: fit-content; min-height: 44px; padding-block: 8px; }
}
@media (max-width:600px) {
  html { scroll-padding-top: 20px; }
  body { font-size: 18px; }
  .wrap, .site-header { width: calc(100% - 40px); }
  .preview-bar { padding: 10px 20px; display: block; font-size: 16px; line-height: 1.45; }
  .preview-bar p { max-width: none; }
  .preview-bar a { display: none; }
  .mobile-art-note { display: block; }
  .site-header { height: 82px; gap: 18px; }
  .brand { font-size: 27px; gap: 9px; }
  .brand img { width: 38px; height: 38px; border-radius: 10px; }
  .site-header nav { display: none; }
  .header-store { font-size: 16px; padding: 8px 14px; gap: 12px; min-height: 44px; }
  .header-store svg { width: 17px; }
  .hero { height: 690px; }
  .hero-copy { padding: 28px 20px 0; }
  h1 { font-size: clamp(49px, 13.3vw, 72px); letter-spacing: -.055em; line-height: 1.06; }
  .hero-copy>p { font-size: 18px; line-height: 1.6; margin: 23px auto 0; max-width: 345px; }
  .desktop-break { display: none; }
  .store-button { margin-top: 24px; min-height: 67px; padding: 10px 21px; gap: 14px; }
  .store-button>span { font-size: 16px; }
  .store-button strong { font-size: 23px; }
  .store-button .arrow { margin-left: 10px; }
  .hero-landscape { inset: 290px 0 0; }
  .hero-landscape>img { object-position: 53% 35%; }
  .landscape-fade { background: linear-gradient(var(--canvas), var(--fade-mobile-soft) 15%, var(--fade-mobile-middle) 35%, var(--fade-clear) 70%); }
  .hero-bear { width: 165px; left: calc(50% - 82px); bottom: 20px; }
  .hero-next { width: 45px; height: 45px; bottom: 25px; left: 28px; transform: none; }
  h2 { font-size: 38px; line-height: 1.16; letter-spacing: -.06em; }
  .how-section { padding-block: 48px 50px; }
  .steps { grid-template-columns: 1fr; gap: 24px; margin-top: 30px; }
  .steps li { padding-top: 18px; }
  .steps h3 { font-size: 24px; margin-bottom: 10px; }
  .steps p { font-size: 18px; line-height: 1.6; }
  .app-section { padding-block: 45px; }
  .app-heading h2 { font-size: 42px; }
  .app-tabs { gap: 7px; margin-top: 27px; padding: 0; }
  .app-tabs button { flex: 1; min-width: 0; padding: 10px 13px; font-size: 17px; min-height: 48px; }
  .app-panel { display: flex; flex-direction: column; min-height: 1100px; padding-top: 32px; align-items: stretch; gap: 30px; }
  .app-copy { padding: 0; max-width: none; }
  .app-copy h3 { font-size: 31px; line-height: 1.2; margin-bottom: 18px; }
  .app-copy p { font-size: 18px; line-height: 1.6; }
  .app-copy .app-note { font-size: 17px; padding-top: 17px; margin-top: 20px; }
  .app-capture, .library-panel .app-capture { width: 300px; max-width: 100%; margin-inline: auto; }
  .app-capture img { border-radius: 24px; }
  .app-capture figcaption { font-size: 16px; margin-top: 16px; }
  .closing { padding-block: 45px; }
  .closing-content { flex-direction: column; align-items: start; gap: 26px; }
  .closing-content>img { width: 250px; margin-inline: auto; }
  .closing-content>div { width: 100%; }
  .closing h2 { font-size: 38px; }
  .closing-store { font-size: 17px; padding-inline: 17px; gap: 15px; margin-top: 25px; min-height: 56px; }
  .site-footer { padding-block: 32px 22px; }
  .footer-main { display: block; }
  .footer-main nav { gap: 25px; margin-top: 20px; flex-wrap: wrap; }
  .useful-info { margin-top: 20px; }
  .useful-info summary { font-size: 17px; padding-block: 17px; }
  .useful-info details p { font-size: 17px; }
  .footer-preview { font-size: 16px; line-height: 1.6; margin-top: 23px; }
}
@media (max-width:360px) {
  .wrap, .site-header { width: calc(100% - 36px); }
  .preview-bar { padding-inline: 18px; }
  .hero-copy { padding-inline: 18px; }
  h1 { font-size: 48px; }
  .hero-copy>p { font-size: 17px; max-width: 285px; }
  .hero-bear { width: 153px; left: calc(50% - 76px); }
  h2 { font-size: 34px; }
  .app-heading h2 { font-size: 37px; }
  .steps p { font-size: 17px; }
  .steps h3 { font-size: 23px; }
  .app-tabs button { font-size: 16px; padding-inline: 10px; }
  .app-copy h3 { font-size: 29px; }
  .app-copy p, .app-copy .app-note { font-size: 17px; }
  .app-panel { min-height: 1100px; }
  .app-capture, .library-panel .app-capture { width: 280px; }
  .closing h2 { font-size: 34px; }
  .closing-store { font-size: 16px; gap: 9px; padding-inline: 15px; }
  .footer-main nav { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition: none !important; animation: none !important; }
  .store-button:hover { transform: none; }
}

/* 2.2: controls and device-aware captures, confined to the requested additions. */
.sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-store { white-space: nowrap; }
.theme-picker { position: relative; display: block; }
.theme-picker select { appearance: none; -webkit-appearance: none; min-height: 46px; border: 1px solid var(--control-border); border-radius: 28px; background: transparent; color: var(--ink); font-size: 16px; padding: 10px 14px 10px 39px; cursor: pointer; width: 128px; }
.theme-picker option { background: var(--canvas); color: var(--ink); }
.theme-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.theme-icon .half { fill: currentColor; stroke: none; }
.device-switch { display: flex; width: fit-content; margin: 0 auto 18px; padding: 0; gap: 0; border: 1px solid var(--control-border); border-radius: 25px; }
.device-switch button { position: relative; isolation: isolate; min-height: 44px; padding: 8px 16px; border: 0; border-radius: 25px; background: transparent; color: var(--ink); font-size: 14px; line-height: 1.5; }
.device-switch button::before { content: ''; position: absolute; z-index: -1; inset: 4px 3px; border-radius: 22px; }
.device-switch button[aria-checked=true] { color: var(--on-action); }
.device-switch button[aria-checked=true]::before { background: var(--action); }
.device-switch button:hover:not([aria-checked=true])::before { background: var(--mint); }
.app-capture, .library-panel .app-capture { width: 100%; max-width: 100%; }
.capture-viewport { height: 736px; width: 100%; display: flex; align-items: center; justify-content: center; }
.app-capture .capture-viewport img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border: 2px solid var(--capture-border); background: var(--capture-bg); border-radius: 25px; }
.app-capture .capture-viewport img[hidden] { display: none; }
@media (max-width:1100px) {
  .capture-viewport { height: 693px; }
  .header-actions { gap: 10px; }
}
@media (max-width:899px) {
  .capture-viewport { height: 617px; }
  .theme-picker select { width: 44px; padding: 0 0 0 44px; min-height: 44px; }
  .header-actions { gap: 8px; }
}
@media (max-width:600px) {
  .site-header { gap: 8px; }
  .header-store { padding-inline: 12px; gap: 8px; }
  .capture-viewport { height: 650px; }
  .app-panel { min-height: 1165px; }
  .device-switch { margin-bottom: 18px; }
}
@media (max-width:380px) {
  .header-store>svg { display: none; }
}
@media (max-width:360px) {
  .header-store { padding-inline: 8px; }
  .site-header { gap: 4px; }
  .header-actions { gap: 4px; }
  .capture-viewport { height: 607px; }
}

/* 2.3: illustrated day/night backgrounds; approved hero geometry is preserved. */
.hero-landscape {
  background-size: cover;
  background-position: 50% 37%;
  background-image: url('landscapes/radura-day-wide-1536.webp');
  background-image: image-set(url('landscapes/radura-day-wide-1536.webp') 1x, url('landscapes/radura-day-wide-2048.webp') 2x);
}
:root[data-theme=dark] .hero-landscape {
  background-image: url('landscapes/radura-night-wide-1536.webp');
  background-image: image-set(url('landscapes/radura-night-wide-1536.webp') 1x, url('landscapes/radura-night-wide-2048.webp') 2x);
}
@media (min-width:1537px) {
  .hero-landscape { background-image: url('landscapes/radura-day-wide-2048.webp'); }
  :root[data-theme=dark] .hero-landscape { background-image: url('landscapes/radura-night-wide-2048.webp'); }
}
@media (min-width:900px) and (max-width:1100px) {
  .hero-landscape { background-image: image-set(url('landscapes/radura-day-wide-1024.webp') 1x, url('landscapes/radura-day-wide-2048.webp') 2x); }
  :root[data-theme=dark] .hero-landscape { background-image: image-set(url('landscapes/radura-night-wide-1024.webp') 1x, url('landscapes/radura-night-wide-2048.webp') 2x); }
}
@media (max-width:899px) {
  .hero-landscape { background-image: url('landscapes/radura-day-mobile-1200.webp'); background-position: 50% 43%; }
  :root[data-theme=dark] .hero-landscape { background-image: url('landscapes/radura-night-mobile-1200.webp'); }
}
@media (max-width:600px) {
  .hero-landscape { background-image: image-set(url('landscapes/radura-day-mobile-600.webp') 1x, url('landscapes/radura-day-mobile-1200.webp') 2x); background-position: 50% 50%; }
  :root[data-theme=dark] .hero-landscape { background-image: image-set(url('landscapes/radura-night-mobile-600.webp') 1x, url('landscapes/radura-night-mobile-1200.webp') 2x); }
}

/* 2.4: language navigation and local glyph coverage. Approved composition unchanged. */
@font-face { font-family: Manrope; src: url('fonts/manrope-cyrillic.woff2') format('woff2'); font-weight: 600 800; font-style: normal; font-display: swap; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Inter; src: url('fonts/inter-cyrillic.woff2') format('woff2'); font-weight: 400 600; font-style: normal; font-display: swap; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
:root:lang(ja) { --display: Manrope, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif; --body: Inter, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif; }
:root:lang(zh-Hans) { --display: Manrope, 'PingFang SC', 'Microsoft YaHei', sans-serif; --body: Inter, 'PingFang SC', 'Microsoft YaHei', sans-serif; }
:root:lang(zh-Hant) { --display: Manrope, 'PingFang TC', 'Microsoft JhengHei', sans-serif; --body: Inter, 'PingFang TC', 'Microsoft JhengHei', sans-serif; }
:lang(ja) :is(h1,h2,h3), :lang(zh) :is(h1,h2,h3) { letter-spacing: -.02em; }
.language-picker { position: relative; flex-shrink: 0; z-index: 10; }
.language-picker summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; min-height: 44px; padding: 6px 10px; border: 1px solid var(--control-border); border-radius: 24px; font-size: 14px; }
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker nav { position: absolute; right: 0; top: calc(100% + 8px); width: 238px; max-width: calc(100vw - 36px); padding: 8px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 12px 30px #0002; }
.preview-bar .language-picker a { display: flex; min-height: 44px; padding: 8px 14px; border-radius: 10px; text-decoration: none; font-size: 16px; }
.language-picker a:hover, .language-picker a[aria-current=page] { background: var(--mint); }
.language-picker a[aria-current=page] { font-weight: 600; }
@media (max-width:600px) {
  .preview-bar { display: flex; align-items: center; gap: 12px; }
  .preview-bar>p { flex: 1; font-size: 14px; }
  .language-picker summary { gap: 5px; padding-inline: 8px; }
}
/* A readable static fallback when scripting is disabled. */
.no-script { padding: 12px 20px; background: var(--mint); font-size: 16px; }
html.no-js .app-tabs, html.no-js .device-switch, html.no-js .theme-picker { display: none; }
html.no-js .app-panel[hidden] { display: grid; }
@media (max-width:600px) { html.no-js .app-panel[hidden] { display: flex; } }
@media (max-width:600px) {
  .app-tabs button { flex: 1 1 auto; padding-inline: 10px; }
}

/* Shared preview controls: the same column and central axis as the captures. */
.app-heading { display: grid; grid-template-columns: .9fr 1.1fr; column-gap: 10%; align-items: start; }
.app-controls { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.app-controls .app-tabs { justify-content: center; flex-wrap: wrap; margin: 0; padding: 0; max-width: 100%; }
.app-controls .app-tabs button { white-space: nowrap; }
.app-controls .device-switch { margin: 0; }
.app-panel { padding-top: 24px; }
html.no-js .app-controls { display: none; }
@media (max-width:1100px) {
  .app-heading { column-gap: 5%; }
}
@media (max-width:899px) {
  .app-heading { grid-template-columns: 1fr 1fr; column-gap: 6%; }
  .app-controls .app-tabs { gap: 7px; }
  .app-controls .app-tabs button { font-size: 16px; padding-inline: 12px; }
}
@media (max-width:600px) {
  .app-heading { display: block; }
  .app-controls { margin-top: 27px; gap: 14px; }
  .app-controls .app-tabs { width: 100%; flex-wrap: nowrap; }
  .app-controls .app-tabs button { font-size: 17px; padding-inline: 10px; }
}
@media (max-width:360px) {
  .app-controls .app-tabs button { font-size: 16px; }
}
