@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700&family=Noto+Sans+SC:wght@400;500;700&display=swap");

/* —— 主题：青瓷匣 Celadon Case —— */
:root {
  --ink: #243038;
  --ink-2: #4a5a63;
  --muted: #7a8b93;
  --line: #d5e0e2;
  --paper: #eef3f2;
  --surface: #fbfdfc;
  --brand: #3f7a6e;
  --brand-soft: #e3efeB;
  --brand-2: #2f5f55;
  --accent: #c4a35a;
  --accent-soft: #f5eedc;
  --ok: #3f7a6e;
  --ok-soft: #e3efeB;
  --danger: #b54a4a;
  --danger-soft: #f8eaea;
  --warn: #a67c2d;
  --warn-soft: #f5eedc;
  --side: 232px;
  --side-min: 68px;
  --top: 56px;
  --r: 12px;
  --r-lg: 16px;
  --space: 8px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 1px 2px rgba(36, 48, 56, .04), 0 10px 28px rgba(63, 122, 110, .08);
  --focus: 0 0 0 3px rgba(63, 122, 110, .22);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }
body {
  font-family: "Manrope", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(63, 122, 110, .1), transparent 55%),
    radial-gradient(700px 360px at 100% 0%, rgba(196, 163, 90, .08), transparent 50%),
    linear-gradient(165deg, #f4f7f6 0%, #eef3f2 50%, #e8eeec 100%);
  line-height: 1.5;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--focus); }

