/* c177-account-layout-cleanup-r1 */
:root {
  color-scheme: dark;
  --bg0: #07111f;
  --bg1: #0d1e2f;
  --panel: rgba(255,255,255,.078);
  --panel2: rgba(255,255,255,.12);
  --line: rgba(190,220,255,.2);
  --text: #f6f9ff;
  --muted: #b9c9df;
  --dim: #7f93ac;
  --accent: #8cefe2;
  --accent2: #7cd8ff;
  --warn: #ffe6a7;
  --danger: #ffb8b8;
  --ok: #bcffd4;
  --shadow: 0 24px 80px rgba(0,0,0,.32);
}
* { box-sizing: border-box; }
html { background: var(--bg0); min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, rgba(124,216,255,.2), transparent 34rem), radial-gradient(circle at 84% 10%, rgba(140,239,226,.13), transparent 30rem), linear-gradient(180deg, #081423 0%, #0b1726 58%, #07111f 100%);
}
a { color: inherit; }
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.topbar { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(7,17,31,.84); backdrop-filter: blur(18px); }
.topbar-inner { min-height: 84px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; }
.topbar-inner .brand { justify-self: start; }
.topbar-inner .nav { justify-self: center; }
.topstatus { justify-self: end; display: inline-flex; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 800; font-size: .85rem; color: var(--muted); background: rgba(255,255,255,.05); white-space: nowrap; text-decoration: none; }
.chip:hover { text-decoration: none; background: rgba(255,255,255,.1); }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.chip.ok { color: var(--ok); }
.chip.warn { color: var(--warn); }
.chip.bad { color: var(--danger); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 900; letter-spacing: -.03em; }
.mark { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--accent2), var(--accent)); box-shadow: 0 0 34px rgba(140,239,226,.34); }
.nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.065); color: var(--text); text-decoration: none; font-weight: 800; }
.nav a:hover, .nav a:focus-visible { background: rgba(255,255,255,.12); outline: none; transform: translateY(-1px); }
.nav a[aria-current="page"] { color: #06111c; border-color: transparent; background: linear-gradient(135deg, var(--accent2), var(--accent)); }
.hero { padding: 74px 0 52px; }
.eyebrow { color: var(--accent); font-weight: 950; letter-spacing: .18em; text-transform: uppercase; font-size: .78rem; margin: 0 0 14px; }
h1 { margin: 0 0 18px; font-size: clamp(3.1rem, 8vw, 6.2rem); line-height: .9; letter-spacing: -.075em; max-width: 980px; }
h2 { margin: 0 0 12px; font-size: clamp(1.55rem, 3vw, 2.3rem); line-height: 1.05; letter-spacing: -.045em; }
h3 { margin: 0 0 8px; font-size: 1.05rem; }
p { margin: 0; color: var(--muted); }
.lead { max-width: 790px; color: #dce9fb; font-size: 1.18rem; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.08); color: var(--text); text-decoration: none; font-weight: 900; cursor: pointer; }
.btn.primary { color: #06111c; border-color: transparent; background: linear-gradient(135deg, var(--accent2), var(--accent)); }
.btn.danger { color: var(--danger); }
.btn:hover, .btn:focus-visible { outline: none; transform: translateY(-1px); box-shadow: 0 14px 36px rgba(0,0,0,.24); }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel2), var(--panel)); border-radius: 28px; padding: 28px; box-shadow: var(--shadow); }
.soft { box-shadow: none; background: rgba(255,255,255,.055); }
.section { padding: 28px 0; }
.status { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.08); color: var(--muted); font-weight: 900; }
.pill.ok { color: var(--ok); }
.pill.warn { color: var(--warn); }
.kpi { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.kpi strong { font-size: 1.35rem; color: var(--text); }
.hidden { display: none !important; }
.footer { padding: 54px 0 76px; color: var(--dim); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; margin-top: 16px; }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
table.data th { color: var(--text); background: rgba(255,255,255,.06); }
table.data tr:last-child td, table.data tr:last-child th { border-bottom: none; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #d9f7ff; overflow-wrap: anywhere; }
pre.mono { margin: 14px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(5,14,25,.7); white-space: pre-wrap; word-break: break-all; }
.notice { border-left: 4px solid var(--accent); }
.step { position: relative; padding-left: 58px; }
.step:before {
  content: attr(data-step);
  position: absolute; left: 18px; top: 24px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #06111d; font-weight: 900;
}
ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); line-height: 1.7; }
@media (max-width: 820px) {
  .topbar-inner { grid-template-columns: 1fr; justify-items: start; padding: 18px 0; gap: 12px; }
  .topbar-inner .nav, .topstatus { justify-self: start; }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  h1 { font-size: 3.35rem; }
}

