:root {
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-soft: #f8f9fd;
  --surface-hover: #f2f4fa;
  --text: #0f172a;
  --muted: #667085;
  --faint: #98a2b3;
  --border: #e6e9f0;
  --border-strong: #d5dae5;

  --primary: #4f46e5;
  --primary-strong: #4338ca;
  --primary-soft: rgba(79, 70, 229, 0.08);
  --primary-ring: rgba(79, 70, 229, 0.2);
  --danger: #dc2650;
  --danger-soft: rgba(220, 38, 80, 0.08);

  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-sm: 0 6px 18px -10px rgba(16, 24, 40, 0.18);
  --shadow-lg: 0 40px 90px -44px rgba(49, 46, 129, 0.42);

  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --topbar-bg: rgba(244, 246, 251, 0.78);
  --grad: linear-gradient(135deg, #6366f1 0%, #0ea5e9 100%);
  --grad-soft: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(14, 165, 233, 0.12));
}

[data-theme="dark"] {
  --bg: #070b15;
  --surface: #0e1524;
  --surface-soft: #121b2d;
  --surface-hover: #17203a;
  --text: #e8edf7;
  --muted: #93a0b8;
  --faint: #6b7891;
  --border: #1f2a42;
  --border-strong: #2b3854;

  --primary: #8b93ff;
  --primary-strong: #aeb4ff;
  --primary-soft: rgba(124, 140, 255, 0.12);
  --primary-ring: rgba(124, 140, 255, 0.28);
  --danger: #ff7593;
  --danger-soft: rgba(255, 117, 147, 0.1);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 10px 30px -18px rgba(0, 0, 0, 0.65);
  --shadow-lg: 0 40px 90px -40px rgba(0, 0, 0, 0.8);

  --topbar-bg: rgba(7, 11, 21, 0.72);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.hidden {
  display: none !important;
}

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 1px 6px;
  border-radius: 6px;
}

a {
  color: var(--primary);
}

.background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.6;
}

.orb-a {
  width: 640px;
  height: 640px;
  top: -300px;
  right: -180px;
  background: radial-gradient(circle at 35% 35%, rgba(99, 102, 241, 0.45), transparent 68%);
}

.orb-b {
  width: 580px;
  height: 580px;
  bottom: -280px;
  left: -220px;
  background: radial-gradient(circle at 60% 40%, rgba(14, 165, 233, 0.34), transparent 68%);
}

[data-theme="dark"] .orb {
  opacity: 0.4;
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.boot.done {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 26px;
  height: 26px;
  border: 2.5px solid var(--border-strong);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ---------- brand ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 10px 22px -10px rgba(79, 70, 229, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.brand-text small {
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.02em;
}

/* ---------- buttons ---------- */

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  height: 44px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.btn:active {
  transform: translateY(1px) scale(0.995);
}

.btn.primary {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 14px 28px -14px rgba(79, 70, 229, 0.8);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px -14px rgba(79, 70, 229, 0.85);
}

.btn.ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

.btn.ghost:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.btn.danger {
  color: #fff;
  background: #e11d48;
  box-shadow: 0 12px 26px -14px rgba(225, 29, 72, 0.8);
}

.btn.danger:hover {
  background: #be123c;
}

.btn.small {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 10px;
}

.btn.block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn.loading .btn-spinner {
  display: inline-block;
}

.btn.loading .btn-label {
  opacity: 0.85;
}

.icon-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: transparent;
}

.field input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn:focus-visible,
.icon-btn:focus-visible,
.link-btn:focus-visible,
input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--primary-ring);
}

.btn.primary:focus-visible {
  box-shadow: 0 0 0 4px var(--primary-ring), 0 14px 28px -14px rgba(79, 70, 229, 0.8);
}

.icon-btn {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.icon-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.link-btn {
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.link-btn:hover {
  color: var(--primary-strong);
}

[data-theme-toggle] .icon-sun {
  display: none;
}

[data-theme="dark"] [data-theme-toggle] .icon-sun {
  display: block;
}

[data-theme="dark"] [data-theme-toggle] .icon-moon {
  display: none;
}

/* ---------- login ---------- */

.login-view {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}

.theme-fab {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2;
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}

.login-card {
  width: min(420px, 100%);
  padding: 38px 36px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.login-card.shake {
  animation: shake 0.4s ease;
}

.brand-lg {
  margin-bottom: 30px;
}

.login-card h1 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -0.025em;
}

.login-card .muted {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 14px;
}

#login-form .field {
  margin-bottom: 6px;
}

.login-card .hint {
  margin: 24px 0 0;
  font-size: 12px;
  color: var(--faint);
  text-align: center;
}

.form-error {
  min-height: 18px;
  margin: 8px 0 12px;
  font-size: 13px;
  color: var(--danger);
}

/* ---------- fields ---------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  min-width: 0;
}

.field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.field input::placeholder {
  color: var(--faint);
  font-weight: 400;
}

.field input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--primary-ring);
}

/* ---------- topbar ---------- */

.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.topbar-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 13px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 44px 24px 28px;
  flex: 1;
}

.hero {
  margin-bottom: 26px;
  animation: rise 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin: 0;
  max-width: 660px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- publish card ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.publish-card {
  padding: 16px;
  animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) 0.05s both;
}

