:root {
  --navy: #071a33;
  --navy-2: #0b2f60;
  --blue: #1463ff;
  --blue-dark: #0a4bcc;
  --cyan: #58d8ff;
  --ink: #172033;
  --muted: #64748b;
  --line: #dfe7f2;
  --bg: #f6f9fd;
  --white: #fff;
  --danger: #c93636;
  --success: #087a55;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: auto; }

header { background: var(--navy); color: #fff; }
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; max-width: 100%; line-height: 0; align-items: center; }
.brand-logo { display: block; width: 96px; height: auto; max-width: 100%; border-radius: 8px; }
.sidebar .brand-logo { width: 140px; }
.auth-card .brand-logo { width: 138px; }
.footer-brand .brand-logo { width: 118px; }
.navlinks { display: flex; gap: 24px; align-items: center; }
.navlinks > a:not(.button) { color: #d5e1f2; }
.navlinks > a:not(.button):hover { color: #fff; }

.button {
  display: inline-flex;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.button:hover { background: var(--blue-dark); transform: translateY(-1px); }
.button.ghost { background: transparent; border: 1px solid #ffffff55; }
.button.ghost:hover { background: #ffffff12; }
.button.light { background: #fff; color: var(--navy); }
.button.danger { background: var(--danger); }
.button.secondary { background: #e9f0f8; color: var(--navy); }
.button.secondary:hover { background: #dce8f5; }
.button.small { min-height: 34px; padding: 6px 11px; font-size: 13px; }
.button.full { width: 100%; }

.hero {
  padding: 92px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, #1c68c980 0, transparent 34%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
}
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 64px; align-items: center; }
.hero h1 { margin: 12px 0 22px; font-size: clamp(42px, 6vw, 70px); line-height: 1.08; letter-spacing: -.04em; }
.hero p { max-width: 690px; margin: 0; color: #c7d8f2; font-size: 19px; }
.eyebrow { color: var(--cyan); font-size: 12px; font-weight: 850; letter-spacing: .16em; }
.eyebrow.dark { color: var(--blue); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-panel {
  padding: 8px;
  border: 1px solid #ffffff24;
  border-radius: 22px;
  background: #071a3390;
  box-shadow: 0 30px 80px #0000002b;
  backdrop-filter: blur(14px);
}
.hero-panel div { display: grid; grid-template-columns: 42px 1fr; padding: 20px; border-bottom: 1px solid #ffffff18; align-items: center; }
.hero-panel div:last-child { border-bottom: 0; }
.hero-panel span { grid-row: span 2; color: var(--cyan); font-size: 13px; font-weight: 800; }
.hero-panel strong { font-size: 19px; }
.hero-panel small { color: #9fb5d3; }

section { padding: 72px 0; }
.compact-section { padding: 22px 0; }
.section-title { margin: 10px 0 12px; font-size: clamp(30px, 4vw, 42px); line-height: 1.2; letter-spacing: -.03em; }
.lead { margin: 0 0 32px; color: var(--muted); }
.section-tint { background: #edf4fc; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 35px #1122440d;
}
.card h2, .card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #0753cc;
  font-size: 13px;
  font-weight: 750;
}
.notice { margin: 24px 0 0; color: var(--muted); text-align: center; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.feature-list { display: grid; gap: 12px; }
.feature-list div { display: grid; gap: 3px; padding: 20px 22px; border-left: 4px solid var(--blue); background: #fff; border-radius: 0 12px 12px 0; }
.feature-list span { color: var(--muted); }
.cta { display: flex; justify-content: space-between; gap: 32px; align-items: center; padding: 44px; border-radius: 22px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; }
.cta h2 { margin: 8px 0; font-size: 34px; }
.cta p { margin: 0; color: #c7d8f2; }

.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.sidebar { display: flex; flex-direction: column; min-width: 0; padding: 26px; background: var(--navy); color: #fff; }
.sidebar nav { display: grid; gap: 10px; margin-top: 24px; }
.sidebar nav a { padding: 10px 12px; border-radius: 8px; color: #cad6e8; }
.sidebar nav a.active, .sidebar nav a:hover { background: #ffffff17; color: #fff; }
.sidebar-nav-group { display: grid; gap: 4px; padding: 6px 5px; border: 1px solid transparent; border-radius: 12px; }
.sidebar-nav-group.active { border-color: #ffffff16; background: #ffffff09; }
.sidebar-nav-heading { padding: 5px 7px 3px; color: #7f9abc; font-size: 11px; font-weight: 850; letter-spacing: .08em; }
.sidebar-nav-group.active .sidebar-nav-heading { color: #fff; }
.sidebar-submenu { display: grid; gap: 3px; }
.sidebar nav .sidebar-submenu a { padding: 7px 10px 7px 22px; color: #9fb5d3; font-size: 13px; }
.sidebar nav .sidebar-submenu a::before { content: "·"; margin-right: 7px; color: #58d8ff; }
.sidebar nav .sidebar-submenu a.active, .sidebar nav .sidebar-submenu a:hover { background: #ffffff17; color: #fff; }
.sidebar-user { margin: 26px 0 0; color: #fff; font-weight: 700; overflow-wrap: anywhere; }
.sidebar-user small { display: block; color: #91a8c7; font-size: 12px; font-weight: 400; }
.sidebar-logout { margin-top: auto; padding-top: 24px; }
.link-button { padding: 8px 0; border: 0; background: none; color: #9fb5d3; cursor: pointer; }
.link-button:hover { color: #fff; }
.main { min-width: 0; padding: 38px; }
.main > h1 { margin-bottom: 4px; font-size: clamp(30px, 4vw, 42px); letter-spacing: -.03em; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat strong { display: block; font-size: 30px; }
.stat span { color: var(--muted); }

table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
th, td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { background: #f0f5fb; color: #3a4960; font-size: 13px; white-space: nowrap; }
td { font-size: 14px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }
.table-scroll table { border-radius: 0; }
.table-scroll tr:last-child td { border-bottom: 0; }
code { padding: 2px 6px; border-radius: 5px; background: #edf2f8; overflow-wrap: anywhere; }
pre { overflow-x: auto; margin-bottom: 0; padding: 18px; border-radius: 12px; background: #101d31; color: #d9e9ff; }
pre code { padding: 0; background: transparent; }
.text-link { color: var(--blue); font-weight: 700; }

form label { display: grid; gap: 7px; color: #334158; font-size: 14px; font-weight: 700; }
form label small { color: var(--muted); font-size: 12px; font-weight: 500; }
input, select, textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #cfd9e7;
  border-radius: 9px;
  outline: none;
  background: #fff;
  color: var(--ink);
}
input, select { min-height: 44px; }
textarea { min-height: 90px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #1463ff18; }
.inline-form { display: grid; grid-template-columns: minmax(220px, 420px) auto; gap: 12px; align-items: end; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: end; }
.full-field { grid-column: 1 / -1; }
.connector-fields { min-width: 0; margin: 4px 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #f8fbff; }
.connector-fields legend { padding: 0 8px; color: var(--ink); font-weight: 800; }
.connector-fields > .muted { margin-top: 0; }
.form-wide { grid-column: 1 / -1; }
.code-input {
  font: 13px/1.55 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  tab-size: 2;
}
.check-row {
  display: flex;
  grid-template-columns: none;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}
.check-row input { width: 18px; min-height: 18px; margin: 0; }
.page-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.page-heading h1 { margin: 0 0 4px; font-size: clamp(30px, 4vw, 42px); letter-spacing: -.03em; }
.page-heading .lead { margin-bottom: 0; }
.page-heading .actions { margin-top: 0; }
.heading-actions, .action-row, .table-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filter-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 360px));
  gap: 14px;
  margin: 24px 0 8px;
  align-items: end;
}
.migration-guide { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
.collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.collection-card { min-width: 0; }
.collection-card-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.collection-card-head h3 { margin: 8px 0 0; }
.asset-preview { display: block; margin: 18px 0; border-radius: 12px; overflow: hidden; background: #eaf0f7; }
.asset-preview img { display: block; width: 100%; height: 240px; object-fit: cover; }
.compact-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 18px 0; }
.compact-meta div { padding: 10px 12px; border-radius: 9px; background: #f3f7fc; }
.compact-meta dt { color: var(--muted); font-size: 11px; font-weight: 750; }
.compact-meta dd { margin: 2px 0 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 700; }
.collection-card details { margin-top: 14px; }
.collection-card summary { cursor: pointer; color: var(--blue); font-weight: 700; }
.collection-card pre { max-height: 320px; font-size: 12px; }
.review-note { margin: 14px 0; padding: 12px; border-left: 3px solid var(--blue); background: #f1f6fc; font-size: 13px; }
.review-form { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.section-heading-row { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.section-heading-row h2 { margin: 0 0 16px; }
.billing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 22px 0 34px; align-items: start; }
.billing-wide { grid-column: 1 / -1; }
.mini-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.section-heading { margin: 38px 0 12px; }
.checkbox-fieldset { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.checkbox-fieldset legend { padding: 0 7px; color: #334158; font-size: 14px; font-weight: 750; }
.checkbox-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.company-filter { grid-template-columns: minmax(260px, 1fr) minmax(180px, 280px) auto; }
.usage-filter { grid-template-columns: repeat(3, minmax(180px, 260px)) auto; }
.company-dialog {
  width: min(1120px, calc(100% - 30px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 100px #06152f55;
}
.company-dialog::backdrop { background: #071a33a6; backdrop-filter: blur(3px); }
.dialog-heading {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.dialog-heading h2 { margin: 0; }
.dialog-close { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #edf2f8; color: var(--navy); cursor: pointer; font-size: 25px; line-height: 1; }
#company-detail-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 24px; }
.dialog-actions { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: 9px; }
.dialog-section { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fbfdff; }
.dialog-section.table-section { grid-column: 1 / -1; }
.dialog-section h3 { margin: 0 0 14px; }
.detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.detail-list div { min-width: 0; padding: 10px 12px; border-radius: 9px; background: #f0f5fb; }
.detail-list dt { color: var(--muted); font-size: 11px; font-weight: 750; }
.detail-list dd { margin: 3px 0 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 700; white-space: pre-line; }
.empty-copy { margin: 0; color: var(--muted); }
.form-section-heading { grid-column: 1 / -1; margin: 14px 0 0; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 17px; }
.form-section-heading:first-of-type { margin-top: 0; }
.form-actions { grid-column: 1 / -1; }
.card-description { margin: -4px 0 22px; color: var(--muted); }
.stack-form { display: grid; gap: 16px; }
.security-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.security-full { grid-column: 1 / -1; }
.security-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.security-heading h2 { margin-bottom: 8px; }
.security-heading .card-description { margin-bottom: 0; }
.security-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.security-meta div { padding: 16px; border-radius: 12px; background: #f3f7fc; }
.security-meta dt { color: var(--muted); font-size: 12px; font-weight: 700; }
.security-meta dd { margin: 4px 0 0; font-weight: 750; }
.reauth-box { display: grid; gap: 14px; padding: 16px; border: 1px solid #d7e2ef; border-radius: 12px; background: #f7faff; }
.reauth-box > strong { font-size: 14px; }
.reauth-inline { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(180px, .7fr) auto; gap: 14px; align-items: end; }
.otp-replacement { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(280px, 1.25fr); gap: 32px; align-items: center; }
.otp-replacement .otp-qrcode { margin-bottom: 14px; }
.otp-replacement h3 { margin-top: 0; }
.security-note { color: var(--muted); font-size: 14px; }
.cancel-form { margin-top: 10px; }
.auth-page { display: grid; min-height: 100vh; padding: 24px; place-items: center; background: linear-gradient(145deg, #edf4fc, #f9fbfe); }
.auth-card { width: min(440px, 100%); padding: 36px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 24px 70px #10213b1a; }
.auth-card.otp-setup-card { width: min(560px, 100%); }
.auth-card h1 { margin: 28px 0 6px; }
.auth-card form { display: grid; gap: 16px; }
.dark-brand { color: var(--navy); }
.auth-note { margin: 24px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.otp-steps { margin: 0 0 22px; padding-left: 22px; color: #334158; font-size: 14px; }
.otp-steps li + li { margin-top: 7px; }
.otp-qrcode {
  display: grid;
  width: min(260px, 100%);
  min-height: 260px;
  margin: 0 auto 18px;
  padding: 12px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--muted);
  text-align: center;
}
.otp-qrcode svg { display: block; width: 100%; height: auto; }
.otp-manual-key { margin-bottom: 22px; padding: 14px; border-radius: 12px; background: #f1f6fc; text-align: center; }
.otp-manual-key span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 750; }
.otp-manual-key code { display: block; padding: 0; background: transparent; color: var(--navy); font-size: 15px; font-weight: 800; letter-spacing: .08em; }
.auth-card .auth-restart-form { margin-top: 16px; }
.auth-restart { padding: 4px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; text-align: center; }
.auth-restart:hover { color: var(--blue); }
.alert { display: grid; gap: 7px; margin: 18px 0; padding: 15px 17px; border-radius: 10px; }
.alert.error { border: 1px solid #f1c5c5; background: #fff1f1; color: #8d2424; }
.alert.success { border: 1px solid #b9e2d2; background: #ecfbf5; color: #075d42; }
.secret-key { display: block; padding: 11px; background: #fff; color: #19365a; }
.status { display: inline-block; padding: 3px 8px; border-radius: 999px; background: #e9eef5; color: #4c5b70; font-size: 12px; font-weight: 750; }
.status.active, .status.completed, .status.trial { background: #e4f8ef; color: var(--success); }
.status.revoked, .status.blocked, .status.failed, .status.cancelled { background: #fdeaea; color: var(--danger); }
.status.pending, .status.draft, .status.queued { background: #fff4d7; color: #8b6100; }
.status.allowed, .status.approved, .status.cleared { background: #e4f8ef; color: var(--success); }
.status.conditional, .status.review, .status.unreviewed { background: #fff4d7; color: #8b6100; }
.status.restricted, .status.rejected { background: #fdeaea; color: var(--danger); }
.status.paused { background: #eef1f5; color: #536176; }
.status.prospect, .status.requested, .status.configuring, .status.past_due { background: #fff4d7; color: #8b6100; }
.status.published, .status.paid { background: #e4f8ef; color: var(--success); }
.status.suspended, .status.closed, .status.retired, .status.hidden, .status.refunded { background: #eef1f5; color: #536176; }
.status.failed { background: #fdeaea; color: var(--danger); }
.status.open, .status.in_progress, .status.waiting_client, .status.reviewing { background: #fff4d7; color: #8b6100; }
.status.resolved { background: #e4f8ef; color: var(--success); }
.status.archived { background: #eef1f5; color: #536176; }
.status.urgent, .status.high { background: #fdeaea; color: var(--danger); }
.status.warning { background: #fff4d7; color: #8b6100; }
.status.critical { background: #fdeaea; color: var(--danger); }
.request-list { display: grid; gap: 20px; }
.request-card { min-width: 0; }
.request-card .review-note p { margin: 5px 0 14px; }
.service-card-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.service-card-head h2 { margin: 8px 0 0; }
.message-list { display: grid; gap: 12px; margin: 24px 0; }
.message { max-width: 85%; padding: 16px; border-radius: 14px; background: #f0f5fb; }
.message.admin { margin-left: auto; background: #e8f1ff; }
.message.internal { border: 1px dashed #d09a2c; background: #fff9e9; }
.message header { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }
.message p { margin: 8px 0 0; }
.reply-form { padding-top: 20px; border-top: 1px solid var(--line); }
.member-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.member-tabs a { display: inline-flex; gap: 8px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; align-items: center; background: #fff; color: var(--muted); font-weight: 750; }
.member-tabs a.active, .member-tabs a:hover { border-color: var(--blue); background: #edf4ff; color: var(--blue); }
.member-tabs strong { display: inline-grid; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; place-items: center; background: #e7eef8; color: var(--navy); font-size: 12px; }
.member-actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 190px; }
.button.warning { background: #946200; }
.plan-card { max-width: 860px; }
.plan-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.plan-metrics div { padding: 16px; border-radius: 12px; background: #f3f7fc; }
.plan-metrics strong, .plan-metrics span { display: block; }
.plan-metrics strong { font-size: 22px; }
.plan-metrics span { color: var(--muted); font-size: 13px; }
.empty-state { max-width: 680px; text-align: center; }
.site-service-grid { margin-top: 12px; }
.check-card { display: flex; min-width: 0; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; align-items: flex-start; background: #fff; }
.check-card input { width: auto; margin-top: 3px; }
.check-card span, .check-card strong, .check-card small { display: block; min-width: 0; }
.check-card small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.health-stats .stat { position: relative; }
.health-stats .stat .status { margin-top: 10px; justify-self: start; }
.health-issues { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.health-issues li { display: flex; gap: 10px; align-items: center; }
.statistics-checked, .statistics-db-connection { color: var(--muted); font-size: 13px; font-weight: 700; }
.statistics-capacity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 24px 0 18px; }
.capacity-card { min-width: 0; }
.capacity-heading { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.capacity-heading span { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .09em; }
.capacity-heading strong { font-size: clamp(20px, 2.2vw, 29px); letter-spacing: -.03em; }
.capacity-bar, .capacity-split { display: flex; height: 12px; margin: 24px 0 13px; overflow: hidden; border-radius: 999px; background: #e8eef6; }
.capacity-bar span { display: block; min-width: 2px; max-width: 100%; border-radius: inherit; background: linear-gradient(90deg, #1463ff, #38a3ff); }
.capacity-split span { display: block; background: #1463ff; }
.capacity-split i { display: block; background: #75b7ff; }
.capacity-meta { display: flex; flex-wrap: wrap; gap: 9px 15px; align-items: center; color: var(--muted); font-size: 12px; }
.capacity-meta b { margin-left: auto; color: var(--navy); }
.statistics-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 18px 0 24px; }
.statistics-two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 24px 0; align-items: start; }
.statistics-summary-card { min-width: 0; }
.statistics-summary-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.statistics-summary-list div { padding: 14px; border-radius: 11px; background: #f3f7fc; }
.statistics-summary-list dt { color: var(--muted); font-size: 12px; font-weight: 750; }
.statistics-summary-list dd { margin: 4px 0 0; color: var(--navy); font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.statistics-summary-list dd small { color: var(--muted); font-size: 11px; }
.statistics-tables > .card { min-width: 0; }
.statistics-tables table { min-width: 620px; }
.danger-text { color: var(--danger); }

footer { padding: 28px 0; background: var(--navy); color: #9db0ca; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; align-items: center; }

@media (max-width: 900px) {
  .hero-layout, .split { grid-template-columns: 1fr; gap: 38px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: block; padding: 20px; }
  .sidebar nav { display: flex; margin-top: 18px; overflow-x: auto; }
  .sidebar nav a { white-space: nowrap; }
  .sidebar-nav-group { min-width: max-content; }
  .sidebar-submenu { display: flex; }
  .sidebar nav .sidebar-submenu a { padding-left: 10px; }
  .sidebar-user { margin: 14px 0 0; }
  .sidebar-logout { position: absolute; top: 18px; right: 20px; padding: 0; }
  .security-grid, .otp-replacement { grid-template-columns: 1fr; }
  .collection-grid { grid-template-columns: 1fr; }
  .dashboard-grid, .billing-grid { grid-template-columns: 1fr; }
  .statistics-capacity-grid, .statistics-two-column { grid-template-columns: 1fr; }
  .billing-wide { grid-column: auto; }
  #company-detail-content { grid-template-columns: 1fr; }
  .dialog-section.table-section { grid-column: auto; }
  .checkbox-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-heading { flex-direction: column; }
  .security-full { grid-column: auto; }
  .message { max-width: 100%; }
  .reauth-inline { grid-template-columns: 1fr 1fr; }
  .reauth-inline .button { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .wrap { width: min(100% - 28px, 1120px); }
  .nav .brand-logo { width: 82px; }
  .navlinks > a:not(.button) { display: none; }
  .hero { padding: 68px 0; }
  .grid, .stats, .form-grid, .plan-metrics, .security-meta, .reauth-inline, .filter-bar, .mini-form-grid, .checkbox-grid, .detail-list, .statistics-summary-list { grid-template-columns: 1fr; }
  .form-section-heading, .form-actions, .form-wide, .reauth-inline .button { grid-column: auto; }
  .inline-form { grid-template-columns: 1fr; }
  .main { padding: 24px 18px; }
  .cta, .footer-row { align-items: flex-start; flex-direction: column; }
  .cta { padding: 30px 24px; }
  .auth-card { padding: 28px 22px; }
}
