:root {
  --bg: #f5f6fa;
  --panel: #ffffff;
  --panel-muted: #f8fafc;
  --border: #e2e8f0;
  --border-soft: #f1f5f9;
  --text: #1a1a2e;
  --muted: #64748b;
  --accent: #4361ee;
  --accent-strong: #3730a3;
  --supplier-portal-highlight: #c6761f;
  --success-bg: #dcfce7;
  --success-text: #166534;
  --danger-bg: #fee2e2;
  --danger-text: #991b1b;
  --sidebar: #1a1a2e;
  --sidebar-hover: #2d2d4e;
  --sidebar-text: #c8cfe8;
  --sidebar-muted: #6f7696;
  --sidebar-section-header: #7aa2ff;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
  --radius: 10px;
}

[data-bs-theme="dark"] {
  --bg: #0f172a;
  --panel: #111827;
  --panel-muted: #172033;
  --border: #263247;
  --border-soft: #1f2937;
  --text: #e5edf9;
  --muted: #9fb0ca;
  --accent: #7aa2ff;
  --accent-strong: #a5bffb;
  --supplier-portal-highlight: #c6761f;
  --success-bg: #10301f;
  --success-text: #86efac;
  --danger-bg: #3a1517;
  --danger-text: #fca5a5;
  --sidebar: #0b1220;
  --sidebar-hover: #172033;
  --sidebar-text: #d6def2;
  --sidebar-muted: #7b87a5;
  --sidebar-section-header: #7aa2ff;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 245px;
  min-height: 100vh;
  background: var(--sidebar);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: width 0.22s ease;
}

.sidebar.collapsed { width: 64px; }

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 20px 0 15px;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.sidebar-brand:hover { background: rgba(255,255,255,0.05); }

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-brand-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.sidebar-brand-subtitle {
  font-size: 11px;
  color: #c7d2fe;
  margin-top: 4px;
}

.sidebar-nav {
  padding: 16px 0;
  flex: 1;
}

.nav-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sidebar-section-header);
  padding: 14px 16px 8px;
}

.sidebar-section {
  display: block;
}

.sidebar-section-links {
  display: flex;
  flex-direction: column;
}

.nav-section-label-collapsible {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  text-decoration: none;
}

.nav-section-label-collapsible::-webkit-details-marker {
  display: none;
}

.nav-section-label-collapsible::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 10px;
  color: var(--sidebar-section-header);
  transition: transform 0.18s ease;
}

.sidebar-section[open] .nav-section-label-collapsible::after {
  transform: rotate(180deg);
}

.nav-subsection-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sidebar-muted);
  padding: 8px 16px 4px;
  opacity: 0.7;
}

.sidebar-nav > a,
.sidebar-section-links > a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: var(--sidebar-text);
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  margin: 0 0 2px;
  text-decoration: none;
}

.sidebar-nav > a:hover,
.sidebar-nav > a.active,
.sidebar-section-links > a:hover,
.sidebar-section-links > a.active {
  background: var(--sidebar-hover);
  color: #fff;
  text-decoration: none;
}

.nav-icon {
  width: 24px;
  text-align: center;
  font-size: 18px;
  flex-shrink: 0;
}

.nav-icon .icon {
  font-size: 17px;
}

.nav-label {
  white-space: nowrap;
}

/* ── Sidebar collapsed state ──────────────────────────────── */
.sidebar.collapsed .sidebar-brand-copy { display: none; }
.sidebar.collapsed .sidebar-brand { padding: 16px 0; justify-content: center; gap: 0; }
.sidebar.collapsed .brand-mark { width: 36px; height: 36px; border-radius: 10px; }

/* Section labels in collapsed mode: show short abbr instead of full label */
.sidebar.collapsed .nav-section-label {
  height: auto;
  background: transparent;
  margin: 6px 0 0;
  padding: 0;
  overflow: visible;
  color: var(--sidebar-section-header);
  pointer-events: none;
}
.sidebar.collapsed .nav-subsection-label {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 6px 10px;
  padding: 0;
  overflow: hidden;
  color: transparent;
  pointer-events: none;
}

/* Collapsible summaries are clickable even when collapsed */
.sidebar.collapsed .nav-section-label-collapsible {
  pointer-events: auto;
  justify-content: center;
  cursor: pointer;
}
.sidebar.collapsed .nav-section-label-collapsible:hover .nav-section-abbr {
  color: #fff;
}
/* Hide the chevron arrow when collapsed — no room */
.sidebar.collapsed .nav-section-label-collapsible::after {
  display: none;
}

/* Show/hide full name vs abbreviation */
.sidebar:not(.collapsed) .nav-section-abbr { display: none; }
.sidebar.collapsed .nav-section-full-name { display: none; }
.sidebar.collapsed .nav-section-abbr {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--sidebar-section-header);
  padding: 8px 0 4px;
  transition: color 0.15s;
}

/* Section links: hide only when the details is closed (not blanket-hide) */
.sidebar.collapsed .sidebar-section:not([open]) .sidebar-section-links { display: none; }
.sidebar.collapsed .sidebar-section[open] .sidebar-section-links { display: flex; }

