:root {
  --cuny-blue: #0033a1;
  --taxi-yellow: #ffb71b;
  --accent-1: #011d49;
  --accent-2: #1f5cff;
  --accent-3: #00afeb;
  --accent-4: #a3c9ff;
  --accent-5: #ffee1d;
  --accent-6: #fffcd5;
  --neutral-pearl: #f7f4eb;
  --neutral-dove: #d8d7d6;
  --neutral-slate: #688197;
  --neutral-charcoal: #383838;
  --neutral-pewter: #76777a;
  --neutral-ochre: #c89210;
  --neutral-umber: #896b25;
  --neutral-100: #f7f4eb;
  --neutral-200: #d8d7d6;
  --neutral-300: #c8ced6;
  --neutral-500: #76777a;
  --neutral-700: #383838;
  --neutral-900: #011d49;
  --cuny-blue-dark: #011d49;
  --cuny-blue-soft: #a3c9ff;
  --accent-summary: #1f5cff;
  --accent-timeline: #00afeb;
  --accent-governance: #0033a1;
  --accent-deliverables: #688197;
  --accent-risks: #c89210;
  --accent-next: #896b25;
  --white: #ffffff;
  --focus: #1f5cff;
  --shadow: 0 10px 24px rgba(1, 29, 73, 0.1);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Avenir Next", "Helvetica Neue", sans-serif;
  color: var(--neutral-900);
  background: #ffffff;
  line-height: 1.5;
}

.app-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.2rem 8rem;
}

.app-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.header-copy {
  flex: 1 1 620px;
  min-width: 0;
}

.eyebrow-wrap {
  display: flex;
  align-items: center;
  gap: 0.72rem;
}

.logo-home-btn {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  line-height: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo-home-btn:hover {
  cursor: pointer;
}

.logo-home-btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.header-logo {
  width: clamp(44px, 4.6vw, 58px);
  height: auto;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.eyebrow {
  margin: 0;
}

.eyebrow-main {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--cuny-blue);
  font-size: 0.78rem;
}

.eyebrow-subtitle {
  display: block;
  margin-top: 0.18rem;
  font-size: calc(0.68rem + 1pt);
  letter-spacing: 0.01em;
  font-weight: 500;
  color: #5b6f87;
  text-transform: none;
}

h1 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  line-height: 1.2;
}

.app-description {
  margin: 0.52rem 0 0;
  max-width: 980px;
  color: #2d4967;
  font-size: 0.95rem;
  line-height: 1.42;
}

.app-description strong {
  color: #1e3f64;
}

h2,
h3 {
  margin: 0;
}

.complexity-toggle {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  padding: 0.75rem 0.95rem;
  display: grid;
  gap: 0.55rem;
  min-width: min(100%, 420px);
  box-shadow: var(--shadow);
}

.toggle-label {
  font-weight: 600;
  color: var(--neutral-700);
  text-align: center;
}

.complexity-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  align-items: start;
  justify-items: center;
}

.complexity-option {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.3rem;
  margin: 0;
  min-width: 0;
  color: var(--neutral-700);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.complexity-option input[type="radio"] {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0;
}

.complexity-option span {
  font-size: 0.92rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.complexity-guidance {
  border-top: 1px solid #dbe5ef;
  padding-top: 0.55rem;
  display: grid;
  gap: 0.45rem;
}

.complexity-recommendation {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.35;
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
  background: #f6f9fd;
  border: 1px solid #d7e4f1;
  color: #23476c;
}

.complexity-recommendation:empty {
  display: none;
}

.complexity-recommendation.is-warning {
  background: #fff6eb;
  border-color: #f2c88f;
  color: #7a3d00;
}

.complexity-guidance-list {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.22rem;
  color: #355372;
  font-size: 0.8rem;
  line-height: 1.35;
}

.complexity-guidance-list strong {
  color: #173a61;
}

.tab-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0 0 1.2rem;
}

.tab-btn {
  border: 1px solid var(--neutral-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--neutral-700);
  font-weight: 600;
  padding: 0.55rem 1rem;
  cursor: pointer;
  width: 100%;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
}

.tab-btn.active {
  background: var(--cuny-blue);
  border-color: var(--cuny-blue);
  color: var(--white);
}

.tab-panel {
  display: none;
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.tab-panel.active {
  display: block;
}

.analytics-header {
  margin-bottom: 0.75rem;
}

.analytics-content {
  display: grid;
  gap: 0.72rem;
}

.analytics-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.analytics-toolbar-actions {
  display: inline-flex;
  gap: 0.4rem;
}

.analytics-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.analytics-summary-card {
  border: 1px solid #ccdded;
  border-radius: 10px;
  background: #f7fbff;
  padding: 0.62rem 0.68rem;
}

.analytics-summary-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #2d4967;
}

.analytics-summary-value {
  margin: 0.08rem 0 0;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.1;
  color: #0033a1;
}

.analytics-summary-meta {
  margin: 0.08rem 0 0;
  font-size: 0.76rem;
  color: #57708a;
}

.analytics-chart-card {
  border: 1px solid #ccdded;
  border-radius: 10px;
  background: #fafdff;
  padding: 0.62rem 0.68rem 0.66rem;
}

.analytics-tracking-info {
  margin: 0;
  padding: 0.45rem 0.55rem;
  border: 1px solid #d8e6f4;
  border-radius: 10px;
  background: #ffffff;
  font-size: 0.78rem;
  color: #4f6985;
  overflow-wrap: anywhere;
}

.analytics-chart-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.45rem;
}

.analytics-chart-header h3 {
  margin: 0;
  font-size: 0.96rem;
  color: #203f61;
}

.analytics-range-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid #bfd2e5;
  border-radius: 999px;
  padding: 0.16rem;
  background: #f2f8ff;
}

.analytics-range-btn {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #264768;
  padding: 0.28rem 0.62rem;
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1;
  min-height: 30px;
}

.analytics-range-btn:hover {
  background: #e7f2ff;
}

.analytics-range-btn.active {
  background: #0033a1;
  color: #fff;
}

.analytics-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  list-style: none;
  margin: 0.45rem 0 0.38rem;
  padding: 0;
  font-size: 0.78rem;
  color: #2d4967;
}

.analytics-chart-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-swatch {
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 999px;
  display: inline-block;
}

.legend-form {
  background: #0033a1;
}

.legend-generate {
  background: #00afed;
}

.analytics-chart-shell {
  border: 1px solid #d7e5f3;
  border-radius: 10px;
  background: #fff;
  min-height: 232px;
  overflow: hidden;
}

.analytics-chart-empty {
  margin: 0.45rem 0 0;
  border: 1px dashed #b7cce1;
  border-radius: 10px;
  padding: 0.7rem;
  text-align: center;
  font-size: 0.84rem;
  color: #4c6480;
  background: #fff;
}

.analytics-usage-svg {
  display: block;
  width: 100%;
  height: auto;
  shape-rendering: geometricPrecision;
}

.analytics-grid-line {
  stroke: #d9e6f3;
  stroke-width: 1;
}

