:root {
  color-scheme: dark;
  --bg: #050b14;
  --bg-2: #07111f;
  --panel: rgba(12, 24, 42, .78);
  --panel-solid: #0c182a;
  --panel-hover: #10223b;
  --text: #f6f9ff;
  --muted: #93a4bb;
  --line: rgba(144, 180, 220, .15);
  --blue: #1ca7ff;
  --cyan: #20d8ed;
  --blue-deep: #1479ff;
  --danger: #ff5d73;
  --radius: 20px;
  --shadow: 0 28px 80px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 8%, rgba(24, 130, 255, .16), transparent 28rem),
    radial-gradient(circle at 15% 35%, rgba(32, 216, 237, .08), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(20px, calc((100vw - 1180px)/2));
  border-bottom: 1px solid var(--line);
  background: rgba(5, 11, 20, .78);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand img { width: 40px; height: 40px; object-fit: cover; border-radius: 11px; }
.navlinks { display: flex; gap: 26px; align-items: center; color: #b8c6d8; font-size: 14px; }
.navlinks > a:not(.button):hover { color: white; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 750;
  transition: .18s ease;
  white-space: nowrap;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: linear-gradient(135deg, var(--blue-deep), var(--cyan)); color: #fff; box-shadow: 0 10px 30px rgba(18, 139, 255, .2); }
.button-secondary { background: rgba(255,255,255,.045); border-color: var(--line); color: #eaf2ff; }
.button-secondary:hover { background: rgba(255,255,255,.08); }
.button-danger { background: rgba(255, 93, 115, .1); color: #ff9aaa; border-color: rgba(255,93,115,.22); }
.button-small { min-height: 38px; padding: 0 14px; border-radius: 10px; font-size: 13px; }

.hero { min-height: 680px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 76px; align-items: center; padding-block: 82px 66px; }
.hero-copy h1 { margin: 12px 0 22px; max-width: 720px; font-size: clamp(48px, 6.1vw, 82px); line-height: .99; letter-spacing: -.06em; }
.hero-copy h1 span { background: linear-gradient(90deg, #7cc8ff, #26e1ed); color: transparent; background-clip: text; -webkit-background-clip: text; }
.hero-copy > p { max-width: 650px; font-size: 19px; color: #a9b8cb; }
.eyebrow { display: block; color: #62c7ff; font-size: 12px; letter-spacing: .16em; font-weight: 850; }
.hero-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; color: #7f91a7; font-size: 13px; }
.trust-row span::before { content: "✓"; margin-right: 8px; color: var(--cyan); font-weight: 900; }
.glow-card { position: relative; border: 1px solid var(--line); border-radius: 32px; background: linear-gradient(180deg, rgba(15,33,58,.88), rgba(6,15,28,.9)); box-shadow: var(--shadow); overflow: hidden; }
.glow-card::before { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(21, 154, 255, .24); filter: blur(60px); top: -150px; right: -120px; }
.hero-card { min-height: 520px; display: grid; place-items: center; padding: 46px; }
.hero-logo { width: min(330px, 78%); border-radius: 26px; box-shadow: 0 25px 70px rgba(0,0,0,.3); z-index: 1; }
.mini-panel { position: absolute; z-index: 2; width: 78%; left: 11%; bottom: 26px; background: rgba(5, 12, 22, .88); border: 1px solid var(--line); border-radius: 17px; padding: 14px 17px; backdrop-filter: blur(14px); }
.mini-panel-top { display: flex; align-items: center; gap: 8px; color: #b5c3d5; font-size: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #31e6ad; box-shadow: 0 0 18px #31e6ad; }
.mini-row { display: flex; justify-content: space-between; gap: 20px; padding-top: 9px; color: #8497ad; font-size: 12px; }
.mini-row strong { color: #eff7ff; font-weight: 750; }
.pill { background: rgba(36, 169, 255, .12); color: #72cdff !important; border: 1px solid rgba(36,169,255,.2); border-radius: 999px; padding: 1px 8px; }

.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.stats-strip div { padding: 28px 22px; border-right: 1px solid var(--line); }
.stats-strip div:last-child { border-right: 0; }
.stats-strip strong { display: block; font-size: 27px; letter-spacing: -.04em; }
.stats-strip span { color: var(--muted); font-size: 13px; }
.section { padding-block: 110px; }
.section-heading { max-width: 700px; margin-bottom: 42px; }
.section-heading h2, .split-section h2, .cta h2 { margin: 10px 0 12px; font-size: clamp(34px, 4vw, 52px); line-height: 1.07; letter-spacing: -.045em; }
.section-heading p, .mission-copy, .cta p { color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card, .team-card, .dashboard-panel, .server-card, .dashboard-stat, .linked-group-card { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); }
.feature-card { min-height: 250px; padding: 26px; transition: .2s ease; }
.feature-card:hover { transform: translateY(-3px); background: var(--panel-hover); border-color: rgba(78, 176, 255, .28); }
.feature-number { color: #5bc6ff; font-size: 12px; font-weight: 900; }
.feature-card h3 { margin: 45px 0 8px; font-size: 21px; }
.feature-card p, .team-card p { color: var(--muted); font-size: 14px; }
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; border-block: 1px solid var(--line); }
.mission-copy { font-size: 17px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.team-card { padding: 26px; }
.team-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 32px; border-radius: 14px; background: linear-gradient(135deg, #0e77ff, #18d9e9); font-weight: 900; }
.team-card > span { color: #65c7ff; font-size: 11px; font-weight: 850; letter-spacing: .11em; }
.team-card h3 { margin: 7px 0 5px; font-size: 20px; }
.cta { margin-block: 15px 100px; padding: 46px; border: 1px solid rgba(56,176,255,.2); border-radius: 28px; background: linear-gradient(135deg, rgba(13, 57, 108, .43), rgba(9, 29, 48, .76)); display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta h2 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 8px; }
.cta p { margin: 0; }
.footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 30px 0 45px; border-top: 1px solid var(--line); color: #75869c; display: flex; justify-content: space-between; gap: 20px; font-size: 13px; }
.footer-links { display: flex; gap: 18px; }

/* Dashboard */
.dashboard-body { background: var(--bg-2); }
.dashboard-userbar { width: min(1180px, calc(100% - 40px)); margin: 18px auto -16px; display: flex; justify-content: flex-end; }
.user-chip { display: flex; align-items: center; gap: 9px; color: #adbbcc; font-size: 13px; }
.user-chip img, .avatar-fallback { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: #17283e; }
.user-chip a { margin-left: 6px; color: #64c9ff; }
.dashboard-shell { padding-block: 58px 90px; }
.dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.dashboard-heading.compact { align-items: center; }
.dashboard-heading h1 { margin: 6px 0 4px; font-size: clamp(38px, 5vw, 58px); letter-spacing: -.05em; }
.dashboard-heading p { margin: 0; color: var(--muted); }
.server-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.server-card { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px; }
.server-card-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.server-card-main img, .server-fallback { width: 54px; height: 54px; flex: 0 0 auto; border-radius: 16px; object-fit: cover; background: #18283d; display: grid; place-items: center; font-weight: 900; color: #8fcfff; }
.server-card h3 { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.server-card span { color: var(--muted); font-size: 13px; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 55px 25px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty-state h3 { color: white; margin: 0; }
.empty-state.compact { padding: 26px; }
.back-link { display: inline-flex; color: #8da1b7; margin-bottom: 22px; font-size: 14px; }
.status-badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; color: #b8c7d8; font-size: 12px; }
.flash { margin-bottom: 22px; padding: 13px 16px; background: rgba(49, 230, 173, .09); border: 1px solid rgba(49,230,173,.2); border-radius: 12px; color: #a7f8d6; }
.flash-error { background: rgba(255,93,115,.09); border-color: rgba(255,93,115,.2); color: #ffb3be; }
.dashboard-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.dashboard-stat { padding: 21px; }
.dashboard-stat strong { display: block; font-size: 28px; }
.dashboard-stat span { color: var(--muted); font-size: 12px; }
.dashboard-panel { padding: 26px; margin-top: 18px; }
.panel-heading { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.panel-heading h2 { margin: 5px 0; font-size: 27px; letter-spacing: -.035em; }
.panel-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.settings-grid .wide { grid-column: 1 / -1; }
label > span { display: block; margin-bottom: 7px; font-size: 13px; color: #b8c6d7; font-weight: 700; }
input, select {
  width: 100%;
  height: 45px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #081323;
  color: white;
  outline: none;
}
input:focus, select:focus { border-color: rgba(49,183,255,.56); box-shadow: 0 0 0 3px rgba(34,164,255,.08); }
small { display: block; color: #70839b; margin-top: 6px; }
.toggle-row { display: flex; align-items: center; gap: 9px; align-self: center; }
.toggle-row input { width: 17px; height: 17px; }
.toggle-row span { margin: 0; }
.form-actions { display: flex; justify-content: flex-end; }
.setup-group-form { display: grid; grid-template-columns: 1.1fr 1fr auto auto; gap: 12px; align-items: end; padding: 18px; border-radius: 15px; background: rgba(255,255,255,.025); }
.linked-groups { display: grid; gap: 10px; margin-top: 16px; }
.linked-group-card { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 18px; }
.linked-group-card h3 { margin: 4px 0 0; }
.linked-group-card p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.group-actions { display: flex; gap: 8px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; min-width: 780px; }
th, td { padding: 14px 15px; text-align: left; border-bottom: 1px solid var(--line); font-size: 13px; }
th { color: #8799af; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; background: rgba(255,255,255,.02); }
tbody tr:last-child td { border-bottom: 0; }
.table-sub { display: block; color: #718399; font-size: 11px; margin-top: 2px; }
.inline-form { display: flex; gap: 8px; min-width: 340px; }
.inline-form input { height: 38px; }
.token-help { margin-top: 13px; color: #7e91a9; font-size: 12px; }
code { display: inline-block; background: #07111f; border: 1px solid var(--line); border-radius: 7px; padding: 2px 6px; color: #8cd9ff; margin: 2px; }

.legal-page { max-width: 800px; padding-block: 90px; }
.legal-page h1 { font-size: 54px; margin: 7px 0 35px; letter-spacing: -.05em; }
.legal-page h2 { margin-top: 35px; }
.legal-page p { color: #a3b2c4; }
.message-page { min-height: 72vh; display: grid; place-items: center; padding-block: 70px; }
.message-card { max-width: 580px; text-align: center; padding: 46px; border: 1px solid var(--line); background: var(--panel); border-radius: 28px; }
.message-card img { width: 100px; height: 100px; object-fit: cover; border-radius: 22px; margin-bottom: 22px; }
.message-card h1 { margin: 8px 0; font-size: 40px; letter-spacing: -.04em; }
.message-card p { color: var(--muted); margin-bottom: 24px; }

@media (max-width: 900px) {
  .navlinks > a:not(.button) { display: none; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 64px; }
  .hero-card { min-height: 460px; }
  .feature-grid, .team-grid { grid-template-columns: 1fr 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stats-strip div:nth-child(2) { border-right: 0; }
  .stats-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .split-section { grid-template-columns: 1fr; gap: 18px; }
  .cta, .dashboard-heading { align-items: flex-start; flex-direction: column; }
  .server-grid { grid-template-columns: 1fr; }
  .dashboard-stat-grid { grid-template-columns: 1fr 1fr; }
  .setup-group-form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .shell, .footer, .dashboard-userbar { width: min(100% - 24px, 1180px); }
  .topbar { height: 68px; padding-inline: 12px; }
  .brand img { width: 36px; height: 36px; }
  .brand span { display: none; }
  .navlinks { gap: 8px; }
  .hero { min-height: auto; padding-block: 54px; }
  .hero-copy h1 { font-size: 49px; }
  .hero-copy > p { font-size: 16px; }
  .hero-card { min-height: 390px; padding: 26px; }
  .mini-panel { width: 90%; left: 5%; }
  .feature-grid, .team-grid, .settings-grid, .dashboard-stat-grid, .setup-group-form { grid-template-columns: 1fr; }
  .settings-grid .wide { grid-column: auto; }
  .section { padding-block: 78px; }
  .stats-strip div { padding: 20px 12px; }
  .stats-strip strong { font-size: 22px; }
  .cta { margin-bottom: 60px; padding: 28px; }
  .footer { flex-direction: column; }
  .server-card, .linked-group-card { align-items: flex-start; flex-direction: column; }
  .group-actions { width: 100%; }
  .dashboard-panel { padding: 18px; }
  .form-actions { justify-content: stretch; }
  .form-actions .button { width: 100%; }
}

/* RoLink v3 dashboard */
.dashboard-section-nav {
  position: sticky;
  top: 86px;
  z-index: 20;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 17, 31, .9);
  backdrop-filter: blur(16px);
}
.dashboard-section-nav a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 9px;
  color: #9fb1c7;
  font-size: 12px;
  font-weight: 750;
}
.dashboard-section-nav a:hover { color: white; background: rgba(255,255,255,.055); }
.expanded-stats { grid-template-columns: repeat(6, 1fr); }
.two-form-grid, .branding-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.subpanel-form, .staff-add-form {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.024);
}
.subpanel-form h3 { margin: 0 0 15px; font-size: 17px; }
.subpanel-form label { display: block; margin-bottom: 12px; }
textarea {
  width: 100%;
  min-height: 108px;
  resize: vertical;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #081323;
  color: white;
  outline: none;
  font: inherit;
}
textarea:focus { border-color: rgba(49,183,255,.56); box-shadow: 0 0 0 3px rgba(34,164,255,.08); }
.table-gap { margin-top: 16px; }
.expression-help { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.type-pill, .success-pill, .warning-pill, .danger-pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  font-size: 11px;
  font-weight: 800;
  text-transform: capitalize;
}
.success-pill { color: #93f1cc; border-color: rgba(78,222,165,.22); background: rgba(78,222,165,.08); }
.warning-pill { color: #ffd38c; border-color: rgba(255,194,88,.22); background: rgba(255,194,88,.08); }
.danger-pill { color: #ff9dac; border-color: rgba(255,93,115,.22); background: rgba(255,93,115,.08); }
.stack-actions { display: flex; align-items: center; gap: 8px; }
.compact-form { min-width: 270px; }
.subheading { margin: 24px 0 10px; font-size: 16px; }
.verification-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.verification-summary > div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.025);
}
.verification-summary strong { display: block; font-size: 24px; }
.verification-summary span { color: var(--muted); font-size: 11px; }
.mini-chart {
  height: 145px;
  display: grid;
  grid-template-columns: repeat(14, minmax(16px, 1fr));
  align-items: end;
  gap: 5px;
  padding: 16px 12px 6px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.018);
}
.chart-col { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 5px; min-width: 0; }
.chart-bar { min-height: 4px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--cyan), var(--blue-deep)); opacity: .92; }
.chart-col span { text-align: center; color: #667a93; font-size: 9px; white-space: nowrap; overflow: hidden; }
.branding-grid { align-items: stretch; }
.verification-preview {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 360px;
  padding: 34px;
  border: 1px solid color-mix(in srgb, var(--preview-accent) 35%, transparent);
  border-radius: 20px;
  background:
    radial-gradient(circle at 70% 20%, color-mix(in srgb, var(--preview-accent) 20%, transparent), transparent 45%),
    #07111f;
}
.verification-preview img { width: 64px; height: 64px; border-radius: 15px; object-fit: cover; margin-bottom: 25px; }
.verification-preview h3 { margin: 8px 0 8px; font-size: 30px; letter-spacing: -.035em; }
.verification-preview p { margin: 0 0 22px; color: var(--muted); }
.preview-button {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--preview-accent);
  color: white;
  font-size: 13px;
  font-weight: 800;
}
.staff-add-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.staff-add-form .permission-grid { grid-column: 1 / -1; }
.permission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.permission-toggle {
  display: flex !important;
  align-items: center;
  gap: 8px;
  min-height: 39px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.02);
}
.permission-toggle input { width: 16px; height: 16px; }
.permission-toggle span { margin: 0; font-size: 12px; }
.staff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 15px; }
.staff-card { padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.02); }
.staff-card-head { display: flex; justify-content: space-between; margin-bottom: 12px; }
.staff-card-head strong { display: block; }
.staff-card-head span { display: block; color: var(--muted); font-size: 11px; }
.staff-card label { display: block; margin-bottom: 10px; }
.staff-card .permission-grid { margin-bottom: 12px; }
.split-actions { justify-content: space-between; gap: 8px; }

/* Public verification experience */
.verify-shell {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  padding: 60px 20px;
  background:
    radial-gradient(circle at 70% 15%, color-mix(in srgb, var(--verify-accent) 22%, transparent), transparent 28rem),
    radial-gradient(circle at 20% 80%, color-mix(in srgb, var(--verify-accent) 10%, transparent), transparent 22rem),
    #050b14;
}
.verify-card {
  width: min(580px, 100%);
  padding: 34px;
  border: 1px solid color-mix(in srgb, var(--verify-accent) 30%, var(--line));
  border-radius: 26px;
  background: rgba(9, 20, 35, .94);
  box-shadow: 0 35px 100px rgba(0,0,0,.34);
}
.verify-brand { display: flex; align-items: center; gap: 10px; font-weight: 850; }
.verify-brand img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.verify-server { display: flex; align-items: center; gap: 12px; margin-top: 25px; }
.verify-server-icon, .verify-server-fallback { width: 50px; height: 50px; border-radius: 14px; object-fit: cover; display: grid; place-items: center; background: #14253a; font-weight: 850; }
.verify-server span { display: block; color: #6f849e; font-size: 11px; }
.verify-server strong { display: block; margin-top: 1px; }
.verify-divider { height: 1px; background: var(--line); margin: 24px 0; }
.verify-card h1 { margin: 8px 0 10px; font-size: clamp(34px, 7vw, 48px); letter-spacing: -.05em; line-height: 1.05; }
.verify-card > p { color: #9eafc2; margin-bottom: 22px; }
.verify-points { display: grid; gap: 8px; margin: 20px 0 24px; color: #91a5bc; font-size: 12px; }
.verify-points span::first-letter { color: var(--verify-accent); }
.verify-button { width: 100%; background: var(--verify-accent); color: white; }
.verify-card > small { text-align: center; margin-top: 13px; }

@media (max-width: 1000px) {
  .expanded-stats { grid-template-columns: repeat(3, 1fr); }
  .staff-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .dashboard-section-nav { top: 76px; }
  .two-form-grid, .branding-grid, .verification-summary { grid-template-columns: 1fr; }
  .staff-add-form { grid-template-columns: 1fr; }
  .staff-add-form .permission-grid { grid-column: auto; }
  .permission-grid { grid-template-columns: 1fr 1fr; }
  .stack-actions { align-items: stretch; flex-direction: column; }
  .compact-form { min-width: 250px; }
}

@media (max-width: 520px) {
  .expanded-stats { grid-template-columns: 1fr 1fr; }
  .permission-grid { grid-template-columns: 1fr; }
  .mini-chart { gap: 2px; padding-inline: 7px; }
  .chart-col span { display: none; }
  .verify-card { padding: 24px; }
}
