[hidden] { display: none !important; }
body { min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button, select, summary { cursor: pointer; }
button, input, select, textarea { color: var(--text-primary); }
button:disabled { opacity: .5; cursor: wait; }
button:focus-visible, a:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.dashboard-nav { height: 78px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1200px) / 2)); gap: 16px; }
.wordmark { display: flex; align-items: center; gap: 20px; text-decoration: none; font: 600 25px var(--font-heading); color: var(--text-primary); }
.nav-divider { color: var(--border-light); font: 24px var(--font-body); }
.nav-label { color: var(--text-secondary); font: 13px var(--font-body); }
.nav-actions { display: flex; align-items: center; gap: 24px; font-size: 13px; }
.nav-actions a, .dashboard-footer a { color: var(--text-secondary); text-decoration: none; }
main { max-width: 1200px; margin: auto; min-height: calc(100vh - 166px); padding: 0 24px 64px; }
.loading { padding: 80px 0; color: var(--text-secondary); }
.muted { color: var(--text-secondary); }
.small { font-size: 12px; }
.eyebrow { font: 10px var(--font-mono); letter-spacing: .16em; color: var(--accent); margin-bottom: 16px; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-weight: 400; }
h1 { font: 52px/1.06 var(--font-heading); letter-spacing: -.03em; }
h2 { font: 25px/1.2 var(--font-heading); }
.button { border: 1px solid var(--border-light); background: var(--bg-raised); border-radius: 5px; padding: 11px 17px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; font-size: 13px; font-weight: 500; color: var(--text-primary); text-decoration: none; white-space: nowrap; }
.button:hover { background: var(--bg-surface); border-color: var(--text-tertiary); }
.button.primary { background: var(--accent); color: var(--bg-base); border-color: var(--accent); }
.button.primary:hover { background: var(--accent-hover); }
.button.quiet { padding: 7px 12px; background: transparent; }
.full { width: 100%; }
.text-button, .text-link { padding: 0; border: 0; background: none; color: var(--accent); font-size: 13px; text-decoration: none; }
.text-button:hover, .text-link:hover { text-decoration: underline; }
.notice { border: 1px solid var(--border-light); border-left: 2px solid var(--accent); padding: 14px 18px; background: var(--bg-raised); margin: 24px 0 0; font-size: 14px; }
.auth-layout { display: grid; grid-template-columns: 1fr 420px; align-items: center; gap: 100px; padding: 100px 10px 70px; }
.auth-intro h1 { font-size: clamp(45px, 4.6vw, 65px); margin-bottom: 24px; }
.auth-intro h1 em { color: var(--accent); }
.getting-started em { color: var(--accent); }
.intro-copy { color: var(--text-secondary); font-size: 16px; max-width: 420px; line-height: 1.75; }
.intro-details { display: flex; gap: 36px; margin: 44px 0 34px; border-top: 1px solid var(--border); padding-top: 25px; }
.intro-details > div { display: flex; flex-direction: column; gap: 8px; }
.intro-details span:last-child { font-size: 12px; color: var(--text-secondary); }
.detail-number { font: 17px var(--font-mono); }
.auth-card { padding: 32px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 8px; }
.auth-card h2 { font-size: 30px; margin-bottom: 12px; }
.auth-card > .muted { font-size: 13px; line-height: 1.7; margin-bottom: 28px; }
label { display: flex; flex-direction: column; gap: 9px; font-size: 12px; color: var(--text-secondary); margin-bottom: 18px; }
input, textarea, select { padding: 11px 12px; border: 1px solid var(--border-light); border-radius: 4px; background: var(--bg-base); width: 100%; min-width: 0; }
input:focus, textarea:focus, select:focus { outline: 1px solid var(--accent); border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--text-tertiary); }
textarea { resize: vertical; }
.google { width: 100%; gap: 10px; }
.google-logo { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; box-sizing: content-box; padding: 3px; background: #fff; border-radius: 50%; }
.or-divider { position: relative; text-align: center; border-top: 1px solid var(--border); margin: 28px 0; height: 0; }
.or-divider span { position: relative; top: -12px; background: var(--bg-raised); padding: 0 14px; color: var(--text-tertiary); font-size: 12px; }
#forgot-password, #back-to-login { margin-top: 18px; }
.auth-switch { font-size: 13px; margin: 24px 0 0; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-secondary); }
.workspace { padding-top: 48px; }
.workspace-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.workspace-header h1 { margin-bottom: 12px; }
.workspace-header .muted { font-size: 13px; margin-bottom: 0; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.filter-group { display: flex; gap: 10px; }
.filter-group select { width: auto; max-width: 240px; font-size: 12px; padding-right: 24px; }
#stats-status { min-height: 18px; margin-bottom: 20px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); background: var(--bg-raised); border-radius: 6px; margin-bottom: 24px; }
.metric { padding: 24px; border-right: 1px solid var(--border); min-width: 0; }
.metric:last-child { border: 0; }
.metric p { color: var(--text-secondary); font-size: 12px; margin-bottom: 20px; }
.metric strong { display: block; font: 30px var(--font-mono); letter-spacing: -.06em; margin-bottom: 13px; overflow-wrap: anywhere; }
.metric > span { color: var(--text-tertiary); font-size: 10px; }
.unit { font: 9px var(--font-mono); margin-left: 5px; color: var(--text-tertiary); }
.panel { border: 1px solid var(--border); background: var(--bg-raised); border-radius: 6px; margin-bottom: 24px; overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 25px 26px; }
.panel-heading h2 { margin-bottom: 7px; }
.panel-heading p { margin-bottom: 0; }
.legend { display: flex; gap: 20px; font-size: 11px; color: var(--text-secondary); }
.legend span { display: flex; align-items: center; gap: 7px; }
.legend i { width: 7px; height: 7px; border-radius: 2px; }
.sent-dot { background: #454039; }
.landed-dot { background: var(--accent); }
.activity-chart { padding: 0 24px 20px; min-height: 228px; display: grid; align-items: center; }
.activity-chart svg { display: block; width: 100%; height: auto; }
.chart-empty { text-align: center; padding: 54px 20px; }
.chart-empty h3 { font: 23px var(--font-heading); font-weight: 400; margin-bottom: 12px; }
.chart-empty p { color: var(--text-secondary); font-size: 13px; margin-bottom: 0; }
.keys-list { border-top: 1px solid var(--border); }
.key-row { display: grid; grid-template-columns: 1fr 80px auto; gap: 24px; align-items: center; padding: 22px 26px; border-bottom: 1px solid var(--border); }
.key-row:last-child { border-bottom: 0; }
.key-value { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.key-value code { font: 12px var(--font-mono); overflow-wrap: anywhere; }
.key-meta { font-size: 11px; color: var(--text-tertiary); margin: 10px 0 0; }
.key-limit { font: 14px var(--font-mono); }
.key-limit small { color: var(--text-tertiary); font-size: 10px; }
.key-row .button { font-size: 11px; padding: 8px 12px; }
.badge { padding: 4px 8px; border-radius: 3px; font: 10px var(--font-mono); color: var(--text-secondary); background: var(--bg-surface); white-space: nowrap; }
.badge.pending { color: var(--accent); background: #d4a84312; }
.badge.approved { color: var(--success); background: #4ade8010; }
.badge.rejected { color: #f0a3a3; background: #dc262610; }
.bottom-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; }
.bottom-grid .panel { margin-bottom: 0; }
.empty-copy { color: var(--text-tertiary); font-size: 13px; padding: 10px 26px 30px; line-height: 1.7; }
.request-item { padding: 20px 26px; border-top: 1px solid var(--border); }
.request-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 13px; }
.request-item p { margin: 8px 0 0; color: var(--text-secondary); font-size: 12px; overflow-wrap: anywhere; }
.getting-started { padding: 30px; background: radial-gradient(ellipse at top right, #d4a8430a, transparent 70%), var(--bg-raised); }
.getting-started h2 { font-size: 34px; margin-bottom: 20px; }
.getting-started > .muted { max-width: 340px; font-size: 13px; line-height: 1.7; margin-bottom: 26px; }
.dashboard-footer { max-width: 1200px; margin: auto; padding: 28px 24px; display: flex; justify-content: space-between; border-top: 1px solid var(--border); font-size: 11px; }
dialog { color: var(--text-primary); background: var(--bg-raised); border: 1px solid var(--border-light); border-radius: 8px; padding: 30px; width: min(480px, calc(100% - 32px)); max-height: calc(100vh - 40px); margin: auto; }
dialog::backdrop { background: #000b; backdrop-filter: blur(4px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.dialog-heading h2 { margin-bottom: 20px; font-size: 30px; }
dialog p { font-size: 13px; line-height: 1.7; margin-bottom: 24px; }
.form-error { color: #f0a3a3; }
.form-error:empty { display: none; }
.table-scroll { overflow-x: auto; max-height: 300px; }
details { padding: 0 26px 20px; font-size: 12px; color: var(--text-secondary); }
table { width: 100%; border-collapse: collapse; margin-top: 15px; font-size: 12px; }
th, td { text-align: right; border-bottom: 1px solid var(--border); padding: 10px; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
.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 (max-width: 900px) {
  .auth-layout { gap: 40px; grid-template-columns: 1fr 380px; padding-top: 65px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .key-row { grid-template-columns: 1fr auto; }
  .key-row > .button { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 650px) {
  .dashboard-nav { height: 65px; padding: 0 18px; }
  .nav-actions { gap: 12px; }
  .nav-actions > a { font-size: 0; }
  .nav-actions > a span { font-size: 18px; }
  .wordmark { gap: 12px; }
  main { padding: 0 18px 40px; }
  .auth-layout { display: flex; flex-direction: column; align-items: stretch; padding: 40px 0; gap: 36px; }
  .auth-intro h1 { font-size: 48px; }
  .intro-details, .auth-intro .text-link { display: none; }
  .intro-copy { font-size: 14px; margin-bottom: 0; }
  .auth-card { padding: 24px; }
  .workspace { padding-top: 32px; }
  .workspace-header { align-items: flex-start; }
  .workspace-header h1 { font-size: 42px; }
  .workspace-header > .button { padding: 8px 10px; font-size: 11px; margin-top: 30px; }
  .workspace-header > .button span { display: none; }
  .filter-group { gap: 7px; }
  .filter-group select { max-width: 150px; padding: 10px 8px; font-size: 11px; }
  .metric { padding: 20px 16px; }
  .metric strong { font-size: 24px; }
  .metric p { font-size: 11px; }
  .metric > span { font-size: 9px; }
  .panel-heading { padding: 20px 18px; }
  .panel-heading h2 { font-size: 23px; }
  .legend { gap: 10px; font-size: 10px; }
  .activity-chart { padding: 0 12px 15px; min-height: 180px; }
  .activity-chart svg { min-height: 180px; }
  .key-row { padding: 20px 18px; gap: 16px; }
  .key-value code { font-size: 10px; }
  .bottom-grid { grid-template-columns: 1fr; }
  .dashboard-footer { padding: 22px 18px; font-size: 10px; }
  .dashboard-footer > span > span { display: none; }
}
