/* =====================================================================
   ESGTrack Design System — v3 (Enterprise)
   Denser, flatter, self-hosted fonts only (no external CDN — enterprise
   IT/security teams commonly block third-party font CDNs). Built for
   people who use this 6+ hours a day, not a marketing site.
   ===================================================================== */

:root {
  /* Brand — restrained, used mostly for actions and status, not decoration */
  --color-primary: #0f6e46;
  --color-primary-dark: #0b5535;
  --color-primary-light: #e3f3ea;
  --color-accent: #2f6fed;
  --color-ink: #0d2b1f;

  /* Semantic */
  --color-success: #0f6e46;
  --color-success-bg: #e3f3ea;
  --color-warning: #9a6318;
  --color-warning-bg: #fbf0dc;
  --color-danger: #b3261e;
  --color-danger-bg: #fbe9e7;
  --color-info: #2f6fed;
  --color-info-bg: #eaf1ff;

  /* Neutrals */
  --color-bg: #f2f4f6;
  --color-surface: #ffffff;
  --color-surface-alt: #f8f9fb;
  --color-border: #dde2e7;
  --color-border-strong: #c7ced6;
  --color-text: #1a222c;
  --color-text-muted: #626d7a;
  --color-sidebar-bg: #0e2419;
  --color-sidebar-bg-2: #132a1f;
  --color-sidebar-text: #a3bdae;
  --color-sidebar-active: #0f6e46;

  /* Layout — tighter than a consumer app */
  --sidebar-width: 232px;
  --topbar-height: 50px;
  --breadcrumb-height: 34px;
  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 2px 10px rgba(16, 24, 40, 0.10);
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Iowan Old Style", "Times New Roman", ui-serif, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-base);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 13px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4,h5 { margin: 0 0 3px; font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0 0 8px; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.icon-svg { flex-shrink: 0; vertical-align: middle; }

/* ---------- Layout shell ---------- */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, var(--color-sidebar-bg) 0%, var(--color-sidebar-bg-2) 100%);
  color: var(--color-sidebar-text);
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 100;
  transition: transform .2s ease;
  border-right: 1px solid rgba(255,255,255,0.06);
}

/* RTL layout — the sidebar and main content area are positioned with
   fixed left/right offsets and margins, which the browser's automatic
   text-direction handling does NOT flip on its own; these are the
   structural overrides that make an RTL locale genuinely usable rather
   than just reading right-to-left inside a layout still visually built
   for left-to-right. */
[dir="rtl"] .sidebar { left: auto; right: 0; border-right: none; border-left: 1px solid rgba(255,255,255,0.06); }
[dir="rtl"] .main-wrap { margin-left: 0; margin-right: var(--sidebar-width); }
[dir="rtl"] .notif-panel, [dir="rtl"] .pa-notif-panel { right: auto; left: 0; }
@media (max-width: 992px) {
  [dir="rtl"] .main-wrap { margin-right: 0; }
}
.sidebar-brand {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px;
  color: #fff; font-weight: 700; font-size: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-brand .dot { width: 8px; height: 8px; border-radius: 50%; background: #4fd68c; }
.sidebar-nav { padding: 8px 8px; }
.sidebar-section-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: .07em; font-weight: 600;
  color: #5c7669; padding: 12px 10px 4px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 9px;
  padding: 6.5px 10px; border-radius: var(--radius-sm);
  font-size: 12.5px; font-weight: 500; margin-bottom: 1px; color: var(--color-sidebar-text);
  border-left: 2px solid transparent;
}
.sidebar-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.sidebar-link.active { background: rgba(15, 110, 70, 0.32); color: #fff; border-left-color: #4fd68c; font-weight: 600; }
.sidebar-link .icon-svg { opacity: 0.85; flex-shrink: 0; width: 15px; height: 15px; }
.sidebar-link.active .icon-svg { opacity: 1; }

.main-wrap { margin-left: var(--sidebar-width); flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: var(--topbar-height);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; position: sticky; top: 0; z-index: 50;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.hamburger { display: none; background: none; border: none; font-size: 18px; color: var(--color-text); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-user { display: flex; align-items: center; gap: 7px; font-size: 12.5px; }
.avatar {
  width: 27px; height: 27px; border-radius: 50%; background: var(--color-primary-light);
  color: var(--color-primary-dark); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 11.5px;
}

/* ---------- Breadcrumb bar (point 3) ---------- */
.breadcrumb-bar {
  height: var(--breadcrumb-height);
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border);
  display: flex; align-items: center; padding: 0 16px; gap: 6px;
  font-size: 12px; color: var(--color-text-muted);
  overflow-x: auto; white-space: nowrap;
}
.breadcrumb-bar a { color: var(--color-text-muted); }
.breadcrumb-bar a:hover { color: var(--color-primary); text-decoration: underline; }
.breadcrumb-bar .crumb-current { color: var(--color-text); font-weight: 600; }
.breadcrumb-bar .crumb-sep { color: #b7c0c9; }

/* ---------- Entity / location switcher (point 3) ---------- */
.entity-switcher { position: relative; }
.entity-switcher-btn {
  display: flex; align-items: center; gap: 6px; padding: 5px 10px;
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  background: var(--color-surface-alt); font-size: 12px; font-weight: 600; color: var(--color-text);
}
.entity-switcher-btn:hover { background: #eef1f4; }
.entity-switcher-menu {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); z-index: 60; overflow: hidden;
}
.entity-switcher.open .entity-switcher-menu { display: block; }
.entity-switcher-menu .es-label { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-muted); padding: 8px 12px 4px; font-weight: 700; }
.entity-switcher-menu a { display: flex; align-items: center; justify-content: space-between; padding: 7px 12px; font-size: 12.5px; color: var(--color-text); }
.entity-switcher-menu a:hover { background: var(--color-surface-alt); }
.entity-switcher-menu a.active { color: var(--color-primary); font-weight: 600; }

/* ---------- Notifications dropdown ---------- */
.notif-trigger { position: relative; cursor: pointer; display: inline-flex; color: var(--color-text-muted); }
.notif-dot { position: absolute; top: -3px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--color-danger); border: 1.5px solid #fff; }
.notif-panel {
  display: none; position: absolute; top: calc(100% + 8px); right: 0; width: 340px; max-height: 420px; overflow-y: auto;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); z-index: 70;
}
.notif-panel.open { display: block; }
.notif-panel-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--color-border); font-size: 12.5px; font-weight: 700; }
.notif-item { display: block; padding: 10px 14px; border-bottom: 1px solid var(--color-border); font-size: 12.5px; color: var(--color-text); }
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--color-surface-alt); }
.notif-item.unread { background: #f0f8f3; }
.notif-item .notif-title { font-weight: 600; margin-bottom: 2px; }
.notif-item .notif-message { color: var(--color-text-muted); }
.notif-item .notif-time { color: var(--color-text-muted); font-size: 11px; margin-top: 3px; }
.notif-empty { padding: 24px 14px; text-align: center; color: var(--color-text-muted); font-size: 12.5px; }

/* ---------- Profile dropdown ---------- */
.profile-trigger { position: relative; cursor: pointer; }
.profile-menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); z-index: 70; overflow: hidden;
}
.profile-menu.open { display: block; }
.profile-menu-header { padding: 10px 14px; border-bottom: 1px solid var(--color-border); }
.profile-menu-header .pm-name { font-weight: 700; font-size: 13px; }
.profile-menu-header .pm-role { font-size: 11.5px; color: var(--color-text-muted); }
.profile-menu a { display: flex; align-items: center; gap: 8px; padding: 9px 14px; font-size: 12.5px; color: var(--color-text); }
.profile-menu a:hover { background: var(--color-surface-alt); }

