:root {
  --bg: #0b0d10;
  --bg-2: #0f1216;
  --panel: #13161b;
  --panel-2: #191d23;
  --line: #262b33;
  --line-2: #343a44;
  --text: #ebe8df;
  --muted: #9aa1aa;
  --faint: #6c737d;
  --accent: #f3d22b;
  --accent-2: #ffe25a;
  --accent-ink: #16140a;
  --ok: #4cc27a;
  --warn: #f0a63a;
  --bad: #ec5a4a;
  --cat-offensive: #e5553f;
  --cat-supply: #44a3e6;
  --cat-defense: #5dbb63;
  --cat-common: #c9b269;
  --cat-objectives: #b190e6;
  --radius: 10px;
  --mono: ui-monospace, "Cascadia Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(243, 210, 43, 0.06), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(68, 163, 230, 0.05), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 14px/1.45 var(--sans);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; }
.boot { padding: 40px; color: var(--muted); text-align: center; }
.hidden { display: none !important; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12px; }
.grow { flex: 1; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.nowrap { flex-wrap: nowrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.spacer { height: 12px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px;
  padding: 10px 22px;
  background: rgba(11, 13, 16, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--accent) 0 140px, transparent 140px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .14em; font-size: 13px; white-space: nowrap; }
.brand svg { width: 26px; height: 26px; }
.brand small { display: block; font-weight: 500; letter-spacing: .04em; color: var(--faint); font-size: 11px; }
.nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--muted); padding: 7px 12px; border-radius: 7px; white-space: nowrap;
  font-weight: 600; font-size: 13px; letter-spacing: .02em;
}
.nav a:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.nav a.active { color: var(--accent-ink); background: var(--accent); }

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); font-size: 12px; font-weight: 600; white-space: nowrap;
  cursor: default;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(76, 194, 122, .18); }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 3px rgba(240, 166, 58, .18); }
.dot.bad { background: var(--bad); }

/* ---------- layout ---------- */
.page { max-width: 1180px; margin: 0 auto; padding: 22px 22px 90px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 0 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 22px; letter-spacing: .02em; }
.page-head p { margin: 4px 0 0; color: var(--muted); max-width: 640px; }
.section { margin-top: 26px; }
.section-title {
  display: flex; align-items: center; gap: 10px; margin: 0 0 12px;
  font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.section-title::before { content: ""; width: 4px; height: 14px; background: var(--accent); border-radius: 1px; }
.section-title .right { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; }

.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
}
.card h3 { margin: 0 0 10px; font-size: 15px; }
.card p { margin: 0 0 10px; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.banner {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--radius);
  background: rgba(240, 166, 58, .08); border: 1px solid rgba(240, 166, 58, .35); margin-bottom: 16px;
}
.banner.info { background: rgba(68, 163, 230, .08); border-color: rgba(68, 163, 230, .35); }
.banner.bad { background: rgba(236, 90, 74, .08); border-color: rgba(236, 90, 74, .4); }
.banner b { display: block; }

