:root {
  color-scheme: light;
  --navy: #0f172a;
  --ink: #1e293b;
  --muted: #64748b;
  --teal: #2563eb;
  --teal-2: rgba(37, 99, 235, 0.08);
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-subtle: rgba(37, 99, 235, 0.08);
  --bg: #ffffff;
  --panel: #ffffff;
  --line: #e2e8f0;
  --border-input: #cbd5e1;
  --danger: #ef4444;
  --success: #16a34a;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
dl, dt, dd {
  margin: 0;
  padding: 0;
}
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  overflow-x: hidden;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
  overflow-x: hidden;
}
img,
video {
  max-width: 100%;
  height: auto;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 8px;
}
h2 {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 5px;
}
h3 {
  font-size: 14px;
  color: var(--navy);
}
small {
  color: var(--muted);
}
.app-shell {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  overflow-y: auto;
  inset: 0 auto 0 0;
  width: 246px;
  background: #ffffff;
  border-right: 1px solid var(--line);
  box-shadow: 2px 0 12px rgba(23, 50, 74, 0.03);
  display: flex;
  flex-direction: column;
  padding: 22px 14px;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 2px 10px 25px;
}
.brand strong {
  display: block;
  color: var(--navy);
  font-size: 16px;
}
.brand small {
  display: block;
  font-size: 11px;
  margin-top: 1px;
}
.logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: none;
}
.side-label {
  font-size: 10px;
  font-weight: 750;
  color: var(--muted);
  letter-spacing: 0.09em;
  padding: 0 11px 9px;
}
.side-section-label {
  font-size: 10px;
  font-weight: 750;
  color: var(--muted);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 12px 11px 5px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
}
.side-section-label:first-of-type {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}
.sidebar nav {
  display: grid;
  gap: 3px;
}
.nav-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  padding: 10px 11px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.15s ease;
}
.nav-item:hover {
  background: #f1f5f9;
  color: var(--navy);
}
.nav-item.active {
  background: var(--teal-2);
  color: var(--teal);
  font-weight: 750;
}
.nav-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex: none;
}
.nav-icon svg,
.mobile-menu svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mobile-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.drawer-close {
  display: none;
  border: 0;
  background: #f1f5f9;
  color: var(--navy);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
}
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.account-mini {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 8px 12px;
}
.account-mini strong,
.account-mini small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-mini strong {
  font-size: 12px;
  color: var(--navy);
  max-width: 170px;
}
.account-mini small {
  font-size: 10px;
  margin-top: 2px;
  max-width: 170px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal-2);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  flex: none;
}
.signout {
  color: var(--muted);
  transition: color 0.15s ease;
}
.signout:hover {
  color: var(--danger);
}
.main {
  margin-left: 246px;
  min-height: 100vh;
}
.topbar {
  height: 68px;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 34px;
  gap: 20px;
  position: fixed;
  top: 10px;
  left: 256px;
  right: 10px;
  border-radius: 12px;
  z-index: 10;
  box-shadow: var(--shadow);
}
.top-context {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.top-context span:first-child {
  color: var(--navy);
}
.dot {
  color: var(--muted);
}
.account {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
}
.mobile-signout {
  display: none;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--navy);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 10px;
  font-weight: 750;
}
.account strong,
.account small {
  display: block;
}
.account strong {
  font-size: 12px;
  color: var(--navy);
}
.account small {
  font-size: 10px;
  margin-top: 1px;
}
.mobile-menu {
  display: none;
  border: 0;
  background: transparent;
  color: var(--navy);
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
}
.mobile-menu:hover {
  background: #f1f5f9;
}
.content {
  max-width: 1380px;
  margin: 0 auto;
  padding: 112px 38px 70px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 25px;
  margin-bottom: 25px;
}
.page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.page-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--teal);
}
.grid.two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 21px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.panel.narrow {
  max-width: 930px;
  margin: 0 auto;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}
