:root {
  --primary: #0071e3;
  --primary-d: #0062c4;
  --bg: #ffffff;
  --card: #ffffff;
  --text: #1d1d1f;
  --sub: #6e6e73;
  --border: #e8e8ed;
  --line: #f1f1f3;
  --ok: #1a7f37;
  --danger: #d70015;
  --warn: #9a6b00;
  --radius: 18px;
  --shadow: none;
  --shadow-float: 0 12px 40px rgba(0, 0, 0, .08);
  --glass: rgba(255, 255, 255, .72);
  --select-bg: #e8f7ed;
  --select-text: #1a7f37;
  --select-border: #ccebd7;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --page-gradient:
    radial-gradient(55% 45% at 8% 2%, rgba(109, 230, 166, .55), transparent 66%),
    radial-gradient(50% 42% at 96% 4%, rgba(102, 200, 255, .55), transparent 66%),
    radial-gradient(55% 48% at 82% 96%, rgba(183, 155, 255, .45), transparent 70%),
    radial-gradient(50% 45% at 10% 92%, rgba(255, 183, 205, .42), transparent 70%),
    linear-gradient(155deg, #eafff5 0%, #e9f8ff 38%, #f4eeff 72%, #fff0f7 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { overflow-x: hidden; }
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}
html { background: #ffffff; scrollbar-gutter: stable; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--page-gradient);
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  background: #f5f5f7;
  padding: 1px 5px;
  border-radius: 5px;
  word-break: break-all;
}
.spacer { flex: 1; }
.muted { color: var(--sub); font-size: 13px; }
.nowrap { white-space: nowrap; }
.wrap { word-break: break-word; white-space: normal !important; }
.pre-line { white-space: pre-line; }
.ok-text { color: var(--ok); }
.err-text { color: var(--danger); }
.inline { display: inline-block; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); margin-right: 6px; vertical-align: middle; }

.btn, .copy-btn, .tabs a, .subnav a, .nav-links a, .nav-auth, .link-btn {
  position: relative;
  overflow: hidden;
}
.ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transform: scale(0);
  opacity: .45;
  animation: ripple .55s cubic-bezier(.22, .61, .36, 1);
}
@keyframes ripple {
  to { transform: scale(1); opacity: 0; }
}
@keyframes surface-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 10px 16px 0;
  background: transparent;
  flex: 0 0 auto;
}
.nav-inner {
  --nav-pill-h: 52px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  background: linear-gradient(135deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, .08));
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 999px;
  box-shadow: 0 14px 44px rgba(31, 45, 61, .12), inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -1px 0 rgba(255, 255, 255, .28);
  backdrop-filter: blur(12px) saturate(210%) brightness(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(210%) brightness(1.08);
}
.brand { flex: 0 0 auto; display: flex; flex-direction: column; line-height: 1.12; color: var(--text); padding-left: 4px; }
.brand:hover { text-decoration: none; }
.brand-name { font-weight: 750; font-size: 17px; letter-spacing: .3px; }
.brand-sub { font-size: 10px; color: var(--sub); font-weight: 400; letter-spacing: .2px; }
.nav-links { flex: 0 1 auto; min-width: 0; display: flex; align-items: stretch; gap: 2px; flex-wrap: nowrap; position: relative; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .34); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55); }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 68px;
  color: var(--text);
  font-size: 11px;
  line-height: 1.1;
  padding: 6px 10px 5px;
  border-radius: 999px;
  opacity: .82;
  background: transparent;
  border: 0;
  transition: background .18s ease, color .18s ease, opacity .18s ease;
  position: relative;
  z-index: 1;
}
.nav-links a .ico { width: 22px; height: 22px; margin-right: 0; opacity: .82; }
.nav-links a .nav-badge { position: absolute; top: 2px; right: 3px; margin-left: 0; line-height: 14px; font-size: 9.5px; min-width: 15px; padding: 0 4px; }
.nav-links a:hover { background: rgba(255, 255, 255, .28); text-decoration: none; opacity: 1; }
.nav-links a.active { background: var(--select-bg); color: var(--select-text); opacity: 1; font-weight: 650; }
.nav-links a.active .nav-badge { background: var(--select-text); color: #fff; }
.nav-glider {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  border-radius: 999px;
  background: var(--select-bg);
  box-shadow: inset 0 0 0 1px var(--select-border);
  pointer-events: none;
  opacity: 0;
  transition: transform .34s cubic-bezier(.77, 0, .175, 1),
              width .34s cubic-bezier(.34, 1.4, .64, 1),
              height .34s cubic-bezier(.34, 1.4, .64, 1),
              opacity .2s ease;
}
.nav-glider.no-anim { transition: none; }
.has-glider.glider-ready .nav-glider { opacity: 1; }
.nav-links.has-glider.glider-ready a.active,
.subnav.has-glider.glider-ready a.active { background: transparent; border-color: transparent; }
.nav-badge {
  display: inline-block;
  min-width: 17px;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  line-height: 17px;
  text-align: center;
  font-weight: 600;
}
.nav-user { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; font-size: 13.5px; }
.nav-user-name { color: var(--text); padding: 6px 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; }
.nav-user-name:hover { background: rgba(0, 0, 0, .055); text-decoration: none; }
.nav-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #57b57d, #1f7a48);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 2px 8px rgba(31, 122, 72, .35);
  overflow: hidden;
  flex: 0 0 auto;
}
.nav-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar-big { width: 64px; height: 64px; font-size: 26px; border-radius: 50%; }
.avatar-upload { display: inline-flex; align-items: center; gap: 10px; }
.lang-switch { position: relative; display: inline-flex; }
.lang-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: var(--nav-pill-h);
  height: var(--nav-pill-h);
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .30);
  background: rgba(255, 255, 255, .12);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  transition: background .18s ease, transform .16s var(--ease-out);
}
.lang-trigger:hover { background: rgba(255, 255, 255, .24); }
.lang-trigger:active { transform: scale(.97); }
.lang-trigger:focus-visible { outline: 2px solid rgba(31, 122, 72, .55); outline-offset: 2px; }
.lang-menu {
  position: fixed;
  z-index: 1200;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 18px 48px rgba(20, 32, 48, .18), 0 2px 8px rgba(20, 32, 48, .08);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  opacity: 0;
  transform: translateY(-4px) scale(.97);
  transition: opacity .16s var(--ease-out), transform .16s var(--ease-out);
}
.lang-switch.is-open .lang-menu { opacity: 1; transform: translateY(0) scale(1); }
.lang-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
  text-decoration: none;
  transition: background .14s ease;
}
.lang-option:hover, .lang-option:focus-visible { background: rgba(0, 0, 0, .06); text-decoration: none; outline: none; }
.lang-option.is-active { background: rgba(31, 122, 72, .10); }
.lang-option-name { flex: 1; white-space: nowrap; }
.lang-option-code {
  min-width: 26px;
  text-align: center;
  color: var(--sub);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
}
.lang-option-check { color: #1f7a48; font-size: 12px; font-weight: 700; }
@media (max-width: 560px) {
  .lang-trigger { padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .lang-menu, .lang-trigger { transition-duration: .01ms; }
}
.nav-auth {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: var(--nav-pill-h);
  min-width: 74px;
  color: var(--text);
  padding: 6px 18px 5px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.1;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
  backdrop-filter: blur(9px) saturate(200%) brightness(1.06);
  -webkit-backdrop-filter: blur(9px) saturate(200%) brightness(1.06);
  transition: background .18s ease;
}
.nav-auth .ico { width: 24px; height: 24px; margin-right: 0; opacity: .82; }
.nav-auth:hover { background: rgba(255, 255, 255, .24); text-decoration: none; }
.link-btn { background: none; border: none; color: var(--sub); cursor: pointer; font-size: 13.5px; padding: 6px 8px; border-radius: 999px; font-family: inherit; }
.link-btn:hover { color: var(--text); background: rgba(0, 0, 0, .055); text-decoration: none; }

.subnav {
  width: 100%;
  max-width: 1080px;
  margin: 22px auto 24px;
  padding: 6px;
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, .08));
  border: 1px solid rgba(255, 255, 255, .46);
  border-radius: 999px;
  box-shadow: 0 10px 34px rgba(31, 45, 61, .1), inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 -1px 0 rgba(255, 255, 255, .25);
  backdrop-filter: blur(12px) saturate(205%) brightness(1.06);
  -webkit-backdrop-filter: blur(12px) saturate(205%) brightness(1.06);
}
.subnav a {
  font-size: 13px;
  color: var(--sub);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
  backdrop-filter: blur(9px) saturate(200%) brightness(1.06);
  -webkit-backdrop-filter: blur(9px) saturate(200%) brightness(1.06);
  opacity: 1;
  position: relative;
  z-index: 1;
  transition: background .18s ease, color .18s ease;
}
.subnav a:hover { color: var(--text); background: rgba(255, 255, 255, .24); text-decoration: none; }
.subnav a.active { background: var(--select-bg); border-color: var(--select-border); color: var(--select-text); }
.subnav .nav-badge { background: #fff; color: var(--danger); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 28px 16px 48px; }
main.wrap { flex: 1 0 auto; width: 100%; display: flex; flex-direction: column; }
.footer {
  max-width: 1080px;
  width: 100%;
  margin: auto auto 0;
  padding: 0 18px 34px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--sub);
  font-size: 12.5px;
  flex: 0 0 auto;
}
.footer a { color: var(--sub); }

.page-head { margin: 6px 0 24px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
h1 { font-size: 28px; font-weight: 700; letter-spacing: -.025em; line-height: 1.25; }
h2 { font-size: 19px; font-weight: 650; margin-bottom: 8px; letter-spacing: -.01em; }
h3 { font-size: 16px; font-weight: 650; }
.sub { color: var(--sub); font-size: 13.5px; margin: 6px 0 16px; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.section-head h2 { margin-bottom: 0; }
.sub-head { margin: 22px 0 8px; color: var(--sub); font-size: 13px; font-weight: 600; letter-spacing: .04em; }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 24px;
  margin-bottom: 22px;
}
.grid { display: grid; gap: 14px; }
.grid.cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 22px; }
.grid.stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 22px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; box-shadow: none; }
.stat .num { font-size: 27px; font-weight: 700; color: var(--primary); letter-spacing: -.02em; }
.stat .lab { color: var(--sub); font-size: 12.5px; margin-top: 4px; }
.link-card { display: block; color: inherit; padding: 20px; margin-bottom: 0; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.link-card:hover { text-decoration: none; border-color: rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .45); transform: translateY(-1px); }
.link-card h3 { margin-bottom: 4px; }
.link-card .sub { margin: 0; }
.product-card { margin-bottom: 0; }
.product-card .price { font-size: 22px; font-weight: 700; color: var(--primary); }

