:root {
  --bg: #f3f7fb;
  --surface: #ffffff;
  --surface-soft: #f7fafc;
  --ink: #112238;
  --muted: #64758a;
  --line: #dfe8f1;
  --blue: #0877d1;
  --blue-dark: #075a9d;
  --cyan: #20b7d8;
  --navy: #0a1c31;
  --green: #168466;
  --amber: #b46c0a;
  --red: #c14444;
  --shadow: 0 14px 40px rgba(17, 46, 78, .08);
  --radius: 18px;
}

html[data-theme="dark"] {
  --bg: #09131f;
  --surface: #101e2d;
  --surface-soft: #142536;
  --ink: #edf6ff;
  --muted: #9eb0c3;
  --line: #24384b;
  --blue: #3fa7ff;
  --blue-dark: #2b92e7;
  --navy: #07111c;
  --shadow: 0 14px 40px rgba(0, 0, 0, .22);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.kicker { color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.muted { color: var(--muted); }
.mobile-only { display: none !important; }

.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 11px; padding: 0 17px; font-weight: 750; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: #fff; background: linear-gradient(135deg, var(--blue), #1198e4); box-shadow: 0 9px 22px rgba(8, 119, 209, .22); }
.button.secondary { color: var(--blue); background: color-mix(in srgb, var(--blue) 9%, var(--surface)); border-color: color-mix(in srgb, var(--blue) 25%, var(--line)); }
.button.ghost { background: var(--surface); border-color: var(--line); color: var(--muted); }
.button.danger-soft { color: var(--red); background: color-mix(in srgb, var(--red) 9%, var(--surface)); border-color: color-mix(in srgb, var(--red) 20%, var(--line)); }
.button.wide { width: 100%; }

/* Login */
.login-page { background: var(--surface); }
.login-layout { display: grid; grid-template-columns: minmax(460px, 1.05fr) minmax(440px, .95fr); min-height: 100vh; }
.login-story { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: 48px 6vw; color: #fff; background: linear-gradient(145deg, #071d34 0%, #075a9f 58%, #0b98ce 100%); }
.login-story::after { content: ""; position: absolute; inset: auto -20% -45% 10%; height: 70%; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; transform: rotate(-12deg); }
.story-brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 16px; font-size: 22px; font-weight: 800; }
.story-brand img { width: 92px; height: 52px; object-fit: contain; filter: brightness(0) invert(1); }
.story-copy { position: relative; z-index: 2; max-width: 620px; margin: auto 0; }
.story-copy .kicker { color: #79e0f2; }
.story-copy h1 { max-width: 610px; margin: 18px 0; font-size: clamp(44px, 5.4vw, 78px); line-height: .99; letter-spacing: -.055em; }
.story-copy p { max-width: 580px; margin: 0; color: rgba(255,255,255,.78); font-size: 18px; line-height: 1.7; }
.login-story > small { position: relative; z-index: 2; color: rgba(255,255,255,.62); letter-spacing: .08em; }
.story-orbit { position: absolute; right: -80px; top: 9%; width: 360px; height: 360px; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; }
.story-orbit i { position: absolute; border-radius: 50%; background: rgba(255,255,255,.12); backdrop-filter: blur(4px); }
.story-orbit i:nth-child(1) { width: 62px; height: 62px; left: -20px; top: 110px; }
.story-orbit i:nth-child(2) { width: 22px; height: 22px; left: 52px; bottom: 24px; }
.story-orbit i:nth-child(3) { width: 110px; height: 110px; right: 42px; top: -20px; }
.login-panel { display: grid; place-items: center; padding: 48px; background: var(--surface); }
.login-card { width: min(420px, 100%); }
.login-card h2 { margin: 11px 0 8px; font-size: 34px; letter-spacing: -.035em; }
.login-card > p { margin: 0 0 30px; color: var(--muted); line-height: 1.6; }
.mobile-brand { display: none; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 22px; color: var(--muted); font-size: 13px; }
.secure-note i { display: grid; width: 23px; height: 23px; place-items: center; color: var(--green); background: color-mix(in srgb, var(--green) 12%, var(--surface)); border-radius: 50%; font-style: normal; }

/* Forms */
.form-stack { display: grid; gap: 18px; }
label { display: grid; gap: 8px; color: var(--ink); font-size: 13px; font-weight: 720; }
label small { color: var(--muted); font-weight: 500; }
input, select { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 11px; padding: 0 14px; outline: none; color: var(--ink); background: var(--surface-soft); transition: border .18s, box-shadow .18s; }
input:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 12%, transparent); }
input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.form-layout { display: grid; gap: 18px; }
.form-card { position: relative; display: grid; grid-template-columns: 46px 1fr; column-gap: 18px; }
.section-number { display: grid; width: 42px; height: 42px; place-items: center; color: var(--blue); background: color-mix(in srgb, var(--blue) 10%, var(--surface)); border-radius: 12px; font-weight: 850; }
.section-copy h2 { margin: 0 0 5px; font-size: 19px; }
.section-copy p { margin: 0; color: var(--muted); }
.form-grid { grid-column: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.domain-field { grid-column: 2; margin-top: 24px; }
.domain-field > div { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: var(--surface-soft); }
.domain-field input { border: 0; border-radius: 0; box-shadow: none; }
.domain-field b { padding: 0 16px; color: var(--muted); white-space: nowrap; font-weight: 650; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 8px 0 30px; }
.check-field { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 12px 14px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 11px; }
.check-field input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--blue); }
.check-field span { display: grid; gap: 3px; }
.check-field strong { font-size: 13px; }