.dropzone {
  position: relative;
  padding: 48px 24px;
  text-align: center;
  background: var(--surface-soft);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.dropzone:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.dropzone:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-ring);
}

.dropzone.dragging {
  border-color: var(--primary);
  background: var(--primary-soft);
  transform: scale(1.004);
}

.drop-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad);
  border-radius: 20px;
  box-shadow: 0 18px 32px -16px rgba(79, 70, 229, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.drop-title {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.drop-sub {
  color: var(--muted);
  font-size: 13.5px;
}

.sep {
  margin: 0 8px;
  color: var(--faint);
}

.drop-meta {
  margin-top: 18px;
  font-size: 12px;
  color: var(--faint);
}

/* ---------- selection ---------- */

.selection {
  animation: rise 0.28s ease both;
}

.selection-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.sel-icon {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--grad-soft);
  border-radius: 12px;
}

.sel-info {
  flex: 1;
  min-width: 0;
}

.sel-name {
  font-size: 14.5px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sel-meta {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.slug-input {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 46px;
  padding: 0 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.slug-input:focus-within {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--primary-ring);
}

.slug-input .affix {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 13px;
}

.slug-input input {
  height: 100%;
  min-width: 0;
  flex: 1;
  padding: 0 4px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-family: var(--font-mono);
  font-size: 13.5px;
}

.slug-input input:focus {
  background: transparent;
  box-shadow: none;
}

.progress {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  background: var(--border);
  border-radius: 99px;
}

.progress-fill {
  width: 0;
  height: 100%;
  background: var(--grad);
  border-radius: inherit;
  transition: width 0.2s ease;
}

.selection-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

/* ---------- sites ---------- */

.sites {
  margin-top: 42px;
  animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) 0.1s both;
}

.sites-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sites-head h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.015em;
}

.count-pill {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 22px;
  padding: 0 8px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
}

.sites-stats {
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.sites-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.site-row:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.site-row.is-new {
  animation: flash 1.6s ease;
}

.site-tile {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad);
  border-radius: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.site-main {
  min-width: 0;
}

.site-name {
  margin-bottom: 3px;
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-link span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.dot {
  width: 3px;
  height: 3px;
  background: var(--border-strong);
  border-radius: 50%;
}

.badge {
  padding: 1px 7px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 11px;
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-actions .icon-btn {
  color: var(--muted);
}

.site-actions .icon-btn.danger:hover {
  color: var(--danger);
  background: var(--danger-soft);
}

.empty-state {
  padding: 46px 24px;
  text-align: center;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}

.empty-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  color: var(--faint);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.empty-state h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 14.5px;
}

.empty-state p {
  margin: 0;
  font-size: 13px;
}

.skeleton-row {
  position: relative;
  height: 78px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.skeleton-row::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(127, 127, 155, 0.1), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}

.footer {
  padding: 32px 24px 40px;
  text-align: center;
  color: var(--faint);
  font-size: 12px;
}

/* ---------- toast & dialog ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 40px);
  padding: 11px 12px 11px 16px;
  color: #f9fafb;
  background: #111827;
  border-radius: 12px;
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.55);
  font-size: 13.5px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 16px);
  transition: opacity 0.25s cubic-bezier(0.2, 0.8, 0.3, 1), transform 0.25s cubic-bezier(0.2, 0.8, 0.3, 1), visibility 0.25s;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.toast.error {
  background: #be123c;
}

.toast-action {
  padding: 6px 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.toast-action:hover {
  background: rgba(255, 255, 255, 0.26);
}

.dialog {
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--text);
}

.dialog::backdrop {
  background: rgba(7, 11, 21, 0.5);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.dialog-body {
  width: min(430px, calc(100vw - 40px));
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  animation: rise 0.25s ease both;
}

.dialog-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  display: grid;
  place-items: center;
  color: var(--danger);
  background: var(--danger-soft);
  border-radius: 14px;
}

.dialog h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.015em;
}

.dialog p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ---------- animations ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-3px); }
  40%, 60% { transform: translateX(3px); }
}

@keyframes flash {
  0% { box-shadow: 0 0 0 0 var(--primary-ring); }
  100% { box-shadow: 0 0 0 14px transparent; }
}

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .topbar-inner {
    padding: 12px 18px;
  }

  .container {
    padding: 30px 18px 20px;
  }

  .hero h1 {
    font-size: 27px;
  }

  .publish-card {
    padding: 12px;
  }

  .dropzone {
    padding: 36px 18px;
  }

  .fields {
    grid-template-columns: 1fr;
  }

  .login-card {
    padding: 32px 24px 26px;
  }

  .sites-head {
    align-items: flex-end;
  }

  .site-row {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 14px;
  }

  .site-tile {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }

  .site-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-top: 2px;
    border-top: 1px dashed var(--border);
    margin-top: 2px;
  }

  .site-actions .icon-btn {
    width: 38px;
    height: 38px;
  }

  .sites-stats {
    display: none;
  }

  .toast {
    bottom: 18px;
  }
}

@media (max-width: 420px) {
  .brand-text small {
    display: none;
  }

  .selection-actions .btn {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

::selection {
  background: var(--primary-ring);
}