.panel-head p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.link-btn {
  border: 0;
  background: transparent;
  color: var(--teal);
  font-weight: 750;
  font-size: 12px;
  padding: 3px 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.stat {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 17px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.stat span,
.stat small {
  display: block;
}
.stat span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 650;
}
.stat strong {
  display: block;
  color: var(--navy);
  font-size: 28px;
  line-height: 1.1;
  margin: 7px 0 5px;
}
.stat small {
  font-size: 10px;
}
.stage-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.stage-grid div {
  background: #ffffff;
  padding: 14px 8px;
  text-align: center;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.stage-grid strong,
.stage-grid span {
  display: block;
}
.stage-grid strong {
  font-size: 19px;
  color: var(--navy);
}
.stage-grid span {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.record-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 110px;
  gap: 16px;
  align-items: center;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: left;
  padding: 12px 14px;
  border-radius: 6px;
  transition: background 0.15s ease;
}
.record-row:hover {
  background: #f8fafc;
}
.record-row .record-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  text-align: right;
}
.record-row:hover .dash-row-arrow {
  transform: translateX(3px);
  color: var(--teal);
}
.record-row:first-child {
  border-top: 0;
}
.record-row.project-row {
  grid-template-columns: minmax(0, 1fr) 140px 30px;
  gap: 16px;
}
.record-main {
  min-width: 0;
}
.record-main b,
.record-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.record-main b {
  font-size: 12px;
  color: var(--navy);
}
.record-main small {
  font-size: 10px;
  margin-top: 3px;
}
.record-meta {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.progress-mini {
  width: 90px;
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.progress-mini i {
  display: block;
  height: 100%;
  background: var(--teal);
  border-radius: inherit;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 750;
  background: #edf2f7;
  color: #334155;
  white-space: nowrap;
}
.badge.validated,
.badge.completed,
.badge.verified,
.badge.active {
  background: #e6f9f0;
  color: #0d6e38;
}
.badge.rejected,
.badge.failed {
  background: #feebee;
  color: #b91c1c;
}
.badge.high {
  background: #fef3c7;
  color: #853a06;
}
.badge.in-review,
.badge.clarification,
.badge.pending {
  background: #fff7ed;
  color: #a83707;
}
.badge.in-progress,
.badge.testing,
.badge.validation {
  background: #e0f2fe;
  color: #0369a1;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  min-height: 38px;
  box-sizing: border-box;
}
.btn.primary {
  background: var(--teal);
  color: #ffffff;
}
.btn.primary:hover {
  background: var(--primary-hover);
}
.btn.secondary {
  background: #ffffff;
  color: var(--navy);
  border: 1px solid var(--border-input);
}
.btn.secondary:hover {
  background: #f8fafc;
  border-color: var(--navy);
}
.btn.ghost-btn {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-input);
}
.btn.ghost-btn:hover {
  background: #f1f5f9;
  border-color: var(--navy);
}
.btn.danger-outline {
  background: #ffffff;
  color: var(--danger);
  border: 1px solid #fca5a5;
}
.btn.danger-outline:hover {
  background: #fef2f2;
}
.btn.wide {
  width: 100%;
}
.button-row,
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-stack {
  display: grid;
  gap: 15px;
}
.form-grid label,
.form-stack label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-grid input,
.form-grid select,
.form-grid textarea,
.form-stack input,
.form-stack select,
.form-stack textarea,
.filters input,
.filters select,
.inline-form input {
  width: 100%;
  border: 1px solid var(--border-input);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 10px 11px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
::placeholder {
  color: #596e80;
  opacity: 1;
}
.form-grid textarea,
.form-stack textarea {
  resize: vertical;
  min-height: 88px;
}
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.form-stack input:focus,
.form-stack select:focus,
.form-stack textarea:focus,
.filters input:focus,
.filters select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.20);
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.privacy-note,
.readonly-note {
  display: flex;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 11px;
}
.privacy-note strong,
.readonly-note strong {
  color: var(--navy);
}
.privacy-note span,
.readonly-note span {
  color: var(--muted);
}
.filters {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 1fr 1.2fr auto auto;
  gap: 8px;
  margin-bottom: 17px;
}
.table-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 110px;
  gap: 16px;
  padding: 10px 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.table-head span:last-child {
  text-align: right;
}
.records {
  min-width: 0;
}
.detail-title {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0;
}
.facts div {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  min-width: 0;
}
.facts dt {
  font-size: 9px;
  color: var(--muted);
}
.facts dd {
  margin: 3px 0 0;
  font-size: 11px;
  color: var(--navy);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.prose {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ai-grid div {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
}
.ai-grid span,
.ai-grid b {
  display: block;
}
.ai-grid span {
  font-size: 9px;
  color: var(--muted);
}
.ai-grid b {
  font-size: 12px;
  color: var(--navy);
  margin-top: 4px;
}
.muted-block {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.section-title {
  margin: 20px 0 8px;
}
.compact-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 10px 0;
  font-size: 11px;
}
.compact-row span {
  min-width: 0;
}
.compact-row small {
  display: block;
  font-size: 9px;
  margin-top: 3px;
}
.inline-form {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.inline-form .btn {
  flex: none;
}
.comment {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
  font-size: 11px;
}
.comment b {
  color: var(--navy);
}
.comment span {
  color: var(--ink);
}
.comment small {
  font-size: 9px;
  white-space: nowrap;
}
.review-row,
.partner-card {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 17px 0;
}
.review-row:first-child,
.partner-card:first-child {
  border-top: 0;
}
.review-row h3,
.partner-card h2 {
  margin: 4px 0;
  font-size: 14px;
}
.review-row p,
.partner-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.collab-item,
.capability-item,
.milestone,
.user-row,
.report-row,
.notification-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 13px 0;
}
.collab-item:first-of-type,
.capability-item:first-of-type,
.milestone:first-of-type,
.user-row:first-of-type,
.report-row:first-of-type,
.notification-row:first-of-type {
  border-top: 0;
}
.collab-item b,
.collab-item small,
.capability-item b,
.capability-item small {
  display: block;
}
.collab-item b,
.capability-item b {
  font-size: 11px;
  color: var(--navy);
}
.collab-item small,
.capability-item small {
  font-size: 9px;
  margin-top: 3px;
}
.capability-item span {
  font-size: 10px;
  color: var(--muted);
  max-width: 55%;
  text-align: right;
}
.compact-form {
  border-top: 1px solid var(--line);
  margin-top: 15px;
  padding-top: 17px;
}
.project-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: flex-start;
}
.project-top p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.project-top select {
  border: 1px solid var(--border-input);
  border-radius: 8px;
  padding: 9px;
  background: #ffffff;
  color: var(--ink);
}
.progress {
  height: 9px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 20px;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--teal);
  border-radius: inherit;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10px;
  color: var(--muted);
}
.progress-label b {
  color: var(--navy);
}
.milestone {
  align-items: center;
}
.milestone b,
.milestone small {
  display: block;
}
.milestone b {
  font-size: 11px;
  color: var(--navy);
}
.milestone small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
.milestone select {
  border: 1px solid var(--border-input);
  border-radius: 7px;
  padding: 7px;
  font-size: 10px;
  background: #ffffff;
  color: var(--ink);
}
.validation {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 10px;
}
.validation p {
  grid-column: 1/-1;
  font-size: 10px;
  color: var(--muted);
  margin: 3px 0 0;
}
.impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.impact-grid div {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
}
.impact-grid span,
.impact-grid b,
.impact-grid small {
  display: block;
}
.impact-grid span {
  font-size: 9px;
  color: var(--muted);
}
.impact-grid b {
  font-size: 12px;
  color: var(--navy);
  margin: 3px 0;
}
.impact-grid small {
  font-size: 9px;
}
.clean-list {
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.8;
}
.user-table {
  grid-template-columns: minmax(0, 2fr) 1fr 1fr auto;
  gap: 13px;
}
.user-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 1fr 1fr auto;
  gap: 13px;
}
.user-row b,
.user-row small {
  display: block;
}
.user-row b {
  font-size: 11px;
  color: var(--navy);
}
.user-row small {
  font-size: 9px;
  margin-top: 3px;
}
.report-row,
.table-head.report-table {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 1fr 1fr 1fr;
  gap: 13px;
}
.report-row span {
  font-size: 10px;
}
.report-row b,
.report-row small {
  display: block;
}
.report-row b {
  color: var(--navy);
}
.report-row small {
  color: var(--muted);
  margin-top: 2px;
}
.notification-row {
  width: 100%;
  background: #ffffff;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-top: 1px solid var(--line);
  text-align: left;
  padding: 13px 16px !important;
  border-radius: 8px;
  transition: background 0.15s ease;
}
.notification-row:hover {
  background: #f8fafc;
}
.notification-row div {
  min-width: 0;
}
.notification-row b,
.notification-row small {
  display: block;
}
.notification-row b {
  font-size: 11px;
  color: var(--navy);
}
.notification-row small {
  font-size: 9px;
  margin-top: 3px;
}
.notification-row.read {
  opacity: 0.85;
}
.notification-row.read b {
  color: var(--muted);
}
.unread {
  font-size: 9px;
  color: var(--teal);
  font-weight: 800;
}
.profile-summary {
  text-align: center;
}
.profile-summary .facts {
  text-align: left;
}
.profile-summary .large {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  font-size: 16px;
}
.profile-summary h2 {
  font-size: 18px;
  margin-bottom: 2px;
}
.profile-summary > p {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 18px;
}
.profile-summary .facts {
  text-align: left;
}
.alert {
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 12px;
  margin-bottom: 15px;
}
.alert.error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}
.empty {
  text-align: center;
  padding: 35px 12px;
  color: var(--muted);
  font-size: 12px;
}
.forbidden {
  max-width: 600px;
  margin: 50px auto;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
}
.forbidden p {
  color: var(--muted);
  font-size: 13px;
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
  background-color: #ffffff;
  background-image:
    linear-gradient(to right, rgba(23, 50, 74, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 50, 74, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  position: relative;
  z-index: 1;
}
#auth-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.auth-card {
  width: min(520px, 100%);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 20px 55px rgba(23, 50, 74, 0.08);
  padding: 34px;
  position: relative;
  opacity: 1;
  z-index: 2;
}
.brand-auth {
  padding: 0;
  margin-bottom: 34px;
}
.auth-copy h1 {
  margin-top: 7px;
}
.auth-copy p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  margin-bottom: 22px;
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-right: 58px;
}
.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  height: 31px;
  border: 0;
  background: #f1f5f9;
  color: var(--teal);
  border-radius: 6px;
  padding: 0 9px;
  font-size: 10px;
  font-weight: 750;
}
.auth-note {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
}
.auth-note strong {
  color: var(--navy);
}
code {
  background: #f1f5f9;
  color: var(--navy);
  border: 1px solid var(--line);
  padding: 2px 5px;
  border-radius: 4px;
}
@media (max-width: 1100px) {
  .sidebar {
    width: 220px;
  }
  .main {
    margin-left: 220px;
  }
  .topbar {
    left: 230px;
  }
  .content {
    padding: 106px 24px 70px;
  }
  .stage-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .filters input {
    grid-column: 1/-1;
  }
}
@media (max-width: 760px) {
  .sidebar {
    display: none;
  }
  .mobile-signout {
    display: inline-flex;
  }
  .drawer-open {
    overflow: hidden;
  }
  .mobile-drawer-head .brand {
    padding-bottom: 20px;
  }
  .drawer-close {
    display: grid;
    place-items: center;
  }
  .sidebar.mobile-open {
    display: flex;
    width: 260px;
    box-shadow: 10px 0 30px rgba(20, 45, 55, 0.16);
  }
  .main {
    margin-left: 0;
  }
  .topbar {
    height: 58px;
    padding: 0 15px;
    left: 10px;
  }
  .mobile-menu {
    display: block;
  }
  .top-context {
    display: none;
  }
  .account div {
    display: none;
  }
  .content {
    padding: 80px 13px 45px;
  }
  .page-head {
    display: block;
    margin-bottom: 19px;
  }
  .page-head h1 {
    font-size: 24px;
    margin: 6px 0 8px;
  }
  .page-actions {
    justify-content: flex-start;
    margin-top: 14px;
  }
  .page-actions .btn {
    width: 100%;
  }
  .grid.two {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .panel {
    padding: 16px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .stat {
    padding: 13px;
  }
  .stat strong {
    font-size: 22px;
  }
  .stage-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .record-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .record-row .record-meta {
    display: none;
  }
  .record-row.project-row {
  grid-template-columns: minmax(0, 1fr) 140px 30px;
  gap: 16px;
}
  .record-row.project-row .record-meta {
    display: block;
    font-size: 10px;
    text-align: right;
  }
  .progress-mini {
    width: 65px;
  }
  .filters,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .form-actions {
    justify-content: stretch;
    flex-direction: column;
  }
  .form-actions .btn {
    width: 100%;
  }
  .facts {
    grid-template-columns: 1fr;
  }
  .ai-grid {
    grid-template-columns: 1fr 1fr;
  }
  .review-row,
  .partner-card {
    display: block;
  }
  .review-row .actions,
  .partner-card .btn {
    margin-top: 12px;
  }
  .partner-card .support-form {
    margin-top: 14px;
  }
  .capability-item {
    display: block;
  }
  .capability-item span {
    display: block;
    max-width: none;
    text-align: left;
    margin-top: 5px;
  }
  .table-head {
    display: none;
  }
  .user-row,
  .report-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .user-row .btn {
    width: max-content;
  }
  .inline-form {
    display: grid;
  }
  .inline-form .btn {
    width: 100%;
  }
  .comment {
    grid-template-columns: 1fr;
  }
  .comment small {
    grid-column: 1;
  }
  .project-top {
    display: block;
  }
  .project-top select {
    margin-top: 12px;
    width: 100%;
  }
  .auth-shell {
    padding: 12px;
  }
  .auth-card {
    padding: 24px;
  }
  .auth-note {
    display: block;
  }
  .auth-note span {
    display: block;
    margin-top: 5px;
  }
  .sidebar-foot {
    display: block;
  }
  .sidebar.mobile-open .drawer-close {
    display: grid;
  }
}
.evidence-box {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
}
.evidence-box h3 {
  margin-bottom: 3px;
}
.evidence-box p {
  font-size: 10px;
  color: var(--muted);
  margin: 0 0 10px;
}
.upload-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}
.upload-form input[type="file"] {
  min-width: 0;
  flex: 1;
  border: 1px dashed var(--border-input);
  border-radius: 8px;
  padding: 9px;
  background: #f8fafc;
  font-size: 10px;
  color: var(--ink);
}
.check {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
}
.check input {
  width: auto !important;
}
@media (max-width: 760px) {
  .upload-form {
    display: grid;
  }
  .upload-form .btn {
    width: 100%;
  }
}
.audit-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 13px 0;
}
.audit-row:first-child {
  border-top: 0;
}
.audit-row b,
.audit-row small {
  display: block;
}
.audit-row b {
  font-size: 11px;
  color: var(--navy);
}
.audit-row small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
.audit-row time {
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
}
.support-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.support-form select {
  border: 1px solid var(--border-input);
  border-radius: 8px;
  padding: 9px;
  background: #ffffff;
  color: var(--ink);
  font-size: 10px;
  max-width: 180px;
}
@media (max-width: 760px) {
  .support-form {
    display: grid;
  }
  .support-form select {
    max-width: none;
    width: 100%;
  }
}