.sidebar.collapsed .nav-label { display: none; }

/* Floating tooltip shown on hover when collapsed */
#nav-tooltip {
  display: none;
  position: fixed;
  background: var(--sidebar);
  color: #fff;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  pointer-events: none;
  z-index: 500;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.header {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  height: 56px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 20;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  font-size: 13px;
}

.breadcrumb-link {
  color: var(--muted);
}

.breadcrumb-link:hover {
  color: var(--text);
}

.breadcrumb-sep {
  color: #cbd5e1;
  font-size: 11px;
  margin: 0 5px;
  user-select: none;
}

.breadcrumb-current {
  color: var(--muted);
}

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

.user-menu-wrap {
  position: relative;
}

.user-avatar-btn {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  border-radius: 50%;
}

.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 240px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 200;
}

.user-dropdown.open {
  display: block;
}

.user-menu-action {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  text-align: left;
  transition: background 0.15s;
}

.user-menu-action:hover {
  background: var(--bg);
  color: var(--text);
}

/* ── Notification Bell ────────────────────────────────────────────────── */
.notif-wrap {
  position: relative;
  margin-right: 30px;
}

.notif-btn {
  appearance: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 9px;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.15s, color 0.15s;
  font-size: 16px;
  line-height: 1;
}

.notif-btn:hover {
  background: var(--bg);
  color: var(--text);
}

.notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--tblr-red, #d63939);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  pointer-events: none;
}

.notif-panel {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: -60px;
  width: 380px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 300;
  overflow: hidden;
}

.notif-panel.open {
  display: block;
}

.notif-header {
  padding: 16px 20px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.notif-mark-read {
  float: right;
  font-size: 12px;
  font-weight: 400;
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
  margin-top: 2px;
}

.notif-mark-read:hover {
  text-decoration: underline;
}

.notif-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 12px;
  margin-top: 12px;
  gap: 2px;
}

.notif-tab-btn {
  appearance: none;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -1px;
  transition: color 0.15s;
}

.notif-tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.notif-tab-btn:hover:not(.active) {
  color: var(--text);
}

.notif-body {
  max-height: 400px;
  overflow-y: auto;
}

.notif-pane {
  display: none;
}

.notif-pane.active {
  display: block;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-soft, rgba(255,255,255,0.06));
  transition: background 0.12s;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item:hover {
  background: var(--bg);
}

