/* IIT Grid UX v3 — Sovereign Institutional Precision Design System (DESIGN.md)
   Self-hosted offline WOFF2 fonts · WCAG 2.1 AA contrast · Compact 84px shell · Slide-over Drawers */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../vendor/fonts/plus-jakarta-sans-latin-wght-normal.13d1b429e990.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../vendor/fonts/inter-latin-wght-normal.8e433c0592f7.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../vendor/fonts/jetbrains-mono-latin-wght-normal.b058178d7f30.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #09192f;
  --navy-mid: #122d52;
  --blue: #175085;
  --teal: #0b7272;
  --orange: #b94404;
  --orange-bright: #f26b1d;
  --emerald: #047857;
  --rose: #be123c;
  --slate-bg: #f6f8fb;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #475569;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(9, 25, 47, 0.05), 0 1px 3px rgba(9, 25, 47, 0.03);
  --shadow-md: 0 8px 24px rgba(9, 25, 47, 0.08);
  --shadow-lg: 0 18px 44px rgba(9, 25, 47, 0.18);
  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

[x-cloak] { display: none !important; }

html, body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  background: var(--slate-bg);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.55;
  letter-spacing: -0.005em;
}

h1, h2, h3, h4, .brand-name, .page-title, .card-title, .kpi-val {
  font-family: var(--font-display);
}

code, pre, .kanban-ref, .ig-mono {
  font-family: var(--font-mono);
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.ig-icon {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}

/* Accessible Skip Link (GIGW 3.0 / WCAG 2.4.1) */
.ig-skip-link {
  position: absolute;
  left: -9999px;
  top: 6px;
  z-index: 200;
  background: var(--navy);
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  border: 2px solid var(--orange-bright);
}
.ig-skip-link:focus {
  left: 12px;
}

/* Compact 2-Layer Executive Shell (~84px total vs ~195px in v2) */
.demo-ribbon {
  background: #071426;
  color: #cbd5e1;
  font-size: 11px;
  min-height: 28px;
  padding: 4px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.demo-ribbon strong {
  color: #fcd34d;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.demo-pill {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  padding: 1px 8px;
  font-size: 10.5px;
  font-weight: 500;
}

.topbar {
  background: var(--navy);
  min-height: 56px;
  padding: 0 14px;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 10px rgba(9, 25, 47, 0.16);
}
.brand-logo {
  width: 32px;
  height: 32px;
}
.brand-lockup {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}
.brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.brand-sub {
  font-family: var(--font-display);
  font-size: 8.6px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #cbd5e1;
  margin-top: 2px;
  white-space: nowrap;
}
.hero-brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fcd34d;
  margin: 2px 0 0;
  line-height: 1.3;
}
.auth-brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.auth-brand-lockup img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(185, 68, 4, 0.45);
}
.auth-brand-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
}
.auth-brand-tagline {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.015em;
  color: var(--blue);
  margin-top: 1px;
}

.nav-links {
  gap: 2px;
  flex-wrap: nowrap;
  overflow: visible;
  min-width: 0;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #cbd5e1 !important;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 7px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff !important;
}
.nav-link.active {
  background: rgba(217, 88, 14, 0.22);
  color: #ffffff !important;
  box-shadow: inset 0 -2px 0 var(--orange-bright);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cmd-trigger {
  height: 34px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.cmd-trigger:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}
.kbd-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

.topbar-feedback-btn {
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.persona-trigger {
  height: 38px;
  padding: 4px 10px 4px 6px;
  border-radius: 9px;
  gap: 8px;
}
.persona-meta strong {
  font-size: 12px;
  font-weight: 700;
}
.persona-meta small {
  font-size: 10px;
  color: #cbd5e1;
}

.ig-mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Main Container — Reclaimed Vertical Workspace */
.container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 16px 24px 36px;
}

/* Slim Collapsible Persona Context Strip (~34px collapsed vs ~86px in v2) */
.persona-context-bar {
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: 10px;
  padding: 6px 12px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  display: block;
}
.persona-context-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  min-height: 24px;
}
.persona-context-summary::-webkit-details-marker { display: none; }
.persona-context-summary-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--navy);
}
.persona-context-toggle-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
}
.persona-context-expanded {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.persona-context-blurb {
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
  max-width: 780px;
}
.persona-context-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Standardized Cotton Page Header */
.ig-page-header, .page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.ig-page-header-main {
  flex: 1 1 420px;
  min-width: 0;
}
.ig-page-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.page-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 3px;
}
.page-title {
  margin: 0;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--navy);
  line-height: 1.22;
}
.page-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 760px;
}

