/* IndexForge - interface styles */
:root {
  --bg: #04070F; --bg2: #070B13; --panel: #0A1018; --panel2: #0F151E; --raise: #171B22; --line: #1C2129; --line2: #252930;
  --text: #F5F5F5; --text2: #C5C8CE; --muted: #8A8F99; --faint: #5B606A;
  --a1: #FFCA29; --a2: #F2B705; --accent: #FFCA29; --on-accent: #04070F; --accent-soft: rgba(255, 202, 41, .12); --accent-glow: rgba(255, 202, 41, .28); --cyan-soft: rgba(245, 245, 245, .06);
  --ok: #34d399; --ok-soft: rgba(52, 211, 153, .13); --warn: #FF9F43; --warn-soft: rgba(255, 159, 67, .14); --bad: #fb7185; --bad-soft: rgba(251, 113, 133, .13);
  --grad: linear-gradient(135deg, #FFD54A, #FFCA29 55%, #F2B705);
  --r: 14px; --r-sm: 9px; --shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 1px 0 rgba(255, 255, 255, .03) inset;
  --mono: "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F5F5F5; --bg2: #EEEFF1; --panel: #FFFFFF; --panel2: #FAFAFB; --raise: #F0F1F3; --line: #E3E4E8; --line2: #D2D5DB;
  --text: #04070F; --text2: #2E333D; --muted: #646A75; --faint: #9CA1AB;
  --accent: #A67C00; --accent-soft: rgba(255, 202, 41, .2); --accent-glow: rgba(255, 202, 41, .35); --cyan-soft: rgba(4, 7, 15, .05);
  --shadow: 0 6px 24px rgba(30, 40, 80, .08); color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); overflow: hidden; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); }