/* ---------- buttons + inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line-2);
  background: var(--panel-2); color: var(--text); font-weight: 650; font-size: 13px;
  cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, transform .05s;
}
.btn:hover { background: #222832; border-color: #46505d; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.ghost { background: transparent; }
.btn.danger { color: #ff8a7c; }
.btn.danger:hover { border-color: var(--bad); }
.btn.small { padding: 5px 10px; font-size: 12px; border-radius: 7px; }
.btn.tiny { padding: 3px 8px; font-size: 11px; border-radius: 6px; }
.btn.icon { padding: 6px; width: 32px; height: 32px; }
.btn svg { width: 15px; height: 15px; }

input[type=text], input[type=password], input[type=number], input[type=search], input[type=url], input[type=date], select {
  background: #0d1014; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px;
  min-width: 0; outline: none; transition: border-color .12s, box-shadow .12s;
}
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(243, 210, 43, .15); }
input[type=number] { width: 92px; font-family: var(--mono); }
input[type=range] { accent-color: var(--accent); width: 100%; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.field input, .field select { font-size: 14px; color: var(--text); font-weight: 400; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.setting:first-of-type { border-top: 0; }
.setting .label b { display: block; font-weight: 650; }
.setting .label span { color: var(--muted); font-size: 12px; }

.seg { display: inline-flex; background: #0d1014; border: 1px solid var(--line-2); border-radius: 9px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 6px 12px; border-radius: 6px; font-weight: 650; font-size: 12px; cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--accent); color: var(--accent-ink); }

.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #2a3039; border-radius: 99px; transition: background .15s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #c9ccd1; border-radius: 50%; transition: transform .15s, background .15s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::before { transform: translateX(18px); background: var(--accent-ink); }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(243, 210, 43, .25); }

.kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 26px; padding: 0 8px;
  font: 700 12px/1 var(--mono); color: var(--accent); border: 1px solid rgba(243, 210, 43, .5);
  border-bottom-width: 2px; border-radius: 6px; background: rgba(243, 210, 43, .06); white-space: nowrap;
}
.kbd.none { color: var(--faint); border-color: var(--line-2); background: transparent; font-weight: 500; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .03em; background: #20252d; color: var(--muted); white-space: nowrap; }
.badge.detected { background: rgba(76, 194, 122, .14); color: #7fe0a4; }
.badge.manual { background: rgba(68, 163, 230, .14); color: #8fcaf3; }
.badge.profile { background: rgba(177, 144, 230, .16); color: #cdb6f3; }

/* ---------- arrows ---------- */
.arrows { display: inline-flex; gap: 3px; align-items: center; flex-wrap: wrap; }
.arrow { width: 18px; height: 18px; fill: var(--text); flex: none; }
.arrows.sm .arrow { width: 13px; height: 13px; }
.arrows.lg .arrow { width: 22px; height: 22px; }
.arrow.dir-R { transform: rotate(90deg); }
.arrow.dir-D { transform: rotate(180deg); }
.arrow.dir-L { transform: rotate(-90deg); }

/* ---------- slot cards ---------- */
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.slot {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  padding: 14px 14px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: linear-gradient(180deg, #151920, #0f1216);
  overflow: hidden; transition: border-color .15s, box-shadow .15s;
}
.slot::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--cat, var(--line-2)); opacity: .9; }
.slot:hover { border-color: var(--line-2); }
.slot.flash { animation: flash .7s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(243, 210, 43, .7); border-color: var(--accent); } 100% { box-shadow: 0 0 0 16px rgba(243, 210, 43, 0); } }
.slot-head { display: flex; width: 100%; align-items: center; justify-content: space-between; }
.slot-head .label { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--faint); }
.slot-icon {
  width: 84px; height: 84px; border-radius: 14px; display: grid; place-items: center; margin-top: 4px;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--cat, #888) 22%, transparent), transparent 70%), #0c0f13;
  border: 1px solid #222731; cursor: pointer;
}
.slot-icon img { width: 72px; height: 72px; }
.slot-icon:hover { border-color: var(--line-2); }
.slot-name { font-weight: 750; font-size: 15px; line-height: 1.2; min-height: 18px; }
.slot-full { font-size: 11.5px; color: var(--faint); min-height: 14px; }
.slot .meta { display: flex; gap: 6px; align-items: center; justify-content: center; min-height: 20px; flex-wrap: wrap; }
.slot .actions { display: flex; gap: 8px; width: 100%; margin-top: 4px; }
.slot .actions .btn { flex: 1; }
.slot.empty .slot-icon { border-style: dashed; color: var(--faint); font-size: 28px; }

.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.fill-row { display: flex; gap: 8px; align-items: center; }
.fill-row > select, .fill-row > input { flex: 1; min-width: 0; }
.quick-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel); border-left: 3px solid var(--cat, var(--line-2));
}
.quick-item img { width: 38px; height: 38px; }
.quick-item .info { flex: 1; min-width: 0; }
.quick-item .info b { display: block; font-size: 13px; line-height: 1.2; margin-bottom: 3px; }

