:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #F5FAFF;
  background: #071A33;
  --surface: #0B2545;
  --surface-strong: #102E55;
  --line: #244B78;
  --muted: #C5D8ED;
  --teal: #2E6FDC;
  --danger: #ef476f;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: radial-gradient(circle at 12% 8%, rgba(46, 111, 220, 0.13), transparent 28rem), #071A33;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
.manager-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 148px 0 56px; }
.login-view { min-height: calc(100vh - 145px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); align-items: center; gap: 48px; }
.login-copy h1, .dashboard-title-row h1 { margin: 8px 0 14px; font-size: clamp(2.35rem, 6vw, 5.8rem); line-height: 0.96; letter-spacing: 0; }
.login-copy p:not(.eyebrow), .supporting-text { max-width: 620px; color: var(--muted); font-size: 1.08rem; line-height: 1.65; }
.eyebrow { margin: 0; color: var(--teal); font-weight: 800; text-transform: uppercase; }
.login-action { min-height: 230px; display: grid; place-items: center; align-content: center; gap: 16px; padding: 26px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.dashboard-view { padding-top: 56px; }
.dashboard-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.dashboard-title-row h1 { font-size: clamp(2.2rem, 5vw, 4.6rem); }
.summary { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.summary span, .status-badge { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); font-size: 0.88rem; font-weight: 700; }
.status-badge.is-blocked { color: #ffd9e2; border-color: rgba(239, 71, 111, 0.55); background: rgba(239, 71, 111, 0.12); }
.status-badge.is-active { color: #DCEEFF; border-color: rgba(46, 111, 220, 0.45); background: rgba(46, 111, 220, 0.1); }
.status-badge.is-manager { color: #ddd6ff; border-color: rgba(153, 126, 255, 0.55); background: rgba(125, 92, 230, 0.16); }
.toolbar { display: flex; gap: 12px; margin: 34px 0 18px; }
.search-field { flex: 1; }
.search-field input { width: 100%; min-height: 46px; padding: 0 14px; color: inherit; border: 1px solid var(--line); border-radius: 6px; outline: none; background: var(--surface); }
.search-field input:focus { border-color: var(--teal); }
.secondary-button, .action-button { min-height: 42px; padding: 0 15px; border: 1px solid var(--line); border-radius: 6px; color: #F5FAFF; background: var(--surface-strong); font-weight: 750; }
.action-button.is-block { border-color: rgba(239, 71, 111, 0.62); }
.action-button.is-unblock { border-color: rgba(46, 111, 220, 0.55); }
.secondary-button:hover, .action-button:hover { background: #123B6C; }
.secondary-button:disabled, .action-button:disabled { cursor: not-allowed; opacity: 0.55; }
.secondary-button.is-pending, .action-button.is-pending { cursor: wait; }
.table-wrap { overflow-x: auto; overflow-y: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
table { width: 100%; min-width: 960px; border-collapse: collapse; table-layout: fixed; }
th, td { padding: 12px 10px; vertical-align: middle; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.is-pending { opacity: 0.68; }
.user-name { font-weight: 750; }
.user-email { margin-top: 4px; color: var(--muted); font-size: 0.9rem; }
.account-details { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.account-badge { padding: 4px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255, 255, 255, 0.025); font-size: 0.73rem; font-weight: 750; white-space: nowrap; }
.account-badge.is-verified, .account-badge.has-password { color: #DCEEFF; border-color: rgba(46, 111, 220, 0.34); }
.account-badge.is-unverified { color: #ffd79a; border-color: rgba(255, 183, 77, 0.42); }
.account-badge.is-veteran { color: #DCEEFF; border-color: rgba(46, 111, 220, 0.34); }
.account-badge.is-newcomer { color: #cbd8ff; border-color: rgba(130, 160, 255, 0.38); }
.access-control { display: block; min-width: 0; }
.access-select { width: 100%; min-height: 42px; padding: 0 26px 0 9px; border: 1px solid var(--line); border-radius: 6px; color: #F5FAFF; background: var(--surface-strong); cursor: pointer; font-size: 0.85rem; }
.access-select:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.access-select:disabled { cursor: wait; opacity: 0.65; }
.access-value, .protected-account { color: var(--muted); font-size: 0.86rem; font-weight: 750; }
.user-action { text-align: right; }
.user-action-group { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.user-action-group .action-button { min-height: 36px; flex: 1 1 104px; padding: 0 9px; font-size: 0.76rem; line-height: 1.15; }
.discount-control { width: 100%; max-width: 124px; display: grid; gap: 7px; }
.discount-toggle { display: flex; align-items: center; justify-content: space-between; gap: 7px; color: var(--muted); font-size: 0.72rem; font-weight: 780; }
.discount-toggle input { position: relative; width: 36px; height: 22px; flex: 0 0 auto; margin: 0; appearance: none; border: 1px solid var(--line); border-radius: 999px; background: #102e55; cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease; }
.discount-toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #c5d8ed; transition: transform 160ms ease, background-color 160ms ease; }
.discount-toggle input:checked { border-color: #ef476f; background: #ef476f; }
.discount-toggle input:checked::after { background: #fff; transform: translateX(14px); }
.discount-toggle input:focus-visible { outline: 3px solid #dceeff; outline-offset: 2px; }
.discount-picker { position: relative; display: block; }
.discount-picker::after { content: "▾"; position: absolute; top: 50%; right: 10px; color: var(--muted); pointer-events: none; transform: translateY(-52%); }
.discount-select { width: 100%; min-height: 40px; padding: 0 30px 0 11px; appearance: none; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: #fff; background: var(--surface-strong); cursor: ns-resize; font-weight: 820; }
.discount-select:hover { border-color: rgba(220, 238, 255, 0.62); }
.discount-select:focus-visible { outline: 3px solid #dceeff; outline-offset: 2px; }
.action-button.is-reset { border-color: rgba(46, 111, 220, 0.42); }
.action-button.is-set-veteran { color: #ddd6ff; border-color: rgba(153, 126, 255, 0.55); }
.action-button.is-remove-veteran { color: #ffd79a; border-color: rgba(255, 183, 77, 0.48); }
.action-button.is-delete { color: #ffb8c8; border-color: rgba(255, 77, 117, 0.36); }
.action-button.is-delete:hover { color: #fff; background: rgba(255, 77, 117, 0.18); }
.status-text { min-height: 22px; margin: 8px 0; color: var(--muted); }
.status-text.is-error { color: #ff9cb2; }
.empty-state { padding: 44px 18px; color: var(--muted); text-align: center; }
.is-hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (min-width: 921px) {
  th:nth-child(1), td:nth-child(1) { width: 18%; }
  th:nth-child(2), td:nth-child(2), th:nth-child(3), td:nth-child(3) { width: 9%; }
  th:nth-child(4), td:nth-child(4) { width: 17%; }
  th:nth-child(5), td:nth-child(5) { width: 13%; }
  th:nth-child(6), td:nth-child(6) { width: 10%; }
  th:nth-child(7), td:nth-child(7) { width: 24%; }
}
@media (max-width: 920px) {
  .manager-shell { width: min(100% - 24px, 1180px); padding-top: 110px; }
  .login-view { grid-template-columns: 1fr; align-content: center; gap: 28px; }
  .login-action { min-height: 180px; padding: 20px; }
  .dashboard-title-row { align-items: flex-start; flex-direction: column; }
  .summary { justify-content: flex-start; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .table-wrap { overflow: visible; border: 0; background: transparent; }
  table, tbody { display: block; width: 100%; min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  tbody tr { display: block; margin-bottom: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
  tbody tr:last-child { margin-bottom: 0; }
  th, td { display: block; width: 100%; padding: 13px 15px; border-bottom: 1px solid var(--line); }
  td::before { content: attr(data-label); display: block; margin-bottom: 7px; color: var(--muted); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
  tbody tr:last-child td { border-bottom: 1px solid var(--line); }
  tbody td:last-child { border-bottom: 0; }
  .access-control { min-width: 0; }
  .user-action { text-align: left; }
  .user-action-group { justify-content: flex-start; }
  .discount-control { max-width: 160px; }
}