/* ─── Public Website Shell & Micro-Dot Canvas (MediKiosk Reference Style) ─── */
.public-shell {
  background-color: #ffffff !important;
  background-image: radial-gradient(rgba(15, 23, 42, 0.08) 1.25px, transparent 1.25px);
  background-size: 24px 24px;
  background-position: center top;
  color: var(--ink);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
.public-section {
  background: transparent !important;
}
.public-section:nth-of-type(even) {
  background: transparent !important;
}

/* ─── Floating White Top Navigation (MediKiosk Reference Style) ─── */
.public-nav {
  height: 68px;
  width: calc(100% - 32px);
  max-width: 1140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 16px !important;
  padding: 0 clamp(16px, 2.6vw, 32px);
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 12px -2px rgba(0, 0, 0, 0.025) !important;
  position: sticky;
  top: 16px;
  left: 0;
  right: 0;
  margin: 16px auto 0;
  z-index: 999;
  box-sizing: border-box;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.public-nav.scrolled {
  box-shadow: 0 12px 34px -4px rgba(15, 23, 42, 0.09), 0 4px 12px -2px rgba(15, 23, 42, 0.04) !important;
  border-color: #cbd5e1 !important;
}
.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
  flex: none;
}
.brand-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.22);
}
.brand-svg {
  width: 28px;
  height: 28px;
  display: block;
}
.public-brand .brand-dots,
.brand .brand-dots {
  display: inline-grid;
  grid-template-columns: repeat(2, 7px);
  grid-template-rows: repeat(2, 7px);
  gap: 3.5px;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.08);
  padding: 4px;
  box-sizing: border-box;
  flex-shrink: 0;
}
.public-brand .brand-dots i,
.brand .brand-dots i {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: #2563eb;
  display: block;
}
.public-brand .brand-dots i:nth-child(2),
.public-brand .brand-dots i:nth-child(3),
.brand .brand-dots i:nth-child(2),
.brand .brand-dots i:nth-child(3) {
  background: #0f172a;
}
.public-brand strong {
  display: block;
  color: #0f172a !important;
  font-size: 17.5px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}