.analytics-axis-line {
  stroke: #b7ccdf;
  stroke-width: 1;
}

.analytics-axis-label {
  fill: #5b748e;
  font-size: 12px;
}

.analytics-series-form,
.analytics-series-generate {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.analytics-series-form {
  stroke: #0033a1;
}

.analytics-series-generate {
  stroke: #00afed;
}

.analytics-point-form {
  fill: #0033a1;
}

.analytics-point-generate {
  fill: #00afed;
}

.analytics-table-wrap {
  border: 1px solid #ccdded;
  border-radius: 10px;
  overflow: hidden;
}

.analytics-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.analytics-table th,
.analytics-table td {
  padding: 0.52rem 0.56rem;
  border-bottom: 1px solid #d9e6f2;
  text-align: left;
  font-size: 0.84rem;
  color: #1f3f61;
}

.analytics-table th {
  background: #f3f8ff;
  font-weight: 700;
}

.analytics-table tbody th {
  background: #fafdff;
  font-weight: 600;
}

.analytics-table tbody tr:last-child th,
.analytics-table tbody tr:last-child td {
  border-bottom: 0;
}

.analytics-last-updated {
  margin: 0;
}

.feedback-panel-shell {
  display: grid;
  gap: 0.8rem;
}

.feedback-panel-header {
  border: 1px solid #ccdded;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.98));
  padding: 0.85rem 0.95rem;
  box-shadow: 0 8px 24px rgba(1, 29, 73, 0.04);
}

.feedback-panel-header h2 {
  margin: 0;
  color: #153a68;
  font-size: 1.1rem;
}

.feedback-panel-header p {
  margin: 0.35rem 0 0;
  max-width: 70ch;
}

.feedback-section {
  border: 1px solid #ccdded;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(250, 253, 255, 0.98), rgba(255, 255, 255, 0.98));
  padding: 0.8rem;
  display: grid;
  gap: 0.65rem;
}

.feedback-section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.35rem 0.8rem;
}

.feedback-section-header h3 {
  margin: 0;
  font-size: 0.96rem;
  color: #203f61;
}

.feedback-section-header p {
  margin: 0;
  font-size: 0.8rem;
}

.feedback-list {
  display: grid;
  gap: 0.65rem;
}

.feedback-card {
  border: 1px solid #d5e3f0;
  border-left: 4px solid #0033a1;
  border-radius: 12px;
  background: #ffffff;
  padding: 0.72rem 0.78rem;
  box-shadow: 0 6px 16px rgba(0, 51, 161, 0.05);
  display: grid;
  gap: 0.42rem;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.feedback-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 51, 161, 0.08);
  border-color: #bfd3e7;
}

.feedback-card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem 0.6rem;
}

.feedback-source {
  display: inline-flex;
  align-items: center;
  border: 1px solid #bfd2e5;
  border-radius: 999px;
  background: #eef5ff;
  color: #1f4674;
  padding: 0.14rem 0.5rem;
  font-size: 0.74rem;
  font-weight: 700;
}

.feedback-date {
  margin: 0;
  font-size: 0.78rem;
  color: #58718c;
}

.feedback-comment {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #1f334a;
}

.feedback-empty {
  margin: 0;
  border: 1px dashed #bfd2e5;
  border-radius: 10px;
  padding: 0.65rem;
  text-align: center;
  background: #ffffff;
}

.grid {
  display: grid;
  gap: 1rem;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label,
legend {
  font-weight: 600;
  color: var(--neutral-700);
}

.required-note {
  margin: 0 0 0.6rem;
  font-size: 0.84rem;
  color: #375778;
}

.required-indicator {
  color: #b42318;
  font-weight: 700;
  display: inline-block;
  line-height: 1;
}

.field-label-text {
  display: block;
  line-height: 1.35;
}

.field-label-text .required-indicator {
  margin-left: 0.2rem;
  white-space: nowrap;
}

label {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
  overflow-wrap: anywhere;
}

.field-example {
  font-size: 0.87rem;
  font-weight: 500;
  color: #51657d;
  margin-top: -0.05rem;
}

.field-error {
  min-height: 1rem;
  margin-top: -0.08rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #b42318;
  line-height: 1.25;
}

.field-error:empty {
  min-height: 0;
}

.privacy-notice {
  margin: 0.45rem 0 0.6rem;
  border: 1px solid #cdddec;
  border-radius: 12px;
  background: #f8fbff;
  padding: 0.72rem 0.82rem;
}

.privacy-head {
  display: flex;
  align-items: flex-start;
  gap: 0.62rem;
}

.info-icon {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  border: 1px solid #9cb7d3;
  color: #1f4b76;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-top: 0.14rem;
}

.privacy-title {
  margin: 0;
  font-weight: 700;
  color: #1a3f67;
  font-size: 0.92rem;
}

.privacy-text {
  margin: 0.22rem 0 0;
  color: #2f4a68;
  font-size: 0.88rem;
  line-height: 1.38;
}

.privacy-learn-more {
  margin-top: 0.42rem;
}

.privacy-learn-more > summary {
  cursor: pointer;
  color: #0f4a7b;
  font-weight: 600;
  width: fit-content;
}

.privacy-learn-more > summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 45%, transparent);
  outline-offset: 2px;
  border-radius: 6px;
}

.privacy-learn-more ul {
  margin: 0.38rem 0 0;
  padding-left: 1.1rem;
  color: #2d4662;
  font-size: 0.88rem;
  line-height: 1.35;
}

.retention-status {
  margin: 0 0 0.65rem;
  min-height: 1.1rem;
  color: #2f4a68;
  font-size: 0.84rem;
}

.app-shell .privacy-notice {
  isolation: isolate;
}

.app-shell .privacy-head {
  display: flex;
  align-items: flex-start;
  gap: 0.62rem;
}

.app-shell .privacy-head > div {
  min-width: 0;
}

.app-shell .info-icon {
  display: inline-grid;
  place-items: center;
  min-width: 1.15rem;
  min-height: 1.15rem;
  line-height: 1;
  font-family: inherit;
  font-style: normal;
  text-transform: none;
  vertical-align: middle;
}

.app-shell .privacy-learn-more > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  width: auto;
}

.app-shell .privacy-learn-more > summary::-webkit-details-marker {
  display: none;
}

.app-shell .privacy-learn-more > summary::before {
  content: "\25B8";
  font-size: 0.8rem;
  line-height: 1;
  color: #0f4a7b;
}

.app-shell .privacy-learn-more[open] > summary::before {
  content: "\25BE";
}

.is-hidden {
  display: none !important;
}

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #bcc8d7;
  background: #fcfdff;
  color: var(--neutral-900);
  border-radius: 10px;
  padding: 0.62rem 0.72rem;
}

input.field-invalid,
textarea.field-invalid,
select.field-invalid {
  border-color: #d14343;
  background: #fffafb;
}

fieldset {
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  padding: 0.8rem;
  margin-bottom: 1rem;
}

.intake-section {
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  margin-bottom: 0.95rem;
  background: #fbfdff;
  overflow: hidden;
}