::-webkit-scrollbar { width: 11px; height: 11px; } ::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 10px; border: 3px solid var(--bg); } ::-webkit-scrollbar-track { background: transparent; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- frame ---------- */
.titlebar { height: 40px; display: flex; align-items: center; gap: 12px; padding: 0 16px; -webkit-app-region: drag; border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: .2px; }
.logo { width: 22px; height: 22px; border-radius: 7px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 0 16px var(--accent-glow); }
.logo svg { width: 14px; height: 14px; stroke: var(--on-accent); stroke-width: 2.4; fill: none; }
.brand .by { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--line2); border-radius: 99px; padding: 1px 7px; margin-left: 2px; }
.crumb { color: var(--muted); font-size: 13px; }
.made-by { margin-top: 26px; color: var(--faint); font-size: 12px; text-align: center; }
.secure { margin-left: auto; margin-right: 140px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ok); background: var(--ok-soft); padding: 3px 10px; border-radius: 99px; }
.secure svg { width: 13px; height: 13px; }
.shell { display: grid; grid-template-columns: 248px 1fr; height: calc(100% - 40px); }
.side { background: var(--bg2); border-right: 1px solid var(--line); padding: 14px 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.side h6 { margin: 16px 10px 6px; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); font-weight: 650; }
.nav { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 10px; color: var(--text2); cursor: pointer; border: 1px solid transparent; transition: background .15s, color .15s; user-select: none; }
.nav:hover { background: var(--raise); color: var(--text); }
.nav.on { background: var(--accent-soft); color: var(--text); border-color: rgba(255, 202, 41, .3); }
.nav.on svg { color: var(--accent); }
.nav .lock { margin-left: auto; font-size: 10px; color: var(--faint); border: 1px solid var(--line2); padding: 0 6px; border-radius: 99px; }
.side .spacer { flex: 1; }
.main { overflow-y: auto; position: relative; }
.page { padding: 28px 36px 60px; max-width: 1560px; margin: 0 auto; animation: rise .28s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.head h1 { margin: 0; font-size: 26px; font-weight: 680; letter-spacing: -.3px; }
.head p { margin: 4px 0 0; color: var(--muted); max-width: 760px; }
.head .actions { margin-left: auto; display: flex; gap: 8px; }

/* ---------- surfaces ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card h2 { margin: 0 0 4px; font-size: 16px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.card h2 .num { width: 22px; height: 22px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 12px; }
.card .sub { color: var(--muted); margin: 0 0 16px; font-size: 13px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 18px; }
.split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(380px, 1fr); gap: 18px; align-items: start; }
.sticky { position: sticky; top: 18px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.mt { margin-top: 14px; } .mt2 { margin-top: 22px; } .grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .mono { font-family: var(--mono); font-size: 12.5px; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }

/* ---------- controls ---------- */
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--text2); font-weight: 550; min-width: 0; }
label.f .hint { font-weight: 400; color: var(--muted); font-size: 12px; }
.in, select.in, textarea.in { background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--r-sm); padding: 8px 11px; outline: none; width: 100%; transition: border-color .15s, box-shadow .15s; min-height: 36px; }
.in:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.in.mono { font-family: var(--mono); }
select.in { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 15px, calc(100% - 10px) 15px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
.in.sm { min-height: 30px; padding: 4px 8px; font-size: 13px; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line2); background: var(--raise); padding: 8px 14px; border-radius: 10px; cursor: pointer; font-weight: 560; white-space: nowrap; transition: transform .08s, background .15s, border-color .15s, box-shadow .15s; }
.btn:hover { border-color: var(--faint); background: var(--panel2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--grad); border: 0; color: var(--on-accent); font-weight: 650; box-shadow: 0 6px 20px var(--accent-glow); }
.btn.primary:hover { box-shadow: 0 8px 26px rgba(255, 202, 41, .45); filter: brightness(1.04); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text2); }
.btn.ghost:hover { background: var(--raise); }
.btn.danger { color: var(--bad); border-color: rgba(251, 113, 133, .35); background: var(--bad-soft); }
.btn.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }
.btn.xl { padding: 14px 20px; font-size: 15px; border-radius: 13px; }
.icon-btn { width: 30px; height: 30px; display: inline-grid; vertical-align: middle; place-items: center; border-radius: 8px; border: 1px solid transparent; background: none; cursor: pointer; color: var(--muted); }
.icon-btn:hover { background: var(--raise); color: var(--text); border-color: var(--line2); }
.icon-btn svg { width: 16px; height: 16px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-size: 13.5px; color: var(--text2); }
.toggle input { display: none; }
.toggle .sw { width: 36px; height: 20px; border-radius: 99px; background: var(--line2); position: relative; transition: background .2s; flex: none; }
.toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle input:checked + .sw { background: var(--accent); }
.toggle input:checked + .sw::after { transform: translateX(16px); }
.check { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }
.seg { display: inline-flex; background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 7px; cursor: pointer; color: var(--muted); font-weight: 560; }
.seg button.on { background: var(--raise); color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.picker { display: flex; gap: 8px; }
.picker .in { flex: 1; }

/* ---------- choice tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.tile { border: 1px solid var(--line2); border-radius: 12px; padding: 13px 14px; cursor: pointer; background: var(--bg2); transition: border-color .15s, background .15s, transform .12s; display: flex; flex-direction: column; gap: 6px; }
.tile:hover { border-color: var(--faint); transform: translateY(-1px); }
.tile.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft); }
.tile .t { font-weight: 620; display: flex; align-items: center; gap: 8px; }
.tile .t svg { color: var(--accent); }
.tile .d { color: var(--muted); font-size: 12.5px; line-height: 1.4; }

/* ---------- drop zone ---------- */
.drop { border: 1.5px dashed var(--line2); border-radius: 14px; padding: 22px; display: flex; align-items: center; gap: 16px; cursor: pointer; transition: border-color .15s, background .15s; background: var(--bg2); }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--cyan-soft); color: var(--a2); flex: none; }
.drop .ic svg { width: 22px; height: 22px; }
.drop b { display: block; font-weight: 620; }
.drop .p { font-family: var(--mono); font-size: 12.5px; color: var(--text2); word-break: break-all; }