/* —— Login —— */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
}
.login-visual {
  position: relative;
  overflow: hidden;
  color: #fbfdfc;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(155deg, #2a4a44 0%, #3f7a6e 48%, #5a9084 100%);
}
.login-visual::before {
  content: "";
  position: absolute;
  inset: 18% -10% auto 40%;
  height: 70%;
  background: radial-gradient(circle, rgba(251, 253, 252, .14), transparent 68%);
  pointer-events: none;
}
.login-visual::after {
  content: "";
  position: absolute;
  left: 48px;
  top: 48px;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(251, 253, 252, .35);
  border-radius: 50% 40% 55% 45%;
  box-shadow: inset 0 0 0 10px rgba(196, 163, 90, .2);
}
.login-visual h2 {
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 10px;
}
.login-visual p { opacity: .78; max-width: 32em; font-size: 15px; }
.login-side {
  display: grid;
  place-items: center;
  padding: 40px 28px;
  background: var(--paper);
}
.login-card {
  width: min(400px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.login-card h1 { font-size: 1.25rem; font-weight: 700; margin-bottom: 4px; }
.login-card .sub { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.field input, .field textarea, .field select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 12px;
  outline: none;
  border-radius: var(--r);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea {
  height: 96px;
  padding: 10px 12px;
  resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--brand);
  box-shadow: var(--focus);
}
.btn-primary {
  width: 100%;
  height: 42px;
  border: 0;
  background: linear-gradient(135deg, #4a8a7c, var(--brand-2));
  color: #fff;
  font-weight: 700;
  margin-top: 8px;
  border-radius: 999px;
}
.btn-primary:hover { filter: brightness(1.05); }
.login-tip {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.login-tip a { color: var(--brand); font-weight: 600; }

/* —— Shell —— */
.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--side) 1fr;
}

.sidebar {
  background: linear-gradient(180deg, #243830 0%, #1c2e28 55%, #182620 100%);
  color: rgba(251, 253, 252, .92);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  z-index: 40;
}
.side-brand {
  height: var(--top);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(251, 253, 252, .08);
}
.side-brand .mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: linear-gradient(145deg, #c4a35a, #a8883f);
  color: #1c2e28;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  border-radius: 50%;
}
.side-brand .txt strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
}
.side-brand .txt small {
  display: block;
  font-size: 10px;
  opacity: .4;
  margin-top: 1px;
}

.nav-scroll {
  height: calc(100vh - var(--top));
  overflow-y: auto;
  padding: 10px 8px 20px;
}
.nav-group { margin-bottom: 4px; }
.nav-group-hd {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.88);
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.nav-group-hd:hover { background: rgba(255,255,255,.06); }
.nav-group-hd .ico {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  opacity: .9;
}
.nav-group-hd .ico svg,
.nav-group-bd a .ico svg,
.nav-group-hd .chev svg { width: 16px; height: 16px; display: block; }
.nav-group-hd .lbl { flex: 1; min-width: 0; }
.nav-group-hd .chev {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  opacity: .55;
  transition: transform .2s var(--ease);
}
.nav-group.is-open .nav-group-hd .chev { transform: rotate(90deg); }

.nav-group-bd {
  display: none;
  padding: 2px 0 8px;
}
.nav-group.is-open .nav-group-bd { display: block; }
.nav-group-bd a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 10px 0 36px;
  margin-bottom: 1px;
  color: rgba(255,255,255,.72);
  border-radius: var(--r);
  font-size: 13px;
  transition: background .15s, color .15s;
}
.nav-group-bd a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-group-bd a.is-active {
  background: rgba(63, 122, 110, .4);
  color: #fff;
}
.nav-group-bd a .ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  opacity: .75;
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.topbar {
  height: var(--top);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 30;
}
.top-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.fold-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  display: none;
  place-items: center;
  border-radius: var(--r);
  flex-shrink: 0;
}
.fold-btn:hover { background: var(--paper); color: var(--ink); }
.fold-btn svg { width: 16px; height: 16px; }
.crumb {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crumb strong { color: var(--ink); font-weight: 650; }
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  flex-shrink: 0;
}
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 10px 0 4px;
  background: var(--paper);
  border-radius: 999px;
  color: var(--ink-2);
}
.user-chip .ava {
  width: 22px;
  height: 22px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.theme-switch {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
}
.theme-switch:hover { background: var(--brand-soft); }
.mode-switch {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand-2);
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.mode-switch:hover { background: var(--brand-soft); }
.mode-switch svg { width: 16px; height: 16px; display: block; }
.mode-switch .ico-moon { display: none; }
.mode-switch.is-night .ico-sun { display: none; }
.mode-switch.is-night .ico-moon { display: block; }
.mode-switch.is-night {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.login-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.login-card-top .sub { margin-bottom: 0; }
.top-actions > a.link {
  height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-weight: 600;
}
.top-actions > a.link:hover { background: var(--paper); }

.content {
  padding: 20px 24px 32px;
  max-width: 1180px;
  width: 100%;
}

/* Page header */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.page-head h1 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.25;
}
.page-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.page-head .tools { margin-left: auto; }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 16px 18px;
  border-radius: var(--r-lg);
}
.stat .k {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.stat .v {
  margin-top: 6px;
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.stat .s {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

/* Quick tiles */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}
.quick-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fafbfc;
  transition: border-color .15s, background .15s, transform .15s;
}
.quick-tile:hover {
  border-color: #c5d6dc;
  background: #fff;
  transform: translateY(-1px);
}
.quick-tile .qt-ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}
.quick-tile .qt-ico svg { width: 16px; height: 16px; }
.quick-tile strong { font-size: 14px; font-weight: 700; }
.quick-tile span { font-size: 12px; color: var(--muted); }
.quick-tile.is-accent .qt-ico {
  background: var(--accent-soft);
  color: var(--accent);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 16px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.panel-head h2 { font-size: 14px; font-weight: 700; }
.tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tools input[type="search"],
.tools input[type="text"] {
  height: 34px;
  border: 1px solid var(--line);
  padding: 0 12px;
  min-width: 180px;
  background: #fff;
  border-radius: var(--r);
}
.tools input:focus {
  border-color: var(--brand);
  box-shadow: var(--focus);
  outline: none;
}

.btn {
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--r);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--paper); }
.btn.brand {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  border-radius: 999px;
}
.btn.brand:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn.accent {
  background: #c4a35a;
  border-color: #c4a35a;
  color: #243038;
  border-radius: 999px;
}
.btn.accent:hover { filter: brightness(.95); }
.btn.danger {
  color: var(--danger);
  border-color: #f0c4c0;
  background: var(--danger-soft);
}
.btn:disabled { opacity: .5; cursor: not-allowed; }

.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.data th, table.data td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.data th {
  font-size: 11px;
  color: var(--muted);
  font-weight: 650;
  background: #f8fafb;
  white-space: nowrap;
}
table.data tbody tr:hover td { background: #f7fafb; }
table.data td.wrap {
  white-space: normal;
  color: var(--muted);
  font-size: 12px;
  background: #fafbfc;
  border-bottom-color: transparent;
  padding-top: 0;
  padding-bottom: 12px;
}
table.data .cell-main { font-weight: 650; }
table.data .cell-sub {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 650;
  border-radius: 999px;
  background: #eef1f4;
  color: var(--ink-2);
}
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn, .tag.wait { background: var(--warn-soft); color: var(--warn); }
.tag.stop { background: var(--danger-soft); color: var(--danger); }

.link { color: var(--brand); font-weight: 600; }
.link:hover { text-decoration: underline; }
button.link {
  background: none;
  border: 0;
  padding: 0;
  height: auto;
  color: var(--brand);
  font-weight: 600;
  border-radius: 0;
}
button.link:hover { text-decoration: underline; background: none; }
button.link.danger, .link.danger { color: var(--danger); }
.ops { display: inline-flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.site-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
}

/* Site cards */
.site-list { padding: 12px 14px 16px; display: grid; gap: 10px; }
.site-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 16px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fafbfc;
}
.site-card:hover { background: #fff; border-color: #cfd8e0; }
.site-card .title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.site-card h3 { font-size: 15px; font-weight: 700; }
.site-card .domain {
  font-size: 13px;
  color: var(--brand);
  font-weight: 600;
}
.site-card .meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12px;
  color: var(--muted);
}
.site-card .cats {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.55;
}
.site-card .ops { align-self: center; }

