:root {
  --navy-950: #071a2f;
  --navy-900: #0b2440;
  --navy-800: #123a5d;
  --blue-700: #0b67b2;
  --blue-600: #0879d1;
  --blue-100: #dceeff;
  --cyan-400: #34c5d6;
  --surface: #ffffff;
  --surface-soft: #f5f8fb;
  --surface-blue: #eef6fc;
  --border: #dbe4ec;
  --border-strong: #c9d6e1;
  --text: #152a3d;
  --text-soft: #637587;
  --success: #147a4b;
  --success-soft: #e6f6ee;
  --warning: #94610a;
  --warning-soft: #fff3d8;
  --danger: #ba382f;
  --danger-soft: #ffebe9;
  --shadow-sm: 0 6px 18px rgba(14, 40, 65, 0.07);
  --shadow-md: 0 18px 42px rgba(14, 40, 65, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--surface-soft);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--surface-soft);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  color: #fff;
  background: var(--blue-700);
  cursor: pointer;
  font-weight: 700;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

button:hover:not(:disabled) {
  background: var(--blue-600);
  box-shadow: 0 8px 18px rgba(8, 121, 209, 0.2);
  transform: translateY(-1px);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(52, 197, 214, 0.32);
  outline-offset: 2px;
}

button.secondary {
  color: var(--navy-800);
  background: #eaf0f5;
}

button.secondary:hover:not(:disabled) {
  background: #dae6ef;
  box-shadow: none;
}

button.danger {
  color: var(--danger);
  background: var(--danger-soft);
}

button.danger:hover:not(:disabled) {
  color: #fff;
  background: var(--danger);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 6px;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 5px;
  font-size: 1.05rem;
}

p {
  margin-bottom: 0;
  color: var(--text-soft);
}

label {
  display: block;
  margin: 0 0 6px;
  color: var(--navy-800);
  font-size: 0.82rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  margin: 0 0 15px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  color: var(--text);
  background: #fff;
  transition: border 150ms ease, box-shadow 150ms ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #9fb5c7;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(8, 121, 209, 0.1);
  outline: none;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--text-soft);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--blue-700);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #9ee9f1;
}

.page {
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
}

.app-body {
  background:
    radial-gradient(circle at 8% 4%, rgba(52, 197, 214, 0.08), transparent 25rem),
    var(--surface-soft);
}

.app-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(219, 228, 236, 0.88);
  padding: 12px max(24px, calc((100vw - 1480px) / 2));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.brand,
.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand > div:last-child,
.auth-brand > div:last-child {
  display: flex;
  flex-direction: column;
}

.brand strong,
.auth-brand strong {
  color: var(--navy-950);
  font-size: 1rem;
}

.brand span,
.auth-brand span {
  color: var(--text-soft);
  font-size: 0.75rem;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, var(--blue-600), var(--cyan-400));
  box-shadow: 0 8px 20px rgba(8, 121, 209, 0.24);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-mark-large {
  width: 50px;
  height: 50px;
  border-radius: 15px;
}

.header-actions,
.user-chip {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 12px;
}

.user-chip {
  gap: 10px;
  border-right: 1px solid var(--border);
  padding-right: 16px;
}

.user-chip > div {
  display: flex;
  flex-direction: column;
}

.user-chip strong {
  color: var(--navy-950);
  font-size: 0.86rem;
}

.user-chip div span {
  color: var(--text-soft);
  font-size: 0.72rem;
}

.user-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--blue-700);
  background: var(--blue-100);
  font-size: 0.86rem;
  font-weight: 900;
}

.header-logout {
  min-height: 38px;
  padding: 8px 14px;
  color: var(--danger);
  background: transparent;
}

.header-logout:hover:not(:disabled) {
  color: #fff;
  background: var(--danger);
  box-shadow: none;
}

.app-main {
  padding-top: 28px;
  padding-bottom: 48px;
}

.overview-panel,
.content-section,
.admin-shell {
  margin-bottom: 24px;
}

.overview-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 15%, rgba(52, 197, 214, 0.28), transparent 23rem),
    linear-gradient(130deg, var(--navy-950), var(--navy-800));
  box-shadow: var(--shadow-md);
}

.overview-panel h1,
.overview-panel p {
  color: #fff;
}

.overview-panel p {
  opacity: 0.72;
}

.overview-panel .eyebrow {
  color: #8be2ec;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.overview-heading {
  align-items: center;
}

.live-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 7px 11px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.76rem;
  font-weight: 700;
}

.live-badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #55d98b;
  box-shadow: 0 0 0 5px rgba(85, 217, 139, 0.12);
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1.45fr repeat(4, minmax(120px, 1fr));
  gap: 12px;
}

.metric-card {
  display: flex;
  min-height: 118px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-md);
  padding: 16px;
  background: rgba(255, 255, 255, 0.07);
}

.metric-card strong {
  margin: 5px 0 3px;
  color: #fff;
  font-size: 1.65rem;
  line-height: 1.12;
}

.metric-card.metric-wide strong {
  font-size: 1rem;
}