/* Crisp Executive Cards & KPIs */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card.card-navy {
  background: linear-gradient(145deg, #09192f 0%, #122d52 100%);
  border-color: #1e3a5f;
  color: #ffffff;
}
.card.card-navy .card-title { color: #ffffff; }
.card.card-teal {
  background: #f0fafa;
  border-color: #99e2e2;
}
.card.card-amber {
  background: #fff8f1;
  border-color: #fed7aa;
}
.card-title {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--navy);
}
.ig-muted-sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.ig-kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.ig-kpi-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: var(--navy);
}
.ig-kpi-icon.accent-saffron, .ig-kpi-icon.accent-orange { background: #fff5eb; color: var(--orange); }
.ig-kpi-icon.accent-teal { background: #e6f6f6; color: var(--teal); }
.ig-kpi-icon.accent-blue { background: #e8f1fb; color: var(--blue); }

.kpi {
  padding: 15px 16px;
}
.kpi-val {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--navy);
}
.kpi-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.kpi-sub {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
}

/* WCAG 2.1 AA Verified Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, transform 0.08s ease;
  min-height: 36px;
}
.btn:active { transform: translateY(0.5px); }
.btn-sm {
  font-size: 12px;
  padding: 6px 11px;
  min-height: 32px;
  border-radius: 7px;
}
.btn-primary {
  background: var(--orange);
  color: #ffffff !important;
  border-color: var(--orange);
}
.btn-primary:hover { background: #9a3703; border-color: #9a3703; }
.card-head {
  flex-wrap: wrap;
  gap: 10px;
}
.footer-privacy-text a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.btn-navy {
  background: var(--navy);
  color: #ffffff !important;
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-mid); }
.btn-teal {
  background: var(--teal);
  color: #ffffff !important;
  border-color: var(--teal);
}
.btn-teal:hover { background: #085959; }
.btn-outline {
  background: #ffffff;
  color: var(--navy) !important;
  border-color: var(--border-strong);
}
.btn-outline:hover { background: #f8fafc; border-color: #94a3b8; }
.btn-danger {
  background: #fff1f2;
  color: var(--rose) !important;
  border-color: #fecdd3;
}
.btn-danger:hover { background: #ffe4e6; border-color: #fda4af; }

.ig-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ig-icon-btn:hover { background: #f1f5f9; color: var(--navy); }

/* Refined Badges (WCAG AA Contrast) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
}
.badge-saffron, .badge-orange { background: #fff3e6; color: #9a3412; border: 1px solid #fed7aa; }
.badge-navy { background: #e8eef7; color: #09192f; border: 1px solid #cbd5e1; }
.badge-teal { background: #e6f6f6; color: #0f5c5c; border: 1px solid #99e2e2; }
.badge-blue { background: #e8f1fb; color: #164878; border: 1px solid #bfdbfe; }
.badge-green, .badge-emerald { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.badge-amber { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.badge-rose { background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; }
.badge-slate { background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; }

/* Basecoat / shadcn-Style Inputs & Form Controls */
.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.form-group input,
.form-group select,
.form-group textarea,
.ig-input {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 8px 11px;
  transition: border-color 0.14s, box-shadow 0.14s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.ig-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 80, 133, 0.14);
}

/* Slide-Over Global Dossier Drawer */
.ig-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 25, 47, 0.45);
  backdrop-filter: blur(2px);
  z-index: 120;
  display: flex;
  justify-content: flex-end;
}
.ig-drawer-panel {
  width: min(580px, 100vw);
  height: 100vh;
  background: #ffffff;
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ig-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}
.ig-drawer-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
}
.ig-drawer-subtitle {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.ig-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px 28px;
}
.ig-drawer-section {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 14px;
  margin-bottom: 12px;
  background: #ffffff;
}
.ig-drawer-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 8px;
}

.ig-drawer-loading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0;
}
.ig-skeleton-line {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: igShimmer 1.2s infinite;
}
@keyframes igShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Empty State Component */
.ig-empty-state {
  text-align: center;
  padding: 28px 18px;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  background: #f8fafc;
}
.ig-empty-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  margin: 0 auto 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--blue);
  display: grid;
  place-items: center;
}
.ig-empty-title {
  display: block;
  font-size: 14px;
  color: var(--navy);
}
.ig-empty-desc {
  margin: 4px auto 0;
  font-size: 12.5px;
  color: var(--muted);
  max-width: 420px;
}
.ig-empty-cta { margin-top: 12px; }