.public-brand small {
  display: none !important;
}
.public-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  margin-right: 24px;
}
.public-menu-toggle {
  display: none !important;
}
.public-menu-close {
  display: none !important;
}
.public-link {
  color: #475569 !important;
  font-size: 14px !important;
  font-weight: 550 !important;
  padding: 6px 0 !important;
  border-radius: 0 !important;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: color 0.15s ease !important;
}
.public-link:hover {
  color: #0f172a !important;
  background: transparent !important;
}
.public-link.active {
  color: #0f172a !important;
  font-weight: 700 !important;
  background: transparent !important;
}
.public-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.public-nav-cta {
  background: #2563eb !important;
  color: #ffffff !important;
  padding: 10px 22px !important;
  border-radius: 10px !important;
  font-size: 13.5px !important;
  font-weight: 650 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32) !important;
  border: none !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  flex: none;
}
.public-nav-cta:hover {
  background: #1d4ed8 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.42) !important;
}
.public-nav-cta .arrow {
  font-size: 15px;
  line-height: 1;
}

/* ─── Mobile Top Navigation (max-width: 900px) ─── */
@media (max-width: 900px) {
  .public-nav {
    height: 60px;
    width: calc(100% - 24px);
    top: 10px;
    margin: 10px auto 0;
    padding: 0 14px;
    border-radius: 14px !important;
    gap: 12px;
  }
  .public-nav-actions {
    gap: 8px;
  }
  .public-nav-cta {
    padding: 8px 15px !important;
    font-size: 12.5px !important;
  }
  .public-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #f8fafc !important;
    border: 1px solid var(--line) !important;
    color: #0f172a !important;
    cursor: pointer;
    padding: 0;
    flex: none;
  }
  .public-menu-toggle svg {
    width: 20px;
    height: 20px;
  }
  .public-links {
    display: none !important;
    margin: 0 !important;
  }
  .public-nav.menu-open .public-links {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 76px !important;
    left: 12px !important;
    right: 12px !important;
    background: #ffffff !important;
    border: 1px solid var(--line) !important;
    border-radius: 16px !important;
    padding: 16px 14px !important;
    gap: 4px !important;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12) !important;
    z-index: 1000 !important;
    animation: modalEnter 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    margin: 0 !important;
  }
  .public-nav.menu-open .public-menu-close {
    display: flex !important;
    align-self: flex-end;
    background: #f1f5f9 !important;
    border: 0 !important;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #0f172a !important;
    cursor: pointer;
    margin-bottom: 6px;
    line-height: 1;
  }
  .public-links .public-link {
    color: #0f172a !important;
    width: 100% !important;
    padding: 12px 14px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    background: transparent !important;
    text-align: left !important;
    border: 0 !important;
    box-sizing: border-box !important;
  }
  .public-links .public-link:hover {
    color: #2563eb !important;
    background: rgba(37, 99, 235, 0.06) !important;
  }
  .public-links .public-link.active {
    color: #2563eb !important;
    background: rgba(37, 99, 235, 0.08) !important;
  }
  .public-links .public-nav-signin {
    margin-top: 6px;
    padding-top: 12px !important;
    border-top: 1px solid var(--line) !important;
  }
}

/* ─── Hero Section (Modern White SaaS Layout - MediKiosk Reference) ─── */
.hero {
  background: transparent;
  position: relative;
}
.hero.hero-centered,
.page-hero {
  background: radial-gradient(circle at 50% 30%, rgba(37, 99, 235, 0.04) 0%, transparent 68%) !important;
  min-height: 74vh !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  padding: 80px 20px 70px !important;
  position: relative !important;
  margin-top: 0 !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}
.hero.hero-centered#home,
.hero.hero-centered.hero-home {
  min-height: 82vh !important;
  padding: 100px 20px 80px !important;
}
.hero.hero-centered::before,
.page-hero::before {
  display: none !important;
}
.hero.hero-centered .hero-copy,
.page-hero .hero-copy,
.page-hero-copy {
  position: relative !important;
  z-index: 2 !important;
  max-width: 960px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 22px !important;
  margin: 0 auto !important;
}

/* Eyebrow Pill Badge with Glowing Blue Dot */
.hero-pill,
.pill-eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 999px !important;
  padding: 6px 16px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  margin-bottom: 2px !important;
}
.hero-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
  flex-shrink: 0;
  display: inline-block;
  animation: pulseDot 2.4s infinite ease-in-out;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2); }
  50% { box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.35); }
}

/* Fluid Two-Tone Headline */
.hero.hero-centered h1,
.page-hero h1 {
  font-size: clamp(38px, 6vw, 76px) !important;
  font-weight: 850 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.038em !important;
  color: #0f172a !important;
  margin: 0 !important;
  text-shadow: none !important;
}
.hero-muted {
  color: #94a3b8 !important;
  font-weight: 850 !important;
}

