:root {
  color-scheme: light;
  --bg: #f4f7fa;
  --surface: #fff;
  --ink: #183047;
  --text: #283e52;
  --muted: #748398;
  --line: #e4eaf0;
  --teal: #087e6f;
  --navy: #162e46;
  --red: #bd4150;
  --orange: #a36b12;
  --shadow: 0 18px 60px #132c4814;
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
a {
  color: var(--teal);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #21b9a65c;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  color: var(--ink);
  font-size: 1.9rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin: 5px 0 8px;
}
h2 {
  font-size: 1.4rem;
  letter-spacing: -0.025em;
  margin: 4px 0 6px;
  color: var(--ink);
}
h3 {
  font-size: 1rem;
  color: var(--ink);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 650;
  white-space: nowrap;
}
.brand:hover {
  text-decoration: none;
}
.brand small {
  display: block;
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-top: 3px;
}
.brand img {
  flex: none;
}
.eyebrow {
  font-size: 0.69rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.13em;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 8px;
  padding: 11px 17px;
  border: 1px solid transparent;
  line-height: 1.3;
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 43px;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.button.primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 3px 5px #16314913;
}
.button.primary:hover {
  background: #23465f;
}
.button.secondary {
  background: #fff;
  border-color: #dce4eb;
  color: var(--text);
}
.button.secondary:hover {
  background: #f3f6fa;
}
.button.danger {
  color: var(--red);
  background: #fff;
  border-color: #edd5d9;
}
.button.small {
  padding: 8px 12px;
  font-size: 0.82rem;
  min-height: 35px;
}
.button.wide {
  width: 100%;
  justify-content: space-between;
}
.icon-button {
  background: transparent;
  border: 0;
  color: var(--muted);
  border-radius: 6px;
  font-size: 1.3rem;
  width: 34px;
  height: 34px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-button:hover {
  background: #eaf0f5;
  color: var(--ink);
}
.muted {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}
.login-view {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 25% 20%, #def3f080, transparent 55%), var(--bg);
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 450px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}
.login-card .brand {
  margin-bottom: 42px;
}
.login-card h1 {
  font-size: 1.65rem;
}
.login-card > p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 30px;
}
.login-card .login-foot {
  font-size: 0.75rem;
  margin: 26px 0 0;
  text-align: center;
}
label {
  display: block;
  font-size: 0.87rem;
  font-weight: 550;
  margin-bottom: 8px;
}
input,
textarea,
select {
  color: var(--ink);
  border: 1px solid #dbe3eb;
  background: #fff;
  border-radius: 7px;
  padding: 10px 12px;
  min-height: 42px;
}
input::placeholder,
textarea::placeholder {
  color: #97a4b2;
}
textarea {
  resize: vertical;
  line-height: 1.75;
  width: 100%;
}
input[type="password"],
form > input {
  width: 100%;
}
.form-error {
  color: var(--red);
  min-height: 20px;
  font-size: 0.85rem;
  margin: 8px 0;
}
.app-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 30px 20px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100dvh;
}
.sidebar .brand {
  margin-bottom: 45px;
}
.nav-label {
  font-size: 0.69rem;
  letter-spacing: 0.07em;
  color: #93a0af;
  margin: 0 12px 10px;
}
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  text-align: left;
  color: #687c90;
  font-size: 0.87rem;
  margin-bottom: 5px;
  white-space: nowrap;
}
.nav-item > span:first-child {
  width: 18px;
  display: inline-flex;
  justify-content: center;
  font-size: 1.13rem;
  line-height: 1;
}
.nav-item:hover {
  background: #f4f7fa;
}
.nav-item.active {
  background: #eaf5f3;
  color: #086d62;
  font-weight: 600;
}
.nav-count {
  margin-left: auto;
  color: var(--teal);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  background: #d4ece6;
  min-width: 23px;
  border-radius: 5px;
  text-align: center;
  padding: 2px 4px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.account {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding: 22px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
}
.account small {
  display: block;
  font-size: 0.67rem;
  color: var(--muted);
  margin-top: 3px;
}
.account .icon-button {
  margin-left: auto;
}
.avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e8eef5;
  color: #526a81;
  font-size: 0.8rem;
  font-weight: 700;
}
.workspace {
  min-width: 0;
  padding: 0 36px 24px;
  max-width: 1800px;
  width: 100%;
  margin: auto;
}
.workspace-top {
  height: 71px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #8b99a8;
}
.workspace-top strong {
  font-weight: 500;
  color: #5c7186;
}
.separator {
  margin: 0 12px;
  color: #c4cdd5;
}
.timezone {
  font-size: 0.7rem;
}
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 32px 0 25px;
}
.page-header p {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}
.header-actions {
  display: flex;
  gap: 10px;
  flex: none;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 19px 21px;
  text-align: left;
  color: var(--muted);
  min-width: 0;
}
.stat:hover {
  border-color: #b7c9d6;
  box-shadow: 0 2px 10px #15314a07;
}
.stat-label {
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  gap: 7px;
}
.stat-label i {
  font-style: normal;
  color: #a4b2c1;
}
.stat-value {
  display: block;
  color: var(--ink);
  font-size: 2rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  margin: 10px 0 5px;
}
.stat-sub {
  font-size: 0.7rem;
  color: #9aa6b4;
}
.stat.warning .stat-value {
  color: var(--orange);
}
.stat.danger .stat-value {
  color: var(--red);
}
.stat.accent {
  border-top: 3px solid var(--teal);
  padding-top: 17px;
}
.list-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 3px 7px #1d354e03;
}
.toolbar {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.search-wrap {
  position: relative;
  flex: 1;
  min-width: 210px;
  max-width: 360px;
}
.search-wrap > span {
  position: absolute;
  left: 12px;
  top: 6px;
  font-size: 1.55rem;
  color: #91a0b1;
}
.search-wrap input {
  padding-left: 37px;
  width: 100%;
  font-size: 0.82rem;
  background: #f9fbfc;
  border-color: #e6ebf0;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filters select {
  font-size: 0.79rem;
  max-width: 160px;
  min-height: 40px;
  color: #64798b;
  padding: 8px 27px 8px 10px;
}
.domain-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.85rem;
  table-layout: fixed;
}
.domain-table th {
  font-weight: 500;
  text-align: left;
  font-size: 0.74rem;
  color: #8593a3;
  background: #f9fbfc;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 13px 16px;
}
.domain-table th:first-child,
.domain-table td:first-child {
  padding-left: 23px;
  width: 26%;
}
.domain-table th:nth-child(2) {
  width: 16%;
}
.domain-table th:nth-child(3) {
  width: 18%;
}
.domain-table th:nth-child(4) {
  width: 18%;
}
.domain-table th:nth-child(5) {
  width: 17%;
}
.domain-table th:last-child {
  width: 5%;
  padding: 0;
}
.domain-table th small {
  display: block;
  font-size: 0.63rem;
  margin-top: 4px;
  color: #9aa8b4;
}
.domain-table td {
  padding: 19px 16px;
  border-bottom: 1px solid #eef2f6;
  vertical-align: middle;
}
.domain-table tbody tr:last-child td {
  border-bottom: 0;
}
.domain-table tbody tr:hover {
  background: #fbfdfd;
}
.domain-table td:last-child {
  padding: 0 6px 0 0;
}
.domain-name {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  overflow-wrap: anywhere;
  font-family:
    ui-monospace, "SFMono-Regular", Consolas, "Microsoft YaHei", monospace;
}
.domain-name:hover {
  color: var(--teal);
  text-decoration: underline;
}
.domain-note {
  display: block;
  color: #99a5b3;
  font-size: 0.7rem;
  line-height: 1.5;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.registrar {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #5c7083;
  font-size: 0.79rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.registrar-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 23px;
  height: 23px;
  background: #edf1f7;
  border: 1px solid #e4eaf1;
  border-radius: 6px;
  font-size: 0.67rem;
  font-weight: 700;
  color: #70859a;
}
.registrar-icon.cloudflare {
  background: #fff3e6;
  color: #e48723;
  border-color: #fae9d6;
}
.registrar-icon.spaceship {
  background: #e9f3fd;
  color: #4178b9;
  border-color: #d7e8fa;
}
.registrar-icon.porkbun {
  background: #faeaf0;
  color: #bd718c;
  border-color: #f0d8e1;
}
.registrar-icon.nameslink {
  background: #f1edfc;
  color: #826dc1;
  border-color: #e5dcf6;
}
.date-value {
  font-size: 0.83rem;
  font-variant-numeric: tabular-nums;
  color: #4c657a;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 5px;
  font-size: 0.67rem;
  font-weight: 500;
  line-height: 1.6;
  padding: 2px 6px;
  background: #f0f4f8;
  color: #718398;
  white-space: nowrap;
}
.badge.normal {
  background: #eaf5ef;
  color: #4f8770;
}
.badge.soon {
  background: #fff4df;
  color: #a27828;
}
.badge.urgent,
.badge.expired {
  background: #fcebed;
  color: #bc5964;
}
.badge.manual {
  background: #edf3fb;
  color: #557eab;
}
.date-status {
  display: flex;
  gap: 5px;
  margin-top: 5px;
  flex-wrap: wrap;
}
.money {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.92rem;
  color: #345568;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.money small {
  font-family: inherit;
  color: #9ba7b3;
  font-size: 0.66rem;
  margin-left: 3px;
}
.quote-caption {
  display: block;
  font-size: 0.67rem;
  line-height: 1.6;
  color: #90a0ae;
  margin-top: 4px;
}
.quote-caption.stale {
  color: var(--orange);
}
.dash {
  color: #b5bfc9;
}
.list-footer {
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8b9aaa;
  font-size: 0.73rem;
  gap: 12px;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  font-variant-numeric: tabular-nums;
}
.pagination .icon-button {
  height: 28px;
  width: 28px;
  font-size: 1.25rem;
  border: 1px solid var(--line);
}
.workspace-note {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #9aa6b3;
  font-size: 0.69rem;
  line-height: 1.8;
  margin: 15px 0 0;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 62px 24px 68px;
}
.empty-symbol {
  width: 58px;
  height: 58px;
  border: 1px solid #dce9e8;
  border-radius: 16px;
  background: #f0f8f6;
  display: grid;
  place-items: center;
  color: #548f84;
  font-size: 1.8rem;
  margin-bottom: 20px;
}
.empty h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.empty p {
  max-width: 390px;
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 22px;
}
.job-panel {
  background: #eef6f8;
  border: 1px solid #d9e9ed;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.8rem;
}
.job-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.job-panel progress {
  width: 100%;
  height: 5px;
  accent-color: var(--teal);
  display: block;
  margin: 10px 0 4px;
}
.job-panel details {
  margin-top: 8px;
  color: #778b9b;
  font-size: 0.73rem;
}
.job-panel details p {
  margin: 8px 0;
  line-height: 1.6;
}
.job-panel.partial {
  background: #fffbf1;
  border-color: #eee4ca;
}
.job-panel.completed {
  background: #f0f8f5;
  border-color: #dbece5;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  color: #fff;
  background: #1b3b50;
  border: 1px solid #ffffff33;
  box-shadow: var(--shadow);
  border-radius: 9px;
  padding: 12px 20px;
  max-width: 90vw;
  font-size: 0.86rem;
}
.toast.error {
  background: #983947;
}
dialog {
  border: 1px solid var(--line);
  padding: 26px;
  border-radius: 14px;
  color: var(--text);
  background: #fff;
  box-shadow: 0 30px 100px #0c243142;
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #142d466e;
  backdrop-filter: blur(3px);
}
.modal {
  width: 540px;
  max-width: calc(100vw - 28px);
}
.modal.compact {
  max-width: 420px;
}
.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 23px;
}
.dialog-heading .icon-button {
  margin-top: -3px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.import-preview {
  font-size: 0.82rem;
  line-height: 1.8;
}
.import-preview ul {
  max-height: 130px;
  overflow: auto;
  color: var(--red);
  padding-left: 20px;
}
.import-preview .success-text {
  color: var(--teal);
}
.detail-dialog {
  width: 800px;
  max-width: calc(100vw - 24px);
  padding: 28px;
}
.detail-dialog h2 {
  font-family: ui-monospace, Consolas, monospace;
  overflow-wrap: anywhere;
  font-size: 1.4rem;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 26px;
  margin-bottom: 23px;
}
.tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 0 0 12px;
  color: #8a98a8;
  font-size: 0.88rem;
}
.tabs button[aria-selected="true"] {
  color: var(--teal);
  border-bottom-color: var(--teal);
  font-weight: 650;
}
.detail-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
.detail-fact {
  background: #f7f9fb;
  border: 1px solid #edf1f4;
  border-radius: 8px;
  padding: 13px 16px;
}
.detail-fact small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.detail-fact strong {
  font-size: 1rem;
  color: var(--ink);
  font-weight: 550;
}
.notice {
  background: #fff9ed;
  color: #957128;
  border: 1px solid #f1e8d2;
  font-size: 0.79rem;
  line-height: 1.7;
  border-radius: 7px;
  padding: 12px 14px;
  margin: 12px 0 20px;
  overflow-wrap: anywhere;
}
.notice.info {
  background: #f0f6fa;
  border-color: #e1ecf4;
  color: #668197;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid input,
.form-grid select {
  width: 100%;
  font-size: 0.87rem;
}
.field-hint {
  display: block;
  font-size: 0.72rem;
  line-height: 1.65;
  color: #91a0ae;
  margin-top: 6px;
}
.full-field {
  margin-top: 17px;
}
.detail-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.detail-buttons > div {
  display: flex;
  gap: 8px;
}
.quote-editor {
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding-top: 20px;
}
.quote-editor > summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}
.quote-editor form {
  margin-top: 18px;
}
.quote-editor .form-grid {
  grid-template-columns: 2fr 1fr 1fr;
}
.quote-editor p {
  font-size: 0.78rem;
  margin: 12px 0;
  line-height: 1.6;
  color: var(--muted);
}
.manual-item {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  background: #f6f9fb;
  padding: 8px 12px;
  border-radius: 7px;
  margin-top: 8px;
  font-size: 0.77rem;
}
.rank-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.rank-switches {
  display: flex;
  align-items: center;
  gap: 16px;
}
.rank-switches label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.79rem;
  color: #647e90;
  margin: 0;
  font-weight: 400;
}
.rank-switches input {
  accent-color: var(--teal);
  width: 15px;
  height: 15px;
  min-height: 0;
  padding: 0;
}
.rank-summary {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 15px;
}
.rank-summary a {
  margin-left: 10px;
}
.rank-group-title {
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--ink);
  margin: 22px 0 10px;
}
.rank-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.rank-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 13px;
  padding: 14px 16px;
  border-bottom: 1px solid #edf1f4;
  align-items: center;
}
.rank-row:last-child {
  border-bottom: 0;
}
.rank-row.favorite {
  background: #fbfdfd;
}
.rank-number {
  width: 23px;
  height: 23px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  color: #9cabb7;
  background: #f1f5f8;
  font-variant-numeric: tabular-nums;
}
.rank-number.top {
  color: #208879;
  background: #e1f4ee;
}
.rank-row .registrar {
  font-size: 0.88rem;
  color: var(--ink);
}
.rank-price {
  text-align: right;
  align-self: start;
}
.rank-price strong {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 1rem;
  color: var(--ink);
  font-weight: 600;
}
.rank-price small {
  display: block;
  font-size: 0.67rem;
  color: var(--muted);
  margin-top: 4px;
}
.rank-notes {
  color: #8b9aa6;
  font-size: 0.71rem;
  line-height: 1.7;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.coupon {
  display: inline-block;
  font:
    0.69rem ui-monospace,
    Consolas,
    monospace;
  color: var(--teal);
  border: 1px dashed #99c7bb;
  border-radius: 3px;
  padding: 2px 5px;
  margin: 4px 6px 0 0;
}
.source-link {
  font-size: 0.69rem;
  color: #7b8e9d;
}
.expand-rank {
  display: block;
  width: 100%;
  margin-top: 12px;
}
.help-content p {
  font-size: 0.88rem;
  line-height: 1.9;
  color: #6d8193;
}
.help-content h3 {
  margin: 24px 0 8px;
}
.compact > p {
  font-size: 0.9rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
@media (min-width: 1600px) {
  .workspace {
    padding-left: 48px;
    padding-right: 48px;
  }
  .domain-table td {
    padding-top: 22px;
    padding-bottom: 22px;
  }
}
@media (max-width: 1180px) {
  .app-layout {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 14px;
    padding-right: 14px;
  }
  .workspace {
    padding-left: 24px;
    padding-right: 24px;
  }
  .stat {
    padding: 16px;
  }
  .stat.accent {
    padding-top: 14px;
  }
  .stats {
    gap: 10px;
  }
  .domain-table td,
  .domain-table th {
    padding-left: 10px;
    padding-right: 10px;
  }
  .domain-table th:first-child,
  .domain-table td:first-child {
    padding-left: 16px;
  }
  .toolbar {
    gap: 12px;
  }
  .search-wrap {
    max-width: none;
  }
  .filters {
    flex: 1;
    justify-content: flex-end;
  }
  .filters select {
    max-width: 145px;
  }
  .workspace-note > span {
    display: none;
  }
}
@media (max-width: 900px) {
  .app-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 15px 20px;
    flex-direction: row;
    align-items: center;
    gap: 25px;
  }
  .sidebar .brand {
    margin: 0;
  }
  .sidebar .brand small {
    display: none;
  }
  .sidebar > .nav-label,
  .sidebar-bottom > .nav-label,
  .sidebar-bottom > .nav-item,
  .account > div,
  .avatar {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 6px;
    margin-left: auto;
  }
  .nav-item {
    margin: 0;
    padding: 9px 10px;
    font-size: 0.79rem;
  }
  .sidebar-bottom {
    padding: 0;
    margin: 0;
  }
  .account {
    padding: 0;
    margin: 0;
    border: 0;
  }
  .nav-count {
    display: none;
  }
  .workspace-top {
    height: 55px;
  }
  .page-header {
    margin-top: 26px;
  }
  .domain-table {
    font-size: 0.8rem;
  }
}
@media (max-width: 640px) {
  .sidebar {
    padding: 13px 16px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .sidebar .brand {
    font-size: 0.9rem;
    gap: 8px;
  }
  .sidebar .brand img {
    height: 28px;
    width: 28px;
  }
  .sidebar nav {
    gap: 1px;
  }
  .nav-item {
    font-size: 0.76rem;
    padding: 8px;
  }
  .nav-item > span:first-child {
    display: none;
  }
  .sidebar-bottom {
    margin-left: 0;
  }
  .account .icon-button {
    width: 27px;
  }
  .workspace {
    padding: 0 16px 22px;
  }
  .workspace-top {
    font-size: 0.68rem;
    height: 45px;
  }
  .timezone {
    font-size: 0.64rem;
  }
  .page-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
    margin-bottom: 18px;
  }
  .page-header h1 {
    font-size: 1.7rem;
  }
  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .header-actions .button {
    flex: 1;
    font-size: 0.85rem;
    padding: 10px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 17px;
  }
  .stat {
    padding: 15px;
  }
  .stat.accent {
    padding-top: 13px;
  }
  .stat-value {
    font-size: 1.65rem;
    margin-top: 7px;
  }
  .stat-label {
    font-size: 0.75rem;
  }
  .stat-sub {
    font-size: 0.66rem;
  }
  .toolbar {
    padding: 13px;
    gap: 9px;
  }
  .search-wrap {
    min-width: 100%;
    max-width: 100%;
  }
  .filters {
    width: 100%;
    gap: 5px;
  }
  .filters select {
    flex: 1;
    width: 0;
    min-width: 0;
    font-size: 0.73rem;
    padding-left: 7px;
    padding-right: 15px;
  }
  .domain-table,
  .domain-table tbody {
    display: block;
  }
  .domain-table thead {
    display: none;
  }
  .domain-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px 12px;
    padding: 17px 15px;
    border-top: 1px solid var(--line);
    position: relative;
  }
  .domain-table td {
    display: block;
    border: 0;
    padding: 0 !important;
    min-width: 0;
  }
  .domain-table td:first-child {
    width: auto;
    grid-column: 1/-1;
    padding-right: 35px !important;
  }
  .domain-table td:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
  }
  .domain-table td:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }
  .domain-table td:nth-child(4),
  .domain-table td:nth-child(5) {
    border-top: 1px dashed var(--line);
    padding-top: 10px !important;
  }
  .domain-table td:nth-child(4):before {
    content: "当前续费";
    display: block;
    font-size: 0.67rem;
    color: #8e9dab;
    margin-bottom: 6px;
  }
  .domain-table td:nth-child(5):before {
    content: "最低转入 · USD / 年";
    display: block;
    font-size: 0.67rem;
    color: #8e9dab;
    margin-bottom: 6px;
  }
  .domain-table td:last-child {
    position: absolute;
    top: 13px;
    right: 10px;
  }
  .domain-name {
    font-size: 1rem;
  }
  .domain-note {
    font-size: 0.72rem;
  }
  .list-footer {
    padding: 12px 14px;
    font-size: 0.69rem;
  }
  .empty {
    padding: 42px 20px;
  }
  .empty p {
    font-size: 0.8rem;
  }
  .workspace-note {
    font-size: 0.66rem;
  }
  .detail-dialog {
    padding: 20px;
    max-height: 94dvh;
  }
  .detail-dialog h2 {
    font-size: 1.1rem;
  }
  .detail-overview {
    gap: 10px;
  }
  .detail-fact {
    padding: 12px;
  }
  .detail-fact strong {
    font-size: 0.87rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .quote-editor .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .quote-editor .form-grid > div:first-child {
    grid-column: 1/-1;
  }
  .detail-buttons > .button {
    flex: 1;
  }
  .detail-buttons > div {
    width: 100%;
    justify-content: flex-end;
  }
  .detail-buttons > div .button {
    flex: 1;
  }
  .tabs {
    gap: 23px;
  }
  .tabs button {
    font-size: 0.82rem;
  }
  .rank-row {
    padding: 13px 10px;
    gap: 8px;
    grid-template-columns: 24px minmax(0, 1fr) auto;
  }
  .rank-row .registrar {
    font-size: 0.78rem;
  }
  .rank-price strong {
    font-size: 0.93rem;
  }
  .rank-toolbar {
    align-items: stretch;
  }
  .rank-switches {
    gap: 12px;
  }
  .rank-switches label {
    font-size: 0.75rem;
  }
  .modal {
    padding: 22px;
  }
  .login-card {
    padding: 30px 25px;
  }
  .login-card h1 {
    font-size: 1.5rem;
  }
  .job-top {
    font-size: 0.73rem;
  }
  .job-panel {
    padding: 12px;
  }
  .brand small {
    font-size: 0.65rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.brand small,
.eyebrow,
.nav-label,
.account small,
.workspace-top,
.timezone,
.stat-sub,
.domain-table th small,
.domain-note,
.badge,
.money small,
.quote-caption,
.workspace-note,
.field-hint,
.rank-notes,
.rank-price small,
.coupon,
.source-link,
.list-footer,
.job-panel details {
  font-size: max(0.75rem, 12px);
}
.stat-label,
.nav-item,
.filters select,
.registrar,
.date-value,
.tabs button,
.rank-switches label {
  font-size: max(0.875rem, 14px);
}
@media (max-width: 640px) {
  .sidebar-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    gap: 4px;
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }
  .sidebar-bottom > .nav-item {
    display: flex;
    width: auto;
    flex: 1;
    justify-content: center;
    font-size: 0.75rem;
    padding: 6px 4px;
  }
  .account {
    margin-left: auto;
  }
  .sidebar nav .nav-item {
    font-size: 0.75rem;
  }
  .domain-table td:nth-child(4):before,
  .domain-table td:nth-child(5):before {
    font-size: 0.75rem;
  }
  .rank-row .registrar {
    font-size: 0.875rem;
  }
  .rank-switches {
    flex-wrap: wrap;
  }
  .detail-dialog .dialog-heading {
    gap: 8px;
  }
  .filters {
    flex-wrap: wrap;
  }
  .filters select {
    min-width: calc(50% - 5px);
    font-size: 0.875rem;
  }
  .timezone {
    display: none;
  }
}
