:root {
  color-scheme: dark;
  --bg: #090b10;
  --panel: #0e1118;
  --panel-2: #121620;
  --line: #252b38;
  --text: #f5f2ea;
  --muted: #8b93a4;
  --pink: #ff4f8b;
  --mint: #60e4bd;
  --amber: #ffb65c;
  --violet: #ad7cff;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: Inter, "Noto Sans JP", "Yu Gothic UI", sans-serif; }
body { overflow: hidden; }
button, textarea, input { font: inherit; }
button { color: inherit; }
.noise { position: fixed; inset: 0; opacity: .035; pointer-events: none; z-index: 20; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); }

.topbar { height: 68px; display: flex; align-items: center; padding: 0 24px; border-bottom: 1px solid var(--line); background: rgba(9,11,16,.94); position: sticky; top: 0; z-index: 24; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 18px; font-weight: 800; letter-spacing: .18em; width: 310px; }
.brand > span:last-child span { color: var(--mint); }
.brand-mark { width: 34px; height: 34px; border: 1px solid #36584f; border-radius: 10px; display: grid; place-items: center; color: var(--mint); font-size: 25px; box-shadow: inset 0 0 18px rgba(96,228,189,.08); }
.topnav { display: flex; height: 100%; }
.nav-item { border: 0; background: none; padding: 0 22px; color: var(--muted); cursor: pointer; position: relative; font-size: 13px; }
.nav-item.active { color: var(--text); }
.nav-item.active::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: -1px; height: 2px; background: var(--mint); }
.topnav a.nav-item { display: grid; place-items: center; text-decoration: none; }
.language-toggle { align-self: center; margin-left: 10px; min-width: 38px; height: 28px; padding: 0 8px; border: 1px solid #334152; border-radius: 5px; background: transparent; color: var(--mint); font: 700 10px ui-monospace, monospace; letter-spacing: .08em; cursor: pointer; }
.language-toggle:hover { border-color: var(--mint); background: rgba(96,228,189,.08); }
.locale-en { display: none; }
html[lang="en"] .locale-ja { display: none; }
html[lang="en"] .locale-en { display: inline; }
.howto-page { overflow: auto; min-height: 100vh; }
.howto-wrap { width: min(920px, calc(100% - 40px)); margin: 0 auto; padding: 76px 0 100px; }
.howto-wrap h1 { margin-bottom: 14px; font-size: clamp(34px, 6vw, 56px); }
.howto-lead { max-width: 680px; margin: 0 0 46px; color: var(--muted); line-height: 1.8; }
.howto-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.howto-grid article, .howto-note { border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(145deg, rgba(18,22,32,.88), rgba(10,12,18,.88)); padding: 25px; }
.howto-grid b { color: var(--mint); font: 700 11px ui-monospace, monospace; letter-spacing: .12em; }
.howto-grid h2, .howto-note h2 { margin: 16px 0 9px; font-size: 18px; }
.howto-grid p, .howto-note p { margin: 0; color: #aeb5c0; font-size: 13px; line-height: 1.8; }
.howto-note { margin-top: 14px; }
@media (max-width: 620px) { .howto-wrap { width: min(100% - 28px, 920px); padding-top: 42px; } .howto-grid { grid-template-columns: 1fr; } .howto-page .topbar { padding: 0 14px; } .howto-page .brand { width: auto; margin-right: auto; } .howto-page .nav-item { padding: 0 9px; font-size: 11px; } .howto-page .nav-item.active::after { left: 9px; right: 9px; } .howto-page .language-toggle { margin-left: 4px; } }
.mobile-menu-button { display: none; width: 38px; height: 38px; margin-right: 10px; padding: 9px; border: 1px solid #2c3441; border-radius: 7px; background: #0e1219; cursor: pointer; }
.mobile-menu-button span { display: block; height: 1.5px; margin: 4px 0; border-radius: 2px; background: #d9dee6; transition: transform .2s ease, opacity .2s ease; }
.mobile-menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.mobile-menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.mobile-site-nav { display: none; }

.app-shell { display: grid; grid-template-columns: 310px minmax(0, 1fr); height: calc(100vh - 68px); overflow: hidden; transition: grid-template-columns .3s ease; }
.app-shell.deck-collapsed { grid-template-columns: 0 minmax(0, 1fr); }
.deck-panel { min-height: 0; width: 310px; background: var(--panel); border-right: 1px solid var(--line); padding: 28px 24px 22px; overflow-y: auto; z-index: 8; transition: transform .3s ease, opacity .2s ease; display: flex; flex-direction: column; }
.deck-collapsed .deck-panel { transform: translateX(-100%); opacity: 0; pointer-events: none; }
.deck-scrim { display: none; }
.panel-heading { display: flex; justify-content: space-between; }
.eyebrow { margin: 0 0 10px; color: var(--mint); font: 700 10px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .19em; }
h1 { margin: 0 0 28px; font-size: 26px; line-height: 1.35; letter-spacing: -.03em; }
.input-label { display: flex; justify-content: space-between; color: #c7cbd3; font-size: 12px; margin-bottom: 9px; }
.input-label span { color: #687082; font-family: ui-monospace, monospace; }
.moxfield-import { margin-bottom: 13px; }
.moxfield-import[hidden], .input-divider[hidden] { display: none !important; }
.moxfield-import .input-label { margin-bottom: 7px; }
.url-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.url-input-row input { min-width: 0; height: 36px; padding: 0 10px; border: 1px solid #2a303e; border-radius: 4px; outline: 0; background: #090c12; color: #d9dee8; font-size: 10px; }
.url-input-row input:focus { border-color: #467e6e; box-shadow: 0 0 0 3px rgba(96,228,189,.07); }
.url-input-row input::placeholder { color: #454c5a; }
.url-input-row button { height: 36px; padding: 0 10px; border: 1px solid #36584f; border-radius: 4px; background: #101a18; color: var(--mint); font-size: 10px; font-weight: 700; cursor: pointer; }
.url-input-row button:hover { background: #15231f; }
.url-input-row button:disabled { opacity: .45; cursor: wait; }
.moxfield-import > p { margin: 6px 0 0; color: #616979; font-size: 8px; }
.input-divider { display: flex; align-items: center; gap: 8px; margin: 2px 0 12px; color: #535b69; font-size: 8px; }
.input-divider::before, .input-divider::after { content: ""; height: 1px; flex: 1; background: #242a35; }
.textarea-wrap { height: 275px; position: relative; background: #090c12; border: 1px solid #2a303e; border-radius: 5px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.textarea-wrap:focus-within { border-color: #467e6e; box-shadow: 0 0 0 3px rgba(96,228,189,.07); }
textarea { width: 100%; height: 100%; resize: none; border: 0; outline: 0; color: #d9dee8; background: transparent; padding: 15px; line-height: 1.75; font: 12px/1.75 ui-monospace, SFMono-Regular, Consolas, monospace; }
textarea::placeholder { color: #454c5a; }
.line-glow { position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--mint), transparent); opacity: .35; }
.input-hint { margin: 8px 0 8px; color: #616979; font-size: 10px; }
.external-data-notice { margin: 0 0 16px; padding-left: 9px; border-left: 2px solid #315b4f; color: #7d8797; font-size: 9px; line-height: 1.55; }
.input-actions { display: flex; align-items: center; gap: 10px; }
.text-button { border: 0; background: transparent; color: #9ba3b2; padding: 10px 0; font-size: 11px; cursor: pointer; }
.text-button:hover { color: var(--text); }
.primary-button { margin-left: auto; height: 42px; border: 0; border-radius: 4px; background: var(--mint); color: #07110e; font-weight: 800; font-size: 12px; padding: 0 15px 0 18px; display: flex; align-items: center; gap: 16px; cursor: pointer; box-shadow: 0 8px 22px rgba(96,228,189,.13); transition: transform .2s, filter .2s; }
.primary-button:hover { transform: translateY(-1px); filter: brightness(1.06); }
.primary-button:disabled { opacity: .55; cursor: wait; }
.primary-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.analysis-status { margin-top: 22px; padding: 13px; background: #0a0d13; border: 1px solid #202633; border-radius: 5px; display: flex; align-items: center; gap: 11px; }
.status-icon { width: 31px; height: 31px; border: 1px solid #2c3441; display: grid; place-items: center; color: var(--mint); border-radius: 50%; }
.analysis-status strong, .analysis-status span { display: block; }
.analysis-status strong { font-size: 11px; margin-bottom: 3px; }
.analysis-status span { color: #687182; font-size: 9px; }
.analysis-status.loading .status-icon { animation: spin 1s linear infinite; }
.analysis-status.done .status-icon { color: var(--mint); border-color: #315b4f; }
.analysis-status.error { border-color: #5f4732; background: #15110e; }
.analysis-status.error .status-icon { color: var(--amber); border-color: #6a4e32; }
.deck-footer { margin-top: auto; padding-top: 22px; }
.fan-disclaimer-short { margin: 0; color: #545d6c; font-size: 8px; line-height: 1.55; text-align: left; }
.developer-link { display: inline-block; margin-top: 12px; color: #55606f; font-size: 7px; line-height: 1; text-align: left; text-decoration: none; opacity: .28; transition: color .18s, opacity .18s; }
.developer-link:hover, .developer-link:focus-visible { color: var(--mint); opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.howto { display: grid; grid-template-columns: 24px 1fr; gap: 5px 8px; margin-top: 26px; align-items: center; }
.howto span { width: 24px; height: 24px; border: 1px solid #303744; border-radius: 50%; display: grid; place-items: center; color: #778092; font: 9px ui-monospace, monospace; }
.howto p { margin: 0; color: #747d8d; font-size: 10px; }
.howto i { height: 14px; width: 1px; background: #2b313d; margin-left: 12px; }
.mobile-close { display: grid !important; flex: 0 0 auto; }

.workspace { min-width: 0; min-height: 0; height: 100%; display: grid; grid-template-rows: 76px minmax(0, 1fr) 116px; background: #0a0c11; }
.workspace-head { display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid var(--line); }
.workspace-head .eyebrow { margin-bottom: 5px; color: #737c8e; }
.title-row { display: flex; align-items: center; gap: 10px; }
h2 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.result-count { min-width: 25px; height: 20px; border: 1px solid #2a303b; border-radius: 10px; color: var(--mint); display: grid; place-items: center; font: 10px ui-monospace, monospace; }
.workspace-tools { display: flex; align-items: center; gap: 9px; }
.segmented { display: flex; background: #0c0f15; border: 1px solid var(--line); border-radius: 5px; padding: 3px; }
.segmented button { border: 0; background: none; color: #687182; font-size: 10px; padding: 7px 10px; border-radius: 3px; cursor: pointer; }
.segmented button.active { background: #222834; color: #e4e7ec; }
.layout-segmented[hidden] { display: none !important; }
.icon-button { width: 34px; height: 34px; border: 1px solid var(--line); background: #0e1118; border-radius: 5px; display: grid; place-items: center; cursor: pointer; }
.icon-button svg { width: 15px; fill: none; stroke: #8e97a7; stroke-width: 1.8; }
.icon-button:disabled { cursor: not-allowed; opacity: .35; }

.map-stage { min-height: 0; overflow: hidden; position: relative; background-color: #090b10; background-image: radial-gradient(#272d39 1px, transparent 1px); background-size: 23px 23px; }
.map-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 45%, transparent 25%, rgba(5,7,10,.68) 100%); }
.map-svg { width: 100%; height: 100%; position: relative; z-index: 1; cursor: grab; touch-action: none; user-select: none; }
.map-svg.dragging { cursor: grabbing; }
#mapViewport { transform-origin: 800px 400px; transition: transform .25s ease; }
.map-svg.dragging #mapViewport, .map-svg.interacting #mapViewport { transition: none; }
.empty-state path { fill: none; stroke: #252b35; stroke-width: 1; stroke-dasharray: 5 6; }
.empty-orbit { fill: none; stroke: #1e2530; stroke-width: 1; stroke-dasharray: 3 7; }
.empty-core { fill: #0d1118; stroke: #2a3440; }
.empty-state text:not(.empty-title):not(.empty-copy) { fill: #3a4653; font: 42px Georgia; }
.empty-title { fill: #545e6e; font: 700 11px ui-monospace, monospace; letter-spacing: .18em; }
.empty-copy { fill: #3c4451; font-size: 11px; }
.legend { position: absolute; z-index: 3; left: 18px; bottom: 16px; display: flex; align-items: center; gap: 14px; padding: 9px 12px; background: rgba(11,14,20,.86); border: 1px solid #262c37; border-radius: 4px; backdrop-filter: blur(8px); }
.legend.is-hidden { display: none; }
.legend span { display: flex; align-items: center; gap: 6px; color: #6f7888; font-size: 9px; }
.legend i { display: inline-block; }
.dot { width: 6px; height: 6px; border-radius: 50%; }
.card-dot { background: #e5e0d6; }
.line { width: 14px; height: 2px; }
.pink { background: var(--pink); }.mint { background: var(--mint); }.amber { background: var(--amber); }
.zoom-controls { position: absolute; z-index: 3; right: 17px; bottom: 15px; background: rgba(11,14,20,.9); border: 1px solid #262c37; border-radius: 4px; display: flex; align-items: center; }
.zoom-controls button { width: 31px; height: 31px; border: 0; background: none; cursor: pointer; color: #aab1bd; }
.zoom-controls span { color: #636c7b; font: 9px ui-monospace, monospace; min-width: 46px; text-align: center; }
.mobile-input-button { display: none; }
.deck-collapsed .mobile-input-button { display: block; position: absolute; left: 16px; top: 15px; z-index: 4; border: 1px solid #3b806e; background: #10201c; color: var(--mint); border-radius: 4px; padding: 8px 11px; font-size: 10px; }

.combo-tray { border-top: 1px solid var(--line); display: flex; gap: 9px; align-items: stretch; padding: 11px 15px; overflow-x: auto; background: #0b0e14; }
.tray-empty { margin: auto; color: #49515f; font-size: 11px; }
.combo-chip { min-width: 245px; max-width: 285px; border: 1px solid #272e3a; background: #10141c; border-radius: 5px; padding: 12px; cursor: pointer; text-align: left; transition: border-color .2s, background .2s; }
.combo-chip:hover { border-color: #465163; }
.combo-chip.active { border-color: #4d8c7a; background: #111b1a; }
.combo-chip-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.combo-chip strong { font-size: 11px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.combo-chip small { color: #667080; font: 9px ui-monospace, monospace; }
.combo-chip-result { color: #9ca5b3; font-size: 9px; line-height: 1.45; white-space: normal; word-break: normal; overflow-wrap: normal; hyphens: none; }
.power-tag { color: var(--amber); border: 1px solid #604d35; border-radius: 8px; padding: 2px 6px; font: 8px ui-monospace, monospace; }

.detail-panel { position: fixed; z-index: 12; right: 0; top: 68px; bottom: 0; width: 340px; background: rgba(15,18,25,.97); border-left: 1px solid #303744; padding: 28px 25px; transform: translateX(102%); transition: transform .28s ease; box-shadow: -18px 0 45px rgba(0,0,0,.32); overflow-y: auto; backdrop-filter: blur(15px); }
.detail-panel.open { transform: translateX(0); }
.detail-close, .dialog-close { position: absolute; top: 15px; right: 16px; border: 0; background: none; color: #7b8493; font-size: 22px; cursor: pointer; }
.detail-panel h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.4; }
.detail-meta { color: #6f7888; font: 10px ui-monospace, monospace; margin-bottom: 22px; }
.detail-section { margin-top: 21px; }
.detail-section > span { color: #626b79; font: 700 9px ui-monospace, monospace; letter-spacing: .16em; }
.detail-section ol, .detail-section ul { margin: 10px 0 0; padding-left: 20px; color: #bec4ce; font-size: 11px; line-height: 1.7; }
.card-pill { display: flex; align-items: center; gap: 9px; margin-top: 8px; color: #d8dce3; font-size: 11px; }
.card-pill img { width: 30px; height: 42px; object-fit: cover; border-radius: 3px; background: #222833; }
.result-pill { display: inline-flex; margin: 7px 5px 0 0; border: 1px solid #57462f; color: var(--amber); background: #17130e; border-radius: 999px; padding: 5px 8px; font-size: 9px; }
.detail-link { display: block; text-align: center; margin-top: 25px; color: #09130f; background: var(--mint); padding: 11px; text-decoration: none; border-radius: 4px; font-size: 11px; font-weight: 800; }
.detail-add { display: inline-block; margin-right: 5px; padding: 2px 5px; border: 1px solid #3b806e; border-radius: 999px; color: var(--mint); font: 700 8px ui-monospace, monospace; vertical-align: middle; }
.missing-card { color: var(--mint); }

.graph-edge { fill: none; stroke-width: 3; opacity: .78; }
.graph-edge.loop { stroke-dasharray: 7 8; animation: dash 5s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -60; } }
.edge-label rect { fill: #11151d; stroke-width: 1; rx: 10; }
.edge-label text { font: 700 9px "Noto Sans JP", sans-serif; }
.card-node { cursor: pointer; }
.card-node .halo { fill: none; stroke: #546170; stroke-width: 1; opacity: .35; }
.card-node:hover .halo { stroke: var(--mint); opacity: .9; filter: url(#softGlow); }
.card-node .frame { fill: #171b23; stroke: #68717d; stroke-width: 1.5; }
.card-node .card-image { clip-path: inset(0 round 7px); }
.card-node .fallback { fill: #17202a; }
.card-node .fallback-orbit { fill: none; stroke: #355a59; stroke-width: 10; opacity: .42; }
.card-node .orbit-b { stroke: #54354d; stroke-width: 15; opacity: .36; }
.card-node .fallback-rune { fill: none; stroke: #73ad9f; stroke-width: 1; opacity: .5; }
.card-node .fallback-initials { fill: #c7d8d3; font: 700 18px ui-monospace, monospace; letter-spacing: .08em; opacity: .72; }
.card-node .name-bg { fill: rgba(9,11,16,.94); stroke: #363e4a; }
.card-node .name { fill: #f0eee8; font: 700 11px "Noto Sans JP", sans-serif; }
.card-node.suggested .halo { stroke: var(--mint); stroke-width: 2; stroke-dasharray: 7 5; opacity: .95; filter: url(#softGlow); }
.card-node.suggested .frame { stroke: var(--mint); }
.suggestion-plus-bg { fill: #10231e; stroke: var(--mint); stroke-width: 2; }
.suggestion-plus { fill: var(--mint); font: 900 17px ui-monospace, monospace; }
.effect-node rect { fill: #10151b; stroke-width: 1; }
.effect-node text { font: 700 10px "Noto Sans JP", sans-serif; }
.effect-node .icon { font-size: 12px; }
.network-edge { fill: none; stroke-width: 1.7; opacity: .28; transition: opacity .2s, stroke-width .2s; }
.network-edge.selected-underlay { stroke-width: 7; opacity: .3; stroke-linecap: round; filter: url(#softGlow); }
.network-edge.selected { stroke-width: 4; opacity: .95; stroke-linecap: round; stroke-dasharray: 9 8; animation: dash 4s linear infinite; filter: url(#softGlow); }
.flow-endpoint { stroke: rgba(255,255,255,.9); stroke-width: 1.5; filter: url(#softGlow); }
.route-node { cursor: pointer; }
.route-shell { fill: #10151c; stroke: var(--route-color); stroke-width: 1.2; }
.route-node:hover .route-shell, .route-node.selected .route-shell { fill: #171d25; stroke-width: 2.5; filter: url(#softGlow); }
.route-index-bg { fill: var(--route-color); opacity: .13; }
.route-index { fill: var(--route-color); font: 800 8px ui-monospace, monospace; }
.route-card rect { fill: #202735; stroke: #4c5666; stroke-width: 1; }
.route-card text { fill: #94a0b1; font: 700 8px ui-monospace, monospace; }
.route-card image { clip-path: inset(0 round 4px); }
.route-card { cursor: zoom-in; }
.card-hover-preview { position: fixed; z-index: 30; left: 0; top: 0; width: 238px; pointer-events: none; opacity: 0; visibility: hidden; transform: translateY(7px) scale(.97); transform-origin: center; transition: opacity .14s ease, transform .14s ease, visibility 0s linear .14s; padding: 7px; border: 1px solid rgba(96,228,189,.72); border-radius: 13px; background: rgba(8,11,16,.96); box-shadow: 0 22px 62px rgba(0,0,0,.68), 0 0 28px rgba(96,228,189,.14); backdrop-filter: blur(12px); }
.card-hover-preview.visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); transition-delay: 0s; }
.card-hover-preview img { display: block; width: 224px; aspect-ratio: 488 / 680; object-fit: cover; border-radius: 9px; background: #171d26; }
.card-hover-preview span { display: block; padding: 8px 5px 4px; overflow: hidden; color: #f2f3f5; font-size: 11px; font-weight: 800; line-height: 1.35; text-align: center; white-space: nowrap; text-overflow: ellipsis; }
.card-hover-preview.image-missing img { display: none; }
.route-divider { stroke: #2d3542; stroke-width: 1; }
.route-result { fill: #edf0f4; font: 700 9px "Noto Sans JP", sans-serif; }
.route-result-emoji { fill: #edf0f4; font: 12px "Segoe UI Emoji", "Apple Color Emoji", sans-serif; }
.route-more { fill: #7b8595; font: 7px "Noto Sans JP", sans-serif; }
.network-core { cursor: pointer; }
.network-core circle { fill: #0d1219; stroke: #3c4755; stroke-width: 1.5; }
.network-core:hover circle, .network-core:focus circle { stroke: var(--mint); filter: url(#softGlow); }
.network-core:focus { outline: none; }
.network-core .core-ring { fill: none; stroke: #26303b; stroke-dasharray: 4 7; }
.network-core .core-count { fill: var(--mint); font: 800 32px ui-monospace, monospace; }
.network-core .core-label { fill: #e9edf2; font: 800 10px ui-monospace, monospace; letter-spacing: .18em; }
.network-core .core-sub { fill: #687284; font: 9px ui-monospace, monospace; }
.layer-guide { stroke: #202834; stroke-width: 1; stroke-dasharray: 3 9; }
.layer-column-label { fill: #657184; font: 800 10px ui-monospace, monospace; letter-spacing: .18em; }
.layer-result-node { cursor: pointer; }
.layer-result-node rect { fill: #10151c; stroke-width: 1.4; }
.layer-result-node:hover rect, .layer-result-node:focus rect, .layer-result-node.selected rect { fill: #171d25; stroke-width: 2.5; filter: url(#softGlow); }
.layer-result-node:focus { outline: none; }
.layer-result-node .result-icon { font: 20px "Segoe UI Emoji", "Apple Color Emoji", sans-serif; }
.layer-result-node .result-label { fill: #eef1f5; font: 800 11px "Noto Sans JP", sans-serif; }
.layer-result-node .result-count-label { fill: #7d8797; font: 8px ui-monospace, monospace; }
.layer-clear { cursor: pointer; }
.layer-clear rect { fill: #0d1219; stroke: #354250; }
.layer-clear:hover rect, .layer-clear:focus rect { stroke: var(--mint); filter: url(#softGlow); }
.layer-clear:focus { outline: none; }
.layer-clear text { fill: var(--mint); font: 800 10px ui-monospace, monospace; letter-spacing: .08em; }

dialog { width: min(520px, calc(100vw - 32px)); background: #11151d; color: var(--text); border: 1px solid #343c49; border-radius: 8px; padding: 31px; box-shadow: 0 25px 80px rgba(0,0,0,.65); }
dialog::backdrop { background: rgba(3,5,8,.78); backdrop-filter: blur(5px); }
dialog h2 { font-size: 25px; margin-bottom: 16px; }
dialog h3 { margin: 24px 0 8px; color: #dce1e8; font-size: 13px; }
dialog > p:not(.eyebrow) { color: #a5adba; font-size: 12px; line-height: 1.8; }
.source-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 22px 0; }
.source-links a { flex: 1; text-align: center; border: 1px solid #3b4553; color: #dce1e8; text-decoration: none; padding: 11px; font-size: 10px; border-radius: 4px; }
dialog small { display: block; color: #5f6877; font-size: 9px; line-height: 1.6; }
.fan-policy { margin-top: 25px; padding-top: 17px; border-top: 1px solid #29313d; }
.noscript-notice { position: fixed; z-index: 100; inset: 50% auto auto 50%; width: min(520px, calc(100vw - 32px)); transform: translate(-50%,-50%); padding: 24px; border: 1px solid #467e6e; border-radius: 8px; color: #e9edf2; background: #0d1118; box-shadow: 0 24px 80px rgba(0,0,0,.72); }
.noscript-notice strong { color: var(--mint); }
.noscript-notice p { margin: 10px 0 0; color: #9ba3b2; font-size: 12px; line-height: 1.7; }

@media (max-width: 900px) {
  .card-hover-preview { display: none; }
  .brand { width: auto; transform: translateY(-1px); }.topnav { display: none; }.mobile-menu-button { display: block; }
  .app-shell { display: block; }
  .deck-panel { position: fixed; z-index: 23; top: 68px; bottom: 0; left: 0; width: min(360px, calc(100vw - 28px)); transform: translateX(-102%); transition: transform .25s; box-shadow: 20px 0 50px rgba(0,0,0,.45); }
  .deck-panel.open { transform: translateX(0); }.mobile-close { display: none !important; }
  .mobile-site-nav { display: flex; gap: 6px; margin: -1px 0 18px; padding: 7px; border: 1px solid #252d38; border-radius: 6px; background: rgba(8,11,16,.7); }
  .mobile-site-nav a, .mobile-site-nav button { min-height: 31px; padding: 0 9px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #99a2b1; font-size: 10px; text-decoration: none; cursor: pointer; white-space: nowrap; }
  .mobile-site-nav a { display: grid; place-items: center; }
  .mobile-site-nav a:hover, .mobile-site-nav button:hover { border-color: #3a4654; color: #e1e6ec; background: #151b25; }
  .mobile-site-nav #mobileLanguageToggle { margin-left: auto; border-color: #334b46; color: var(--mint); font: 700 9px ui-monospace, monospace; letter-spacing: .06em; }
  .deck-scrim { position: fixed; z-index: 22; inset: 68px 0 0; display: block; padding: 0; border: 0; background: rgba(3,5,9,.66); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility 0s linear .2s; }
  .deck-panel.open + .deck-scrim { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .app-shell.deck-collapsed { grid-template-columns: minmax(0, 1fr); }
  .deck-collapsed .deck-panel { opacity: 1; }
  .workspace { height: calc(100vh - 68px); grid-template-rows: 72px minmax(0, 1fr) 105px; }
  .mobile-input-button, .deck-collapsed .mobile-input-button { display: none; }
  .legend { display: none; }.workspace-head { padding: 0 15px; }
}

@media (max-width: 600px) {
  .topbar { height: 58px; padding: 0 14px; }.brand { font-size: 15px; }.brand-mark { width: 30px; height: 30px; }
  .mobile-menu-button { width: 36px; height: 36px; }
  .mobile-site-nav { margin-bottom: 15px; }
  .mobile-site-nav a, .mobile-site-nav button { padding: 0 8px; font-size: 9px; }
  .deck-panel { top: 58px; }
  .deck-scrim { inset: 58px 0 0; }
  .app-shell { height: calc(100vh - 58px); }.workspace { height: calc(100vh - 58px); }.detail-panel { top: 58px; width: 100%; }
  .workspace-head .eyebrow { display: none; }#fitButton { display: none; }
  .layout-segmented button { padding: 7px 8px; font-size: 9px; }
  .view-segmented button { padding: 7px 8px; font-size: 9px; }
  .workspace-tools { gap: 5px; }
  h2 { font-size: 14px; }.combo-chip { min-width: 220px; }.zoom-controls { bottom: 10px; right: 10px; }
}
