:root {
  --ink: #172033;
  --muted: #657086;
  --line: #dfe4ec;
  --paper: #ffffff;
  --wash: #f3f6fa;
  --blue: #1557d5;
  --blue-dark: #0c3eaa;
  --red: #b42318;
  --green: #087443;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: linear-gradient(145deg, #edf3ff, #f8fafc 45%, #eef6f4); min-height: 100vh; }
button, input, select { font: inherit; }
button { border: 0; border-radius: 10px; padding: .72rem 1rem; color: #fff; background: var(--blue); cursor: pointer; font-weight: 650; }
button:hover { background: var(--blue-dark); }
button:disabled { cursor: not-allowed; opacity: .55; }
input, select { width: 100%; margin-top: .4rem; border: 1px solid var(--line); border-radius: 10px; padding: .75rem .8rem; background: #fff; color: var(--ink); }
input:focus, select:focus { outline: 3px solid #bcd1ff; border-color: var(--blue); }
label { color: #344056; font-size: .92rem; font-weight: 600; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: .1rem; font-size: 1.35rem; }
h2 { margin-bottom: .55rem; }
.shell { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 5rem; }
.brand { display: flex; align-items: center; gap: .85rem; margin-bottom: 2rem; }
.brand p { margin: 0; color: var(--muted); }
.brand-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; color: #fff; background: #12234b; font-weight: 800; letter-spacing: -.05em; }
.auth-card { max-width: 760px; margin: 8vh auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 2rem; border: 1px solid #fff; border-radius: 22px; background: rgba(255,255,255,.88); box-shadow: 0 22px 70px rgba(36, 55, 90, .14); backdrop-filter: blur(14px); }
.stack { display: grid; gap: 1rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.eyebrow { margin-bottom: .4rem; color: var(--blue); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hidden { display: none !important; }
.notice { position: sticky; top: 1rem; z-index: 5; margin: 0 auto 1rem; max-width: 760px; padding: .8rem 1rem; border-radius: 10px; color: #fff; background: var(--green); box-shadow: 0 8px 25px rgba(0,0,0,.12); }
.notice.error { background: var(--red); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; padding: .65rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.9); }
nav { display: flex; gap: .35rem; flex-wrap: wrap; }
.tab, .ghost, .secondary { color: #42506a; background: transparent; }
.tab:hover, .ghost:hover, .secondary:hover { color: var(--blue); background: #edf3ff; }
.tab.active { color: #fff; background: #172b58; }
.count { display: inline-block; min-width: 1.4rem; margin-left: .3rem; padding: .05rem .35rem; border-radius: 99px; color: inherit; background: rgba(255,255,255,.18); }
.account { display: flex; align-items: center; gap: .7rem; color: var(--muted); font-size: .9rem; }
.panel { padding: 1.5rem; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.9); box-shadow: 0 18px 55px rgba(40,57,84,.09); }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.panel-heading h2 { margin: 0; }
.cards { display: grid; gap: .85rem; }
.card { padding: 1.15rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.review-title { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.review-title h3 { margin-bottom: .2rem; }
.badge { padding: .25rem .55rem; border-radius: 99px; color: #73510d; background: #fff3ce; font-size: .75rem; font-weight: 700; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .65rem; margin: 1rem 0; }
.field { min-width: 0; padding: .65rem; border-radius: 9px; background: var(--wash); }
.field span { display: block; margin-bottom: .2rem; color: var(--muted); font-size: .73rem; }
.field strong { display: block; overflow-wrap: anywhere; font-size: .9rem; }
.actions { display: flex; justify-content: flex-end; gap: .6rem; }
.approve { background: var(--green); }
.reject, .danger-outline { color: var(--red); background: #fff; border: 1px solid #e4aaa5; }
.reject:hover, .danger-outline:hover { color: #fff; background: var(--red); }
.secondary { border: 1px solid var(--line); }
.two-column { display: grid; grid-template-columns: minmax(260px, .85fr) minmax(320px, 1.15fr); gap: 1rem; }
.preview-card { min-height: 330px; text-align: center; }
.label { color: var(--muted); font-size: .82rem; font-weight: 700; text-transform: uppercase; }
.qr-preview { display: block; width: min(260px, 100%); aspect-ratio: 1; margin: .5rem auto 1rem; object-fit: contain; border-radius: 12px; background: #fff; }
.empty { display: grid; place-items: center; min-height: 220px; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }
.hint { margin: -.4rem 0 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.user-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.user-row h3 { margin-bottom: .2rem; }
.user-meta { margin: 0; color: var(--muted); font-size: .84rem; }
.status-active { color: var(--green); }
.status-disabled { color: var(--red); }
@media (max-width: 720px) {
  .shell { width: min(100% - 1rem, 1120px); padding-top: 1rem; }
  .auth-card, .two-column { grid-template-columns: 1fr; }
  .auth-card { gap: 1rem; margin-top: 2rem; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .account { justify-content: space-between; }
  .panel { padding: 1rem; }
}
