/* Hoshibi Dashboard – gleiches System wie Hoshibi Mail:
   neutrales Zink, ein Akzent (#46a883), keine Glows, Outfit + JetBrains Mono für Zahlen. */
:root {
  --bg: #0e0f11;
  --panel: #141619;
  --panel-2: #181a1e;
  --field: #1b1d22;
  --field-hover: #20232a;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);
  --text: #eceef1;
  --text-2: #a3a8b1;
  --text-3: #6f7580;
  --accent: #46a883;
  --accent-hover: #52b690;
  --accent-ink: #08140f;
  --accent-soft: rgba(70, 168, 131, 0.13);
  --accent-text: #7fcdb0;
  --warn: #cfa349;
  --warn-soft: rgba(207, 163, 73, 0.13);
  --bad: #d0645e;
  --bad-soft: rgba(208, 100, 94, 0.13);
  --idle: #4a4f57;
  --r: 16px;
  --r-sm: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text);
  font: 15px/1.5 Outfit, 'Segoe UI', system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--text); }
code { font-family: var(--mono); font-size: .85em; color: var(--text-2); background: var(--field); padding: .1em .4em; border-radius: 6px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0; }
.muted { color: var(--text-3); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.ic { width: 18px; height: 18px; flex: none; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 28px; }
main.wrap { flex: 1; padding-top: 34px; padding-bottom: 48px; }

/* ---------- Kopfzeile ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(14, 15, 17, 0.94); border-bottom: 1px solid var(--line); }
.top-inner { max-width: 1400px; margin: 0 auto; padding: 0 28px; height: 62px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 16.5px; letter-spacing: -0.02em; }
.brand em { font-style: normal; color: var(--text-3); font-weight: 500; }
.brand-mark { width: 26px; height: 26px; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-weight: 500; font-size: 14px; transition: background-color .2s var(--ease), color .2s var(--ease); }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav a.active { color: var(--text); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.nav a.active .ic { color: var(--accent); }
.top-user { display: flex; align-items: center; gap: 8px; margin: 0; }
.who { color: var(--text-3); font-size: 13.5px; }

/* ---------- Bausteine ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 14px;
  border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--field); color: var(--text);
  font: 500 14px Outfit, system-ui, sans-serif; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease), opacity .2s;
}
.btn:hover { background: var(--field-hover); border-color: rgba(255, 255, 255, 0.2); }
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn .ic { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-danger { background: var(--bad-soft); border-color: rgba(208, 100, 94, 0.35); color: #eba19c; }
.btn-danger:hover { background: var(--bad); border-color: var(--bad); color: #1a0907; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.btn-block { width: 100%; height: 44px; }
.btn-sm { height: 32px; padding: 0 10px; font-size: 13px; border-radius: 9px; }
.btn.loading { position: relative; color: transparent !important; }
.btn.loading::after { content: ''; position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); border-top-color: var(--text); animation: spin .7s linear infinite; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease); }
.icon-btn:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.icon-btn:active { transform: scale(0.94); }
@keyframes spin { to { transform: rotate(360deg); } }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; background: rgba(255,255,255,.05); color: var(--text-2); white-space: nowrap; }
.pill.ok { background: var(--accent-soft); color: var(--accent-text); }
.pill.warn { background: var(--warn-soft); color: #e0bd73; }
.pill.bad { background: var(--bad-soft); color: #eba19c; }
.pill .ic { width: 13px; height: 13px; }

.status-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--idle); flex: none; }
.status-dot.ok, .status-dot.running { background: var(--accent); }
.status-dot.warn, .status-dot.degraded, .status-dot.starting { background: var(--warn); }
.status-dot.bad, .status-dot.failed { background: var(--bad); }
.status-dot.stopped, .status-dot.idle, .status-dot.unknown { background: var(--idle); }
.status-dot.running::after, .status-dot.degraded::after, .status-dot.failed::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: breathe 2.6s var(--ease) infinite;
}
@keyframes breathe { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(2.6); opacity: 0; } }

.skel { display: inline-block; background: linear-gradient(90deg, #1a1c20 0%, #23262c 50%, #1a1c20 100%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: 8px; }
.skel-line { height: 14px; }
.skel-dot { width: 10px; height: 10px; border-radius: 50%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: live 2s ease-in-out infinite; }
@keyframes live { 50% { opacity: .35; } }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: end; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.hero-status h1 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; letter-spacing: -0.035em; margin: 14px 0 12px; font-weight: 600; }
.hero-status h1 .hl-bad { color: #eba19c; }
.hero-status h1 .hl-warn { color: #e0bd73; }
.hero-sub { color: var(--text-2); font-size: 16px; max-width: 52ch; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.gauges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.gauge { padding: 16px 18px 14px; min-width: 0; }
.gauge + .gauge { border-left: 1px solid var(--line); }
.gauge-head { display: grid; gap: 4px; color: var(--text-3); font-size: 12.5px; }
.gauge-head b { color: var(--text); font-size: 26px; font-weight: 500; line-height: 1.1; white-space: nowrap; }
.gauge.warn .gauge-head b { color: #e0bd73; }
.gauge.bad .gauge-head b { color: #eba19c; }
.spark { width: 100%; height: 44px; display: block; margin: 10px 0 6px; overflow: visible; }
.spark-line { fill: none; stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.spark-area { fill: var(--accent-soft); stroke: none; }
.gauge.warn .spark-line { stroke: var(--warn); } .gauge.warn .spark-area { fill: var(--warn-soft); }
.gauge.bad .spark-line { stroke: var(--bad); } .gauge.bad .spark-area { fill: var(--bad-soft); }
.gauge-foot { color: var(--text-3); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Apps ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding-top: 30px; align-items: start; }
.group + .group { margin-top: 34px; }
.group-title { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.group-count { color: var(--text-3); font-weight: 400; letter-spacing: 0; text-transform: none; }
.subgroup { margin-top: 16px; }
.subgroup-title { font-size: 13px; font-weight: 500; color: var(--text-3); margin: 0 0 8px 2px; }
.rows { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.row {
  display: grid; grid-template-columns: 14px minmax(0, 1.4fr) minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 14px 16px; min-height: 66px; transition: background-color .2s var(--ease);
  animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms);
}
.row + .row { border-top: 1px solid var(--line); }
.row:hover { background: #16181c; }
.row.clickable { cursor: pointer; }
.row-name { min-width: 0; }
.row-name b { display: block; font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-name span { display: block; color: var(--text-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--text-3); font-size: 12.5px; min-width: 0; }
.row-meta .num { color: var(--text-2); }
.row-meta .state { color: var(--text-2); font-family: Outfit, system-ui, sans-serif; letter-spacing: 0; }
.row-meta .state.running { color: var(--accent-text); }
.row-meta .state.failed { color: #eba19c; }
.row-meta .state.degraded, .row-meta .state.starting { color: #e0bd73; }
.row-actions { display: flex; gap: 6px; }
.row-actions .btn { width: 34px; padding: 0; height: 34px; }
.row-actions .btn.btn-text { width: auto; padding: 0 10px; }
.row.skel-row { grid-template-columns: 14px 1fr; animation: none; }
.row .desired-off { color: var(--text-3); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.empty-row { padding: 22px 18px; color: var(--text-3); font-size: 14px; display: flex; gap: 12px; align-items: center; }
.empty-row .ic { color: var(--text-3); }

/* ---------- Seitenspalte ---------- */
.side { position: sticky; top: 92px; display: grid; gap: 30px; }
.repair-card { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; background: var(--panel); display: grid; gap: 10px; }
.repair-state { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.repair-card .muted { font-size: 13.5px; line-height: 1.5; }
.link-more { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; margin-top: 10px; }
.link-more .ic { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.link-more:hover .ic { transform: translateX(2px); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.tl-item { position: relative; padding: 0 0 16px 22px; animation: rise .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.tl-item::before { content: ''; position: absolute; left: 4px; top: 8px; bottom: -6px; width: 1px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-item::after { content: ''; position: absolute; left: 0; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--idle); box-shadow: 0 0 0 3px var(--bg); }
.tl-item.ok::after { background: var(--accent); } .tl-item.warn::after { background: var(--warn); } .tl-item.crit::after { background: var(--bad); }
.tl-title { font-size: 14px; font-weight: 500; }
.tl-body { font-size: 13px; color: var(--text-3); margin-top: 2px; white-space: pre-line; word-break: break-word; }
.tl-time { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.timeline-full { max-width: 820px; }
.timeline-full .tl-item { padding-bottom: 20px; }
.timeline-full .tl-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.timeline-full .tl-app { color: var(--text-3); font-size: 12.5px; }

/* ---------- Drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(8, 9, 10, 0.6); z-index: 40; animation: fade .25s var(--ease); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100vw); z-index: 41; background: var(--panel);
  border-left: 1px solid var(--line-strong); display: flex; flex-direction: column; transform: translateX(102%);
  transition: transform .35s var(--ease); box-shadow: -30px 0 60px -30px rgba(0, 0, 0, 0.7);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 24px 16px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 22px; margin-top: 6px; }
.drawer-body { overflow-y: auto; padding: 20px 24px 40px; display: grid; gap: 26px; align-content: start; }
.dsec h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--text-3); font-weight: 600; margin-bottom: 10px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.fact { background: var(--panel-2); padding: 12px 14px; min-width: 0; }
.fact span { display: block; color: var(--text-3); font-size: 12px; }
.fact b { display: block; font-weight: 500; font-size: 15px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sublist { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.sublist > div { display: flex; align-items: center; gap: 12px; padding: 10px 14px; font-size: 13.5px; }
.sublist > div + div { border-top: 1px solid var(--line); }
.sublist .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sublist .muted { font-size: 12.5px; white-space: nowrap; }
.logbox { background: #0b0c0e; border: 1px solid var(--line); border-radius: 14px; padding: 14px; font: 12px/1.55 var(--mono); color: #b8bdc6; max-height: 420px; overflow: auto; white-space: pre-wrap; word-break: break-all; margin: 0; }
.log-tools { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.output { background: #0b0c0e; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: 12px/1.5 var(--mono); color: var(--text-2); white-space: pre-wrap; max-height: 160px; overflow: auto; }

/* ---------- Seitenkopf, Tabellen, Leerzustände ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 30px; letter-spacing: -0.03em; }
.page-head .muted { margin-top: 6px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.seg button { border: 0; background: transparent; color: var(--text-2); font: 500 13.5px Outfit, system-ui, sans-serif; padding: 7px 12px; border-radius: 9px; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.seg button:hover { color: var(--text); }
.seg button.active { background: var(--field-hover); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.load-more { margin-top: 10px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--text-3); font-weight: 600; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; padding: 10px 12px; border-bottom: 1px solid var(--line-strong); }
.table td { padding: 12px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.table .r { text-align: right; }
.empty { display: grid; justify-items: start; gap: 12px; padding: 30px 0; color: var(--text-3); max-width: 46ch; }
.empty .ic { width: 28px; height: 28px; }

.backup-list { display: grid; gap: 12px; }
.backup { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 20px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.backup-main { display: flex; gap: 14px; align-items: flex-start; }
.backup-main .status-dot { margin-top: 8px; }
.backup h2 { font-size: 16.5px; }
.backup .muted { font-size: 13.5px; margin-top: 2px; }
.backup-files { grid-column: 1 / -1; font-size: 13.5px; color: var(--text-3); }
.backup-files summary { cursor: pointer; width: max-content; }
.backup-files ul { list-style: none; padding: 0; margin: 10px 0 0; border-top: 1px solid var(--line); }
.backup-files li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }

/* ---------- Formulare ---------- */
.settings { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 48px; align-items: start; }
.settings-nav { position: sticky; top: 92px; display: grid; gap: 2px; }
.settings-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--text-2); font-size: 14px; }
.settings-nav a:hover { background: rgba(255,255,255,.04); color: var(--text); }
.settings-body { display: grid; gap: 22px; }
.sform { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); padding: 22px 24px; display: grid; gap: 16px; scroll-margin-top: 90px; }
.sform header h2 { font-size: 18px; }
.sform header .muted { margin-top: 6px; font-size: 14px; max-width: 62ch; line-height: 1.5; }
.sform footer { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.field-sm { max-width: 220px; }
input:not([type=checkbox]), select {
  width: 100%; height: 42px; padding: 0 13px; border-radius: var(--r-sm); border: 1px solid var(--line-strong);
  background: var(--field); color: var(--text); font: 15px Outfit, system-ui, sans-serif;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
input:hover, select:hover { background: var(--field-hover); }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(70, 168, 131, 0.16); }
input::placeholder { color: var(--text-3); }
input.invalid { border-color: var(--bad); }
.hint { color: var(--text-3); font-size: 12.5px; }
.form-error { color: #eba19c; font-size: 13.5px; }
.switch { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--text); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--field-hover); border: 1px solid var(--line-strong); flex: none; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-3); transition: transform .25s var(--ease), background-color .2s; }
.switch input:checked + span { background: var(--accent); border-color: var(--accent); }
.switch input:checked + span::after { transform: translateX(16px); background: var(--accent-ink); }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(70, 168, 131, 0.3); }

/* ---------- Login ---------- */
.login-page { display: grid; grid-template-columns: 44vw 1fr; min-height: 100dvh; }
.login-brand { position: relative; padding: 56px 64px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(160deg, #15171b 0%, #101215 55%, #12201a 100%); border-right: 1px solid var(--line); overflow: hidden; }
.login-mark { width: 52px; height: 52px; }
.login-copy h1 { font-size: clamp(34px, 3.4vw, 46px); letter-spacing: -0.035em; line-height: 1.02; }
.login-copy p { color: var(--text-2); margin-top: 12px; font-size: 16px; line-height: 1.55; }
.login-panel { display: flex; flex-direction: column; justify-content: center; padding: 6vh 7vw; }
.login-form { width: 100%; max-width: 400px; display: grid; gap: 16px; }
.login-form h2 { font-size: 28px; letter-spacing: -0.03em; margin-bottom: 6px; }
.code-input { font-family: var(--mono) !important; font-size: 24px !important; letter-spacing: .4em; text-align: center; height: 54px !important; }
.login-foot { color: var(--text-3); font-size: 12.5px; margin-top: 40px; }

/* ---------- Toasts, Dialog ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 8px; z-index: 60; }
.toast { min-width: 260px; max-width: 380px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-strong); border-left: 3px solid var(--accent); box-shadow: 0 18px 40px -18px rgba(0,0,0,.7); font-size: 14px; animation: rise .3s var(--ease); }
.toast.bad { border-left-color: var(--bad); }
.toast small { display: block; color: var(--text-3); margin-top: 4px; white-space: pre-wrap; max-height: 120px; overflow: auto; font-family: var(--mono); font-size: 11.5px; }
.confirm { border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); border-radius: 18px; padding: 24px; width: min(440px, calc(100vw - 32px)); box-shadow: 0 30px 70px -28px rgba(0,0,0,.8); }
.confirm::backdrop { background: rgba(8, 9, 10, 0.65); }
.confirm h3 { font-size: 19px; }
.confirm p { color: var(--text-2); margin: 10px 0 20px; line-height: 1.5; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 8px; }
@keyframes fade { from { opacity: 0; } }

.foot { display: flex; justify-content: space-between; color: var(--text-3); font-size: 12.5px; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Mobil ---------- */
@media (max-width: 1100px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; align-items: start; gap: 26px; }
}
@media (max-width: 860px) {
  .settings { grid-template-columns: 1fr; gap: 20px; }
  .settings-nav { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .settings-nav a { white-space: nowrap; }
}
@media (max-width: 767px) {
  .wrap, .top-inner { padding-left: 16px; padding-right: 16px; }
  main.wrap { padding-top: 22px; }
  .top-inner { gap: 10px; }
  .brand span { display: none; }
  .nav { gap: 0; justify-content: flex-start; overflow-x: auto; }
  .nav a { padding: 8px 10px; }
  .nav a span { display: none; }
  .who { display: none; }
  .gauges { grid-template-columns: 1fr; }
  .gauge + .gauge { border-left: 0; border-top: 1px solid var(--line); }
  .side { grid-template-columns: 1fr; }
  .row { grid-template-columns: 12px minmax(0, 1fr) auto; gap: 12px; padding: 12px 14px; }
  .row-meta { grid-column: 2 / -1; grid-row: 2; }
  .row-actions .btn-restart-hide { display: none; }
  .grid2 { grid-template-columns: 1fr; }
  .login-page { grid-template-columns: 1fr; }
  .login-brand { padding: 28px 20px; min-height: 0; flex-direction: row; align-items: center; gap: 14px; justify-content: flex-start; }
  .login-mark { width: 38px; height: 38px; }
  .login-copy h1 { font-size: 24px; }
  .login-copy p { display: none; }
  .login-panel { padding: 28px 20px 40px; justify-content: flex-start; }
  .backup { grid-template-columns: 1fr; }
  .drawer-head, .drawer-body { padding-left: 18px; padding-right: 18px; }
  .toasts { left: 16px; right: 16px; }
}

.row-more { display: block; width: 100%; min-height: 0; padding: 12px 16px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--accent-text); font: 500 13.5px Outfit, system-ui, sans-serif; text-align: left; cursor: pointer; animation: none; }
.row-more:hover { background: #16181c; color: var(--text); }
