:root {
  --bg: #0b0d12;
  --bg2: #12151d;
  --card: #161a24;
  --line: #252b38;
  --tx: #e8eaf0;
  --mu: #8a92a6;
  --ac: #f2b544;
  --ac2: #ffcf70;
  --ok: #2fbf71;
  --warn: #e9a23b;
  --red: #e5484d;
  --r: 14px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font:
    15px/1.5 Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
}
a {
  color: var(--ac2);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1 {
  font-size: 22px;
  margin: 0 0 16px;
}
h3 {
  font-size: 15px;
  margin: 0 0 14px;
  color: var(--tx);
}
small,
.sm {
  font-size: 12.5px;
}
.muted {
  color: var(--mu);
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: rgba(11, 13, 18, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--tx);
  letter-spacing: 0.2px;
}
.brand:hover {
  text-decoration: none;
}
.brand.big {
  justify-content: center;
  font-size: 18px;
  margin-bottom: 18px;
}
.logo {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--ac), #c98a1c);
  color: #1a1205;
  font-weight: 800;
}
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a {
  color: var(--mu);
  padding: 7px 12px;
  border-radius: 9px;
}
.nav a:hover {
  color: var(--tx);
  background: var(--bg2);
  text-decoration: none;
}
.nav form {
  margin: 0;
}
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
  margin-bottom: 18px;
}
.card.narrow {
  max-width: 440px;
}
.mx {
  margin: 60px auto;
}
.card.hero {
  background: linear-gradient(160deg, #1b2030, #141823);
  border-color: #2c3345;
}
.card.danger {
  border-color: #4a2326;
}
body.center {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}
body.center .card {
  width: 100%;
  text-align: center;
}
body.center .form {
  text-align: left;
}
.form {
  display: grid;
  gap: 14px;
}
.form.inline {
  max-width: 420px;
}
label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--mu);
}
input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--tx);
  border-radius: 10px;
  padding: 11px 13px;
  font: inherit;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