/* Shell */
.app-shell { display: grid; grid-template-columns: 258px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; width: 258px; height: 100vh; padding: 25px 18px; color: #dfeeff; background: linear-gradient(180deg, #0b1f35, #081827); border-right: 1px solid rgba(255,255,255,.05); z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 55px; padding: 0 8px; }
.brand img { width: 55px; height: 40px; object-fit: contain; filter: brightness(0) invert(1); }
.brand span { display: grid; gap: 2px; }
.brand strong { font-size: 18px; letter-spacing: -.02em; }
.brand small { max-width: 145px; overflow: hidden; color: #839db6; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.side-nav { display: grid; gap: 5px; margin-top: 42px; }
.side-nav a { display: flex; align-items: center; gap: 12px; min-height: 45px; padding: 0 12px; color: #9eb4c8; border-radius: 10px; font-size: 13px; font-weight: 680; transition: color .18s, background .18s; }
.side-nav a > span { display: grid; width: 24px; place-items: center; color: #7ec8ff; font-size: 18px; }
.side-nav a:hover, .side-nav a.active { color: #fff; background: rgba(39, 151, 237, .15); }
.side-nav a.active { box-shadow: inset 3px 0 0 #39aafc; }
.side-nav a.disabled { cursor: default; opacity: .58; }
.side-nav em { margin-left: auto; color: #6d879f; font-size: 9px; font-style: normal; letter-spacing: .06em; text-transform: uppercase; }
.sidebar-foot { display: grid; gap: 13px; margin-top: auto; padding: 0 8px; color: #648099; }
.environment-pill { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.environment-pill i { width: 7px; height: 7px; background: #42d19b; border-radius: 50%; box-shadow: 0 0 0 4px rgba(66, 209, 155, .1); }
.sidebar-foot small { font-size: 9px; letter-spacing: .07em; }
.main-area { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 15; display: flex; height: 72px; align-items: center; gap: 20px; padding: 0 34px; background: color-mix(in srgb, var(--surface) 88%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.topbar-title { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.topbar-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.icon-button, .text-button { border: 0; cursor: pointer; color: var(--muted); background: transparent; }
.icon-button { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.text-button { font-size: 12px; font-weight: 750; }
.user-chip { display: flex; align-items: center; gap: 9px; padding-left: 12px; border-left: 1px solid var(--line); }
.user-chip > span { display: grid; width: 34px; height: 34px; place-items: center; color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan)); border-radius: 10px; font-weight: 800; }
.user-chip div { display: grid; gap: 1px; }
.user-chip strong { font-size: 12px; }
.user-chip small { color: var(--muted); font-size: 10px; }
.content-wrap { width: min(1420px, 100%); margin: 0 auto; padding: 38px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-head.compact { align-items: center; }
.page-head h1 { margin: 7px 0 6px; font-size: clamp(27px, 3vw, 38px); line-height: 1.1; letter-spacing: -.04em; }
.page-head p { margin: 0; color: var(--muted); line-height: 1.55; }
.back-link { display: inline-flex; margin-bottom: 13px; color: var(--blue); font-size: 12px; font-weight: 750; }
.title-row { display: flex; align-items: center; gap: 15px; }
.title-row h1 { margin: 0; }
.company-avatar { display: grid; width: 54px; height: 54px; place-items: center; color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan)); border-radius: 15px; font-size: 22px; font-weight: 850; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; margin-bottom: 20px; }
.stat-card { position: relative; overflow: hidden; display: grid; gap: 5px; min-height: 137px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-card::after { content: ""; position: absolute; right: -16px; top: -18px; width: 80px; height: 80px; border-radius: 50%; background: color-mix(in srgb, var(--blue) 8%, transparent); }
.stat-card > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.stat-card strong { font-size: 32px; letter-spacing: -.04em; }
.stat-card small { align-self: end; color: var(--muted); }
.stat-card.success::after { background: color-mix(in srgb, var(--green) 10%, transparent); }
.stat-card.warning::after { background: color-mix(in srgb, var(--amber) 10%, transparent); }
.stat-card.danger::after { background: color-mix(in srgb, var(--red) 10%, transparent); }
.server-card { margin-bottom: 20px; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.live-pill i { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 12%, transparent); }
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.resource-item { display: grid; gap: 10px; }
.resource-item > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.resource-item span { color: var(--muted); font-size: 12px; font-weight: 750; }
.resource-item strong { font-size: 22px; letter-spacing: -.03em; }
.resource-item small { color: var(--muted); font-size: 10px; }
.meter { overflow: hidden; width: 100%; height: 8px; appearance: none; background: var(--surface-soft); border: 0; border-radius: 999px; }
.meter::-webkit-progress-bar { background: var(--surface-soft); border-radius: 999px; }
.meter::-webkit-progress-value { background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 999px; }
.meter::-moz-progress-bar { background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 999px; }
.uptime-line { margin-top: 22px; padding-top: 15px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }
.uptime-line strong { color: var(--ink); }

.card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.card-head h2 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.02em; }
.card-head p { margin: 0; color: var(--muted); font-size: 12px; }
.count-pill { display: grid; min-width: 34px; height: 28px; place-items: center; color: var(--blue); background: color-mix(in srgb, var(--blue) 10%, var(--surface)); border-radius: 9px; font-size: 12px; font-weight: 800; }
.table-wrap { overflow-x: auto; margin: 0 -24px -24px; }
table { width: 100%; border-collapse: collapse; }
th { padding: 13px 18px; color: var(--muted); background: var(--surface-soft); font-size: 10px; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
td { padding: 16px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
td code, .detail-list code { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.entity { display: flex; align-items: center; gap: 11px; }
.entity > span { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; color: var(--blue); background: color-mix(in srgb, var(--blue) 10%, var(--surface)); border-radius: 11px; font-weight: 850; }
.entity div { display: grid; gap: 3px; }
.entity strong { color: var(--ink); font-size: 13px; }
.entity small { color: var(--muted); }
.row-link { color: var(--blue); font-weight: 750; white-space: nowrap; }
.table-actions { display: flex; align-items: center; gap: 13px; }
.table-actions form { margin: 0; }
.link-danger { padding: 0; color: var(--red); background: transparent; border: 0; cursor: pointer; font-size: 12px; font-weight: 750; }
.status { display: inline-flex; align-items: center; width: max-content; min-height: 25px; padding: 0 9px; border-radius: 999px; font-size: 9px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.status.active, .status.ready, .status.succeeded, .status.ok { color: var(--green); background: color-mix(in srgb, var(--green) 11%, var(--surface)); }
.status.suspended, .status.failed { color: var(--red); background: color-mix(in srgb, var(--red) 10%, var(--surface)); }
.status.pending, .status.running { color: var(--amber); background: color-mix(in srgb, var(--amber) 11%, var(--surface)); }
.empty-state { display: grid; justify-items: center; padding: 48px 20px 36px; text-align: center; }
.empty-state > span { display: grid; width: 64px; height: 64px; place-items: center; color: var(--blue); background: color-mix(in srgb, var(--blue) 9%, var(--surface)); border-radius: 18px; font-size: 30px; }
.empty-state h3 { margin: 17px 0 6px; }
.empty-state p { max-width: 460px; margin: 0 0 20px; color: var(--muted); }

.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; margin-bottom: 18px; }
.summary-card { display: grid; gap: 10px; box-shadow: none; }
.summary-card > span { color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; }
.summary-card > strong:not(.status) { font-size: 22px; }
.summary-card p { margin: 0; color: var(--muted); font-size: 12px; }
.two-columns { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 18px; }
.detail-list { margin: 0; }
.detail-list > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.detail-list dt { color: var(--muted); font-size: 12px; }
.detail-list dd { margin: 0; color: var(--ink); font-size: 12px; font-weight: 650; }
.inline-actions { display: flex; gap: 10px; margin-top: 20px; }
.error-box { display: grid; gap: 7px; margin-top: 16px; padding: 13px; color: var(--red); background: color-mix(in srgb, var(--red) 8%, var(--surface)); border-radius: 10px; }
.timeline { display: grid; gap: 18px; }
.timeline > div { display: flex; gap: 12px; }
.timeline i { width: 9px; height: 9px; flex: 0 0 auto; margin-top: 5px; background: var(--muted); border-radius: 50%; box-shadow: 0 0 0 5px color-mix(in srgb, var(--muted) 11%, transparent); }
.timeline i.succeeded, .timeline i.ok { background: var(--green); box-shadow: 0 0 0 5px color-mix(in srgb, var(--green) 11%, transparent); }
.timeline i.failed { background: var(--red); box-shadow: 0 0 0 5px color-mix(in srgb, var(--red) 11%, transparent); }
.timeline span { display: grid; gap: 3px; }
.timeline strong { font-size: 12px; }
.timeline small { color: var(--muted); font-size: 10px; }
.timeline code { color: var(--red); font-size: 10px; }

.welcome-banner { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; min-height: 210px; margin-bottom: 20px; padding: 38px; color: #fff; background: linear-gradient(125deg, #075aa0, #0788ca 62%, #21b7d0); border-radius: 22px; box-shadow: 0 20px 45px rgba(4, 99, 163, .2); }
.welcome-banner::after { content: ""; position: absolute; right: -80px; bottom: -155px; width: 390px; height: 390px; border: 1px solid rgba(255,255,255,.19); border-radius: 50%; }
.welcome-banner > div:first-child { position: relative; z-index: 2; max-width: 760px; }
.welcome-banner .kicker { color: #9be8f5; }
.welcome-banner h1 { margin: 9px 0; font-size: 36px; letter-spacing: -.04em; }
.welcome-banner p { margin: 0; color: rgba(255,255,255,.78); line-height: 1.65; }
.drop-mark { position: relative; z-index: 2; display: grid; width: 92px; height: 92px; flex: 0 0 auto; place-items: center; color: rgba(255,255,255,.78); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 28px; font-size: 46px; transform: rotate(45deg); }
.module-list, .people-list { display: grid; }
.module-list > div { display: flex; gap: 14px; padding: 15px 0; border-top: 1px solid var(--line); }
.module-list > div > span { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; color: var(--blue); background: color-mix(in srgb, var(--blue) 9%, var(--surface)); border-radius: 9px; font-size: 10px; font-weight: 800; }
.module-list div div, .people-list div div { display: grid; gap: 3px; }
.module-list strong { font-size: 13px; }
.module-list small { color: var(--muted); font-size: 11px; }
.empty-mini { display: grid !important; justify-items: center; gap: 10px !important; padding: 25px; text-align: center; }
.empty-mini > span { display: grid; width: 42px; height: 42px; place-items: center; color: var(--green); background: color-mix(in srgb, var(--green) 10%, var(--surface)); border-radius: 13px; }
.empty-mini p { max-width: 280px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.team-layout { grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); }
.people-list > div { display: grid; grid-template-columns: 42px 1fr auto auto; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.person-avatar { display: grid; width: 38px; height: 38px; place-items: center; color: var(--blue); background: color-mix(in srgb, var(--blue) 10%, var(--surface)); border-radius: 11px; font-weight: 850; }
.people-list strong { font-size: 12px; }
.people-list small { color: var(--muted); font-size: 10px; }
.role-pill { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }

.flash { margin-bottom: 18px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; font-size: 12px; font-weight: 650; }
.flash.success { color: var(--green); background: color-mix(in srgb, var(--green) 8%, var(--surface)); border-color: color-mix(in srgb, var(--green) 20%, var(--line)); }
.flash.error { color: var(--red); background: color-mix(in srgb, var(--red) 8%, var(--surface)); border-color: color-mix(in srgb, var(--red) 20%, var(--line)); }
.error-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 0, color-mix(in srgb, var(--blue) 11%, var(--bg)), var(--bg) 52%); }
.error-card { display: grid; width: min(520px, 100%); justify-items: center; padding: 45px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.error-card img { width: 120px; height: 65px; object-fit: contain; }
.error-card > span { margin-top: 25px; color: var(--blue); font-size: 54px; font-weight: 900; }
.error-card h1 { margin: 5px 0; font-size: 25px; }
.error-card p { margin: 0 0 22px; color: var(--muted); }

@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .resource-grid { grid-template-columns: 1fr; }
  .two-columns { grid-template-columns: 1fr; }
  .login-layout { grid-template-columns: .9fr 1.1fr; }
  .story-copy h1 { font-size: 50px; }
}

@media (max-width: 780px) {
  .mobile-only { display: grid !important; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -280px; width: 258px; transition: left .22s ease; box-shadow: 20px 0 40px rgba(0,0,0,.25); }
  body.menu-open .sidebar { left: 0; }
  .topbar { height: 64px; padding: 0 16px; }
  .topbar-title, .user-chip div, .text-button { display: none; }
  .content-wrap { padding: 24px 16px; }
  .page-head { align-items: stretch; flex-direction: column; }
  .stats-grid, .detail-grid { grid-template-columns: 1fr 1fr; }
  .card { padding: 19px; }
  .table-wrap { margin: 0 -19px -19px; }
  .form-card { grid-template-columns: 40px 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .login-layout { display: block; }
  .login-story { display: none; }
  .login-panel { min-height: 100vh; padding: 28px; }
  .mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 40px; }
  .mobile-brand img { width: 80px; height: 44px; object-fit: contain; }
  .welcome-banner { padding: 28px; }
  .drop-mark { display: none; }
}

@media (max-width: 520px) {
  .stats-grid, .detail-grid { grid-template-columns: 1fr; }
  .domain-field > div { align-items: stretch; flex-direction: column; }
  .domain-field b { padding: 0 14px 13px; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .button { width: 100%; }
  .people-list > div { grid-template-columns: 42px 1fr auto; }
  .people-list .status { grid-column: 2; }
  .welcome-banner h1 { font-size: 30px; }
}

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