:root {
  --ink: #08101f;
  --ink-2: #111b30;
  --paper: #f2f1eb;
  --paper-2: #e7e6df;
  --line: rgba(8, 16, 31, .14);
  --muted: #5d6471;
  --lime: #b8f530;
  --aqua: #52e2d2;
  --coral: #ff7c66;
  --display: "Space Grotesk", "Segoe UI", sans-serif;
  --body: "DM Sans", "Segoe UI", sans-serif;
  --mono: "DM Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper); font-family: var(--body); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.admin-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 52px 0 70px; }
.admin-brand { display: inline-flex; gap: 2px; font: 700 22px var(--display); letter-spacing: -.8px; }
.admin-brand span { color: #2d6f77; }
.eyebrow { color: #47757b; letter-spacing: .13em; margin: 0 0 10px; font: 500 10px var(--mono); }
.login-card { width: min(100%, 480px); margin: 7vh auto 0; padding: 40px; border: 1px solid var(--line); background: rgba(255,255,255,.36); box-shadow: 0 18px 60px rgba(8,16,31,.08); }
.login-card .admin-brand { margin-bottom: 72px; }
h1, h2 { margin: 0; font-family: var(--display); letter-spacing: -1.8px; }
h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.03; }
h2 { font-size: 28px; }
.intro-copy { color: var(--muted); max-width: 350px; margin: 15px 0 28px; font-size: 13px; line-height: 1.5; }
.login-form { display: grid; gap: 14px; }
.login-form label { display: grid; gap: 7px; }
.login-form label span { color: var(--muted); font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.login-form input { width: 100%; height: 44px; padding: 0 12px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 2px; outline: none; }
.login-form input:focus { border-color: #26777d; box-shadow: 0 0 0 3px rgba(82,226,210,.16); }
.primary-button, .secondary-button { border: 0; border-radius: 2px; cursor: pointer; }
.primary-button { color: var(--ink); background: var(--lime); padding: 13px 15px; font-weight: 700; text-align: left; }
.primary-button span { float: right; }
.primary-button[disabled] { cursor: wait; opacity: .65; }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; color: var(--ink); background: transparent; border: 1px solid var(--line); padding: 9px 12px; font-size: 11px; white-space: nowrap; }
.secondary-button:hover { border-color: #26777d; color: #26777d; }
.back-link { display: inline-block; color: var(--muted); margin-top: 23px; font-size: 12px; }
.back-link:hover { color: #26777d; }
.form-message, .panel-message { min-height: 17px; margin: 0; color: #b44f41; font-size: 11px; line-height: 1.45; }
.dashboard-header { display: flex; align-items: end; justify-content: space-between; gap: 25px; border-bottom: 1px solid var(--line); padding-bottom: 25px; }
.dashboard-header .admin-brand { display: block; margin-bottom: 48px; }
.header-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: end; }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0 62px; }
.summary-card { min-height: 120px; padding: 20px; border: 1px solid var(--line); background: rgba(255,255,255,.28); display: flex; flex-direction: column; justify-content: space-between; }
.summary-card span { color: var(--muted); font: 500 10px var(--mono); text-transform: uppercase; }
.summary-card strong { font: 600 28px var(--display); letter-spacing: -1px; }
.users-panel { border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 26px 0 18px; }
.panel-message { margin-bottom: 8px; color: var(--muted); }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
.users-table { width: 100%; min-width: 720px; border-collapse: collapse; text-align: left; }
.users-table th { color: var(--muted); padding: 13px 10px; font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.users-table th:first-child, .users-table td:first-child { padding-left: 0; }
.users-table th:last-child, .users-table td:last-child { padding-right: 0; }
.users-table td { border-top: 1px solid var(--line); padding: 15px 10px; font-size: 13px; }
.users-table td:first-child, .users-table td:nth-child(5), .users-table td:nth-child(6) { color: var(--muted); font: 11px var(--mono); }
.users-table td:nth-child(4) { color: var(--muted); font: 11px var(--mono); white-space: nowrap; }
.empty-cell { color: var(--muted); text-align: center; padding: 38px !important; }
.privacy-note { color: var(--muted); margin: 20px 0 0; font-size: 11px; line-height: 1.5; }
[hidden] { display: none !important; }
@media (max-width: 680px) {
  .admin-shell { width: min(100% - 28px, 1180px); padding-top: 28px; }
  .login-card { padding: 25px; margin-top: 4vh; }
  .login-card .admin-brand { margin-bottom: 50px; }
  .dashboard-header { display: block; }
  .dashboard-header .admin-brand { margin-bottom: 38px; }
  .header-actions { justify-content: start; margin-top: 20px; }
  .summary-grid { grid-template-columns: 1fr; margin-bottom: 42px; }
  .summary-card { min-height: 95px; }
  .section-heading { align-items: start; }
}