.page-content { padding: 16px; flex: 1; min-width: 0; }
.page-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.page-header h1 { font-size: 17px; }
.page-header .subtitle { color: var(--color-text-muted); font-size: 12px; }

.sidebar-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 99;
}

/* ---------- Grid ---------- */
.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* ---------- Card component — flat, bordered, no soft shadow by default ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  box-shadow: none;
}
.card-title { font-size: 12px; color: var(--color-text-muted); font-weight: 600; margin-bottom: 6px; }
.card-flat { border: none; }

/* ---------- KPI stat card ---------- */
.stat-card { display: flex; flex-direction: column; gap: 4px; }
.stat-value { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.stat-trend { font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.stat-trend.up { color: var(--color-success); }
.stat-trend.down { color: var(--color-danger); }
.progress-track { height: 5px; border-radius: 3px; background: var(--color-border); overflow: hidden; margin-top: 6px; }
.progress-fill { height: 100%; background: var(--color-primary); border-radius: 3px; }
.progress-fill.warn { background: var(--color-warning); }
.progress-fill.danger { background: var(--color-danger); }

/* Hero stat — flat, bordered, colored left rail instead of a decorative
   gradient. This is the enterprise KPI-card pattern (Workday/SAP Fiori
   style): the emphasis comes from scale and a rail accent, not from
   illustration. */
.stat-hero {
  border-left: 3px solid var(--color-primary);
  background: var(--color-surface);
}
.stat-hero .stat-value { font-size: 30px; }
.stat-hero .stat-sub { color: var(--color-text-muted); font-size: 11.5px; }

.accent-ember { color: #9a5220; }

/* ---------- Badge ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--radius-sm); font-size: 11px; font-weight: 700; }
.badge-success { background: var(--color-success-bg); color: var(--color-success); }
.badge-warning { background: var(--color-warning-bg); color: var(--color-warning); }
.badge-danger  { background: var(--color-danger-bg); color: var(--color-danger); }
.badge-info    { background: var(--color-info-bg); color: var(--color-info); }
.badge-neutral { background: #edf0f2; color: var(--color-text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--radius-sm); font-size: 12.5px; font-weight: 600;
  border: 1px solid transparent; transition: background .1s ease; white-space: nowrap;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-secondary { background: #fff; border-color: var(--color-border-strong); color: var(--color-text); }
.btn-secondary:hover { background: var(--color-surface-alt); }
.btn-danger { background: var(--color-danger); color: #fff; }
.btn-outline-danger { background: #fff; color: var(--color-danger); border-color: var(--color-danger); }
.btn-sm { padding: 4px 10px; font-size: 11.5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 12px; }
.form-label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 5px; color: var(--color-text); }
.form-label .req { color: var(--color-danger); }
.form-control {
  width: 100%; padding: 7px 10px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm);
  font-size: 12.5px; background: #fff; color: var(--color-text);
}
.form-control:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-light); }
.form-hint { font-size: 11px; color: var(--color-text-muted); margin-top: 3px; }
.form-error { font-size: 11px; color: var(--color-danger); margin-top: 3px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.input-icon-wrap { position: relative; }
.input-icon-wrap .form-control { padding-right: 36px; }
.input-icon-wrap .icon-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--color-text-muted); }

/* File upload dropzone */
.dropzone {
  border: 1.5px dashed var(--color-border-strong); border-radius: var(--radius-md);
  padding: 22px 14px; text-align: center; color: var(--color-text-muted); cursor: pointer;
  background: var(--color-surface-alt); transition: border-color .15s;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--color-primary); background: var(--color-primary-light); }
.dropzone .dz-icon { margin-bottom: 6px; display: flex; justify-content: center; }
.file-chip {
  display: inline-flex; align-items: center; gap: 7px; background: var(--color-info-bg);
  color: var(--color-info); padding: 4px 9px; border-radius: var(--radius-sm); font-size: 11.5px; margin-top: 6px;
}

/* ---------- Table — dense, sticky header, ready for the datatable JS enhancer ---------- */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.data-table th {
  text-align: left; padding: 7px 10px; background: var(--color-surface-alt); color: var(--color-text-muted);
  font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .02em;
  border-bottom: 1px solid var(--color-border); white-space: nowrap;
  position: sticky; top: 0; z-index: 2;
}
table.data-table th.sortable { cursor: pointer; user-select: none; }
table.data-table th.sortable:hover { color: var(--color-text); }
table.data-table th .sort-arrow { display: inline-block; width: 10px; opacity: 0.4; font-size: 10px; }
table.data-table th.sort-asc .sort-arrow, table.data-table th.sort-desc .sort-arrow { opacity: 1; color: var(--color-primary); }
table.data-table td { padding: 7px 10px; border-bottom: 1px solid var(--color-border); white-space: nowrap; }
table.data-table tr:hover td { background: var(--color-surface-alt); }
table.data-table td.col-checkbox, table.data-table th.col-checkbox { width: 30px; }

/* Data table toolbar: search + filters + export + bulk actions (point 2) */
.dt-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.dt-search-wrap { position: relative; min-width: 220px; flex: 1; max-width: 320px; }
.dt-search-wrap .icon-svg { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); color: var(--color-text-muted); }
.dt-search { padding-left: 30px; }
.dt-actions { display: flex; gap: 8px; align-items: center; }
.dt-bulkbar {
  display: none; align-items: center; gap: 10px; background: var(--color-ink); color: #fff;
  padding: 8px 12px; border-radius: var(--radius-md); font-size: 12px; margin-bottom: 10px;
}
.dt-bulkbar.show { display: flex; }
.dt-bulkbar .btn-sm { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.2); }
.dt-bulkbar .btn-sm:hover { background: rgba(255,255,255,.2); }
.dt-pagination { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 11.5px; color: var(--color-text-muted); }
.dt-pagination .dt-page-btns { display: flex; gap: 4px; }
.dt-pagination button { padding: 3px 8px; border: 1px solid var(--color-border); background: #fff; border-radius: var(--radius-sm); font-size: 11.5px; color: var(--color-text); }
.dt-pagination button:disabled { opacity: .4; cursor: not-allowed; }
.dt-pagination button.active-page { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ---------- Steps / wizard ---------- */
.steps { display: flex; flex-direction: column; gap: 3px; }
.step-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: var(--radius-sm); font-size: 12.5px; color: var(--color-text-muted); }
.step-item .step-num { width: 20px; height: 20px; border-radius: 50%; background: var(--color-border-strong); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700; flex-shrink: 0; }
.step-item.done .step-num { background: var(--color-primary); }
.step-item.done { color: var(--color-text); }
.step-item.active { color: var(--color-primary-dark); font-weight: 700; }
.step-item.active .step-num { background: var(--color-primary); }

/* ---------- Approval chain / formal audit view (point 4) ---------- */
.approval-chain { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.approval-step {
  display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--color-border); background: #fff;
}
.approval-step:last-child { border-bottom: none; }
.approval-step.pending { background: var(--color-surface-alt); }
.approval-step .as-icon {
  width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--color-success-bg); color: var(--color-success); flex-shrink: 0;
}
.approval-step.rejected .as-icon { background: var(--color-danger-bg); color: var(--color-danger); }
.approval-step.pending .as-icon { background: #edf0f2; color: var(--color-text-muted); }
.approval-step .as-title { font-weight: 600; font-size: 12.5px; }
.approval-step .as-meta { font-size: 11px; color: var(--color-text-muted); margin-top: 1px; }
.approval-step .as-comment { font-size: 12px; margin-top: 5px; padding: 6px 9px; background: var(--color-surface-alt); border-radius: var(--radius-sm); }

.record-summary { border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.record-summary .rs-row { display: flex; justify-content: space-between; padding: 8px 14px; border-bottom: 1px solid var(--color-border); font-size: 12.5px; }
.record-summary .rs-row:last-child { border-bottom: none; }
.record-summary .rs-label { color: var(--color-text-muted); }
.record-summary .rs-value { font-weight: 600; text-align: right; }

/* ---------- Auth / marketing pages ---------- */
.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--color-bg); }
.auth-card { width: 100%; max-width: 900px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.auth-card.single { grid-template-columns: 1fr; max-width: 420px; }
.auth-form-side { padding: 32px; }
.auth-info-side { background: var(--color-surface-alt); padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 14px; border-left: 1px solid var(--color-border); }
.auth-feature { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.auth-feature .icon { color: var(--color-primary); flex-shrink: 0; margin-top: 2px; }
.brand-lockup { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 17px; margin-bottom: 20px; }
.brand-lockup .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--color-primary); }

.navbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 5%; background: #fff; border-bottom: 1px solid var(--color-border); }
.navbar-links { display: flex; gap: 22px; font-size: 13px; font-weight: 600; }
.hero { padding: 50px 8%; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; }
.hero h1 { font-size: 32px; line-height: 1.18; }
.hero .lead { color: var(--color-text-muted); font-size: 14px; margin: 12px 0 18px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.trust-strip { padding: 16px 8% 44px; color: var(--color-text-muted); font-size: 12px; }
.trust-logos { display: flex; gap: 24px; margin-top: 8px; font-weight: 700; font-size: 14px; color: #9aa4b2; flex-wrap: wrap; }

/* ---------- Utility ---------- */
.flex { display: flex; flex-wrap: wrap; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-8{margin-top:8px;} .mt-12{margin-top:12px;} .mt-16{margin-top:16px;} .mt-24{margin-top:24px;}
.mb-8{margin-bottom:8px;} .mb-12{margin-bottom:12px;} .mb-16{margin-bottom:16px;}
.text-muted { color: var(--color-text-muted); }
.text-danger { color: var(--color-danger); }
.text-success { color: var(--color-success); }
.text-sm { font-size: 11.5px; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.divider { height: 1px; background: var(--color-border); margin: 12px 0; border: none; }
.link-btn { color: var(--color-primary); font-weight: 700; }
.hidden { display: none !important; }

/* Alert / toast */
.alert { padding: 9px 13px; border-radius: var(--radius-sm); font-size: 12.5px; margin-bottom: 12px; display: flex; gap: 8px; align-items: flex-start; }
.alert-success { background: var(--color-success-bg); color: var(--color-success); }
.alert-warning { background: var(--color-warning-bg); color: var(--color-warning); }
.alert-danger { background: var(--color-danger-bg); color: var(--color-danger); }
.alert-info { background: var(--color-info-bg); color: var(--color-info); }

.toast-container { position: fixed; top: 14px; right: 14px; z-index: 999; display: flex; flex-direction: column; gap: 8px; }
.toast { min-width: 240px; max-width: 320px; background: #fff; border: 1px solid var(--color-border); border-left: 3px solid var(--color-primary); box-shadow: var(--shadow-md); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 12.5px; animation: slideIn .15s ease; }
.toast.error { border-left-color: var(--color-danger); }
@keyframes slideIn { from { transform: translateX(16px); opacity:0;} to {transform:translateX(0); opacity:1;} }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,23,32,.5); display: none; align-items: center; justify-content: center; z-index: 200; padding: 16px; }
.modal-backdrop.open { display: flex; }
.modal { background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-md); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--color-border); font-size: 13px; }
.modal-body { padding: 16px; }
.modal-footer { padding: 11px 16px; border-top: 1px solid var(--color-border); display: flex; justify-content: flex-end; gap: 8px; }
.modal-close { background: none; border: none; font-size: 16px; color: var(--color-text-muted); }

/* Empty state */
.empty-state { text-align: center; padding: 30px 16px; color: var(--color-text-muted); }
.empty-state .icon-svg { margin-bottom: 8px; color: #c3ccd6; }
.empty-state .empty-title { font-weight: 600; color: var(--color-text); margin-bottom: 3px; font-size: 13px; }
.empty-state .empty-sub { font-size: 11.5px; max-width: 300px; margin: 0 auto; }

/* Timeline */
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 4px; bottom: 4px; width: 2px; background: var(--color-border); }
.timeline-item { position: relative; padding-bottom: 14px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -20px; top: 3px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--color-primary); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--color-border);
}
.timeline-item.warn::before { background: var(--color-warning); }
.timeline-item.danger::before { background: var(--color-danger); }
.timeline-item .t-title { font-size: 12.5px; }
.timeline-item .t-meta { font-size: 11px; color: var(--color-text-muted); margin-top: 2px; }