.notif-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.notif-icon.critical { background: rgba(214,57,57,0.15); color: var(--tblr-red, #d63939); }
.notif-icon.high     { background: rgba(240,130,47,0.15); color: var(--tblr-orange, #f0822f); }
.notif-icon.medium   { background: rgba(230,183,0,0.15);  color: var(--tblr-yellow, #e6b700); }
.notif-icon.response { background: rgba(32,107,196,0.12); color: var(--accent); }
.notif-icon.release  { background: rgba(42,175,104,0.15); color: var(--tblr-green, #2fb344); }

.notif-item-body {
  flex: 1;
  min-width: 0;
}

.notif-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.notif-item-sub {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* ── End Notification Bell ────────────────────────────────────────────── */

.content {
  padding: 24px 28px 32px;
}

.flashes {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.flash {
  padding: 10px 16px;
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: #dbeafe;
  color: #1e40af;
}

.flash.success {
  background: var(--success-bg);
  color: var(--success-text);
}

.flash.error,
.flash.danger {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.page-header,
.ds-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.sb-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.ds-page-header .card-body {
  padding: 0;
}

.ds-page-header-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 0;
}

.page-title,
.ds-page-title,
.login-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page-pretitle,
.ds-eyebrow {
  display: none;
}

.ds-page-description,
.text-secondary,
.muted,
.user-meta,
.ds-stat-note,
.login-copy,
.login-footer {
  color: var(--muted) !important;
}

.tax-tabs,
.ds-tab-strip,
.ds-subtabs,
.help-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tax-tab,
.ds-tab-strip .nav-link,
.ds-subtabs .nav-link,
.help-tabs .nav-link,
.nav-tabs .nav-link,
.nav-pills .nav-link {
  appearance: none;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  padding: 6px 22px;
  margin: 0 0 -2px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 0;
  text-decoration: none;
}

.tax-tab:hover,
.ds-tab-strip .nav-link:hover,
.ds-subtabs .nav-link:hover,
.help-tabs .nav-link:hover,
.nav-tabs .nav-link:hover,
.nav-pills .nav-link:hover {
  color: var(--text);
  text-decoration: none;
}

.tax-tab.active,
.ds-tab-strip .nav-link.active,
.ds-subtabs .nav-link.active,
.help-tabs .nav-link.active,
.nav-tabs .nav-link.active,
.nav-pills .nav-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: transparent;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: visible;
}

.card-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.card-body {
  padding: 24px;
}

.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: transparent;
}

.card-title,
.section-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.table-responsive {
  width: 100%;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

thead {
  background: var(--panel-muted);
}

th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 12px 16px;
  color: var(--text);
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover td {
  background: var(--panel-muted);
}

.ds-table-shell {
  padding: 0;
}

.ds-table-shell .table-responsive {
  border-radius: 0 0 var(--radius) var(--radius);
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.text-bg-primary-lt,
.text-bg-azure-lt {
  background: #e0e7ff;
  color: #3730a3;
}

.text-bg-green-lt {
  background: var(--success-bg);
  color: var(--success-text);
}

.text-bg-orange-lt {
  background: #ffedd5;
  color: #c2410c;
}

.text-bg-red-lt {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.text-bg-secondary-lt {
  background: #e5e7eb;
  color: #6b7280;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: #e2e8f0;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  opacity: 0.9;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-secondary,
.btn-outline-secondary,
.btn-outline-primary {
  background: var(--panel);
  border-color: var(--border);
  color: var(--muted);
}

.btn.btn-overflow-trigger {
  min-width: 32px;
  min-height: 32px;
  padding: 6px 8px;
  background: transparent;
  border-color: transparent;
  color: var(--text-muted, var(--muted));
  box-shadow: none;
}

.btn.btn-overflow-trigger i {
  color: inherit;
}

.btn.btn-overflow-trigger:hover,
.btn.btn-overflow-trigger:focus,
.btn.btn-overflow-trigger:focus-visible,
.btn.btn-overflow-trigger:active,
.btn.btn-overflow-trigger[aria-expanded="true"] {
  background: color-mix(in srgb, var(--panel) 88%, white 12%);
  border-color: transparent;
  color: var(--text);
  box-shadow: none;
}

.btn-danger,
.btn-outline-danger {
  background: #ef4444;
  color: #fff;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 12px;
}

.btn-block,
.w-100 {
  width: 100%;
}

.btn-list {
  display: flex;
  gap: 8px;
}

.toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.toggle-switch input {
  display: none;
}

.toggle-track {
  position: relative;
  width: 46px;
  height: 24px;
  border-radius: 999px;
  background: #d7deea;
  transition: background 0.15s ease;
}

.toggle-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease;
}

.toggle-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.toggle-switch input:checked + .toggle-track {
  background: var(--accent);
}

.toggle-switch input:checked + .toggle-track::after {
  transform: translateX(22px);
}

[data-bs-theme="dark"] .toggle-track {
  background: #334155;
}

[data-bs-theme="dark"] .toggle-track::after {
  background: #cbd5e1;
  box-shadow: none;
}

[data-bs-theme="dark"] .toggle-switch input:checked + .toggle-track {
  background: #4f6fbf;
}

.btn-icon i,
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

.stack,
.stack-sm {
  display: grid;
  gap: 12px;
}

label,
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
select,
textarea,
.form-control,
.form-select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text);
  background: var(--panel);
  outline: none;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.12);
}

.form-hint,
.small {
  font-size: 12px;
  color: var(--muted);
}

.row-cards {
  row-gap: 20px;
}

.ds-stat-card {
  min-height: 160px;
}

.ds-stat-card-body {
  height: 100%;
}

.ds-stat-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.ds-stat-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--panel-muted);
  color: var(--accent);
}

.ds-stat-card .icon-lg {
  font-size: 18px;
}

.ds-stat-value {
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.ds-stat-label {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.ds-feature-card,
.ds-feature-card-alt,
.ds-empty-state {
  background: var(--panel);
}

.ds-empty-state {
  text-align: center;
}

.ds-empty-state-body {
  padding: 48px 24px;
}

.ds-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 20px;
  background: var(--panel-muted);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-xl {
  font-size: 28px;
}

.ds-permission-tile {
  background: var(--panel-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  min-height: 100%;
}

.perm-card {
  display: flex;
  align-items: stretch;
  gap: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  margin-bottom: 16px;
}

.permissions-tab-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.permissions-tab-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-top: 2px;
}

.permissions-tab-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.permissions-card-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.perm-card-skunk {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 32px;
  box-shadow: none;
}

.perm-card-name {
  flex: 0 0 180px;
  width: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.perm-role-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.perm-system-pill {
  display: inline-block;
  width: max-content;
  margin-top: 8px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.18);
  color: #c7d2fe;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.perm-role-count {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

.perm-boxes {
  flex: 1;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.perm-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
}

.perm-box-header {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 14px;
  color: #fff;
}

.perm-box-edit { background: #16a34a; }
.perm-box-view { background: #2563eb; }
.perm-box-none { background: #94a3b8; }

.perm-box-body {
  flex: 1;
  overflow-y: auto;
  max-height: 260px;
  background: var(--panel);
}

.perm-item {
  font-size: 12px;
  color: var(--text);
  padding: 8px 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.perm-item-alt {
  background: var(--panel-muted);
}

.perm-item-empty {
  color: var(--muted);
  font-style: italic;
}

.perm-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 128px;
  width: 128px;
  justify-content: flex-end;
  align-self: center;
}

.overflow-menu {
  position: relative;
  display: inline-block;
}

.overflow-btn {
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
}

.overflow-btn:hover {
  background: var(--panel-muted);
  color: var(--text);
}

.overflow-dropdown {
  display: none;
  position: fixed;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.28);
  min-width: 168px;
  z-index: 200;
}

.overflow-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
}

.overflow-item:hover {
  background: var(--panel-muted);
}

.overflow-item-danger {
  color: #f87171;
}

.overflow-item-danger:hover {
  background: rgba(239, 68, 68, 0.12);
}

.overflow-item-disabled {
  color: #64748b !important;
  cursor: not-allowed;
}

.overflow-item-disabled:hover {
  background: none;
}

/* ── Reporting ────────────────────────────────────────────────────── */
.reporting-stat-strip {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.reporting-stat-card {
  flex: 1;
  min-width: 120px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
}

.reporting-stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}

.reporting-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .permissions-tab-header,
  .perm-card,
  .perm-boxes {
    flex-direction: column;
  }

  .permissions-tab-actions {
    width: 100%;
    justify-content: space-between;
  }

  .perm-card-name {
    width: auto;
    flex-basis: auto;
  }

  .perm-card-actions {
    width: auto;
    flex-basis: auto;
    align-self: flex-end;
  }
}

.perm-modal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-soft);
}

.perm-modal-row:last-child {
  border-bottom: none;
}

.perm-modal-page {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  min-width: 140px;
}

.perm-toggle-group {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.perm-toggle-btn {
  border: none;
  background: var(--panel-muted);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
  border-right: 1px solid var(--border);
}

.perm-toggle-btn:last-child {
  border-right: none;
}

.perm-toggle-btn:hover:not(.active) {
  background: #f1f5f9;
}

.perm-toggle-none.active { background: #94a3b8; color: #fff; }
.perm-toggle-view.active { background: #2563eb; color: #fff; }
.perm-toggle-edit.active { background: #16a34a; color: #fff; }

.prose {
  max-width: 900px;
  line-height: 1.7;
}

.prose pre,
.release-markdown {
  white-space: pre-wrap;
  background: var(--panel-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
}

.section-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(11, 18, 32, 0.58), rgba(11, 18, 32, 0.58)),
    url("../arsenal1.jpg") center center / cover no-repeat fixed;
  padding: 40px 20px;
}

.container-tight {
  width: min(100%, 420px);
}

.login-card {
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid color-mix(in srgb, var(--border) 88%, white 12%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
  text-align: center;
}

.login-brand-mark {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: block;
  object-fit: cover;
  flex-shrink: 0;
}

.login-brand-copy {
  min-width: 0;
}

.login-brand .sidebar-brand-title,
.login-brand .sidebar-brand-subtitle {
  color: #fff;
  text-align: center;
}

.login-brand .sidebar-brand-title {
  font-size: 24px;
  line-height: 1.05;
}

.login-brand .sidebar-brand-subtitle {
  font-size: 14.6px;
  margin-top: 4px;
  color: rgba(214, 222, 242, 0.92);
}

.login-page-header {
  margin-bottom: 24px;
}

.login-page-header .ds-page-header-body {
  width: 100%;
}

.login-page-header .page-title,
.login-page-header .ds-page-description {
  text-align: center;
}

.login-title,
.login-copy,
.login-footer {
  text-align: center;
}

.login-copy {
  margin: 0 0 24px;
}

.ds-login-theme-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
}

.modal-backdrop {
  background: rgba(15, 23, 42, 0.55);
}

.modal-content {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.modal-header,
.modal-footer {
  border-color: var(--border);
}

.modal-body {
  background: var(--panel);
}

/* ── Status badges ─────────────────────────────────────────── */
.badge-active   { display:inline-block;padding:2px 10px;border-radius:12px;font-size:11px;font-weight:600;background:#dcfce7;color:#166534; }
.badge-inactive { display:inline-block;padding:2px 10px;border-radius:12px;font-size:11px;font-weight:600;background:#fee2e2;color:#991b1b; }
.badge-default  { display:inline-block;padding:2px 10px;border-radius:12px;font-size:11px;font-weight:600;background:#e0e7ff;color:#3730a3; }

/* ── Release Notes ─────────────────────────────────────────── */
.release-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 16px;
  overflow: hidden;
  border-left-width: 4px;
  border-left-style: solid;
}
.release-card-major { border-left-color: #10B981; }
.release-card-minor { border-left-color: #3B82F6; padding: 20px 24px; }
.release-card-patch { border-left-color: #94a3b8; padding: 16px 20px; }

.release-banner {
  padding: 20px 24px;
}
.release-card-major .release-content,
.release-card-major > div:last-child {
  padding: 0 24px 20px;
}

.release-version {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.release-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.release-type-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.release-type-major { background: #d1fae5; color: #065f46; }
.release-type-minor { background: #dbeafe; color: #1e40af; }
.release-type-patch { background: #f1f5f9; color: #475569; }

.release-content {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}
.release-content h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 14px 0 6px;
}
.release-content ul { margin: 6px 0 10px 18px; padding: 0; }
.release-content li { margin-bottom: 4px; }
.release-content p  { margin: 0 0 10px; }

@media (max-width: 1100px) {
  .sidebar {
    width: 240px;
  }

  .sidebar-brand-title {
    font-size: 22px;
  }
}

@media (max-width: 520px) {
  .login-body {
    padding: 24px 14px;
    background-attachment: scroll;
  }

  .login-brand {
    align-items: center;
    justify-content: center;
  }

  .login-brand .sidebar-brand-title {
    font-size: 21px;
  }
}

@media (max-width: 840px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    min-height: auto;
  }

  .sidebar-nav {
    padding-top: 12px;
  }

  .content,
  .header {
    padding-left: 18px;
    padding-right: 18px;
  }


  .page-header,
  .ds-page-header-body,
  .section-title-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ═══════════════════════════════════════════════════════
   Chat / AI Conversations
═══════════════════════════════════════════════════════ */

.chat-bubble-wrap {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: 80%;
}

.chat-bubble-wrap--user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-bubble-wrap--agent {
  align-self: flex-start;
}

.chat-bubble-avatar {
  flex-shrink: 0;
  margin-bottom: 2px;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.6;
  max-width: 100%;
  word-break: break-word;
}

.chat-bubble--user {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-bubble--agent {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.chat-bubble-content p:last-child { margin-bottom: 0; }
.chat-bubble-content pre {
  background: rgba(0,0,0,0.06);
  border-radius: 6px;
  padding: 10px 12px;
  overflow-x: auto;
  font-size: 13px;
}
.chat-bubble--user .chat-bubble-content pre {
  background: rgba(255,255,255,0.18);
}
.chat-bubble-content code {
  font-size: 13px;
}
.chat-bubble-content ul,
.chat-bubble-content ol {
  padding-left: 20px;
  margin: 4px 0;
}

.chat-bubble-time {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.chat-bubble--user .chat-bubble-time {
  color: rgba(255,255,255,0.7);
  text-align: right;
}

/* Typing indicator dots */
.chat-typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 2px;
}
.chat-typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: chat-dot-bounce 1.2s infinite ease-in-out;
}
.chat-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chat-dot-bounce {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
  40%           { transform: scale(1);   opacity: 1;   }
}

/* ── Agent tiles (Conversations page) ──────────────────────────────────── */
.agent-tile {
  display: flex;
  flex-direction: column;
  width: 160px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  overflow: hidden;
  padding: 0;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.agent-tile:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}
.agent-tile-avatar {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.agent-tile-initial {
  width: 100%;
  height: 140px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 48px;
  color: #fff;
}
.agent-tile-body {
  padding: 12px 12px 14px;
}
.agent-tile-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.agent-tile-desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ds-page-description { display: none; }

/* ═══════════════════════════════════════════════════════════════
   ABOUT / PRESENTATION
   ═══════════════════════════════════════════════════════════════ */

.about-presentation {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 56px); /* subtract header bar */
  background: var(--bg);
  position: relative;
  overflow: hidden;
  user-select: none;
}

/* ── Presentation header ──────────────────────────────────────── */
.about-pres-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.about-pres-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.about-pres-headline {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.about-pres-sep {
  margin: 0 8px;
  color: var(--border);
  font-weight: 400;
}

.about-pres-subtitle {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
}

.about-fullscreen-btn {
  flex-shrink: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 15px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.about-fullscreen-btn:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--panel-hover, var(--panel));
}

/* ── Slide navigation ─────────────────────────────────────────── */
.about-slide-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  min-width: 0;
  overflow: hidden;
}

.about-nav-arrow {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.about-nav-arrow:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--accent);
  background: var(--panel);
}

.about-nav-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

#about-next {
  background: #f97316;
  border-color: #fb923c;
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.38);
}

#about-next:hover:not(:disabled) {
  background: #ea580c;
  border-color: #fdba74;
  color: #fff;
}

#about-next:disabled {
  background: transparent;
  border-color: var(--border);
  color: var(--muted);
  box-shadow: none;
}

.about-nav-bubbles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.about-bubble-line {
  width: 16px;
  height: 2px;
  background: var(--border);
  transition: background 0.3s;
}

.about-bubble {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 2px;
  color: var(--muted);
  transition: color 0.2s;
}

.about-bubble-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  color: var(--muted);
}

/* Active bubble */
.about-bubble.active .about-bubble-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.about-bubble.active { color: var(--text); }

/* Visited (past) bubble */
.about-bubble.visited .about-bubble-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  opacity: 0.5;
}
/* Connector line fills when visited */
.about-bubble.visited + .about-bubble-line {
  background: var(--accent);
  opacity: 0.5;
}
.about-bubble.active + .about-bubble-line {
  background: var(--accent);
  opacity: 0.3;
}

/* ── Slide viewport & track ───────────────────────────────────── */
.about-slides-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.about-slides-track {
  display: flex;
  width: 100%;
  height: 100%;
  transform: translateX(0);
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-slide {
  width: 100%;
  flex: 0 0 100%;
  height: 100%;
  overflow-y: auto;
}

.about-slide-inner {
  padding: 32px 40px;
  height: 100%;
  box-sizing: border-box;
}

.about-slide-stage {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 100%;
}

/* ── Slide content cards ──────────────────────────────────────── */
.about-slide-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  height: 100%;
  align-content: start;
}

.about-slide-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-content-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.about-content-card--presentation {
  width: 100%;
  min-height: 260px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 34px 40px;
}

.about-content-card--presentation h3 {
  font-size: 32px;
  margin: 0 0 25px;
  align-self: flex-start;
}

.about-content-card--presentation p,
.about-content-card--presentation .about-bullet-list li {
  font-size: 19px;
}

.about-content-card--highlight {
  border-color: var(--accent);
  border-width: 1.5px;
}

.about-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  margin-bottom: 14px;
}

.about-content-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
}

.about-content-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.about-raw-text {
  white-space: pre-wrap;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  margin: 0;
}

/* ── Image + points slide ─────────────────────────────────────── */
.about-image-points {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 56px;
  align-items: start;
  width: 100%;
  height: 100%;
}

.about-image-points--no-image {
  grid-template-columns: 1fr;
  max-width: 920px;
}

.about-image-points--no-image .about-ip-left {
  gap: 28px;
}

.about-ip-left {
  display: flex;
  flex-direction: column;
  gap: 42px;
}

.about-ip-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.about-ip-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 25px;
  line-height: 1.2;
}

.about-ip-list {
  display: flex;
  flex-direction: column;
  gap: 27px;
}

.about-ip-item {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.about-ip-letter {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-ip-text {
  font-size: 20px;
  color: var(--text);
  line-height: 1.4;
  font-weight: 500;
}

.about-ip-text .about-ip-emphasis {
  color: var(--supplier-portal-highlight);
  font-weight: 800;
}

.about-scope-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 44px;
  align-items: stretch;
  width: 100%;
  min-height: 100%;
}

.about-scope-intro-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  min-height: 100%;
}

.about-scope-intro-headline {
  margin: 0;
  font-size: 54px;
  line-height: 1.08;
  font-weight: 800;
  color: var(--text);
  max-width: 760px;
}

.about-scope-intro-body {
  margin: 0;
  font-size: 23px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 700px;
}

.about-scope-intro-right {
  min-height: 560px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel-muted);
  box-shadow: var(--shadow);
}

.about-scope-intro-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

#slide-poc-scope .about-ip-list,
#slide-out-of-scope .about-ip-list {
  gap: 46px;
}

#slide-poc-scope .about-ip-item,
#slide-out-of-scope .about-ip-item {
  padding-block: 6px;
}

.about-ip-right {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  height: 100%;
  min-height: 0;
}

.about-ip-img {
  width: 100%;
  height: 100%;
  max-height: 580px;
  object-fit: cover;
  object-position: top left;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
}

#slide-problem-decomposition .about-ip-left {
  justify-content: center;
  height: 100%;
}

#slide-problem-decomposition .about-ip-title {
  font-size: 72px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
}

#slide-problem-decomposition .about-ip-right {
  height: auto;
  align-self: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

#slide-problem-decomposition .about-ip-img {
  width: 100%;
  height: 100%;
  max-height: 713px;
  object-fit: cover;
  object-position: center;
  border: none;
  border-radius: 0;
  display: block;
}

#slide-mock-data-intro .about-ip-left {
  justify-content: center;
  height: 100%;
}

#slide-mock-data-intro .about-ip-label {
  font-size: 14px;
}

#slide-mock-data-intro .about-ip-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
}

