:root {
  color-scheme: light;
  --cherry: #9e2448;
  --cherry-deep: #68152f;
  --gold: #b7884a;
  --ink: #111216;
  --muted: #656a75;
  --line: #eeeeee;
  --canvas: #f7f8fb;
  --surface: #ffffff;
  font-family: Inter, Roboto, system-ui, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 2%, #efb6c7 0, transparent 24rem),
    linear-gradient(160deg, #fff8fa, var(--canvas) 42%);
  min-height: 100vh;
}
a { color: inherit; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 64px; }
.topbar { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.topbar h1 { margin: 0; font-size: clamp(28px, 5vw, 46px); }
.topbar p { margin: 5px 0 0; color: var(--muted); }
.topbar .actions { margin-left: auto; }
.mark {
  display: grid; place-items: center; width: 58px; height: 58px;
  border-radius: 20px; color: white; font-weight: 800; font-size: 25px;
  background: linear-gradient(145deg, var(--cherry), var(--cherry-deep));
  box-shadow: 0 16px 34px #68152f33;
}
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  background: #fffffff2; border: 1px solid #ffffff;
  border-radius: 24px; padding: 20px; box-shadow: 0 16px 45px #35101e12;
}
.card.wide { grid-column: 1 / -1; }
h2 { margin: 0 0 14px; font-size: 19px; }
form.stack { display: grid; gap: 12px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 650; }
input, select {
  width: 100%; min-height: 44px; border: 1px solid #dedfe4;
  border-radius: 14px; background: white; color: var(--ink); padding: 9px 12px;
  font: inherit;
}
button, .button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px;
  border: 0; border-radius: 14px; padding: 9px 15px; cursor: pointer;
  background: var(--cherry); color: white; font: inherit; font-weight: 750;
  text-decoration: none;
}
button.secondary, .button.secondary { background: #f4e8ec; color: var(--cherry-deep); }
button.danger { background: #fff0f0; color: #a1242a; }
.hint { margin: -4px 0 2px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.flash { margin-bottom: 18px; border-left: 5px solid var(--gold); background: #fff; border-radius: 15px; padding: 13px 16px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 11px 9px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
.status { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: #e9f7ef; color: #217247; font-weight: 750; }
.status.off { background: #f2f2f2; color: #777; }
.inline { display: inline; }
.login { width: min(430px, calc(100% - 32px)); margin: 11vh auto 0; }
code { color: var(--cherry-deep); }

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; }
}
@media (max-width: 560px) {
  .fields { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; }
  .topbar .actions { margin-left: 0; }
}