.intake-section > summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  color: #193b5f;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  background: #f5f9ff;
  overflow-wrap: anywhere;
}

.intake-section > summary::-webkit-details-marker {
  display: none;
}

.intake-section > summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  border: 1px solid #9eb8d3;
  color: #1c4f81;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 700;
}

.intake-section[open] > summary::after {
  content: "\2212";
}

.intake-section > summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 45%, transparent);
  outline-offset: -1px;
}

.intake-section-body {
  padding: 0.85rem 0.9rem 0.2rem;
}

.intake-section-body fieldset {
  margin-top: 0.05rem;
}

input:focus,
textarea:focus,
select:focus,
button:focus {
  outline: 3px solid color-mix(in srgb, var(--focus) 45%, transparent);
  outline-offset: 1px;
  border-color: var(--focus);
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

button {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.62rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.primary-btn {
  background: var(--cuny-blue);
  color: var(--white);
}

.primary-btn:hover {
  background: var(--cuny-blue-dark);
}

.primary-btn:disabled,
.primary-btn:disabled:hover {
  background: #8ea7c1;
  cursor: not-allowed;
  opacity: 0.8;
}

.secondary-btn,
.copy-btn {
  background: #f7fbff;
  color: var(--cuny-blue-dark);
  border-color: #aac4de;
}

.followup-questions {
  margin-top: 1rem;
  padding: 1rem;
  border-left: 5px solid var(--cuny-blue);
  background: #f6faff;
  border-radius: 10px;
}

.followup-questions.hidden {
  display: none;
}

.followup-questions ul {
  margin: 0.55rem 0 0;
  padding-left: 1.15rem;
}

.ai-assist-box {
  margin-top: 1rem;
  border: 1px solid #cfe0ef;
  border-radius: 12px;
  padding: 0.85rem;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f9ff 100%);
}

.intake-helper-toolbar {
  margin: 0 0 0.95rem;
  display: grid;
  gap: 0.7rem;
}

.intake-helper-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.intake-helper-card {
  border: 1px solid #d8e4ef;
  border-radius: 10px;
  background: #ffffff;
  padding: 0.75rem;
  display: grid;
  align-content: start;
  gap: 0.48rem;
}

.intake-helper-card .secondary-btn {
  justify-self: start;
}

.helper-text.intake-helper-copy {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.36;
  color: #355372;
}

.helper-text.intake-helper-status {
  margin: 0;
  min-height: 1.1rem;
  font-size: 0.86rem;
  color: #1b4a76;
}

.helper-text.intake-helper-status:empty {
  min-height: 0;
}

.generation-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: color-mix(in srgb, var(--accent-1) 26%, transparent);
  backdrop-filter: blur(2px);
}

.generation-loader.active {
  display: flex;
}

.loader-card {
  width: min(420px, 100%);
  border: 1px solid color-mix(in srgb, var(--accent-4) 55%, var(--neutral-dove));
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 16px 34px rgba(1, 29, 73, 0.18);
  padding: 1rem 1.05rem 1.08rem;
}

.loader-card h3 {
  margin: 0.28rem 0 0;
  font-size: 1rem;
  color: var(--accent-1);
}

.loader-card p {
  margin: 0.22rem 0 0.55rem;
  font-size: 0.88rem;
  color: #325374;
}

.loader-ring {
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 999px;
  border: 3px solid color-mix(in srgb, var(--accent-4) 55%, var(--neutral-dove));
  border-top-color: var(--cuny-blue);
  animation: loader-spin 900ms linear infinite;
}

.loader-progress {
  height: 0.46rem;
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--accent-4) 40%, var(--neutral-dove));
}

.loader-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cuny-blue) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
}

.loader-progress-fill.animate {
  animation: loader-progress-5s 5s linear forwards;
}

body.is-loading-solution {
  overflow: hidden;
}

@keyframes loader-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes loader-progress-5s {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loader-ring {
    animation: none;
  }
}

.ai-assist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.ai-assist-header h2 {
  font-size: 1rem;
}

.ai-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #b7cde3;
  background: #eaf3ff;
  color: #1b4a76;
  border-radius: 999px;
  padding: 0.14rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.solution-header,
.history-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.solution-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.solution-export-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
}

.solution-meta {
  margin-bottom: 0.9rem;
  color: var(--neutral-slate);
  font-size: 0.88rem;
}

.solution-disclaimer {
  margin-bottom: 0.85rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--neutral-200);
  border-left: 4px solid var(--cuny-blue);
  border-radius: 10px;
  background: #f8fbff;
  font-size: 0.9rem;
  line-height: 1.5;
}

.excel-template-panel {
  margin-top: 0.8rem;
  border: 1px solid color-mix(in srgb, var(--accent-4) 48%, var(--neutral-dove));
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfdff 0%, #f7fbff 100%);
  padding: 0.75rem 0.8rem 0.7rem;
}

.excel-template-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.excel-template-btn {
  min-height: 42px;
  font-weight: 700;
  text-align: center;
}

.excel-template-btn.is-busy {
  opacity: 0.88;
  cursor: progress;
}

.excel-template-helper {
  margin: 0.55rem 0 0;
  font-size: 0.84rem;
}

.solution-pdf-header {
  display: none;
}

.solution-pdf-toc {
  display: none;
}

.solution-pdf-toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc-item {
  margin: 0.2rem 0;
}

.toc-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
  text-decoration: none;
  border-radius: 6px;
}

a.toc-link {
  cursor: pointer;
}

.toc-link:hover .toc-title {
  text-decoration: underline;
}

.toc-link:focus-visible {
  outline: 2px solid var(--cuny-blue);
  outline-offset: 2px;
}

.toc-title {
  min-width: 0;
}

.toc-leader {
  border-bottom: 1px dotted color-mix(in srgb, var(--accent-4) 60%, var(--neutral-dove));
  height: 1px;
  transform: translateY(-1px);
}

.toc-page {
  min-width: 1.65rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.toc-sub .toc-title {
  padding-left: 1rem;
}

[data-toc-anchor="true"] {
  scroll-margin-top: 0.7rem;
}

body.is-preparing-pdf-layout #tab-solution {
  display: block !important;
  position: fixed;
  left: -10000px;
  top: 0;
  width: 7.4in;
  max-width: 7.4in;
  min-width: 7.4in;
  box-shadow: none;
  border: none;
  padding: 0;
  background: #fff;
  z-index: -1;
}

body.is-preparing-pdf-layout .solution-pdf-header {
  display: block !important;
  margin: 0 0 0.55rem;
  padding: 0.52rem 0.64rem;
  border: 1px solid #c9dced;
  border-left: 5px solid var(--cuny-blue);
  border-radius: 10px;
  background: #f6faff;
}

body.is-preparing-pdf-layout .solution-pdf-header h1 {
  margin: 0;
  font-size: 14pt;
  line-height: 1.2;
  color: var(--cuny-blue-dark);
}

body.is-preparing-pdf-layout .solution-pdf-header p {
  margin: 0.28rem 0 0;
  font-size: 10pt;
  line-height: 1.35;
  color: #1f3e5f;
}