/* ECharts & GIGW 3.0 Accessible Table Component */
.ig-chart-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ig-chart-stage {
  border-radius: 10px;
  overflow: hidden;
}
.ig-accessible-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 9px;
}
.ig-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.ig-table th {
  background: #f8fafc;
  color: var(--navy);
  font-weight: 700;
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.ig-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--ink-soft);
  vertical-align: top;
}
.ig-table tr:hover td {
  background: #f8fafc;
}

/* HTMX Loading Indicators */
.htmx-indicator {
  display: none;
}
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Sleek Floating Feedback Pill (non-obtrusive) */
.fab-feedback {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  background: var(--navy);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}
.fab-feedback:hover {
  background: var(--navy-mid);
  border-color: var(--orange-bright);
}

/* Mobile Slide-Out Navigation Drawer */
.ig-mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 25, 47, 0.55);
  z-index: 125;
  display: flex;
}
.ig-mobile-nav-panel {
  width: min(300px, 85vw);
  height: 100vh;
  background: var(--navy);
  color: #ffffff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}
.ig-mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 8px;
  color: #e2e8f0 !important;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none !important;
  min-height: 44px;
}
.ig-mobile-nav-link.active {
  background: rgba(217, 88, 14, 0.25);
  color: #ffffff !important;
}

/* Segmented Tabs & Compare Bar */
.ig-compare-bar {
  position: sticky;
  bottom: 14px;
  z-index: 55;
  background: var(--navy);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 10px 16px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}

/* Responsive Breakpoints (GIGW 3.0 Reflow to 320px · Zero Silent Topbar Clipping 1081-1440px) */
@media (max-width: 1380px) {
  .topbar {
    padding: 0 10px;
    gap: 6px;
  }
  .nav-link {
    font-size: 11.5px;
    padding: 5px 6px;
    gap: 4px;
  }
  .nav-link .ig-icon {
    width: 13px;
    height: 13px;
  }
  .cmd-trigger .kbd-chip { display: none; }
  .topbar-feedback-btn .fb-label { display: none; }
  .persona-meta {
    max-width: 132px;
    overflow: hidden;
  }
  .persona-meta strong,
  .persona-meta small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 1220px) {
  .brand { gap: 7px; }
  .brand-logo { width: 28px; height: 28px; }
  .brand-name { font-size: 15px; }
  .brand-sub {
    font-size: 8px;
    white-space: normal;
    max-width: 146px;
    line-height: 1.12;
  }
  .nav-links { gap: 1px; }
  .nav-link {
    font-size: 11px;
    padding: 5px 5px;
    gap: 3px;
  }
  .nav-link .ig-icon {
    width: 12px;
    height: 12px;
  }
  .topbar-right { gap: 5px; }
  .cmd-trigger { padding: 0 8px; }
  .cmd-trigger .cmd-label { display: none; }
  .topbar-feedback-btn { padding: 0 8px; }
  .persona-trigger {
    padding: 3px 7px 3px 5px;
    gap: 5px;
  }
  .persona-meta { max-width: 96px; }
}

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .ig-mobile-menu-btn { display: inline-flex; }
}

@media (max-width: 768px) {
  .demo-ribbon { display: none; }
  .topbar { padding: 6px 12px; min-height: 58px; }
  .brand-lockup { min-width: 0; }
  .brand-sub {
    display: block;
    font-size: 9px;
    line-height: 1.15;
    white-space: normal;
    max-width: 195px;
  }
  .persona-meta { display: none; }
  .cmd-trigger .cmd-label, .cmd-trigger .kbd-chip { display: none; }
  .topbar-feedback-btn .fb-label { display: none; }
  .container { padding: 12px 12px 68px; }
  .page-title { font-size: 20px; }
  .grid-4, .grid-3, .grid-2, .grid-main-side, .grid-side-main {
    grid-template-columns: 1fr !important;
  }
  .kanban-board {
    grid-template-columns: 1fr !important;
  }
  .fab-feedback span.fab-label { display: none; }
  .fab-feedback {
    padding: 10px;
    right: 12px;
    bottom: 12px;
  }
  .persona-menu {
    width: min(340px, calc(100vw - 24px));
  }
}

/* Prevent G0 guided journey card badges from overflowing narrow 5-col desktop widths (1201-1400px) */
.ig-g0-journey-card .badge {
  white-space: normal;
}

@media print {
  .demo-ribbon, .topbar, .fab-feedback, .persona-context-bar, .no-print {
    display: none !important;
  }
  body { background: #ffffff; }
  .card { box-shadow: none; break-inside: avoid; }
}
