:root {
  --cloud: #f8fcff;
  --paper: #ffffff;
  --ink: #102a3b;
  --muted: #60798a;
  --blue: #18a8eb;
  --blue-deep: #087fbe;
  --blue-soft: #eaf8ff;
  --line: #bfe8fb;
  --line-strong: #79cef3;
  --red: #d83945;
  --red-soft: #fff0f1;
  --shadow: 0 18px 48px rgba(0, 145, 215, .08);
  --radius: 2px;
}

* { box-sizing: border-box; }
html { background: var(--cloud); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--cloud);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}
.cloud-mark {
  position: relative;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
  border: 2px solid var(--blue);
  border-top-color: transparent;
  border-radius: 999px;
  transform: translateY(2px);
}
.cloud-mark::before,
.cloud-mark::after {
  content: "";
  position: absolute;
  border: 2px solid var(--blue);
  border-bottom: 0;
  background: var(--cloud);
}
.sidebar .cloud-mark::before,
.sidebar .cloud-mark::after,
.login-panel .cloud-mark::before,
.login-panel .cloud-mark::after { background: var(--paper); }
.cloud-mark::before {
  width: 19px;
  height: 14px;
  left: 5px;
  top: -8px;
  border-radius: 18px 18px 0 0;
  transform: rotate(-7deg);
}
.cloud-mark::after {
  width: 13px;
  height: 10px;
  right: 4px;
  top: -3px;
  border-radius: 14px 14px 0 0;
  transform: rotate(8deg);
}
.brand-name {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .05em;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #fff;
  background: var(--blue-deep);
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: #0573ad; }
.button.secondary {
  color: var(--blue-deep);
  background: #fff;
  border-color: var(--line-strong);
}
.button.secondary:hover { background: var(--blue-soft); }
.button.ghost {
  color: var(--blue-deep);
  background: transparent;
}
.button.danger {
  color: var(--red);
  background: var(--red-soft);
  border-color: #ffc8cd;
}
.button.danger:hover { color: #fff; background: var(--red); border-color: var(--red); }
.button.small { min-height: 32px; padding: 0 10px; border-radius: 5px; font-size: 12px; }
.button:disabled { opacity: .5; cursor: not-allowed; }
.button:focus-visible,
.nav-button:focus-visible,
.icon-button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(24, 168, 235, .24);
  outline-offset: 2px;
}

.field { margin-top: 16px; }
.field:first-child { margin-top: 0; }
.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
}
.input, .select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--ink);
  background: #fff;
}
.input::placeholder { color: #a1aeb7; }
.form-error { min-height: 19px; margin: 10px 0 0; color: var(--red); font-size: 12px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--cloud);
}
.login-panel {
  width: min(100%, 390px);
  padding: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.login-panel .brand { justify-content: center; margin-bottom: 28px; }
.login-panel h1 { margin: 0; text-align: center; font-size: 25px; }
.login-copy { margin: 9px 0 22px; color: var(--muted); text-align: center; font-size: 14px; }
.login-panel .button { width: 100%; margin-top: 20px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 236px 1fr; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 18px 20px;
  border-right: 1px solid var(--line-strong);
  background: var(--paper);
}
.sidebar .brand { padding: 0 10px; }
.sidebar-role { margin: 7px 0 0 64px; color: var(--muted); font-size: 11px; }
.nav { display: grid; gap: 5px; margin-top: 42px; }
.nav-button {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 13px 0 16px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.nav-button:hover { color: var(--blue-deep); background: #f4fbff; }
.nav-button.active { color: var(--blue-deep); border-left-color: var(--blue); background: var(--blue-soft); font-weight: 650; }
.sidebar-foot { margin-top: auto; padding: 16px 10px 0; border-top: 1px solid var(--line); }
.account-actions { display: flex; align-items: center; gap: 12px; }
.account-name { margin: 0 0 10px; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.logout-button { border: 0; padding: 0; color: var(--blue-deep); background: transparent; cursor: pointer; font-size: 13px; }

.main { min-width: 0; padding: 26px clamp(22px, 3vw, 40px) 50px; background: var(--paper); }
.topbar { min-height: 48px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.topbar > div:first-child, .detail-title-row > div:first-child { padding-left: 14px; border-left: 3px solid var(--blue); }
.page-title { margin: 0; font-size: clamp(23px, 2.5vw, 28px); letter-spacing: -.03em; }
.page-subtitle { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar > .button, .topbar-actions > .button { min-height: 36px; padding-inline: 13px; font-size: 12px; }
.link-tools { padding-left: 0 !important; border-left: 0 !important; }
.search-box {
  width: min(30vw, 210px);
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--blue-deep);
  background: #fff;
}
.search-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(24, 168, 235, .12); }
.search-box input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search-box input::placeholder { color: #88a2b3; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-bottom: 18px; border: 1px solid var(--line); background: #fff; }
.stat {
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  border-right: 1px solid var(--line);
  background: #fff;
}
.stat:last-child { border-right: 0; }
.stat-label { color: var(--muted); font-size: 13px; }
.stat-value { margin: 10px 0 0; color: var(--blue-deep); font-size: 28px; font-weight: 720; letter-spacing: -.04em; }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.panel-head { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.panel-title { margin: 0; font-size: 16px; }
.panel-copy { color: var(--muted); font-size: 13px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th { padding: 10px 14px; color: var(--blue-deep); background: #f0faff; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 650; text-align: left; }
td { padding: 11px 14px; border-top: 1px solid #dff3fc; font-size: 13px; vertical-align: middle; }
tbody tr:hover td { background: #fbfeff; }
tbody tr:first-child td { border-top: 0; }
.cell-title { font-weight: 650; }
.cell-sub { display: block; max-width: 260px; margin-top: 5px; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.paired-value { display: block; color: var(--muted); font-size: 11px; line-height: 1.65; }
.paired-value b { color: var(--ink); font-size: 12px; font-weight: 650; }
.domain-value { display: block; max-width: 210px; color: var(--blue-deep); overflow: hidden; text-overflow: ellipsis; }
.domain-value.inherited { color: var(--muted); }
.actions { display: flex; align-items: center; gap: 6px; }
.link-actions .button { width: 68px; min-height: 28px; padding-inline: 6px; font-size: 11px; }
.compact-action { min-height: 28px; padding: 0 8px; font-size: 11px; }
.settings-panel { margin: 0 0 18px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 3px; color: var(--blue-deep); background: var(--blue-soft); font-size: 12px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.off { color: #8a9298; background: #eef1f3; }
.empty { padding: 60px 24px; color: var(--muted); text-align: center; }
.empty strong { display: block; margin-bottom: 7px; color: var(--ink); font-size: 16px; }

.switch { position: relative; width: 42px; height: 24px; display: inline-block; }
.switch input { position: absolute; opacity: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #cbd5db; cursor: pointer; transition: background .16s ease; }
.switch span::after { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.16); transition: transform .16s ease; }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::after { transform: translateX(18px); }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(18, 37, 51, .42); backdrop-filter: blur(4px); }
.modal { width: min(100%, 480px); max-height: min(720px, calc(100vh - 40px)); overflow-y: auto; padding: 24px; border-radius: 10px; background: #fff; box-shadow: 0 28px 80px rgba(16, 40, 57, .22); }
.modal.wide { width: min(100%, 720px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.modal-title { margin: 0; font-size: 20px; }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; color: var(--muted); background: #f2f6f8; cursor: pointer; font-size: 20px; }

.compact-select {
  width: 138px;
  height: 30px;
  padding: 0 28px 0 9px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23718290' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-color: #fff;
  font-size: 12px;
}

.detail-header { margin-bottom: 26px; }
.back-button { padding: 0; border: 0; color: var(--blue-deep); background: transparent; cursor: pointer; font-size: 13px; }
.detail-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 20px; }
.detail-section { margin-top: 18px; border: 1px solid var(--line); background: #fff; }
.detail-section-head { min-height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.detail-section-head .panel-copy { display: block; margin-top: 5px; }
.inline-form { display: flex; align-items: flex-end; gap: 10px; max-width: 560px; padding: 18px; }
.inline-form .field { flex: 1; margin: 0; }
.domain-detail { max-width: 820px; }
.domain-form { max-width: 760px; }
.domain-mode { padding: 4px 8px; border: 1px solid var(--line); color: var(--muted); background: #fff; font-size: 11px; }
.domain-mode.custom { color: var(--blue-deep); border-color: var(--line-strong); background: var(--blue-soft); }
.effective-domain { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-top: 1px solid var(--line); font-size: 12px; }
.effective-domain span { color: var(--muted); }
.effective-domain strong { min-width: 0; color: var(--blue-deep); font-weight: 620; overflow-wrap: anywhere; }
.qr-table th:first-child, .qr-table td:first-child { width: 84px; }
.qr-table th:nth-last-child(2), .qr-table td:nth-last-child(2) { width: 90px; }
.qr-table th:last-child, .qr-table td:last-child { width: 90px; }
.qr-thumb { width: 52px; height: 52px; display: block; padding: 3px; object-fit: contain; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.table-input { width: min(100%, 360px); height: 36px; padding: 0 9px; border: 1px solid transparent; border-radius: 4px; color: var(--ink); background: transparent; }
.table-input:hover { border-color: var(--line); background: #fafcfd; }
.table-input:focus { border-color: var(--blue); background: #fff; outline: 3px solid rgba(24,168,235,.12); }
.name-input { font-weight: 620; }
.view:not([hidden]) { animation: view-in .18s ease-out both; }
@keyframes view-in { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }

.share-box { text-align: center; }
.share-qr { width: min(100%, 280px); aspect-ratio: 1; display: block; margin: 0 auto 18px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: #fff; object-fit: contain; }
.link-box { display: flex; gap: 8px; padding: 7px 7px 7px 12px; border: 1px solid var(--line); border-radius: 12px; background: #f8fbfc; }
.link-value { min-width: 0; flex: 1; align-self: center; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }

.toast { position: fixed; z-index: 80; right: 24px; bottom: 24px; max-width: 360px; padding: 13px 16px; border-radius: 12px; color: #fff; background: #234c67; box-shadow: 0 14px 36px rgba(21, 51, 71, .22); font-size: 13px; }
.toast.error { background: #963f3f; }

.public-page { min-height: 100svh; background: var(--cloud); }
.public-wrap { width: min(100% - 32px, 430px); margin: 0 auto; padding: max(32px, env(safe-area-inset-top)) 0 max(28px, env(safe-area-inset-bottom)); }
.public-brand { justify-content: center; margin-bottom: 30px; }
.public-card { padding: 28px 24px 24px; border: 1px solid rgba(207, 224, 234, .9); border-radius: 28px; background: rgba(255,255,255,.92); box-shadow: var(--shadow); text-align: center; }
.public-card h1 { margin: 0; font-size: clamp(24px, 7vw, 30px); letter-spacing: -.02em; }
.public-lead { margin: 10px 0 24px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.qr-shell { position: relative; width: min(100%, 292px); aspect-ratio: 1; margin: 0 auto; padding: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.public-qr { display: block; width: 100%; height: 100%; object-fit: contain; -webkit-touch-callout: default; user-select: auto; }
.qr-blank { position: absolute; inset: 16px; border-radius: 10px; background: #f8fbfc; }
.public-hint { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 18px 0; color: var(--muted); font-size: 13px; }
.public-hint::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #65a57a; box-shadow: 0 0 0 4px rgba(101,165,122,.12); }
.public-foot { margin: 24px 0 0; color: #8998a4; text-align: center; font-size: 12px; }

@media (max-width: 1000px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n + 2) { border-bottom: 0; }
  .app-shell { grid-template-columns: 190px 1fr; }
  .sidebar { padding-inline: 12px; }
}
@media (max-width: 680px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 20; top: auto; bottom: 0; width: 100%; height: 66px; flex-direction: row; align-items: center; padding: 8px 14px max(8px, env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--line); }
  .sidebar .brand, .sidebar-role, .sidebar-foot { display: none; }
  .nav { width: 100%; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 0; }
  .nav-button { min-height: 48px; justify-content: center; padding: 0; border-left: 0; border-bottom: 3px solid transparent; border-radius: 0; font-size: 11px; }
  .nav-button.active { border-left-color: transparent; border-bottom-color: var(--blue); }
  .nav-label { display: block; }
  .main { padding: 24px 16px 92px; }
  .topbar { align-items: flex-start; }
  .link-tools { width: min(58vw, 310px); flex-wrap: wrap; justify-content: flex-end; }
  .search-box { width: 100%; height: 38px; }
  .page-title { font-size: 24px; }
  .page-subtitle { display: none; }
  .topbar .button { min-height: 38px; padding-inline: 12px; }
  .stat { min-height: 100px; padding: 16px; }
  .stat-value { font-size: 26px; }
  .modal { padding: 20px; }
  .toast { left: 16px; right: 16px; bottom: 84px; max-width: none; }
}
@media (max-width: 480px) {
  .topbar { flex-direction: column; }
  .link-tools { width: 100%; justify-content: flex-start; }
  .search-box { flex: 1; width: auto; }
}
@media (max-width: 370px) {
  .public-wrap { width: min(100% - 20px, 430px); }
  .public-card { padding-inline: 16px; }
}
@media (max-width: 680px) {
  .detail-title-row { align-items: flex-start; flex-direction: column; }
  .inline-form { align-items: stretch; flex-direction: column; }
  .inline-form .button { align-self: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

.console-page {
  --cloud: #f5fafc;
  --paper: #ffffff;
  --ink: #173247;
  --muted: #718694;
  --blue: #12a5e5;
  --blue-deep: #087fb9;
  --blue-soft: #eaf7fd;
  --line: #d8eaf2;
  --line-strong: #a9dcef;
  --red: #e5484d;
  --red-soft: #fff2f2;
  background: var(--cloud);
}
.console-page .app-shell { grid-template-columns: 198px minmax(0, 1fr); }
.console-page .sidebar {
  padding: 24px 14px 18px;
  border-right-color: var(--line);
  box-shadow: 7px 0 22px rgba(16, 100, 141, .025);
}
.console-page .sidebar .brand { padding: 0 10px; gap: 9px; }
.console-page .sidebar .cloud-mark { width: 36px; height: 21px; }
.console-page .sidebar .cloud-mark::before { width: 16px; height: 12px; top: -7px; }
.console-page .sidebar .cloud-mark::after { width: 11px; height: 9px; }
.console-page .sidebar .brand-name { font-size: 17px; letter-spacing: .035em; }
.console-page .sidebar-role { margin: 6px 0 0 55px; font-size: 10px; }
.console-page .nav { gap: 4px; margin-top: 34px; }
.console-page .nav-button {
  min-height: 40px;
  padding: 0 12px;
  border-left-width: 2px;
  font-size: 13px;
}
.console-page .nav-button:hover { background: #f4fbfe; }
.console-page .nav-button.active { background: #eaf7fd; }
.console-page .sidebar-foot { padding: 14px 10px 0; }
.console-page .main {
  min-height: 100vh;
  padding: 27px clamp(26px, 3.2vw, 50px) 48px;
  background: var(--cloud);
}
.console-page .view { width: 100%; max-width: 1460px; margin: 0 auto; }
.console-page .topbar {
  min-height: 54px;
  align-items: center;
  margin-bottom: 17px;
}
.console-page .topbar > div:first-child,
.console-page .detail-title-row > div:first-child { padding-left: 13px; border-left-width: 3px; }
.console-page .page-title { font-size: clamp(22px, 2.2vw, 26px); line-height: 1.15; letter-spacing: -.025em; }
.console-page .page-subtitle { margin-top: 6px; font-size: 12px; }
.console-page .topbar > .button,
.console-page .topbar-actions > .button { min-height: 34px; padding-inline: 14px; border-radius: 3px; font-size: 12px; }
.console-page .search-box { width: min(29vw, 240px); height: 34px; border-color: var(--line); border-radius: 3px; }
.console-page .stats {
  min-height: 74px;
  margin-bottom: 16px;
  border-color: var(--line);
  box-shadow: 0 5px 18px rgba(21, 91, 124, .025);
}
.console-page .stat {
  min-height: 72px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-color: var(--line);
}
.console-page .stat-label { font-size: 12px; }
.console-page .stat-value {
  margin: 0;
  color: var(--ink);
  font-size: 23px;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
}
.console-page .panel,
.console-page .detail-section {
  border-color: var(--line);
  border-radius: 2px;
  box-shadow: 0 8px 26px rgba(20, 87, 120, .025);
}
.console-page .panel-head {
  min-height: 54px;
  padding: 0 16px;
  border-bottom-color: var(--line);
}
.console-page .panel-head > div { display: flex; align-items: baseline; gap: 11px; }
.console-page .panel-title { font-size: 15px; }
.console-page .panel-copy { font-size: 11px; }
.console-page .text-action {
  padding: 6px 0;
  border: 0;
  color: var(--blue-deep);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 620;
}
.console-page .text-action:hover { color: var(--blue); }
.console-page th {
  padding: 9px 16px;
  color: var(--blue-deep);
  background: #f1faff;
  border-bottom-color: var(--line);
  font-size: 11px;
  font-weight: 650;
}
.console-page td {
  height: 66px;
  padding: 11px 16px;
  border-top-color: #e7f2f7;
  font-size: 12px;
}
.console-page tbody tr:hover td { background: #fafdff; }
.console-page .link-cell { min-width: 260px; }
.console-page .cell-title { color: var(--ink); font-size: 13px; font-weight: 680; }
.console-page .cell-sub {
  max-width: 340px;
  margin-top: 5px;
  color: #3a91b9;
  font-size: 11px;
}
.console-page .number-cell {
  color: var(--ink);
  font-size: 15px;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
}
.console-page .package-name { color: var(--ink); }
.console-page .package-name.unbound { color: #93a4af; }
.console-page .status { padding: 4px 7px; border-radius: 2px; font-size: 11px; }
.console-page .status::before { width: 5px; height: 5px; }
.console-page .button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 3px;
  font-size: 12px;
}
.console-page .button.small { min-height: 28px; padding: 0 9px; border-radius: 3px; font-size: 11px; }
.console-page .share-action { color: var(--blue-deep); background: #fff; border-color: var(--line-strong); }
.console-page .link-actions .button { width: 64px; min-height: 27px; }
.console-page .compact-select {
  width: 128px;
  height: 29px;
  border-color: var(--line);
  border-radius: 3px;
  font-size: 11px;
}
.console-page .switch { width: 36px; height: 20px; }
.console-page .switch span::after { width: 16px; height: 16px; left: 2px; top: 2px; }
.console-page .switch input:checked + span::after { transform: translateX(16px); }
.console-page .empty { padding: 54px 24px; }
.console-page .modal { border: 1px solid var(--line); border-radius: 5px; }
.console-page .icon-button { border-radius: 3px; }
.console-page .share-qr { border-radius: 4px; }
.console-page .link-box { border-radius: 3px; }
.console-page .toast { border-radius: 4px; }
.console-page .detail-header { margin-bottom: 20px; }
.console-page .detail-title-row { margin-top: 16px; }
.console-page .detail-section { margin-top: 14px; }
.console-page .detail-section-head { min-height: 58px; padding: 11px 16px; }
.console-page .inline-form { padding: 16px; }
.console-page .domain-pool-tools { padding-left: 0 !important; border-left: 0 !important; }
.console-page .domain-pool-tools .input { width: min(32vw, 280px); height: 34px; border-color: var(--line); border-radius: 3px; font-size: 12px; }
.console-page .domain-pool-tools .button { white-space: nowrap; }
.admin-page .domain-detail { max-width: 760px; }
.admin-page #domainRows td:first-child { min-width: 260px; }
.admin-page .customer-tools { padding-left: 0 !important; border-left: 0 !important; }
.admin-page .customer-select-cell { width: 42px; min-width: 42px; padding-right: 4px; text-align: center; }
.admin-page .row-check { display: inline-grid; place-items: center; cursor: pointer; }
.admin-page .row-check input { width: 15px; height: 15px; margin: 0; accent-color: var(--blue); cursor: pointer; }
.admin-page .batch-domain-copy { margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.7; }

@media (max-width: 1000px) {
  .console-page .app-shell { grid-template-columns: 178px minmax(0, 1fr); }
  .console-page .stat { padding-inline: 16px; }
}
@media (max-width: 680px) {
  .console-page .app-shell { display: block; }
  .console-page .sidebar { padding: 8px 14px max(8px, env(safe-area-inset-bottom)); }
  .console-page .main { padding: 22px 14px 88px; }
  .console-page .topbar { min-height: 46px; }
  .console-page .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .console-page .stat { min-height: 62px; padding: 12px 14px; }
  .console-page .stat-value { font-size: 21px; }
  .console-page .panel-head > div { display: block; }
  .console-page td { height: 62px; }
  .console-page .domain-pool-tools { width: min(62vw, 330px); }
  .console-page .domain-pool-tools .input { min-width: 0; width: 100%; }
}
@media (max-width: 480px) {
  .console-page .domain-pool-tools { width: 100%; }
  .console-page .domain-pool-tools .input { flex: 1; }
}