body.is-preparing-pdf-layout .solution-pdf-toc {
  display: block !important;
  margin: 0 0 0.55rem;
  padding: 0.5rem 0.64rem 0.56rem;
  border: 1px solid #d3e0ee;
  border-radius: 10px;
  background: #ffffff;
}

body.is-preparing-pdf-layout .solution-pdf-toc h2 {
  margin: 0 0 0.22rem;
  font-size: 11.5pt;
  color: var(--cuny-blue-dark);
}

body.is-preparing-pdf-layout .toc-item {
  margin: 0.14rem 0;
  gap: 0.3rem;
  font-size: 9.6pt;
  line-height: 1.26;
  color: #20354d;
}

body.is-preparing-pdf-layout .toc-sub .toc-title {
  padding-left: 0.85rem;
}

body.is-preparing-pdf-layout .toc-page {
  min-width: 1.4rem;
  color: #1a3f67;
  font-weight: 700;
}

body.is-preparing-pdf-layout .solution-actions,
body.is-preparing-pdf-layout .copy-btn,
body.is-preparing-pdf-layout .excel-template-panel {
  display: none !important;
}

body.is-preparing-pdf-layout .section-card {
  break-inside: avoid;
  page-break-inside: avoid;
}

body.is-preparing-pdf-layout .timeline-rail {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

body.is-preparing-pdf-layout .matrix-wrap {
  padding: 0 0.55rem 0.6rem;
  overflow: visible !important;
}

body.is-preparing-pdf-layout .tracker-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

body.is-preparing-pdf-layout .tracker-table th,
body.is-preparing-pdf-layout .tracker-table td {
  font-size: 8.9pt;
  line-height: 1.24;
  padding: 0.25rem 0.3rem;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

body.is-preparing-pdf-layout .chart-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.42rem;
  padding: 0.3rem 0.52rem 0.58rem;
}

body.is-preparing-pdf-layout .chart-grid .chart-card:nth-child(3) {
  grid-column: 1 / -1;
}

body.is-preparing-pdf-layout .donut-layout {
  grid-template-columns: minmax(0, 126px) minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
}

body.is-preparing-pdf-layout .effort-donut {
  width: 118px;
  height: 118px;
  margin: 0 auto;
}

body.is-preparing-pdf-layout .effort-donut::after {
  width: 68px;
  height: 68px;
}

body.is-preparing-pdf-layout .effort-donut span {
  font-size: 0.78rem;
}

body.is-preparing-pdf-layout .chart-legend {
  gap: 0.24rem;
  align-content: start;
  justify-items: start;
}

body.is-preparing-pdf-layout .chart-legend li {
  font-size: 0.78rem;
  line-height: 1.24;
}

body.is-preparing-pdf-layout .raid-list {
  list-style: none;
}

body.is-preparing-pdf-layout .raid-list li {
  list-style: none;
}

.quick-actions-bar {
  position: sticky;
  top: 0.45rem;
  z-index: 6;
  display: grid;
  grid-template-columns: 1.1fr auto 1.1fr auto auto;
  gap: 0.45rem;
  padding: 0.5rem;
  margin-bottom: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--accent-4) 55%, var(--neutral-dove));
  border-radius: 12px;
  background: color-mix(in srgb, var(--white) 88%, var(--neutral-pearl));
  box-shadow: 0 6px 20px rgba(1, 29, 73, 0.08);
}

.quick-field {
  display: grid;
  gap: 0.18rem;
  margin: 0;
  min-width: 0;
}

.quick-field span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-1);
}

.quick-field select {
  min-height: 36px;
  padding: 0.35rem 0.45rem;
  font-size: 0.84rem;
}

.quick-actions-bar .secondary-btn,
.quick-actions-bar .primary-btn {
  min-height: 36px;
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
}

.solution-status-card {
  margin-bottom: 0.78rem;
}

.status-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.48rem;
}

.status-kpi-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent-4) 65%, var(--neutral-dove));
  background: color-mix(in srgb, var(--white) 90%, var(--accent-4));
  color: var(--accent-1);
  padding: 0.18rem 0.52rem;
  font-size: 0.74rem;
  font-weight: 700;
}

.priority-low {
  background: color-mix(in srgb, var(--white) 90%, var(--accent-6));
}

.priority-moderate {
  background: color-mix(in srgb, var(--white) 88%, var(--accent-4));
}

.priority-high {
  background: color-mix(in srgb, var(--white) 84%, var(--taxi-yellow));
}

.priority-critical {
  background: color-mix(in srgb, var(--white) 78%, var(--taxi-yellow));
  border-color: var(--neutral-ochre);
}

.complexity-light {
  background: color-mix(in srgb, var(--white) 90%, var(--accent-6));
}

.complexity-standard {
  background: color-mix(in srgb, var(--white) 86%, var(--accent-4));
}

.complexity-enterprise,
.complexity-complex {
  background: color-mix(in srgb, var(--white) 84%, var(--accent-3));
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-1);
}

.progress-track {
  width: 100%;
  height: 10px;
  background: color-mix(in srgb, var(--accent-4) 32%, var(--neutral-dove));
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.32rem;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cuny-blue), var(--accent-2));
  border-radius: inherit;
  transition: width 220ms ease;
}

.phase-stepper {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0.58rem 0 0;
  padding: 0;
}

.step-box {
  border: 1px solid color-mix(in srgb, var(--accent-4) 58%, var(--neutral-dove));
  border-radius: 10px;
  background: var(--white);
  padding: 0.32rem 0.38rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--neutral-slate);
}

.step-complete {
  background: color-mix(in srgb, var(--white) 88%, var(--accent-3));
  color: var(--accent-1);
}

.step-active {
  background: var(--cuny-blue);
  border-color: var(--cuny-blue);
  color: var(--white);
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: 0.58rem;
}

.mini-metric-card {
  border: 1px solid color-mix(in srgb, var(--accent-4) 52%, var(--neutral-dove));
  border-radius: 10px;
  background: var(--white);
  padding: 0.4rem 0.45rem;
  display: grid;
  gap: 0.08rem;
}

.mini-metric-value {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--accent-1);
}

.mini-metric-label {
  font-size: 0.7rem;
  color: var(--neutral-slate);
}

.solution-glossary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.62rem;
}

.glossary-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--neutral-slate);
}

.term-chip {
  border: 1px solid color-mix(in srgb, var(--accent-4) 62%, var(--neutral-dove));
  border-radius: 999px;
  background: var(--white);
  color: var(--accent-1);
  padding: 0.18rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  position: relative;
  cursor: help;
}

.term-chip.has-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  min-width: 180px;
  max-width: 280px;
  padding: 0.4rem 0.46rem;
  border-radius: 8px;
  background: var(--accent-1);
  color: var(--white);
  font-size: 0.72rem;
  line-height: 1.35;
  box-shadow: 0 8px 16px rgba(1, 29, 73, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 120ms ease;
  z-index: 12;
}

.term-chip.has-tooltip:hover::after,
.term-chip.has-tooltip:focus-visible::after {
  opacity: 1;
  visibility: visible;
}

