.console {
    --panel: #0f1216; --card: #151920; --card2: #1a1f27; --line: #242a33; --line2: #2d343f;
    --text: #eaedf2; --muted: #8b94a3; --faint: #5e6675;
    --mint: #3ee0b0; --mint-d: rgba(62,224,176,.1); --red: #ff6159; --amber: #ffc35c;
    --job: #6ea8ff; --gang: #b38cff; --civ: #ffc35c;
    position: fixed; inset: 0; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 50%, rgba(5,7,10,.2), rgba(5,7,10,.6));
}
.console .app { zoom: var(--z); position: relative; width: 1720px; height: 948px; display: grid; grid-template-columns: 268px 1fr 490px; border-radius: 22px; overflow: hidden;
    background: var(--panel); border: 1px solid #262c36; box-shadow: 0 50px 120px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.05); }
.console.away { display: none; }

.side { display: flex; flex-direction: column; min-height: 0; padding: 22px 14px 16px; border-right: 1px solid var(--line); background: #0c0e12; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 20px; }
.brand .mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; color: #062019; background: linear-gradient(135deg, #5af0c3, #22b58d); box-shadow: 0 6px 18px rgba(62,224,176,.3); }
.brand .mark svg { width: 21px; height: 21px; stroke-width: 2.2; }
.brand b { display: block; font: 800 16px/1 Inter; letter-spacing: -.01em; }
.brand small { display: block; margin-top: 5px; font: 500 12px/1 Inter; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.brand .x { margin-left: auto; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); }
.brand .x:hover { background: var(--card2); color: var(--text); }
.brand .x svg { width: 16px; height: 16px; }
.sh { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 10px; font: 700 11px/1 Inter; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.sh button { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 7px; font: 700 11px/1 Inter; letter-spacing: 0; text-transform: none; color: var(--mint); }
.sh button:hover { background: var(--mint-d); }
.sh button svg { width: 13px; height: 13px; stroke-width: 2.2; }
.blist { flex: 1; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.bld { position: relative; display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 11px 12px; border-radius: 12px; margin-bottom: 2px; text-align: left; }
.bld:hover { background: #12161c; }
.bld b { font: 600 14px/1.15 Inter; }
.bld small { font: 500 12px/1 Inter; color: var(--muted); }
.bld .bar { display: flex; height: 4px; border-radius: 2px; overflow: hidden; background: rgba(255,97,89,.55); margin-top: 3px; }
.bld .bar i { background: var(--mint); }
.bld.sel { background: var(--card2); box-shadow: inset 0 0 0 1px var(--line2); }
.bld.sel::before { content: ''; position: absolute; left: -8px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--mint); }
.bld.unsorted b { color: var(--muted); font-style: italic; }
.side .me { display: flex; align-items: center; gap: 10px; padding: 12px 10px 0; border-top: 1px solid var(--line); }
.side .me .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, #2b3340, #1a1f27); font: 800 13px/1 Inter; color: var(--mint); box-shadow: inset 0 0 0 1px var(--line2); }
.side .me b { font: 700 13px/1 Inter; } .side .me small { display: block; margin-top: 4px; font: 500 11.5px/1 Inter; color: var(--muted); }

.main { display: flex; flex-direction: column; gap: 16px; padding: 22px 22px 20px; min-width: 0; min-height: 0; }
.top { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.top h1 { margin: 0; display: flex; align-items: center; gap: 10px; font: 800 27px/1 Inter; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 460px; }
.top .sub { margin-top: 7px; display: flex; gap: 8px; align-items: center; font: 500 13px/1 Inter; color: var(--muted); }
.top .sub svg { width: 14px; height: 14px; }
.top .sp { flex: 1; }
.iconbtn { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); flex: none; }
.iconbtn:hover { background: var(--card2); color: var(--text); }
.iconbtn svg { width: 17px; height: 17px; }
.search { display: flex; align-items: center; gap: 9px; width: 230px; height: 40px; padding: 0 13px; border-radius: 11px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--faint); }
.search svg { width: 16px; height: 16px; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 500 13px/1 Inter; color: var(--text); }
.search input::placeholder { color: var(--faint); }
.b2 { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 15px; border-radius: 11px; font: 700 13px/1 Inter; background: var(--card2); box-shadow: inset 0 0 0 1px var(--line2); white-space: nowrap; flex: none; }
.b2:hover { background: #20262f; }
.b2 svg { width: 16px; height: 16px; }
.b2.pri { background: var(--mint); color: #05231a; box-shadow: 0 6px 18px rgba(62,224,176,.25); }
.b2.pri:hover { filter: brightness(1.06); }
.b2.pri svg { stroke-width: 2.4; }
.b2.danger { color: #ff8b84; }
.b2.small { height: 32px; padding: 0 11px; border-radius: 9px; font-size: 12px; }
.b2:disabled { opacity: .45; cursor: default; filter: none; }

.map { position: relative; flex: none; height: 290px; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); background: #0b0d10; }
.map.small { height: 190px; }
.map #mapEl { position: absolute; inset: 0; background: #0b0d10; }
.map .leaflet-container { background: #0b0d10; font: inherit; }
.map .shade { position: absolute; inset: 0; z-index: 400; pointer-events: none; background: linear-gradient(180deg, rgba(10,12,16,.15), rgba(10,12,16,.35)); }
.map .ctl { position: absolute; right: 12px; top: 12px; z-index: 500; display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; background: rgba(15,18,22,.88); box-shadow: inset 0 0 0 1px var(--line2); }
.map .ctl button { width: 32px; height: 30px; display: grid; place-items: center; font: 700 16px/1 Inter; color: var(--muted); }
.map .ctl button:hover { color: var(--text); background: rgba(255,255,255,.05); }
.map .ctl button + button { border-top: 1px solid var(--line2); }
.map-missing { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font: 500 13px/1 Inter; }
.mp { position: relative; display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.mp .dot { border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); display: grid; place-items: center; background: #1d232c; box-shadow: 0 6px 14px rgba(0,0,0,.5), inset 0 0 0 1.5px #3a4350; }
.mp .dot svg { width: 15px; height: 15px; transform: rotate(45deg); color: #c7cfdb; }
.mp.sel .dot { background: var(--mint); box-shadow: 0 0 0 6px rgba(62,224,176,.18), 0 8px 18px rgba(0,0,0,.5); }
.mp.sel .dot svg { width: 19px; height: 19px; color: #05231a; stroke-width: 2.3; }
.mp .lab { position: absolute; left: calc(100% + 8px); top: 0; padding: 7px 10px; border-radius: 10px; background: rgba(15,18,22,.92); box-shadow: inset 0 0 0 1px var(--line2); white-space: nowrap; font: 700 12.5px/1 Inter; color: var(--text); }
.mp .lab small { display: block; margin-top: 4px; font: 500 11px/1 Inter; color: var(--muted); }
.md { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font: 800 9px/1 Inter; color: #0b0d10; box-shadow: 0 0 0 2px rgba(11,13,16,.85), 0 3px 8px rgba(0,0,0,.5); cursor: pointer; }
.md.locked { background: #ff8b84; }
.md.open { background: var(--mint); }
.md.sel { box-shadow: 0 0 0 3px #fff, 0 3px 10px rgba(0,0,0,.6); }
.leaflet-tooltip { background: rgba(15,18,22,.94); color: var(--text); border: 0; box-shadow: inset 0 0 0 1px var(--line2); border-radius: 8px; font: 600 12px/1.2 Inter; padding: 6px 9px; }
.leaflet-tooltip-top:before { border-top-color: rgba(15,18,22,.94); }

.body { flex: 1; min-height: 0; display: flex; flex-direction: column; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.tr { display: grid; grid-template-columns: 1.15fr .8fr 1.6fr 150px; align-items: center; gap: 14px; padding: 0 18px; }
.th { flex: none; height: 42px; font: 700 11px/1 Inter; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line); }
.rows { flex: 1; overflow-y: auto; }
.td { position: relative; min-height: 66px; padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); cursor: pointer; }
.td:hover { background: #181d24; }
.td.sel { background: #1b2129; }
.td.sel::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--mint); }
.dn { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dn .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--card2); box-shadow: inset 0 0 0 1px var(--line2); color: #c7cfdb; flex: none; }
.dn .ic svg { width: 19px; height: 19px; }
.dn b { display: block; font: 700 14px/1.15 Inter; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dn small { display: block; margin-top: 5px; font: 500 12px/1 Inter; color: var(--muted); }
.lkc { display: flex; align-items: center; gap: 10px; font: 600 13px/1 Inter; }
.lkc .dv { width: 24px; height: 36px; flex: none; }
.lkc .dv svg { width: 100%; height: 100%; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ch { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 13px; background: var(--card2); box-shadow: inset 0 0 0 1px var(--line2); font: 600 12px/1 Inter; color: #d5dbe5; white-space: nowrap; }
.ch i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.ch.job i { background: var(--job); } .ch.gang i { background: var(--gang); } .ch.civ i { background: var(--civ); } .ch.all i { background: var(--mint); }
.ch.none { color: var(--faint); background: none; box-shadow: inset 0 0 0 1px dashed; box-shadow: none; border: 1px dashed var(--line2); }
.st { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: 13px; font: 700 12px/1 Inter; white-space: nowrap; }
.pill svg { width: 13px; height: 13px; stroke-width: 2.2; }
.pill.locked { background: rgba(255,97,89,.12); color: #ff8b84; }
.pill.open { background: rgba(62,224,176,.12); color: var(--mint); }
.sw { position: relative; width: 40px; height: 23px; border-radius: 12px; background: #39404c; flex: none; cursor: pointer; transition: background .15s; }
.sw::after { content: ''; position: absolute; left: 3px; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.4); transition: left .15s; }
.sw.on { background: var(--mint); } .sw.on::after { left: 20px; }
.sw.red.on { background: var(--red); }

.empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 30px; text-align: center; color: var(--muted); }
.empty b { font: 800 19px/1.2 Inter; color: var(--text); }
.empty p { margin: 0; max-width: 460px; font: 500 13.5px/1.55 Inter; }
.steps { display: flex; gap: 12px; margin-top: 6px; }
.steps div { width: 170px; padding: 14px; border-radius: 14px; text-align: left; background: var(--card2); box-shadow: inset 0 0 0 1px var(--line2); }
.steps i { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; margin-bottom: 10px; font: 800 12px/1 Inter; font-style: normal; color: #05231a; background: var(--mint); }
.steps span { display: block; font: 600 12.5px/1.45 Inter; color: #cfd6e0; }

.drawer { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--line); background: #11141a; }
.hero { position: relative; display: flex; gap: 18px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse 60% 90% at 18% 50%, rgba(62,224,176,.10), transparent 70%); }
.hero .dev { width: 96px; height: 144px; flex: none; filter: drop-shadow(0 14px 18px rgba(0,0,0,.55)); }
.hero .dev svg { width: 100%; height: 100%; }
.hero .info { flex: 1; min-width: 0; padding-top: 2px; }
.hero .k { font: 700 11px/1 Inter; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero .nm { width: 100%; margin: 7px 0 5px; padding: 3px 6px; margin-left: -6px; border: 0; border-radius: 8px; outline: 0; background: transparent; font: 800 24px/1.1 Inter; letter-spacing: -.02em; color: var(--text); }
.hero .nm:hover { background: rgba(255,255,255,.04); }
.hero .nm:focus { background: var(--card2); box-shadow: inset 0 0 0 1px var(--line2); }
.hero .meta { font: 500 13px/1 Inter; color: var(--muted); }
.lockrow { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 11px 14px; border-radius: 13px; background: rgba(255,97,89,.08); box-shadow: inset 0 0 0 1px rgba(255,97,89,.22); }
.lockrow.open { background: rgba(62,224,176,.08); box-shadow: inset 0 0 0 1px rgba(62,224,176,.25); }
.lockrow > svg { width: 20px; height: 20px; color: #ff8b84; flex: none; }
.lockrow.open > svg { color: var(--mint); }
.lockrow b { font: 700 14px/1 Inter; } .lockrow small { display: block; margin-top: 4px; font: 500 12px/1 Inter; color: var(--muted); }
.lockrow .sw { margin-left: auto; }
.acts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.acts button { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px; border-radius: 9px; background: var(--card2); box-shadow: inset 0 0 0 1px var(--line2); font: 600 12px/1 Inter; color: #cfd6e0; }
.acts button:hover { background: #20262f; }
.acts button svg { width: 14px; height: 14px; }
.acts .del { color: #ff8b84; }

.dbody { flex: 1; overflow-y: auto; padding: 0 22px 10px; }
.sect { padding: 15px 0 13px; border-bottom: 1px solid var(--line); }
.sect:last-child { border-bottom: 0; }
.sect h4 { margin: 0 0 11px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 700 11px/1 Inter; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.sect h4 .aside { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 Inter; letter-spacing: 0; text-transform: none; color: var(--muted); }
.devs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.dvt { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 9px 0 8px; border-radius: 11px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font: 600 10.5px/1 Inter; color: var(--muted); }
.dvt:hover { background: #181d24; }
.dvt .dv { width: 28px; height: 42px; }
.dvt .dv svg { width: 100%; height: 100%; }
.dvt.on { background: var(--mint-d); box-shadow: inset 0 0 0 1.5px var(--mint); color: var(--mint); }
.types { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.tyt { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 10px 0 9px; border-radius: 11px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font: 600 10px/1.1 Inter; color: var(--muted); text-align: center; }
.tyt svg { width: 20px; height: 20px; }
.tyt:hover { background: #181d24; }
.tyt.on { background: var(--mint-d); box-shadow: inset 0 0 0 1.5px var(--mint); color: var(--mint); }
.hint { margin-top: 10px; font: 500 12.5px/1.45 Inter; color: var(--muted); }
.warnbox { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 10px 12px; border-radius: 11px; background: rgba(255,195,92,.08); box-shadow: inset 0 0 0 1px rgba(255,195,92,.25); font: 500 12.5px/1.45 Inter; color: #ffd796; }
.warnbox svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; font: 500 13px/1 Inter; }
.kv .k { color: var(--muted); }
.kv .v { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.code { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 6px 0 10px; border-radius: 9px; background: var(--card2); box-shadow: inset 0 0 0 1px var(--line2); }
.code input { width: 120px; border: 0; outline: 0; background: none; font: 700 15px/1 'JetBrains Mono', monospace; letter-spacing: .25em; color: var(--text); }
.code input::placeholder { letter-spacing: 0; font: 500 12px/1 Inter; color: var(--faint); }
.mini { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: var(--muted); }
.mini:hover { background: rgba(255,255,255,.06); color: var(--text); }
.mini svg { width: 14px; height: 14px; }
select.sel2, .sel2 { height: 30px; padding: 0 28px 0 10px; border: 0; border-radius: 8px; outline: 0; background: var(--card2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238b94a3' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center;
    box-shadow: inset 0 0 0 1px var(--line2); font: 600 12px/1 Inter; color: #cfd6e0; -webkit-appearance: none; appearance: none; cursor: pointer; }
select.sel2 option { background: #1a1f27; color: #eaedf2; }
.grp { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.grp .gi { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.grp .gi svg { width: 15px; height: 15px; }
.grp.job .gi { background: rgba(110,168,255,.14); color: var(--job); }
.grp.gang .gi { background: rgba(179,140,255,.14); color: var(--gang); }
.grp.civ .gi { background: rgba(255,195,92,.14); color: var(--civ); }
.grp.all .gi { background: var(--mint-d); color: var(--mint); }
.grp b { flex: 1; min-width: 0; font: 600 13.5px/1.2 Inter; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grp .cid { font: 500 11.5px/1 'JetBrains Mono', monospace; color: var(--muted); padding: 0 8px; height: 26px; display: inline-flex; align-items: center; border-radius: 7px; background: var(--card2); box-shadow: inset 0 0 0 1px var(--line2); }
.addrow { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.addrow button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 9px; border: 1px dashed var(--line2); font: 600 12px/1 Inter; color: var(--muted); }
.addrow button:hover { color: var(--text); border-color: #3b4452; }
.addrow button svg { width: 13px; height: 13px; }
.copied { display: flex; align-items: center; gap: 10px; margin: 14px 0 2px; padding: 10px 12px; border-radius: 11px; background: var(--mint-d); box-shadow: inset 0 0 0 1px rgba(62,224,176,.28); font: 500 12.5px/1.4 Inter; color: #bdf3e2; }
.copied svg { width: 16px; height: 16px; color: var(--mint); flex: none; }
.copied b { color: #eafff8; }
.copied button { margin-left: auto; height: 28px; padding: 0 10px; border-radius: 8px; flex: none; background: rgba(0,0,0,.25); box-shadow: inset 0 0 0 1px rgba(62,224,176,.35); font: 700 11.5px/1 Inter; color: var(--mint); white-space: nowrap; }
.copied button:hover { background: rgba(62,224,176,.15); }
.kv.still { margin-top: 12px; }
.still-hint { margin-top: 2px; }
.nobody { margin-top: 2px; padding: 10px 12px; border-radius: 11px; background: rgba(255,97,89,.07); box-shadow: inset 0 0 0 1px rgba(255,97,89,.2); font: 500 12.5px/1.45 Inter; color: #ffb3ad; }
.dfoot { display: flex; align-items: center; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); background: #0f1216; }
.dfoot .note { flex: 1; min-width: 0; font: 500 12px/1.3 Inter; color: var(--faint); }
.dfoot .note.dirty { color: var(--amber); }
.dempty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 30px; text-align: center; color: var(--muted); }
.dempty .art { display: flex; gap: 10px; opacity: .9; }
.dempty .art span { width: 46px; height: 69px; filter: drop-shadow(0 8px 10px rgba(0,0,0,.5)); }
.dempty .art span svg { width: 100%; height: 100%; }
.dempty b { font: 800 17px/1.2 Inter; color: var(--text); }
.dempty p { margin: 0; max-width: 320px; font: 500 13px/1.5 Inter; }

.scanrow { display: grid; grid-template-columns: 34px 30px 1.3fr 150px 1fr 70px; align-items: center; gap: 12px; padding: 0 18px; min-height: 52px; border-bottom: 1px solid var(--line); }
.scanrow:hover { background: #181d24; }
.scanrow.off { opacity: .55; }
.scanrow .num { font: 800 13px/1 'JetBrains Mono', monospace; color: var(--muted); }
.scanrow input.nm2 { width: 100%; height: 30px; padding: 0 9px; border: 0; border-radius: 8px; outline: 0; background: var(--card2); box-shadow: inset 0 0 0 1px var(--line2); font: 600 13px/1 Inter; color: var(--text); }
.scanrow .arch { font: 500 11.5px/1.2 'JetBrains Mono', monospace; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scanrow .dist { font: 600 12px/1 Inter; color: var(--muted); text-align: right; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; margin-left: 6px; border-radius: 6px; font: 700 10px/1 Inter; letter-spacing: .04em; }
.tag.sure { background: var(--mint-d); color: var(--mint); }
.tag.maybe { background: rgba(255,195,92,.1); color: var(--amber); }
.cb { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: var(--card2); box-shadow: inset 0 0 0 1.5px var(--line2); color: #05231a; cursor: pointer; }
.cb svg { width: 14px; height: 14px; stroke-width: 2.6; opacity: 0; }
.cb.on { background: var(--mint); box-shadow: none; }
.cb.on svg { opacity: 1; }

.modal-back { position: absolute; inset: 0; z-index: 2000; display: grid; place-items: center; background: rgba(5,7,10,.55); }
.modal { zoom: var(--z); width: 520px; max-height: 760px; display: flex; flex-direction: column; border-radius: 20px; background: #12161c; box-shadow: 0 40px 90px rgba(0,0,0,.6), inset 0 0 0 1px var(--line2); overflow: hidden; animation: mIn .16s ease-out; }
@keyframes mIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.modal .mh { display: flex; align-items: center; gap: 12px; padding: 18px 20px 14px; }
.modal .mh b { flex: 1; font: 800 18px/1.2 Inter; }
.modal .mb { flex: 1; overflow-y: auto; padding: 0 20px 6px; }
.modal .mb p { margin: 0 0 12px; font: 500 13px/1.5 Inter; color: var(--muted); }
.modal .mf { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px 18px; }
.field { display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 13px; border-radius: 11px; background: var(--card2); box-shadow: inset 0 0 0 1px var(--line2); margin-bottom: 12px; }
.field svg { width: 16px; height: 16px; color: var(--faint); flex: none; }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 600 14px/1 Inter; color: var(--text); }
.pick { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 12px; text-align: left; }
.pick:hover { background: var(--card2); }
.pick.sel { background: var(--mint-d); box-shadow: inset 0 0 0 1px rgba(62,224,176,.35); }
.pick .gi { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--card2); color: var(--muted); }
.pick .gi svg { width: 16px; height: 16px; }
.pick b { display: block; font: 700 14px/1.2 Inter; }
.pick small { display: block; margin-top: 3px; font: 500 12px/1 Inter; color: var(--muted); }
.pick .r { margin-left: auto; font: 600 12px/1 Inter; color: var(--muted); }
.tabs { display: flex; gap: 6px; padding: 4px; margin-bottom: 12px; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.tabs button { flex: 1; height: 32px; border-radius: 9px; font: 700 12.5px/1 Inter; color: var(--muted); }
.tabs button.on { background: var(--card2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
.checkrow { display: flex; align-items: center; gap: 10px; min-height: 38px; font: 600 13px/1.2 Inter; cursor: pointer; }
.typegrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.typegrid button { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 8px 14px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font: 700 12.5px/1.2 Inter; color: #cfd6e0; }
.typegrid button:hover { background: var(--mint-d); box-shadow: inset 0 0 0 1.5px var(--mint); color: var(--mint); }
.typegrid svg { width: 28px; height: 28px; }
.typegrid small { font: 500 11px/1.3 Inter; color: var(--muted); }

.toast { position: absolute; left: 50%; bottom: 28px; z-index: 3000; transform: translateX(-50%); zoom: var(--z); display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 13px; background: #1a1f27; box-shadow: 0 16px 40px rgba(0,0,0,.5), inset 0 0 0 1px var(--line2); font: 600 13px/1.3 Inter; max-width: 560px; }
.toast svg { width: 17px; height: 17px; flex: none; }
.toast.ok svg { color: var(--mint); }
.toast.bad svg { color: var(--red); }
