:root {
  color-scheme: dark;
  --bg: #101010;
  --text: #f1f0ec;
  --muted: #a9a8a5;
  --red: #ed443a;
  --line: #30302f;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
}

select { width:100%; min-height:48px; padding:10px 12px; border:1px solid var(--line); background:var(--bg); color:var(--text); font:inherit; border-radius:0; }
select:focus-visible { outline:2px solid var(--red); outline-offset:3px; }
.sso-button { width:100%; margin-top:18px; text-decoration:none; justify-content:space-between; }
.audit-panel { margin-top:48px; }
.table-scroll { max-width:100%; overflow:auto; }
table { width:100%; border-collapse:collapse; text-align:left; font-size:13px; }
th { font-family:var(--mono); font-size:11px; font-weight:400; text-transform:uppercase; color:var(--muted); }
td,th { padding:16px 18px; border:1px solid var(--line); white-space:nowrap; }

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 5px;
}
h1, h2, p { margin-top: 0; }
h1, h2 { line-height: .98; letter-spacing: -.065em; font-weight: 750; }
.text-red { color: var(--red); }
.site-header, .shell, .dashboard, .site-footer { width: min(calc(100% - 96px), 1240px); margin-inline: auto; }
.site-header { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.header-label, .eyebrow, .panel-meta, .form-footer, .site-footer, .status, .dashboard-footer { font-family: var(--mono); text-transform: uppercase; }
.header-label { color: var(--muted); font-size: 10px; letter-spacing: .13em; }
.login-shell { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr); align-items: center; gap: 96px; padding-block: 88px 104px; flex: 1; }
.intro-copy { padding-block: 16px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.eyebrow::before { content: ""; flex: 0 0 6px; width: 6px; height: 6px; background: var(--red); }
.intro h1 { margin-bottom: 30px; font-size: clamp(48px, 6.2vw, 86px); }
.intro h1 > span { display: block; }
.intro-copy > p:last-child { max-width: 370px; margin-bottom: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.panel { border: 1px solid var(--line); background: #121212; }
.login-panel { padding: 38px; }
.panel-meta { margin-bottom: 42px; color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.login-panel h2 { margin-bottom: 17px; font-size: 40px; }
.supporting { color: var(--muted); font-size: 14px; line-height: 1.75; }
.message { border-left: 2px solid var(--red); margin: 24px 0; padding-left: 12px; color: #ff9d94; font-size: 13px; }
.message:empty { display: none; }
.login-form { margin-top: 30px; }
.field { margin-bottom: 22px; }
label { display: block; margin-bottom: 9px; color: var(--text); font-size: 12px; font-weight: 600; }
input:not([type="hidden"]) { width: 100%; min-width: 0; height: 50px; padding: 11px 14px; border: 1px solid #424240; border-radius: 0; background: var(--bg); color: var(--text); caret-color: var(--red); }
input:hover { border-color: #787875; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 46px; padding: 12px 20px; border: 1px solid transparent; border-radius: 0; font-size: 12px; font-weight: 700; cursor: pointer; }
.button-primary { width: 100%; justify-content: space-between; margin-top: 8px; background: var(--red); color: #101010; }
.button-primary:hover { background: #ff5b50; }
.button span { font-size: 21px; line-height: 1; font-weight: 400; }
.form-footer { margin: 26px 0 0; color: var(--muted); font-size: 9px; line-height: 1.8; letter-spacing: .035em; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; letter-spacing: .09em; }
.button-secondary { background: transparent; border-color: var(--line); color: var(--text); }
.button-secondary:hover { border-color: var(--muted); }
.dashboard { flex: 1; padding-block: 76px 68px; }
.account-intro h1 { max-width: 950px; margin-bottom: 25px; font-size: clamp(48px, 7vw, 88px); overflow-wrap: anywhere; }
.account-intro .supporting { margin-bottom: 23px; }
.status { display: inline-flex; align-items: center; gap: 9px; padding: 8px 11px; border: 1px solid var(--line); color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.status span { width: 5px; height: 5px; background: var(--red); }
.activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 47px 0 0; border: 1px solid var(--line); }
.activity-card { min-width: 0; padding: 30px; }
.activity-card + .activity-card { border-left: 1px solid var(--line); }
.activity-card dt { min-height: 32px; margin-bottom: 24px; color: var(--muted); font-family: var(--mono); font-size: 10px; line-height: 1.6; text-transform: uppercase; letter-spacing: .07em; }
.activity-card dd { margin: 0 0 15px; font-size: 22px; line-height: 1.4; font-weight: 600; letter-spacing: -.03em; overflow-wrap: anywhere; }
.activity-card .activity-description { margin-bottom: 0; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.8; letter-spacing: normal; }
.activity-card-highlight { background: #161211; }
.activity-card .activity-count { color: var(--red); font-size: 48px; font-weight: 750; line-height: 1; letter-spacing: -.065em; }
.dashboard-footer { margin: 24px 0 0; color: var(--muted); font-size: 9px; line-height: 1.8; letter-spacing: .045em; }

@media (min-width: 1500px) {
  .login-shell { gap: 130px; }
}
@media (max-width: 1000px) {
  .login-shell { gap: 48px; }
  .login-panel { padding: 30px; }
  .intro h1 { font-size: clamp(47px, 6vw, 68px); }
  .activity-card { padding: 25px; }
}
@media (max-width: 760px) {
  .site-header, .shell, .dashboard, .site-footer { width: calc(100% - 40px); }
  .site-header { min-height: 92px; }
  .header-label { font-size: 8px; letter-spacing: .08em; }
  .login-shell { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 52px 56px; }
  .intro-copy { padding: 0; }
  .eyebrow { margin-bottom: 24px; font-size: 9px; }
  .intro h1 { margin-bottom: 24px; font-size: clamp(46px, 11vw, 74px); }
  .intro-copy > p:last-child { font-size: 14px; }
  .login-panel { padding: 30px 25px; }
  .panel-meta { margin-bottom: 32px; }
  .site-footer { min-height: 80px; font-size: 8px; letter-spacing: .04em; }
  .dashboard { padding-block: 52px; }
  .account-intro h1 { font-size: clamp(45px, 11vw, 72px); }
  .activity-grid { grid-template-columns: minmax(0, 1fr); margin-top: 35px; }
  .activity-card { padding: 25px; }
  .activity-card + .activity-card { border-left: 0; border-top: 1px solid var(--line); }
  .activity-card dt { min-height: 0; margin-bottom: 16px; }
}
@media (max-width: 380px) {
  .header-label { display: none; }
  .site-footer { align-items: flex-start; justify-content: center; flex-direction: column; gap: 6px; padding-block: 20px; }
  .dashboard-header .button { padding-inline: 12px; gap: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .button, input { transition: background-color 120ms ease, border-color 120ms ease; }
}

.app-nav { display:flex; flex-wrap:wrap; gap:24px; align-items:center; }
.app-nav > a { color:var(--muted); text-decoration:none; font:11px var(--mono); text-transform:uppercase; }
.app-nav > a:hover { color:var(--text); }
.product-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:20px; margin-top:42px; }
.product-card { display:block; padding:32px; border:1px solid var(--line); text-decoration:none; background:#121212; }
.product-card:hover { border-color:var(--red); }
.product-card .panel-meta { display:block; margin-bottom:22px; }
.product-card h2 { margin:0 0 18px; font-size:32px; }
.product-card p { color:var(--muted); font-size:14px; max-width:440px; }
@media(max-width:650px) { .site-header { flex-wrap:wrap; padding-block:22px; } .app-nav { gap:18px; } .app-nav .button { min-height:38px; } }

.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.section-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; margin-bottom:36px; }
.section-heading h1 { font-size:clamp(44px,6vw,72px); margin-bottom:20px; }
.section-heading .eyebrow { margin-bottom:20px; }
.section-heading .supporting { margin-bottom:0; }
.section-heading > .button { flex-shrink:0; }
.button-accent { background:var(--red); color:var(--bg); text-decoration:none; }
.button-accent:hover { background:#ff5b50; }
.user-search { display:flex; gap:12px; align-items:flex-end; margin:36px 0 24px; }
.user-search > div { flex:1; max-width:480px; }
.user-search .button { min-height:50px; }
.clear-search { padding:14px 8px; color:var(--muted); font-size:13px; }
.list-meta { display:flex; justify-content:space-between; gap:20px; margin-bottom:14px; color:var(--muted); font:11px var(--mono); }
.users-table th[scope="col"] a { text-decoration:none; display:block; padding-block:4px; }
.users-table th[scope="row"] { font:600 14px Arial,Helvetica,sans-serif; text-transform:none; color:var(--text); }
.username-link { text-decoration:none; }
.users-table a:hover { color:var(--red); }
.user-name, .user-email { display:block; }
.user-email { margin-top:4px; color:var(--muted); font-size:12px; }
.status-active { color:#c5d4c6; border-color:#405445; }
.notice { border:1px solid #405445; color:#c5d4c6; padding:16px 20px; font-size:14px; }
.empty-state { padding:36px; text-align:center; color:var(--muted); }
.pagination { display:flex; justify-content:space-between; margin-top:22px; }
.pagination a { text-decoration:none; }
.back-link { display:inline-block; margin-bottom:36px; color:var(--muted); text-decoration:none; font-size:13px; }
.back-link:hover { color:var(--text); }
.user-editor { display:grid; grid-template-columns:minmax(0,1fr) minmax(260px,.45fr); gap:24px; align-items:start; }
.user-details { padding:32px; }
.user-details h2, .control-panel h2 { font-size:28px; margin-bottom:24px; letter-spacing:-.04em; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 22px; }
.optional { color:var(--muted); font-weight:400; }
.field-help { margin:9px 0 0; font-size:12px; color:var(--muted); line-height:1.65; }
.password-section { border-top:1px solid var(--line); margin-top:6px; padding-top:26px; }
.password-section h3 { margin:0 0 10px; font-size:16px; }
.password-section .supporting { font-size:13px; }
.form-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:10px; }
.form-actions a { text-decoration:none; }
.user-controls { display:grid; gap:24px; }
.control-panel { padding:26px; }
.control-panel .panel-meta { margin-bottom:22px; }
.control-panel .supporting { font-size:13px; }
.control-panel h2 { font-size:25px; }
.danger-panel { border-color:#633732; }
.button-danger { color:#ff9d94; border-color:#89483e; background:transparent; }
.button-danger:hover { background:#321b18; }
.account-password { margin-top:40px; padding:32px; max-width:920px; }
.account-password h2 { font-size:34px; margin-bottom:18px; letter-spacing:-.045em; }
.account-password .eyebrow { margin-bottom:20px; }
.account-password form { margin-top:28px; }
.current-password-field { max-width:417px; }
.password-signout-note { margin:4px 0 24px; font-size:13px; }
@media(max-width:1000px) { .user-editor { grid-template-columns:minmax(0,1fr); } .user-controls { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:650px) { .section-heading { align-items:flex-start; flex-direction:column; } .user-details { padding:24px 20px; } .form-grid, .user-controls { grid-template-columns:minmax(0,1fr); } .user-search { flex-wrap:wrap; } .user-search > div { flex-basis:100%; } .app-nav { gap:16px; } .app-nav > a { font-size:10px; } }
@media(max-width:650px) { .account-password { padding:24px 20px; } .account-password h2 { font-size:29px; } .current-password-field { max-width:none; } }
