:root {
--ocean: #10283a; --ocean-deep: #07141c; --land: #2b4340; --land-edge: #6f8d7c;
--grid: rgba(190, 205, 225, 0.07);
--ink: #ece5d3; --ink-2: #bdb5a4; --ink-3: #847e72;
--gold: #e8c170; --gold-2: #bd9138; --gold-deep: #8a6420; --silver: #cfd6e0;
--surface: rgba(10, 24, 30, 0.8); --surface-2: rgba(14, 30, 36, 0.95); --surface-solid: #0f1e24;
--line: rgba(236, 229, 211, 0.13); --line-strong: rgba(236, 229, 211, 0.3);
--focus: #ffd98a; --danger: #e0574a;
--shadow: 0 18px 50px rgba(0,0,0,0.5); --chip-halo: rgba(0,0,0,0.55);
--font-display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
--font-body: "IBM Plex Sans JP", "Hiragino Sans", "Noto Sans JP", sans-serif;
--font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
--codex-w: 400px;
color-scheme: dark;
}
@media (prefers-color-scheme: light) {
:root:not([data-theme="dark"]) {
--ocean: #e6dcc6; --ocean-deep: #d8cdb4; --land: #c7ba9a; --land-edge: #8b7d5c; --grid: rgba(60, 45, 20, 0.10);
--ink: #2b2419; --ink-2: #5a4f3c; --ink-3: #8b8172; --gold: #9a6d12; --gold-2: #a3741a; --gold-deep: #6a4a0c; --silver: #4f5b6b;
--surface: rgba(246, 240, 226, 0.86); --surface-2: rgba(240, 232, 214, 0.96); --surface-solid: #f3ecdb;
--line: rgba(43, 36, 25, 0.16); --line-strong: rgba(43, 36, 25, 0.36); --focus: #7a5200; --shadow: 0 18px 50px rgba(60, 40, 10, 0.18); --chip-halo: rgba(246,240,226,0.8); color-scheme: light;
}
}
:root[data-theme="light"] {
--ocean: #e6dcc6; --ocean-deep: #d8cdb4; --land: #c7ba9a; --land-edge: #8b7d5c; --grid: rgba(60, 45, 20, 0.10);
--ink: #2b2419; --ink-2: #5a4f3c; --ink-3: #8b8172; --gold: #9a6d12; --gold-2: #a3741a; --gold-deep: #6a4a0c; --silver: #4f5b6b;
--surface: rgba(246, 240, 226, 0.86); --surface-2: rgba(240, 232, 214, 0.96); --surface-solid: #f3ecdb;
--line: rgba(43, 36, 25, 0.16); --line-strong: rgba(43, 36, 25, 0.36); --focus: #7a5200; --shadow: 0 18px 50px rgba(60, 40, 10, 0.18); --chip-halo: rgba(246,240,226,0.8); color-scheme: light;
}
:root[data-theme="dark"] {
--ocean: #10283a; --ocean-deep: #07141c; --land: #2b4340; --land-edge: #6f8d7c; --grid: rgba(190, 205, 225, 0.07);
--ink: #ece5d3; --ink-2: #bdb5a4; --ink-3: #847e72; --gold: #e8c170; --gold-2: #bd9138; --gold-deep: #8a6420; --silver: #cfd6e0;
--surface: rgba(10, 24, 30, 0.8); --surface-2: rgba(14, 30, 36, 0.95); --surface-solid: #0f1e24;
--line: rgba(236, 229, 211, 0.13); --line-strong: rgba(236, 229, 211, 0.3); --focus: #ffd98a; --shadow: 0 18px 50px rgba(0,0,0,0.5); color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--ocean-deep); color: var(--ink); font-family: var(--font-body); font-size: 14px; line-height: 1.6; overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
a { color: var(--gold); }
#app { position: fixed; inset: 0; }
#stage { position: absolute; inset: 0; }
.ic-svg { display: inline-block; vertical-align: middle; }
#account-dialog {
box-sizing:border-box; width:min(440px, calc(100vw - 24px)); max-height:calc(100dvh - 24px); overflow:auto; margin:auto;
padding:26px 26px 22px; border:1px solid var(--as-line); border-radius:24px;
color:var(--as-ink); background:var(--as-bg); box-shadow:var(--as-shadow-3); font:15px/1.7 var(--as-f-ui);
}
#account-dialog[open] { animation:as-pop .42s var(--as-ease) both; }
#account-dialog::backdrop { background:rgba(6,10,20,.52); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); }
#account-dialog .account-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; }
#account-dialog h2 { margin:0; font:600 clamp(18px, 5.5vw, 24px)/1.35 var(--as-f-display); letter-spacing:.02em; font-feature-settings:"palt"; }
#account-close { width:40px; height:40px; margin:0 !important; padding:0 !important; border:0 !important; border-radius:50% !important; background:var(--as-elev) !important; color:var(--as-ink) !important; font-size:20px; line-height:1; }
#account-reason { margin:16px 0 0; padding:14px 16px; border-radius:14px; background:var(--as-accent-soft); color:var(--as-ink); font-size:14px; line-height:1.75; }
#account-reason q { display:block; margin-top:8px; padding-left:12px; border-left:2px solid var(--as-accent); font:500 15px/1.6 var(--as-f-display); quotes:"「" "」"; }
#account-identity { margin:12px 0 0; color:var(--as-ink-2); font-size:14px; }
.account-switch { margin:16px 0 0; font-size:13px; color:var(--as-ink-2); text-align:center; }
.account-switch button { margin-left:6px; padding:4px 2px; border:0; background:none; color:var(--as-accent); font-weight:600; text-decoration:underline; text-underline-offset:3px; }
#account-note:empty { display:none; }
#account-dialog label { display:block; margin-top:16px; font-weight:600; font-size:13px; }
#account-dialog input { display:block; box-sizing:border-box; width:100%; height:50px; padding:0 14px; margin:6px 0 4px; background:var(--as-surface); color:var(--as-ink); border:1px solid var(--as-line-field); border-radius:12px; font:16px var(--as-f-ui); outline:none; transition:border-color .2s, box-shadow .2s; }
#account-dialog input:focus { border-color:var(--as-accent); box-shadow:0 0 0 4px var(--as-accent-soft); }
#account-dialog small, #account-dialog .account-note { display:block; font-size:12px; line-height:1.6; color:var(--as-ink-3); }
#account-dialog button { font:inherit; cursor:pointer; }
#account-submit { display:flex; align-items:center; justify-content:center; width:100%; min-height:52px; margin-top:20px; border:0; border-radius:14px; background:var(--as-btn); color:var(--as-on-btn); font:600 15px var(--as-f-ui) !important; transition:transform .2s var(--as-ease), filter .2s; }
#account-submit:hover { filter:brightness(1.08); }
#account-submit:active { transform:scale(.985); }
#account-submit:disabled { opacity:.5; cursor:wait; }
#account-dialog .account-note { margin:14px 0 0; }
#account-dialog [hidden] { display:none !important; }
#account-error { margin:10px 0 0; color:var(--as-danger); font-size:14px; }
#account-error:empty { margin:0; }
.account-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.account-actions button { min-height:40px; padding:8px 14px; border:1px solid var(--as-line-2); border-radius:999px; background:transparent; color:var(--as-ink); font-size:13px !important; }
.account-actions button:hover { background:var(--as-elev); }
#account-discard-logout { color:var(--as-danger) !important; }
#account-admin { display:block; width:100%; margin-top:6px; padding:12px 14px; border:1px solid var(--as-line); border-radius:12px; text-align:center; color:var(--as-ink); text-decoration:none; font-weight:600; }
#account-admin[hidden] { display:none; }
#account-dialog .account-consent { margin:18px 0 -6px; font-size:12.5px; line-height:1.7; color:var(--as-ink-2); }
#account-dialog .account-consent a, #account-dialog .account-delete a { color:var(--as-accent); text-underline-offset:3px; }
.account-delete { margin-top:18px; padding-top:14px; border-top:1px solid var(--as-line); font-size:13px; }
.account-delete summary { width:fit-content; padding:6px 0; color:var(--as-danger); cursor:pointer; text-decoration:underline; text-underline-offset:4px; }
.account-delete p { margin:8px 0 0; line-height:1.7; color:var(--as-ink-2); }
#account-delete-submit { min-height:44px; margin-top:12px; padding:8px 18px; border:1px solid var(--as-danger); border-radius:999px; background:transparent; color:var(--as-danger); font-weight:600 !important; }
#account-delete-submit:hover { background:var(--as-danger); color:var(--as-on-accent); }
#account-delete-submit:disabled { opacity:.5; cursor:wait; }
#account-delete-error { margin:10px 0 0 !important; color:var(--as-danger) !important; font-size:13px; }
#account-delete-error:empty { display:none; }
:root {
--as-f-display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
--as-f-latin: "Instrument Serif", "Shippori Mincho", Georgia, serif;
--as-f-ui: "IBM Plex Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
--as-f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
--as-f-read-en: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
--as-ease: cubic-bezier(.16, 1, .3, 1);
--as-ease-io: cubic-bezier(.65, 0, .35, 1);
--as-gutter: clamp(20px, 5vw, 72px);
--as-max: 1360px;
--as-radius: 16px;
--as-stage: #0b1322;
--as-navy: #112139;
--as-blue: #4b87c8;
--as-blue-ink: #2b64ab;
--as-bg: #f3eee4;
--as-elev: #ebe4d6;
--as-surface: #fbf8f2;
--as-ink: #13213a;
--as-ink-2: #48526a;
--as-ink-3: #5a6273;
--as-line: rgba(19, 33, 58, .12);
--as-line-2: rgba(19, 33, 58, .22);
--as-line-field: rgba(19, 33, 58, .55);
--as-accent: #2b64ab;
--as-accent-soft: rgba(43, 100, 171, .11);
--as-on-accent: #ffffff;
--as-btn: #13213a;
--as-on-btn: #f6f1e7;
--as-danger: #b4432f;
--as-glass: rgba(243, 238, 228, .78);
--as-shadow-1: 0 1px 2px rgba(19, 33, 58, .06), 0 4px 12px -4px rgba(19, 33, 58, .10);
--as-shadow-2: 0 2px 6px rgba(19, 33, 58, .06), 0 24px 48px -20px rgba(19, 33, 58, .28);
--as-shadow-3: 0 40px 90px -30px rgba(10, 18, 34, .45), 0 2px 8px rgba(10, 18, 34, .08);
--as-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .2 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
color-scheme: light;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
--as-bg: #0a1120; --as-elev: #121c2f; --as-surface: #142036;
--as-ink: #f1ebdf; --as-ink-2: #b9bfca; --as-ink-3: #8e96a5;
--as-line: rgba(241, 235, 223, .10); --as-line-2: rgba(241, 235, 223, .20); --as-line-field: rgba(241, 235, 223, .45);
--as-accent: #8fbaea; --as-accent-soft: rgba(143, 186, 234, .14); --as-on-accent: #0a1120;
--as-btn: #f1ebdf; --as-on-btn: #0d1729; --as-danger: #f08a73; --as-glass: rgba(10, 17, 32, .74);
--as-shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 16px -6px rgba(0, 0, 0, .4);
--as-shadow-2: 0 2px 6px rgba(0, 0, 0, .3), 0 28px 60px -24px rgba(0, 0, 0, .7);
--as-shadow-3: 0 40px 100px -30px rgba(0, 0, 0, .85), 0 2px 8px rgba(0, 0, 0, .4);
color-scheme: dark;
}
}
:root[data-theme="dark"] {
--as-bg: #0a1120; --as-elev: #121c2f; --as-surface: #142036;
--as-ink: #f1ebdf; --as-ink-2: #b9bfca; --as-ink-3: #8e96a5;
--as-line: rgba(241, 235, 223, .10); --as-line-2: rgba(241, 235, 223, .20); --as-line-field: rgba(241, 235, 223, .45);
--as-accent: #8fbaea; --as-accent-soft: rgba(143, 186, 234, .14); --as-on-accent: #0a1120;
--as-btn: #f1ebdf; --as-on-btn: #0d1729; --as-danger: #f08a73; --as-glass: rgba(10, 17, 32, .74);
--as-shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 16px -6px rgba(0, 0, 0, .4);
--as-shadow-2: 0 2px 6px rgba(0, 0, 0, .3), 0 28px 60px -24px rgba(0, 0, 0, .7);
--as-shadow-3: 0 40px 100px -30px rgba(0, 0, 0, .85), 0 2px 8px rgba(0, 0, 0, .4);
color-scheme: dark;
}
html { background: var(--as-bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.as-shell { background: var(--as-bg); color: var(--as-ink); font-family: var(--as-f-ui); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body.as-shell ::selection { background: var(--as-accent); color: var(--as-on-accent); }
html[data-as-screen="home"], html[data-as-screen="library"], html[data-as-screen="legal"] { height: auto; overflow-y: auto; scroll-behavior: auto; scroll-padding-top: 88px; }
@media (max-width: 860px) { html[data-as-screen="home"], html[data-as-screen="library"], html[data-as-screen="legal"] { scroll-padding-top: 76px; } }
html[data-as-screen="home"] body.as-shell, html[data-as-screen="library"] body.as-shell, html[data-as-screen="legal"] body.as-shell { height: auto; min-height: 100%; overflow: visible; }
html[data-as-screen="home"] #app, html[data-as-screen="library"] #app, html[data-as-screen="legal"] #app { visibility: hidden; pointer-events: none; }
html.as-locked, html.as-locked body.as-shell { overflow: hidden !important; }
#as-home[hidden] { display: none !important; }
.as-signed [data-guest-only] { display: none !important; }
html[data-loading="true"] { cursor: progress; }
html[data-loading="true"]::after { content: ""; position: fixed; top: 0; left: 0; z-index: 1000; width: 40%; height: 3px; background: var(--as-blue); border-radius: 0 3px 3px 0; animation: as-loading 1.1s var(--as-ease-io) infinite; }
@keyframes as-loading { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.as-boot-story { position: fixed; inset: 0; z-index: 30; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; background: var(--as-stage); color: #f1ebdf; }
.as-boot-story .as-overline { color: #8e96a5; }
.as-boot-story h1 { margin: 0; max-width: 18em; font: 600 clamp(26px, 4vw, 44px)/1.3 var(--as-f-display); letter-spacing: .02em; font-feature-settings: "palt"; text-wrap: balance; }
:root[data-lang="en"] .as-boot-story h1 { font-family: var(--as-f-latin); font-weight: 400; }
.as-boot-story .as-boot-chapter { margin: 0; color: #b9bfca; font: 500 15px/1.6 var(--as-f-ui); }
.as-boot-story .as-boot-note { margin: 18px 0 0; color: #8e96a5; font: 500 13px/1.6 var(--as-f-ui); }
.as-boot-story:not([data-state="error"]) .as-boot-note::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--as-blue); vertical-align: 1px; animation: as-pulse 1s ease-in-out infinite; }
.as-boot-story .as-btn { color: #f1ebdf; border-color: rgba(241, 235, 223, .3); }
.as-site { position: relative; z-index: 2; min-height: 100vh; background: var(--as-bg); isolation: isolate; }
:root:not([data-theme="dark"]) .as-site { background-image: var(--as-grain); background-size: 160px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .as-site { background-image: none; } }
:where(.as-site) a { color: inherit; }
.as-site { overflow-x: clip; }
.as-shell :is(button, a, input, select, summary, [tabindex]):focus-visible { outline: 2px solid var(--as-accent); outline-offset: 3px; border-radius: 8px; }
.as-i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.22em; }
.as-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.as-overline { margin: 0; font: 600 12px/1.5 var(--as-f-ui); letter-spacing: .18em; color: var(--as-ink-3); text-transform: uppercase; }
:root[data-lang="ja"] .as-overline { letter-spacing: .16em; }
.as-label { margin: 0 0 12px; font: 600 12px/1.4 var(--as-f-ui); letter-spacing: .12em; color: var(--as-ink-3); }
.as-muted { color: var(--as-ink-3); }
.as-h1 { margin: 0; font: 600 clamp(36px, 5vw, 64px)/1.18 var(--as-f-display); letter-spacing: .02em; font-feature-settings: "palt"; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; }
.as-h2 { margin: 0; font: 600 clamp(32px, 4.4vw, 64px)/1.2 var(--as-f-display); letter-spacing: .02em; font-feature-settings: "palt"; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; }
:root[data-lang="en"] :is(.as-h1, .as-h2, .as-h3, .as-hero-title) { font-family: var(--as-f-latin); font-weight: 400; letter-spacing: -.01em; font-feature-settings: normal; }
:root[data-lang="en"] .as-h2 { font-size: clamp(40px, 5.4vw, 80px); line-height: 1.02; }
.as-stamp { display: block; font: 500 10.5px/1.5 var(--as-f-mono); letter-spacing: .02em; color: var(--as-ink-3); overflow-wrap: anywhere; }
.as-stamp a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.as-stamp a:hover { color: var(--as-ink); }
.as-btn { --h: 48px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: var(--h); padding: 0 22px; border: 1px solid transparent; border-radius: 999px; font: 600 15px/1.2 var(--as-f-ui); text-decoration: none; cursor: pointer; transition: transform .35s var(--as-ease), background-color .25s, color .25s, border-color .25s, box-shadow .35s var(--as-ease); -webkit-tap-highlight-color: transparent; }
.as-btn .as-i { width: 20px; height: 20px; transition: transform .45s var(--as-ease); }
.as-btn:hover .as-i:last-child { transform: translateX(3px); }
.as-btn:active { transform: scale(.97); }
.as-btn--lg { --h: 60px; padding: 0 26px 0 28px; font-size: 16px; }
.as-btn--primary { background: var(--as-btn); color: var(--as-on-btn); box-shadow: var(--as-shadow-1); }
.as-btn--primary:hover { box-shadow: var(--as-shadow-2); }
.as-btn--ghost { background: transparent; color: var(--as-ink); border-color: var(--as-line-2); }
.as-btn--ghost:hover { background: var(--as-elev); border-color: var(--as-ink-3); }
.as-btn--ghost:hover .as-i:last-child { transform: translateY(3px); }
.as-iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--as-ink); cursor: pointer; transition: background-color .2s; }
.as-iconbtn:hover { background: var(--as-elev); }
.as-iconbtn .as-i { width: 22px; height: 22px; }
.as-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 15px; border: 1px solid var(--as-line-2); border-radius: 999px; background: transparent; color: var(--as-ink); font: 500 13px/1.3 var(--as-f-ui); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .2s, border-color .2s; }
.as-chip:hover { background: var(--as-elev); border-color: var(--as-ink-3); }
.as-chip .as-i { width: 17px; height: 17px; }
.as-chip--strong { background: var(--as-btn); color: var(--as-on-btn); border-color: transparent; }
.as-chip--strong:hover { background: var(--as-btn); filter: brightness(1.1); }
.as-search { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 18px; border: 1px solid var(--as-line-field); border-radius: 999px; background: var(--as-surface); color: var(--as-ink-3); transition: border-color .2s, box-shadow .2s; }
.as-search:focus-within { border-color: var(--as-accent); box-shadow: 0 0 0 4px var(--as-accent-soft); }
.as-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--as-ink); font: 16px var(--as-f-ui); }
.as-search input::placeholder { color: var(--as-ink-3); }
.as-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.as-search input:focus-visible { outline: none; }
.as-search input::-webkit-search-cancel-button { cursor: pointer; }
[data-reveal][data-in="false"] { opacity: 0; transform: translateY(28px); }
[data-reveal][data-in="true"] { opacity: 1; transform: none; transition: opacity .9s var(--as-ease) calc(var(--i, 0) * 70ms), transform 1.1s var(--as-ease) calc(var(--i, 0) * 70ms); }
::view-transition-old(root) { animation: as-vt-out .32s var(--as-ease) both; }
::view-transition-new(root) { animation: as-vt-in .6s var(--as-ease) both; }
@keyframes as-vt-out { to { opacity: 0; transform: scale(.992); } }
@keyframes as-vt-in { from { opacity: 0; transform: scale(1.008); } }
.as-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border: 0; border-radius: 999px; background: var(--as-btn); color: var(--as-on-btn) !important; font: 600 14px var(--as-f-ui); text-decoration: none; cursor: pointer; transition: top .2s var(--as-ease); }
.as-skip:focus { top: 12px; }
.as-header { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 28px; height: 76px; padding: 0 var(--as-gutter); transition: background-color .35s, box-shadow .35s, height .35s var(--as-ease); }
.as-site[data-scrolled="true"] .as-header { background: var(--as-glass); -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px); box-shadow: 0 1px 0 var(--as-line); height: 64px; }
.as-logo { display: inline-flex; align-items: center; height: 44px; margin-right: auto; text-decoration: none; }
.as-logo img { display: block; width: auto; height: 34px; }
.as-logo-light, .as-footer-brand .as-logo-light { display: block; }
.as-logo-dark, .as-footer-brand .as-logo-dark { display: none !important; }
:root[data-theme="dark"] :is(.as-logo-light) { display: none !important; }
:root[data-theme="dark"] :is(.as-logo-dark) { display: block !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .as-logo-light { display: none !important; } :root:not([data-theme="light"]) .as-logo-dark { display: block !important; } }
.as-nav { display: flex; align-items: center; gap: 4px; }
.as-nav :is(a, button) { position: relative; padding: 10px 14px; border: 0; border-radius: 999px; background: transparent; font: 500 14.5px/1 var(--as-f-ui); color: var(--as-ink-2); text-decoration: none; cursor: pointer; transition: color .2s, background-color .2s; }
.as-nav :is(a, button):hover, .as-nav a[aria-current] { color: var(--as-ink); background: var(--as-elev); }
.as-header-tools { display: flex; align-items: center; gap: 10px; }
.as-lang { padding: 8px 10px; font: 500 13px/1 var(--as-f-ui); color: var(--as-ink-2); text-decoration: none; border-radius: 8px; }
.as-lang:hover { color: var(--as-ink); text-decoration: underline; text-underline-offset: 5px; }
.as-account { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--as-line-2); border-radius: 999px; background: transparent; color: var(--as-ink); font: 600 13px/1 var(--as-f-ui); cursor: pointer; transition: background-color .2s; }
.as-account:hover { background: var(--as-elev); }
.as-account.is-signed::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--as-blue); }
.as-account[hidden] { display: none; }
.as-menu-btn { display: none; }
.as-admin-link { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--as-btn); color: var(--as-on-btn); font: 600 13px/1 var(--as-f-ui); text-decoration: none; white-space: nowrap; }
.as-admin-link:hover { filter: brightness(1.12); }
@media (max-width: 860px) {
.as-header { gap: 8px; height: 64px; }
.as-site[data-scrolled="true"] .as-header { height: 58px; }
.as-logo img { height: 28px; }
.as-nav { gap: 0; }
.as-nav :is(a, button) { padding: 10px 10px; font-size: 14px; }
.as-nav [data-go="questions"], .as-lang, .as-account { display: none; }
.as-menu-btn { display: inline-grid; margin-right: -8px; }
}
@media (max-width: 380px) { .as-nav [data-go="codex"] { display: none; } }
.as-home-main { position: relative; }
.as-hero { position: relative; overflow-x: clip; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 88px); max-width: var(--as-max); min-height: min(calc(100svh - 76px - 132px), 780px); margin: 0 auto; padding: clamp(8px, 2vh, 32px) var(--as-gutter) clamp(12px, 2.4vh, 40px); box-sizing: border-box; }
.as-hero-copy { position: relative; z-index: 2; }
.as-hero-title { margin: 22px 0 0; font: 600 clamp(50px, 6.6vw, 112px)/1.06 var(--as-f-display); letter-spacing: .01em; font-feature-settings: "palt"; color: var(--as-ink); }
.as-hero-title span { display: block; padding-bottom: .06em; }
:root[data-lang="en"] .as-hero-title { font-size: clamp(60px, 7.6vw, 132px); line-height: .94; }
.as-hero-lead { margin: 28px 0 0; max-width: 31em; font: 400 clamp(16px, 1.25vw, 19px)/1.95 var(--as-f-ui); color: var(--as-ink-2); }
.as-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 36px; }
.as-hero-note { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; font-size: 13px; color: var(--as-ink-3); }
.as-hero-note .as-i { width: 16px; height: 16px; color: var(--as-blue); stroke-width: 2.2; }
@keyframes as-fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes as-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.as-hero-title span { --d: 0ms; animation: as-hero-line .8s var(--as-ease) var(--d) backwards; }
.as-hero-title span:nth-child(2) { --d: 60ms; } .as-hero-title span:nth-child(3) { --d: 120ms; }
@keyframes as-hero-line { from { clip-path: inset(0 0 100% 0); transform: translateY(40%); } to { clip-path: inset(0 0 0 0); transform: none; } }
.as-hero .as-overline, .as-hero-lead, .as-hero-actions, .as-hero-note { animation: as-fade-up .6s var(--as-ease) both; }
.as-hero .as-overline { animation-delay: 0ms; } .as-hero-lead { animation-delay: 140ms; } .as-hero-actions { animation-delay: 200ms; } .as-hero-note { animation-delay: 260ms; }
.as-hero-demo { position: relative; z-index: 1; animation: as-fade-up .8s var(--as-ease) 160ms both; }
.as-demo-head { display: none; }
.as-hero-demo.is-moved { max-width: var(--as-max); margin: 0 auto; padding: 0 var(--as-gutter) clamp(56px, 10vw, 96px); box-sizing: border-box; animation: none; }
.as-hero-demo.is-moved .as-demo-head { display: block; margin: 0 0 14px; }
.as-hero::before, .as-hero::after { content: ""; position: absolute; z-index: 0; pointer-events: none; border-radius: 50%; }
.as-hero::before { width: min(78vw, 980px); aspect-ratio: 1; right: -18vw; top: 50%; translate: 0 -50%; border: 1px solid var(--as-line); }
.as-hero::after { width: min(56vw, 700px); aspect-ratio: 1; right: -6vw; top: 50%; translate: 0 -50%; border: 1px dashed var(--as-line); background: radial-gradient(circle at 50% 7px, var(--as-blue) 0 4px, rgba(75, 135, 200, .25) 5px 9px, transparent 10px); animation: as-orbit 80s linear infinite; }
@keyframes as-orbit { to { rotate: 360deg; } }
.as-demo { position: relative; margin: 0 0 0 auto; max-width: 520px; }
.as-demo-device { position: relative; overflow: hidden; border: 1px solid var(--as-line); border-radius: 26px; background: var(--as-surface); box-shadow: var(--as-shadow-3); transition: transform .6s var(--as-ease); will-change: transform; }
.as-demo-device::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }
:root[data-theme="dark"] .as-demo-device::after { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.as-demo-top { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-bottom: 1px solid var(--as-line); font-size: 12px; color: var(--as-ink-3); }
.as-demo-mode { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--as-elev); color: var(--as-ink); font: 600 11px/1.2 var(--as-f-ui); letter-spacing: .06em; transition: background-color .4s, color .4s; }
.as-demo[data-phase="answer"] .as-demo-mode { background: var(--as-blue-ink); color: #fff; }
.as-demo-book { flex: 1; min-width: 0; color: var(--as-ink-2); font-weight: 500; line-height: 1.3; word-break: keep-all; overflow-wrap: anywhere; }
@media (max-width: 520px) {
.as-demo-top { flex-wrap: wrap; height: auto; min-height: 46px; padding: 8px 16px; row-gap: 2px; }
.as-demo-count { margin-left: auto; }
.as-demo-book { order: 1; flex: 1 0 100%; }
}
.as-demo-count { flex: none; font: 500 11px var(--as-f-mono); }
.as-demo-pause { flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin-right: -8px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--as-ink-3); cursor: pointer; transition: background-color .2s, color .2s; }
.as-demo-pause:hover { background: var(--as-elev); color: var(--as-ink); }
.as-demo-pause .as-i { width: 16px; height: 16px; }
.as-demo-slides { position: relative; display: grid; margin: 0; padding: 0; list-style: none; }
.as-demo-slide { grid-area: 1 / 1; display: flex; flex-direction: column; visibility: hidden; transition: visibility 0s .9s; }
.as-demo-slide .as-demo-art { opacity: 0; transition: opacity .9s var(--as-ease); }
.as-demo-slide .as-demo-text > * { opacity: 0; transform: translateY(6px); transition: opacity .18s ease-out, transform .18s ease-out; }
.as-demo-slide:not([data-state]):first-child, .as-demo-slide[data-state="on"] { visibility: visible; transition: visibility 0s 0s; z-index: 1; }
.as-demo-slide:not([data-state]):first-child .as-demo-art, .as-demo-slide[data-state="on"] .as-demo-art { opacity: 1; }
.as-demo-slide:not([data-state]):first-child .as-demo-text > *, .as-demo-slide[data-state="on"] .as-demo-text > * { opacity: 1; transform: none; transition: opacity .6s var(--as-ease) .28s, transform .8s var(--as-ease) .28s; }
.as-demo-slide[data-state="on"] .as-demo-text > :nth-child(2) { transition-delay: .34s; }
.as-demo-slide[data-state="on"] .as-demo-text > :nth-child(3) { transition-delay: .42s; }
.as-demo-slide[data-state="on"] .as-demo-text > :nth-child(4) { transition-delay: .5s; }
.as-demo-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--as-stage); }
.as-demo-art img { width: 100%; height: 100%; object-fit: contain; display: block; }
.as-demo-slide[data-kind="story"] .as-demo-art img { object-fit: cover; }
.as-demo-slide[data-state="on"] .as-demo-art img { animation: as-kenburns 9s ease-out both; }
@keyframes as-kenburns { from { transform: scale(1.06); } to { transform: none; } }
.as-demo-source { display: flex; flex-direction: column; justify-content: center; gap: 10px; height: 100%; padding: 22px 26px; box-sizing: border-box; background: #f4ecdc; color: #2b2419; }
.as-demo-source span { font: 600 11px var(--as-f-ui); letter-spacing: .12em; color: #6e5e42; }
.as-demo-source blockquote { margin: 0; font: italic 400 clamp(15px, 1.4vw, 19px)/1.5 var(--as-f-latin); }
.as-demo-source cite { font: 500 11px var(--as-f-mono); color: #6e5e42; font-style: normal; }
.as-demo-text { display: flex; flex-direction: column; gap: 6px; min-height: 146px; padding: 16px 20px 14px; box-sizing: border-box; }
.as-demo-text em { font: 500 11.5px/1.4 var(--as-f-ui); font-style: normal; color: var(--as-ink-3); }
.as-demo-text strong { font: 600 21px/1.4 var(--as-f-display); letter-spacing: .02em; font-feature-settings: "palt"; color: var(--as-ink); }
.as-demo-text p { margin: 2px 0 0; font: 400 14.5px/1.85 var(--as-f-display); color: var(--as-ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
:root[data-lang="en"] .as-demo-text strong { font-family: var(--as-f-latin); font-weight: 400; font-size: 25px; line-height: 1.12; }
:root[data-lang="en"] .as-demo-text p { font-family: var(--as-f-read-en); font-size: 14px; line-height: 1.6; }
.as-demo-text .as-stamp { margin-top: auto; padding-top: 6px; }
.as-demo-slide[data-kind="answer"] .as-demo-text strong::before, .as-demo-slide[data-kind="source"] .as-demo-text strong::before { content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 10px .18em 0; border-radius: 50%; background: var(--as-blue); vertical-align: middle; }
.as-demo-ask { display: flex; align-items: center; gap: 10px; margin: 0 14px; padding: 6px 6px 6px 14px; height: 52px; box-sizing: border-box; border: 1px solid var(--as-line-2); border-radius: 16px; background: var(--as-bg); transition: border-color .3s, box-shadow .3s; }
.as-demo[data-phase="asking"] .as-demo-ask, .as-demo[data-phase="thinking"] .as-demo-ask { border-color: var(--as-blue); box-shadow: 0 0 0 4px var(--as-accent-soft); }
.as-demo-q { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; font: 500 14px/1.45 var(--as-f-ui); color: var(--as-ink); }
.as-demo-q .as-i { color: var(--as-blue); }
.as-demo-q [data-demo-typed]:empty::before { content: attr(data-placeholder); }
.as-demo-q [data-demo-typed]:empty + .as-caret { display: none; }
.as-demo:not([data-phase="asking"]):not([data-phase="thinking"]) .as-demo-q [data-demo-typed]:empty::after { content: "質問を書く"; color: var(--as-ink-3); font-weight: 400; }
:root[data-lang="en"] .as-demo:not([data-phase="asking"]):not([data-phase="thinking"]) .as-demo-q [data-demo-typed]:empty::after { content: "Type a question"; }
.as-caret { width: 2px; height: 18px; margin-left: -8px; background: var(--as-blue); animation: as-blink 1s steps(2) infinite; }
@keyframes as-blink { 50% { opacity: 0; } }
.as-demo-send { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--as-elev); color: var(--as-ink-3); transition: background-color .3s, color .3s; }
.as-demo[data-phase="asking"] .as-demo-send, .as-demo[data-phase="thinking"] .as-demo-send { background: var(--as-blue-ink); color: #fff; }
.as-demo-status { min-height: 18px; padding: 8px 18px 0; font: 500 12px var(--as-f-ui); color: var(--as-accent); }
.as-demo-status:not(:empty)::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--as-blue); animation: as-pulse 1s ease-in-out infinite; }
@keyframes as-pulse { 50% { transform: scale(.5); opacity: .4; } }
.as-demo-dots { display: flex; justify-content: center; gap: 6px; padding: 8px 0 12px; }
.as-demo-dots i { width: 6px; height: 6px; border-radius: 999px; background: var(--as-line-2); transition: width .5s var(--as-ease), background-color .3s; }
.as-demo-dots i[data-on="true"] { width: 22px; background: var(--as-ink); }
.as-demo[data-phase="answer"] .as-demo-dots i[data-on="true"] { background: var(--as-blue); }
.as-demo-caption { display: grid; gap: 8px; margin-top: 12px; padding: 0 6px; }
.as-demo-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font: 500 13px var(--as-f-ui); color: var(--as-ink-2); }
.as-demo-legend b { font: 400 18px/1 var(--as-f-latin); color: var(--as-ink-3); }
.as-demo-legend i { width: 18px; height: 1px; background: var(--as-line-2); }
.as-demo-caption small { font-size: 11px; line-height: 1.6; color: var(--as-ink-3); }
@media (max-width: 980px) {
.as-hero { grid-template-columns: 1fr; min-height: 0; gap: 48px; padding-top: 28px; }
.as-demo { margin: 0 auto; }
.as-hero::before { width: 130vw; right: -60vw; top: 20%; }
.as-hero::after { width: 90vw; right: -40vw; top: 20%; }
}
@media (max-width: 560px) {
.as-hero .as-overline { letter-spacing: .12em; }
.as-hero { padding-top: 18px; padding-bottom: 64px; gap: 40px; }
.as-hero-title { font-size: clamp(44px, 13.2vw, 60px); margin-top: 16px; line-height: 1.1; }
:root[data-lang="en"] .as-hero-title { font-size: clamp(50px, 14.5vw, 68px); }
.as-hero-lead { margin-top: 20px; font-size: 15.5px; }
.as-hero-lead br { display: none; }
.as-hero-actions { flex-direction: column; align-items: stretch; margin-top: 28px; }
.as-hero-actions .as-btn { justify-content: space-between; }
.as-demo-text { min-height: 172px; padding: 16px 16px 14px; }
.as-demo-text strong { font-size: 19px; }
.as-demo-device { border-radius: 22px; }
}
.as-shelf { max-width: var(--as-max); margin: 0 auto; padding: clamp(56px, 9vw, 120px) var(--as-gutter) clamp(40px, 6vw, 80px); box-sizing: border-box; scroll-margin-top: 64px; }
.as-continue { margin: 0 0 clamp(36px, 5vw, 56px); }
.as-continue ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.as-continue-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) 40px; align-items: center; gap: 16px; padding: 12px 14px 12px 12px; border: 1px solid var(--as-line); border-radius: 18px; background: var(--as-surface); text-decoration: none; transition: border-color .25s, box-shadow .35s var(--as-ease), transform .35s var(--as-ease); }
.as-continue-item:hover { border-color: var(--as-line-2); box-shadow: var(--as-shadow-2); transform: translateY(-2px); }
.as-continue-art { display: block; width: 64px; height: 80px; overflow: hidden; border-radius: 10px; background: var(--as-stage); }
.as-continue-art img { width: 100%; height: 100%; object-fit: cover; }
.as-continue-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.as-continue-copy strong { font: 600 16px/1.45 var(--as-f-display); font-feature-settings: "palt"; overflow-wrap: anywhere; }
.as-continue-copy small { font-size: 12px; color: var(--as-ink-3); }
.as-continue-copy i, .as-bar i, .as-card-progress i { display: block; height: 3px; margin-top: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--as-blue) calc(var(--share) * 100%), var(--as-line) 0); }
.as-continue-go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--as-btn); color: var(--as-on-btn); }
.as-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: clamp(36px, 4vw, 56px) clamp(18px, 2.2vw, 32px); margin: 0; padding: 0; list-style: none; }
.as-card { min-width: 0; }
.as-card-link { display: flex; flex-direction: column; gap: 18px; height: 100%; text-decoration: none; color: inherit; border-radius: 18px; -webkit-tap-highlight-color: transparent; }
.as-card-art { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 18px; background: var(--spine, var(--as-stage)); box-shadow: var(--as-shadow-1); transition: box-shadow .5s var(--as-ease), transform .6s var(--as-ease); isolation: isolate; }
.as-card-art::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); background: linear-gradient(180deg, transparent 55%, rgba(6, 10, 20, .38)); opacity: .0; transition: opacity .5s var(--as-ease); }
.as-card-art img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.001); transition: transform 1.4s var(--as-ease), filter .6s; }
.as-card-art.is-baked img { object-fit: cover; }
.as-card-cta { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; background: rgba(250, 247, 240, .94); color: #13213a; font: 600 13px var(--as-f-ui); opacity: 0; transform: translateY(10px); transition: opacity .4s var(--as-ease), transform .5s var(--as-ease); box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .5); }
.as-card-cta .as-i { width: 16px; height: 16px; }
@media (hover: hover) {
.as-card-link:hover .as-card-art { box-shadow: var(--as-shadow-2); transform: translateY(-4px); }
.as-card-link:hover .as-card-art img { transform: scale(1.06); }
.as-card-link:hover .as-card-art::after { opacity: 1; }
.as-card-link:hover .as-card-cta { opacity: 1; transform: none; }
.as-card-link:hover .as-card-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .28em; text-decoration-color: var(--as-line-2); }
}
.as-card-link:focus-visible .as-card-cta { opacity: 1; transform: none; }
.as-card-body { display: flex; flex-direction: column; gap: 9px; padding: 0 2px; }
.as-card-stamp { margin-top: -6px; font: 500 10.5px/1.4 var(--as-f-mono); color: var(--as-ink-3); overflow-wrap: anywhere; }
.as-card-kicker { font: 500 12.5px/1.5 var(--as-f-ui); color: var(--as-ink-3); }
.as-card-title { font: 600 clamp(19px, 1.5vw, 22px)/1.5 var(--as-f-display); letter-spacing: .02em; font-feature-settings: "palt"; color: var(--as-ink); text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; }
:root[data-lang="en"] .as-card-title { font-family: var(--as-f-latin); font-weight: 400; font-size: clamp(24px, 1.9vw, 28px); line-height: 1.12; letter-spacing: 0; }
.as-card-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font: 500 11.5px/1.5 var(--as-f-mono); color: var(--as-ink-3); }
.as-card-meta span + span::before { content: "·"; margin-right: 12px; opacity: .6; }
.as-card-meta span:empty { display: none; }
.as-card-progress { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--as-accent); font-weight: 500; }
.as-card-progress i { order: -1; margin: 0 0 6px; }
.as-card--follow .as-card-link { gap: 18px; }
.as-follow-mark { display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: 18px; border: 1px dashed var(--as-line-2); color: var(--as-ink-2); background: radial-gradient(120% 80% at 50% 0%, var(--as-elev), transparent 70%); transition: border-color .3s, color .3s; }
.as-follow-mark .as-i { width: 72px; height: 72px; stroke-width: 1.1; }
.as-card--follow .as-card-link:hover .as-follow-mark { border-color: var(--as-ink-3); color: #e0322b; }
.as-follow-go { display: inline-flex; align-items: center; gap: 6px; font: 600 13px var(--as-f-ui); color: var(--as-ink); }
.as-follow-go .as-i { width: 15px; height: 15px; }
.as-empty { padding: 40px 0; color: var(--as-ink-3); text-align: center; }
@media (max-width: 560px) {
.as-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; }
.as-card-link { gap: 12px; }
.as-card-art, .as-follow-mark { border-radius: 14px; }
.as-card-title { font-size: 16px; line-height: 1.5; }
:root[data-lang="en"] .as-card-title { font-size: 20px; }
.as-card-kicker { font-size: 11.5px; }
.as-card-meta { font-size: 10.5px; gap: 2px 8px; }
.as-card-meta span + span::before { margin-right: 8px; }
.as-card-cta { display: none; }
.as-follow-mark .as-i { width: 48px; height: 48px; }
.as-continue ul { grid-template-columns: 1fr; }
}
.as-features { max-width: var(--as-max); margin: 0 auto; padding: clamp(24px, 3vw, 48px) var(--as-gutter) clamp(64px, 8vw, 120px); box-sizing: border-box; scroll-margin-top: 64px; }
.as-features-head { margin-bottom: clamp(24px, 3vw, 40px); }
.as-features-head .as-h2 { font-size: clamp(28px, 3vw, 44px); }
.as-feature-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 28px); margin: 0; padding: 0; list-style: none; counter-reset: none; }
.as-feature { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--as-line); border-radius: 22px; background: var(--as-surface); box-shadow: var(--as-shadow-1); }
.as-feature-visual { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--as-stage); }
.as-feature-copy { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; }
.as-feature-num { display: flex; align-items: baseline; gap: 10px; margin: 0; font: 600 12px/1.4 var(--as-f-ui); letter-spacing: .12em; color: var(--as-accent); }
.as-feature-num b { font: 400 22px/1 var(--as-f-latin); letter-spacing: 0; color: var(--as-ink-3); }
.as-feature h3 { margin: 0; font: 600 clamp(19px, 1.45vw, 22px)/1.5 var(--as-f-display); letter-spacing: .02em; font-feature-settings: "palt"; color: var(--as-ink); text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; }
:root[data-lang="en"] .as-feature h3 { font: 400 clamp(24px, 1.9vw, 28px)/1.12 var(--as-f-latin); letter-spacing: 0; }
.as-feature-body { margin: 0; font-size: 14px; line-height: 1.9; color: var(--as-ink-2); }
.as-feature-credit { margin: auto 0 0; padding-top: 4px; }
.as-fv { position: absolute; inset: 0; }
.as-fv img { display: block; }
.as-fv--page { display: grid; grid-template-rows: minmax(0, 1fr) auto; background: var(--as-stage); }
.as-fv-art { overflow: hidden; }
.as-fv-art img { width: 100%; height: 100%; object-fit: cover; }
.as-fv-text { display: flex; flex-direction: column; gap: 3px; padding: 10px 14px 12px; background: #0e1829; color: #f1ebdf; }
.as-fv-text strong { font: 600 13.5px/1.4 var(--as-f-display); letter-spacing: .03em; font-feature-settings: "palt"; }
.as-fv-text span { font: 400 11.5px/1.6 var(--as-f-display); color: rgba(241, 235, 223, .72); }
.as-fv--ask { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px 16px; box-sizing: border-box; background: radial-gradient(80% 70% at 50% 60%, #1a2841 0%, #0b1322 76%); }
.as-fv-bubble { align-self: flex-end; flex: none; max-width: 88%; margin: 0; padding: 8px 14px; border-radius: 16px 16px 4px 16px; background: var(--as-blue-ink); color: #fff; font: 500 12.5px/1.5 var(--as-f-ui); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .7); }
.as-fv-plate { display: block; flex: 0 1 auto; height: 64%; min-height: 0; aspect-ratio: 1600 / 2211; max-width: 70%; box-sizing: border-box; border: 5px solid #f4efe4; background: #f4efe4; box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .8); }
.as-fv-plate img { width: 100%; height: 100%; object-fit: contain; }
.as-fv--doc { background: #e9dfca; }
.as-fv--doc img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.as-fv-chip { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 24px); padding: 6px 12px 6px 9px; border-radius: 999px; background: rgba(250, 247, 240, .94); color: #13213a; font: 600 11.5px/1.3 var(--as-f-ui); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .5); }
.as-fv-chip .as-i { width: 15px; height: 15px; }
.as-fv--cards { display: flex; align-items: center; justify-content: center; padding: 0 max(12px, 7%); background: radial-gradient(90% 80% at 50% 100%, var(--as-elev), var(--as-bg) 70%); }
.as-fv-card { flex: 0 0 30%; min-width: 0; display: flex; flex-direction: column; gap: 2px; margin: 0 1%; padding: 6px 6px 9px; border: 1px solid var(--as-line); border-radius: 10px; background: var(--as-surface); box-shadow: var(--as-shadow-2); transform: rotate(calc((var(--i) - 1) * 6deg)) translateY(calc((var(--i) - 1) * (var(--i) - 1) * 6px)); transition: transform .5s var(--as-ease); }
.as-fv-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; margin-bottom: 4px; }
.as-fv-card small { font-size: 9px; color: var(--as-ink-3); }
.as-fv-card b { font: 600 11px/1.3 var(--as-f-display); color: var(--as-ink); word-break: keep-all; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
@media (hover: hover) { .as-feature:hover .as-fv-card { transform: rotate(calc((var(--i) - 1) * 7deg)) translateY(-4px); } }
@media (max-width: 1100px) { .as-feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
.as-feature-list { grid-template-columns: 1fr; gap: 12px; }
.as-feature { display: grid; grid-template-columns: 112px minmax(0, 1fr); border-radius: 18px; }
.as-feature-visual { aspect-ratio: auto; min-height: 100%; }
.as-feature-copy { gap: 6px; padding: 14px 16px 16px; }
.as-feature h3 { font-size: 17px; }
.as-feature-body { font-size: 13px; line-height: 1.8; }
.as-fv-text { display: none; }
.as-fv-bubble { display: none; }
.as-fv-chip { display: none; }
.as-fv-card { flex-basis: 44%; margin: 0 -10%; }
.as-fv-card small, .as-fv-card b { display: none; }
}
.as-closing { position: relative; overflow: hidden; margin: 0 var(--as-gutter); border-radius: 32px; background: #112139; color: #f3ecdf; isolation: isolate; }
:root[data-theme="dark"] .as-closing { background: #16253f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .as-closing { background: #16253f; } }
.as-closing::before { content: ""; position: absolute; z-index: -1; width: 900px; aspect-ratio: 1; right: -260px; top: -420px; border-radius: 50%; border: 1px solid rgba(243, 236, 223, .12); }
.as-closing::after { content: ""; position: absolute; z-index: -1; width: 14px; height: 14px; right: 220px; top: 120px; border-radius: 50%; background: var(--as-blue); box-shadow: 0 0 0 10px rgba(75, 135, 200, .16), 0 0 60px 10px rgba(75, 135, 200, .45); }
.as-closing-inner { max-width: 900px; padding: clamp(48px, 7vw, 104px) clamp(28px, 6vw, 96px); display: grid; gap: 20px; }
.as-closing .as-h2 { font-size: clamp(30px, 3.8vw, 56px); }
.as-closing-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.as-closing .as-btn--primary { background: #f3ecdf; color: #112139; }
.as-closing-follow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 10px; margin-top: 18px; padding-top: 22px; border-top: 1px solid rgba(243, 236, 223, .14); }
.as-closing-follow p { flex: 1 1 100%; margin: 0 0 4px; font-size: 13.5px; line-height: 1.7; color: rgba(243, 236, 223, .7); }
.as-chip--dark { border-color: rgba(243, 236, 223, .28); color: #f3ecdf; }
.as-chip--dark:hover { background: rgba(243, 236, 223, .08); border-color: rgba(243, 236, 223, .5); }
.as-shell .as-closing :is(a, button):focus-visible { outline-color: #8fbaea; }
.as-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 28px 48px; max-width: var(--as-max); margin: 0 auto; padding: clamp(48px, 6vw, 80px) var(--as-gutter) 36px; box-sizing: border-box; font-size: 14px; }
.as-footer-logo { display: inline-block; }
.as-footer-brand img { height: 32px; width: auto; }
.as-footer-brand p { margin: 12px 0 0; color: var(--as-ink-2); font: 500 14.5px/1.7 var(--as-f-display); }
.as-footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 6px; }
.as-footer-nav :is(a, button), .as-footer-contact a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--as-ink-2); font: inherit; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s; }
.as-footer-nav :is(a, button):hover, .as-footer-contact a:hover { background: var(--as-elev); color: var(--as-ink); }
.as-footer-contact { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 6px; margin-left: -12px; }
.as-footer-contact .as-i { width: 18px; height: 18px; }
.as-footer-fine { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin: 0; padding-top: 22px; border-top: 1px solid var(--as-line); font-size: 12px; color: var(--as-ink-3); }
@media (max-width: 760px) { .as-footer { grid-template-columns: 1fr; gap: 20px; } .as-footer-nav { justify-content: flex-start; margin-left: -12px; } }
@media (max-width: 560px) { .as-closing { margin: 0 12px; border-radius: 24px; } .as-closing::after { right: 40px; top: 56px; } .as-closing-actions .as-btn { flex: 1 1 100%; justify-content: space-between; } }
.as-library-main { max-width: var(--as-max); margin: 0 auto; }
.as-library-head { display: grid; gap: 12px; padding: clamp(20px, 3.4vw, 44px) var(--as-gutter) 0; }
.as-back { display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin-bottom: 10px; padding: 8px 12px 8px 8px; border-radius: 999px; color: var(--as-ink-2); font-size: 14px; text-decoration: none; }
.as-back:hover { background: var(--as-elev); color: var(--as-ink); }
.as-library-sub { margin: 0; font-size: 15px; line-height: 1.8; color: var(--as-ink-2); }
.as-library-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 14px; }
.as-library-tools .as-search { flex: 1 1 280px; max-width: 520px; }
.as-sort { display: flex; flex-wrap: wrap; gap: 6px; }
.as-sort button { display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px; border: 1px solid var(--as-line-2); border-radius: 999px; background: transparent; color: var(--as-ink-2); font: 500 14px var(--as-f-ui); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.as-sort button:hover { border-color: var(--as-ink-3); color: var(--as-ink); }
.as-sort button[aria-pressed="true"] { background: var(--as-btn); color: var(--as-on-btn); border-color: transparent; }
.as-shelf--page { padding-top: clamp(32px, 4vw, 56px); }
.as-legal-links { display: inline-flex; flex-wrap: wrap; gap: 4px 18px; }
.as-legal-links a { color: inherit; text-underline-offset: 3px; }
.as-legal-links a:hover { color: var(--as-ink); }
.as-legal-main { padding: clamp(28px, 4vw, 64px) var(--as-gutter) clamp(24px, 3vw, 40px); }
.as-legal { max-width: 46em; margin: 0 auto; color: var(--as-ink); font: 400 15.5px/1.95 var(--as-f-ui); overflow-wrap: anywhere; }
.as-legal h1 { margin: 0 0 18px; font: 600 clamp(26px, 4.2vw, 48px)/1.25 var(--as-f-display); letter-spacing: .02em; font-feature-settings: "palt"; word-break: keep-all; }
@media (max-width: 400px) { .as-legal h1 { font-size: 8.2vw; } }
:root[data-lang="en"] .as-legal h1 { font-family: var(--as-f-latin); font-weight: 400; letter-spacing: -.01em; }
.as-legal h2 { margin: 2.6em 0 .7em; padding-top: 1.2em; border-top: 1px solid var(--as-line); font: 600 19px/1.5 var(--as-f-display); letter-spacing: .02em; scroll-margin-top: 88px; }
:root[data-lang="en"] .as-legal h2 { font-family: var(--as-f-latin); font-weight: 400; font-size: 23px; letter-spacing: 0; }
.as-legal-lead { margin: 0; color: var(--as-ink-2); font-size: 16px; }
.as-legal p, .as-legal li { margin: 0 0 .8em; }
.as-legal ol, .as-legal ul { margin: 0 0 1em; padding-left: 1.6em; }
.as-legal a { color: var(--as-accent); text-underline-offset: 3px; }
.as-legal dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 24px; margin: 0; }
.as-legal dt { color: var(--as-ink-3); font-weight: 600; }
.as-legal dd { margin: 0; }
.as-legal-table { margin: 0 0 1em; overflow-x: auto; }
.as-legal table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.75; }
.as-legal th, .as-legal td { padding: 10px 12px; border-bottom: 1px solid var(--as-line); text-align: left; vertical-align: top; }
.as-legal thead th { color: var(--as-ink-3); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.as-legal tbody th { width: 30%; min-width: 9em; font-weight: 600; }
.as-legal-date { margin-top: 3em !important; color: var(--as-ink-3); font-size: 13.5px; }
.as-settings-legal, .as-menu-legal { margin: 14px 0 0; font-size: 13px; color: var(--as-ink-3); }
@media (max-width: 560px) {
.as-legal { font-size: 15px; }
.as-legal dl { grid-template-columns: 1fr; gap: 0; }
.as-legal dd { margin-bottom: 10px; }
.as-legal tbody th { min-width: 7em; }
}
.as-sheet { position: fixed; inset: 0; z-index: 300; }
.as-sheet[hidden] { display: none; }
.as-sheet-scrim { position: absolute; inset: 0; background: rgba(6, 10, 20, .46); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s var(--as-ease); }
.as-sheet[data-open="true"] .as-sheet-scrim { opacity: 1; }
.as-sheet-panel { position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column; box-sizing: border-box; overflow: hidden; background: var(--as-bg); color: var(--as-ink); box-shadow: var(--as-shadow-3); transition: transform .5s var(--as-ease); will-change: transform; }
.as-sheet--right .as-sheet-panel { right: 0; transform: translateX(104%); border-left: 1px solid var(--as-line); border-radius: 24px 0 0 24px; }
.as-sheet--left .as-sheet-panel { left: 0; transform: translateX(-104%); border-right: 1px solid var(--as-line); border-radius: 0 24px 24px 0; }
.as-sheet[data-open="true"] .as-sheet-panel { transform: none; }
.as-sheet--s .as-sheet-panel { width: min(440px, 100vw); }
.as-sheet--m .as-sheet-panel { width: min(560px, 100vw); }
.as-sheet--xl .as-sheet-panel { width: min(1180px, 94vw); }
.as-sheet-grip { display: none; }
.as-sheet-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.as-sheet-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 10px; min-height: 72px; padding: 12px 14px 12px 26px; box-sizing: border-box; background: var(--as-bg); background: color-mix(in srgb, var(--as-bg) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--as-line); }
.as-sheet-head [data-sheet-back] { margin-left: -12px; }
.as-sheet-title { flex: 1; min-width: 0; }
.as-sheet-title h2 { margin: 0; font: 600 22px/1.3 var(--as-f-display); letter-spacing: .02em; font-feature-settings: "palt"; }
:root[data-lang="en"] .as-sheet-title h2 { font: 400 28px/1.1 var(--as-f-latin); }
.as-sheet-title p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--as-ink-3); }
.as-sheet-content { padding: 22px 26px 40px; }
@media (max-width: 720px) {
.as-sheet-panel { top: auto !important; left: 0 !important; right: 0 !important; width: 100% !important; max-height: 92dvh; border: 0 !important; border-top: 1px solid var(--as-line) !important; border-radius: 22px 22px 0 0 !important; transform: translateY(104%) !important; padding-bottom: env(safe-area-inset-bottom, 0px); }
.as-sheet[data-open="true"] .as-sheet-panel { transform: none !important; }
.as-sheet--xl .as-sheet-panel { height: 96dvh; max-height: 96dvh; }
.as-sheet--m .as-sheet-panel { height: 88dvh; }
.as-sheet-grip { display: block; position: absolute; z-index: 5; top: 0; left: 50%; width: 120px; height: 22px; translate: -50% 0; touch-action: none; cursor: grab; }
.as-sheet-grip::before { content: ""; position: absolute; left: 50%; top: 8px; width: 40px; height: 5px; border-radius: 3px; background: var(--as-line-2); translate: -50% 0; }
.as-sheet-head { min-height: 64px; padding: 16px 10px 10px 20px; }
.as-sheet-content { padding: 18px 20px 36px; }
}
.as-menu { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.as-menu button { display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; align-items: center; gap: 12px; width: 100%; min-height: 68px; padding: 8px 10px; border: 0; border-radius: 16px; background: transparent; color: var(--as-ink); text-align: left; font: inherit; cursor: pointer; }
.as-menu button:hover { background: var(--as-elev); }
.as-menu button > .as-i:first-child { justify-self: center; width: 24px; height: 24px; color: var(--as-ink-2); }
.as-menu b { display: block; font: 600 16px/1.35 var(--as-f-ui); }
.as-menu small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--as-ink-3); }
.as-i--chev { width: 18px !important; height: 18px !important; color: var(--as-ink-3); }
.as-menu-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--as-line); }
.as-settings section { padding: 6px 0 22px; }
.as-settings section + section { padding-top: 22px; border-top: 1px solid var(--as-line); }
.as-settings h3 { margin: 0 0 14px; font: 600 12px var(--as-f-ui); letter-spacing: .14em; color: var(--as-ink-3); text-transform: uppercase; }
.as-field { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; }
.as-field + .as-field { margin-top: 6px; }
.as-field > span { font-weight: 500; font-size: 14.5px; }
.as-field--stack { flex-direction: column; align-items: stretch; gap: 8px; }
.as-field[hidden] { display: none; }
.as-field input[type="range"] { width: 52%; accent-color: var(--as-accent); }
.as-seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--as-elev); }
.as-seg > label { position: relative; display: inline-flex; }
.as-seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.as-seg > label > span, .as-seg > a { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 54px; height: 36px; padding: 0 12px; border-radius: 9px; background: transparent; color: var(--as-ink-2); font: 600 13px var(--as-f-ui); text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; }
.as-seg input:checked + span, .as-seg > a[aria-current="true"] { background: var(--as-bg); color: var(--as-ink); box-shadow: inset 0 0 0 1px var(--as-ink-3), 0 1px 2px rgba(10, 20, 40, .1), 0 4px 12px -6px rgba(10, 20, 40, .25); }
.as-seg input:focus-visible + span { outline: 2px solid var(--as-accent); outline-offset: 2px; }
.as-switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.as-switch b { display: block; font-weight: 600; font-size: 14.5px; }
.as-switch small { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.55; color: var(--as-ink-3); }
.as-switch input { position: absolute; opacity: 0; pointer-events: none; }
.as-switch i { position: relative; flex: none; width: 50px; height: 30px; border-radius: 999px; background: var(--as-line-2); box-shadow: inset 0 0 0 1.5px var(--as-line-field); transition: background-color .25s; }
.as-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .35s var(--as-ease); }
.as-switch input:checked + i { background: var(--as-blue); box-shadow: none; }
.as-switch input:checked + i::after { transform: translateX(20px); }
.as-switch input:focus-visible + i { outline: 2px solid var(--as-accent); outline-offset: 3px; }
.as-voice-row { display: flex; gap: 8px; }
.as-voice-row select { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--as-line-field); border-radius: 12px; background: var(--as-surface); color: var(--as-ink); font: 16px var(--as-f-ui); }
[data-voice-status]:empty { display: none; }
[data-voice-status] { font-size: 12px; color: var(--as-ink-3); }
.as-account-card { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--as-line); border-radius: 16px; background: var(--as-surface); }
.as-account-card > .as-i { width: 26px; height: 26px; justify-self: center; color: var(--as-ink-2); }
.as-account-card b { display: block; font-size: 14.5px; }
.as-account-card small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.55; color: var(--as-ink-3); }
.as-account-card .as-account-problem { color: var(--as-danger); word-break: auto-phrase; }
.as-account-card [data-account-reload] { margin-top: 8px; }
.as-danger { text-align: left; }
.as-link-danger { padding: 8px 0; border: 0; background: none; color: var(--as-danger); font: 500 13.5px var(--as-f-ui); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.as-q-list { display: grid; gap: 10px; }
.as-q-item { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 16px 16px 14px 12px; border: 1px solid var(--as-line); border-radius: 18px; background: var(--as-surface); }
.as-q-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--as-accent-soft); color: var(--as-accent); }
.as-q-mark .as-i { width: 20px; height: 20px; }
.as-q-text { margin: 4px 0 0; font: 600 16px/1.55 var(--as-f-display); font-feature-settings: "palt"; overflow-wrap: anywhere; }
.as-q-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0 0; font-size: 12px; color: var(--as-ink-3); }
.as-q-status { color: var(--as-accent); font-weight: 600; }
.as-q-item[data-status="failed"] .as-q-status, .as-q-item[data-status="interrupted"] .as-q-status { color: var(--as-danger); }
.as-q-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.as-q-actions:empty { display: none; }
.as-loading { color: var(--as-ink-3); }
.as-error { color: var(--as-danger); }
.as-empty-state { display: grid; justify-items: start; gap: 12px; padding: 8px 0 28px; }
.as-empty-state h3 { margin: 0; font: 600 21px/1.45 var(--as-f-display); font-feature-settings: "palt"; }
.as-empty-state p { margin: 0; color: var(--as-ink-2); line-height: 1.9; font-size: 14.5px; }
.as-empty-state--small { padding: 12px 0; }
.as-empty-icon { width: 40px !important; height: 40px !important; color: var(--as-blue); stroke-width: 1.3; }
.as-howto { margin-top: 28px; padding: 20px; border-radius: 18px; background: var(--as-elev); }
.as-howto ol { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.as-howto li { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: start; gap: 10px; font-size: 14px; line-height: 1.65; }
.as-howto b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--as-bg); font: 400 15px/1 var(--as-f-latin); }
.as-toc-book { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: center; margin-bottom: 24px; }
.as-toc-art { display: block; width: 76px; height: 96px; overflow: hidden; border-radius: 12px; background: var(--as-stage); box-shadow: var(--as-shadow-1); }
.as-toc-art img { width: 100%; height: 100%; object-fit: cover; }
.as-toc-book h3 { margin: 6px 0 6px; font: 600 19px/1.45 var(--as-f-display); font-feature-settings: "palt"; }
.as-toc-book .as-muted { margin: 0; font-size: 12.5px; }
.as-bar { display: block; }
.as-toc-list #chapters { display: flex; flex-direction: column; gap: 2px; padding: 0; }
.as-toc-list #chapters button { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 12px; row-gap: 4px; align-items: baseline; width: 100%; min-height: 56px; padding: 12px 12px 12px 10px; border: 0; border-radius: 14px; background: transparent; color: var(--as-ink-2); text-align: left; font: 500 14.5px/1.5 var(--as-f-ui); cursor: pointer; }
.as-toc-list #chapters button:hover { background: var(--as-elev); color: var(--as-ink); }
.as-toc-list #chapters button .y { grid-row: span 2; font: 500 12px var(--as-f-mono); color: var(--as-ink-3); }
.as-toc-list #chapters button .t { color: var(--as-ink); font: 600 15px/1.5 var(--as-f-display); font-feature-settings: "palt"; overflow-wrap: anywhere; }
.as-toc-list #chapters button .q { grid-column: 2; font-size: 12.5px; line-height: 1.55; color: var(--as-ink-3); overflow-wrap: anywhere; }
.as-toc-list #chapters button.done .t { color: var(--as-ink-2); }
.as-toc-list #chapters button.done .y::after { content: " ✓"; color: var(--as-blue); }
.as-toc-list #chapters button.current { background: var(--as-surface); box-shadow: inset 3px 0 0 var(--as-blue), var(--as-shadow-1); }
.as-toc-list #chapters button.current .y { color: var(--as-accent); }
.as-toc-list #chapters .br { grid-column: 2; font-size: 11px; color: var(--as-ink-3); }
.as-toc-others { margin-top: 28px; }
.as-toc-others ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.as-toc-others button { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; width: 100%; padding: 8px; border: 0; border-radius: 12px; background: transparent; color: var(--as-ink); text-align: left; cursor: pointer; font: inherit; }
.as-toc-others button:hover { background: var(--as-elev); }
.as-toc-others img, .as-toc-others button > span:first-child { width: 44px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--as-stage); }
.as-toc-others b { display: block; font: 600 14px/1.45 var(--as-f-display); }
.as-toc-others small { font-size: 12px; color: var(--as-ink-3); }
.as-toc-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--as-line); }
.as-codex .as-sheet-body { display: flex; flex-direction: column; }
body.as-shell .as-codex #codex { position: static; inset: auto; display: flex; flex-direction: column; width: auto; max-width: none; height: auto; min-height: 100%; transform: none; border: 0; box-shadow: none; background: transparent; visibility: visible; --ink: var(--as-ink); --ink-0: var(--as-ink); --ink-1: var(--as-ink); --ink-2: var(--as-ink-2); --ink-3: var(--as-ink-3); --gold: var(--as-accent); --gold-2: var(--as-accent); --gold-dim: var(--as-line-2); --line: var(--as-line); --line-strong: var(--as-line-2); --surface: var(--as-surface); --surface-2: var(--as-elev); --bg-1: var(--as-bg); --bg-2: var(--as-elev); }
.as-codex .cx-bar { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 8px; min-height: 68px; padding: 12px 14px 12px 22px; box-sizing: border-box; background: var(--as-bg); background: color-mix(in srgb, var(--as-bg) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--as-line); }
.as-codex .cx-bar #cx-back { margin-left: -10px; }
.as-codex .cx-bar #cx-back[hidden], .as-codex .cx-bar #cx-index[hidden] { display: none; }
.as-codex .cx-kind { flex: 1; min-width: 0; font: 600 13px var(--as-f-ui); letter-spacing: .08em; color: var(--as-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-codex #cx-body { flex: 1; padding: 28px clamp(20px, 3.4vw, 44px) 56px; color: var(--as-ink); }
.cx-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 26px; border-bottom: 1px solid var(--as-line); }
.cx-hero h2 { margin: 10px 0 8px; font: 600 clamp(26px, 3vw, 40px)/1.25 var(--as-f-display); letter-spacing: .02em; font-feature-settings: "palt"; text-wrap: balance; }
:root[data-lang="en"] .cx-hero h2 { font: 400 clamp(34px, 3.6vw, 52px)/1.04 var(--as-f-latin); }
.cx-hero p { margin: 0; color: var(--as-ink-2); font-size: 14.5px; line-height: 1.8; }
.cx-count { display: grid; justify-items: end; gap: 2px; margin: 0; text-align: right; }
.cx-count strong { font: 400 clamp(64px, 7vw, 96px)/.85 var(--as-f-latin); color: var(--as-ink); }
.cx-count span { font-size: 13px; color: var(--as-ink-3); }
.cx-count small { margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: var(--as-blue-ink); color: #fff; font: 600 11.5px var(--as-f-ui); }
.cx-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 24px 0 8px; }
.cx-tools .as-search { flex: 1 1 260px; max-width: 360px; height: 46px; }
.as-codex .as-search .cx-search { width: auto; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: 0; color: var(--as-ink); font: 16px var(--as-f-ui); }
.cx-tabs { display: flex; gap: 6px; flex: 1 1 auto; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.cx-tabs::-webkit-scrollbar { display: none; }
.cx-tabs button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border: 1px solid var(--as-line-2); border-radius: 999px; background: transparent; color: var(--as-ink-2); font: 500 13px var(--as-f-ui); cursor: pointer; }
.cx-tabs button b { font: 500 11px var(--as-f-mono); color: var(--as-ink-3); }
.cx-tabs button.on { background: var(--as-btn); color: var(--as-on-btn); border-color: transparent; }
.cx-tabs button.on b { color: inherit; opacity: .7; }
.cx-shelf-heading { display: flex; justify-content: space-between; margin: 18px 0 16px; font: 500 12px var(--as-f-ui); letter-spacing: .06em; color: var(--as-ink-3); scroll-margin-top: 84px; }
.as-codex .cx-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 20px 16px; }
.as-codex .cx-card { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; min-width: 0; padding: 0; overflow: hidden; border: 1px solid var(--as-line); border-radius: 16px; background: var(--as-surface); color: var(--as-ink); text-align: left; font: inherit; cursor: pointer; box-shadow: var(--as-shadow-1); transition: transform .5s var(--as-ease), box-shadow .4s var(--as-ease), border-color .3s; animation: as-card-in .7s var(--as-ease) calc(var(--i, 0) * 40ms) backwards; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .as-codex .cx-card:hover { transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); } }
@keyframes as-card-in { from { opacity: 0; transform: translateY(14px); } }
.as-codex .cx-card:hover { box-shadow: var(--as-shadow-2); border-color: var(--as-line-2); }
.as-codex .cx-card-art { position: relative; display: grid; place-items: center; height: auto; aspect-ratio: 4 / 3; overflow: hidden; background: var(--as-elev); border: 0; }
.as-codex .cx-card-art::after { display: none; }
.as-codex .cx-card-art img { width: 100%; height: 100%; object-fit: cover; background: transparent; transition: transform .8s var(--as-ease); }
.as-codex .cx-card:hover .cx-card-art img { transform: scale(1.05); }
.as-codex .cx-category-icon { color: var(--as-ink-3); }
.as-codex .cx-category-icon .ic-svg, .as-codex .cx-category-icon svg { width: 44px; height: 44px; opacity: .7; }
.as-codex .cx-kind-icon { position: absolute; left: 10px; bottom: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--as-surface); color: var(--as-ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.as-codex .cx-kind-icon svg, .as-codex .cx-kind-icon .ic-svg { width: 18px; height: 18px; }
.as-codex .cx-card-art:not(.has-image) .cx-kind-icon { display: none; }
.as-codex .cx-card-number { position: absolute; top: 10px; left: 10px; padding: 3px 7px; border-radius: 7px; background: rgba(10, 17, 32, .62); color: #fff; font: 500 10px var(--as-f-mono); letter-spacing: .04em; }
.as-codex .cx-new { position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: 999px; background: var(--as-blue-ink); color: #fff; font: 600 10.5px var(--as-f-ui); letter-spacing: .04em; box-shadow: none; }
.as-codex .cx-card-copy { display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 6px; flex: 1; }
.as-codex .cx-card-copy > small { font: 600 10.5px var(--as-f-ui); letter-spacing: .1em; color: var(--as-ink-3); }
.as-codex .cx-card-copy > strong { font: 600 16.5px/1.45 var(--as-f-display); font-feature-settings: "palt"; overflow-wrap: anywhere; color: var(--as-ink); }
.as-codex .cx-card-copy > span { font-size: 12px; line-height: 1.5; color: var(--as-ink-3); }
.as-codex .cx-card-copy > span:empty { display: none; }
.as-codex .cx-image-credit { display: block; padding: 0 14px 12px; font: 400 9.5px/1.4 var(--as-f-mono); color: var(--as-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-codex .cx-image-credit:empty { display: none; }
.cx-pager { display: flex; align-items: center; justify-content: center; gap: 12px 20px; margin: 32px 0 0; }
.cx-pager .as-btn { --h: 44px; min-width: 96px; padding: 0 20px; font-size: 14px; }
.cx-pager .as-btn:disabled, .cx-pager .as-btn:disabled:hover { opacity: .38; cursor: default; background: transparent; border-color: var(--as-line-2); }
.cx-page-at { min-width: 4.5em; text-align: center; font: 500 13px var(--as-f-mono); letter-spacing: .04em; color: var(--as-ink-2); }
.cx-lift-ghost { border-radius: 16px; overflow: hidden; background: var(--as-surface); box-shadow: var(--as-shadow-3); }
.cx-gallery-empty { grid-column: 1 / -1; display: grid; justify-items: start; gap: 10px; padding: 32px 0; }
.cx-gallery-empty h3 { margin: 0; font: 600 20px/1.5 var(--as-f-display); }
.cx-gallery-empty p { margin: 0; color: var(--as-ink-2); }
.cx-empty { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: 36px 0 12px; }
.cx-empty-copy { display: grid; justify-items: start; gap: 14px; }
.cx-empty-copy h3 { margin: 0; font: 600 24px/1.45 var(--as-f-display); font-feature-settings: "palt"; }
.cx-empty-copy p { margin: 0 0 8px; color: var(--as-ink-2); line-height: 1.95; font-size: 15px; }
.cx-ghosts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.cx-ghost { display: flex; flex-direction: column; overflow: hidden; border: 1px dashed var(--as-line-2); border-radius: 16px; background: var(--as-surface); background: color-mix(in srgb, var(--as-surface) 60%, transparent); transform: rotate(calc((var(--i) - 1.5) * 1.6deg)); animation: as-card-in .8s var(--as-ease) calc(var(--i) * 90ms) both; }
.cx-ghost-art { aspect-ratio: 4 / 3; overflow: hidden; background: var(--as-stage); }
.cx-ghost-art img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) contrast(.9); opacity: .55; }
.cx-ghost-copy { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; }
.cx-ghost-copy small { font-size: 10.5px; letter-spacing: .1em; color: var(--as-ink-3); }
.cx-ghost-copy .cx-ghost-credit { margin-top: 4px; letter-spacing: .02em; }
.cx-ghost-copy strong { font: 600 15px/1.4 var(--as-f-display); color: var(--as-ink-3); }
.cx-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--as-line); font-size: 12px; color: var(--as-ink-3); }
.cx-foot a { color: inherit; }
.as-codex[data-view="detail"] #cx-body { max-width: 760px; width: 100%; box-sizing: border-box; margin: 0 auto; animation: as-fade-up .45s var(--as-ease) both; font: 15px/1.9 var(--as-f-ui); }
.as-codex[data-view="detail"] #cx-body h3 { margin: 4px 0 14px; font: 600 clamp(26px, 3vw, 36px)/1.35 var(--as-f-display); letter-spacing: .02em; font-feature-settings: "palt"; color: var(--as-ink); }
:root[data-lang="en"] .as-codex[data-view="detail"] #cx-body h3 { font: 400 clamp(32px, 3.6vw, 44px)/1.08 var(--as-f-latin); }
.as-codex[data-view="detail"] #cx-body .src, .as-codex[data-view="detail"] #cx-body .note { color: var(--as-ink-3); font-size: 13px; }
.as-codex[data-view="detail"] #cx-body .body, .as-codex[data-view="detail"] #cx-body p { color: var(--as-ink-2); font-size: 15.5px; line-height: 2; white-space: pre-line; }
.as-codex[data-view="detail"] #cx-body a { color: var(--as-accent); text-underline-offset: 3px; }
.as-codex[data-view="detail"] #cx-body img { max-width: 100%; border-radius: 12px; }
.as-codex[data-view="detail"] #cx-body figure, .as-codex[data-view="detail"] .gen-fig { margin: 0 0 18px; padding: 0; overflow: hidden; border-radius: 16px; background: var(--as-stage); border: 0; box-shadow: var(--as-shadow-1); }
.as-codex[data-view="detail"] .gen-fig img { display: block; width: 100%; max-height: 360px; object-fit: contain; background: var(--as-stage); border-radius: 0; }
.as-codex[data-view="detail"] figcaption { padding: 10px 14px; font: 400 11px/1.5 var(--as-f-mono); color: var(--as-ink-3); background: var(--as-surface); }
.as-codex[data-view="detail"] blockquote { margin: 18px 0; padding: 14px 18px; border: 0; border-left: 3px solid var(--as-blue); border-radius: 0 12px 12px 0; background: var(--as-elev); color: var(--as-ink); font: 15px/1.9 var(--as-f-display); }
.as-codex[data-view="detail"] :is(.tags, .related) { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.as-codex[data-view="detail"] :is(.tags, .related) span { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border: 1px solid var(--as-line-2); border-radius: 999px; background: transparent; color: var(--as-ink-2); font-size: 12.5px; }
.as-codex[data-view="detail"] img.portrait { width: 160px; height: 200px; object-fit: cover; border-radius: 14px; float: right; margin: 0 0 12px 18px; box-shadow: var(--as-shadow-1); }
@media (max-width: 720px) {
.cx-hero { align-items: flex-start; }
.cx-count strong { font-size: 64px; }
.as-codex .cx-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.as-codex .cx-card-copy { padding: 12px 12px 4px; }
.as-codex .cx-card-copy > strong { font-size: 15px; }
.cx-empty { grid-template-columns: 1fr; padding-top: 24px; }
.as-codex .cx-bar { padding-top: 16px; }
.as-codex[data-view="detail"] img.portrait { width: 120px; height: 150px; }
}
#as-toast { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 8px); right: auto; bottom: auto; left: 50%; z-index: 500; width: max-content; height: auto; max-width: min(440px, calc(100vw - 24px)); padding: 6px 14px; box-sizing: border-box; border: 0; border-radius: 16px; text-wrap: balance; word-break: auto-phrase; background: var(--as-btn); color: var(--as-on-btn); font: 500 12.5px/1.45 var(--as-f-ui); text-align: center; box-shadow: var(--as-shadow-3); transform: translate(-50%, -12px); opacity: 0; pointer-events: none; transition: opacity .35s var(--as-ease), transform .45s var(--as-ease); }
#as-toast[data-show="true"] { opacity: 1; transform: translate(-50%, 0); }
#as-toast[data-pinned] { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 2px 8px; padding: 4px 4px 4px 14px; text-align: left; }
#as-toast[data-pinned][data-show="true"] { pointer-events: auto; }
#as-toast .as-toast-text { flex: 1 1 15em; min-width: 0; }
#as-toast .as-toast-action { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--as-on-btn); color: var(--as-btn); font: 600 13.5px/1 var(--as-f-ui); white-space: nowrap; cursor: pointer; }
#as-toast .as-toast-close { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
#as-toast .as-toast-close .as-i { width: 18px; height: 18px; }
#as-toast :is(.as-toast-action, .as-toast-close):focus-visible { outline: 2px solid var(--as-on-btn); outline-offset: 2px; }
@media (pointer: coarse) {
.as-nav :is(a, button), .as-back, .as-chip, .as-seg > label > span, .as-seg > a, .as-link-danger { min-height: 44px; }
.as-nav :is(a, button) { display: inline-flex; align-items: center; box-sizing: border-box; }
}
@media (forced-colors: active) {
.as-seg input:checked + span, .as-seg > a[aria-current="true"] { outline: 2px solid Highlight; outline-offset: -2px; }
.as-switch i, .as-switch i::after { forced-color-adjust: none; }
.as-switch i { border: 1px solid CanvasText; background: Canvas; box-shadow: none; }
.as-switch i::after { background: CanvasText; box-shadow: none; }
.as-switch input:checked + i { background: Highlight; border-color: Highlight; }
.as-switch input:checked + i::after { background: HighlightText; }
}
@media (prefers-reduced-motion: reduce) {
.as-shell *, .as-shell *::before, .as-shell *::after, .as-sheet *, .cite-modal, #account-dialog { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
[data-reveal][data-in] { opacity: 1 !important; transform: none !important; }
.as-hero::after { animation: none; }
html[data-loading="true"]::after, .as-boot-story .as-boot-note::before { animation: none; }
}
@media print {
[data-reveal] { opacity: 1 !important; transform: none !important; }
.as-header, .as-sheet { display: none !important; }
}
