/* HostThings – Dashboard
   Dunkles Blau-Schwarz. Die Farben werden innerhalb von .shell neu belegt;
   dadurch übernehmen Schaltflächen, Eingabefelder und Statusanzeigen aus
   styles.css das dunkle Erscheinungsbild von selbst. */

.shell {
  --page: #05080f;
  --bg: #0c1322;
  --bg-soft: #111b2e;
  --bg-deep: #080d18;
  --ink: #f3f6fc;
  --text: #cfd8e8;
  --muted: #8392ad;
  --line: rgba(132, 158, 212, 0.14);
  --line-strong: rgba(132, 158, 212, 0.28);
  --accent: #3f7dff;
  --accent-dark: #2f69e6;
  --accent-soft: rgba(63, 125, 255, 0.14);
  --green: #3ddc97;
  --green-soft: rgba(61, 220, 151, 0.12);
  --amber: #f3b743;
  --amber-soft: rgba(243, 183, 67, 0.12);
  --red: #ff6f6f;
  --red-soft: rgba(255, 111, 111, 0.12);

  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  min-height: 100vh;
  color: var(--text);
  color-scheme: dark;
  /* Sanfter Verlauf von Nachtblau nach Schwarz statt einer flachen Fläche. */
  background:
    radial-gradient(1100px 520px at 78% -160px, rgba(47, 105, 230, 0.2), transparent 70%),
    linear-gradient(180deg, #0a1120 0%, var(--page) 520px);
  background-color: var(--page);
}

/* --- Seitenleiste ---------------------------------------------------------- */
.side {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 22px;
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background: rgba(8, 13, 24, 0.72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.side .logo { padding: 2px 8px; color: #fff; }
.side .logo-host { color: #6f9dff; }
.side-label { gap: 7px; padding: 0 4px; color: var(--muted); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.side-label select { font-size: 0.92rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.side-nav { display: grid; gap: 3px; }
.side-link {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 9px;
  color: var(--muted); font-size: 0.95rem; font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease;
}
.side-link:hover { background: rgba(132, 158, 212, 0.08); color: var(--ink); text-decoration: none; }
.side-link .icon { width: 18px; height: 18px; transition: color 0.18s ease; }
.side-link.active { background: var(--accent-soft); color: #fff; }
.side-link.active .icon { color: #7fa8ff; }
.side-link.active::before { content: ""; position: absolute; left: -16px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }

/* Auslastung des Pakets, unten in der Seitenleiste */
.usage { display: grid; gap: 12px; margin-top: auto; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, rgba(63, 125, 255, 0.1), rgba(63, 125, 255, 0.02)); color: var(--text); transition: border-color 0.18s ease; }
a.usage:hover { border-color: var(--line-strong); text-decoration: none; }
.usage-head { display: flex; align-items: baseline; justify-content: space-between; color: var(--muted); font-size: 0.8rem; }
.usage-head b { color: #fff; font-size: 1rem; }
.usage-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; color: var(--muted); font-size: 0.82rem; }
.usage-row b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.usage-row .meter { grid-column: 1 / -1; }
.usage-empty { gap: 4px; }
.usage-empty b { color: #fff; }
.usage-empty span { color: #7fa8ff; font-size: 0.88rem; }
.usage-plain { margin: 0 0 18px; padding: 0; border: 0; background: none; }

.meter { height: 5px; border-radius: 3px; background: rgba(132, 158, 212, 0.16); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2f69e6, #6f9dff); transition: width 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.meter.full i { background: linear-gradient(90deg, #d99a1f, var(--amber)); }

/* --- Kopfzeile ------------------------------------------------------------- */
.stage { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 60px; padding: 0 clamp(20px, 3.4vw, 40px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 15, 0.7);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: 0.92rem; }
.crumbs span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs .icon { width: 14px; height: 14px; opacity: 0.6; }
.crumbs b { color: var(--ink); font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.user-chip { display: inline-flex; align-items: center; gap: 9px; max-width: 240px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: 0.85rem; }
.user-chip i { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #2f69e6, #6f9dff); color: #fff; font-style: normal; font-size: 0.8rem; font-weight: 700; }
.user-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- Inhalt ---------------------------------------------------------------- */
.shell .main { width: 100%; max-width: 1180px; padding: 34px clamp(20px, 3.4vw, 40px) 72px; }
.shell .main.enter > * { animation: rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.shell .main.enter > :nth-child(2) { animation-delay: 0.05s; }
.shell .main.enter > :nth-child(3) { animation-delay: 0.1s; }
.shell .main.enter > :nth-child(4) { animation-delay: 0.15s; }
.shell .main.enter > :nth-child(n + 5) { animation-delay: 0.2s; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head h1 { font-size: 1.7rem; letter-spacing: -0.025em; }
.page-head p { margin-top: 5px; color: var(--muted); }

.shell a { color: #7fa8ff; }
.shell .side-link { color: var(--muted); }
.shell .side-link:hover { color: var(--ink); }
.shell .side-link.active { color: #fff; }
.shell .usage { color: var(--text); }
.shell .logo { color: #fff; }
.shell h1, .shell h2, .shell h3 { color: var(--ink); }

/* Schaltflächen und Felder im Dunkeln */
.shell .btn { border-color: var(--line-strong); background: rgba(132, 158, 212, 0.07); color: var(--ink); }
.shell .btn:hover { border-color: rgba(132, 158, 212, 0.5); background: rgba(132, 158, 212, 0.14); }
.shell .btn-primary { border-color: transparent; background: linear-gradient(180deg, #4a85ff, #2f69e6); color: #fff; box-shadow: 0 6px 20px rgba(47, 105, 230, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.shell .btn-primary:hover { border-color: transparent; background: linear-gradient(180deg, #5b91ff, #3873f0); }
.shell .btn-primary .icon { width: 16px; height: 16px; }
.shell .btn-danger { color: var(--red); }
.shell .btn-danger:hover { border-color: var(--red); background: var(--red-soft); }
.btn-danger-solid { border-color: transparent !important; background: #d94848 !important; color: #fff !important; }
.btn-danger-solid:hover { background: #e55a5a !important; }
.shell .btn:focus-visible, .shell input:focus-visible, .shell select:focus-visible, .shell textarea:focus-visible, .shell a:focus-visible, .icon-btn:focus-visible { outline: 2px solid #7fa8ff; outline-offset: 2px; }

.shell input, .shell select, .shell textarea { border-color: var(--line-strong); background: var(--bg-deep); color: var(--ink); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.shell input:hover, .shell select:hover, .shell textarea:hover { border-color: rgba(132, 158, 212, 0.5); }
.shell input:focus, .shell select:focus, .shell textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(63, 125, 255, 0.2); outline: none; }
.shell input::placeholder, .shell textarea::placeholder { color: #55637d; }
.shell label { color: var(--text); }
.shell .hint { color: var(--muted); }

.shell .alert-error { border-color: rgba(255, 111, 111, 0.35); background: var(--red-soft); color: #ffb3b3; }
.shell .alert-info { border-color: rgba(63, 125, 255, 0.35); background: var(--accent-soft); color: #c3d6ff; }
.shell .alert-warn { border-color: rgba(243, 183, 67, 0.35); background: var(--amber-soft); color: #f8d488; }

.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: var(--muted, #8392ad); cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.icon-btn .icon { width: 17px; height: 17px; }
.icon-btn:hover { border-color: var(--line); background: rgba(132, 158, 212, 0.1); color: var(--ink); }
.icon-btn.danger:hover { border-color: rgba(255, 111, 111, 0.3); background: var(--red-soft); color: var(--red); }
.icon-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* Hinweisband (kein Abo, Zahlung offen) */
.banner { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; padding: 12px 16px; border: 1px solid rgba(243, 183, 67, 0.3); border-radius: 12px; background: var(--amber-soft); color: #f8d488; font-size: 0.93rem; }
.banner .icon { color: var(--amber); }
.banner span { flex: 1; }

/* --- Kennzahlen ------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat {
  display: grid; gap: 12px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(180deg, rgba(17, 27, 46, 0.9), rgba(12, 19, 34, 0.9));
  color: var(--text) !important;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.stat:hover { transform: translateY(-3px); border-color: rgba(63, 125, 255, 0.45); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35); text-decoration: none; }
.stat-top { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.86rem; font-weight: 500; }
.stat-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: #7fa8ff; }
.stat-icon .icon { width: 16px; height: 16px; }
.stat-value { color: #fff; font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-value small { color: var(--muted); font-size: 1rem; font-weight: 500; letter-spacing: 0; }

/* --- Kästen ---------------------------------------------------------------- */
.panel-box { margin-bottom: 22px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: rgba(12, 19, 34, 0.82); }
.box-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.box-head h2 { font-size: 1.05rem; }
.box-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.two-col { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 22px; align-items: start; }

.steps-list { display: grid; gap: 4px; margin: 16px 0 0; padding: 0; list-style: none; }
.steps-list li { display: flex; align-items: center; gap: 12px; padding: 9px 4px; }
.steps-list li > span:nth-child(2) { flex: 1; color: var(--ink); }
.steps-list li.done > span:nth-child(2) { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(131, 146, 173, 0.5); }
.step-mark { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.steps-list li.done .step-mark { border-color: transparent; background: var(--green-soft); color: var(--green); }
.step-mark .icon { width: 14px; height: 14px; }

.mini-list { display: grid; }
.mini-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 10px; margin: 0 -10px; border-radius: 9px; color: var(--text) !important; transition: background 0.15s ease; }
.mini-row + .mini-row { border-top: 1px solid var(--line); }
.mini-row:hover { background: rgba(132, 158, 212, 0.07); text-decoration: none; }
.mini-row b { display: block; color: var(--ink); font-weight: 600; }
.mini-row .mono { color: var(--muted); font-size: 0.8rem; }

.quick { display: grid; gap: 8px; margin-bottom: 18px; }
.quick-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink) !important; font-weight: 500; transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease; }
.quick-link span { flex: 1; }
.quick-link .icon { width: 17px; height: 17px; color: #7fa8ff; }
.quick-link .icon:last-child { color: var(--muted); transition: transform 0.18s ease; }
.quick-link:hover { border-color: rgba(63, 125, 255, 0.45); background: var(--accent-soft); text-decoration: none; }
.quick-link:hover .icon:last-child { transform: translateX(3px); }

/* --- Listen mit aufklappbaren Zeilen --------------------------------------- */
.rows { border: 1px solid var(--line); border-radius: 14px; background: rgba(12, 19, 34, 0.82); overflow: hidden; }
.row + .row { border-top: 1px solid var(--line); }
.row-head { display: grid; grid-template-columns: 26px minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 15px 18px; cursor: pointer; transition: background 0.15s ease; }
.row-head.static { cursor: default; }
.row-head:hover, .row.open > .row-head { background: rgba(132, 158, 212, 0.06); }
.chev { display: grid; place-items: center; color: var(--muted); transition: transform 0.22s ease, color 0.22s ease; }
.chev .icon { width: 16px; height: 16px; }
.chev.ghost { color: #7fa8ff; }
.row.open > .row-head .chev { transform: rotate(90deg); color: #7fa8ff; }
.row-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--ink); font-weight: 600; }
.row-sub { margin-top: 3px; color: var(--muted); font-size: 0.84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub.mono { font-size: 0.8rem; }
.row-cell { color: var(--muted); font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-cell.mono { font-size: 0.8rem; }
.row-actions { display: flex; align-items: center; gap: 2px; }
.row-detail { padding: 6px 18px 22px 58px; border-top: 1px solid var(--line); background: rgba(5, 8, 15, 0.45); }
.row-detail > .alert { margin-top: 14px; }

.tabs { display: flex; gap: 4px; margin: 10px 0 18px; border-bottom: 1px solid var(--line); }
.tabs button { position: relative; padding: 11px 14px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 0.92rem; font-weight: 500; cursor: pointer; transition: color 0.15s ease; }
.tabs button:hover { color: var(--ink); }
.tabs button.active { color: #fff; }
.tabs button.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }

.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px 28px; margin: 14px 0 0; }
.facts-tight { grid-template-columns: 1fr; gap: 0; margin: 0; }
.facts-tight .fact { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.facts-tight .fact:first-child { border-top: 0; }
.fact dt { margin-bottom: 5px; color: var(--muted); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.facts-tight .fact dt { margin: 0; font-size: 0.9rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.fact dd { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0; color: var(--ink); min-height: 28px; }
.fact dd .icon-btn { width: 28px; height: 28px; }
.fact dd .mono { font-size: 0.88rem; }
.chip { padding: 2px 8px; border: 1px solid var(--line); border-radius: 6px; background: rgba(132, 158, 212, 0.08); color: var(--text); font-size: 0.78rem; }
.note { display: flex; gap: 10px; margin-top: 18px; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); color: #c3d6ff; font-size: 0.88rem; }
.note .icon { flex: none; width: 17px; height: 17px; margin-top: 2px; color: #7fa8ff; }

.shell .logs { margin: 0 0 8px; border: 1px solid var(--line); background: #03060c; color: #b9c6dc; }

/* DNS-Eintrag als kleine Tabelle */
.dns { display: grid; grid-template-columns: auto auto 1fr; gap: 0; margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.dns > div { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-left: 1px solid var(--line); background: var(--bg-deep); }
.dns > div:first-child { border-left: 0; }
.dns span { color: var(--muted); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.dns b { color: #fff; font-weight: 600; }

/* Leere Listen */
.empty-state { display: grid; justify-items: center; gap: 8px; padding: 56px 24px; border: 1px dashed var(--line-strong); border-radius: 14px; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 6px; border-radius: 14px; background: var(--accent-soft); color: #7fa8ff; }
.empty-icon .icon { width: 26px; height: 26px; }
.empty-state h3 { font-size: 1.1rem; }
.empty-state p { max-width: 34em; margin-bottom: 10px; color: var(--muted); }

/* Preiskarten im Dunkeln */
.shell .plan-card { border-color: var(--line); background: rgba(12, 19, 34, 0.82); }
.shell .plan-card:hover { border-color: var(--line-strong); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4); }
.shell .plan-card.featured { border-color: rgba(63, 125, 255, 0.6); background: linear-gradient(170deg, rgba(47, 105, 230, 0.22), rgba(12, 19, 34, 0.9) 60%); box-shadow: 0 24px 60px rgba(47, 105, 230, 0.16); }
.shell .plan-price, .shell .plan-list b { color: #fff; }
.shell .cycle { border-color: var(--line-strong); background: var(--bg-deep); }
.shell .cycle button.active { background: var(--accent); }
.shell .lang-menu { border-color: var(--line-strong); background: #111b2e; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }
.shell .lang-menu button:hover { background: rgba(132, 158, 212, 0.1); }
.shell .lang-btn:hover { background: rgba(132, 158, 212, 0.1); }

/* --- Überlagerungen: Bestätigung und seitliches Panel ---------------------- */
.overlay {
  position: fixed; inset: 0; z-index: 40;
  display: grid; place-items: center; padding: 20px;
  background: rgba(3, 6, 12, 0.66);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: fade-in 0.18s ease both;
}
.overlay.out { opacity: 0; transition: opacity 0.2s ease; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(0.97); } }
@keyframes slide-in { from { transform: translateX(100%); } }

.modal { width: min(440px, 100%); padding: 26px; border: 1px solid var(--line-strong); border-radius: 16px; background: #0f1829; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); animation: pop-in 0.22s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.modal-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px; border-radius: 12px; background: var(--red-soft); color: var(--red); }
.modal h2 { font-size: 1.15rem; margin-bottom: 8px; }
.modal p { color: var(--muted); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

.overlay-drawer { place-items: stretch end; padding: 0; }
.drawer { display: flex; flex-direction: column; width: min(520px, 100%); height: 100%; border-left: 1px solid var(--line-strong); background: #0c1322; box-shadow: -30px 0 80px rgba(0, 0, 0, 0.5); animation: slide-in 0.28s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.overlay-drawer.out .drawer { transform: translateX(100%); transition: transform 0.22s ease; }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 26px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.25rem; }
.drawer-head p { margin-top: 4px; color: var(--muted); font-size: 0.92rem; }
.drawer-body { flex: 1; padding: 22px 26px 28px; overflow-y: auto; }

.shell fieldset { display: grid; gap: 16px; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.shell legend { padding: 0 8px; color: var(--muted); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.preview-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 8px; background: var(--bg-deep); font-size: 0.85rem; }
.preview-line span { color: var(--muted); }
.url-preview { color: #7fa8ff; font-family: var(--mono); word-break: break-all; }
.shell form > .item-actions { padding-top: 4px; }

/* --- Kurze Meldungen ------------------------------------------------------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: grid; gap: 10px; justify-items: end; }
.toast { display: flex; align-items: center; gap: 10px; max-width: min(420px, calc(100vw - 40px)); padding: 12px 16px; border: 1px solid rgba(132, 158, 212, 0.28); border-radius: 12px; background: #111b2e; color: #f3f6fc; font-size: 0.92rem; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); animation: rise 0.28s cubic-bezier(0.2, 0.7, 0.2, 1) both; transition: opacity 0.3s ease, transform 0.3s ease; }
.toast .icon { flex: none; width: 18px; height: 18px; color: #3ddc97; }
.toast-error .icon { color: #ff6f6f; }
.toast.out { opacity: 0; transform: translateY(8px); }

/* --- Schmale Bildschirme --------------------------------------------------- */
@media (max-width: 1000px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { min-width: 0; position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-label { display: none; }
  .side-nav { display: flex; flex: 1 1 100%; min-width: 0; order: 3; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .topbar { padding-inline: 16px; }
  .crumbs span { max-width: 38vw; }
  .side-link { padding: 8px 12px; white-space: nowrap; }
  .side-link.active::before { display: none; }
  .usage { display: none; }
  .user-chip span { display: none; }
  .user-chip { padding: 4px; }
  .row-head { grid-template-columns: 26px minmax(0, 1fr) auto; }
  .row-cell { display: none; }
  .row-detail { padding-left: 18px; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 14px; }
  .dns { grid-template-columns: 1fr; }
  .dns > div { border-left: 0; border-top: 1px solid var(--line); }
  .dns > div:first-child { border-top: 0; }
  .row-head { grid-template-columns: minmax(0, 1fr) auto; }
  .row-head .chev { display: none; }
}