#slide-mock-data-intro .about-image-points {
  grid-template-columns: 1fr 1.35fr;
}

#slide-mock-data-intro .about-ip-right {
  height: auto;
  align-self: center;
}

#slide-mock-data-intro .about-ip-img {
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
}

#slide-poc-deployment .about-ip-right {
  align-items: center;
}

#slide-poc-deployment .about-image-points {
  grid-template-columns: minmax(0, 1.2fr) minmax(380px, 0.9fr);
  gap: 40px;
}

#slide-tech-stack .about-image-points {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.95fr);
  gap: 40px;
}

#slide-tech-stack .about-ip-right {
  align-items: center;
  align-self: center;
  height: auto;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel-muted);
  box-shadow: var(--shadow);
}

#slide-tech-stack .about-ip-img {
  width: auto;
  height: auto;
  max-height: 560px;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  border: 0;
  border-radius: 0;
}

#slide-poc-deployment .about-ip-text strong {
  color: var(--supplier-portal-highlight);
  font-weight: 800;
}

#slide-poc-deployment .about-ip-img {
  width: 100%;
  height: auto;
  max-height: 580px;
  object-fit: contain;
  object-position: center;
}

.about-presentation.is-fullscreen #slide-poc-deployment .about-content-card--presentation {
  min-height: 760px;
}

