:root {

  --panel: rgba(23, 34, 59, 0.92);
  --panel-2: rgba(15, 23, 42, 0.88);
  --border: rgba(148, 163, 184, 0.22);
  --text: #eaf1fb;
  --muted: #9fb2cc;
  --accent: #3B82F6;
  --accent-2: #7cb0ff;
  --accent-hov: #2563eb;
  --green: #22c55e;
  --red: #ef4444;
  --radius: 10px;

  --glass: rgba(255, 255, 255, 0.055);
  --glass-2: rgba(255, 255, 255, 0.10);
  --glass-brd: rgba(255, 255, 255, 0.14);
  --blur: blur(16px) saturate(150%);
  --shadow: 0 8px 24px rgba(2, 6, 23, 0.45);
  --grad-primary: linear-gradient(135deg, #60a5fa 0%, #3B82F6 55%, #2563eb 100%);
}
* { box-sizing: border-box; }
html, body { margin: 0; }

* { scrollbar-width: thin; scrollbar-color: rgba(148, 163, 184, 0.4) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.38); border-radius: 999px;
  border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }

.ic { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.14em; }
.ic-accent { color: var(--accent-2); }
.ic-fill { fill: currentColor; stroke: none; }
.pop-btn, .seg-btn, .pop-expand, .pop-icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
html { height: 100%; }
body {
  width: 360px;
  height: 600px;
  display: flex; flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  background:
    radial-gradient(900px 520px at 100% -12%, rgba(59, 130, 246, 0.28), transparent 55%),
    radial-gradient(720px 520px at -12% 112%, rgba(37, 99, 235, 0.22), transparent 55%),
    linear-gradient(160deg, #0b1220 0%, #0e1730 55%, #0a1020 100%);
  background-attachment: fixed;
}
body.resizing { user-select: none; cursor: ew-resize; }

html.in-panel body { width: auto !important; height: 100vh; }
html.in-panel .pop-grip { display: none; }

.pop-grip { position: fixed; left: 0; top: 0; bottom: 0; width: 8px; cursor: ew-resize; z-index: 200; }
.pop-grip::after { content: ""; position: absolute; left: 2px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 46px; border-radius: 3px; background: var(--accent); transition: background .15s, box-shadow .15s; }
.pop-grip:hover::after, body.resizing .pop-grip::after { background: #60a5fa; box-shadow: 0 0 8px rgba(59, 130, 246, 0.6); }

.pop-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--glass-brd);
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.pop-logo { border-radius: 7px; flex: none; box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4); }
.pop-title { display: flex; flex-direction: column; line-height: 1.15; }
.pop-title strong { font-size: 14px; }
.pop-title span { font-size: 11px; color: var(--muted); }
.pop-title { min-width: 0; }
.pop-title strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pop-head { gap: 8px; }
.pop-tools { margin-left: auto; display: flex; align-items: center; gap: 4px; flex: none; }
.pop-tool { width: 28px; height: 28px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border: 1px solid var(--glass-brd); border-radius: 7px; background: var(--glass); color: var(--muted); cursor: pointer;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); transition: color .15s, border-color .15s, background .15s; }
.pop-tool:hover { color: var(--accent-2); border-color: var(--accent); }
.pop-tool .ic { width: 15px; height: 15px; }
.pop-tool.is-on { background: var(--grad-primary); border-color: transparent; color: #fff; box-shadow: 0 3px 10px rgba(59, 130, 246, 0.4); }
.pop-tool.is-disabled { opacity: .45; }
.pop-tool.is-disabled:hover { color: var(--muted); border-color: var(--glass-brd); }
.pop-toolseg { display: flex; flex: none; border: 1px solid var(--glass-brd); border-radius: 7px; overflow: hidden; }
.pop-toolseg .pop-tool { border: none; border-radius: 0; }
.pop-toolseg .pop-tool + .pop-tool { border-left: 1px solid var(--glass-brd); }
.pop-toolseg .pop-tool.is-on { box-shadow: none; }
.pop-tool.is-ok { background: linear-gradient(135deg, #34d399, #22c55e); border-color: transparent; color: #fff; }

.pop-inctog { position: relative; width: 44px; height: 24px; flex: none; padding: 0; border: none; background: none; cursor: pointer; }
.pop-inctog-track { position: absolute; inset: 0; border-radius: 999px; background: rgba(148, 163, 184, 0.35);
  border: 1px solid var(--glass-brd); transition: background .2s, border-color .2s; }
.pop-inctog-knob { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(2, 6, 23, 0.5);
  transition: transform .2s; }
.pop-inctog-knob .ic { width: 13px; height: 13px; color: #1f2937; stroke-width: 2.2; }
.pop-inctog.is-on .pop-inctog-track { background: var(--accent); border-color: var(--accent); }
.pop-inctog.is-on .pop-inctog-knob { transform: translateX(20px); }
.pop-inctog.is-disabled { opacity: .5; }
.pop-inctog:focus-visible .pop-inctog-track { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35); }

.pop-savepop { flex: none; display: flex; gap: 6px; align-items: center; padding: 9px 12px;
  border-bottom: 1px solid var(--glass-brd); background: var(--glass);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.pop-savepop input { flex: 1; min-width: 0; }
.pop-savepop .pop-btn { flex: none; margin-top: 0; }
.pop-savepop .pop-btn-primary { width: auto; margin-top: 0; padding: 8px 14px; }

.seg { display: flex; gap: 6px; }
.seg-btn {
  flex: 1; padding: 8px 6px;
  border: 1px solid var(--glass-brd); border-radius: var(--radius);
  background: var(--glass); color: var(--muted);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.seg-btn:hover { border-color: var(--accent); color: var(--text); }
.seg-btn.is-on { background: var(--grad-primary); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4); }
.seg-sm .seg-btn { padding: 6px 8px; font-size: 12px; }

.pop-row2 { display: flex; flex-direction: column; gap: 10px; }
.pop-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pop-sublabel { font-size: 11px; font-weight: 600; color: var(--muted); }

.pop-resume { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(59, 130, 246, 0.07));
  border: 1px solid rgba(59, 130, 246, 0.4);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.pop-resume p { margin: 0 0 8px; font-size: 12px; line-height: 1.45; color: var(--text); }
.pop-resume-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.pop-resume-btns .pop-btn { flex: 1 1 auto; margin-top: 0; }
.pop-resume .pop-btn-primary { width: auto; margin-top: 0; }

.pop-saved-wrap { margin-bottom: 4px; }
.pop-saved-row { display: flex; gap: 6px; }
.pop-saved-row .pop-saved-toggle { flex: 1; min-width: 0; }
.pop-saved-new { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 8px 11px;
  border: 1px solid var(--glass-brd); border-radius: var(--radius); background: var(--glass); color: var(--text);
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.pop-saved-new:hover { border-color: var(--accent); color: var(--accent-2); }
.pop-saved-new .ic { width: 13px; height: 13px; }
.pop-saved-new.is-ok { background: linear-gradient(135deg, #34d399, #22c55e); border-color: transparent; color: #fff; }

.pop-saved-toggle[hidden] { display: none; }
.pop-saved-toggle[hidden] + .pop-saved-new { flex: 1; justify-content: center; }
.pop-saved-toggle { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px;
  border: 1px solid var(--glass-brd); border-radius: var(--radius); background: var(--glass); color: var(--text);
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.pop-saved-toggle:hover { border-color: var(--accent); }
.pop-saved-toggle .ic { width: 14px; height: 14px; color: var(--accent-2); }
.pop-saved-toggle .pop-saved-caret { margin-left: auto; color: var(--muted); transition: transform .2s; }
.pop-saved-toggle[aria-expanded="true"] .pop-saved-caret { transform: rotate(180deg); }
.pop-saved-menu { margin-top: 6px; max-height: 216px; overflow-y: auto;
  border: 1px solid var(--glass-brd); border-radius: var(--radius); background: var(--panel); }
.pop-srow { display: flex; align-items: center; gap: 8px; padding: 7px 10px; cursor: pointer; border-bottom: 1px solid var(--glass-brd); }
.pop-srow:last-child { border-bottom: none; }
.pop-srow:hover { background: rgba(255, 255, 255, 0.05); }
.pop-srow-name { flex: 1; min-width: 0; font-size: 12px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-chip-fav { width: 16px; height: 16px; border-radius: 3px; flex: none; background: rgba(148, 163, 184, 0.18); }
.pop-srow-globe { flex: none; display: inline-flex; color: var(--muted); }
.pop-srow-globe .ic { width: 16px; height: 16px; }
.pop-chip-count { font-size: 10px; font-weight: 700; color: var(--muted); flex: none;
  background: rgba(148, 163, 184, 0.2); border-radius: 999px; padding: 0 6px; }
.pop-chip-del { flex: none; border: none; background: none; color: var(--muted); font-size: 15px; line-height: 1;
  cursor: pointer; padding: 0 4px; border-radius: 4px; }
.pop-chip-del:hover { color: var(--red); }

.pop-runtab-fav { flex: none; display: inline-flex; color: var(--muted); }
.pop-runtab-fav .ic { width: 16px; height: 16px; }
.runpick-ovl { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
  padding: 14px; background: rgba(2, 6, 23, 0.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.runpick { width: 100%; max-width: 460px; max-height: 100%; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--glass-brd); border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.55); padding: 14px; }
.runpick-title { margin: 0 0 4px; font-size: 14px; font-weight: 700; color: var(--text); }
.runpick-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; margin-top: 8px;
  border: 1px solid var(--glass-brd); border-radius: var(--radius); background: var(--glass); cursor: pointer; }
.runpick-opt:hover { border-color: var(--accent); }
.runpick-opt.is-sel { border-color: rgba(59, 130, 246, 0.6); background: rgba(59, 130, 246, 0.14); }
.runpick-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.runpick-opt-ico { flex: none; width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 8px; background: rgba(148, 163, 184, 0.14); color: var(--muted); }
.runpick-opt-ico .ic { width: 15px; height: 15px; }
.runpick-opt-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.runpick-opt-title { font-size: 13px; font-weight: 700; color: var(--text); }
.runpick-opt-desc { font-size: 11px; line-height: 1.4; color: var(--muted); }

.runpick-incog { display: flex; align-items: center; gap: 7px; margin-top: 7px; padding-top: 7px;
  border-top: 1px dashed var(--glass-brd); cursor: pointer; }
.runpick-incog-label { flex: none; font-size: 11.5px; font-weight: 600; color: var(--text); }
.runpick-incog-note { flex: 1; min-width: 0; font-size: 10px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.runpick-incog .pop-inctog { margin-top: 0; margin-left: auto; }
.runpick-more { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; padding: 2px 0;
  background: none; border: none; color: var(--accent-2); font: inherit; font-size: 12px; font-weight: 600;
  cursor: pointer; align-self: flex-start; }
.runpick-more:hover { text-decoration: underline; }
.runpick-more .ic { width: 13px; height: 13px; transition: transform .2s; }
.runpick-more[aria-expanded="true"] .ic { transform: rotate(180deg); }
.runpick-tabs { margin-top: 6px; flex: 0 1 auto; min-height: 0; max-height: 190px; overflow-y: auto;
  border: 1px solid var(--glass-brd); border-radius: var(--radius); background: var(--panel); }
.runpick .pop-srow.is-sel { background: rgba(59, 130, 246, 0.16); }
.runpick .pop-srow:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.runpick-foot { display: flex; justify-content: flex-end; margin-top: 10px; }
.runpick-cancel { padding: 8px 14px; border: 1px solid var(--glass-brd); border-radius: var(--radius);
  background: var(--glass); color: var(--text); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.runpick-cancel:hover { border-color: var(--accent); }

.pop-start-note { margin-top: 8px; text-align: center; }

.kw-summary { display: flex; align-items: center; gap: 8px; padding: 7px 8px 7px 10px;
  border: 1px solid var(--glass-brd); border-radius: var(--radius); background: var(--glass); }
.kw-summary-main { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 7px; }
.kw-summary-count { flex: none; font-size: 12px; font-weight: 700; color: var(--text); }
.kw-summary-detail { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 11px; color: var(--muted); }
.kw-edit-btn { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px;
  border: 1px solid var(--glass-brd); border-radius: var(--radius); background: var(--glass);
  color: var(--text); font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.kw-edit-btn:hover { border-color: var(--accent); color: var(--accent-2); }
.kw-edit-btn .ic { width: 12px; height: 12px; }

.pop-loc { margin: 0 0 10px; font-size: 12px; font-weight: 600; color: var(--accent-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pop-head { flex: none; }
.pop-body { padding: 14px; flex: 1 1 auto; overflow-y: auto; min-height: 0; }
.pop-view { display: block; }

.pop-label {
  display: block;
  font-size: 12px; font-weight: 600;
  margin: 12px 0 5px;
}
.pop-label:first-child { margin-top: 0; }
.pop-label span { font-weight: 400; color: var(--muted); }
.pop-help { float: right; font-size: 11px; font-weight: 600; color: var(--accent-2); text-decoration: none; }
.pop-help:hover { text-decoration: underline; }

#mode-seg .seg-btn { padding: 8px 4px; font-size: 11.5px; }

.pop-switch { display: flex; align-items: center; gap: 10px; margin-top: 10px; cursor: pointer; }
.pop-switch-ico { flex: none; display: inline-flex; font-size: 18px; color: var(--muted); transition: color .2s; }
.pop-switch-text { flex: 1; font-size: 12px; color: var(--muted); line-height: 1.4; }
.pop-switch-text strong { color: var(--text); }
.pop-switch-input { position: absolute; opacity: 0; width: 0; height: 0; }
.pop-switch-track { flex: none; width: 42px; height: 23px; border-radius: 999px; position: relative;
  background: rgba(148, 163, 184, 0.3); border: 1px solid var(--glass-brd); transition: background .2s, border-color .2s; }
.pop-switch-thumb { position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(2, 6, 23, 0.5); transition: transform .2s; }
.pop-switch-input:checked ~ .pop-switch-track { background: var(--accent); border-color: var(--accent); }
.pop-switch-input:checked ~ .pop-switch-track .pop-switch-thumb { transform: translateX(19px); }
.pop-switch-input:checked ~ .pop-switch-track ~ .pop-switch-ico,
.pop-switch:has(.pop-switch-input:checked) .pop-switch-ico { color: var(--accent-2); }
.pop-switch-input:focus-visible ~ .pop-switch-track { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35); }
.pop-switch.is-disabled { opacity: .55; cursor: not-allowed; }
.pop-switch.is-disabled .pop-switch-track { cursor: not-allowed; }

textarea, input[type="text"], input[type="number"], select {
  width: 100%;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  outline: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: border-color .15s, box-shadow .15s;
}

#start-btn { position: sticky; bottom: 0; z-index: 6;
  box-shadow: 0 8px 22px rgba(59, 130, 246, 0.42), 0 -12px 18px -6px rgba(11, 18, 32, 0.55); }

textarea::placeholder, input::placeholder { color: rgba(159, 178, 204, 0.7); }
textarea { resize: vertical; min-height: 72px; }
textarea:focus, input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22); }
select { cursor: pointer; }
select option { background: #131f38; color: var(--text); }

.pop-btn {
  padding: 9px 14px;
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  background: var(--glass);
  color: var(--text);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  font: inherit; font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .05s;
}
.pop-btn:hover:not(:disabled) { border-color: var(--accent); background: var(--glass-2); }
.pop-btn:active:not(:disabled) { transform: translateY(1px); }
.pop-btn:disabled { opacity: .45; cursor: not-allowed; }
.pop-btn-primary { width: 100%; margin-top: 14px; background: var(--grad-primary); border-color: transparent; color: #fff;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.42); }
.pop-btn-primary:hover:not(:disabled) { filter: brightness(1.06); background: var(--grad-primary); border-color: transparent; }
.pop-btn-danger { color: #fff; background: linear-gradient(135deg, #f87171, #ef4444); border-color: transparent; }
.pop-btn-danger:hover:not(:disabled) { filter: brightness(1.08); }

.pop-fineprint { margin: 10px 0 0; font-size: 11px; color: var(--muted); }

.pop-check { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; font-size: 12px;
  color: var(--muted); cursor: pointer; line-height: 1.45; }
.pop-check input { width: auto; margin-top: 2px; flex: none; }
.pop-check strong { color: var(--text); }
.pop-next { margin-bottom: 12px; padding: 10px 12px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(59,130,246,.15), rgba(59,130,246,.05));
  border: 1px solid rgba(59,130,246,.32); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.pop-next-msg { margin: 0 0 8px; font-size: 12px; color: var(--text); }
.pop-next-msg:empty { display: none; }
.pop-next-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.pop-next-btns .pop-btn { flex: 1 1 auto; margin-top: 0; }
.pop-next-btns .pop-btn-primary { width: auto; margin-top: 0; flex: 2 1 auto; }
.pop-msg { margin: 10px 0 0; font-size: 12px; padding: 8px 10px; border-radius: var(--radius);
  background: rgba(239, 68, 68, 0.14); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.34);
  transition: opacity .35s; }

.pop-msg.is-ok { background: rgba(34, 197, 94, 0.14); color: #86efac; border-color: rgba(34, 197, 94, 0.34); }
.pop-msg.is-ok::before { content: '✓ '; font-weight: 700; }
.pop-msg.is-hide { opacity: 0; }

.pop-progress { margin-bottom: 12px; }
.pop-progress-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 600; }
.pop-count { color: var(--muted); font-weight: 500; }
.pop-bar { height: 7px; background: rgba(255, 255, 255, 0.08); border-radius: 99px; overflow: hidden; margin: 8px 0 6px;
  border: 1px solid var(--glass-brd); }
.pop-bar-fill { height: 100%; width: 0; background: var(--grad-primary); transition: width .25s ease;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.6); }
.pop-current { margin: 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pop-runmode { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.pop-runmode-label { flex: none; font-size: 11px; font-weight: 600; color: var(--muted); }
.seg-mini { flex: 1; }
.seg-mini .seg-btn { padding: 6px 4px; font-size: 11px; }

.pop-tip {
  display: flex; align-items: flex-start; gap: 9px;
  margin-bottom: 12px; padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.17), rgba(59, 130, 246, 0.05));
  border: 1px solid rgba(59, 130, 246, 0.32);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
  animation: tip-in .35s ease;
}
@keyframes tip-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.pop-tip-ico { font-size: 15px; line-height: 1.5; flex: none; color: var(--accent-2); display: inline-flex; }
.pop-tip-body { margin: 0; font-size: 12px; line-height: 1.5; color: var(--text); }
.pop-tip-label { display: inline-block; margin-right: 5px; font-size: 10px; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: var(--accent-2); }
.pop-tip-body strong { color: #fff; font-weight: 700; }

.pop-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pop-actions .pop-btn { flex: 1 1 calc(33.33% - 6px); padding: 8px 6px; margin-top: 0; }

.pop-table-wrap { overflow-x: auto; border: 1px solid var(--glass-brd); border-radius: var(--radius);
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.pop-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pop-table th, .pop-table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--glass-brd); }
.pop-table thead th { position: sticky; top: 0; background: rgba(15, 23, 42, 0.92); font-size: 11px;
  text-transform: uppercase; letter-spacing: .03em; color: var(--muted);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pop-table tbody tr:last-child td { border-bottom: none; }
.pop-table tbody tr:hover td { background: rgba(255, 255, 255, 0.03); }

.pop-table tr.is-current td { background: rgba(59, 130, 246, 0.14); }
.pop-table tr.is-current td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.pop-table tr.is-current .kw-cell { color: var(--accent-2); font-weight: 600; }
.pop-table .c-rank { text-align: right; white-space: nowrap; }
.kw-cell { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-badge { display: inline-block; min-width: 26px; text-align: center; padding: 1px 8px; border-radius: 99px; font-weight: 700; }
.rank-hit { background: rgba(34, 197, 94, 0.18); color: #4ade80; }
.rank-miss { color: var(--muted); }
.rank-pending { color: var(--accent-2); }

.rank-wrap { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.row-retry { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0;
  border: 1px solid var(--glass-brd); border-radius: 6px; background: var(--glass); color: var(--muted); cursor: pointer;
  transition: color .15s, border-color .15s; }
.row-retry:hover { color: var(--accent-2); border-color: var(--accent); }
.row-retry .ic { width: 13px; height: 13px; }

.pop-foot { flex: none; padding: 9px 12px; border-top: 1px solid var(--glass-brd);
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  display: flex; flex-direction: column; gap: 7px; }
.pop-foot-links { display: flex; justify-content: space-between; gap: 6px; }
.pop-foot-links a { color: var(--text); text-decoration: none; font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 5px; }
.pop-foot-links a:hover { color: var(--accent-2); }
.pop-foot-links .ic-fill { color: #f5b301; }
.pop-foot-row2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pop-foot-guide { color: var(--accent-2); text-decoration: none; font-size: 12px; white-space: nowrap; }
.pop-foot-guide:hover { text-decoration: underline; }
.pop-foot-social { display: flex; gap: 7px; }
.pop-foot-social a { color: var(--muted); display: inline-flex; width: 27px; height: 27px; align-items: center;
  justify-content: center; border: 1px solid var(--glass-brd); border-radius: 7px; background: var(--glass); }
.pop-foot-social a:hover { color: var(--accent-2); border-color: var(--accent); }
.pop-foot-social .ic { width: 14px; height: 14px; }

[hidden] { display: none !important; }

.pop-incog { border: 1px solid rgba(59, 130, 246, 0.4); border-radius: var(--radius); padding: 8px 10px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(59, 130, 246, 0.04));
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.linklike { background: none; border: none; color: var(--accent-2); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }

@media (prefers-color-scheme: light) {
  :root {
    --panel: rgba(255, 255, 255, 0.92);
    --panel-2: rgba(241, 245, 249, 0.9);
    --border: rgba(15, 23, 42, 0.12);
    --text: #0f172a;
    --muted: #5b6b83;
    --accent-2: #2563eb;
    --glass: rgba(255, 255, 255, 0.55);
    --glass-2: rgba(255, 255, 255, 0.78);
    --glass-brd: rgba(15, 23, 42, 0.1);
    --shadow: 0 8px 24px rgba(37, 99, 235, 0.14);
  }
  body {
    background:
      radial-gradient(900px 520px at 100% -12%, rgba(59, 130, 246, 0.22), transparent 55%),
      radial-gradient(720px 520px at -12% 112%, rgba(96, 165, 250, 0.2), transparent 55%),
      linear-gradient(160deg, #eef4ff 0%, #f7faff 55%, #eaf1ff 100%);
  }
  textarea, input[type="text"], select { background: rgba(255, 255, 255, 0.7); }
  .pop-bar { background: rgba(15, 23, 42, 0.08); }
  .pop-table thead th { background: rgba(255, 255, 255, 0.92); }
  .pop-tip-body strong { color: #0b1a3a; }
  select option { background: #ffffff; color: #0f172a; }
}