/* ---------- chips, badges ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 10px; border-radius: 99px; background: var(--raise); border: 1px solid var(--line2); color: var(--text2); white-space: nowrap; }
.chip b { color: var(--text); font-weight: 620; }
.chip.ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.chip.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.t tr.bad td { color: var(--bad); } /* keyword map rows with a problem */
.chip.bad { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.chip.ac { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.chip.click { cursor: pointer; }
.chip.click.on { background: #FFCA29; color: #04070F; }
.note { padding: 11px 14px; border-radius: 10px; background: var(--raise); border-left: 3px solid var(--accent); color: var(--text2); font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.note.warn { border-color: var(--warn); background: var(--warn-soft); } .note.bad { border-color: var(--bad); background: var(--bad-soft); color: var(--text); } .note.ok { border-color: var(--ok); background: var(--ok-soft); }
.note svg { flex: none; margin-top: 1px; }

/* ---------- stepper ---------- */
.stepper { display: flex; gap: 6px; margin-bottom: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 6px; }
.step { flex: 1; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; cursor: pointer; color: var(--muted); transition: background .15s, color .15s; min-width: 0; }
.step:hover { background: var(--raise); color: var(--text2); }
.step .n { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line2); display: grid; place-items: center; font-size: 12px; font-weight: 650; flex: none; }
.step.done .n { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.step.on { background: var(--accent-soft); color: var(--text); }
.step.on .n { background: var(--grad); border: 0; color: var(--on-accent); }
.step .l { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step .s { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- tables ---------- */
.tablewrap { border: 1px solid var(--line); border-radius: 12px; overflow: auto; max-height: 460px; background: var(--bg2); }
table.t { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
table.t th { position: sticky; top: 0; background: var(--panel2); text-align: left; font-weight: 620; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; padding: 9px 11px; border-bottom: 1px solid var(--line); white-space: nowrap; z-index: 1; }
table.t td { padding: 7px 11px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover td { background: rgba(255, 202, 41, .05); }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.t td.wrap { white-space: normal; word-break: break-word; }
table.t td.cell { max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--mono); font-size: 12px; }
table.kw td { padding: 5px 6px; }
table.kw td:first-child { padding-left: 10px; }
table.kw .in.sm { background: transparent; border-color: transparent; }
table.kw .in.sm:hover { border-color: var(--line2); }
table.kw .in.sm:focus { background: var(--bg); border-color: var(--accent); }
table.kw tr.off td { opacity: .45; }
.c { text-align: center; }

/* ---------- preview ---------- */
.preview { background: #02040A; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-family: var(--mono); font-size: 12.5px; line-height: 1.65; white-space: pre-wrap; word-break: break-all; max-height: calc(100vh - 260px); overflow: auto; color: #d7def0; }
:root[data-theme="light"] .preview { background: #04070F; }
.preview .tg { color: #8A8F99; } .preview .sys { color: #FFCA29; } .preview .kn { color: #A9B4C8; } .preview .kv { color: #F5F5F5; }
.preview .be { color: #34d399; font-weight: 600; } .preview .held { display: block; color: #fb7185; background: rgba(251, 113, 133, .1); border-radius: 6px; padding: 6px 9px; margin: 2px 0 10px; }
.preview .wn { display: block; color: #fbbf24; font-size: 11.5px; margin-bottom: 10px; }
.preview .gap { display: block; height: 10px; }
.panel-title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 620; }
.panel-title .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.panel-title .dot.busy { background: var(--warn); box-shadow: 0 0 10px var(--warn); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 15px 17px; position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--line2); }
.stat.ok::before { background: var(--ok); } .stat.warn::before { background: var(--warn); } .stat.bad::before { background: var(--bad); } .stat.ac::before { background: var(--grad); }
.stat b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 12.5px; }
.bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--grad); border-radius: 99px; transition: width .3s ease; }
.bar.ind > i { width: 35% !important; animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
.hbar { display: grid; grid-template-columns: minmax(120px, 220px) 1fr 110px; gap: 12px; align-items: center; font-size: 13px; padding: 5px 0; }
.hbar .bar { height: 10px; }
.score { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.score .bar { width: 64px; height: 6px; }
.score .bar > i.lo { background: var(--bad); } .score .bar > i.mid { background: var(--warn); } .score .bar > i.hi { background: var(--ok); }

/* ---------- action panel ---------- */
.actions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.action { border: 1px solid var(--line2); border-radius: 14px; padding: 16px; background: var(--bg2); cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, transform .12s, background .15s; text-align: left; }
.action:hover { border-color: var(--accent); transform: translateY(-2px); }
.action.go { background: linear-gradient(135deg, rgba(255, 202, 41, .16), rgba(255, 202, 41, .04)); border-color: rgba(255, 202, 41, .45); }
.action .t { font-weight: 650; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.action .d { color: var(--muted); font-size: 12.5px; }
.action:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- home ---------- */
.hero { border-radius: 20px; padding: 30px 32px; background: radial-gradient(1100px 320px at 0% 0%, rgba(255, 202, 41, .16), transparent 60%), radial-gradient(900px 300px at 100% 100%, rgba(245, 245, 245, .05), transparent 60%), var(--panel); border: 1px solid var(--line); margin-bottom: 22px; position: relative; overflow: hidden; }
.hero h1 { margin: 0; font-size: 30px; letter-spacing: -.5px; }
.hero p { color: var(--text2); max-width: 760px; margin: 8px 0 18px; }
.flow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--text2); }
.flow .chip { background: rgba(255, 255, 255, .05); }
.mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.mod { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; display: flex; flex-direction: column; gap: 8px; min-height: 150px; }
.mod:hover { transform: translateY(-3px); border-color: rgba(255, 202, 41, .5); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.mod .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.mod .ic.cy { background: var(--cyan-soft); color: var(--text); } .mod .ic.gr { background: var(--ok-soft); color: var(--ok); } .mod .ic.gy { background: var(--raise); color: var(--muted); }
.mod b { font-size: 15px; } .mod p { margin: 0; color: var(--muted); font-size: 13px; }
.mod.locked { cursor: default; opacity: .8; } .mod.locked:hover { transform: none; border-color: var(--line); box-shadow: none; }
.section-title { margin: 26px 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 650; }

/* ---------- modal & toast ---------- */
.scrim { position: fixed; inset: 0; background: rgba(5, 8, 15, .6); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 50; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(560px, 92vw); background: var(--panel); border: 1px solid var(--line2); border-radius: 18px; padding: 22px 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); animation: rise .2s; }
.modal h3 { margin: 0 0 8px; font-size: 18px; }
.modal p { color: var(--text2); margin: 0 0 18px; white-space: pre-line; }
.toasts { position: fixed; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 10px; z-index: 60; }
.toast { background: var(--panel2); border: 1px solid var(--line2); border-left: 3px solid var(--accent); border-radius: 12px; padding: 11px 16px; box-shadow: var(--shadow); max-width: 440px; animation: rise .2s; font-size: 13.5px; }
.toast.ok { border-left-color: var(--ok); } .toast.bad { border-left-color: var(--bad); } .toast.warn { border-left-color: var(--warn); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty svg { width: 40px; height: 40px; color: var(--faint); margin-bottom: 8px; }
details.adv { border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; background: var(--bg2); }
details.adv summary { cursor: pointer; padding: 8px 0; color: var(--text2); font-weight: 580; }
details.adv[open] { padding-bottom: 14px; }
.kbd { font-family: var(--mono); font-size: 11.5px; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line2); background: var(--raise); }
/* ---------- user manual ---------- */
.man-page { max-width: 1480px; }
.man-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 26px; align-items: start; }
.man-toc { position: sticky; top: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; max-height: calc(100vh - 110px); overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.man-toc nav { display: flex; flex-direction: column; gap: 1px; margin-top: 4px; }
.man-toc-item { display: flex; gap: 9px; align-items: baseline; padding: 7px 9px; border-radius: 8px; color: var(--text2); cursor: pointer; font-size: 13.2px; line-height: 1.35; }
.man-toc-item:hover { background: var(--raise); color: var(--text); }
.man-toc-item.on { background: var(--accent-soft); color: var(--text); }
.man-n { font-size: 11px; color: var(--faint); min-width: 16px; text-align: right; font-variant-numeric: tabular-nums; }
.man-toc-item.on .man-n { color: var(--accent); }
.man-toc-foot { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }
.man-body { min-width: 0; }
.man-ch { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 30px 28px; margin-bottom: 18px; box-shadow: var(--shadow); }
.man-ch-head { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.man-ch-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.man-ch-ic svg { width: 21px; height: 21px; }
.man-ch-num { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 650; }
.man-ch h2 { margin: 0; font-size: 22px; letter-spacing: -.2px; }
.man-intro { font-size: 15px; color: var(--text2); margin: 6px 0 16px; line-height: 1.55; }
.man-h { font-size: 15.5px; margin: 22px 0 8px; }
.man-p { color: var(--text2); line-height: 1.65; margin: 0 0 12px; }
.man-steps, .man-list { color: var(--text2); line-height: 1.6; margin: 0 0 14px; padding-left: 0; list-style: none; }
.man-steps { counter-reset: s; }
.man-steps li { counter-increment: s; position: relative; padding: 6px 0 6px 40px; }
.man-steps li::before { content: counter(s); position: absolute; left: 0; top: 5px; width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: var(--on-accent); font-weight: 700; font-size: 12.5px; display: grid; place-items: center; }
.man-list li { position: relative; padding: 4px 0 4px 22px; }
.man-list li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.man-steps b, .man-list b, .man-p b, .man-table b { color: var(--text); }
.man-fig { margin: 16px 0 20px; }
.man-fig img { display: block; width: 100%; border-radius: 12px; border: 1px solid var(--line2); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); cursor: zoom-in; transition: transform .15s; }
.man-fig img:hover { transform: translateY(-2px); }
.man-fig figcaption { color: var(--muted); font-size: 12.8px; margin-top: 8px; }
.man-call { display: flex; gap: 11px; padding: 12px 15px; border-radius: 11px; margin: 14px 0; color: var(--text2); line-height: 1.55; border-left: 3px solid var(--accent); background: var(--accent-soft); }
.man-call svg { flex: none; margin-top: 2px; color: var(--accent); }
.man-call.warn { border-color: var(--warn); background: var(--warn-soft); } .man-call.warn svg { color: var(--warn); }
.man-call.note { border-color: var(--line2); background: var(--raise); } .man-call.note svg { color: var(--muted); }
.man-call b { color: var(--text); }
.man-table { margin: 10px 0 18px; }
.man-table td { line-height: 1.5; }
.man-table td.man-first { font-weight: 600; color: var(--text); width: 28%; }
.man-zoom { margin: 0; max-width: 94vw; max-height: 92vh; }
.man-zoom img { max-width: 94vw; max-height: 86vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); display: block; }
.man-zoom figcaption { color: #F5F5F5; text-align: center; margin-top: 10px; font-size: 13.5px; }

@media (max-width: 1250px) { .split { grid-template-columns: 1fr; } .sticky { position: static; } .actions-grid { grid-template-columns: 1fr; } }

/* ---------- EAS brand marks ---------- */
.eas-mark { display: inline-block; vertical-align: middle; }
.eas-mark .ink-dark { display: none; }
:root[data-theme="light"] .eas-mark .ink-light { display: none; }
:root[data-theme="light"] .eas-mark .ink-dark { display: inline; }
.brand .by { display: inline-flex; align-items: center; gap: 5px; }
.brand .by img { height: 11px; }
.made-by { display: flex; align-items: center; justify-content: center; gap: 9px; }
.made-by img { height: 20px; }
.about-logo img { height: 92px; }
:root { --on-accent: #04070F; }

/* keyword split and trim */
.modal.wide { width: min(1080px, 95vw); max-height: 90vh; overflow: auto; }
.modal.eula { width: min(820px, 95vw); display: flex; flex-direction: column; overflow: hidden; }
.eula-text { flex: 1; min-height: 0; max-height: 58vh; overflow: auto; margin: 0 0 16px; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; white-space: pre-wrap; font: 12.5px/1.55 ui-sans-serif, "Segoe UI", sans-serif; color: var(--text2); }
.kwmore { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.kwmore-side { position: sticky; top: 0; }
.kwsample-make { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
@media (max-width: 820px) { .kwmore { grid-template-columns: 1fr; } .kwmore-side { position: static; } }
.icon-btn.set { color: var(--accent); background: var(--accent-soft); }
.kwsample { border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; background: var(--bg2); }
.kwsample-h, .kwsample-r { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: center; }
.kwsample-h { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.kwsample-r { padding: 7px 0; border-bottom: 1px solid var(--line); }
.kwsample-r:last-of-type { border-bottom: 0; }
.kwsample-r > span:first-child { overflow-wrap: anywhere; color: var(--text2); }
.kwsample-r .chip { margin: 2px 4px 2px 0; white-space: normal; overflow-wrap: anywhere; }

/* file check */
.fcbox { border: 1px solid var(--line2); border-radius: 12px; padding: 12px 14px; background: var(--bg2); }
.fcopts { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding-top: 20px; }

/* ---------- keyword grid: "Only for groups" picker ---------- */
.gpick { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 150px; max-width: 240px; padding: 5px 9px; border-radius: 8px; border: 1px solid var(--line2); background: var(--bg2); color: var(--muted); font-size: 12.5px; cursor: pointer; text-align: left; }
.gpick span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gpick svg { width: 14px; height: 14px; flex: none; }
.gpick:hover { border-color: var(--accent); color: var(--text); }
.gpick.set { color: var(--text); border-color: rgba(255, 202, 41, .45); }
.gmenu { position: fixed; z-index: 60; width: 440px; max-width: calc(100vw - 16px); max-height: min(560px, 80vh); overflow-y: auto; background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; padding: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); animation: rise .15s; }
.gmenu-s { margin: 10px 2px 4px; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); font-weight: 650; }
.gmenu .grow-row { display: grid; grid-template-columns: 18px 64px 1fr auto; align-items: center; gap: 8px; padding: 6px 6px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.gmenu .grow-row:hover { background: var(--raise); }
.gmenu .grow-row b { font-size: 12.5px; }
.gmenu .gm { color: var(--muted); font-size: 12.5px; }
.gmenu .chip { font-size: 10.5px; padding: 0 7px; }