.solution-subtabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.38rem;
  margin-bottom: 0.62rem;
}

.solution-tab-btn {
  border: 1px solid color-mix(in srgb, var(--accent-4) 62%, var(--neutral-dove));
  border-radius: 10px;
  background: var(--white);
  color: var(--accent-1);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.43rem 0.3rem;
  min-height: 38px;
  width: 100%;
}

.solution-tab-btn.active {
  background: var(--cuny-blue);
  border-color: var(--cuny-blue);
  color: var(--white);
}

.solution-panel {
  display: none;
}

.solution-panel.active {
  display: block;
}

.section-card {
  border: 1px solid color-mix(in srgb, var(--accent-4) 52%, var(--neutral-dove));
  border-radius: 12px;
  margin-bottom: 0.72rem;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.card-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.72rem;
  border-bottom: 1px solid color-mix(in srgb, var(--accent-4) 45%, var(--neutral-dove));
  background: color-mix(in srgb, var(--white) 70%, var(--neutral-pearl));
}

.card-header h3 {
  font-size: 0.92rem;
}

.section-card[class*="accent-"] .card-header {
  padding-left: 0.95rem;
  background: color-mix(in srgb, var(--white) 86%, var(--section-accent, var(--accent-4)));
}

.section-card[class*="accent-"] .card-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--section-accent, var(--cuny-blue));
}

.panel-body {
  padding: 0.12rem 0;
}

.quick-panel.is-collapsed .panel-body {
  display: none;
}

.accent-summary {
  --section-accent: var(--accent-summary);
  border-top: 4px solid var(--accent-summary);
}

.accent-timeline {
  --section-accent: var(--accent-timeline);
  border-top: 4px solid var(--accent-timeline);
}

.accent-governance {
  --section-accent: var(--accent-governance);
  border-top: 4px solid var(--accent-governance);
}

.accent-deliverables {
  --section-accent: var(--accent-deliverables);
  border-top: 4px solid var(--accent-deliverables);
}

.accent-risks {
  --section-accent: var(--accent-risks);
  border-top: 4px solid var(--accent-risks);
}

.accent-next {
  --section-accent: var(--accent-next);
  border-top: 4px solid var(--accent-next);
}

.section-content {
  margin: 0;
  padding: 0.74rem 0.76rem;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "IBM Plex Sans", "Avenir Next", "Helvetica Neue", sans-serif;
  color: var(--neutral-900);
  font-size: 0.88rem;
  line-height: 1.46;
}

.visual-helper {
  margin: 0.62rem 0 0;
  padding: 0 0.85rem;
  color: var(--neutral-700);
}

.phase-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0.56rem 0.78rem 0.2rem;
}

.metric-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid #ccdded;
  background: #f7fbff;
  color: #284a6f;
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1;
  min-height: 1.65rem;
  padding: 0.2rem 0.42rem;
  text-align: center;
}

.metric-icon {
  font-size: 0.8rem;
}

.metric-complete {
  background: #edf8f1;
  border-color: #b7dec7;
  color: #22603f;
}

.metric-progress {
  background: #edf5ff;
  border-color: #bfd8f2;
  color: #1d558e;
}

.metric-upcoming {
  background: #f2f6fb;
  border-color: #d0ddec;
  color: #425a73;
}

.timeline-rail {
  list-style: none;
  margin: 0;
  padding: 0.64rem 0.74rem 0.78rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  overflow: visible;
}

.timeline-node {
  min-width: 0;
  background: #f9fcff;
  border: 1px solid #c9dced;
  border-radius: 12px;
  padding: 0.55rem 0.56rem;
  display: grid;
  gap: 0.26rem;
  align-content: start;
  border-top: 3px solid #b9cfe5;
}

.timeline-phase {
  display: block;
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #3f6388;
  margin-bottom: 0.02rem;
  font-weight: 700;
}

.timeline-title {
  display: block;
  color: #173352;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.2;
}

.timeline-detail {
  display: block;
  margin-top: 0.03rem;
  color: #35597f;
  font-size: 0.74rem;
  line-height: 1.25;
  min-height: 2.25em;
}

.phase-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.24rem;
  width: fit-content;
  min-width: 82px;
  max-width: 100%;
  min-height: 1.34rem;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.phase-complete {
  background: #eaf7ef;
  border: 1px solid #bbdfc9;
  color: #235f3f;
}

.phase-progress {
  background: #eaf3ff;
  border: 1px solid #bfd7f1;
  color: #1d568d;
}

.phase-upcoming {
  background: #f1f5fa;
  border: 1px solid #d2deec;
  color: #455c74;
}

.timeline-date {
  display: inline-block;
  margin-top: 0.1rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #234a71;
  background: #e8f1fb;
  border-radius: 999px;
  padding: 0.15rem 0.46rem;
  width: fit-content;
}

.timeline-empty {
  color: var(--neutral-700);
  grid-column: 1 / -1;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.55rem;
  padding: 0.34rem 0.58rem 0.6rem;
}

.chart-card {
  border: 1px solid color-mix(in srgb, var(--accent-4) 55%, var(--neutral-dove));
  border-radius: 10px;
  background: color-mix(in srgb, var(--white) 85%, var(--neutral-pearl));
  padding: 0.45rem 0.5rem;
}

.chart-card h4 {
  margin: 0 0 0.34rem;
  font-size: 0.8rem;
  color: var(--accent-1);
}

.chart-block {
  display: grid;
  gap: 0.24rem;
}

.chart-empty {
  margin: 0;
  color: var(--neutral-slate);
  font-size: 0.8rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  align-items: center;
  gap: 0.3rem;
}

.bar-label {
  font-size: 0.72rem;
  color: var(--neutral-slate);
}

.bar-track {
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-4) 40%, var(--neutral-dove));
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cuny-blue), var(--accent-3));
}

.bar-value {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-1);
}

.donut-layout {
  display: grid;
  grid-template-columns: 98px 1fr;
  gap: 0.45rem;
  align-items: center;
}

.effort-donut {
  width: 98px;
  height: 98px;
  border-radius: 999px;
  position: relative;
  background: var(--neutral-300);
  display: grid;
  place-items: center;
}

.effort-donut::after {
  content: "";
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--white);
  position: absolute;
}

.effort-donut span {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-1);
}

.chart-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.22rem;
}

.chart-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  font-size: 0.72rem;
  color: var(--neutral-slate);
}

.burnup-chart {
  display: grid;
  gap: 0.28rem;
}

.burnup-svg {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid color-mix(in srgb, var(--accent-4) 52%, var(--neutral-dove));
  border-radius: 8px;
  background: #fbfdff;
}

.burnup-grid line {
  stroke: color-mix(in srgb, var(--accent-4) 42%, var(--neutral-dove));
  stroke-width: 1;
}

.burnup-grid text,
.burnup-xlabels text {
  fill: var(--neutral-slate);
  font-size: 10px;
  font-weight: 600;
}

.burnup-line {
  fill: none;
  stroke-width: 2.4;
}