.about-presentation.is-fullscreen #slide-poc-deployment .about-ip-img {
  max-height: 700px;
}

/* ── Problem blocks slide ─────────────────────────────────────── */
.about-problem-slide {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  padding: 8px 0;
}

.about-problem-section-label {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: -8px;
}

.about-problem-quote {
  font-size: 20px;
  line-height: 1.75;
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding: 16px 28px;
  margin: 0;
  background: var(--panel);
  border-radius: 0 8px 8px 0;
}

.about-problem-quote mark {
  background: none;
  color: var(--text);
  font-weight: 700;
}

.about-problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.about-problem-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 24px 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
  position: relative;
  transition: border-color 0.15s;
}

.about-problem-block:hover {
  border-color: var(--accent);
}

.about-problem-block-num {
  position: absolute;
  top: 14px;
  left: 18px;
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.7;
  line-height: 1;
}

.about-problem-block-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(180, 130, 70, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--accent);
}

.about-problem-block-label {
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.about-problem-block-desc {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Problem deep-dive slides ─────────────────────────────────── */
.about-deep-dive {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  height: 100%;
}

.about-deep-dive-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 6px;
}

.about-dd-num {
  font-size: 29px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  opacity: 0.6;
  min-width: 32px;
}

.about-dd-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(180, 130, 70, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0;
}

.about-dd-label {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
}

.about-dd-summary {
  font-size: 18px;
  font-weight: 500;
  color: var(--tblr-orange);
  margin-top: 0;
  margin-bottom: 4px;
}

.about-dd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  column-gap: 14px;
  row-gap: 24px;
  flex: 1;
}

