/* Sumire — neutral surfaces, violet identity, original CSS artwork. */
:root {
  color-scheme: light;
  --bg: #fafafa; --paper: #fff; --ink: #19191f; --muted: #64646e;
  --line: #dedee5; --wash: #eeebf6; --wash-strong: #d8caef;
  --accent: #6940c6; --accent-dark: #5934af; --accent-soft: #eee8fa;
  --button-bg: #6940c6; --button-hover: #5934af;
  --header-bg: rgb(250 250 250 / 90%); --header-border: #e6e6eb;
  --section-alt: #f1f1f5; --surface-sidebar: #f5f5f8; --surface-input: #fff; --input-border: #94929e;
  --surface-quiet: #f1f1f5; --surface-purple: #f4f0fb; --surface-purple-border: #ddd2ef;
  --surface-selected: #f4f0fb; --surface-selected-border: #6940c6;
  --badge-full-bg: #eee8fa; --badge-full-ink: #5934af; --code-ink: #64646e;
  --soft-error-bg: #fff3f4; --soft-error-border: #dbb0b8; --soft-error-ink: #873649;
  --soft-success-bg: #edf7f2; --soft-success-ink: #28664f;
  --status-neutral-bg: #efecf5; --status-neutral-ink: #4d337e; --status-success-bg: #e9f5ee; --status-success-ink: #32765d;
  --status-progress-bg: #eaf1fb; --status-progress-ink: #3b6597; --status-unplanned-bg: #f2eef0; --status-unplanned-ink: #755563;
  --empty-border: #c9c7d2; --review-divider: #dedee5;
  --danger-bg: #fff3f4; --danger-border: #dbb0b8; --danger-ink: #873649; --red: #aa4055; --outline-border: #b4acbf;
  --art-bg: #eeebf5; --art-grid: rgb(88 60 140 / 5%); --art-glow: #d0bcef;
  --key-top: linear-gradient(145deg, #fff, #e9e6ef); --key-side: #b5aec4; --key-ink: #30253f;
  --key-muted: linear-gradient(145deg, #ded8e9, #c9bfdc); --art-label: #685b7b;
  --radius: 20px; --ease: cubic-bezier(.2,.7,.2,1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
  font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e0e12; --paper: #18181e; --ink: #f5f5f7; --muted: #acaab8;
  --line: #32323d; --wash: #22202b; --wash-strong: #453958;
  --accent: #bca5ff; --accent-dark: #cfbdff; --accent-soft: #302641;
  --button-bg: #7046cd; --button-hover: #8154e2;
  --header-bg: rgb(14 14 18 / 90%); --header-border: #292930;
  --section-alt: #15151b; --surface-sidebar: #141419; --surface-input: #1e1e25; --input-border: #77727f;
  --surface-quiet: #23232c; --surface-purple: #231c31; --surface-purple-border: #453656;
  --surface-selected: #2b213d; --surface-selected-border: #bca5ff;
  --badge-full-bg: #302641; --badge-full-ink: #cfbdff; --code-ink: #acaab8;
  --soft-error-bg: #352326; --soft-error-border: #75464e; --soft-error-ink: #f4acb6;
  --soft-success-bg: #22382c; --soft-success-ink: #a0dcb7;
  --status-neutral-bg: #322b3c; --status-neutral-ink: #dbcafa; --status-success-bg: #23372f; --status-success-ink: #95d7b2;
  --status-progress-bg: #253246; --status-progress-ink: #a8c9f0; --status-unplanned-bg: #352b34; --status-unplanned-ink: #d9b7ca;
  --empty-border: #575360; --review-divider: #32323d;
  --danger-bg: #352326; --danger-border: #75464e; --danger-ink: #f4acb6; --red: #f4acb6; --outline-border: #77727f;
  --art-bg: #1d1b28; --art-grid: rgb(192 165 255 / 5%); --art-glow: #4b3374;
  --key-top: linear-gradient(145deg, #46434f, #27252f); --key-side: #15131d; --key-ink: #f0ebff;
  --key-muted: linear-gradient(145deg, #34313e, #24212c);
  --art-label: #b8accb;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme]) {
  color-scheme: dark;
  --bg: #0e0e12; --paper: #18181e; --ink: #f5f5f7; --muted: #acaab8;
  --line: #32323d; --wash: #22202b; --wash-strong: #453958;
  --accent: #bca5ff; --accent-dark: #cfbdff; --accent-soft: #302641;
  --button-bg: #7046cd; --button-hover: #8154e2;
  --header-bg: rgb(14 14 18 / 90%); --header-border: #292930;
  --section-alt: #15151b; --surface-sidebar: #141419; --surface-input: #1e1e25; --input-border: #77727f;
  --surface-quiet: #23232c; --surface-purple: #231c31; --surface-purple-border: #453656;
  --surface-selected: #2b213d; --surface-selected-border: #bca5ff;
  --badge-full-bg: #302641; --badge-full-ink: #cfbdff; --code-ink: #acaab8;
  --soft-error-bg: #352326; --soft-error-border: #75464e; --soft-error-ink: #f4acb6;
  --soft-success-bg: #22382c; --soft-success-ink: #a0dcb7;
  --status-neutral-bg: #322b3c; --status-neutral-ink: #dbcafa; --status-success-bg: #23372f; --status-success-ink: #95d7b2;
  --status-progress-bg: #253246; --status-progress-ink: #a8c9f0; --status-unplanned-bg: #352b34; --status-unplanned-ink: #d9b7ca;
  --empty-border: #575360; --review-divider: #32323d;
  --danger-bg: #352326; --danger-border: #75464e; --danger-ink: #f4acb6; --red: #f4acb6; --outline-border: #77727f;
  --art-bg: #1d1b28; --art-grid: rgb(192 165 255 / 5%); --art-glow: #4b3374;
  --key-top: linear-gradient(145deg, #46434f, #27252f); --key-side: #15131d; --key-ink: #f0ebff;
  --key-muted: linear-gradient(145deg, #34313e, #24212c);
  --art-label: #b8accb;
} }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.7; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
::selection { background: var(--wash-strong); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.wrap, .header-inner { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 30; top: 8px; left: 8px; padding: 9px 15px; background: var(--ink); color: var(--bg); border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
h1,h2,h3,p { margin-top: 0; }
h1,h2,h3 { color: var(--ink); font-weight: 600; line-height: 1.13; letter-spacing: -.045em; text-wrap: balance; }
h1 { font-size: clamp(40px, 5vw, 68px); }
h2 { margin-bottom: 22px; font-size: clamp(32px, 4vw, 52px); }
h3 { margin-bottom: 12px; font-size: 21px; letter-spacing: -.025em; }
:lang(ja) h1, :lang(ja) h2 { line-height: 1.4; letter-spacing: -.04em; }
p { color: var(--muted); }
.eyebrow { margin-bottom: 20px; color: var(--accent); font-size: 11px; font-weight: 650; letter-spacing: .15em; line-height: 1.6; }
.site-header { position: sticky; z-index: 10; top: 0; border-bottom: 1px solid var(--header-border); background: var(--header-bg); backdrop-filter: blur(16px); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 21px; font-weight: 650; }
.brand-name { font-size: 21px; font-weight: 650; letter-spacing: -.045em; line-height: 1.1; }
.brand-name span { display: block; margin-top: 5px; font-size: 8px; letter-spacing: .09em; color: var(--muted); text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: 26px; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 12px; font-weight: 500; text-decoration: none; transition: color 150ms; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--accent); }
.primary-nav .language-switch { color: var(--ink); }
.primary-nav .nav-install { min-height: 38px; padding: 6px 18px; border-radius: 100px; gap: 10px; color: #fff; background: var(--button-bg); }
.primary-nav .nav-install:hover { background: var(--button-hover); }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.menu-toggle span { width: 19px; height: 1.5px; background: var(--ink); }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 5px 0; border: 0; background: transparent; font-size: 12px; color: var(--muted); cursor: pointer; }
.theme-toggle:hover { color: var(--accent); }
.theme-toggle-icon { font-size: 17px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; padding: 11px 24px; border: 1px solid transparent; border-radius: 100px; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color 160ms, border-color 160ms, transform 160ms; }
.button-primary { background: var(--button-bg); color: #fff; }
.button-primary:hover { background: var(--button-hover); }
.button-light, .button-outline { border-color: var(--outline-border); color: var(--ink); background: transparent; }
.button-light:hover, .button-outline:hover { background: var(--accent-soft); border-color: var(--accent); }
.button:active { transform: scale(.98); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--accent-dark); font-size: 14px; font-weight: 550; text-decoration: none; text-underline-offset: 5px; }
.text-link:hover { text-decoration: underline; }
.hero { padding-block: 48px 0; }
.hero-copy { text-align: center; max-width: 1000px; margin-inline: auto; }
.hero h1 { margin: 0 0 24px; font-size: clamp(48px, 6vw, 84px); line-height: 1.06; letter-spacing: -.06em; font-weight: 600; }
.hero:lang(ja) h1 { font-size: clamp(40px, 5.5vw, 76px); line-height: 1.27; letter-spacing: -.055em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lede { margin-bottom: 26px; font-size: 17px; line-height: 1.8; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; }
/* Artwork has sculptural depth; the surrounding interface stays flat. */
.input-studio { --tilt-x: 0deg; --tilt-y: 0deg; position: relative; isolation: isolate; margin: 32px 0 0; border: 1px solid var(--line); border-radius: 24px; background: var(--art-bg); overflow: hidden; }
.input-studio::before { content: ''; position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse at 62% 68%, var(--art-glow), transparent 62%), linear-gradient(var(--art-grid) 1px, transparent 1px), linear-gradient(90deg, var(--art-grid) 1px, transparent 1px); background-size: auto, 60px 60px, 60px 60px; }
.studio-topline, .studio-bottomline { display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; z-index: 1; padding: 24px 30px; font-size: 10px; font-weight: 500; color: var(--art-label); letter-spacing: .1em; }
.studio-detail, .studio-hint, .studio-bottomline figcaption { letter-spacing: .015em; font-size: 11px; }
.studio-scene { position: relative; min-height: 300px; display: grid; place-items: center; perspective: 1200px; }
.studio-orbit { position: absolute; width: 750px; height: 220px; border: 1px solid var(--art-grid); border-radius: 50%; transform: rotate(-15deg); pointer-events: none; }
.studio-watermark { position: absolute; font-size: clamp(90px, 17vw, 220px); font-weight: 700; letter-spacing: .15em; color: var(--art-label); opacity: .07; transform: translateY(-10px); pointer-events: none; }
.key-sculpture { width: 620px; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 13px; padding: 20px; transform: rotateX(calc(32deg + var(--tilt-x))) rotateY(calc(-6deg + var(--tilt-y))) rotateZ(-13deg); transform-style: preserve-3d; transition: transform 240ms var(--ease); }
.sculpture-key { position: relative; min-width: 0; height: 104px; border: 1px solid rgb(255 255 255 / 20%); border-radius: 14px; background: var(--key-top); color: var(--key-ink); box-shadow: 0 8px 0 var(--key-side), 0 11px 2px rgb(38 21 57 / 12%), 0 22px 24px rgb(38 21 57 / 16%); transform: translateZ(12px); transition: transform 160ms var(--ease), box-shadow 160ms var(--ease); cursor: pointer; }
.sculpture-key > span { display: block; font-size: 38px; font-weight: 500; line-height: 1; }
.sculpture-key small { position: absolute; bottom: 13px; left: 15px; font-size: 8px; letter-spacing: .13em; opacity: .7; }
.sculpture-key.key-muted { background: var(--key-muted); }
.sculpture-key.key-violet { background: linear-gradient(145deg, #8c66d0, #6940c6); --key-side: #5935a0; color: #fff; }
.sculpture-key.key-space { grid-column: span 2; }
.sculpture-key.key-space > span { font-size: 16px; letter-spacing: .06em; }
.sculpture-key:disabled { cursor: default; }
.sculpture-key:enabled:active, .sculpture-key.is-pressed { transform: translateZ(6px) translateY(4px); box-shadow: 0 4px 0 var(--key-side), 0 10px 16px rgb(38 21 57 / 14%); }
.studio-output { position: absolute; z-index: 1; top: 50%; left: 30px; max-width: 200px; margin: 0; font-size: 16px; font-weight: 500; color: var(--art-label); }
.studio-noscript { padding: 0 24px 18px; margin: 0; color: var(--art-label); text-align: center; font-size: 11px; }
.intro-strip { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding-block: 54px; border-bottom: 1px solid var(--line); }
.intro-strip > p { margin: 0; font-size: 21px; color: var(--ink); line-height: 1.5; letter-spacing: -.02em; }
.intro-strip > div { display: flex; flex-wrap: wrap; gap: 16px 32px; }
.intro-strip > div span { font-size: 12px; color: var(--muted); }
.section { padding-block: 100px; }
.benefit { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; }
.benefit + .benefit { border-top: 1px solid var(--line); }
.benefit-copy { max-width: 470px; }
.benefit-copy > p:not(.eyebrow) { font-size: 16px; line-height: 1.9; }
.benefit-copy .feature-footnote { font-size: 11px; line-height: 1.7; margin: 24px 0 0; max-width: 380px; }
.benefit-reverse { grid-template-columns: 1.2fr 1fr; }
.benefit-reverse .benefit-copy { order: 2; }
.editorial-art { margin: 0; padding: 40px 30px 24px; min-width: 0; border-radius: 20px; background: var(--section-alt); overflow: hidden; }
.editorial-art figcaption { margin-top: 28px; font-size: 11px; color: var(--muted); text-align: center; }
.layout-composition { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; min-height: 310px; }
.layout-tile { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.kana-tile { transform: translateY(-12px); }
.latin-tile { transform: translateY(12px); background: var(--accent-soft); border-color: transparent; }
.tile-label { display: block; font-size: 9px; letter-spacing: .12em; color: var(--muted); }
.tile-glyph { display: block; font-size: 62px; line-height: 1.6; font-weight: 500; letter-spacing: -.05em; }
.latin-tile .tile-glyph { color: var(--accent); }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.mini-grid span { display: grid; place-items: center; min-height: 28px; border: 1px solid var(--line); border-radius: 4px; font-size: 11px; color: var(--muted); }
.latin-grid { grid-template-columns: repeat(4, 1fr); }
.word-composition { min-height: 310px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.diagram-label { font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.reading { margin-top: 18px; font-size: 36px; color: var(--muted); letter-spacing: .15em; }
.diagram-cursor { display: inline-block; width: 2px; height: .9em; background: var(--accent); margin-left: 4px; }
.word-connector { margin-block: 6px; color: var(--muted); }
.converted-word { font-size: 82px; color: var(--accent); line-height: 1.3; letter-spacing: -.06em; }
.word-sources { display: flex; gap: 9px; margin-top: 23px; }
.word-sources span { padding: 5px 11px; border: 1px solid var(--line); border-radius: 100px; font-size: 10px; color: var(--muted); }
.style-composition { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 310px; padding-bottom: 44px; }
.style-key { display: grid; place-items: center; width: 110px; height: 125px; border-radius: 16px; font-size: 44px; font-weight: 500; transform: rotate(-9deg); }
.style-key-light { background: #fff; color: #272231; border: 1px solid #dedee5; box-shadow: 0 7px 0 #cbc7d2; }
.style-key-violet { background: #8860d1; color: #fff; transform: translateY(-20px) rotate(4deg); box-shadow: 0 7px 0 #604095; }
.style-key-dark { background: #2b2832; color: #ede7f7; transform: rotate(13deg); box-shadow: 0 7px 0 #17151d; }
.style-spectrum { display: flex; gap: 9px; position: absolute; bottom: 26px; }
.style-spectrum span { width: 18px; height: 18px; border-radius: 50%; background: #cab4ed; border: 1px solid rgb(100 80 150 / 15%); }
.style-spectrum span:nth-child(2) { background: #8860d1; }
.style-spectrum span:nth-child(3) { background: #ede8f4; }
.style-spectrum span:nth-child(4) { background: #8c92a5; }
.style-spectrum span:nth-child(5) { background: #2b2832; }
.install-section { background: var(--section-alt); }
.install-heading { text-align: center; margin-bottom: 50px; }
.install-heading h2 { margin-bottom: 18px; }
.edition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 1000px; margin-inline: auto; }
.edition { display: flex; flex-direction: column; align-items: flex-start; padding: 40px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.edition:first-child { border-color: var(--outline-border); }
.edition-label { color: var(--accent); font-size: 11px; letter-spacing: .14em; font-weight: 600; }
.edition h3 { margin-top: 12px; font-size: 28px; line-height: 1.5; }
.edition > p { font-size: 15px; }
.edition .edition-note { margin-bottom: 30px; font-size: 12px; }
.edition > .button, .edition-actions { margin-top: auto; }
.edition-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.install-extra { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 36px; margin-top: 30px; }
.support-strip { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-block: 64px; }
.support-strip h2 { font-size: 24px; margin: 0; }
.support-strip > div { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.page-main { padding-block: 72px 88px; }
.page-heading { max-width: 820px; margin-bottom: 44px; }
.page-heading h1 { margin-bottom: 22px; }
.page-heading > p:last-child { margin-bottom: 0; font-size: 16px; line-height: 1.9; }
.features-page .page-heading { max-width: 900px; margin: 8px auto 44px; text-align: center; }
.feature-jump { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; }
.feature-jump a { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 100px; font-size: 12px; text-decoration: none; }
.feature-jump a:hover { border-color: var(--accent); color: var(--accent); }
.feature-overview { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; padding: 36px 0 12px; }
.feature-overview h2 { font-size: clamp(30px, 3.5vw, 44px); }
.content-section { position: relative; margin-top: 84px; scroll-margin-top: 90px; }
.content-title { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 32px; }
.content-title h2 { margin: 0; font-size: clamp(28px, 3vw, 38px); }
.content-title .eyebrow { margin-bottom: 8px; }
.section-number { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); font-size: 12px; font-variant-numeric: tabular-nums; }
.feature-details { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.feature-detail { padding: 24px 0; border-top: 1px solid var(--line); }
.feature-detail h3 { font-size: 18px; line-height: 1.5; }
.feature-detail p { margin-bottom: 0; font-size: 14px; line-height: 1.9; }
.split-content { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.split-content p { font-size: 14px; line-height: 1.9; }
.split-content h3:not(:first-child) { margin-top: 32px; }
.feature-theme-study { margin-top: 32px; }
.feature-theme-study .style-composition { min-height: 240px; }
.edition-panel { display: flex; align-items: center; gap: 32px; justify-content: space-between; margin-top: 64px; padding: 40px; border-radius: 20px; background: var(--wash); }
.edition-panel > div { max-width: 700px; }
.edition-panel h2 { font-size: 28px; }
.edition-panel p:last-child { margin: 0; font-size: 14px; }
.edition-panel .button { flex-shrink: 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 360px; font-size: 14px; margin-bottom: 0; }
.last-section > p { font-size: 15px; }
/* Utility pages retain their existing structures and interaction hooks. */
.settings-main { padding-bottom: 72px; }
.settings-app { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 540px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.settings-sidebar { padding: 25px 16px; border-right: 1px solid var(--line); background: var(--surface-sidebar); }
.settings-sidebar h2 { margin-bottom: 14px; font-size: 14px; }
.settings-sidebar select, .edition-select select { width: 100%; min-height: 43px; padding: 8px 33px 8px 11px; border: 1px solid var(--input-border); border-radius: 11px; background: var(--paper); color: var(--ink); font-size: 14px; }
.sidebar-hint { margin: 13px 0 0; font-size: 14px; line-height: 1.7; }
.settings-content { min-width: 0; padding: 25px clamp(17px, 3.3vw, 38px) 35px; }
.settings-toolbar { display: flex; align-items: end; gap: 15px; }
.search-wrap { min-width: 0; min-height: 46px; position: relative; display: flex; flex: 1; align-items: center; }
.search-icon { position: absolute; left: 13px; color: var(--muted); font-size: 22px; line-height: 1; transform: rotate(-20deg); }
.search-wrap input { width: 100%; height: 46px; padding: 9px 12px 9px 40px; border: 1px solid var(--input-border); border-radius: 12px; background: var(--surface-input); color: var(--ink); font-size: 16px; }
.search-wrap input:focus, .settings-sidebar select:focus, .edition-select select:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); }
.edition-select { width: 190px; flex: 0 0 auto; color: var(--muted); font-size: 14px; font-weight: 650; }
.edition-select select { display: block; margin-top: 4px; color: var(--ink); font-weight: 500; }
.results-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin-top: 22px; }
.results-heading h2 { margin: 0; font-size: 19px; }
.results-heading p { margin: 0; font-size: 14px; }
.settings-source-note { margin: 8px 0 17px; font-size: 14px; line-height: 1.7; }
.settings-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.setting-card { min-width: 0; padding: 15px 16px 13px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.setting-card h3 { margin: 0 0 5px; font-size: 14px; line-height: 1.5; }
.setting-category { display: inline-flex; margin: 0 0 6px; color: var(--accent); font-size: 14px; font-weight: 700; }
.setting-purpose { margin: 0 0 10px; font-size: 14px; line-height: 1.65; }
.setting-meta { display: grid; grid-template-columns: 86px minmax(0,1fr); gap: 4px 8px; margin: 0; font-size: 14px; line-height: 1.55; }
.setting-meta dt { color: var(--muted); }
.setting-meta dd { min-width: 0; margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.setting-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 8px; border-radius: 30px; background: var(--surface-quiet); color: var(--muted); font-size: 14px; font-weight: 700; }
.setting-badge.full-only { background: var(--badge-full-bg); color: var(--badge-full-ink); }
.setting-values { margin: 0; }
.setting-values span { display: inline; }
.setting-key { display: block; margin-top: 8px; color: var(--code-ink); font: 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.empty-results { grid-column: 1 / -1; padding: 35px 10px; color: var(--muted); font-size: 14px; text-align: center; }
.source-card { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 28px; padding: 24px 27px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface-quiet); }
.source-card h2 { margin-bottom: 6px; font-size: 20px; }
.source-card p { margin: 0; font-size: 14px; }
.source-card .eyebrow { margin-bottom: 6px; font-size: 14px; }
.source-revision { margin-top: 6px !important; font-size: 14px !important; }
.notice { padding: 14px 16px; border-radius: 12px; font-size: 14px; }
.notice-error { border: 1px solid var(--soft-error-border); background: var(--soft-error-bg); color: var(--soft-error-ink); }

.requests-main { max-width: 1000px; }
.privacy-note { display: flex; align-items: flex-start; gap: 14px; margin: -9px 0 24px; padding: 17px 19px; border: 1px solid var(--surface-purple-border); border-radius: 15px; background: var(--surface-purple); }
.privacy-note p { margin: 0; font-size: 14px; line-height: 1.8; }
.privacy-icon { width: 30px; height: 30px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 10px; background: var(--paper); color: var(--accent); }
.request-panel { padding: clamp(20px, 4vw, 34px); border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.request-panel > h2 { margin-bottom: 17px; font-size: 19px; }
.request-types { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.request-type { color: var(--ink); min-height: 80px; display: flex; align-items: center; gap: 11px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); text-align: left; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.request-type:hover { border-color: var(--accent); }
.request-type.is-selected { border-color: var(--surface-selected-border); background: var(--surface-selected); box-shadow: inset 0 0 0 1px var(--surface-selected-border); }
.type-icon { width: 36px; height: 36px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 15px; font-weight: 750; }
.request-type strong, .request-type small { display: block; }
.request-type strong { font-size: 14px; line-height: 1.5; }
.request-type small { margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.submission-form { margin-top: 23px; }
.form-field { margin-bottom: 16px; }
.form-field label, .auth-panel > label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 14px; font-weight: 700; }
.required { margin-left: 6px; color: var(--red); font-size: 14px; font-weight: 650; }
.optional { margin-left: 6px; color: var(--muted); font-size: 14px; font-weight: 500; }
.form-field input, .form-field select, .form-field textarea, .auth-input-row input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--input-border); border-radius: 14px; background: var(--surface-input); color: var(--ink); font-size: 16px; }
.form-field textarea { min-height: 108px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus, .auth-input-row input:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); }
.form-field small, .field-hint { display: block; margin-top: 5px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.form-field-wide { grid-column: 1 / -1; }
.turnstile-wrap { min-height: 76px; margin-top: 2px; }
.turnstile-wrap iframe { max-width: 100%; }
.form-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--line); }
.form-submit-row > p { max-width: 510px; margin: 0; font-size: 14px; }
.form-message { margin: 13px 0 0; padding: 12px 14px; border-radius: 11px; background: var(--surface-quiet); color: var(--ink); font-size: 14px; }
.form-message.is-error { background: var(--soft-error-bg); color: var(--soft-error-ink); }
.form-message.is-success { background: var(--soft-success-bg); color: var(--soft-success-ink); }
.public-submissions { margin-top: 66px; }
.public-submissions .section-heading { align-items: center; }
.public-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.public-card { padding: 19px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
.public-card-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 9px; }
.public-kind { color: var(--accent); font-size: 14px; font-weight: 700; }
.status-pill { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 9px; border-radius: 30px; background: var(--status-neutral-bg); color: var(--status-neutral-ink); font-size: 14px; font-weight: 700; }
.status-pill.completed { background: var(--status-success-bg); color: var(--status-success-ink); }
.status-pill.in_progress { background: var(--status-progress-bg); color: var(--status-progress-ink); }
.status-pill.not_planned { background: var(--status-unplanned-bg); color: var(--status-unplanned-ink); }
.public-card h3 { margin-bottom: 7px; font-size: 16px; }
.public-card p { margin-bottom: 0; font-size: 14px; line-height: 1.8; white-space: pre-wrap; }
.public-card time { display: block; margin-top: 12px; color: var(--muted); font-size: 14px; }
.empty-state { grid-column: 1 / -1; margin: 0; padding: 34px; border: 1px dashed var(--empty-border); border-radius: 14px; color: var(--muted); font-size: 14px; text-align: center; }

.review-main { max-width: 900px; }
.review-nav { margin-left: auto; }
.auth-panel { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.auth-input-row { display: flex; gap: 10px; }
.auth-input-row input { flex: 1; min-width: 0; }
.pending-list { display: grid; gap: 14px; margin-top: 25px; }
.pending-card { padding: 23px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.pending-card h2 { margin: 0 0 13px; font-size: 19px; }
.pending-payload { margin: 0; }
.pending-payload > div { display: grid; grid-template-columns: 130px minmax(0,1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--review-divider); }
.pending-payload dt { color: var(--muted); font-size: 14px; font-weight: 650; }
.pending-payload dd { min-width: 0; margin: 0; color: var(--ink); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.moderation-fields { margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--line); }
.moderation-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 13px; }
.button-danger { border-color: var(--danger-border); background: var(--danger-bg); color: var(--danger-ink); }
.no-pending { margin: 0; padding: 35px; border: 1px dashed var(--empty-border); border-radius: 15px; color: var(--muted); text-align: center; }



.source-revision { overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-block: 36px; }
.footer-inner > p { margin: 0; font-size: 12px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
@keyframes enter-soft { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) { .reveal-enter { animation: enter-soft 480ms var(--ease) both; } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .sculpture-key:enabled:hover { transform: translateZ(18px) translateY(-3px); } }
@media (max-width: 1100px) {
  .primary-nav { gap: 18px; }
  .studio-output { position: static; text-align: center; max-width: none; padding: 0 24px 22px; font-size: 14px; }
  .benefit, .feature-overview { gap: 40px; }
  .settings-app { grid-template-columns: 180px minmax(0,1fr); }
  .settings-list { grid-template-columns: 1fr; }
  .support-strip, .edition-panel { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 860px) {
  .wrap, .header-inner { width: calc(100% - 48px); }
  .header-inner { min-height: 64px; }
  .nav-ready .menu-toggle { display: flex; }
  .site-header:not(.nav-ready) .header-inner { flex-wrap: wrap; padding-block: 10px; }
  .site-header:not(.nav-ready) .primary-nav { flex-wrap: wrap; }
  .nav-ready .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 16px 24px 24px; background: var(--bg); border-bottom: 1px solid var(--line); align-items: stretch; flex-direction: column; gap: 4px; max-height: calc(100dvh - 64px); overflow-y: auto; }
  .nav-ready .primary-nav.is-open { display: flex; }
  .primary-nav a, .theme-toggle { font-size: 14px; }
  .primary-nav .nav-install { justify-content: center; min-height: 44px; margin-top: 8px; }
  .theme-toggle { align-self: flex-start; }
  .review-nav { flex-wrap: wrap; justify-content: flex-end; gap: 4px 16px; }
  .review-nav a, .review-nav .theme-toggle { font-size: 12px; }
  .hero { padding-top: 54px; }
  .intro-strip { flex-direction: column; text-align: center; gap: 24px; }
  .intro-strip > div { justify-content: center; }
  .benefit, .benefit-reverse, .feature-overview, .split-content { grid-template-columns: 1fr; gap: 32px; }
  .benefit-copy { max-width: 620px; }
  .benefit-reverse .benefit-copy { order: 0; }
  .section { padding-block: 72px; }
  .editorial-art { max-width: 650px; width: 100%; margin-inline: auto; }
  .settings-app { grid-template-columns: 1fr; }
  .settings-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .settings-toolbar { flex-wrap: wrap; }
  .search-wrap { flex-basis: 230px; }
  .edition { padding: 28px; }
  .feature-details { column-gap: 32px; }
}
@media (max-width: 600px) {
  .hero { padding-top: 42px; }
  .hero h1 { font-size: clamp(38px, 9.7vw, 56px); line-height: 1.1; letter-spacing: -.05em; }
  .hero:lang(ja) h1 { font-size: clamp(35px, 9.1vw, 50px); line-height: 1.4; letter-spacing: -.055em; }
  .hero .eyebrow { font-size: 9px; margin-bottom: 16px; }
  .hero-lede { font-size: 14px; line-height: 1.85; margin-bottom: 24px; }
  .hero-lede br { display: none; }
  .hero-actions { gap: 12px 18px; }
  .hero-actions .button { padding-inline: 20px; }
  .input-studio { margin-top: 32px; border-radius: 16px; }
  .studio-topline, .studio-bottomline { padding: 18px; font-size: 8px; gap: 10px; }
  .studio-detail { display: none; }
  .studio-bottomline { flex-direction: column; align-items: flex-start; }
  .studio-bottomline figcaption, .studio-hint { font-size: 9px; }
  .studio-scene { min-height: 220px; }
  .key-sculpture { width: min(330px, calc(100% - 24px)); gap: 9px; padding: 8px; transform: rotateX(calc(26deg + var(--tilt-x))) rotateY(calc(-5deg + var(--tilt-y))) rotateZ(-13deg); }
  .sculpture-key { height: 60px; border-radius: 8px; }
  .sculpture-key > span { font-size: 24px; }
  .sculpture-key small { bottom: 7px; left: 7px; font-size: 5px; }
  .sculpture-key.key-space > span { font-size: 12px; }
  .studio-output { font-size: 12px; min-height: 42px; padding-bottom: 18px; }
  .intro-strip { padding-block: 38px; gap: 20px; }
  .intro-strip > p { font-size: 19px; }
  .intro-strip > div { gap: 12px 18px; }
  .intro-strip > div span { font-size: 10px; }
  .section { padding-block: 56px; }
  .benefit h2 { font-size: 34px; }
  .benefit-copy > p:not(.eyebrow) { font-size: 15px; }
  .benefit-copy .feature-footnote { font-size: 11px; }
  .editorial-art { padding: 28px 18px 20px; border-radius: 16px; }
  .layout-composition, .word-composition, .style-composition { min-height: 250px; }
  .layout-composition { gap: 10px; }
  .layout-tile { padding: 16px; border-radius: 12px; }
  .tile-glyph { font-size: 46px; }
  .mini-grid { gap: 4px; }
  .mini-grid span { min-height: 22px; font-size: 9px; }
  .style-key { width: 76px; height: 90px; font-size: 33px; border-radius: 12px; }
  .style-composition { gap: 10px; }
  .editorial-art figcaption { font-size: 10px; margin-top: 22px; }
  .edition-grid { grid-template-columns: 1fr; gap: 16px; }
  .edition h3 { font-size: 25px; }
  .install-heading { margin-bottom: 30px; }
  .install-heading h2 { font-size: 31px; }
  .install-extra { align-items: center; flex-direction: column; gap: 4px; }
  .support-strip { padding-block: 40px; gap: 20px; }
  .support-strip > div { gap: 4px 24px; }
  .page-main { padding-block: 44px 56px; }
  .page-heading h1 { font-size: 35px; }
  .page-heading > p:last-child { font-size: 15px; }
  .feature-jump { justify-content: flex-start; gap: 7px; }
  .feature-jump a { font-size: 11px; padding-inline: 13px; }
  .feature-overview { padding-top: 0; }
  .feature-details { grid-template-columns: 1fr; }
  .content-section { margin-top: 56px; }
  .content-title { gap: 12px; margin-bottom: 24px; }
  .content-title h2 { font-size: 28px; }
  .feature-detail { padding-block: 20px; }
  .edition-panel { padding: 26px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .settings-sidebar { padding: 16px; }
  .settings-sidebar h2 { margin-bottom: 10px; }
  .settings-content { padding: 20px 16px; }
  .settings-toolbar { align-items: stretch; flex-direction: column; gap: 12px; }
  .search-wrap { flex-basis: auto; }
  .edition-select { width: 100%; }
  .results-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .setting-meta { grid-template-columns: 70px minmax(0,1fr); }
  .source-card { align-items: flex-start; flex-direction: column; padding: 24px; }
  .source-card code { overflow-wrap: anywhere; }
  .request-types, .form-grid, .public-list { grid-template-columns: 1fr; }
  .request-type { min-height: 72px; }
  .request-panel { padding: 20px 16px; }
  .form-field-wide { grid-column: auto; }
  .form-submit-row, .auth-input-row { align-items: stretch; flex-direction: column; }
  .pending-card { padding: 18px; }
  .pending-payload > div { grid-template-columns: 1fr; gap: 4px; }
  .moderation-actions { flex-wrap: wrap; }
  .moderation-actions .button { flex: 1; }
  .review-nav { gap: 0 10px; }
  .review-nav .language-switch { min-height: 36px; }
  .footer-inner { align-items: flex-start; }
  .footer-inner > p { order: 3; width: 100%; }
}
@media (max-width: 360px) { .hero-actions { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .button:active, .sculpture-key:enabled:active, .sculpture-key.is-pressed { transform: none; }
}