.burnup-line.planned,
.burnup-dot.planned {
  stroke: #5f7a97;
  fill: #5f7a97;
}

.burnup-line.actual,
.burnup-dot.actual {
  stroke: var(--cuny-blue);
  fill: var(--cuny-blue);
}

.burnup-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem 0.72rem;
  align-items: center;
  color: var(--neutral-slate);
  font-size: 0.74rem;
  font-weight: 600;
}

.burnup-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.legend-line {
  width: 1rem;
  height: 2px;
  border-radius: 999px;
  background: var(--neutral-slate);
  display: inline-block;
}

.legend-line.planned {
  background: #5f7a97;
}

.legend-line.actual {
  background: var(--cuny-blue);
}

.burnup-summary {
  color: var(--accent-1);
}

.legend-swatch {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  flex: 0 0 auto;
}

.raid-list {
  margin: 0;
  padding: 0.66rem 0.88rem 0.78rem;
  list-style: none;
  display: grid;
  gap: 0.32rem;
}

.raid-list li {
  list-style: none;
  color: var(--neutral-900);
  font-size: 0.84rem;
  line-height: 1.4;
}

.workstreams-list {
  margin: 0;
  padding: 0.66rem 0.88rem 0.78rem;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.workstream-item {
  border: 1px solid color-mix(in srgb, var(--accent-4) 48%, var(--neutral-dove));
  border-radius: 10px;
  background: color-mix(in srgb, var(--white) 90%, var(--neutral-pearl));
  padding: 0.5rem 0.58rem;
}

.workstream-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-1);
}

.workstream-focus {
  margin: 0.22rem 0 0;
  font-size: 0.84rem;
  color: var(--neutral-900);
  line-height: 1.36;
}

.workstream-owner {
  margin: 0.18rem 0 0;
  font-size: 0.8rem;
  color: var(--neutral-slate);
  line-height: 1.32;
  font-weight: 600;
}

.matrix-wrap {
  padding: 0 0.85rem 0.85rem;
  overflow-x: auto;
}

.tracker-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.tracker-table th,
.tracker-table td {
  border-bottom: 1px solid #d9e4f0;
  text-align: left;
  padding: 0.58rem 0.45rem;
  vertical-align: top;
}

.tracker-table th {
  background: #f4f9ff;
  color: #22466e;
  font-size: 0.88rem;
}

.tracker-table td {
  font-size: 0.92rem;
  color: #20354d;
}

.status-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  min-width: 94px;
  text-align: center;
}

.status-not-started {
  background: #edf2f8;
  color: #42586e;
}

.status-in-progress {
  background: #e8f3ff;
  color: #104a82;
}

.status-at-risk {
  background: #fff2dc;
  color: #895400;
}

.status-complete {
  background: #e8f7ee;
  color: #1f6a3b;
}

.export-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.export-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
}

.export-btn {
  min-height: 44px;
  min-width: 170px;
}

.export-meta {
  margin-bottom: 0.7rem;
  color: var(--neutral-700);
}

.export-preview {
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  background: #fbfdff;
  padding: 0.8rem;
  display: grid;
  gap: 0.7rem;
}

.export-empty {
  color: var(--neutral-700);
  padding: 0.2rem 0.1rem;
}

.export-block {
  border: 1px solid #d7e4f1;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.export-heading {
  margin: 0;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid #dbe6f2;
  background: #f6faff;
  color: #1b3f67;
  font-size: 0.96rem;
}

.export-body {
  margin: 0;
  padding: 0.72rem 0.8rem;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "IBM Plex Sans", "Avenir Next", "Helvetica Neue", sans-serif;
  color: #1e2e41;
  line-height: 1.48;
}

.export-timeline {
  margin: 0;
  padding: 0.75rem 1.3rem 0.85rem;
  display: grid;
  gap: 0.38rem;
}

.export-timeline li {
  line-height: 1.45;
  color: #1e2e41;
}

.export-matrix-wrap {
  overflow-x: auto;
}

.export-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.export-table th,
.export-table td {
  border-bottom: 1px solid #d9e4f0;
  text-align: left;
  padding: 0.52rem 0.58rem;
  vertical-align: top;
  color: #20354d;
  font-size: 0.9rem;
}

.export-table th {
  background: #f4f9ff;
  color: #22466e;
  font-size: 0.84rem;
}

.helper-text {
  color: var(--neutral-700);
}

.version-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.version-item {
  border: 1px solid var(--neutral-200);
  border-radius: 10px;
  padding: 0.75rem;
  display: grid;
  gap: 0.45rem;
}

.version-meta {
  color: var(--neutral-700);
  font-size: 0.92rem;
}

.version-actions {
  display: flex;
  gap: 0.55rem;
}

.app-footer-note {
  margin-top: 0.9rem;
  padding: 0.6rem 0.72rem;
  border: 1px solid #d5e3f1;
  border-radius: 10px;
  background: #f8fbff;
  display: flex;
  gap: 0.52rem;
  align-items: flex-start;
}

.app-footer-note p {
  margin: 0;
  color: #375470;
  font-size: 0.82rem;
  line-height: 1.35;
}

.help-panel {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  background: var(--neutral-900);
  color: var(--white);
  padding: 0.9rem 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-width: 340px;
}

.help-panel h2 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.help-panel p {
  margin: 0;
}

.help-panel a {
  color: #8bc5ff;
}