.about-dd-quadrant {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 31px 20px;
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.about-dd-q-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.about-dd-quadrant ul {
  margin: 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.about-dd-quadrant ul li {
  font-size: 17px;
  color: var(--text);
  line-height: 1.45;
}

.about-prompt {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.about-prompt-title {
  margin: 0 0 25px;
  font-size: clamp(26px, 2.5vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
}

@media (min-width: 1200px) {
  .about-prompt-title {
    white-space: nowrap;
  }
}

.about-prompt-section + .about-prompt-section {
  margin-top: 28px;
}

.about-prompt-heading {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.about-prompt-body {
  margin: 0;
  max-width: 112ch;
  font-size: 21px;
  line-height: 1.62;
  color: var(--text);
}

.about-prompt-deliverables {
  margin: 0;
  padding-left: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text);
}

.about-prompt-deliverables > li {
  font-size: 19px;
  line-height: 1.55;
}

.about-prompt-sublist {
  margin: 14px 0 0;
  padding-left: 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
}

.about-prompt-sublist li {
  font-size: 18px;
  line-height: 1.55;
}

/* High-specificity overrides — beat .about-content-card--presentation p (0,1,1) */
.about-content-card--presentation .about-prompt-title {
  font-size: clamp(26px, 2.5vw, 40px);
}
.about-content-card--presentation .about-prompt-heading {
  font-size: 20px;
}
.about-content-card--presentation .about-prompt-body {
  font-size: 19px;
}
.about-content-card--presentation .about-prompt-deliverables > li {
  font-size: 21px;
}
.about-content-card--presentation .about-prompt-sublist li {
  font-size: 19px;
}

.about-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-bullet-list li {
  font-size: 19px;
  color: var(--muted);
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}

.about-hl {
  color: var(--supplier-portal-highlight);
  font-weight: 700;
}

.about-bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

.about-info-block {
  margin-top: 28px;
  padding: 24px 26px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.about-info-block-title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.about-info-block-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-info-block-list li {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
}

.about-info-block--footer {
  margin-top: auto;
}

#slide-scct-as-layer .about-info-block-title {
  font-size: 22px;
  margin: 12px 0 24px;
  color: var(--supplier-portal-highlight);
}

#slide-scct-as-layer .about-info-block-list li strong {
  color: var(--text);
}

#slide-scct-as-layer .about-card-icon {
  display: none;
}

#slide-scct-as-layer .about-content-card--presentation h3 {
  font-size: 32px;
  margin-bottom: 48px;
}

#slide-scct-as-layer .about-bullet-list {
  gap: 16px;
}

