:root {
  color: #1f2933;
  background: #f5f7f5;
  font-family: Arial, sans-serif;
  line-height: 1.4;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.shell { min-height: 100vh; }
.login-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 64px; align-items: center; max-width: 1040px; min-height: 100vh; margin: auto; padding: 32px; }
.brand-block { max-width: 480px; }
.brand-mark { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 6px; background: #0f766e; color: #fff; font-weight: 800; }
.eyebrow { margin: 18px 0 4px; color: #0f766e; font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: 0; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: 30px; }
h2 { margin-bottom: 0; font-size: 20px; }
.panel { border: 1px solid #d1d9d5; border-radius: 6px; background: #fff; }
.login-panel { display: grid; gap: 8px; padding: 28px; }
input, select { min-height: 42px; padding: 9px 10px; border: 1px solid #aebbb4; border-radius: 4px; background: #fff; }
button { min-height: 40px; padding: 8px 14px; border: 1px solid #0f766e; border-radius: 4px; background: #0f766e; color: #fff; font-weight: 700; }
button:hover { background: #115e59; }
button:disabled { cursor: not-allowed; opacity: .55; }
.button-secondary { border-color: #0f766e; background: #fff; color: #0f766e; }
.button-secondary:hover { background: #e6f4f1; }
.button-quiet { border-color: transparent; background: transparent; color: #475569; }
.button-quiet:hover { background: #e9eeeb; }
.form-error { min-height: 20px; margin: 2px 0; color: #b42318; font-size: 14px; }
.topbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 68px; padding: 12px 24px; border-bottom: 1px solid #d1d9d5; background: #fff; }
.brand-inline, .account-actions { display: flex; align-items: center; gap: 10px; }
.brand-inline span:last-child { color: #64748b; }
.content { max-width: 1180px; margin: auto; padding: 28px 24px 48px; }
.page-heading, .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.page-heading { margin-bottom: 22px; }
.page-heading .eyebrow { margin-top: 0; }
.muted { color: #64748b; font-size: 14px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 32px; }
.metric { min-height: 116px; padding: 18px; border: 1px solid #d1d9d5; border-top: 3px solid #0f766e; border-radius: 6px; background: #fff; }
.metric:nth-child(2) { border-top-color: #2563eb; }
.metric:nth-child(3) { border-top-color: #d97706; }
.metric:nth-child(4) { border-top-color: #7c3aed; }
.metric span { display: block; color: #475569; font-size: 14px; }
.metric strong { display: block; margin-top: 20px; font-size: 28px; }
.data-section { margin-top: 30px; }
.section-heading { margin-bottom: 10px; }
.table-wrap { overflow-x: auto; border: 1px solid #d1d9d5; border-radius: 6px; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 12px 14px; border-bottom: 1px solid #e4e9e6; text-align: left; vertical-align: middle; font-size: 14px; }
th { background: #edf3ef; color: #334155; font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
.role { display: inline-block; padding: 3px 8px; border-radius: 99px; background: #e6f4f1; color: #0f766e; font-size: 12px; font-weight: 700; }
.role.admin { background: #ede9fe; color: #6d28d9; }
.role-change { display: flex; gap: 6px; align-items: center; }
.role-change button { min-height: 34px; padding: 5px 9px; font-size: 13px; }
.notice { margin-bottom: 18px; padding: 12px 14px; border-radius: 4px; }
.notice.error { border: 1px solid #f7c7c1; background: #fff1ef; color: #9d1c13; }

@media (max-width: 760px) {
  .login-layout { grid-template-columns: 1fr; gap: 28px; align-content: center; padding: 24px; }
  .topbar, .account-actions { align-items: flex-start; flex-wrap: wrap; }
  .content { padding: 22px 16px 40px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