/* Articles */
.article-list { padding: 8px 14px 16px; display: grid; gap: 8px; }
.article-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fafbfc;
  transition: background .15s, border-color .15s;
}
.article-card:hover { background: #fff; border-color: #cfd8e0; }
.article-card .thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--r);
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 750;
  font-size: 15px;
}
.article-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.article-card h3 a { color: inherit; text-decoration: none; }
.article-card h3 a:hover { color: var(--brand); }
.article-card .meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 8px 12px;
  flex-wrap: wrap;
}
.article-card .ops { justify-content: flex-end; }

/* Modal / toast */
.modal-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(18, 26, 34, .48);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-mask.open { display: flex; }
.modal {
  width: min(480px, 100%);
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: 0 20px 50px rgba(0,0,0,.2);
  animation: pop .2s var(--ease);
  overflow: hidden;
}
.modal-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}
.modal-h button {
  width: 30px;
  height: 30px;
  border: 0;
  background: var(--paper);
  border-radius: var(--r);
  font-size: 16px;
  line-height: 1;
  color: var(--muted);
}
.modal-b { padding: 16px; }
.modal-f {
  padding: 12px 16px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.toast-wrap {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  min-width: 220px;
  max-width: 360px;
  background: #121a22;
  color: #fff;
  padding: 11px 14px;
  font-size: 13px;
  border-radius: var(--r);
  box-shadow: 0 10px 28px rgba(0,0,0,.2);
  animation: pop .2s var(--ease);
  border-left: 3px solid #3dba74;
}
.toast.warn { border-left-color: var(--accent); }

.drawer-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(18, 26, 34, .4);
  z-index: 35;
}
.app.drawer-open .drawer-mask { display: block; }

.form-box { padding: 18px 16px; max-width: 520px; }
.form-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.pick-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pick-list .btn { justify-content: flex-start; height: auto; min-height: 40px; padding: 10px 14px; white-space: normal; text-align: left; }
.edit-hint {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--ink-2);
}
.detail-text {
  margin: 0;
  line-height: 1.7;
  color: var(--ink-2);
}
.field select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 12px;
  border-radius: var(--r);
  outline: none;
}
.field select:focus {
  border-color: var(--brand);
  box-shadow: var(--focus);
}

/* 文章整页表单（对齐站群发布/编辑） */
.article-form { padding: 18px 20px 24px; max-width: 920px; }
.article-form .af-row { margin-bottom: 16px; }
.article-form .af-row > label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.article-form .req { color: var(--danger); font-weight: 700; }
.article-form .af-row > input,
.article-form .af-row > select {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0 12px;
  background: #fff;
  outline: none;
}
.article-form .af-row > input:focus,
.article-form .af-row > select:focus {
  border-color: var(--brand);
  box-shadow: var(--focus);
}
.af-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.af-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  padding-top: 8px;
}
.article-form .ke-container {
  border-radius: var(--r) !important;
  border-color: var(--line) !important;
}
.article-form .ke-toolbar {
  background: #f5f7f9 !important;
  border-bottom-color: var(--line) !important;
}
.empty-tip {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 720px) {
  .af-grid { grid-template-columns: 1fr; }
}

@keyframes pop {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .login-page { grid-template-columns: 1fr; }
  .login-visual { min-height: 180px; padding: 28px 24px; justify-content: center; }
  .stats { grid-template-columns: 1fr 1fr; }
  .app { grid-template-columns: 1fr; }
  .fold-btn { display: grid; }
  .sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: min(var(--side), 86vw);
    transform: translateX(-105%);
    transition: transform .28s var(--ease);
    box-shadow: 8px 0 30px rgba(0,0,0,.2);
  }
  .app.drawer-open .sidebar { transform: none; }
  .content { padding: 16px; }
  .article-card { grid-template-columns: 48px 1fr; }
  .article-card .ops { grid-column: 1 / -1; justify-content: flex-start; }
  .site-card { grid-template-columns: 1fr; }
  .site-card .ops { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: 1fr; }
  .user-chip span:not(.ava) { display: none; }
  .page-head .tools { width: 100%; }
  .tools input[type="search"],
  .tools input[type="text"] { min-width: 0; flex: 1; }
}