.metric-card .metric-role {
  font-size: 1.2rem;
  text-transform: capitalize;
}

.metric-label {
  color: #9ee9f1;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-card small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.7rem;
}

.content-section,
.admin-shell {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.card-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.card-heading p {
  font-size: 0.83rem;
}

.card-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: var(--blue-700);
  background: var(--surface-blue);
  font-size: 1rem;
  font-weight: 900;
}

.admin-tabs {
  position: sticky;
  z-index: 10;
  top: 88px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 0 -8px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}

.admin-tab {
  flex: 0 0 auto;
  color: var(--text-soft);
  background: transparent;
  box-shadow: none;
  font-size: 0.82rem;
}

.admin-tab:hover:not(:disabled) {
  color: var(--navy-900);
  background: var(--surface-soft);
  box-shadow: none;
}

.admin-tab.active {
  color: #fff;
  background: var(--navy-900);
}

.admin-tab.active:hover:not(:disabled) {
  color: #fff;
  background: var(--navy-800);
}

.admin-panel {
  animation: panel-in 180ms ease;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-intro p {
  font-size: 0.88rem;
}

.form-grid,
.catalog-layout,
.email-layout {
  display: grid;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.catalog-layout {
  grid-template-columns: minmax(300px, 0.8fr) minmax(520px, 1.8fr);
}

.email-layout {
  grid-template-columns: minmax(600px, 1.6fr) minmax(320px, 0.8fr);
}

.security-card {
  max-width: 620px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

.option-row,
.button-row,
.form-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.option-row {
  gap: 18px;
  margin-bottom: 16px;
}

.form-footer {
  justify-content: space-between;
  margin-top: 10px;
}

.password-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 15px;
}

.password-row input {
  flex: 1;
  margin-bottom: 0;
}

.password-toggle {
  min-width: 88px;
  padding: 9px 11px;
  font-size: 0.76rem;
}

.checkbox-list {
  max-height: 220px;
  overflow: auto;
  margin-bottom: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px;
  background: var(--surface-soft);
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  border-radius: 7px;
  padding: 8px 9px;
  color: var(--text);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
}

.checkbox-item:hover {
  background: #fff;
}

.checkbox-item input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--blue-700);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.8rem;
}

th,
td {
  border-bottom: 1px solid #e8eef3;
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

th {
  color: #66798a;
  background: var(--surface-soft);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

tbody tr {
  transition: background 140ms ease;
}

tbody tr:hover {
  background: #f8fbfd;
}

td button {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 0.7rem;
}

td button + button {
  margin-left: 4px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--navy-800);
  background: #eaf0f5;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-pill.ok {
  color: var(--success);
  background: var(--success-soft);
}

.status-pill.warn {
  color: var(--warning);
  background: var(--warning-soft);
}

.invite-box {
  margin-top: 14px;
  border: 1px solid #badcf8;
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  color: #175d90;
  background: #ecf7ff;
  font-size: 0.8rem;
  word-break: break-word;
}

.invite-box.error {
  border-color: #f0bab5;
  color: var(--danger);
  background: var(--danger-soft);
}

.error,
.success {
  min-height: 20px;
  margin-top: 8px;
  font-size: 0.82rem;
}

.error {
  color: var(--danger);
}

.success {
  color: var(--success);
}

.invite-item {
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 14px;
  background: var(--surface-soft);
}

.invite-item:last-child {
  margin-bottom: 0;
}

.invite-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.invite-item-header > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.invite-item-header strong {
  color: var(--navy-950);
}

.invite-item-header div span {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 0.75rem;
  text-overflow: ellipsis;
}

.invite-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.invite-meta span {
  display: flex;
  flex-direction: column;
  color: var(--text-soft);
  font-size: 0.72rem;
}

.invite-meta strong {
  color: var(--text);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.invite-link {
  overflow: hidden;
  margin-bottom: 10px;
  border-radius: 6px;
  padding: 8px;
  color: #486478;
  background: #e8eff5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.65rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.report-sidebar {
  min-height: 600px;
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  background: var(--surface-soft);
}

.report-sidebar-label {
  display: block;
  padding: 4px 9px 10px;
  color: var(--text-soft);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-nav-item {
  display: flex;
  width: 100%;
  min-height: auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
  padding: 10px;
  color: var(--text);
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.report-nav-item:hover:not(:disabled) {
  color: var(--navy-900);
  background: #e8f2f9;
  box-shadow: none;
  transform: none;
}

.report-nav-item.active {
  color: #fff;
  background: var(--navy-900);
}

.report-nav-item.active:hover:not(:disabled) {
  color: #fff;
  background: var(--navy-800);
}

.report-nav-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: var(--blue-700);
  background: var(--blue-100);
}

.report-nav-item.active .report-nav-icon {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.report-nav-item > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.report-nav-item strong,
.report-nav-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-nav-item strong {
  font-size: 0.8rem;
}

.report-nav-item small {
  opacity: 0.65;
  font-size: 0.66rem;
}

.report-view {
  min-width: 0;
  padding: 16px;
}

.report-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.report-view-header h3 {
  margin-bottom: 0;
}

.report-external-link {
  flex: 0 0 auto;
  border-radius: 8px;
  padding: 8px 11px;
  color: var(--blue-700);
  background: var(--surface-blue);
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
}

.report-frame {
  width: 100%;
  height: 75vh;
  min-height: 580px;
  border: 0;
  border-radius: 10px;
  background: #eef2f5;
}

.empty-state {
  display: grid;
  min-height: 300px;
  place-items: center;
  align-content: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
}

.empty-state > span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 16px;
  color: var(--blue-700);
  background: var(--surface-blue);
  font-size: 1.3rem;
}

.empty-state h3 {
  margin-bottom: 5px;
}

.app-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding: 20px max(24px, calc((100vw - 1480px) / 2));
  color: var(--text-soft);
  background: #fff;
  font-size: 0.72rem;
}

.auth-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 82% 15%, rgba(52, 197, 214, 0.12), transparent 28rem),
    #edf3f8;
}