#slide-scct-as-layer .about-bullet-list li {
  font-size: 20px;
}

#slide-scct-as-layer .about-bullet-list li::before {
  top: 50%;
  transform: translateY(-50%);
}

#slide-supplier-portal .about-content-card--presentation,
#slide-what-about-ai .about-content-card--presentation {
  min-height: 100%;
}

#slide-supplier-portal .about-content-card--presentation h3,
#slide-what-about-ai .about-content-card--presentation h3 {
  font-size: 32px;
  margin-bottom: 48px;
}

#slide-supplier-portal .about-content-card--presentation p,
#slide-what-about-ai .about-content-card--presentation p {
  font-size: 22px;
  line-height: 1.6;
  margin-bottom: 18px;
  color: var(--text);
}

#slide-supplier-portal .about-content-card--presentation p strong {
  color: var(--supplier-portal-highlight);
  font-weight: 800;
}

#slide-supplier-portal .about-bullet-list,
#slide-what-about-ai .about-bullet-list {
  gap: 21px;
  margin-top: 12px;
}

#slide-supplier-portal .about-bullet-list li,
#slide-what-about-ai .about-bullet-list li {
  font-size: 22px;
  line-height: 1.6;
  padding-left: 28px;
}

#slide-supplier-portal .about-bullet-list li::before,
#slide-what-about-ai .about-bullet-list li::before {
  top: 50%;
  transform: translateY(-50%);
}