@media (max-width: 860px) {
  .app-shell {
    padding: 1.25rem 0.85rem 6.5rem;
  }

  .app-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .header-copy {
    flex-basis: auto;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .complexity-toggle {
    width: 100%;
    min-width: 0;
  }

  .timeline-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.42rem;
    padding: 0.56rem 0.62rem 0.66rem;
  }

  .timeline-node {
    padding: 0.5rem 0.5rem;
  }

  .quick-actions-bar {
    grid-template-columns: 1fr 1fr;
    top: 0.3rem;
  }

  .solution-subtabs {
    gap: 0.32rem;
  }

  .mini-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-grid {
    grid-template-columns: 1fr;
  }

  .analytics-chart-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .analytics-chart-shell {
    min-height: 214px;
  }

  .help-panel {
    position: static;
    margin-top: 1rem;
    max-width: none;
  }

  .intake-helper-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  input,
  textarea,
  select,
  button {
    font-size: 16px;
  }

  input,
  select,
  textarea {
    min-height: 48px;
    padding: 0.82rem 0.88rem;
  }

  textarea {
    min-height: 110px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  label {
    margin-bottom: 1.05rem;
    gap: 0.45rem;
  }

  .field-example {
    line-height: 1.38;
  }

  .intake-section {
    margin-bottom: 0.85rem;
  }

  .intake-section > summary {
    min-height: 56px;
    padding: 0.9rem 1rem;
    font-size: 1rem;
  }

  .intake-section > summary::after {
    width: 1.7rem;
    height: 1.7rem;
    font-size: 1.2rem;
  }

  .intake-section-body {
    padding: 0.85rem 0.85rem 0.1rem;
  }

  .actions-row {
    gap: 0.6rem;
  }

  .solution-actions {
    width: 100%;
  }

  .solution-actions > .secondary-btn {
    flex: 1 1 100%;
    min-height: 44px;
  }

  .solution-export-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .solution-export-actions .secondary-btn,
  .solution-export-actions .primary-btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
  }

  .excel-template-actions {
    grid-template-columns: 1fr;
  }

  .excel-template-btn {
    min-height: 48px;
  }

  .actions-row .primary-btn,
  .actions-row .secondary-btn {
    min-height: 48px;
  }

  .intake-helper-card .secondary-btn {
    width: 100%;
    text-align: left;
  }

  .helper-text.intake-helper-copy {
    font-size: 0.8rem;
  }

  .complexity-options {
    gap: 0.45rem;
  }

  .complexity-option span {
    font-size: 0.86rem;
    line-height: 1.2;
  }

  .complexity-guidance-list {
    font-size: 0.76rem;
    gap: 0.2rem;
  }

  .tab-nav {
    gap: 0.38rem;
  }

  .tab-btn {
    padding: 0.45rem 0.34rem;
    font-size: 0.8rem;
    letter-spacing: 0;
  }

  .analytics-summary-grid {
    grid-template-columns: 1fr;
  }

  .analytics-table th,
  .analytics-table td {
    font-size: 0.78rem;
    padding: 0.44rem 0.4rem;
  }

  .quick-actions-bar {
    grid-template-columns: 1fr 1fr;
    gap: 0.36rem;
    padding: 0.44rem;
  }

  .quick-field span {
    font-size: 0.68rem;
  }

  .quick-actions-bar .secondary-btn,
  .quick-actions-bar .primary-btn {
    font-size: 0.74rem;
    padding: 0.36rem 0.44rem;
  }

  .solution-subtabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .solution-tab-btn {
    min-height: 36px;
    font-size: 0.74rem;
  }

  .phase-stepper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mini-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phase-metrics {
    margin: 0.5rem 0.62rem 0.18rem;
    gap: 0.34rem;
  }

  .metric-chip {
    font-size: 0.72rem;
    min-height: 1.55rem;
    padding: 0.18rem 0.34rem;
  }

  .timeline-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-title {
    font-size: 0.8rem;
  }

  .timeline-detail {
    font-size: 0.72rem;
    min-height: 2.1em;
  }

  .phase-status {
    font-size: 0.68rem;
  }

  .timeline-date {
    font-size: 0.7rem;
  }

  .bar-row {
    grid-template-columns: 72px 1fr auto;
  }

  .donut-layout {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .export-toolbar {
    align-items: stretch;
  }

  .export-btn {
    width: 100%;
    min-width: 0;
  }

  .export-preview {
    padding: 0.65rem;
    gap: 0.58rem;
  }

  .export-body {
    padding: 0.68rem 0.72rem;
    font-size: 0.92rem;
  }

  .export-table {
    min-width: 0;
    table-layout: fixed;
  }

  .export-table th,
  .export-table td {
    font-size: 0.8rem;
    padding: 0.45rem 0.4rem;
    overflow-wrap: anywhere;
  }

  .privacy-notice {
    padding: 0.68rem 0.72rem;
  }

  .privacy-title {
    font-size: 0.9rem;
  }

  .privacy-text,
  .privacy-learn-more ul,
  .retention-status {
    font-size: 0.82rem;
  }

  .app-footer-note {
    padding: 0.56rem 0.62rem;
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding: 1rem 0.6rem 1.1rem;
  }

  .eyebrow-wrap {
    align-items: flex-start;
    gap: 0.55rem;
  }

  .header-logo {
    width: 44px;
    margin-top: 0.04rem;
  }

  .eyebrow-main {
    font-size: 0.69rem;
    letter-spacing: 0.05em;
  }

  .eyebrow-subtitle {
    font-size: calc(0.63rem + 1pt);
    line-height: 1.35;
  }

  h1 {
    margin-top: 0.3rem;
    font-size: 1.95rem;
    line-height: 1.14;
  }

  .complexity-toggle {
    padding: 0.65rem 0.6rem;
  }

  .complexity-option input[type="radio"] {
    width: 1.12rem;
    height: 1.12rem;
  }

  .complexity-option span {
    font-size: 0.82rem;
  }

  .tab-nav {
    gap: 0.3rem;
  }

  .tab-btn {
    padding: 0.4rem 0.2rem;
    font-size: 0.72rem;
    border-radius: 999px;
  }

  .analytics-toolbar-actions {
    width: 100%;
  }

  .analytics-toolbar-actions .secondary-btn {
    flex: 1 1 0;
  }

  .analytics-range-toggle {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.22rem;
  }

  .analytics-range-btn {
    width: 100%;
    min-height: 34px;
    padding: 0.3rem 0.2rem;
    font-size: 0.74rem;
  }

  .analytics-chart-legend {
    margin-top: 0.4rem;
    gap: 0.44rem 0.7rem;
    font-size: 0.75rem;
  }

  .tab-panel {
    padding: 0.9rem;
  }

  .quick-actions-bar {
    position: static;
    grid-template-columns: 1fr;
  }

  .solution-subtabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phase-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.52rem 0.52rem 0.58rem;
  }

  .phase-metrics {
    margin: 0.42rem 0.52rem 0.16rem;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 1.7rem;
  }

  .complexity-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.3rem;
  }

  .complexity-option span {
    font-size: 0.76rem;
  }

  .tab-nav {
    gap: 0.22rem;
  }

  .tab-btn {
    padding: 0.38rem 0.12rem;
    font-size: 0.66rem;
  }

  .analytics-table th,
  .analytics-table td {
    font-size: 0.72rem;
    padding: 0.4rem 0.32rem;
  }

  .solution-subtabs {
    grid-template-columns: 1fr 1fr;
    gap: 0.24rem;
  }

  .solution-tab-btn {
    font-size: 0.68rem;
    min-height: 34px;
    padding: 0.35rem 0.2rem;
  }

  .phase-stepper {
    grid-template-columns: 1fr;
  }

  .mini-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .bar-row {
    grid-template-columns: 64px 1fr auto;
    gap: 0.2rem;
  }

  .metric-chip {
    font-size: 0.66rem;
    min-height: 1.46rem;
    gap: 0.24rem;
  }

  .metric-icon {
    font-size: 0.7rem;
  }

  .timeline-rail {
    gap: 0.3rem;
    padding: 0.48rem;
  }

  .timeline-node {
    padding: 0.46rem;
  }

  .timeline-title {
    font-size: 0.76rem;
  }

  .timeline-detail {
    font-size: 0.69rem;
  }

  .phase-status {
    font-size: 0.64rem;
    padding: 0.1rem 0.35rem;
  }

  .timeline-date {
    font-size: 0.66rem;
  }

  .privacy-head {
    gap: 0.45rem;
  }

  .info-icon {
    width: 1.05rem;
    height: 1.05rem;
    font-size: 0.72rem;
  }

  .analytics-chart-shell {
    min-height: 192px;
  }

  .analytics-axis-label {
    font-size: 11px;
  }
}