.btn {
  display: inline-block;
  background: linear-gradient(180deg, rgba(92, 164, 250, .82), rgba(10, 132, 255, .68));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 12px;
  padding: 9px 18px;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  text-align: center;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 8px 22px rgba(0, 113, 227, .22);
  transition: transform .16s var(--ease-out), filter .18s ease, box-shadow .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { filter: brightness(1.05); text-decoration: none; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 10px 26px rgba(0, 113, 227, .28); }
}
.btn:active { transform: scale(.97); transition: transform .16s var(--ease-out); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn.small { padding: 5px 12px; font-size: 12.5px; border-radius: 9px; }
.btn.block { width: 100%; }
.btn.is-loading { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn.is-loading:disabled { opacity: 1; cursor: progress; }
.btn-spinner {
  display: none;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, .34);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin .7s linear infinite;
}
.btn.is-loading .btn-spinner { display: inline-block; }
@keyframes btn-spin { to { transform: rotate(360deg); } }
.btn.gray {
  background: linear-gradient(135deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, .10));
  border: 1px solid rgba(255, 255, 255, .42);
  color: var(--text);
  backdrop-filter: blur(9px) saturate(200%) brightness(1.06);
  -webkit-backdrop-filter: blur(9px) saturate(200%) brightness(1.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 6px 16px rgba(31, 45, 61, .07);
}
.btn.gray:hover { filter: brightness(1.02); color: var(--text); }
.btn.danger {
  background: linear-gradient(135deg, rgba(255, 240, 240, .88), rgba(255, 255, 255, .6));
  border: 1px solid rgba(245, 194, 192, .85);
  color: #b3261e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 6px 16px rgba(215, 0, 21, .1);
}
.btn.danger:hover { filter: brightness(1.03); color: #b3261e; }
.btn.on {
  background: linear-gradient(180deg, rgba(232, 247, 237, .9), rgba(220, 242, 227, .75));
  border: 1px solid var(--select-border);
  color: var(--select-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 6px 18px rgba(26, 127, 55, .12);
}
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.copy-btn {
  border: 1px solid rgba(255, 255, 255, .32);
  background: linear-gradient(135deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .10));
  color: var(--sub);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11.5px;
  cursor: pointer;
  font-family: inherit;
  margin-left: 6px;
  vertical-align: middle;
  backdrop-filter: blur(9px) saturate(190%) brightness(1.05);
  -webkit-backdrop-filter: blur(9px) saturate(190%) brightness(1.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
  transition: background .18s ease, color .18s ease, transform .16s var(--ease-out);
}
.copy-btn:hover { background: rgba(255, 255, 255, .22); color: var(--text); }
.copy-btn:active { transform: scale(.96); }
.copy-btn.copied { color: var(--ok); background: rgba(232, 247, 237, .85); }

.flashes { margin-bottom: 14px; }
.flash { background: rgba(255, 255, 255, .58); border: 1px solid rgba(255, 255, 255, .76); color: var(--text); padding: 10px 14px; border-radius: 12px; margin-bottom: 8px; font-size: 13.5px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.flash.err { background: linear-gradient(135deg, rgba(255, 235, 235, .82), rgba(255, 255, 255, .55)); border-color: rgba(245, 194, 192, .8); color: #b3261e; }

.toast-stack {
  position: fixed;
  top: 92px;
  left: 50%;
  z-index: 1000;
  width: min(92vw, 420px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 15px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .82);
  color: var(--text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .15), inset 0 1px 0 rgba(255, 255, 255, .92);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  overflow: hidden;
  pointer-events: auto;
  animation: toast-in .6s cubic-bezier(.22, 1, .36, 1);
}
.toast::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 12% 0%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 58%);
  pointer-events: none;
  opacity: .7;
}
.toast::after {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(30% 30% at 24% 30%, rgba(121, 209, 140, .5), transparent 70%),
    radial-gradient(26% 26% at 78% 22%, rgba(150, 210, 255, .42), transparent 70%),
    radial-gradient(32% 32% at 62% 85%, rgba(255, 205, 220, .32), transparent 70%),
    radial-gradient(20% 20% at 40% 60%, rgba(190, 226, 200, .35), transparent 70%);
  filter: blur(9px);
  pointer-events: none;
}
.toast > * { position: relative; z-index: 1; }
.toast.success {
  background: linear-gradient(135deg, rgba(232, 247, 237, .84), rgba(255, 255, 255, .56));
  border-color: rgba(188, 226, 200, .86);
}
.toast.error {
  background: linear-gradient(135deg, rgba(255, 235, 235, .84), rgba(255, 255, 255, .56));
  border-color: rgba(246, 198, 198, .86);
}
.toast.info {
  background: linear-gradient(135deg, rgba(240, 246, 255, .84), rgba(255, 255, 255, .56));
  border-color: rgba(198, 216, 245, .86);
}
.toast.warning {
  background: linear-gradient(135deg, rgba(255, 248, 230, .84), rgba(255, 255, 255, .56));
  border-color: rgba(241, 221, 174, .86);
}
.toast-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, .1);
}
.toast.success .toast-dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(26, 127, 55, .1); }
.toast.error .toast-dot { background: var(--danger); box-shadow: 0 0 0 4px rgba(215, 0, 21, .1); }
.toast.warning .toast-dot { background: var(--warn); box-shadow: 0 0 0 4px rgba(154, 107, 0, .1); }
.toast-text { flex: 1; font-size: 13.5px; line-height: 1.55; color: var(--text); word-break: break-word; }
.toast.hide { animation: toast-out .28s ease-in forwards; }
@keyframes toast-in {
  0% { opacity: 0; transform: translateY(-18px) scale(.94); }
  55% { opacity: 1; transform: translateY(6px) scale(1.012); }
  75% { transform: translateY(-2px) scale(.997); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(-8px) scale(.97); }
}