#slide-supplier-portal .about-info-block,
#slide-what-about-ai .about-info-block {
  margin-top: 60px;
  padding: 22px 26px;
  background: rgba(255, 255, 255, 0.03);
}

#slide-supplier-portal .about-info-block-title,
#slide-what-about-ai .about-info-block-title {
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

#slide-supplier-portal .about-info-block-list li,
#slide-what-about-ai .about-info-block-list li {
  font-size: 20px;
  color: var(--text);
}

.about-prd-slide {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.about-prd-title {
  width: 100%;
  margin: 0 0 25px;
  text-align: left;
  font-size: 34px;
  line-height: 1.15;
  color: var(--text);
  font-weight: 800;
}

.about-prd-shell {
  width: min(980px, 100%);
  margin: 0 auto;
}

.about-prd-scroll {
  max-height: min(66vh, 780px);
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 16px;
  border: 1px solid #d7dfec;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}

.about-prd-doc {
  color: #1f2937;
  background: #ffffff;
  padding: 32px 40px 36px;
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.72;
  user-select: text;
}

.about-prd-doc h2,
.about-prd-doc h3,
.about-prd-doc h4,
.about-prd-doc h5,
.about-prd-doc h6 {
  color: #111827;
  margin: 28px 0 14px;
  line-height: 1.2;
  font-weight: 800;
}

.about-prd-doc h2 {
  font-size: 31px;
  margin-top: 0;
}

.about-prd-doc h3 {
  font-size: 22px;
}

.about-prd-doc h4 {
  font-size: 18px;
}

.about-prd-doc p {
  color: #334155;
  font-size: 16px;
  line-height: 1.72;
  margin: 0 0 16px;
}

.about-prd-doc ul,
.about-prd-doc ol {
  margin: 0 0 18px 24px;
  padding: 0;
  color: #334155;
}

.about-prd-doc li {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.65;
}

.about-prd-doc strong {
  color: #111827;
  font-weight: 800;
}

.about-prd-doc code {
  background: #eef2ff;
  color: #312e81;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.94em;
}

.about-prd-doc pre {
  margin: 18px 0 24px;
  padding: 18px 20px;
  border-radius: 12px;
  background: #0f172a;
  color: #e2e8f0;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}

.about-prd-doc pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.about-prd-scroll::-webkit-scrollbar {
  width: 10px;
}

.about-prd-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.about-prd-scroll::-webkit-scrollbar-track {
  background: #f8fafc;
}

.about-presentation.is-fullscreen .about-prd-scroll {
  max-height: calc(100vh - 230px);
}

/* ── Fullscreen close button ──────────────────────────────────── */
.about-fullscreen-close {
  display: none; /* shown only in fullscreen */
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.15s;
}
.about-fullscreen-close:hover { background: rgba(0,0,0,0.65); }

/* In fullscreen: show X, grow to fill screen */
.about-presentation.is-fullscreen .about-fullscreen-close {
  display: flex;
}

.about-presentation:-webkit-full-screen,
.about-presentation:-moz-full-screen,
.about-presentation:fullscreen {
  background: var(--bg);
  height: 100vh;
}

/* Responsive: stack columns on smaller viewports */
@media (max-width: 900px) {
  .about-slide-columns { grid-template-columns: 1fr; }
  .about-pres-header {
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 20px;
  }
  .about-slide-nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .about-fullscreen-btn {
    grid-column: 2;
    grid-row: 1;
  }
  .about-slide-inner   { padding: 20px 20px; }
  .about-bubble-line   { width: 28px; }
  .about-content-card--presentation { padding: 24px; }
  .about-scope-intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .about-scope-intro-headline {
    font-size: 34px;
  }
  .about-scope-intro-body {
    font-size: 18px;
  }
  .about-scope-intro-right {
    min-height: 320px;
  }
  .about-image-points {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .about-ip-left {
    gap: 28px;
  }
  .about-ip-list {
    gap: 18px;
  }
  .about-ip-item {
    gap: 16px;
  }
  .about-ip-text {
    font-size: 18px;
  }
  .about-prd-title {
    font-size: 28px;
  }
  .about-prd-doc {
    padding: 24px 22px 28px;
  }
  .about-ip-right {
    justify-content: center;
  }
  .about-ip-img {
    width: 100%;
    max-width: 100%;
    max-height: 420px;
  }
}