@media print {
  @page {
    size: Letter portrait;
    margin: 0.55in;
  }

  body {
    background: #fff;
    color: #111;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .tab-nav,
  #tab-intake,
  #tab-solution,
  #tab-history,
  #tab-analytics,
  .help-panel,
  .generation-loader,
  .privacy-notice,
  .retention-status,
  .app-footer-note,
  .copy-btn,
  .secondary-btn,
  .primary-btn,
  .complexity-toggle {
    display: none !important;
  }

  body.print-solution-pack #tab-export {
    display: none !important;
  }

  body.print-solution-pack .app-header {
    display: none !important;
  }

  body.print-solution-pack #tab-solution {
    display: block !important;
    box-shadow: none;
    border: none;
    padding: 0;
    background: #fff;
  }

  body.print-solution-pack .solution-pdf-header {
    display: block !important;
    margin: 0 0 0.55rem;
    padding: 0.52rem 0.64rem;
    border: 1px solid #c9dced;
    border-left: 5px solid var(--cuny-blue);
    border-radius: 10px;
    background: #f6faff;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  body.print-solution-pack .solution-pdf-header h1 {
    margin: 0;
    font-size: 14pt;
    line-height: 1.2;
    color: var(--cuny-blue-dark);
  }

  body.print-solution-pack .solution-pdf-header p {
    margin: 0.28rem 0 0;
    font-size: 10pt;
    line-height: 1.35;
    color: #1f3e5f;
  }

  body.print-solution-pack .solution-pdf-toc {
    display: block !important;
    margin: 0 0 0.55rem;
    padding: 0.5rem 0.64rem 0.56rem;
    border: 1px solid #d3e0ee;
    border-radius: 10px;
    background: #ffffff;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  body.print-solution-pack .solution-pdf-toc h2 {
    margin: 0 0 0.22rem;
    font-size: 11.5pt;
    color: var(--cuny-blue-dark);
  }

  body.print-solution-pack .solution-pdf-toc-list {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  body.print-solution-pack .toc-item {
    margin: 0.14rem 0;
    gap: 0.3rem;
    font-size: 9.6pt;
    line-height: 1.26;
    color: #20354d;
  }

  body.print-solution-pack .toc-sub .toc-title {
    padding-left: 0.85rem;
  }

  body.print-solution-pack .toc-page {
    min-width: 1.4rem;
    color: #1a3f67;
    font-weight: 700;
  }

  body.print-solution-pack .solution-actions,
  body.print-solution-pack .copy-btn,
  body.print-solution-pack .excel-template-panel {
    display: none !important;
  }

  body.print-solution-pack .section-card {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  body.print-solution-pack .matrix-wrap {
    padding: 0 0.55rem 0.6rem;
    overflow: visible !important;
  }

  body.print-solution-pack .tracker-table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
  }

  body.print-solution-pack .tracker-table th,
  body.print-solution-pack .tracker-table td {
    font-size: 8.9pt;
    line-height: 1.24;
    padding: 0.25rem 0.3rem;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }

  body.print-solution-pack .tracker-table th:nth-child(1),
  body.print-solution-pack .tracker-table td:nth-child(1) {
    width: 22%;
  }

  body.print-solution-pack .tracker-table th:nth-child(2),
  body.print-solution-pack .tracker-table td:nth-child(2) {
    width: 16%;
  }

  body.print-solution-pack .tracker-table th:nth-child(3),
  body.print-solution-pack .tracker-table td:nth-child(3) {
    width: 12%;
  }

  body.print-solution-pack .tracker-table th:nth-child(4),
  body.print-solution-pack .tracker-table td:nth-child(4) {
    width: 14%;
  }

  body.print-solution-pack .tracker-table th:nth-child(5),
  body.print-solution-pack .tracker-table td:nth-child(5) {
    width: 36%;
  }

  body.print-solution-pack .tracker-table tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body.print-solution-pack .tracker-table .status-pill {
    min-width: 0;
    max-width: 100%;
    padding: 0.1rem 0.26rem;
    line-height: 1.15;
    white-space: normal;
  }

  body.print-solution-pack .raid-list {
    list-style: none;
  }

  body.print-solution-pack .raid-list li {
    list-style: none;
  }

  body.print-solution-pack .workstreams-list {
    padding: 0.5rem 0.62rem 0.58rem;
    gap: 0.32rem;
  }

  body.print-solution-pack .workstream-item {
    break-inside: avoid;
    page-break-inside: avoid;
    padding: 0.34rem 0.4rem;
  }

  body.print-solution-pack .workstream-title {
    font-size: 10pt;
  }

  body.print-solution-pack .workstream-focus,
  body.print-solution-pack .workstream-owner {
    font-size: 9pt;
    line-height: 1.24;
  }

  body.print-solution-pack .timeline-rail {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  body.print-solution-pack .chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.42rem;
    padding: 0.3rem 0.52rem 0.58rem;
  }

  body.print-solution-pack .chart-grid .chart-card:nth-child(3) {
    grid-column: 1 / -1;
  }

  body.print-solution-pack .donut-layout {
    grid-template-columns: minmax(0, 126px) minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
  }

  body.print-solution-pack .effort-donut {
    width: 118px;
    height: 118px;
    margin: 0 auto;
  }

  body.print-solution-pack .effort-donut::after {
    width: 68px;
    height: 68px;
  }

  body.print-solution-pack .effort-donut span {
    font-size: 9.2pt;
  }

  body.print-solution-pack .chart-legend {
    gap: 0.24rem;
    align-content: start;
    justify-items: start;
  }

  body.print-solution-pack .chart-legend li {
    font-size: 9pt;
    line-height: 1.24;
  }

  .analytics-usage-svg {
    width: 100% !important;
    height: auto !important;
  }

  .app-shell {
    max-width: none;
    padding: 0;
  }

  #tab-export {
    display: block !important;
    box-shadow: none;
    border: none;
    padding: 0;
    background: #fff;
  }

  .export-toolbar {
    margin-bottom: 0.25rem;
  }

  .export-btn {
    display: none !important;
  }

  .export-meta {
    margin-bottom: 0.45rem;
  }

  .export-preview {
    border: none;
    border-radius: 0;
    padding: 0;
    gap: 0.35rem;
  }

  .export-block {
    border: 1px solid #d8d8d8;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .export-heading {
    background: #f3f3f3;
    color: #1a1a1a;
    font-size: 11pt;
  }

  .export-body {
    font-size: 10.5pt;
    line-height: 1.35;
    padding: 0.5rem 0.62rem;
  }

  .export-timeline {
    gap: 0.15rem;
    padding: 0.5rem 1.1rem 0.58rem;
    font-size: 10pt;
  }

  .export-timeline li {
    break-inside: avoid;
  }

  .export-matrix-wrap {
    min-width: 0;
    overflow: visible;
  }

  .export-table {
    min-width: 0;
    table-layout: fixed;
  }

  .export-table th,
  .export-table td {
    font-size: 9pt;
    padding: 0.24rem 0.28rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .export-table tr {
    break-inside: avoid;
  }
}