/* ---------- stratagem grid ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar input[type=search] { flex: 1; min-width: 200px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-size: 12px; font-weight: 650; cursor: pointer; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--faint)); }
.chip.on { color: var(--text); border-color: var(--accent); background: rgba(243, 210, 43, .08); }
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 10px; }
.scard {
  position: relative; display: flex; gap: 11px; align-items: center; padding: 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel); border-left: 3px solid var(--cat, var(--line-2));
  cursor: pointer; text-align: left; color: inherit; width: 100%;
}
.scard:hover { border-color: var(--line-2); background: var(--panel-2); }
.scard img { width: 44px; height: 44px; flex: none; }
.scard .t { min-width: 0; flex: 1; }
.scard .t b { display: block; font-size: 13px; line-height: 1.25; }
.scard .t span { display: block; font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.scard .assign { display: none; position: absolute; inset: 0; border-radius: 9px; background: rgba(11, 13, 16, .93); align-items: center; justify-content: center; gap: 6px; padding: 8px; flex-wrap: wrap; }
.scard.open .assign { display: flex; }
.scard .assign .btn { padding: 6px 9px; }

/* ---------- tables + lists ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.bind-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.bind-row .ctl { flex-wrap: nowrap; justify-content: flex-end; }
.bind-row:first-child { border-top: 0; }
.bind-row .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bind-row .who img { width: 30px; height: 30px; }
.bind-row .who b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bind-row select { width: 100%; max-width: 260px; min-width: 0; }

.log { font: 12px/1.5 var(--mono); max-height: 240px; overflow: auto; padding: 4px 0; }
.log div { display: flex; gap: 10px; padding: 3px 2px; border-bottom: 1px dashed #1e232a; }
.log time { color: var(--faint); flex: none; }
.log .src { color: var(--muted); flex: none; }
.log .lvl-warning { color: var(--warn); }
.log .lvl-error { color: var(--bad); }

/* ---------- calibration ---------- */
.calib { position: relative; width: 100%; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); background: #050607; user-select: none; touch-action: none; }
.calib img { width: 100%; height: auto; }
.calib .sel { position: absolute; border: 2px solid var(--accent); background: rgba(243, 210, 43, .1); box-shadow: 0 0 0 9999px rgba(0, 0, 0, .45); pointer-events: none; }
.calib .hint { position: absolute; left: 10px; top: 10px; background: rgba(0, 0, 0, .7); padding: 5px 9px; border-radius: 6px; font-size: 12px; }
.calib-empty { display: grid; place-items: center; min-height: 220px; color: var(--faint); text-align: center; padding: 24px; }
.detect-out { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
.detect-out img { max-width: 100%; border-radius: 8px; border: 1px solid var(--line-2); }
.result-line { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.result-line:first-child { border-top: 0; }
.result-line img { width: 28px; height: 28px; }
.ok-text { color: var(--ok); }
.bad-text { color: var(--bad); }
.warn-text { color: var(--warn); }

/* ---------- modal ---------- */
.modal-back { position: fixed; inset: 0; z-index: 50; background: rgba(4, 5, 7, .72); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { width: min(880px, 100%); max-height: min(86vh, 900px); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.modal.narrow { width: min(460px, 100%); }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 16px; flex: 1; }
.modal-body { padding: 16px 18px; overflow: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); }
.keycap-wait { display: grid; place-items: center; gap: 10px; padding: 26px 10px; text-align: center; }
.keycap-wait .big { font: 800 28px/1 var(--mono); color: var(--accent); min-height: 34px; }

/* ---------- token box ---------- */
.token-box { display: flex; gap: 8px; align-items: center; background: #0d1014; border: 1px dashed var(--accent); border-radius: 8px; padding: 10px 12px; }
.token-box code { flex: 1; font: 13px var(--mono); word-break: break-all; color: var(--accent-2); }
ol.steps { margin: 8px 0 0; padding-left: 20px; color: var(--muted); }
ol.steps li { margin: 6px 0; }
ol.steps code, p code, .card code { font-family: var(--mono); font-size: 12px; background: #0d1014; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); color: var(--text); }

/* ---------- toasts ---------- */
#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; min-width: 260px; max-width: 380px; padding: 10px 14px 10px 12px; border-radius: 10px; background: #1a1f26; border: 1px solid var(--line-2); border-left: 4px solid var(--accent); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); font-size: 13px; animation: tin .18s ease-out; display: flex; gap: 10px; align-items: center; }
.toast img { width: 28px; height: 28px; }
.toast.ok { border-left-color: var(--ok); }
.toast.bad { border-left-color: var(--bad); }
.toast.warn { border-left-color: var(--warn); }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login { width: min(400px, 100%); }
.login .brand { justify-content: center; margin-bottom: 22px; font-size: 15px; }
.login .brand svg { width: 38px; height: 38px; }
.login form { display: flex; flex-direction: column; gap: 14px; }
.login .err { color: #ff8a7c; min-height: 18px; font-size: 13px; }
.foot-note { margin-top: 26px; color: var(--faint); font-size: 11.5px; text-align: center; }

/* ---------- sticky save bar ---------- */
.savebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(19, 22, 27, .96); border-top: 1px solid var(--accent); backdrop-filter: blur(8px); }
.savebar .inner { width: min(1180px, 100%); display: flex; align-items: center; gap: 12px; }
.savebar .msg { flex: 1; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detect-out, .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; gap: 10px; padding: 10px 14px 8px; }
  .brand small { display: none; }
  .nav { order: 3; flex-basis: 100%; }
  .topbar .pill { margin-left: auto; }
  .page { padding: 16px 14px 100px; }
  .page-head h1 { font-size: 19px; }
  .slots { gap: 10px; }
  .slot { padding: 12px 10px; }
  .slot-icon { width: 72px; height: 72px; }
  .slot-icon img { width: 60px; height: 60px; }
  .slot .actions { flex-direction: column; gap: 6px; }
  .bind-row { grid-template-columns: minmax(0, 1fr) auto; }
  .bind-row .ctl { grid-column: 1 / -1; justify-content: flex-start; }
  .bind-row > button { justify-self: start; }
  .modal-back { padding: 0; align-items: stretch; }
  .modal { max-height: 100vh; border-radius: 0; width: 100%; }
  #toasts { left: 12px; right: 12px; bottom: 12px; align-items: stretch; }
  .toast { max-width: none; }
  .setting { flex-wrap: wrap; }
  .table .hide-sm { display: none; }
}

/* ---------- linking a PC ---------- */
.pair-wrap { display: grid; place-items: center; min-height: calc(100vh - 170px); }
.card.pair { width: min(480px, 100%); padding: 28px 26px 24px; text-align: center; }
.pair h2 { margin: 6px 0 8px; font-size: 22px; }
.pair-kicker { font-size: 11px; font-weight: 800; letter-spacing: .18em; color: var(--accent); text-transform: uppercase; }
.pair-code {
  display: inline-block; margin: 14px auto 18px; padding: 14px 20px; border-radius: 12px;
  font: 800 34px/1 var(--mono); letter-spacing: .16em; color: var(--accent-2);
  background: #0d1014; border: 1px dashed rgba(243, 210, 43, .55);
  box-shadow: 0 0 40px rgba(243, 210, 43, .08) inset;
}
.pair-facts {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; text-align: left; margin: 0 0 16px;
  padding: 12px 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px;
}
.pair-facts dt { color: var(--faint); font-size: 12px; }
.pair-facts dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.pair .field { text-align: left; }
.pair-actions { margin-top: 16px; }
.pair-actions .btn { padding-top: 10px; padding-bottom: 10px; }
.pair-icon {
  width: 64px; height: 64px; margin: 2px auto 12px; border-radius: 50%; display: grid; place-items: center;
  font-size: 30px; font-weight: 800; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--muted);
}
.pair-icon.ok { color: var(--ok); border-color: rgba(76, 194, 122, .5); background: rgba(76, 194, 122, .1); }
.pair-icon.bad { color: var(--bad); border-color: rgba(236, 90, 74, .5); background: rgba(236, 90, 74, .1); }
.pair-icon svg { width: 32px; height: 32px; }

/* ---------- get the app ---------- */
.dl-card { border-color: rgba(243, 210, 43, .32); background: linear-gradient(135deg, rgba(243, 210, 43, .07), transparent 55%), var(--panel); }
.dl-main { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.dl-logo svg { width: 46px; height: 46px; display: block; }
.dl-main h3 { margin: 0 0 3px; font-size: 17px; }
.dl-main p { margin: 0; }
.btn.big { padding: 11px 20px; font-size: 15px; font-weight: 750; border-radius: 10px; }
.btn.big svg { width: 18px; height: 18px; }
.dl-steps { margin-top: 14px; }
.dl-steps b { color: var(--text); }
details.adv > summary { cursor: pointer; font-weight: 650; list-style: none; }
details.adv > summary::-webkit-details-marker { display: none; }
details.adv > summary::before { content: ""; display: inline-block; width: 0; height: 0; margin-right: 10px; border: 5px solid transparent; border-left: 7px solid var(--muted); transform-origin: 3px 5px; transition: transform .15s; }
details.adv[open] > summary::before { transform: rotate(90deg); }
.badge.lic-ok { background: rgba(76, 194, 122, .14); color: #7fe0a4; }
.badge.lic-bad { background: rgba(236, 90, 74, .14); color: #ff8a7c; }