/* Target progress card */
.target-card { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 12px 14px; }
.target-card .t-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.target-card .t-values { display: flex; justify-content: space-between; font-size: 11px; color: var(--color-text-muted); margin-top: 5px; }

/* Chip / tab pills */
.tab-pills { display: flex; gap: 5px; flex-wrap: wrap; }
.tab-pill { padding: 5px 12px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; background: #edf0f2; color: var(--color-text-muted); border: none; }
.tab-pill.active { background: var(--color-primary); color: #fff; }

/* =====================================================================
   BRSR FULL REPORT — Section A/B/C editable table fields + pill nav
   ===================================================================== */
.form-control-sm { padding: 5px 8px; font-size: 12px; }
.brsr-editable-table td { padding: 4px 6px; white-space: normal; }
.brsr-editable-table input { width: 100%; min-width: 90px; }
.btn-icon-remove {
  background: none; border: none; color: var(--color-text-muted); cursor: pointer;
  font-size: 16px; line-height: 1; padding: 4px 8px; border-radius: 4px;
}
.btn-icon-remove:hover { background: var(--color-danger-bg, #fdecea); color: var(--color-danger); }
.pill-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.pill-nav a {
  padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--color-border); color: var(--color-text-muted); text-decoration: none;
  background: var(--color-surface);
}
.pill-nav a:hover { color: var(--color-text); border-color: var(--color-primary); }
.pill-nav a.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.brsr-section-block { margin-bottom: 22px; }
.brsr-section-block h3 { font-size: 14px; margin: 0 0 4px; }
.brsr-question-block { padding: 14px 0; border-bottom: 1px solid var(--color-border); }
.brsr-question-block:last-child { border-bottom: none; }
.brsr-question-label { font-size: 13px; font-weight: 600; margin-bottom: 8px; display: block; }
.brsr-qno { color: var(--color-text-muted); font-weight: 500; margin-right: 4px; }
.principle-grid-table th, .principle-grid-table td { text-align: center; }
.principle-grid-table td:first-child, .principle-grid-table th:first-child { text-align: left; }

/* =====================================================================
   MATERIALITY MATRIX — lightweight CSS-positioned scatter, no chart
   library dependency (consistent with the rest of the app's no-build-
   step convention)
   ===================================================================== */
.materiality-matrix {
  position: relative; width: 100%; max-width: 640px; height: 400px;
  margin: 20px auto 40px; border-left: 2px solid var(--color-border-strong);
  border-bottom: 2px solid var(--color-border-strong); background:
    linear-gradient(var(--color-border) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px) 0 0 / 25% 100%;
}
.materiality-matrix-axis-y { position: absolute; left: -6px; top: -22px; font-size: 11px; color: var(--color-text-muted); }
.materiality-matrix-axis-x { position: absolute; right: 0; bottom: -22px; font-size: 11px; color: var(--color-text-muted); }
.materiality-dot {
  position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: var(--color-text-muted); border: 2px solid var(--color-surface);
  transform: translate(-50%, -50%); cursor: pointer;
}
.materiality-dot.is-material { background: var(--color-primary); width: 16px; height: 16px; }

/* =====================================================================
   BRSR FULL REPORT — formal document body (mirrors the printed
   Annexure I layout: plain bordered tables, sequential numbered
   questions, section banners) instead of the app's dashboard chrome.
   ===================================================================== */
.brsr-doc {
  max-width: 960px; margin: 0 auto 40px; background: #fff; color: #1a1a1a;
  font-family: Georgia, 'Times New Roman', Times, serif; line-height: 1.55;
  padding: 36px 40px; border: 1px solid var(--color-border-strong);
}
.brsr-doc-title { text-align: center; font-size: 20px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.brsr-doc-subtitle { text-align: center; font-size: 14px; font-weight: 600; margin: 4px 0 20px; text-transform: uppercase; }
.brsr-doc-preamble { font-style: italic; font-size: 13.5px; line-height: 1.7; padding: 16px 20px; margin-bottom: 20px; border-left: 3px solid var(--color-primary); background: var(--color-surface-alt, #f7f8f9); }
.brsr-doc-preamble-byline { text-align: right; font-weight: 700; font-style: normal; margin-top: 8px; }
.brsr-doc-coversheet { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.brsr-doc-coversheet td { border: 1px solid #333; padding: 7px 10px; font-size: 13px; }
.brsr-doc-coversheet td:first-child { width: 240px; font-weight: 700; background: #f5f5f3; }
.brsr-doc-section-banner {
  background: #eceae4; border: 1px solid #333; padding: 8px 12px; font-weight: 700;
  text-transform: uppercase; font-size: 14px; margin: 32px 0 14px; letter-spacing: 0.3px;
}
.brsr-doc-subsection { font-weight: 700; font-size: 13.5px; margin: 18px 0 8px; text-decoration: underline; }
.brsr-doc-qa-row { display: flex; gap: 18px; padding: 7px 0; border-bottom: 1px dotted #bbb; font-size: 13px; }
.brsr-doc-qa-label { flex: 0 0 46%; font-weight: 600; }
.brsr-doc-qa-answer { flex: 1; }
.brsr-doc-qa-block { padding: 9px 0; border-bottom: 1px dotted #bbb; font-size: 13px; }
.brsr-doc-qnum { font-weight: 600; margin-bottom: 6px; }
.brsr-doc table.data-table, .brsr-doc-matrix { width: 100%; border-collapse: collapse; margin: 6px 0 12px; font-size: 12px; }
.brsr-doc table.data-table th, .brsr-doc table.data-table td,
.brsr-doc-matrix th, .brsr-doc-matrix td { border: 1px solid #555; padding: 6px 8px; vertical-align: top; text-align: left; }
.brsr-doc table.data-table th, .brsr-doc-matrix th { background: #eceae4; font-weight: 700; text-align: center; }
.brsr-doc-matrix td { text-align: center; }
.brsr-doc-matrix-qcol { text-align: left !important; width: 260px; }
.brsr-doc-principle-banner {
  background: #1a1a1a; color: #fff; padding: 8px 12px; font-weight: 700; font-size: 13.5px;
  text-transform: uppercase; margin: 30px 0 4px; letter-spacing: 0.4px;
}
.brsr-doc-principle-title { font-size: 12.5px; font-style: italic; color: #444; margin-bottom: 14px; }
.brsr-doc-indicator-heading { font-weight: 700; font-size: 13px; text-transform: uppercase; margin: 16px 0 8px; border-bottom: 2px solid #333; padding-bottom: 4px; }
@media print {
  .brsr-doc { border: none; padding: 0; max-width: 100%; }
  .brsr-doc-principle-banner { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* =====================================================================
   PRINT — for exporting record/audit views as clean PDFs via the
   browser's native Print dialog (point 4)
   ===================================================================== */
@media print {
  .sidebar, .topbar, .breadcrumb-bar, .sidebar-overlay, .btn, .no-print, .dt-toolbar, .dt-bulkbar, .dt-pagination { display: none !important; }
  .main-wrap { margin-left: 0 !important; }
  body { background: #fff; font-size: 11px; }
  .page-content { padding: 0; }
  .card { border: 1px solid #999; break-inside: avoid; }
  a[href]:after { content: ""; }
}

/* =====================================================================
   RESPONSIVE — mobile-first breakpoints
   ===================================================================== */

@media (max-width: 992px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-wrap { margin-left: 0; }
  .hamburger { display: inline-flex; }
  .sidebar-overlay.open { display: block; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; padding: 36px 6%; }
  .hero h1 { font-size: 26px; }
}

@media (max-width: 640px) {
  .page-content { padding: 12px; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .auth-card { grid-template-columns: 1fr; }
  .auth-info-side { display: none; }
  .auth-form-side { padding: 22px 18px; }
  .navbar-links { display: none; }
  .stat-value { font-size: 20px; }
  .topbar-user span.username { display: none; }
  table.data-table { font-size: 11.5px; }
  .page-header { flex-direction: column; align-items: stretch; }
  .page-header .btn { width: 100%; }
  .modal { max-width: 100%; }
  .dt-toolbar { flex-direction: column; align-items: stretch; }
  .dt-search-wrap { max-width: none; }
}

/* =====================================================================
   MARKETING HOMEPAGE — a distinct visual register from the app itself:
   the product turns messy multi-framework compliance work into
   structured regulatory documents, so the page leans into a ledger/
   filing-register vocabulary (numbered rows, hairline rules, document
   tabs, a stylised cover-block mockup) rather than the generic rounded-
   card-with-shadow SaaS kit. Self-hosted fonts only, same constraint as
   the rest of the app — Georgia for headline gravitas, no external
   font CDN (enterprise buyers often block those, and this page is
   selling to exactly that audience).
   ===================================================================== */
:root {
  --mkt-paper: #f7f5ef;
  --mkt-paper-line: #e4ded0;
  --mkt-ink: #16211b;
  --mkt-ink-muted: #5b5f56;
  --mkt-seal: #a3792f;
  --mkt-seal-bg: #f4ecdc;
}

.mkt-body { background: var(--mkt-paper); color: var(--mkt-ink); }
.mkt-serif { font-family: var(--font-serif); }

.mkt-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 6%; background: var(--mkt-paper);
  border-bottom: 1px solid var(--mkt-paper-line); position: sticky; top: 0; z-index: 80;
}
.mkt-nav-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; color: var(--mkt-ink); }
.mkt-nav-brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--color-primary); }
.mkt-nav-links { display: flex; gap: 32px; font-size: 13.5px; }
.mkt-nav-links a { color: var(--mkt-ink-muted); }
.mkt-nav-links a:hover { color: var(--mkt-ink); }

/* ---------- Hero ---------- */
.mkt-hero { display: grid; grid-template-columns: 1fr 0.92fr; gap: 60px; align-items: center; padding: 76px 6% 90px; max-width: 1360px; margin: 0 auto; }
.mkt-hero-eyebrow { font-size: 13.5px; color: var(--mkt-seal); font-weight: 600; margin-bottom: 18px; }
.mkt-hero h1 { font-family: var(--font-serif); font-size: 44px; line-height: 1.16; font-weight: 500; color: var(--mkt-ink); max-width: 12ch; }
.mkt-hero .lead { font-size: 16px; line-height: 1.6; color: var(--mkt-ink-muted); max-width: 46ch; margin: 22px 0 30px; }
.mkt-hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.mkt-hero-note { font-size: 12.5px; color: var(--mkt-ink-muted); margin-top: 16px; }

.mkt-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 3px; font-size: 14px; font-weight: 600; border: 1px solid transparent; cursor: pointer; text-decoration: none; }
.mkt-btn-primary { background: var(--color-primary); color: #fff; }
.mkt-btn-primary:hover { background: var(--color-primary-dark); }
.mkt-btn-ghost { background: transparent; color: var(--mkt-ink); border-color: var(--mkt-ink); }
.mkt-btn-ghost:hover { background: var(--mkt-ink); color: var(--mkt-paper); }

/* Hero document mockup — a stylised replica of the actual BRSR cover
   block this product generates, not a generic dashboard/metrics card */
.mkt-doc-mock { background: #fff; border: 1px solid var(--mkt-paper-line); box-shadow: 0 1px 0 var(--mkt-paper-line), 0 24px 48px -24px rgba(22,33,27,0.18); }
.mkt-doc-mock-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; background: var(--mkt-ink); color: #dfe6df; font-size: 11.5px; }
.mkt-doc-mock-body { padding: 28px 26px; }
.mkt-doc-mock-title { font-family: var(--font-serif); font-size: 18px; text-align: center; margin-bottom: 2px; }
.mkt-doc-mock-sub { font-size: 11.5px; text-align: center; color: var(--mkt-ink-muted); margin-bottom: 20px; letter-spacing: 0.02em; }
.mkt-doc-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--mkt-paper-line); font-size: 12.5px; }
.mkt-doc-row:last-child { border-bottom: none; }
.mkt-doc-row .label { color: var(--mkt-ink-muted); }
.mkt-doc-row .value { font-weight: 600; text-align: right; }
.mkt-doc-check { color: var(--color-primary); font-weight: 700; }
.mkt-doc-mock-footer { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--mkt-paper-line); display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--mkt-ink-muted); }
.mkt-doc-seal { display: inline-flex; align-items: center; gap: 6px; color: var(--mkt-seal); font-weight: 700; }

/* ---------- Segment strip (replaces fake customer logos) ---------- */
.mkt-segments { padding: 40px 6% 64px; max-width: 1360px; margin: 0 auto; }
.mkt-segments-label { font-size: 13px; color: var(--mkt-ink-muted); margin-bottom: 20px; }
.mkt-segments-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--mkt-paper-line); border: 1px solid var(--mkt-paper-line); }
.mkt-segment { background: var(--mkt-paper); padding: 20px 22px; }
.mkt-segment-title { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.mkt-segment-desc { font-size: 12.5px; color: var(--mkt-ink-muted); line-height: 1.5; }

/* ---------- Document tabs (framework showcase) ---------- */
.mkt-section { padding: 70px 6%; max-width: 1360px; margin: 0 auto; }
.mkt-section-head { max-width: 60ch; margin-bottom: 40px; }
.mkt-section-head h2 { font-family: var(--font-serif); font-size: 30px; font-weight: 500; color: var(--mkt-ink); }
.mkt-section-head p { font-size: 14.5px; color: var(--mkt-ink-muted); margin-top: 10px; line-height: 1.6; }

.mkt-tabs { display: flex; gap: 4px; margin-bottom: -1px; flex-wrap: wrap; }
.mkt-tab { padding: 11px 20px; font-size: 13px; font-weight: 600; background: var(--mkt-paper-line); color: var(--mkt-ink-muted); border-radius: 4px 4px 0 0; cursor: default; }
.mkt-tab.is-active { background: #fff; color: var(--mkt-ink); border: 1px solid var(--mkt-paper-line); border-bottom-color: #fff; }
.mkt-tab-panel { background: #fff; border: 1px solid var(--mkt-paper-line); padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.mkt-tab-panel h3 { font-family: var(--font-serif); font-size: 19px; margin-bottom: 8px; }
.mkt-tab-panel p { font-size: 13.5px; color: var(--mkt-ink-muted); line-height: 1.6; margin-bottom: 14px; }
.mkt-tab-list { list-style: none; padding: 0; font-size: 13px; }
.mkt-tab-list li { padding: 7px 0; border-bottom: 1px solid var(--mkt-paper-line); display: flex; gap: 10px; }
.mkt-tab-list li:last-child { border-bottom: none; }
.mkt-tab-list .code { font-family: var(--font-serif); font-style: italic; color: var(--mkt-seal); flex-shrink: 0; width: 60px; }

/* ---------- Ledger feature list ---------- */
.mkt-ledger { border-top: 1px solid var(--mkt-ink); }
.mkt-ledger-row { display: grid; grid-template-columns: 90px 1fr 1.4fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--mkt-paper-line); align-items: baseline; }
.mkt-ledger-num { font-family: var(--font-serif); font-style: italic; color: var(--mkt-seal); font-size: 15px; }
.mkt-ledger-title { font-weight: 700; font-size: 15px; }
.mkt-ledger-desc { font-size: 13.5px; color: var(--mkt-ink-muted); line-height: 1.6; }

/* ---------- How it works (genuinely sequential) ---------- */
.mkt-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.mkt-step-num { font-family: var(--font-serif); font-size: 34px; color: var(--mkt-paper-line); font-weight: 700; margin-bottom: 8px; }
.mkt-step h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 6px; }
.mkt-step p { font-size: 13px; color: var(--mkt-ink-muted); line-height: 1.55; }

/* ---------- Security / trust ---------- */
.mkt-security { background: var(--mkt-ink); color: #dfe6df; }
.mkt-security .mkt-section-head h2 { color: #fff; }
.mkt-security .mkt-section-head p { color: #aab5aa; }
.mkt-security-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,0.12); }
.mkt-security-item { padding: 22px; background: var(--mkt-ink); }
.mkt-security-item h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: #fff; }
.mkt-security-item p { font-size: 12.5px; color: #aab5aa; line-height: 1.55; }

/* ---------- Pricing ---------- */
.mkt-pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--mkt-paper-line); }
.mkt-price-card { padding: 32px 28px; background: #fff; border-left: 1px solid var(--mkt-paper-line); }
.mkt-price-card:first-child { border-left: none; }
.mkt-price-card.is-featured { background: var(--mkt-ink); color: #fff; }
.mkt-price-name { font-size: 13px; font-weight: 700; text-transform: none; color: var(--mkt-seal); margin-bottom: 10px; }
.mkt-price-card.is-featured .mkt-price-name { color: #d7c295; }
.mkt-price-value { font-family: var(--font-serif); font-size: 26px; margin-bottom: 6px; }
.mkt-price-sub { font-size: 12px; color: var(--mkt-ink-muted); margin-bottom: 22px; }
.mkt-price-card.is-featured .mkt-price-sub { color: #aab5aa; }
.mkt-price-list { list-style: none; padding: 0; font-size: 13px; margin-bottom: 26px; }
.mkt-price-list li { padding: 6px 0; }

/* ---------- FAQ (native details/summary — zero JS) ---------- */
.mkt-faq-item { border-bottom: 1px solid var(--mkt-paper-line); }
.mkt-faq-item summary { padding: 20px 0; font-weight: 700; font-size: 14.5px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.mkt-faq-item summary::-webkit-details-marker { display: none; }
.mkt-faq-item summary::after { content: '+'; font-family: var(--font-serif); font-size: 20px; color: var(--mkt-seal); }
.mkt-faq-item[open] summary::after { content: '\2212'; }
.mkt-faq-item p { font-size: 13.5px; color: var(--mkt-ink-muted); line-height: 1.65; padding-bottom: 20px; max-width: 68ch; }

/* ---------- CTA band + footer ---------- */
.mkt-cta-band { background: var(--color-primary); color: #fff; text-align: center; padding: 64px 6%; }
.mkt-cta-band h2 { font-family: var(--font-serif); font-size: 28px; font-weight: 500; margin-bottom: 14px; }
.mkt-cta-band p { font-size: 14.5px; color: #d7ead9; margin-bottom: 26px; }
.mkt-cta-band .mkt-btn-ghost { border-color: #fff; color: #fff; }
.mkt-cta-band .mkt-btn-ghost:hover { background: #fff; color: var(--color-primary); }

.mkt-footer { background: var(--mkt-ink); color: #aab5aa; padding: 56px 6% 28px; }
.mkt-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; max-width: 1360px; margin: 0 auto 40px; }
.mkt-footer-brand { color: #fff; font-weight: 700; font-size: 16px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.mkt-footer-brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); }
.mkt-footer p.desc { font-size: 12.5px; line-height: 1.6; max-width: 32ch; }
.mkt-footer h5 { color: #fff; font-size: 12.5px; font-weight: 700; margin-bottom: 14px; }
.mkt-footer ul { list-style: none; padding: 0; }
.mkt-footer li { margin-bottom: 9px; font-size: 12.5px; }
.mkt-footer a { color: #aab5aa; }
.mkt-footer a:hover { color: #fff; }
.mkt-footer-bottom { max-width: 1360px; margin: 0 auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 11.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

@media (max-width: 992px) {
  .mkt-hero { grid-template-columns: 1fr; padding-top: 40px; }
  .mkt-hero h1 { font-size: 34px; max-width: none; }
  .mkt-nav-links { display: none; }
  .mkt-segments-grid { grid-template-columns: repeat(2, 1fr); }
  .mkt-tab-panel { grid-template-columns: 1fr; }
  .mkt-ledger-row { grid-template-columns: 50px 1fr; }
  .mkt-ledger-row .mkt-ledger-desc { grid-column: 2; }
  .mkt-steps { grid-template-columns: repeat(2, 1fr); }
  .mkt-security-grid { grid-template-columns: 1fr; }
  .mkt-pricing-grid { grid-template-columns: 1fr; }
  .mkt-price-card { border-left: none; border-top: 1px solid var(--mkt-paper-line); }
  .mkt-price-card:first-child { border-top: none; }
  .mkt-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .mkt-segments-grid { grid-template-columns: 1fr; }
  .mkt-steps { grid-template-columns: 1fr; }
  .mkt-footer-grid { grid-template-columns: 1fr; }
}
