:root {
  color-scheme: light;
  font-family: Tahoma, Arial, sans-serif;
  color: #24213a;
  background: #f5f1ff;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: linear-gradient(135deg, #f8f5ff, #ece5ff); }
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 64px; }
.login-card { width: min(420px, calc(100% - 32px)); margin: 10vh auto; padding: 28px; border: 1px solid #e1d9f5; border-radius: 20px; background: rgba(255,255,255,.9); box-shadow: 0 16px 45px rgba(80, 57, 145, .12); }
.login-card h1 { margin-bottom: 10px; font-size: 28px; }
.login-card p:not(.eyebrow) { color: #746d86; }
.login-card .button { width: 100%; margin-top: 20px; }
.topbar, .section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar { margin-bottom: 26px; }
.eyebrow { margin: 0 0 6px; color: #6554c0; font-size: 13px; font-weight: 700; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(26px, 5vw, 40px); }
h2 { margin-bottom: 8px; font-size: 22px; }
.section-head p { margin-bottom: 0; color: #746d86; }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; border-bottom: 1px solid #ddd4f3; }
.tab { border: 0; border-bottom: 3px solid transparent; padding: 13px 18px; background: transparent; color: #746d86; cursor: pointer; font: inherit; }
.tab.active { border-bottom-color: #6554c0; color: #4b3b9e; font-weight: 700; }
.content { min-height: 470px; padding: 24px; border: 1px solid #e1d9f5; border-radius: 20px; background: rgba(255,255,255,.82); box-shadow: 0 16px 45px rgba(80, 57, 145, .10); }
.button { border: 0; border-radius: 10px; padding: 11px 16px; cursor: pointer; font: inherit; font-weight: 700; }
.primary { background: #6554c0; color: #fff; }
.secondary { background: #ebe6fb; color: #4b3b9e; }
.message { margin-bottom: 16px; padding: 12px 14px; border-radius: 10px; background: #ffe8e8; color: #9c2c2c; }
.hidden { display: none !important; }
.loading, .empty { padding: 90px 20px; text-align: center; color: #746d86; }
.table-wrap { overflow-x: auto; margin-top: 26px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 12px; border-bottom: 1px solid #eee9f8; text-align: right; white-space: nowrap; }
th { color: #6554c0; font-size: 13px; background: #faf8ff; }
td { color: #403951; }
.actions { display: flex; gap: 8px; }
.small { padding: 7px 10px; font-size: 12px; }
dialog { width: min(460px, calc(100% - 32px)); border: 0; border-radius: 18px; padding: 24px; color: #24213a; box-shadow: 0 20px 70px rgba(31, 20, 72, .25); }
dialog::backdrop { background: rgba(31, 20, 72, .35); }
label { display: block; margin: 14px 0 6px; color: #625a73; font-size: 13px; font-weight: 700; }
input { width: 100%; border: 1px solid #dcd4f0; border-radius: 9px; padding: 11px; font: inherit; }
.dialog-actions { display: flex; justify-content: flex-start; gap: 8px; margin-top: 24px; }
@media (max-width: 600px) {
  .shell { width: min(100% - 20px, 1120px); padding-top: 16px; }
  .topbar, .section-head { align-items: flex-start; flex-direction: column; }
  .button { width: 100%; }
  .tabs { overflow-x: auto; }
  .tab { flex: 0 0 auto; }
  .content { padding: 16px; }
}