.auth-shell {
  display: grid;
  width: min(1080px, 100%);
  min-height: 650px;
  grid-template-columns: 1.1fr 0.9fr;
  overflow: hidden;
  border: 1px solid rgba(11, 36, 64, 0.08);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(7, 26, 47, 0.18);
}

.auth-visual {
  display: flex;
  position: relative;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 22%, rgba(52, 197, 214, 0.38), transparent 18rem),
    linear-gradient(145deg, var(--navy-950), var(--navy-800));
}

.auth-visual::after {
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 45px rgba(255, 255, 255, 0.035),
    0 0 0 90px rgba(255, 255, 255, 0.025);
  content: "";
}

.auth-brand {
  position: relative;
  z-index: 1;
}

.auth-brand strong,
.auth-brand span {
  color: #fff;
}

.auth-brand span {
  opacity: 0.62;
}

.auth-copy {
  position: relative;
  z-index: 1;
  max-width: 480px;
}

.auth-copy h1 {
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
}

.auth-copy p {
  max-width: 410px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

.auth-features {
  display: flex;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  gap: 12px 20px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.75rem;
  font-weight: 700;
}

.auth-features span {
  margin-right: 5px;
  color: #72e1a2;
}

.auth-card-wrap {
  display: grid;
  place-items: center;
  padding: 42px;
}

.auth-card {
  width: min(380px, 100%);
}

.auth-card-heading {
  margin-bottom: 26px;
}

.auth-card-heading h2 {
  margin-bottom: 8px;
  font-size: 2rem;
}

.auth-card-heading p,
.auth-help {
  color: var(--text-soft);
  font-size: 0.8rem;
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
}

.auth-help {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  text-align: center;
}

@media (max-width: 1180px) {
  .metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric-wide {
    grid-column: span 2;
  }

  .catalog-layout,
  .email-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .page {
    width: min(100% - 24px, 1480px);
  }

  .app-header {
    padding: 10px 14px;
  }

  .brand span,
  .user-chip div span {
    display: none;
  }

  .form-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .report-workspace {
    grid-template-columns: 1fr;
  }

  .report-sidebar {
    display: flex;
    min-height: auto;
    gap: 6px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .report-sidebar-label {
    display: none;
  }

  .report-nav-item {
    min-width: 190px;
    margin-bottom: 0;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 300px;
    padding: 28px;
  }

  .auth-copy h1 {
    font-size: 2.6rem;
  }

  .auth-features {
    display: none;
  }
}

@media (max-width: 620px) {
  .app-header {
    min-height: 64px;
  }

  .brand > div:last-child,
  .user-chip > div {
    display: none;
  }

  .user-chip {
    border-right: 0;
    padding-right: 0;
  }

  .app-main {
    padding-top: 14px;
  }

  .overview-panel,
  .content-section,
  .admin-shell {
    border-radius: 16px;
    padding: 18px;
  }

  .overview-heading {
    align-items: flex-start;
  }

  .live-badge {
    display: none;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-wide {
    grid-column: span 2;
  }

  .metric-card {
    min-height: 100px;
  }

  .admin-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    top: 72px;
    overflow: visible;
  }

  .admin-tab {
    width: 100%;
    min-height: 44px;
    padding: 8px;
    white-space: normal;
  }

  .card {
    padding: 17px;
  }

  .button-row > button,
  .form-footer > button {
    width: 100%;
  }

  .report-view {
    padding: 10px;
  }

  .report-view-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-frame {
    height: 68vh;
    min-height: 500px;
  }

  .app-footer {
    padding: 16px;
  }

  .auth-body {
    padding: 12px;
  }

  .auth-shell {
    min-height: auto;
    border-radius: 20px;
  }

  .auth-visual {
    min-height: 230px;
    padding: 22px;
  }

  .auth-copy h1 {
    margin-bottom: 10px;
    font-size: 2.05rem;
  }

  .auth-copy p {
    font-size: 0.83rem;
  }

  .auth-card-wrap {
    padding: 28px 22px;
  }

  .password-row {
    align-items: stretch;
  }

  .password-toggle {
    min-width: 78px;
  }
}
