:root {
  --blue: #29b6f6;
  --blue-dark: #0288d1;
  --bg: #0b1220;
  --card: #131f33;
  --field: #16233a;
  --border: #1e3252;
  --text: #e6edf6;
  --muted: #7b8aa3;
  --green: #34d399;
  --red: #f87171;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  width: 380px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
}
.pop { padding: 14px 16px 18px; }

.hd {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.hd-logo { height: 26px; }
.ic { background: none; border: none; cursor: pointer; font-size: 16px; opacity: 0.6; }
.ic:hover { opacity: 1; }

.view.center { text-align: center; }
.big { font-size: 16px; font-weight: 800; letter-spacing: -0.3px; }
.muted { color: var(--muted); margin-top: 6px; line-height: 1.5; }
.muted.small { font-size: 12px; }

.lbl {
  display: block; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.6px; color: var(--muted); margin: 14px 0 5px;
}
.inp {
  width: 100%; padding: 9px 11px; background: var(--field);
  border: 1px solid var(--border); border-radius: 8px; color: var(--text);
  font-size: 13px; outline: none; transition: border-color 0.15s;
}
.inp:focus { border-color: var(--blue); }
.inp::placeholder { color: #44557a; }
textarea.inp { resize: vertical; min-height: 54px; font-family: inherit; line-height: 1.45; }
.fhint { font-size: 11px; color: #59678a; margin-top: 4px; }

.btn {
  width: 100%; margin-top: 16px; padding: 11px; background: var(--blue-dark);
  color: #fff; border: none; border-radius: 9px; font-size: 13.5px; font-weight: 700;
  cursor: pointer; transition: background 0.15s, opacity 0.15s;
}
.btn:hover { background: #0277bd; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.ghost {
  margin-top: 9px; background: var(--field); border: 1px solid var(--border); color: var(--muted);
}
.btn.ghost:hover { background: #1c2c46; color: var(--text); }

.li-bar {
  display: flex; flex-direction: column; gap: 2px;
  background: #0d2318; border: 1px solid #14532d;
  border-radius: 8px; padding: 9px 12px; margin-bottom: 4px;
}
.li-ok { color: var(--green); font-size: 12px; font-weight: 600; }
.li-name { color: #9fe6c0; font-size: 12px; }

.spinner {
  width: 28px; height: 28px; border: 3px solid var(--border);
  border-top-color: var(--blue); border-radius: 50%;
  margin: 22px auto 12px; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.load-line { color: #aebbcf; font-weight: 600; font-size: 13.5px; }

.rcard {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 9px; padding: 11px 12px; margin-bottom: 9px;
}
.rhead { display: flex; justify-content: space-between; align-items: center; }
.reye {
  font-size: 10px; font-weight: 700; letter-spacing: 0.6px; color: var(--muted);
}
.rtitle { font-size: 13px; font-weight: 700; margin: 4px 0 7px; color: var(--text); }
.rbody { color: #b8c4d6; line-height: 1.6; font-size: 12.5px; white-space: pre-wrap; }
.cp {
  background: var(--field); border: none; color: var(--muted);
  padding: 3px 9px; border-radius: 5px; font-size: 10px; cursor: pointer;
}
.cp:hover { background: #243a5a; color: var(--text); }
.cp.done { color: var(--green); }

.rtip {
  margin-top: 9px; padding: 8px 10px; border-radius: 7px;
  background: #11243a; border: 1px solid #1c3a5c; font-size: 12px;
  color: #aebbcf; line-height: 1.5;
}
.rtip-lbl { font-size: 9px; font-weight: 700; letter-spacing: 0.6px; color: var(--blue); }

.err {
  margin-top: 12px; background: #2a1115; border: 1px solid #5b1d22;
  color: var(--red); padding: 10px 12px; border-radius: 8px; font-size: 12.5px;
}
.big-err strong { display: block; margin-bottom: 4px; }
.big-err p { font-size: 12px; opacity: 0.85; }

.set-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 12.5px;
}
.set-k { color: var(--muted); }
.set-v { color: var(--text); font-weight: 600; }
.link { background: none; border: none; color: var(--blue); cursor: pointer; font-size: 12px; text-decoration: underline; }
.link.back { display: block; margin: 14px auto 0; }