input:focus {
  border-color: var(--ac);
  box-shadow: 0 0 0 3px rgba(242, 181, 68, 0.15);
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--ac);
}
.hero input[name="url"] {
  font-size: 16px;
  padding: 14px 15px;
}
.prefix {
  display: flex;
  align-items: stretch;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.prefix span {
  padding: 11px 0 11px 13px;
  color: var(--mu);
  white-space: nowrap;
}
.prefix input {
  border: 0;
  border-radius: 0;
  padding-left: 2px;
}
.prefix:focus-within {
  border-color: var(--ac);
}
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.grid3 .card {
  margin: 0;
}
.grid3 {
  margin-bottom: 18px;
}
.checks {
  display: flex;
  gap: 20px;
  align-items: center;
}
.check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: var(--tx);
  font-size: 14px;
}
.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.row h3 {
  margin: 0;
}
.wrapr {
  align-items: flex-start;
}
.btn,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  padding: 10px 18px;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.05s;
}
.btn {
  background: var(--ac);
  color: #1a1205;
}
.btn:hover {
  background: var(--ac2);
  text-decoration: none;
}
.btn:active,
.ghost:active {
  transform: translateY(1px);
}
.btn.red {
  background: var(--red);
  color: #fff;
}
.ghost {
  background: transparent;
  color: var(--tx);
  border-color: var(--line);
  padding: 8px 13px;
  font-weight: 500;
}
.ghost:hover {
  background: var(--bg2);
  border-color: #38405a;
  text-decoration: none;
}
.ghost.sm {
  padding: 4px 10px;
  font-size: 12.5px;
  border-radius: 8px;
}
.nav .ghost {
  border: 0;
  color: var(--mu);
}
.acts {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px;
}
.stat span {
  color: var(--mu);
  font-size: 13px;
}
.stat b {
  display: block;
  font-size: 26px;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.chart {
  width: 100%;
  height: 200px;
  display: block;
}
.chart rect {
  fill: var(--ac);
  opacity: 0.85;
}
.chart rect:hover {
  opacity: 1;
  fill: var(--ac2);
}
.chart text {
  fill: var(--mu);
  font-size: 11px;
}
.chart-max {
  text-align: right;
  font-size: 12px;
}
.table {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th {
  text-align: left;
  color: var(--mu);
  font-weight: 500;
  font-size: 12.5px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 11px 10px;
  border-bottom: 1px solid #1e2330;
  vertical-align: middle;
}
tr:hover td {
  background: #191e2a;
}
tr.dim td {
  opacity: 0.45;
}
.r {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.nw {
  white-space: nowrap;
}
.trunc {
  max-width: 380px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  background: #232937;
  color: var(--mu);
}
.badge.ok {
  background: rgba(47, 191, 113, 0.14);
  color: #5fd897;
}
.badge.off {
  background: #2a2f3b;
  color: #9aa1b3;
}
.badge.warn {
  background: rgba(233, 162, 59, 0.15);
  color: #f0b85c;
}
.alert {
  border-radius: 12px;
  padding: 12px 15px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  background: var(--card);
}
.alert.ok {
  border-color: rgba(47, 191, 113, 0.4);
  background: rgba(47, 191, 113, 0.08);
}
.alert.err {
  border-color: rgba(229, 72, 77, 0.45);
  background: rgba(229, 72, 77, 0.08);
}
.search {
  display: flex;
  gap: 8px;
}
.search input {
  width: 260px;
  padding: 8px 12px;
}
.pager {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 16px;
}
.pager a,
.pager b {
  min-width: 34px;
  text-align: center;
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.pager b {
  background: var(--ac);
  color: #1a1205;
  border-color: var(--ac);
}
.bar {
  margin-bottom: 10px;
}
.bar-l {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  margin-bottom: 4px;
}
.bar-l span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar-t {
  height: 6px;
  background: var(--bg2);
  border-radius: 99px;
  overflow: hidden;
}
.bar-t i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #c98a1c, var(--ac));
  border-radius: 99px;
}
.w0 {
  width: 0;
}
.w5 {
  width: 5%;
}
.w10 {
  width: 10%;
}
.w15 {
  width: 15%;
}
.w20 {
  width: 20%;
}
.w25 {
  width: 25%;
}
.w30 {
  width: 30%;
}
.w35 {
  width: 35%;
}
.w40 {
  width: 40%;
}
.w45 {
  width: 45%;
}
.w50 {
  width: 50%;
}
.w55 {
  width: 55%;
}
.w60 {
  width: 60%;
}
.w65 {
  width: 65%;
}
.w70 {
  width: 70%;
}
.w75 {
  width: 75%;
}
.w80 {
  width: 80%;
}
.w85 {
  width: 85%;
}
.w90 {
  width: 90%;
}
.w95 {
  width: 95%;
}
.w100 {
  width: 100%;
}
a.big {
  font-size: 22px;
  font-weight: 700;
}
.dest {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  word-break: break-all;
  text-align: left;
}
pre.code {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  overflow-x: auto;
  font-size: 13px;
  color: #cdd3e0;
}
code {
  background: var(--bg2);
  padding: 2px 6px;
  border-radius: 6px;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}
.modal[hidden] {
  display: none;
}
.modal-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  width: min(380px, 92vw);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
#qrc,
.qr-inline {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  width: 100%;
  max-width: 280px;
  height: auto;
}
.qr-inline {
  max-width: 200px;
}
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ok);
  color: #06210f;
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 600;
  z-index: 30;
}
@media (max-width: 860px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid3,
  .grid2 {
    grid-template-columns: 1fr;
  }
  .search input {
    width: 100%;
  }
  .trunc {
    max-width: 200px;
  }
  .wrap {
    padding: 16px;
  }
  .top {
    padding: 10px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
.urlrow{display:flex;gap:8px}.urlrow input{flex:1}.urlrow .ghost{white-space:nowrap}
.card.guncel{border-color:rgba(242,181,68,.35);background:linear-gradient(160deg,#211c12,#161a24)}
.card.guncel .row{flex-wrap:wrap}.card.guncel .g-l{min-width:220px;flex:1}.card.guncel input[name=guncel]{flex:2;min-width:260px}
.badge.gold{background:rgba(242,181,68,.16);color:var(--ac2)}
@media (max-width:860px){.urlrow{flex-direction:column}}