/* Description / Subtitle */
.hero.hero-centered p,
.page-hero p {
  font-size: clamp(15px, 1.8vw, 18px) !important;
  color: #64748b !important;
  font-weight: 450 !important;
  max-width: 640px !important;
  margin: 0 auto !important;
  line-height: 1.6 !important;
  text-shadow: none !important;
}

/* Dual Action Buttons */
.hero-actions {
  display: flex !important;
  gap: 14px !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  margin-top: 14px !important;
}
.hero-btn-primary,
.dark-pill {
  background: #2563eb !important;
  color: #ffffff !important;
  padding: 13px 28px !important;
  border-radius: 10px !important;
  font-size: 14.5px !important;
  font-weight: 650 !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35) !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  margin-top: 0 !important;
}
.hero-btn-primary:hover,
.dark-pill:hover {
  background: #1d4ed8 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45) !important;
}
.hero-btn-primary .arrow,
.dark-pill .arrow {
  font-size: 16px;
  line-height: 1;
}
.hero-btn-secondary {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  padding: 13px 26px !important;
  border-radius: 10px !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.hero-btn-secondary:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
}

@media (max-width: 900px) {
  .hero.hero-centered,
  .page-hero {
    min-height: 60vh !important;
    padding: 70px 20px 50px !important;
  }
}
@media (max-width: 600px) {
  .hero.hero-centered,
  .page-hero {
    min-height: 52vh !important;
    padding: 60px 16px 40px !important;
  }
  .hero.hero-centered h1,
  .page-hero h1 {
    font-size: clamp(28px, 7.8vw, 42px) !important;
  }
  .hero.hero-centered p,
  .page-hero p {
    font-size: 14px !important;
  }
  .hero-actions {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 320px !important;
    gap: 10px !important;
  }
  .hero-btn-primary,
  .hero-btn-secondary,
  .dark-pill {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
  }
}

/* ─── Public Layout Alignment & Modern Components ─── */

.section-intro {
  max-width: 780px;
  margin-bottom: clamp(24px, 4vw, 40px);
}
.section-intro .eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 8px;
}
.section-intro h2 {
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.035em;
  margin: 0 0 12px;
  line-height: 1.18;
}
.section-intro p {
  font-size: clamp(13.5px, 1.4vw, 15.5px);
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* ─── Cards Common Modern UI ─── */
.feature-card,
.role-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(22px, 3vw, 30px);
  box-shadow: 0 4px 20px rgba(23, 50, 74, 0.05);
  transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.25s cubic-bezier(0.2, 0, 0, 1), border-color 0.25s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.feature-card::before,
.role-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--navy));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.feature-card:hover,
.role-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(23, 50, 74, 0.1);
  border-color: var(--teal);
}
.feature-card:hover::before,
.role-card:hover::before {
  opacity: 1;
}

/* Card Badges */
.card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--teal-2);
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
  font-family: inherit;
}
.role-badge {
  display: inline-flex;
  width: fit-content;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--teal-2);
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  font-family: inherit;
}

.feature-card h3,
.role-card h3 {
  font-size: clamp(16px, 1.8vw, 18px);
  font-weight: 750;
  color: var(--navy);
  margin: 0 0 9px;
  line-height: 1.25;
}
.feature-card p,
.role-card p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* ─── Feature Grid (Home Page - 4 columns) ─── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  width: 100%;
  margin-top: 24px;
}
@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ─── Role Grid (About Page - 3 columns / responsive) ─── */
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  width: 100%;
  margin-top: 20px;
}
@media (max-width: 600px) {
  .role-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ─── Solutions Grid (Solutions Page - 3 columns) ─── */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: 100%;
  margin-top: 24px;
}
@media (max-width: 960px) {
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ─── Journey Track (Home Page) ─── */
.journey-track {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 18px;
  margin-top: 18px;
  box-shadow: 0 2px 10px rgba(23, 50, 74, 0.06);
}
.journey-step {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.journey-pill {
  font-size: 12px;
  font-weight: 750;
  color: var(--teal);
  letter-spacing: 0.02em;
  padding: 4px 6px;
}
.journey-sep {
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  padding: 0 8px;
}
@media (max-width: 600px) {
  .journey-track {
    border-radius: 14px;
    padding: 8px 12px;
    gap: 4px;
  }
  .journey-pill {
    font-size: 11px;
  }
  .journey-sep {
    padding: 0 4px;
  }
}

/* ─── Ecosystem Box (About Page) ─── */
.ecosystem-box {
  margin-top: clamp(36px, 6vw, 56px);
  padding-top: clamp(28px, 4vw, 42px);
  border-top: 1px solid var(--line);
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.tag-list span {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 650;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(23, 50, 74, 0.04);
  transition: all 0.2s ease;
}
.tag-list span:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  color: var(--teal);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.15);
}

/* ─── Flow Timeline (Process Page) ─── */
.flow-timeline {
  position: relative;
  max-width: 860px;
  margin: 28px 0 0;
  padding-left: 58px;
}
.flow-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: linear-gradient(180deg, var(--teal) 0%, #0e8b99 50%, var(--teal) 100%);
  border-radius: 2px;
}
.flow-step {
  position: relative;
  margin-bottom: 22px;
}
.flow-step:last-child {
  margin-bottom: 0;
}
.flow-step-node {
  position: absolute;
  left: -58px;
  top: 9px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--teal);
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.18);
  z-index: 2;
  font-family: inherit;
}
.flow-step-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(18px, 2.5vw, 24px) clamp(20px, 3vw, 28px);
  box-shadow: 0 4px 18px rgba(23, 50, 74, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.flow-step-card:hover {
  transform: translateX(4px);
  box-shadow: 0 12px 28px rgba(23, 50, 74, 0.1);
  border-color: var(--teal);
}
.flow-step-card h3 {
  font-size: clamp(16px, 1.8vw, 18px);
  font-weight: 750;
  color: var(--navy);
  margin: 0 0 6px;
  line-height: 1.3;
}
.flow-step-card p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}
@media (max-width: 600px) {
  .flow-timeline {
    padding-left: 46px;
  }
  .flow-timeline::before {
    left: 15px;
  }
  .flow-step-node {
    left: -46px;
    width: 32px;
    height: 32px;
    font-size: 11px;
    top: 14px;
  }
  .flow-step-card {
    padding: 16px 18px;
  }
}