.form-stack { display: flex; flex-direction: column; gap: 12px; }
.form-stack > *, .field { min-width: 0; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--sub); }
.field input, .field textarea { width: 100%; min-width: 0; max-width: 100%; }
input[type="date"] { display: block; width: 100%; min-width: 0; max-width: 100%; }
input, textarea, select {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #f5f5f7;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  min-height: 40px;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: none;
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, .14);
}
input.err, textarea.err { border-color: #f0a9ad; background: #fffafa; }
input.ok, textarea.ok { border-color: #a9d9b9; }
.field-msg { min-height: 16px; font-size: 12px; color: var(--sub); }
.field-msg.err { color: var(--danger); }
.field-msg.ok { color: var(--ok); }
.form-error { background: #fff5f5; border: 1px solid #f5c2c0; color: #b3261e; padding: 8px 12px; border-radius: 10px; font-size: 13px; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text); white-space: nowrap; }
.check input { width: auto; min-height: 0; }
.form-stack > .btn { align-self: stretch; width: 100%; min-width: 0; }
.form-stack > .btn.block { align-self: stretch; width: 100%; }

.search-form { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.search-form input { flex: 3 1 0; min-width: 240px; }
.search-form .btn { flex: 1 0 0; min-width: 118px; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar input, .toolbar select { flex: 3 1 0; width: auto; min-width: 140px; }
.toolbar.code-row { flex-wrap: nowrap; }
.toolbar.code-row input { flex: 1 1 auto; min-width: 0; }
.toolbar.code-row .btn { flex: 0 0 auto; white-space: nowrap; }
.toolbar.compact input { flex-basis: 200px; }
.toolbar .btn:not(.small) { flex: 1 0 0; min-width: 118px; }
.toolbar.code-row .btn:not(.small) { flex: 0 0 auto; min-width: 0; padding-left: 12px; padding-right: 12px; }
.toolbar .btn.small { flex: 0 0 auto; }
.row-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.row-form input { flex: 1 1 90px; width: auto; }
.row-form input[name="title"] { flex: 2 1 220px; }
.row-form .btn { flex: 0 0 auto; }

.auth-card { max-width: 440px; margin: 24px auto; }
.auth-card h1 { margin-bottom: 2px; }
.auth-foot { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.account-card .kv { margin-top: 0; }

.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 20px; margin: 14px 0; }
.kv > div { display: flex; flex-direction: column; gap: 2px; padding: 11px 13px; background: rgba(255, 255, 255, .52); border: 1px solid rgba(255, 255, 255, .76); border-radius: 12px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.kv span { color: var(--sub); font-size: 12px; }
.kv b { font-weight: 600; font-size: 14px; word-break: break-word; }

.table-wrap { width: 100%; overflow-x: auto; border: 1px solid rgba(255, 255, 255, .64); border-radius: 12px; background: rgba(255, 255, 255, .34); -webkit-overflow-scrolling: touch; }
.table, table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td, table th, table td { padding: 9px 11px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: nowrap; }
.table th, table th { color: var(--sub); font-weight: 600; background: #fafafa; }
.table tr:last-child td, table tr:last-child td { border-bottom: none; }
.table td.wrap, table td.wrap { white-space: normal; min-width: 150px; }
.table.users-table { min-width: 900px; }
.table.logs-table { min-width: 1080px; }
.table.reports-table { min-width: 1080px; }
.detail-cell { max-width: 280px; white-space: normal !important; word-break: break-word; }

.detail { border: 1px solid rgba(255, 255, 255, .66); border-radius: 12px; overflow: hidden; margin-top: 12px; background: rgba(255, 255, 255, .36); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.detail .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 13px; border-bottom: 1px solid var(--line); }
.detail .row:last-child { border-bottom: none; }
.detail .k { color: var(--sub); font-size: 13px; flex: 0 0 130px; }
.detail .v { text-align: right; font-size: 13.5px; word-break: break-word; }
.note { color: var(--sub); font-size: 11.5px; margin-left: 6px; }
.mini-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border: 1px solid var(--border); border-radius: 5px; font-size: 11px; color: var(--sub); }
.chip { display: inline-block; padding: 1px 7px; border-radius: 5px; background: #f5f5f7; color: var(--sub); font-size: 11.5px; margin-right: 6px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; background: #f5f5f7; color: var(--sub); }
.badge.on { background: #e8f7ed; color: var(--ok); }
.badge.off { background: #fff0f0; color: var(--danger); }
.pill { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #eef4ff; color: var(--primary-d); font-size: 11.5px; }
.full-report { margin-top: 16px; }
.full-report summary { cursor: pointer; color: var(--primary); font-size: 13px; margin-bottom: 8px; }

.pager { display: flex; gap: 8px; align-items: center; margin-top: 14px; flex-wrap: wrap; font-size: 13px; }
.pager a, .pager span { padding: 4px 11px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text); }
.pager a:hover { text-decoration: none; border-color: #c9c9cf; }
.pager .cur { background: var(--select-bg); border-color: var(--select-border); color: var(--select-text); }

.rpt { background: #fff; border: 0; border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; }
.rpt-head { padding: 28px 26px 6px; }
.rpt-myip { color: var(--ok); font-weight: 700; font-size: 12px; letter-spacing: .14em; }
.rpt-title { font-size: 32px; font-weight: 750; letter-spacing: -.03em; margin: 4px 0; }
.rpt-desc { color: var(--sub); font-size: 13.5px; max-width: 760px; }
.rpt-hero { padding: 10px 26px 2px; }
.rpt-hero-loc { font-size: 20px; font-weight: 650; letter-spacing: -.01em; }
.rpt-status { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; padding: 11px 26px; margin-top: 12px; font-size: 13.5px; }
.rpt-recheck { font-size: 13px; white-space: nowrap; color: var(--primary); }
.rpt-addrs { display: flex; flex-direction: column; gap: 10px; padding: 16px 26px; }
.rpt-addr { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; align-items: center; column-gap: 8px; padding: 14px 16px; border: 1.5px solid rgba(255, 255, 255, .74); border-radius: 14px; background: rgba(255, 255, 255, .5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .84); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.rpt-addr:hover { border-color: #d6d6dc; }
.rpt-addr.on { border-color: var(--ok); box-shadow: 0 0 0 4px rgba(26, 127, 55, .08); }
.rpt-addr.off { opacity: .55; cursor: default; }
.rpt-addr.filled { animation: surface-in .38s cubic-bezier(.22, .61, .36, 1); }
.rpt-addr:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.rpt-addr .copy-btn { margin-left: 0; }
.rpt-tag { justify-self: start; min-width: 44px; text-align: center; padding: 3px 7px; border-radius: 7px; font-size: 12px; font-weight: 700; }
.tag-v4 { background: #e8f7ed; color: #1a7f37; }
.tag-v6 { background: #fff4d6; color: var(--warn); }
.rpt-ip { position: relative; min-width: 0; font-size: 18px; font-weight: 600; word-break: break-all; }
.rpt-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 0 26px 12px; }
.rpt-loc-msg { font-size: 12.5px; color: var(--ok); }
.rpt-hint { padding: 12px 26px 16px; color: var(--sub); font-size: 12.5px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.rpt-fullbox { padding: 18px 26px 22px; }
.rpt-fullbox h3 { font-size: 15px; margin-bottom: 10px; }
.rpt-fullbox h4 { margin: 6px 0 10px; font-size: 14px; word-break: break-all; }
.rpt-fullbox table td, .full-report table td { white-space: normal; overflow-wrap: anywhere; line-height: 1.55; }
.rpt-fullbox table td:first-child, .full-report table td:first-child { width: 92px; color: var(--sub); font-weight: 600; }
@media (max-width: 560px) {
  .rpt-fullbox table td:first-child, .full-report table td:first-child { width: 76px; }
}
.rpt-full-family + .rpt-full-family { margin-top: 12px; }

.lookup { padding-top: 20px; }
.lookup-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.lookup-id { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lookup-tag { margin-right: 2px; }
.lookup-ip { font-size: 18px; font-weight: 600; background: none; padding: 0; }
.lookup-location { font-size: 27px; font-weight: 700; letter-spacing: -.02em; margin: 12px 0 2px; }
.lookup-detail .k { flex-basis: 120px; }

.tabs {
  display: inline-flex;
  gap: 2px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 5px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .30), rgba(255, 255, 255, .08));
  border: 1px solid rgba(255, 255, 255, .44);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(31, 45, 61, .1), inset 0 1px 0 rgba(255, 255, 255, .7);
  backdrop-filter: blur(12px) saturate(205%) brightness(1.06);
  -webkit-backdrop-filter: blur(12px) saturate(205%) brightness(1.06);
}
.tabs a {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
  backdrop-filter: blur(8px) saturate(190%) brightness(1.05);
  -webkit-backdrop-filter: blur(8px) saturate(190%) brightness(1.05);
  color: var(--sub);
  font-size: 13px;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition: background .18s ease, color .18s ease, transform .12s var(--ease-out);
}
.tabs a:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .tabs a:hover { text-decoration: none; background: rgba(255, 255, 255, .22); color: var(--text); }
}
.tabs a.active { background: var(--select-bg); border-color: var(--select-border); color: var(--select-text); }
.tabs .count { margin-left: 4px; padding: 0 6px; border-radius: 999px; background: #f5f5f7; color: var(--sub); font-size: 11.5px; }
.tabs .count.count-lock { display: inline-flex; align-items: center; justify-content: center; padding: 0; background: transparent; vertical-align: -2px; }
.count-lock svg { display: block; opacity: .72; }
.dns-result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.dns-result-head h2 { margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.dns-summary { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dns-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(255, 255, 255, .58); border: 1px solid rgba(255, 255, 255, .78); color: var(--sub); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.dns-result h3 { margin: 20px 0 8px; font-size: 14px; }
.dns-cname { margin: 0 0 14px; overflow-wrap: anywhere; }
.dns-cname code { margin-left: 4px; }
.dns-ip { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; overflow-wrap: anywhere; }
.dns-ip code { font-size: 12.5px; }
.dns-type { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; padding: 2px 7px; border-radius: 7px; background: rgba(0, 113, 227, .09); color: var(--primary-d); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.dns-type-aaaa { background: rgba(120, 90, 200, .10); color: #5b43a6; }
.dns-note { margin-top: 16px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .46); border: 1px solid rgba(255, 255, 255, .72); color: var(--sub); font-size: 12.5px; line-height: 1.7; }
.dns-disclaimer { max-width: 760px; }
.dns-form-card .search-form { margin-bottom: 10px; }

.message { border: 1px solid rgba(255, 255, 255, .72); border-radius: 14px; padding: 14px 16px; margin-top: 12px; background: rgba(255, 255, 255, .56); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.message.unread { border-color: rgba(190, 215, 245, .8); background: linear-gradient(135deg, rgba(240, 246, 255, .82), rgba(255, 255, 255, .55)); }
.message-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.message-head time { color: var(--sub); font-size: 12px; margin-left: auto; }
.message-body { margin-top: 6px; white-space: pre-line; font-size: 13.5px; word-break: break-word; }
.reply { margin-top: 10px; padding: 10px 12px; background: #f8f9fb; border-left: 3px solid var(--primary); border-radius: 0 10px 10px 0; font-size: 13.5px; }
.reply-label { font-size: 11.5px; color: var(--primary-d); font-weight: 600; }
.reply time { color: var(--sub); font-size: 11.5px; }

.compact-list { list-style: none; }
.compact-list li { display: flex; gap: 8px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; flex-wrap: wrap; }
.compact-list li:last-child { border-bottom: none; }
.compact-list li.unread { font-weight: 600; }
.compact-title { color: var(--text); }
.compact-text { color: var(--sub); font-weight: 400; flex: 1; min-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact-list time { color: var(--sub); font-size: 11.5px; }

.card:not(.secret-once),
.stat,
.link-card,
.rpt,
.module-card,
.admin-item {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, .30), rgba(255, 255, 255, .08));
  border: 1px solid rgba(255, 255, 255, .40);
  box-shadow: 0 20px 55px rgba(31, 45, 61, .13), inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -1px 0 rgba(255, 255, 255, .25);
  backdrop-filter: blur(8px) saturate(210%) brightness(1.08);
  -webkit-backdrop-filter: blur(8px) saturate(210%) brightness(1.08);
}
.card:not(.secret-once)::before,
.stat::before,
.link-card::before,
.module-card::before,
.admin-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .04)),
    var(--page-gradient);
  background-attachment: fixed;
  background-size: cover;
  filter: saturate(1.18) brightness(1.03);
  opacity: 1;
}
.card:not(.secret-once)::after,
.stat::after,
.link-card::after,
.module-card::after,
.admin-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .30), transparent 34%, transparent 66%, rgba(255, 255, 255, .16));
  box-shadow:
    inset 1px 1px 0 rgba(150, 225, 255, .30),
    inset -1px -1px 0 rgba(255, 150, 220, .22),
    inset 0 0 36px rgba(255, 255, 255, .12);
  mix-blend-mode: screen;
  opacity: .9;
}
.card:not(.secret-once) > *,
.stat > *,
.link-card > *,
.module-card > *,
.admin-item > * {
  position: relative;
  z-index: 1;
}
.rpt { border-color: rgba(255, 255, 255, .44); }
.secret-once {
  border-color: rgba(188, 226, 200, .8);
  background:
    linear-gradient(135deg, rgba(232, 247, 237, .8), rgba(255, 255, 255, .56)),
    radial-gradient(120% 100% at 0% 0%, rgba(214, 242, 225, .5), transparent 60%);
  box-shadow: 0 14px 40px rgba(31, 45, 61, .07), inset 0 1px 0 rgba(255, 255, 255, .9);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}
.secret-grid { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.secret-grid > div { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.secret-grid .k { color: var(--sub); font-size: 12.5px; flex: 0 0 100px; }
.secret-value { background: #f5f5f7; border: 1px solid #dcefe2; }
.code-block { background: #fff; color: #000; padding: 15px 17px; border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; font-size: 12.5px; line-height: 1.7; margin: 10px 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.code-block code { background: none; padding: 0; color: inherit; border: 0; }
.api-docs,
.api-docs h2,
.api-docs h3,
.api-docs p,
.api-docs .sub,
.api-docs .muted,
.api-docs pre,
.api-docs code,
.api-docs a { color: #000; }
.api-docs code { background: #fff; border: 1px solid var(--border); }
.api-docs .code-block code { background: none; border: 0; }
.api-docs a { text-decoration: underline; }
.search-page { display: flex; flex-direction: column; flex: 1 0 auto; }
.search-foot { max-width: 760px; margin: auto auto 0; padding-top: 40px; text-align: center; font-size: 12.5px; }

.error-card { text-align: center; max-width: 560px; margin: 40px auto; }
.error-code { font-size: 46px; font-weight: 800; color: var(--primary); line-height: 1; letter-spacing: -.03em; }
.error-card h1 { margin: 8px 0; font-size: 20px; }
.error-card .btn-row { justify-content: center; }

.result-big { font-size: 20px; font-weight: 600; color: var(--primary); padding: 8px 0; letter-spacing: -.01em; }

.score { color: var(--primary); font-size: 24px; font-weight: 700; }
.progress { height: 10px; background: #f0f0f2; border-radius: 99px; overflow: hidden; margin: 10px 0; }
.progress-bar { height: 100%; width: 0; background: var(--ok); border-radius: 99px; transition: width .5s cubic-bezier(.22, .61, .36, 1); }
.module-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; margin-bottom: 0; }
.module-card b { font-size: 16px; }
.module-card small { color: var(--sub); font-size: 12px; word-break: break-word; }
.dims { display: flex; flex-direction: column; }
.dim-row { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; font-size: 13.5px; }
.dims p { font-size: 12px; margin-bottom: 4px; }

.admin-item { border: 1px solid rgba(255, 255, 255, .7); border-radius: 14px; padding: 16px; margin-top: 12px; background: rgba(255, 255, 255, .38); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.admin-item .form-stack { gap: 8px; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.inline-details { display: inline-block; position: relative; }
.inline-details > summary { list-style: none; }
.inline-details > summary::-webkit-details-marker { display: none; }
.inline-details[open] { flex-basis: 100%; }
.grant-form { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; padding: 8px; background: rgba(255, 255, 255, .42); border: 1px solid rgba(255, 255, 255, .66); border-radius: 10px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.grant-form input { width: 86px; flex: 0 0 auto; min-height: 32px; padding: 5px 8px; font-size: 12.5px; }
.grant-form input[name="note"] { width: 120px; }
.addr { font-size: 12px; line-height: 1.7; white-space: normal; }
.addr span { color: var(--sub); margin-right: 4px; }

.modal-mask { position: fixed; inset: 0; z-index: 999; background: rgba(0, 0, 0, .38); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: linear-gradient(135deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .62)); border: 1px solid rgba(255, 255, 255, .82); border-radius: 20px; padding: 24px; width: 100%; max-width: 480px; max-height: 90vh; max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 24px 70px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .9); backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%); }
.modal h3 { margin-bottom: 12px; }
.modal-sec { margin-bottom: 10px; }
.modal-label { color: var(--sub); font-size: 12px; }
.modal-val { background: #f5f5f7; border-radius: 9px; padding: 8px 11px; font-size: 12.5px; word-break: break-word; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.modal-grid label { font-size: 12px; color: var(--sub); display: flex; flex-direction: column; gap: 4px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

details.card summary { cursor: pointer; font-weight: 600; }
details.card p { margin-top: 8px; }

.member-wrap { position: relative; max-width: 640px; margin: 0 auto 26px; perspective: 1100px; }
.member-glow {
  position: absolute;
  left: 0;
  top: 0;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 68%);
  filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity .3s ease-out;
  will-change: transform, opacity;
}
.member-card {
  position: relative;
  z-index: 1;
  border-radius: 26px;
  padding: 28px;
  min-height: 210px;
  color: #fff;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .45);
  backdrop-filter: blur(10px) saturate(210%) brightness(1.08);
  -webkit-backdrop-filter: blur(10px) saturate(210%) brightness(1.08);
  box-shadow: 0 24px 60px rgba(20, 30, 50, .2),
    inset 0 1px 0 rgba(255, 255, 255, .6),
    inset 0 -1px 0 rgba(255, 255, 255, .25),
    inset 0 18px 44px rgba(255, 255, 255, .16),
    inset 0 -22px 44px rgba(0, 0, 0, .1);
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow .3s ease-out;
}
.member-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04)),
    var(--page-gradient);
  background-attachment: fixed;
  background-size: cover;
  filter: saturate(1.15) brightness(1.03);
  opacity: 1;
}
.member-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .32), transparent 34%, transparent 66%, rgba(255, 255, 255, .18));
  box-shadow:
    inset 1px 1px 0 rgba(150, 225, 255, .32),
    inset -1px -1px 0 rgba(255, 150, 220, .24),
    inset 0 0 40px rgba(255, 255, 255, .14);
  mix-blend-mode: screen;
  opacity: .9;
}
.member-wrap:hover .member-card {
  box-shadow: 0 34px 84px rgba(20, 30, 50, .26), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.member-card-sheen {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(130% 90% at 18% 0%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 55%),
    linear-gradient(118deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .03) 40%, rgba(255, 255, 255, .2) 100%),
    radial-gradient(80% 60% at 85% 110%, rgba(255, 255, 255, .25), transparent 60%);
  pointer-events: none;
}
.member-card > :not(.member-card-sheen) { position: relative; z-index: 1; }
.tier-standard { background: linear-gradient(135deg, rgba(58, 167, 106, .66), rgba(31, 122, 72, .38)); }
.tier-silver { background: linear-gradient(135deg, rgba(230, 235, 242, .62), rgba(169, 179, 193, .34)); }
.tier-gold { background: linear-gradient(135deg, rgba(247, 205, 107, .66), rgba(215, 149, 42, .38)); }
.tier-platinum { background: linear-gradient(135deg, rgba(61, 67, 79, .62), rgba(20, 23, 30, .42)); }
.tier-diamond { background: linear-gradient(135deg, rgba(207, 188, 245, .66), rgba(157, 123, 211, .38)); }
.member-card.tier-silver, .member-card.tier-gold { color: #20242c; }
.member-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.member-tier-name { display: flex; flex-direction: column; }
.member-tier-cn { font-size: 23px; font-weight: 750; letter-spacing: .02em; line-height: 1.2; }
.member-tier-en { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; opacity: .85; font-weight: 600; }
.member-logo { font-size: 13px; font-weight: 650; opacity: .92; letter-spacing: .04em; }
.member-no { margin-top: 38px; display: flex; flex-direction: column; gap: 2px; }
.member-no span { font-size: 11px; letter-spacing: .2em; opacity: .72; }
.member-no b { font-size: 23px; font-weight: 600; letter-spacing: .16em; font-variant-numeric: tabular-nums; }
.member-card-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 22px; }
.member-points { display: flex; flex-direction: column; }
.member-points span { font-size: 11px; opacity: .72; }
.member-points b { font-size: 28px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.member-owner { font-size: 13px; opacity: .9; }
.member-progress { margin: 16px 2px 0; display: flex; flex-direction: column; gap: 6px; }
.member-progress-track { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .7); overflow: hidden; }
.member-progress-track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .55)); transition: width .5s var(--ease-in-out); }
.member-progress span { font-size: 12px; color: var(--sub); }
.member-tiers { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.member-tier-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .26);
  border: 1px solid rgba(255, 255, 255, .34);
  backdrop-filter: blur(10px) saturate(190%) brightness(1.06);
  -webkit-backdrop-filter: blur(10px) saturate(190%) brightness(1.06);
  font-size: 12.5px;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}
.member-tier-chip.current {
  border-color: rgba(0, 113, 227, .4);
  box-shadow: 0 6px 18px rgba(0, 113, 227, .14), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.member-tier-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.member-tier-chip.tier-standard .member-tier-dot { background: #2f9e5f; }
.member-tier-chip.tier-silver .member-tier-dot { background: #aeb9c7; }
.member-tier-chip.tier-gold .member-tier-dot { background: #d7952a; }
.member-tier-chip.tier-platinum .member-tier-dot { background: #1c2028; }
.member-tier-chip.tier-diamond .member-tier-dot { background: #9d7bd3; }
.member-tier-min { margin-left: 2px; color: var(--sub); font-variant-numeric: tabular-nums; }
.member-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.settings-entry { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 4px; color: var(--text); }
.settings-entry:hover { text-decoration: none; }
.settings-entry:hover .settings-entry-arrow { color: var(--text); transform: translateX(2px); }
.settings-entry-text { display: flex; flex-direction: column; gap: 2px; }
.settings-entry-text b { font-size: 16px; font-weight: 650; }
.settings-entry-text small { color: var(--sub); font-size: 12.5px; }
.settings-entry-arrow { font-size: 26px; line-height: 1; color: var(--sub); transition: transform .18s var(--ease-out), color .18s ease; }
.member-quota { margin-bottom: 26px; }

body.legal-page { background: #fbfbfd; }
body.legal-page::before { display: none; }
.legal-wrap { max-width: 1320px; width: 100%; margin: 0 auto; padding: 34px 24px 64px; overflow-wrap: anywhere; }
.legal-select-wrap { max-width: 920px; }
.legal-topline { display: flex; align-items: center; justify-content: flex-start; gap: 16px; margin-bottom: 20px; }
.legal-kicker { color: var(--sub); font-size: 10.5px; font-weight: 650; letter-spacing: .18em; text-transform: uppercase; }
.legal-head h1 { font-size: clamp(32px, 4.6vw, 46px); line-height: 1.14; letter-spacing: -.04em; }
.legal-meta { max-width: 700px; margin-top: 10px; color: var(--sub); font-size: 15px; line-height: 1.7; }
.legal-meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; color: var(--sub); font-size: 11.5px; }
.legal-meta-row span { padding: 5px 10px; border: 1px solid #e5e5ea; border-radius: 999px; background: #fff; }
.legal-select-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 38px 0 14px; padding-top: 24px; border-top: 1px solid #e5e5ea; }
.legal-select-head h2 { font-size: 20px; letter-spacing: -.02em; }
.legal-select-head span { color: var(--sub); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.legal-lang-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.legal-lang-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid #e5e5ea;
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  transition: transform .18s var(--ease-out), border-color .18s ease, box-shadow .2s ease;
}
.legal-lang-card:active { transform: translateY(0) scale(.99); }
@media (hover: hover) and (pointer: fine) {
  .legal-lang-card:hover {
    transform: translateY(-2px);
    border-color: #c7c7cc;
    box-shadow: 0 16px 34px rgba(31, 45, 61, .08);
    text-decoration: none;
  }
}
.legal-lang-badge {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #f5f5f7;
  color: #1d1d1f;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -.02em;
}
.legal-lang-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.legal-lang-copy b { font-size: 16px; letter-spacing: -.01em; }
.legal-lang-copy small { color: var(--sub); font-size: 11.5px; }
.legal-lang-copy em { color: #a1a1a6; font-size: 11px; font-style: normal; }
.legal-lang-arrow { flex: 0 0 auto; color: #a1a1a6; font-size: 18px; }
.legal-select-note { margin-top: 18px; color: var(--sub); font-size: 12.5px; }
.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 30px; }
.legal-toc { position: sticky; top: 96px; align-self: start; padding-top: 14px; border-top: 2px solid #1d1d1f; }
.legal-toc summary { display: none; }
.legal-toc ol { display: flex; flex-direction: column; gap: 1px; list-style: none; }
.legal-toc a { display: block; padding: 5px 0; color: #6e6e73; font-size: 12.5px; line-height: 1.45; text-decoration: none; }
.legal-toc a:hover { color: var(--text); text-decoration: none; }
.legal-toc a.is-active { color: var(--text); font-weight: 650; }
.legal-content { min-width: 0; }
.legal-section { padding: 28px 0 10px; border-top: 1px solid #e5e5ea; scroll-margin-top: 96px; }
.legal-section:first-child { padding-top: 0; border-top: 0; }
.legal-section h2 { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; font-size: 20px; line-height: 1.35; letter-spacing: -.015em; }
.legal-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #f1f1f4;
  color: #1d1d1f;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: .04em;
  line-height: 1;
}
.legal-section p { max-width: 100%; margin: 8px 0; color: #3c3c43; font-size: 14.5px; line-height: 1.9; }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .legal-toc { position: static; padding: 16px 18px; border: 1px solid #e5e5ea; border-top: 2px solid #1d1d1f; border-radius: 14px; background: #fff; }
  .legal-toc summary {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    list-style: none;
  }
  .legal-toc summary::-webkit-details-marker { display: none; }
  .legal-toc-icon {
    width: 16px;
    height: 13px;
    flex: 0 0 auto;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .legal-toc-icon span { display: block; width: 100%; height: 1.5px; border-radius: 2px; background: currentColor; }
  .legal-toc-label { flex: 1; display: inline-flex; align-items: baseline; gap: 7px; }
  .legal-toc-label span { color: var(--sub); font-size: 11px; font-weight: 500; letter-spacing: .04em; }
  .legal-toc-chevron { color: var(--sub); font-size: 15px; line-height: 1; transition: transform .18s var(--ease-out); }
  .legal-toc[open] .legal-toc-chevron { transform: rotate(180deg); }
  .legal-toc summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
  .legal-toc[open] ol { margin-top: 12px; }
  .legal-toc ol { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
}

@media (max-width: 720px) {
  .legal-wrap { padding: 24px 16px 52px; }
  .legal-lang-grid { grid-template-columns: minmax(0, 1fr); }
  .legal-section h2 { font-size: 18px; }
  .legal-section p { font-size: 14px; }
  .legal-meta { font-size: 14px; }
}

@media (max-width: 520px) {
  .legal-head h1 { font-size: 30px; }
  .legal-toc ol { grid-template-columns: minmax(0, 1fr); }
  .legal-lang-card { padding: 15px; }
  .legal-select-head { align-items: flex-start; flex-direction: column; gap: 4px; }
}

.rpt { position: relative; }
.rpt::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .04)),
    var(--page-gradient);
  background-attachment: fixed;
  background-size: cover;
  filter: saturate(1.18) brightness(1.03);
  opacity: 1;
}
.rpt::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .28), transparent 34%, transparent 66%, rgba(255, 255, 255, .16));
  box-shadow:
    inset 1px 1px 0 rgba(150, 225, 255, .28),
    inset -1px -1px 0 rgba(255, 150, 220, .2),
    inset 0 0 34px rgba(255, 255, 255, .1);
  mix-blend-mode: screen;
  opacity: .85;
}
.rpt > * { position: relative; z-index: 1; }
.rpt-addr.hide-ip .rpt-ip,
.rpt-full-family.hide-ip .rpt-full-ip { font-size: 0 !important; letter-spacing: 0; color: transparent; user-select: none; }
.rpt-addr.hide-ip .rpt-ip { position: relative; }
.rpt-full-family.hide-ip .rpt-full-ip { position: relative; display: inline-block; }
.rpt-addr.hide-ip .rpt-ip::after,
.rpt-full-family.hide-ip .rpt-full-ip::after {
  content: "***";
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .08em;
}
.rpt-full-family.hide-ip .rpt-full-ip::after { font-size: 13.5px; letter-spacing: .06em; }
.rpt-addr.hide-ip .copy-btn[data-copy] { display: none; }

@keyframes glass-pop {
  0% { opacity: 0; transform: scale(.94, 1.07); }
  55% { opacity: 1; transform: scale(1.012, .988); }
  75% { transform: scale(.995, 1.003); }
  100% { opacity: 1; transform: scale(1, 1); }
}
.card, .stat, .rpt, .member-wrap { animation: glass-pop .8s cubic-bezier(.22, 1, .36, 1) backwards; }
.grid > .card:nth-child(2), .grid > .stat:nth-child(2) { animation-delay: 45ms; }
.grid > .card:nth-child(3), .grid > .stat:nth-child(3) { animation-delay: 90ms; }
.grid > .card:nth-child(4), .grid > .stat:nth-child(4) { animation-delay: 135ms; }
.grid > .card:nth-child(5), .grid > .stat:nth-child(5) { animation-delay: 180ms; }
.grid > .card:nth-child(6), .grid > .stat:nth-child(6) { animation-delay: 225ms; }
.grid > .card:nth-child(7), .grid > .stat:nth-child(7) { animation-delay: 270ms; }

@media (max-width: 1240px) {
  .nav-inner { gap: 8px; --nav-pill-h: 48px; }
  .nav-links a { padding: 5px 8px; min-width: 60px; font-size: 10.5px; }
  .nav-links a .ico { width: 20px; height: 20px; }
  .nav-auth { padding: 5px 14px; font-size: 10.5px; min-width: 66px; }
  .nav-auth .ico { width: 21px; height: 21px; }
}
@media (max-width: 720px) {
  body { font-size: 14px; }
  h1 { font-size: 23px; }
  .nav { padding: 8px 10px 0; }
  .nav-inner { flex-wrap: wrap; }
  .wrap { padding: 20px 12px 36px; }
  .card { padding: 18px; border-radius: 16px; }
  .nav-inner { gap: 10px; padding: 8px 12px; border-radius: 28px; }
  .nav-links {
    order: 3;
    width: auto;
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 0 12px 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { flex: 0 0 auto; }
  .nav-user { margin-left: auto; }
  .subnav {
    margin: 16px auto 20px;
    padding: 5px 12px;
    border-radius: 26px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .05);
  }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav a { flex: 0 0 auto; }
  .tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    max-width: 100%;
    padding: 5px 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .05);
  }
  .tabs::-webkit-scrollbar { display: none; }
  .nav-links.fade-left,
  .subnav.fade-left,
  .tabs.fade-left {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 100%);
  }
  .nav-links.fade-right,
  .subnav.fade-right,
  .tabs.fade-right {
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 20px), transparent 100%);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 20px), transparent 100%);
  }
  .nav-links.fade-left.fade-right,
  .subnav.fade-left.fade-right,
  .tabs.fade-left.fade-right {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
  }
  .toast-stack { top: 84px; bottom: auto; width: calc(100% - 24px); }
  .card:not(.secret-once), .stat, .link-card, .rpt, .module-card, .admin-item {
    backdrop-filter: blur(16px) saturate(170%);
    -webkit-backdrop-filter: blur(16px) saturate(170%);
  }
  .rpt-title { font-size: 26px; }
  .rpt-head { padding: 20px 18px 4px; }
  .rpt-status, .rpt-addrs, .rpt-hint, .rpt-actions, .rpt-fullbox { padding-left: 18px; padding-right: 18px; }
  .rpt-ip { font-size: 16px; }
  .rpt-addr { padding: 12px 12px; }
  .rpt-addr .copy-btn { padding: 2px 7px; font-size: 11px; }
  .rpt-addr.hide-ip .rpt-ip::after { font-size: 16px; }
  .lookup-location { font-size: 22px; }
  .detail .k { flex-basis: 100px; }
  .stat .num { font-size: 23px; }
  .modal-grid { grid-template-columns: 1fr; }
  .toolbar:not(.search-row):not(.code-row) input, .toolbar:not(.search-row):not(.code-row) select { flex: 1 1 100%; }
  .toolbar:not(.search-row):not(.code-row) .btn:not(.small) { flex: 1 1 100%; }
  .search-form { flex-wrap: nowrap; }
  .search-form input { flex: 1 1 auto; min-width: 0; }
  .search-form .btn { flex: 0 0 auto; min-width: 88px; }
  .member-card { padding: 22px; min-height: 190px; }
  .member-no { margin-top: 30px; }
}

@media (prefers-reduced-transparency: reduce) {
  body::before { display: none; }
  .card:not(.secret-once), .stat, .link-card, .rpt, .module-card, .admin-item, .message, .toast {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .card:not(.secret-once)::before,
  .card:not(.secret-once)::after,
  .stat::before, .stat::after,
  .link-card::before, .link-card::after,
  .rpt::before, .rpt::after,
  .module-card::before, .module-card::after,
  .admin-item::before, .admin-item::after,
  .member-card::before, .member-card::after { display: none; }
  .btn, .copy-btn { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .ripple { display: none; }
}

@keyframes shake-x {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}
.shake { animation: shake-x .5s var(--ease-out); }
@keyframes slide-down-msg {
  0% { opacity: 0; transform: translateY(-7px); }
  100% { opacity: 1; transform: translateY(0); }
}
.field-msg.slide-down { animation: slide-down-msg .32s var(--ease-out); }

.pwd-wrap { position: relative; display: block; }
.pwd-wrap input { width: 100%; padding-right: 62px; }
.pwd-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(255, 255, 255, .62);
  color: var(--sub);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pwd-toggle:hover { color: var(--text); background: rgba(255, 255, 255, .92); }

html.glass-low .card:not(.secret-once),
html.glass-low .stat,
html.glass-low .link-card,
html.glass-low .rpt,
html.glass-low .module-card,
html.glass-low .admin-item,
html.glass-low .message,
html.glass-low .toast {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html.glass-low .nav-inner,
html.glass-low .subnav,
html.glass-low .tabs,
html.glass-low .btn,
html.glass-low .copy-btn,
html.glass-low .member-card {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html.glass-mid .card:not(.secret-once),
html.glass-mid .stat,
html.glass-mid .link-card,
html.glass-mid .rpt,
html.glass-mid .module-card,
html.glass-mid .admin-item {
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}
html.glass-mid .member-card {
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}
html.glass-mid .member-card::before,
html.glass-mid .rpt::before,
html.glass-mid .card:not(.secret-once)::before,
html.glass-mid .stat::before,
html.glass-mid .link-card::before,
html.glass-mid .module-card::before,
html.glass-mid .admin-item::before {
  opacity: .92;
  filter: saturate(1.15) brightness(1.03);
}

.member-card::before { opacity: .42; }
.nav-inner,
.nav-links a,
.nav-auth,
.subnav,
.subnav a,
.tabs,
.tabs a,
.btn,
.btn.gray,
.copy-btn,
.message,
.member-card,
.card:not(.secret-once),
.stat,
.link-card,
.rpt,
.module-card,
.admin-item {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.card:not(.secret-once)::before,
.stat::before,
.link-card::before,
.module-card::before,
.admin-item::before,
.rpt::before,
.member-card::before {
  display: none;
}
.card:not(.secret-once),
.stat,
.link-card,
.rpt,
.module-card,
.admin-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .08));
  border-color: rgba(255, 255, 255, .50);
  box-shadow: 0 22px 60px rgba(31, 45, 61, .14), inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -1px 0 rgba(255, 255, 255, .30);
}
.rpt { border-color: rgba(255, 255, 255, .50); }
html.glass-low .card:not(.secret-once),
html.glass-low .stat,
html.glass-low .link-card,
html.glass-low .rpt,
html.glass-low .module-card,
html.glass-low .admin-item,
html.glass-low .message {
  background: linear-gradient(135deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .08));
}
.tier-standard { background: linear-gradient(135deg, rgba(58, 167, 106, .50), rgba(31, 122, 72, .28)); }
.tier-silver { background: linear-gradient(135deg, rgba(230, 235, 242, .48), rgba(169, 179, 193, .26)); }
.tier-gold { background: linear-gradient(135deg, rgba(247, 205, 107, .50), rgba(215, 149, 42, .28)); }
.tier-platinum { background: linear-gradient(135deg, rgba(61, 67, 79, .50), rgba(20, 23, 30, .34)); }
.tier-diamond { background: linear-gradient(135deg, rgba(207, 188, 245, .50), rgba(157, 123, 211, .28)); }

* {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

@media (max-width: 720px) {
  .nav-links, .subnav, .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
  .nav-links::-webkit-scrollbar, .subnav::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
  .nav-links a, .subnav a, .tabs a { flex: 0 0 auto; }
}

.message .field textarea, .reply-form textarea { width: 100%; }
.message .inline-details,
.message .inline-details form,
.message .inline-details .form-stack { width: 100%; }
.message .inline-details textarea { width: 100%; min-height: 132px; resize: vertical; }
.message .inline-details[open] { display: block; width: 100%; }

.thread-row { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 14px; color: var(--text); border-bottom: 1px solid var(--line); }
.thread-row:hover { background: rgba(255, 255, 255, .5); text-decoration: none; }
.thread-row.unread { background: rgba(232, 247, 237, .65); }
.thread-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.thread-title { font-weight: 600; display: flex; gap: 8px; align-items: center; }
.thread-excerpt { color: var(--sub); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-row time { color: var(--sub); font-size: 12px; white-space: nowrap; }
.thread-email { color: var(--sub); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-avatar { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #57b57d, #1f7a48); color: #fff; font-size: 13px; font-weight: 700; object-fit: cover; }
.chat-avatar.admin { background: linear-gradient(135deg, #6aa9ff, #2f6bd8); }
.chat-list { display: flex; flex-direction: column; gap: 8px; padding: 6px 0 18px; }
.chat-line { display: flex; align-items: flex-end; gap: 10px; }
.chat-line.right { justify-content: flex-end; }
.chat-bubble { max-width: 76%; background: #ffffff; border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; padding: 10px 14px; box-shadow: 0 6px 18px rgba(31, 45, 61, .06); }
.chat-line.right .chat-bubble { border-radius: 18px 18px 6px 18px; background: var(--select-bg); border-color: var(--select-border); }
.chat-bubble p { margin: 0; font-size: 14px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-bubble time { display: block; margin-top: 4px; font-size: 11px; color: var(--sub); }
.reply-form { margin: 8px 0 14px; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.pager a { min-width: 32px; height: 32px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); color: var(--text); font-size: 12.5px; }
.pager a.active { background: var(--select-bg); border-color: var(--select-border); color: var(--select-text); }
.conversation-head h1 { margin-top: 8px; }

.message-hub { display: flex; flex-direction: column; gap: 14px; }
.wrap > *, .section-head, .card { min-width: 0; }
.table-wrap { max-width: 100%; }
.message-hub .hub-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 20px 22px;
  color: var(--text);
  border-radius: 20px;
  transition: transform .2s var(--ease-out), border-color .2s ease, box-shadow .2s ease;
}
.message-hub .hub-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .92);
  box-shadow: 0 26px 62px rgba(31, 45, 61, .18), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.hub-ico {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: #1a7f37;
  background: linear-gradient(135deg, rgba(87, 181, 125, .26), rgba(31, 122, 72, .12));
  border: 1px solid rgba(255, 255, 255, .76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92);
}
.hub-ico-blue {
  color: #0b63c5;
  background: linear-gradient(135deg, rgba(102, 200, 255, .30), rgba(0, 113, 227, .12));
}
.hub-ico-violet {
  color: #6b4bb8;
  background: linear-gradient(135deg, rgba(183, 155, 255, .32), rgba(123, 91, 210, .12));
}
.hub-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hub-main b { font-size: 16.5px; letter-spacing: -.01em; }
.hub-main small { color: var(--sub); font-size: 12.5px; line-height: 1.55; }
.hub-meta { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.hub-meta b { font-size: 23px; line-height: 1.15; letter-spacing: -.02em; }
.hub-meta small { color: var(--sub); font-size: 12px; }
.hub-arrow { flex: 0 0 auto; color: var(--sub); opacity: .55; font-size: 26px; line-height: 1; }

.page-back { margin: -6px 0 10px; font-size: 13px; }
.page-back a { color: var(--sub); }
.page-back a:hover { color: var(--text); text-decoration: none; }
.message-tabs { margin-bottom: 16px; }
.notifications-table { min-width: 760px; }

.toolbar.search-row { flex-wrap: nowrap; }
.toolbar.search-row input, .toolbar.search-row select { flex: 1 1 auto; width: auto; min-width: 0; }
.toolbar.search-row .btn { flex: 0 0 auto; }
.toolbar.search-row .btn.small { min-width: 0; }

.pager-meta { margin-top: 16px; color: var(--sub); font-size: 11.5px; letter-spacing: .01em; }
.pager-meta + .pager { margin-top: 8px; }
.pager { gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 16px; font-size: 12.5px; }
.pager .pg {
  min-width: 32px;
  height: 32px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12.5px;
}
.pager .pg.prev, .pager .pg.next { padding: 0 13px; }
.pager .pg.disabled { opacity: .42; cursor: not-allowed; }
.pager .pg.gap { min-width: 18px; padding: 0; border: 0; background: none; color: var(--sub); }
.pager .pg.cur { background: var(--select-bg); border-color: var(--select-border); color: var(--select-text); font-weight: 600; }

.mail-progress-card { position: relative; overflow: hidden; }
.mail-meter {
  height: 10px;
  margin: 12px 0 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .78);
  box-shadow: inset 0 1px 2px rgba(31, 45, 61, .08);
}
.mail-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6fd39a, #66c8ff);
  transition: width .45s cubic-bezier(.22, 1, .36, 1);
}
.mail-progress-card.is-done .mail-meter span { background: linear-gradient(90deg, #57b57d, #2f9e63); width: 100%; }
.mail-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mail-stats > div {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .48);
  border: 1px solid rgba(255, 255, 255, .74);
}
.mail-stats b { font-size: 18px; line-height: 1.2; }
.mail-stats span { color: var(--sub); font-size: 11.5px; }
.ip-import-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ip-import-errors { margin: 8px 0 0; padding-left: 18px; color: var(--danger); font-size: 12.5px; }
.ip-import-errors:empty { display: none; }

body.modal-open { overflow: hidden; }
.modal-mask {
  z-index: 999;
  padding: 22px;
  background:
    radial-gradient(80% 65% at 18% 8%, rgba(255, 255, 255, .32), transparent 62%),
    radial-gradient(70% 60% at 84% 92%, rgba(142, 196, 255, .24), transparent 66%),
    rgba(12, 22, 38, .34);
  backdrop-filter: blur(22px) saturate(165%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(165%) !important;
  animation: mask-in .22s ease-out;
}
.modal.liquid-glass {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow: hidden auto;
  padding: 26px 28px 24px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, .86);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255, 255, 255, .94), transparent 56%),
    radial-gradient(90% 74% at 100% 104%, rgba(154, 210, 255, .46), transparent 70%),
    linear-gradient(148deg, rgba(255, 255, 255, .80) 0%, rgba(255, 255, 255, .56) 44%,
      rgba(231, 245, 255, .62) 100%);
  box-shadow:
    0 44px 110px rgba(6, 17, 34, .32),
    0 10px 30px rgba(6, 17, 34, .14),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 1px 0 0 rgba(255, 255, 255, .68),
    inset -1px 0 0 rgba(255, 255, 255, .46),
    inset 0 -1px 0 rgba(255, 255, 255, .58),
    inset 0 36px 74px rgba(255, 255, 255, .26),
    inset 0 -54px 96px rgba(110, 175, 255, .14);
  backdrop-filter: blur(44px) saturate(190%) brightness(1.22) contrast(1.02) !important;
  -webkit-backdrop-filter: blur(44px) saturate(190%) brightness(1.22) contrast(1.02) !important;
  animation: liquid-in .44s cubic-bezier(.22, 1, .36, 1);
  transform-origin: 50% 42%;
}
.modal.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(110% 78% at 12% -8%, rgba(255, 255, 255, .82), transparent 58%),
    radial-gradient(78% 62% at 100% 108%, rgba(126, 194, 255, .38), transparent 68%),
    radial-gradient(60% 54% at 0% 100%, rgba(255, 187, 226, .18), transparent 70%),
    linear-gradient(116deg, transparent 26%, rgba(255, 255, 255, .41) 44%, transparent 60%);
  background-size: 160% 160%;
  opacity: .98;
  animation: glass-flow 16s ease-in-out infinite alternate;
}
.modal.liquid-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(154, 211, 255, .52) 48%,
    rgba(255, 196, 232, .48));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: .92;
}
.modal.liquid-glass > * { position: relative; z-index: 1; }
.modal-kicker {
  display: inline-block;
  margin-bottom: 6px;
  color: rgba(26, 47, 74, .56);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .18em;
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.modal-head h3 { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -.025em; }
.modal-target { margin-top: 4px; color: rgba(20, 38, 60, .72); font-size: 12.5px; line-height: 1.55; word-break: break-word; }
.modal-x {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 50%;
  background: rgba(255, 255, 255, .48);
  color: rgba(26, 43, 66, .68);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 4px 12px rgba(6, 18, 38, .08);
  backdrop-filter: blur(12px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(150%) !important;
  transition: background .16s ease, color .16s ease, transform .16s var(--ease-out);
}
.modal-x:hover { color: var(--text); background: rgba(255, 255, 255, .62); transform: scale(1.04); }
.modal-current {
  margin-bottom: 14px;
  padding: 10px 13px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .46);
  border: 1px solid rgba(255, 255, 255, .68);
  color: rgba(26, 43, 66, .70);
  font-size: 12.5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
  backdrop-filter: blur(9px) !important;
  -webkit-backdrop-filter: blur(9px) !important;
}
.modal-error { color: var(--danger); font-size: 12.5px; }
.modal.liquid-glass .modal-grid { margin: 0 0 12px; }
.modal.liquid-glass .modal-actions { margin-top: 6px; }
.modal.liquid-glass .field > span { color: rgba(26, 43, 66, .62); }
.modal.liquid-glass input,
.modal.liquid-glass textarea {
  border-color: rgba(255, 255, 255, .70);
  background: rgba(255, 255, 255, .54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}
.modal.liquid-glass input:focus,
.modal.liquid-glass textarea:focus {
  background: rgba(255, 255, 255, .64);
  border-color: rgba(0, 113, 227, .46);
}
.modal.liquid-glass .btn.gray {
  border: 1px solid rgba(255, 255, 255, .68);
  background: rgba(255, 255, 255, .46);
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}
.modal.liquid-glass .btn.gray:hover { background: rgba(255, 255, 255, .52); }
.modal-mask.is-closing { animation: mask-out .18s ease-in forwards; }
.modal-mask.is-closing .modal.liquid-glass { animation: liquid-out .18s ease-in forwards; }

@keyframes glass-flow {
  from { background-position: 0% 0%, 100% 100%, 0% 0%; }
  to { background-position: 42% 24%, 58% 76%, 100% 0%; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .modal.liquid-glass { background: rgba(247, 250, 254, .97); }
}

@keyframes mask-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes mask-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes liquid-in {
  from { opacity: 0; transform: translateY(18px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes liquid-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(8px) scale(.97); }
}

@media (max-width: 560px) {
  .message-hub .hub-card { padding: 16px; gap: 12px; align-items: flex-start; }
  .hub-ico { width: 40px; height: 40px; border-radius: 13px; }
  .hub-meta b { font-size: 19px; }
  .hub-arrow { display: none; }
  .mail-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal.liquid-glass { padding: 20px 18px; border-radius: 24px; }
}

.query-tabs { margin-bottom: 16px; }

.query-locked { position: relative; }
.query-locked.is-locked { min-height: 208px; }
.query-locked.is-locked .search-form,
.query-locked.is-locked > .muted { opacity: .24; filter: grayscale(.9); pointer-events: none; user-select: none; }
.query-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 24px;
  text-align: center;
  color: #fff;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(17, 24, 39, .72), rgba(30, 41, 59, .58));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
  backdrop-filter: blur(7px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(7px) saturate(120%) !important;
}
.query-lock-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
}
.query-lock-overlay b { font-size: 16px; }
.query-lock-overlay p { max-width: 460px; margin-bottom: 4px; color: rgba(255, 255, 255, .78); font-size: 12.5px; }

@media (max-width: 560px) {
  .query-lock-overlay { padding: 18px; }
}

.qr-entry { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.qr-entry-copy { display: flex; align-items: center; gap: 13px; min-width: 0; }
.qr-entry-copy b { display: block; font-size: 16px; }
.qr-entry-copy small { display: block; color: var(--sub); font-size: 12.5px; }
.qr-entry-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #0b63c5;
  background: linear-gradient(135deg, rgba(102, 200, 255, .30), rgba(0, 113, 227, .12));
  border: 1px solid rgba(255, 255, 255, .76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92);
}
.member-owner small { display: block; margin-top: 2px; font-size: 11px; opacity: .72; }

.qr-modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 0;
  overflow: visible;
  background: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.qr-close {
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 4;
  width: 34px;
  height: 34px;
  color: rgba(255, 255, 255, .86);
  background: rgba(22, 24, 28, .72);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .16);
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}
.qr-close:hover { color: #fff; background: rgba(32, 35, 40, .9); }
.qr-close:active { transform: scale(.94); }
.qr-close:focus-visible { outline: 2px solid rgba(255, 255, 255, .9); outline-offset: 3px; }@keyframes qr-card-in {
  from { opacity: 0; transform: translateY(6px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.qr-card {
  --tier-r: 92;
  --tier-g: 200;
  --tier-b: 145;
  position: relative;
  overflow: hidden;
  padding: 22px 24px 17px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  background:
    radial-gradient(110% 95% at 100% 0%, rgba(var(--tier-r), var(--tier-g), var(--tier-b), .34), transparent 58%),
    radial-gradient(90% 85% at 0% 100%, rgba(var(--tier-r), var(--tier-g), var(--tier-b), .13), transparent 64%),
    linear-gradient(155deg, #242428 0%, #17171a 52%, #111114 100%);
  box-shadow:
    0 34px 90px rgba(8, 10, 18, .48),
    inset 0 1px 0 rgba(255, 255, 255, .17),
    inset 0 -1px 0 rgba(0, 0, 0, .3);
  animation: qr-card-in 240ms cubic-bezier(.23, 1, .32, 1);
}
.qr-card.tier-standard { --tier-r: 92; --tier-g: 200; --tier-b: 145; }
.qr-card.tier-silver { --tier-r: 186; --tier-g: 198; --tier-b: 214; }
.qr-card.tier-gold { --tier-r: 241; --tier-g: 196; --tier-b: 106; }
.qr-card.tier-platinum { --tier-r: 208; --tier-g: 216; --tier-b: 228; }
.qr-card.tier-diamond { --tier-r: 190; --tier-g: 165; --tier-b: 245; }
.qr-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 55% at 18% 0%, rgba(255, 255, 255, .12), transparent 62%),
    linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .07) 46%, transparent 60%);
  opacity: .8;
}
.qr-card::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(var(--tier-r), var(--tier-g), var(--tier-b), .9), transparent);
}
.qr-card > * { position: relative; z-index: 1; }
.qr-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.qr-brand { min-width: 0; }
.qr-site { display: block; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.qr-brand-sub { display: block; margin-top: 3px; color: rgba(255, 255, 255, .42); font-size: 9px; letter-spacing: .22em; }
.qr-tier-pill {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .82);
  font-size: 9.5px;
  letter-spacing: .08em;
  white-space: nowrap;
}
.qr-body { display: grid; grid-template-columns: minmax(0, 1fr) 156px; gap: 20px; align-items: center; margin-top: 20px; }
.qr-identity { min-width: 0; }
.qr-avatar {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  font-size: 18px;
  font-weight: 650;
}
.qr-name { margin-top: 12px; font-size: 20px; font-weight: 650; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qr-meta { margin-top: 3px; color: rgba(255, 255, 255, .5); font-size: 11px; line-height: 1.55; }
.qr-meta span { display: block; }
.qr-points { display: flex; align-items: baseline; gap: 6px; margin-top: 18px; }
.qr-points b { font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.qr-points span { color: rgba(255, 255, 255, .42); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.qr-scan { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.qr-box {
  width: 156px;
  max-width: 100%;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .24);
}
.qr-box svg { display: block; width: 100%; height: auto; }
.qr-fallback { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #334155; }
.qr-fallback span { font-size: 40px; font-weight: 800; letter-spacing: .1em; }
.qr-fallback small { font-size: 10px; color: #475569; word-break: break-all; }
.qr-code-label { margin-top: 9px; color: rgba(255, 255, 255, .34); font-size: 8.5px; letter-spacing: .2em; }
.qr-code { margin-top: 3px; color: rgba(255, 255, 255, .9); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; letter-spacing: .06em; }
.qr-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .34);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

@media (max-width: 560px) {
  .qr-entry { align-items: flex-start; flex-direction: column; }
  .qr-entry .btn { width: 100%; }
  .qr-card { padding: 20px 20px 15px; border-radius: 22px; }
  .qr-body { grid-template-columns: minmax(0, 1fr) 132px; gap: 14px; margin-top: 18px; }
  .qr-box { width: 132px; padding: 8px; }
  .qr-name { font-size: 18px; }
  .qr-points { margin-top: 14px; }
  .qr-tier-pill { font-size: 9px; padding: 4px 8px; }
  .qr-close { top: -8px; right: -8px; }
}

.push-range {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .22));
  border: 1px solid rgba(255, 255, 255, .62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 6px 18px rgba(20, 40, 70, .04);
  backdrop-filter: blur(10px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(150%) !important;
}
.push-range-text b { display: block; font-size: 13.5px; }
.push-range-text small { display: block; margin-top: 2px; color: var(--sub); font-size: 11.5px; }
.modal.range-modal { max-width: 580px; padding: 22px 24px 20px; }
.modal.email-modal { max-width: 460px; }
.modal.liquid-glass .range-list {
  border-color: rgba(255, 255, 255, .62);
  background: rgba(255, 255, 255, .34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .68), inset 0 0 36px rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px) saturate(155%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(155%) !important;
}
.modal.liquid-glass .range-user { border-bottom-color: rgba(255, 255, 255, .24); }
.modal.liquid-glass .range-user:hover { background: rgba(255, 255, 255, .24); }
.modal.liquid-glass .range-user.is-selected {
  background: linear-gradient(90deg, rgba(0, 113, 227, .12), rgba(255, 255, 255, .20));
  box-shadow: inset 0 0 0 1px rgba(0, 113, 227, .14);
}
.modal.liquid-glass .range-avatar {
  border: 1px solid rgba(255, 255, 255, .52);
  background: linear-gradient(135deg, rgba(255, 255, 255, .56), rgba(176, 218, 255, .40));
  color: #28435f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .66);
}
.range-search { margin: 14px 0 10px; }
.range-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.range-count { color: var(--sub); font-size: 12px; }
.range-actions { display: flex; gap: 6px; }
.range-list {
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 14px;
  background: rgba(255, 255, 255, .34);
}
.range-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .38);
  cursor: pointer;
  transition: background .14s ease;
}
.range-user:last-child { border-bottom: 0; }
.range-user:hover { background: rgba(255, 255, 255, .46); }
.range-user.is-selected { background: var(--select-bg); }
.range-user input { width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--primary); }
.range-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #57b57d, #1f7a48);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.range-user-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.range-user-name { font-size: 13px; font-weight: 600; }
.range-user-email { color: var(--sub); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.range-empty { padding: 26px 14px; text-align: center; color: var(--sub); font-size: 12.5px; }
.range-hint { margin-top: 8px; color: var(--sub); font-size: 11.5px; }

@media (max-width: 560px) {
  .push-range { align-items: flex-start; flex-direction: column; }
  .push-range .btn { width: 100%; }
  .modal.range-modal { padding: 20px 18px 18px; }
  .range-list { max-height: 280px; }
  .range-toolbar { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (max-width: 720px) {
  input, textarea, select { font-size: 16px; }
  input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding-right: 10px;
    overflow: hidden;
  }
  input[type="date"]::-webkit-date-and-time-value { min-width: 0; text-align: left; }
  input[type="date"]::-webkit-calendar-picker-indicator { margin-left: 0; opacity: .65; }
}

.admin-user-tabs { margin-bottom: 14px; }
.tabs-mini { margin: 0; padding: 4px; }
.tabs-mini a { padding: 5px 11px; font-size: 12px; }
.user-cell { display: flex; align-items: center; gap: 9px; min-width: 190px; }
.user-cell .nav-avatar { width: 34px; height: 34px; font-size: 14px; }
.user-cell-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.user-cell-text b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-cell-text .muted { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge.warn { background: #fff7e0; color: #8a5a00; }
.modal.manage-modal { max-width: 640px; padding: 24px 26px 20px; }
.manage-head { align-items: center; }
.manage-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.manage-avatar { width: 58px; height: 58px; font-size: 23px; }
.manage-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 2px 0 16px; }
.manage-meta > div { min-width: 0; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .42); border: 1px solid rgba(255, 255, 255, .66); display: flex; flex-direction: column; gap: 2px; }
.manage-meta span { color: var(--sub); font-size: 10.5px; letter-spacing: .02em; }
.manage-meta b { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manage-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 4px; margin-bottom: 14px; border-radius: 14px; background: rgba(255, 255, 255, .28); border: 1px solid rgba(255, 255, 255, .55); scrollbar-width: none; }
.manage-tabs::-webkit-scrollbar { display: none; }
.manage-tabs button { flex: 0 0 auto; border: 1px solid transparent; background: transparent; color: var(--sub); font: inherit; font-size: 12.5px; padding: 7px 12px; border-radius: 10px; cursor: pointer; touch-action: manipulation; transition: background .16s ease-out, color .16s ease-out; }
.manage-tabs button.active { background: rgba(255, 255, 255, .78); border-color: rgba(255, 255, 255, .9); color: var(--text); box-shadow: 0 2px 10px rgba(31, 45, 61, .08); }
.manage-tabs button:active { transform: scale(.97); }
.manage-pane { min-height: 118px; }
.manage-pane-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; }
.manage-pane-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.manage-secret { margin-top: 12px; padding: 12px 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-radius: 12px; background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .85); font-size: 12.5px; }
.manage-secret code { font-size: 15px; font-weight: 700; letter-spacing: .04em; word-break: break-all; }
.manage-log-list { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; overscroll-behavior: contain; }
.manage-log { padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .45); border: 1px solid rgba(255, 255, 255, .7); }
.manage-log-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.manage-log-head time { color: var(--sub); font-size: 11px; }
.manage-log p { margin: 3px 0; font-size: 12px; color: var(--text); word-break: break-word; }
.manage-log code { font-size: 10.5px; color: var(--sub); word-break: break-all; }
.manage-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .55); }
.danger-text { color: var(--danger); }
.danger-zone { border-color: rgba(215, 0, 21, .16); }
.risk-list { margin: 10px 0 16px; padding: 0 0 0 20px; color: #3c3c43; font-size: 13px; line-height: 1.8; }
.risk-list li { margin: 2px 0; }
.reason-field { border: 0; padding: 0; margin: 0; }
.reason-field legend { padding: 0; color: var(--sub); font-size: 13px; margin-bottom: 6px; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
.appeals-table .appeal-content { min-width: 220px; max-width: 420px; }
.appeal-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.appeal-form input[name="note"] { width: 150px; min-height: 32px; padding: 5px 8px; font-size: 12.5px; }
@media (max-width: 720px) {
  .modal.manage-modal { padding: 20px 16px 16px; border-radius: 24px; }
  .manage-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manage-avatar { width: 48px; height: 48px; font-size: 20px; }
  .check-grid { grid-template-columns: 1fr; }
  .users-table .user-cell { min-width: 150px; }
  .manage-tabs { border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .manage-tabs button { transition: none; }
}

.admin-ip-tabs { margin-bottom: 14px; }
.ip-fix-lookup { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.ip-fix-lookup .field { flex: 1 1 260px; }
.ip-fix-status { margin: 2px 0 0; font-size: 12.5px; color: var(--sub); }
.ip-fix-status.err { color: var(--danger); }
.ip-fix-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; }
.ip-fix-grid .field.wide { grid-column: span 2; }
.ip-fix-grid.ip-fix-range { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ip-fix-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
@media (max-width: 820px) {
  .ip-fix-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ip-fix-grid .field.wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .ip-fix-grid, .ip-fix-grid.ip-fix-range { grid-template-columns: 1fr; }
  .ip-fix-grid .field.wide { grid-column: auto; }
  .dns-result-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .dns-summary { width: 100%; }
  .dns-form-card .search-form .btn { min-width: 92px; padding-left: 12px; padding-right: 12px; }
}
.dns-result .table-wrap { overscroll-behavior-x: contain; }

.api-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.page-kicker { display: block; color: var(--sub); font-size: 10px; font-weight: 700; letter-spacing: .16em; margin-bottom: 5px; }
.api-tabs { display: inline-flex; gap: 3px; padding: 4px; border: 1px solid rgba(255,255,255,.68); border-radius: 999px; background: rgba(255,255,255,.34); box-shadow: inset 0 1px 0 rgba(255,255,255,.72); backdrop-filter: blur(16px) saturate(170%); -webkit-backdrop-filter: blur(16px) saturate(170%); }
.api-tab { appearance: none; border: 0; background: transparent; color: var(--sub); font: inherit; font-size: 13px; padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: background .18s ease, color .18s ease, transform .16s var(--ease-out); }
.api-tab:hover { color: var(--text); background: rgba(255,255,255,.46); }
.api-tab.active { color: var(--text); background: rgba(255,255,255,.82); box-shadow: 0 2px 8px rgba(20,38,60,.10), inset 0 1px 0 #fff; }
.api-tab:active { transform: scale(.97); }
.api-pane[hidden] { display: none !important; }
.api-overview { overflow: hidden; }
.api-overview-head { align-items: flex-start; }
.range-presets { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.range-chip { appearance: none; border: 1px solid rgba(255,255,255,.62); background: rgba(255,255,255,.30); color: var(--sub); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 12px; cursor: pointer; transition: background .16s ease, color .16s ease, transform .16s var(--ease-out); }
.range-chip:hover { background: rgba(255,255,255,.58); color: var(--text); }
.range-chip.active { background: var(--select-bg); color: var(--select-text); border-color: var(--select-border); }
.range-chip:active { transform: scale(.97); }
.date-range { position: relative; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }
.date-trigger { display: inline-flex; align-items: center; gap: 10px; min-width: 232px; border: 1px solid rgba(255,255,255,.70); background: rgba(255,255,255,.42); border-radius: 12px; padding: 8px 12px; color: var(--text); font: inherit; font-size: 12.5px; cursor: pointer; text-align: left; transition: background .16s ease, border-color .16s ease, transform .16s var(--ease-out); }
.date-trigger:hover { background: rgba(255,255,255,.66); }
.date-trigger:active { transform: scale(.985); }
.date-trigger[aria-expanded="true"] { border-color: var(--select-border); background: rgba(255,255,255,.82); box-shadow: 0 0 0 3px rgba(26,127,55,.07); }
.date-trigger-label { color: var(--sub); font-size: 11px; white-space: nowrap; }
.date-trigger b { font-weight: 600; font-variant-numeric: tabular-nums; }
.date-trigger-meta { margin-left: auto; color: var(--sub); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.date-error { color: var(--danger); font-size: 12px; }
.date-error:empty { display: none; }
.date-pop { position: fixed; z-index: 1100; padding: 12px; border: 1px solid rgba(255,255,255,.86); border-radius: 16px; background: rgba(255,255,255,.97); box-shadow: 0 22px 56px rgba(12,25,42,.20), inset 0 1px 0 #fff; backdrop-filter: blur(26px) saturate(180%); -webkit-backdrop-filter: blur(26px) saturate(180%); opacity: 0; transform: translateY(-4px) scale(.98); transition: opacity .16s var(--ease-out), transform .16s var(--ease-out); }
.date-pop.is-open { opacity: 1; transform: translateY(0) scale(1); }
.date-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 2px 2px 8px; }
.date-head b { font-size: 13px; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.date-nav { width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.72); border-radius: 9px; background: rgba(255,255,255,.46); color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; transition: background .16s ease, opacity .16s ease, transform .14s var(--ease-out); }
.date-nav:hover:not(:disabled) { background: rgba(255,255,255,.9); }
.date-nav:active:not(:disabled) { transform: scale(.94); }
.date-nav:disabled { opacity: .32; cursor: not-allowed; }
.date-week, .date-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.date-week span { text-align: center; color: var(--sub); font-size: 10px; padding: 3px 0 5px; }
.date-day { position: relative; height: 34px; border: 0; border-radius: 0; background: transparent; color: var(--text); font: inherit; font-size: 12.5px; cursor: pointer; font-variant-numeric: tabular-nums; transition: background .12s ease, color .12s ease; }
.date-day:hover:not(.is-selected) { background: rgba(20,38,60,.055); border-radius: 9px; }
.date-day.is-disabled { color: rgba(20,38,60,.24); cursor: not-allowed; background: transparent; border-radius: 0; }
.date-day.in-range { background: rgba(31,122,72,.12); color: #17543a; }
.date-day.in-range:hover { background: rgba(31,122,72,.18); }
.date-day.range-start, .date-day.range-end { background: #1f7a48; color: #fff; font-weight: 700; }
.date-day.range-start { border-radius: 9px 0 0 9px; }
.date-day.range-end { border-radius: 0 9px 9px 0; }
.date-day.range-start.range-end { border-radius: 9px; }
.date-day.range-start:hover, .date-day.range-end:hover { background: #1b6b3f; }
.date-day.is-today::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ok); }
.date-day.in-range.is-today::after { background: rgba(31,122,72,.7); }
.date-day.range-start.is-today::after, .date-day.range-end.is-today::after { background: rgba(255,255,255,.92); }
.date-blank { height: 34px; }
.date-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding: 9px 2px 0; border-top: 1px solid rgba(20,38,60,.08); font-size: 11.5px; color: var(--sub); }
.date-foot-range { font-variant-numeric: tabular-nums; white-space: nowrap; }
.api-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 4px; }
.api-metric { padding: 12px 14px; border: 1px solid rgba(255,255,255,.66); border-radius: 14px; background: rgba(255,255,255,.34); box-shadow: inset 0 1px 0 rgba(255,255,255,.72); }
.api-metric span { display: block; color: var(--sub); font-size: 11px; margin-bottom: 3px; }
.api-metric b { font-size: 22px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.chart-card { margin-top: 18px; padding: 15px 16px 10px; border: 1px solid rgba(255,255,255,.62); border-radius: 16px; background: rgba(255,255,255,.28); }
.chart-card h3 { margin: 0; font-size: 15px; }
.chart-card .section-head { margin-bottom: 8px; }
.api-chart { position: relative; width: 100%; min-height: 180px; overflow: hidden; }
.api-chart[hidden] { display: none; }
.chart-tip { position: absolute; z-index: 6; min-width: 150px; max-width: 250px; padding: 9px 11px; border: 1px solid rgba(255,255,255,.82); border-radius: 12px; background: rgba(255,255,255,.94); box-shadow: 0 14px 34px rgba(12,25,42,.16), inset 0 1px 0 #fff; backdrop-filter: blur(16px) saturate(170%); -webkit-backdrop-filter: blur(16px) saturate(170%); pointer-events: none; font-size: 12px; color: var(--text); animation: tip-in .12s var(--ease-out); }
.chart-tip-title { font-size: 11px; color: var(--sub); font-variant-numeric: tabular-nums; margin-bottom: 3px; }
.chart-tip-sum { color: var(--sub); font-size: 11.5px; margin-bottom: 6px; }
.chart-tip-sum b { font-size: 16px; color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.chart-tip-list { display: flex; flex-direction: column; gap: 3px; }
.chart-tip-row { display: flex; align-items: center; gap: 6px; line-height: 1.5; }
.chart-tip-row i { width: 7px; height: 7px; border-radius: 2px; flex: 0 0 auto; }
.chart-tip-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-tip-row b { font-weight: 650; font-variant-numeric: tabular-nums; }
@keyframes tip-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
.chart-empty { padding: 24px 0; text-align: center; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 14px 0 2px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; color: var(--sub); font-size: 11.5px; }
.legend-item i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.legend-item b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.api-overview.is-loading { opacity: .72; pointer-events: none; }
.api-token-table td { vertical-align: middle; }
.api-empty { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0 2px; }
.token-secret-once { border-color: rgba(31,122,72,.28); }
.token-modal { max-width: 650px; }
.token-form .modal-grid { margin: 0 0 10px; }
.token-form .field { margin-top: 2px; }
.token-form textarea { min-height: 58px; resize: vertical; }
.confirm-phrase { display: block; color: #111111; font-size: 13px; font-weight: 700; line-height: 1.65; margin: 3px 0 7px; }
.confirm-field input { margin-top: 0; }
.api-docs .code-block.dark { background: #10151c; color: #eef4f7; border-color: #222b36; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.api-docs .code-block.dark code { color: inherit; }
.token-detail-block { display: flex; align-items: center; gap: 8px; margin: 8px 0; padding: 9px 11px; border: 1px solid rgba(255,255,255,.64); border-radius: 11px; background: rgba(255,255,255,.42); }
.token-detail-block .k { flex: 0 0 88px; color: var(--sub); font-size: 11px; }
.token-detail-block code { overflow-wrap: anywhere; font-size: 12px; }
.token-meta { grid-template-columns: repeat(3, minmax(0,1fr)); }
.token-call-list { max-height: 300px; overflow: auto; margin-top: 8px; }
.tokens-admin-table { min-width: 1180px; }
.applications-table { min-width: 1100px; }
@media (max-width: 720px) {
  .api-head { align-items: flex-start; }
  .api-tabs { width: 100%; justify-content: space-between; }
  .api-tab { flex: 1; padding-left: 8px; padding-right: 8px; }
  .api-metrics { grid-template-columns: 1fr; }
  .api-metric b { font-size: 19px; }
  .date-range { align-items: stretch; }
  .date-trigger { flex: 1 1 100%; min-width: 0; }
  .date-error { width: 100%; }
  .date-day { height: 38px; }
  .date-blank { height: 38px; }
  .date-pop { padding: 10px; }
  .chart-card { padding-left: 11px; padding-right: 11px; }
  .token-modal { padding: 20px 18px; }
  .token-meta { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .date-pop, .date-trigger, .range-chip, .api-tab { transition-duration: .01ms; }
}

.board-head { align-items: flex-start; }
.board-ranges { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.board-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0 4px; }
.board-kpi { position: relative; padding: 14px 16px 13px; border: 1px solid rgba(255,255,255,.66); border-radius: 14px; background: rgba(255,255,255,.34); box-shadow: inset 0 1px 0 rgba(255,255,255,.72); overflow: hidden; }
.board-kpi::after { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, #1f7a48, rgba(31,122,72,.12)); }
.board-kpi span { display: block; color: var(--sub); font-size: 11px; margin-bottom: 4px; }
.board-kpi b { display: block; font-size: 26px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.board-kpi i { display: block; margin-top: 3px; color: var(--sub); font-size: 11px; font-style: normal; }
.board-main { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; margin-top: 14px; align-items: start; }
.board-map-card { padding: 14px 14px 10px; min-width: 0; }
.board-map-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.board-crumbs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 12.5px; }
.board-crumb { appearance: none; border: 1px solid rgba(255,255,255,.7); background: rgba(255,255,255,.42); color: var(--text); border-radius: 999px; padding: 4px 11px; font: inherit; font-size: 12px; cursor: pointer; transition: background .16s ease, transform .14s var(--ease-out); }
.board-crumb:hover { background: rgba(255,255,255,.82); }
.board-crumb:active { transform: scale(.97); }
.board-crumb.is-active { background: var(--select-bg); border-color: var(--select-border); color: var(--select-text); font-weight: 650; cursor: default; }
.board-crumbs .sep { color: var(--sub); font-size: 12px; padding: 0 1px; }
.board-legend { display: flex; align-items: center; gap: 6px; color: var(--sub); font-size: 11px; }
.board-legend i { display: block; width: 96px; height: 6px; border-radius: 999px; background: linear-gradient(90deg, #d9efe2, #6fbb92 55%, #166b3c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }
.board-canvas-wrap { position: relative; height: clamp(340px, 56vh, 580px); border-radius: 14px; border: 1px solid rgba(255,255,255,.78); background: radial-gradient(120% 110% at 32% 18%, #ffffff 0%, #eef8fc 48%, #dfeef6 100%); overflow: hidden; cursor: grab; touch-action: none; }
.board-canvas-wrap.is-dragging { cursor: grabbing; }
.board-canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.board-tip { position: absolute; z-index: 3; pointer-events: none; padding: 8px 11px; border-radius: 11px; border: 1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.96); box-shadow: 0 12px 28px rgba(12,25,42,.16); font-size: 12px; color: var(--text); }
.board-tip-title { color: var(--sub); font-size: 11px; margin-bottom: 2px; }
.board-tip-value b { font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.board-state { position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.92); color: var(--sub); font-size: 11.5px; box-shadow: 0 8px 20px rgba(12,25,42,.10); }
.board-hint { margin: 9px 2px 0; color: var(--sub); font-size: 11.5px; }
.board-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.board-rank, .board-pages { padding: 14px 14px 8px; }
.board-rank .section-head, .board-pages .section-head { margin-bottom: 4px; }
.board-rank h3, .board-pages h3 { margin: 0; font-size: 14px; }
.board-rank-total { font-size: 11px; }
.board-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.board-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 6px; border-radius: 9px; cursor: default; transition: background .14s ease; }
.board-row[role="button"] { cursor: pointer; }
.board-row[role="button"]:hover { background: rgba(31,122,72,.07); }
.board-row.is-active { background: rgba(31,122,72,.11); }
.board-row .idx { color: var(--sub); font-size: 11px; font-variant-numeric: tabular-nums; }
.board-row .name { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-row .bar { display: block; height: 4px; border-radius: 999px; background: rgba(31,122,72,.10); overflow: hidden; }
.board-row .bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8ccfa9, #1f7a48); }
.board-row b { font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.board-empty { list-style: none; color: var(--sub); font-size: 12px; padding: 10px 4px; }
.board-trend { margin-top: 14px; padding: 14px 16px 8px; }
.board-trend .section-head { margin-bottom: 6px; }
.board-trend h3 { margin: 0; font-size: 15px; }
.board-trend-chart { position: relative; min-height: 110px; }
.board-trend-legend { display: flex; gap: 12px; color: var(--sub); font-size: 11.5px; }
.board-trend-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: 0; }
.board-trend-legend .dot-visits { background: #1f7a48; }
.board-trend-legend .dot-ips { background: #3d7fc1; }
@media (max-width: 1080px) {
  .board-main { grid-template-columns: minmax(0, 1fr); }
  .board-side { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .board-kpis { grid-template-columns: 1fr 1fr; }
  .board-kpi b { font-size: 21px; }
  .board-side { grid-template-columns: 1fr; }
  .board-canvas-wrap { height: 330px; }
  .board-head { gap: 10px; }
  .board-ranges { justify-content: flex-start; }
  .board-legend { display: none; }
  .board-map-card { padding: 10px 10px 8px; }
  .board-row .name { font-size: 12px; }
}

.ico { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-right: 5px; vertical-align: -3px; color: currentColor; opacity: .78; transition: transform .2s var(--ease-out), opacity .2s ease; }
.ico:empty { display: none; }
.ico svg, .ico .ico-svg { display: block; width: 100%; height: 100%; }
.ico svg path, .ico .ico-svg path { vector-effect: non-scaling-stroke; }
.nav-links a:hover .ico, .nav-auth:hover .ico, .link-btn:hover .ico, .btn:hover .ico, .copy-btn:hover .ico, .subnav a:hover .ico, .rpt-recheck:hover .ico { transform: translateY(-1px) scale(1.06); opacity: 1; }
.nav-links a.active .ico { opacity: 1; }
.ico-spin { animation: ico-spin .62s var(--ease-out); }
@keyframes ico-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.copy-btn .ico { width: 12px; height: 12px; margin-right: 3px; vertical-align: -1px; }
.btn .ico { width: 15px; height: 15px; margin-right: 5px; }
.subnav a .ico { width: 14px; height: 14px; margin-right: 4px; opacity: .68; }
.subnav a.active .ico { opacity: 1; }
.rpt-hero { display: flex; align-items: center; }
.rpt-hero-ico { flex: 0 0 auto; width: 22px; height: 22px; margin-right: 5px; color: var(--ok); opacity: .9; }
.rpt-hero-ico svg { display: block; width: 100%; height: 100%; }
.rpt-hero-ico:empty { width: 0; margin-right: 0; }
.rpt-recheck { display: inline-flex; align-items: center; }
.rpt-recheck .ico { width: 14px; height: 14px; margin-right: 4px; }
.board-kpi span .ico { width: 13px; height: 13px; margin-right: 4px; vertical-align: -2px; opacity: .65; }
@media (max-width: 720px) {
  .rpt-hero-ico { width: 19px; height: 19px; }
  .copy-btn .ico { display: none; }
  .nav-links a .ico { width: 20px; height: 20px; }
  .nav-auth .ico { width: 21px; height: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .ico { transition: none; }
  .ico-spin { animation: none; }
}