/* --- account dashboard components (oven paa delt theme) --- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted); }
h1.pagetitle { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -.045em; line-height: 1.02; max-width: none; }
.lead.small { font-size: .98rem; margin-top: 12px; }

.banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; border: 1px solid rgba(255,184,184,.4); background: rgba(120,30,40,.25); color: var(--text); border-radius: 16px; padding: 14px 18px; margin: 18px 0 0; font-weight: 600; }

.btn.degraded { opacity: .6; }

.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 34px 0 8px; }
.pagehead .actions { margin-top: 0; }
.layout { display: grid; gap: 18px; padding: 20px 0 64px; }
.summarygrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.card h2 { font-size: 1.45rem; }
.cardhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cardhead h2 { margin-bottom: 0; }
.status-note { color: var(--muted); font-size: .88rem; font-weight: 700; display: inline-flex; gap: 10px; align-items: center; white-space: nowrap; }
.status-note.bad { color: var(--danger); }
.retry { border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--text); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; }

.kv { display: grid; grid-template-columns: 120px 1fr; gap: 10px 14px; margin-top: 12px; }
.kv div:nth-child(odd) { color: var(--muted); }

.badge { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: .78rem; font-weight: 800; color: var(--muted); background: rgba(255,255,255,.05); }
.badge.ok { color: var(--ok); }
.badge.warn { color: var(--warn); }
.badge.bad { color: var(--danger); }
.badge.accent { color: var(--accent); }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

.netgrid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; margin-top: 14px; }
.netlist { display: grid; gap: 10px; align-content: start; }
.netitem { text-align: left; border: 1px solid var(--line); background: rgba(255,255,255,.04); border-radius: 16px; padding: 12px 14px; color: var(--text); cursor: pointer; font: inherit; display: grid; gap: 4px; }
.netitem[aria-selected="true"] { border-color: var(--accent); background: rgba(140,239,226,.1); }
.netitem .netname { font-weight: 800; }
.netitem .netmeta { color: var(--muted); font-size: .85rem; display: flex; gap: 10px; flex-wrap: wrap; }
.netdetail { border: 1px solid var(--line); border-radius: 18px; background: rgba(5,14,25,.6); padding: 18px; min-height: 200px; }
.netdetail h3 { margin: 0; font-size: 1.15rem; letter-spacing: -.02em; }
.factgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 20px; margin-top: 16px; }
.netdetail .subnote { color: var(--muted); font-size: .88rem; margin-top: 8px; }
.fact { display: grid; gap: 2px; }
.fact .k { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.fact .v { font-weight: 650; }
.subhead { margin: 20px 0 8px; color: var(--accent); font-size: .82rem; text-transform: uppercase; letter-spacing: .18em; font-weight: 900; }

tr.revoked td { opacity: .55; }

.empty { border: 1px dashed var(--line); border-radius: 16px; padding: 22px; margin-top: 14px; color: var(--muted); text-align: center; display: grid; gap: 8px; }
.empty a { font-weight: 800; }

.actionlist { margin: 14px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.9; }

@media (max-width: 980px) {
  .summarygrid { grid-template-columns: 1fr; }
  .netgrid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .netgrid { grid-template-columns: 1fr; }
  .factgrid { grid-template-columns: 1fr; }
  .cardhead { flex-direction: column; }
  .status-note { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; transform: none !important; }
}