/* ─── Production Multi-Column Public Footer ─── */
.public-footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding: 64px 0 32px;
  width: 100%;
  box-sizing: border-box;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: 48px;
}
.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  width: fit-content;
}
.footer-brand strong {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.footer-tagline {
  font-size: 13px;
  color: #64748b;
  line-height: 1.65;
  margin: 0;
  max-width: 320px;
}
.footer-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #16a34a;
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.2);
  padding: 5px 12px;
  border-radius: 999px;
  width: fit-content;
}
.status-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.25);
  display: inline-block;
  animation: pulseGreen 2s infinite;
}
@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.25); }
  50% { box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.4); }
}
.footer-col h4 {
  font-size: 12.5px;
  font-weight: 750;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 16px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-link {
  font-size: 13.5px;
  color: #64748b;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: color 0.15s ease;
  font-family: inherit;
  display: inline-block;
}
.footer-link:hover {
  color: #2563eb;
}
.footer-text {
  font-size: 13px;
  color: #94a3b8;
  display: block;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12.5px;
  color: #94a3b8;
}
.footer-bottom p {
  margin: 0;
}
.footer-legal {
  display: flex;
  align-items: center;
  gap: 10px;
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}
@media (max-width: 580px) {
  .public-footer {
    padding: 44px 0 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ─── Innovation Pillars Section ─── */
.pillars-section {
  padding-top: 10px;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pillar-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  border-color: #2563eb;
}
.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.pillar-icon svg {
  width: 22px;
  height: 22px;
}
.pillar-card h3 {
  font-size: 16.5px;
  font-weight: 750;
  color: #0f172a;
  margin: 0 0 8px;
}
.pillar-card p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 900px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Pre-Footer CTA Banner ─── */
.cta-banner-section {
  padding: 30px 0 60px;
}
.cta-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 20px;
  padding: clamp(32px, 5vw, 56px) clamp(24px, 4.5vw, 48px);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.cta-banner h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 12px;
  line-height: 1.2;
}
.cta-banner p {
  font-size: clamp(14px, 1.6vw, 16px);
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
}
.cta-banner .hero-pill {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}
.cta-banner .hero-pill-dot {
  background: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.3);
}

/* ─── Trust Banner & Step Role Tags ─── */
.trust-banner {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.trust-banner-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.trust-banner h3 {
  font-size: 17px;
  font-weight: 750;
  color: #0f172a;
  margin: 0 0 8px;
}
.trust-banner p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}
.step-role-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 750;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* ─── Toast Notifications ─── */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--navy);
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(23, 50, 74, 0.15);
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
  max-width: 90vw;
  text-align: center;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Missing Utility Classes ─── */
.audit-list {
  display: grid;
  gap: 0;
}
.badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.table-head.project-table,
.project-table {
  grid-template-columns: minmax(0, 1fr) 140px 30px !important;
}
.project-table + .records .record-row,
.record-row.project-row {
  grid-template-columns: minmax(0, 1fr) 140px 30px;
}
@media (min-width: 1680px) {
  .topbar {
    right: calc(10px + (100% - 246px - 1380px) / 2);
    left: calc(256px + (100% - 246px - 1380px) / 2);
  }
}
.register-step {
  display: grid;
  gap: 15px;
}




/* ═══════════════════════════════════════════════════════════
   EXTENDED UI SYSTEM: TABLES, BADGES, MODALS, CARDS
   ═══════════════════════════════════════════════════════════ */

/* ─── Layout & Utilities ─── */
.public-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 36px);
  box-sizing: border-box;
}
.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}
.back-link {
  border: 0;
  background: transparent;
  color: var(--teal);
  padding: 0;
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}
.back-link:hover {
  text-decoration: underline;
  color: var(--navy);
}
.text-right {
  text-align: right !important;
}
.text-center {
  text-align: center !important;
}
.text-left {
  text-align: left !important;
}
.noscript-home {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}

/* ─── Unified Table Headers & Data Rows Alignment ─── */
.table-head.challenge-table {
  grid-template-columns: minmax(0, 1fr) 110px 110px;
  gap: 16px;
  padding: 10px 14px;
}
.record-status {
  display: flex;
  align-items: center;
  justify-content: center;
}
.table-head.project-table {
  grid-template-columns: minmax(0, 1fr) 140px 30px;
  gap: 16px;
  padding: 10px 14px;
}
.table-head.user-table,
.user-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 180px 110px 110px;
  gap: 16px;
  align-items: center;
  padding: 10px 14px;
}
.user-row {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: transparent;
  transition: background 0.15s ease;
}
.user-row:first-of-type,
.user-row:first-child {
  border-top: 0;
}
.user-row:hover {
  background: #f8fafc;
}
.user-col-main {
  min-width: 0;
}
.user-col-main b {
  display: block;
  font-size: 13px;
  font-weight: 750;
  color: var(--navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-col-main small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-col-role {
  display: flex;
  align-items: center;
  min-width: 0;
}
.user-col-status {
  display: flex;
  align-items: center;
  justify-content: center;
}
.user-col-action {
  text-align: right;
  display: flex;
  justify-content: flex-end;
}
.user-role-select {
  height: 32px;
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 6px;
  border: 1px solid var(--border-input);
  background: #ffffff;
  color: var(--ink);
  width: 100%;
  max-width: 170px;
}

.table-head.report-table,
.report-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 140px 110px 110px;
  gap: 16px;
  align-items: center;
  padding: 10px 14px;
}
.report-row {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: transparent;
  transition: background 0.15s ease;
}
.report-row:first-of-type,
.report-row:first-child {
  border-top: 0;
}
.report-row:hover {
  background: #f8fafc;
}
.report-row b {
  color: var(--navy);
  font-size: 12px;
}

.table-head.audit-table,
.audit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 16px;
  align-items: center;
  padding: 10px 14px;
}
.audit-row {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: transparent;
  transition: background 0.15s ease;
}
.audit-row:first-child {
  border-top: 0;
}
.audit-row:hover {
  background: #f8fafc;
}
.audit-main {
  min-width: 0;
}
.audit-main small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.audit-time {
  text-align: right;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

/* ─── Full WCAG-Compliant Badge Palette ─── */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 750;
  background: #f1f5f9;
  color: #334155;
  white-space: nowrap;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.badge.validated,
.badge.completed,
.badge.verified,
.badge.active {
  background: #dcfce7;
  color: #14532d;
  border-color: #bbf7d0;
}
.badge.rejected,
.badge.failed,
.badge.inactive {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}
.badge.high {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}
.badge.medium {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}
.badge.low {
  background: #e0f2fe;
  color: #075985;
  border-color: #bae6fd;
}
.badge.draft,
.badge.clarification {
  background: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
}
.badge.in-review,
.badge.proposed,
.badge.planning {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}
.badge.approved,
.badge.pilot,
.badge.field-pilot,
.badge.pilot-deployment,
.badge.scaling {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #bae6fd;
}
.badge.impact {
  background: #f3e8ff;
  color: #6b21a8;
  border-color: #e9d5ff;
}

/* ─── Modal System ─── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-dialog {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  width: 100%;
  padding: 28px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
  position: relative;
  animation: modalEnter 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 16px;
  gap: 12px;
}
.modal-head.row-head {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  margin-bottom: 18px;
}
.modal-icon.success {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-dialog h3 {
  font-size: 18px;
  font-weight: 750;
  color: var(--navy);
  margin: 0;
}
.modal-dialog p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 20px;
  text-align: center;
}
.modal-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 8px 0 18px;
  text-align: center;
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}
.modal-close {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
}
.modal-close:hover {
  background: #f1f5f9;
  color: var(--navy);
}

/* ─── Review Queue & Moderation Cards ─── */
.review-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.review-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(23, 50, 74, 0.05);
}
.review-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.review-main {
  min-width: 0;
}
.review-title {
  font-size: 15px;
  font-weight: 750;
  color: var(--navy);
  margin: 6px 0 4px;
  cursor: pointer;
  transition: color 0.15s;
}
.review-title:hover {
  color: var(--teal);
  text-decoration: underline;
}
.review-meta {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.review-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* ─── Partner Grid & Cards ─── */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.partner-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.partner-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(23, 50, 74, 0.05);
}
.partner-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.partner-card-title {
  font-size: 15px;
  font-weight: 750;
  color: var(--navy);
  margin: 6px 0 4px;
  cursor: pointer;
  transition: color 0.15s;
}
.partner-card-title:hover {
  color: var(--teal);
  text-decoration: underline;
}
.partner-card-meta {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.5;
}
.support-role-select {
  height: 36px;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid var(--border-input);
  background: #ffffff;
  color: var(--ink);
  width: 100%;
}

/* ─── Project Detail Elements & Discussions ─── */
.stage-select,
.milestone-status-select {
  height: 32px;
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 6px;
  border: 1px solid var(--border-input);
  background: #ffffff;
  color: var(--ink);
}
.discussion-box {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.comment-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.comment-head b {
  font-size: 12px;
  color: var(--navy);
}
.comment-head time {
  font-size: 10px;
  color: var(--muted);
  margin-left: auto;
}
.comment-body {
  font-size: 12px;
  color: var(--ink);
  line-height: 1.5;
  margin: 0;
}
.compact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.cap-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-2);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(37, 99, 235, 0.15);
}
.avatar.mini {
  width: 24px;
  height: 24px;
  font-size: 10px;
}

/* ─── Project Detail 2x2 Grid ─── */
.project-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
@media (max-width: 900px) {
  .project-grid-2col {
    grid-template-columns: 1fr;
  }
}

/* ─── Responsive Table & Modal Overrides ─── */
@media (max-width: 760px) {
  .table-head.challenge-table,
  .table-head.project-table,
  .table-head.user-table,
  .table-head.report-table,
  .table-head.audit-table {
    display: none;
  }
  .audit-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .audit-time {
    text-align: left;
  }
  .modal-dialog {
    padding: 20px;
    max-width: 92vw;
  }
  .review-actions {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .review-actions {
    grid-template-columns: 1fr;
  }
  .user-role-select {
    max-width: 100%;
  }
}


/* ═══════════════════════════════════════════════════════════
   MODERN DASHBOARD UI SYSTEM
   Clean white/light theme, WCAG 2.1 AA/AAA compliance
   ═══════════════════════════════════════════════════════════ */

/* ─── 1. Dashboard Welcome Hero ─── */
.dash-hero {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 22px;
}
.dash-hero-body {
  min-width: 0;
  flex: 1;
}
.dash-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-2);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 10px;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
  display: inline-block;
  flex-shrink: 0;
}
.role-chip {
  font-size: 11px;
  font-weight: 750;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dash-tag-sep {
  color: var(--muted);
  font-size: 10px;
}
.org-chip {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}
.dash-date-chip {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.dash-hero-title {
  font-size: 26px;
  font-weight: 850;
  color: var(--navy);
  margin: 0 0 6px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.dash-hero-title span {
  color: var(--teal);
}
.dash-hero-desc {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
  max-width: 740px;
}
.dash-hero-desc strong {
  color: var(--navy);
  font-weight: 750;
}
.dash-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}
.dash-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 750;
  border-radius: 9px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(23, 50, 74, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dash-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(23, 50, 74, 0.12);
}

/* ─── 2. High-Impact KPI Stat Cards ─── */
.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.dash-stat-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.dash-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(23, 50, 74, 0.08);
  border-color: rgba(37, 99, 235, 0.38);
}
.dash-stat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.dash-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dash-stat-icon svg {
  width: 18px;
  height: 18px;
}
.dash-stat-success {
  background: rgba(21, 128, 61, 0.1);
  color: var(--success);
}
.dash-stat-teal {
  background: rgba(37, 99, 235, 0.1);
  color: var(--teal);
}
.dash-stat-blue {
  background: rgba(3, 105, 161, 0.1);
  color: #0369a1;
}
.dash-stat-amber {
  background: rgba(180, 83, 9, 0.1);
  color: #b45309;
}
.dash-kpi-pill {
  font-size: 10px;
  font-weight: 750;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.dash-kpi-pill.success {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid rgba(21, 128, 61, 0.2);
}
.dash-kpi-pill.teal {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid rgba(3, 105, 161, 0.2);
}
.dash-kpi-pill.blue {
  background: #e0e7ff;
  color: #3730a3;
  border: 1px solid rgba(55, 48, 163, 0.2);
}
.dash-kpi-pill.amber {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid rgba(146, 64, 14, 0.2);
}
.dash-stat-main {
  min-width: 0;
}
.dash-stat-label {
  font-size: 11.5px;
  font-weight: 650;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}
.dash-stat-val {
  font-size: 32px;
  font-weight: 850;
  color: var(--navy);
  line-height: 1.1;
  display: block;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.dash-stat-meta {
  font-size: 11px;
  color: var(--muted);
  display: block;
}

/* ─── 3. Solution Delivery Pipeline Stepper ─── */
.dash-pipeline-panel {
  margin-bottom: 22px;
}
.dash-panel-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 6px;
}
.dash-pipeline-phases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.dash-phase-card {
  background: #fbfdfe;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dash-phase-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-phase-num {
  font-size: 9.5px;
  font-weight: 850;
  color: var(--teal);
  background: var(--teal-2);
  border: 1px solid rgba(37, 99, 235, 0.16);
  padding: 2px 6px;
  border-radius: 5px;
}
.dash-phase-name {
  font-size: 12.5px;
  font-weight: 750;
  color: var(--navy);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-phase-count {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.dash-phase-count.active {
  color: var(--teal);
  background: rgba(37, 99, 235, 0.09);
  border-color: rgba(37, 99, 235, 0.3);
  font-weight: 800;
}
.dash-stage-nodes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.dash-stage-node {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  min-width: 0;
}
.dash-stage-node:hover {
  transform: translateY(-1px);
}
.dash-stage-node.has-projects {
  border-color: var(--teal);
  background: var(--teal-2);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}
.dash-stage-top {
  display: flex;
  align-items: center;
  justify-content: center;
}
.dash-stage-badge {
  font-size: 16px;
  font-weight: 850;
  color: var(--navy);
  line-height: 1;
}
.dash-stage-node.has-projects .dash-stage-badge {
  color: var(--teal);
}
.dash-stage-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.25;
  text-align: center;
  word-break: break-word;
}
.dash-stage-node.has-projects .dash-stage-title {
  color: var(--ink);
  font-weight: 700;
}

/* ─── 4. Enhanced Dashboard Record Rows ─── */
.dash-records-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.dash-record-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 110px;
  gap: 14px;
  align-items: center;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: left;
  padding: 12px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.dash-record-row:first-child {
  border-top: 0;
}
.dash-record-row:hover {
  background: #f8fafc;
}
.dash-row-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.code-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9.5px;
  font-weight: 750;
  color: var(--navy);
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.dash-domain-pill {
  font-size: 9.5px;
  font-weight: 650;
  color: var(--teal);
  background: var(--teal-2);
  border: 1px solid rgba(37, 99, 235, 0.14);
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}
.dash-stage-pill {
  font-size: 9.5px;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  border: 1px solid rgba(3, 105, 161, 0.2);
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}
.dash-row-title {
  font-size: 13px;
  font-weight: 750;
  color: var(--navy);
  display: block;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-row-sub {
  font-size: 10.5px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-row-status {
  white-space: nowrap;
}
.dash-record-row .record-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  text-align: right;
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
}
.dash-row-arrow {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  transition: transform 0.15s ease, color 0.15s ease;
}
.dash-record-row:hover .dash-row-arrow {
  transform: translateX(3px);
  color: var(--teal);
}
.dash-record-row.project-row {
  grid-template-columns: minmax(0, 1fr) 140px 30px;
}
.dash-prog-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 130px;
  justify-content: flex-end;
}
.dash-prog-num {
  font-size: 11px;
  font-weight: 750;
  color: var(--navy);
  min-width: 34px;
  text-align: right;
}

/* ─── 5. Challenge Domain Distribution Card ─── */
.dash-domains-panel {
  display: flex;
  flex-direction: column;
}
.dash-domain-bars {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 14px;
}
.dash-domain-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.dash-domain-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.dash-domain-label strong {
  color: var(--navy);
  font-weight: 700;
}
.dash-domain-stat {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.dash-domain-stat small {
  color: var(--teal);
  font-weight: 750;
}
.dash-domain-track {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.dash-domain-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), #0d9488);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── 6. Platform Activity & Pulse Feed ─── */
.dash-activity-panel {
  display: flex;
  flex-direction: column;
}
.dash-activity-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}
.dash-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 8px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  border-radius: 6px;
  transition: background 0.15s ease;
}
.dash-activity-item:first-child {
  border-top: 0;
}
.dash-activity-item:hover {
  background: #f8fafc;
}
.dash-activity-marker {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  margin-top: 5px;
  flex-shrink: 0;
}
.dash-activity-item.read .dash-activity-marker {
  background: #cbd5e1;
  box-shadow: none;
}
.dash-activity-content {
  flex: 1;
  min-width: 0;
}
.dash-activity-msg {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
}
.dash-activity-time {
  font-size: 10px;
  color: var(--muted);
}
.unread-pill {
  font-size: 9px;
  font-weight: 800;
  color: #ffffff;
  background: var(--teal);
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* ─── 7. Innovation Teams Directory & Cards ─── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 14px;
}
.team-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.team-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(23, 50, 74, 0.08);
  border-color: #cbd5e1;
}
.team-card-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.team-card-title {
  font-size: 16px;
  font-weight: 750;
  color: var(--navy);
  margin: 4px 0 0;
  line-height: 1.35;
}
.team-challenge-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 11px;
  color: var(--teal);
  font-weight: 650;
  cursor: pointer;
  text-align: left;
  margin-top: 4px;
  transition: all 0.15s ease;
}
.team-challenge-link:hover {
  background: var(--teal-2);
  border-color: rgba(37, 99, 235, 0.3);
}
.team-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.team-mentor-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.team-label {
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: block;
}
.team-mentor-row strong {
  font-size: 12.5px;
  color: var(--navy);
}
.team-members-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.team-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.team-chip {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 3px 8px;
  border-radius: 999px;
}
.team-chip.muted-chip {
  color: var(--muted);
  font-style: italic;
}
.team-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

/* ─── 8. Dashboard Platform Hubs / Shortcuts ─── */
.dash-shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.dash-shortcut-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
}
.dash-shortcut-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(23, 50, 74, 0.06);
  border-color: var(--teal);
}
.dash-shortcut-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--teal-2);
  color: var(--teal);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.dash-shortcut-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}
.dash-shortcut-text strong {
  display: block;
  font-size: 12.5px;
  color: var(--navy);
}
.dash-shortcut-text small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* ─── 9. Dashboard Responsive Layout ─── */
@media (max-width: 1100px) {
  .dash-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dash-pipeline-phases {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .dash-shortcuts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .dash-hero {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 16px;
    gap: 16px;
  }
  .dash-hero-title {
    font-size: 22px;
  }
  .dash-hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .dash-hero-actions .dash-action-btn {
    width: 100%;
    justify-content: center;
  }
  .dash-stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .dash-stat-val {
    font-size: 26px;
  }
  .dash-record-row {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px 6px;
  }
  .dash-record-row .record-meta {
    display: none;
  }
  .dash-record-row.project-row {
    grid-template-columns: minmax(0, 1fr) 110px;
  }
  .dash-prog-wrap {
    width: 105px;
  }
  .dash-stage-nodes {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .dash-stage-node {
    padding: 8px 4px;
  }
  .dash-stage-badge {
    font-size: 14px;
  }
  .dash-shortcuts-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
}
