/* =========================================================
   Compass Portfolio + Application Toolkit
   Project stories, saved work, reflections, and application assets
========================================================= */

.portfolio-page {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-bottom: 48px;
}

.portfolio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: end;
  margin: 42px 0 28px;
}

.portfolio-hero-copy {
  max-width: 760px;
}

.portfolio-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-family: var(--compass-heading-font);
  font-size: clamp(48px, 6vw, 76px);
  line-height: 0.94;
  letter-spacing: -0.072em;
  font-weight: 800;
  text-wrap: balance;
}

.portfolio-hero-copy > p {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.58;
  font-weight: 540;
}

.portfolio-hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.portfolio-hero-actions > span {
  max-width: 330px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.48;
  font-weight: 650;
}

.portfolio-student-summary {
  padding: 22px;
  border: 1px solid rgba(16, 24, 40, 0.09);
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(86, 89, 214, 0.14), transparent 38%),
    rgba(255, 255, 255, 0.9);
  box-shadow:
    0 24px 70px rgba(16, 24, 40, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.portfolio-summary-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.portfolio-student-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 19px;
  color: #ffffff;
  background: linear-gradient(145deg, #6b70f4, #2f3192);
  box-shadow: 0 14px 30px rgba(47, 49, 146, 0.24);
  font-size: 20px;
  font-weight: 900;
}

.portfolio-summary-identity > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.portfolio-summary-identity span:not(.portfolio-student-avatar) {
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.portfolio-summary-identity strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.15;
  font-weight: 900;
}

.portfolio-summary-identity small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.portfolio-summary-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.portfolio-summary-metrics article {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.portfolio-summary-metrics strong {
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.portfolio-summary-metrics span {
  color: #475467;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 750;
}

/* Featured project */

.portfolio-featured {
  margin-bottom: 42px;
}

.portfolio-featured-card {
  position: relative;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 190px;
  gap: 32px;
  align-items: stretch;
  min-height: 390px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(47, 49, 146, 0.12);
  border-radius: 38px;
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 255, 255, 0.92), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(83, 103, 255, 0.13), transparent 30%),
    linear-gradient(135deg, #f7f8ff 0%, #ffffff 54%, #f6f7fc 100%);
  box-shadow:
    0 34px 100px rgba(16, 24, 40, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.portfolio-featured-card::after {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  right: -170px;
  bottom: -190px;
  border: 1px solid rgba(47, 49, 146, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(47, 49, 146, 0.025),
    0 0 0 86px rgba(47, 49, 146, 0.018);
  pointer-events: none;
}

.portfolio-featured-visual {
  position: relative;
  min-height: 330px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(47, 49, 146, 0.09);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 30%, rgba(87, 89, 238, 0.2), transparent 35%),
    linear-gradient(160deg, #eef0ff, #f9f9ff 48%, #ffffff);
}

.portfolio-featured-visual > img {
  position: relative;
  z-index: 2;
  width: 122px;
  height: 122px;
  object-fit: contain;
  filter: drop-shadow(0 24px 30px rgba(47, 49, 146, 0.18));
}

.portfolio-featured-orbit {
  position: absolute;
  inset: 34px;
  border: 1px solid rgba(47, 49, 146, 0.1);
  border-radius: 50%;
}

.portfolio-featured-orbit::before,
.portfolio-featured-orbit::after {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(47, 49, 146, 0.08);
  border-radius: 50%;
}

.portfolio-featured-orbit::after {
  inset: 54px;
}

.portfolio-featured-orbit span {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #5759ee;
  box-shadow: 0 8px 18px rgba(47, 49, 146, 0.18);
}

.portfolio-featured-orbit span:nth-child(1) { top: 24px; right: 38px; }
.portfolio-featured-orbit span:nth-child(2) { bottom: 34px; left: 18px; background: #d7b56d; }
.portfolio-featured-orbit span:nth-child(3) { right: 10px; bottom: 80px; background: #47a477; }

.portfolio-featured-progress {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.portfolio-featured-progress strong {
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.portfolio-featured-progress span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-align: right;
}

.portfolio-featured-copy {
  align-self: center;
  min-width: 0;
  padding: 8px 0;
}

.portfolio-featured-topline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.portfolio-featured-topline > span:last-child {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.portfolio-project-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.portfolio-project-status.progress {
  color: var(--accent);
  background: var(--accent-soft);
}

.portfolio-project-status.complete {
  color: #087443;
  background: #e9f8f0;
}

.portfolio-featured-copy h2 {
  max-width: 580px;
  margin: 18px 0 0;
  color: var(--text);
  font-family: var(--compass-heading-font);
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.062em;
  font-weight: 800;
}

.portfolio-featured-copy > p {
  max-width: 600px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.58;
}

.portfolio-featured-outcome {
  display: grid;
  gap: 5px;
  margin-top: 22px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}

.portfolio-featured-outcome span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.portfolio-featured-outcome strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 850;
}

.portfolio-featured-signals,
.portfolio-story-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.portfolio-featured-signals span,
.portfolio-story-signals span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(47, 49, 146, 0.08);
  border-radius: 999px;
  color: #4b4d82;
  background: rgba(238, 240, 255, 0.72);
  font-size: 10px;
  font-weight: 800;
}

.portfolio-featured-signals span,
.portfolio-story-signals span {
  gap: 7px;
}

.portfolio-featured-signals em,
.portfolio-story-signals em {
  font-style: normal;
  color: #667085;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.portfolio-featured-signals.demonstrated span,
.portfolio-story-signals.demonstrated span {
  border-color: rgba(8, 116, 67, 0.14);
  color: #087443;
  background: #edf9f3;
}

.portfolio-featured-signals.demonstrated em,
.portfolio-story-signals.demonstrated em {
  color: #087443;
}

.portfolio-featured-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.portfolio-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 999px;
  padding: 0 18px;
  color: #344054;
  background: #ffffff;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.portfolio-tertiary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  padding: 0 8px;
  color: var(--accent);
  background: transparent;
  font-size: 11px;
  font-weight: 900;
}

.portfolio-toolkit-readiness-note {
  max-width: 560px;
  margin: 13px 0 0 !important;
  color: #667085 !important;
  font-size: 10px !important;
  line-height: 1.5 !important;
  font-weight: 650;
}

.portfolio-featured-value {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  gap: 10px;
  padding-left: 24px;
  border-left: 1px solid rgba(16, 24, 40, 0.08);
}

.portfolio-featured-value > div {
  display: grid;
  gap: 3px;
  padding: 16px;
  border: 1px solid rgba(16, 24, 40, 0.07);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.portfolio-featured-value strong {
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.portfolio-featured-value span {
  color: #475467;
  font-size: 10px;
  line-height: 1.35;
  font-weight: 700;
}

.portfolio-featured-value .portfolio-featured-next {
  border-color: rgba(47, 49, 146, 0.16);
  background: linear-gradient(180deg, #f1f2ff, #ffffff);
}

.portfolio-featured-value .portfolio-featured-next strong {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Project story cards */

.portfolio-project-stories {
  margin-top: 44px;
}

.portfolio-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.portfolio-section-kicker,
.portfolio-value-kicker,
.project-story-side-kicker {
  display: block;
  color: var(--accent);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.portfolio-section-heading h2 {
  margin: 7px 0 0;
  color: var(--text);
  font-family: var(--compass-heading-font);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 800;
}

.portfolio-section-heading p {
  max-width: 640px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.52;
}

.portfolio-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.portfolio-story-grid.single-project {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.78fr);
  align-items: stretch;
}

.portfolio-next-step-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  color: #ffffff;
  background:
    radial-gradient(circle at 100% 0%, rgba(104, 114, 255, 0.32), transparent 38%),
    linear-gradient(155deg, #111f49 0%, #16275d 48%, #0a1839 100%);
  box-shadow: 0 24px 70px rgba(7, 18, 37, 0.18);
}

.portfolio-next-step-card .portfolio-section-kicker {
  margin-top: 18px;
  color: #f2d594;
}

.portfolio-next-step-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 17px;
  color: #f2d594;
  background: rgba(255, 255, 255, 0.1);
  font-size: 20px;
}

.portfolio-next-step-card h3 {
  margin: 9px 0 0;
  color: #ffffff;
  font-family: var(--compass-heading-font);
  font-size: clamp(27px, 3.5vw, 38px);
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 800;
}

.portfolio-next-step-card > p {
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  line-height: 1.55;
}

.portfolio-path-sequence {
  display: grid;
  gap: 7px;
  margin-top: 22px;
}

.portfolio-path-sequence > div {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.045);
}

.portfolio-path-sequence i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.08);
  font-style: normal;
  font-size: 8px;
  font-weight: 900;
}

.portfolio-path-sequence span {
  font-size: 10px;
  line-height: 1.3;
  font-weight: 760;
}

.portfolio-path-sequence > div.complete {
  color: rgba(255, 255, 255, 0.72);
}

.portfolio-path-sequence > div.complete i {
  color: #dff9eb;
  background: rgba(71, 164, 119, 0.25);
}

.portfolio-path-sequence > div.active {
  border-color: rgba(242, 213, 148, 0.3);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.11);
}

.portfolio-path-sequence > div.active i {
  color: #17233f;
  background: #f2d594;
}

.portfolio-next-step-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  margin-top: auto;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #142143;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
  font-size: 11px;
  font-weight: 900;
}

.portfolio-story-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid rgba(16, 24, 40, 0.09);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 18px 54px rgba(16, 24, 40, 0.065),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.portfolio-story-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 49, 146, 0.18);
  box-shadow: 0 24px 64px rgba(16, 24, 40, 0.09);
}

.portfolio-story-card-header {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
}

.portfolio-story-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 19px;
  background: #f4f5ff;
}

.portfolio-story-icon img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.portfolio-story-card-heading {
  min-width: 0;
}

.portfolio-story-card-heading > span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.portfolio-story-card h3 {
  margin: 5px 0 0;
  color: var(--text);
  font-family: var(--compass-heading-font);
  font-size: 20px;
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.portfolio-story-card > p {
  margin: 18px 0 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.55;
}

.portfolio-story-progress {
  height: 7px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(16, 24, 40, 0.07);
}

.portfolio-story-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5759ee, #2f3192);
}

.portfolio-story-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.portfolio-story-facts > div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  border-radius: 15px;
  background: var(--surface-soft);
}

.portfolio-story-facts strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.portfolio-story-facts span {
  color: #667085;
  font-size: 9px;
  font-weight: 750;
}

.portfolio-story-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 20px;
}

.portfolio-story-card-footer > span {
  color: #667085;
  font-size: 10px;
  font-weight: 750;
}

.portfolio-story-card-footer > div {
  display: flex;
  gap: 7px;
}

.portfolio-story-card-footer button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 10px;
  font-weight: 850;
}

.portfolio-story-card-footer button:last-child {
  color: #344054;
  background: #f2f4f7;
}

/* Value cards */

.portfolio-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.portfolio-value-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid rgba(16, 24, 40, 0.09);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(83, 103, 255, 0.06), transparent 34%),
    rgba(255, 255, 255, 0.91);
  box-shadow: 0 18px 54px rgba(16, 24, 40, 0.055);
}

.portfolio-value-card h2 {
  margin: 8px 0 0;
  color: var(--text);
  font-family: var(--compass-heading-font);
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.portfolio-value-card > p {
  margin: 12px 0 0;
  color: #475467;
  font-size: 12px;
  line-height: 1.52;
}

.portfolio-toolkit-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding: 13px 14px;
  border-radius: 16px;
  background: var(--accent-soft);
}

.portfolio-toolkit-progress-row strong {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.portfolio-toolkit-progress-row span {
  color: #686a91;
  font-size: 9px;
  font-weight: 750;
}

.portfolio-toolkit-mini-list,
.portfolio-demonstrates-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.portfolio-toolkit-mini-list > span {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 0 11px;
  border-radius: 13px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 10px;
  font-weight: 750;
}

.portfolio-toolkit-mini-list i {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 50%;
  color: #98a2b3;
  background: #ffffff;
  font-style: normal;
  font-size: 9px;
  font-weight: 900;
}

.portfolio-toolkit-mini-list > span.complete {
  color: #087443;
  background: #edf9f3;
}

.portfolio-toolkit-mini-list > span.complete i {
  border-color: #9dd9bd;
  color: #087443;
}

.portfolio-toolkit-mini-list.all-tools {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portfolio-toolkit-mini-list.all-tools > span {
  position: relative;
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  min-height: 42px;
}

.portfolio-toolkit-mini-list b {
  color: #475467;
  font-size: 9.5px;
  font-weight: 820;
}

.portfolio-toolkit-mini-list em {
  grid-column: 2;
  margin-top: -4px;
  color: var(--accent);
  font-style: normal;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portfolio-toolkit-mini-list > span.recommended {
  border: 1px solid rgba(47, 49, 146, 0.12);
  color: var(--accent);
  background: var(--accent-soft);
}

.portfolio-toolkit-mini-list > span.recommended i {
  border-color: rgba(47, 49, 146, 0.18);
  color: var(--accent);
}

.portfolio-demonstrates-list > div:not(.portfolio-value-empty) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 14px;
  background: var(--surface-soft);
}

.portfolio-demonstrates-list span {
  color: #344054;
  font-size: 10px;
  font-weight: 800;
}

.portfolio-demonstrates-list strong {
  color: var(--accent);
  font-size: 9px;
  font-weight: 850;
}

.portfolio-demonstrates-list > div.emerging strong {
  color: #686a91;
}

.portfolio-demonstrates-list > div.demonstrated {
  background: #edf9f3;
}

.portfolio-demonstrates-list > div.demonstrated strong {
  color: #087443;
}

.portfolio-value-empty {
  padding: 15px;
  border-radius: 14px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 11px;
  line-height: 1.5;
}

.portfolio-parent-question {
  margin-top: 20px;
  padding: 17px;
  border: 1px solid rgba(215, 181, 109, 0.22);
  border-radius: 18px;
  background: linear-gradient(180deg, #fffaf0, #ffffff);
}

.portfolio-parent-question span {
  display: block;
  color: #9b742b;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portfolio-parent-question strong {
  display: block;
  margin-top: 8px;
  color: #44361c;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 800;
}

.portfolio-value-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  padding: 18px 0 0;
  border: 0;
  color: var(--accent);
  background: transparent;
  font-size: 11px;
  font-weight: 900;
  text-align: left;
}

/* Empty/loading */

.portfolio-loading {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 13px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.portfolio-loading span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 23px;
  animation: portfolioPulse 1.6s ease-in-out infinite;
}

.portfolio-loading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

@keyframes portfolioPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.portfolio-empty-state {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 34px;
  border: 1px solid rgba(47, 49, 146, 0.12);
  border-radius: 34px;
  background:
    radial-gradient(circle at 100% 0%, rgba(83, 103, 255, 0.1), transparent 34%),
    #ffffff;
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.08);
}

.portfolio-empty-visual {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border-radius: 38px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 46px;
  box-shadow: inset 0 0 0 1px rgba(47, 49, 146, 0.08);
}

.portfolio-empty-state h2 {
  margin: 8px 0 0;
  color: var(--text);
  font-family: var(--compass-heading-font);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 800;
}

.portfolio-empty-state p {
  max-width: 620px;
  margin: 14px 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Modal foundation */

body.portfolio-modal-open {
  overflow: hidden;
}

.portfolio-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  padding: 22px;
}

.portfolio-modal.active {
  display: grid;
  place-items: center;
}

.portfolio-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 15%, rgba(83, 103, 255, 0.18), transparent 35%),
    rgba(7, 18, 37, 0.68);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.portfolio-story-modal-card,
.portfolio-toolkit-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 1220px);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 36px;
  background: #f7f8fb;
  box-shadow: 0 38px 120px rgba(7, 18, 37, 0.35);
  overscroll-behavior: contain;
}

.portfolio-modal-close {
  position: sticky;
  top: 16px;
  z-index: 10;
  float: right;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 16px 16px -56px 0;
  border: 1px solid rgba(16, 24, 40, 0.09);
  border-radius: 50%;
  color: #667085;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 22px;
  line-height: 1;
}

/* Project story modal */

.project-story-hero {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 240px;
  gap: 24px;
  align-items: center;
  padding: 38px 44px 32px;
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
  background:
    radial-gradient(circle at 10% 15%, rgba(83, 103, 255, 0.12), transparent 24%),
    radial-gradient(circle at 95% 0%, rgba(215, 181, 109, 0.12), transparent 28%),
    #ffffff;
}

.project-story-icon {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 29px;
  background: #f0f1ff;
  box-shadow: inset 0 0 0 1px rgba(47, 49, 146, 0.08);
}

.project-story-icon img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.project-story-hero-copy {
  min-width: 0;
}

.project-story-eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-story-eyebrow span {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 9px;
  font-weight: 850;
}

.project-story-eyebrow span:last-child {
  color: #087443;
  background: #e9f8f0;
}

.project-story-hero h2 {
  margin: 12px 0 0;
  color: var(--text);
  font-family: var(--compass-heading-font);
  font-size: clamp(36px, 4.5vw, 58px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.project-story-hero-copy > p {
  max-width: 690px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.52;
}

.project-story-outcome {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(47, 49, 146, 0.1);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.78);
}

.project-story-outcome span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-story-outcome strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 850;
}

.project-story-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
  padding: 26px;
}

.project-story-main,
.project-story-sidebar {
  display: grid;
  gap: 18px;
}

.project-story-section,
.project-story-side-card {
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(16, 24, 40, 0.045);
}

.project-story-section {
  padding: 25px;
}

.project-story-section-heading {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
}

.project-story-section-heading.with-action {
  grid-template-columns: 36px minmax(0, 1fr) auto;
}

.project-story-section-heading > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 10px;
  font-weight: 900;
}

.project-story-section-heading h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--compass-heading-font);
  font-size: 21px;
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.project-story-section-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.project-story-section-heading > button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 13px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 10px;
  font-weight: 850;
}

.project-story-prose {
  margin-top: 20px;
  padding: 20px;
  border-radius: 20px;
  background: var(--surface-soft);
}

.project-story-prose p {
  margin: 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.65;
}

.project-artifact-gallery {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.project-artifact-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 19px;
  background: #ffffff;
}

.project-artifact-card.featured {
  border-color: rgba(47, 49, 146, 0.14);
  background: linear-gradient(180deg, #fafaff, #ffffff);
}

.project-artifact-type {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 18px;
  font-weight: 900;
}

.project-artifact-card > div:nth-child(2) {
  min-width: 0;
}

.project-artifact-card span,
.project-artifact-card strong,
.project-artifact-card p {
  display: block;
}

.project-artifact-card span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-artifact-card strong {
  margin-top: 3px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 850;
}

.project-artifact-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.42;
}

.project-artifact-card > a,
.project-artifact-actions a,
.project-artifact-actions button {
  border: 0;
  color: var(--accent);
  background: transparent;
  font-size: 10px;
  font-weight: 850;
  text-decoration: none;
}

.project-artifact-actions {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.project-artifact-actions button {
  color: #b42318;
}

.project-artifact-empty {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 18px;
  border: 1px dashed rgba(16, 24, 40, 0.14);
  border-radius: 19px;
  background: #fbfcfe;
}

.project-artifact-empty > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 18px;
}

.project-artifact-empty strong {
  display: block;
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
}

.project-artifact-empty p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.portfolio-artifact-form {
  display: none;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(47, 49, 146, 0.13);
  border-radius: 21px;
  background: #f9f9ff;
}

.portfolio-artifact-form.active {
  display: block;
}

.portfolio-artifact-form-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.portfolio-artifact-form-head strong,
.portfolio-artifact-form-head span {
  display: block;
}

.portfolio-artifact-form-head strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.portfolio-artifact-form-head span {
  max-width: 620px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.portfolio-artifact-form-head button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  color: #667085;
  background: #ffffff;
  font-size: 17px;
}

.portfolio-artifact-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 11px;
  margin-top: 15px;
}

.portfolio-artifact-fields label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 9px;
  font-weight: 850;
}

.portfolio-artifact-fields label.full {
  grid-column: 1 / -1;
}

.portfolio-artifact-fields input,
.portfolio-artifact-fields select,
.portfolio-artifact-fields textarea {
  width: 100%;
  border: 1px solid rgba(16, 24, 40, 0.11);
  border-radius: 14px;
  padding: 11px 12px;
  color: var(--text);
  background: #ffffff;
  font: inherit;
  font-size: 11px;
  outline: none;
}

.portfolio-artifact-fields textarea {
  min-height: 86px;
  resize: vertical;
}

.portfolio-artifact-fields input:focus,
.portfolio-artifact-fields select:focus,
.portfolio-artifact-fields textarea:focus {
  border-color: rgba(47, 49, 146, 0.42);
  box-shadow: 0 0 0 3px rgba(47, 49, 146, 0.07);
}

.portfolio-artifact-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 13px;
}

.portfolio-artifact-form-actions span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.portfolio-artifact-form-actions span.error { color: #b42318; }
.portfolio-artifact-form-actions span.saving { color: var(--accent); }

.project-story-timeline {
  display: grid;
  gap: 0;
  margin-top: 22px;
}

.project-story-timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 13px;
  padding-bottom: 19px;
}

.project-story-timeline article:last-child {
  padding-bottom: 0;
}

.project-story-timeline article:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 34px;
  bottom: 0;
  width: 1px;
  background: rgba(16, 24, 40, 0.1);
}

.project-story-timeline i {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 12px;
  color: #98a2b3;
  background: #ffffff;
  font-style: normal;
  font-size: 9px;
  font-weight: 900;
}

.project-story-timeline article.complete i {
  border-color: #a6dbc3;
  color: #087443;
  background: #edf9f3;
}

.project-story-timeline strong {
  display: block;
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
}

.project-story-timeline p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.48;
}

.project-reflection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.project-reflection-grid article {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #ffffff;
}

.project-reflection-grid article.empty {
  border-style: dashed;
  background: #fbfcfe;
}

.project-reflection-grid span {
  display: block;
  color: var(--accent);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.project-reflection-grid p {
  margin: 8px 0 0;
  color: #475467;
  font-size: 10px;
  line-height: 1.55;
}

.project-reflection-grid article.empty p {
  color: #98a2b3;
}

.project-story-side-card {
  padding: 22px;
}

.project-story-side-card h3 {
  margin: 8px 0 0;
  color: var(--text);
  font-family: var(--compass-heading-font);
  font-size: 20px;
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.project-quality-list {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.project-quality-list > div {
  padding: 13px;
  border-radius: 16px;
  background: var(--surface-soft);
}

.project-quality-list > div.demonstrated {
  background: #edf9f3;
}

.project-quality-status {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  margin-bottom: 7px;
  padding: 0 8px;
  border-radius: 999px;
  color: #686a91;
  background: #eef0ff;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.project-quality-list > div.demonstrated .project-quality-status {
  color: #087443;
  background: #dff3e9;
}

.project-quality-list strong {
  display: block;
  color: var(--text);
  font-size: 10px;
  font-weight: 850;
}

.project-quality-list p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.48;
}

.project-story-side-card.toolkit-card {
  border-color: rgba(47, 49, 146, 0.13);
  background:
    radial-gradient(circle at 100% 0%, rgba(83, 103, 255, 0.1), transparent 34%),
    #ffffff;
}

.project-story-side-card > p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.project-story-side-card > button {
  width: 100%;
  min-height: 42px;
  margin-top: 17px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(180deg, #5759ee, #2f3192);
  font-size: 10px;
  font-weight: 850;
}

.project-story-side-card.parent-card {
  border-color: rgba(215, 181, 109, 0.2);
  background: linear-gradient(180deg, #fffaf0, #ffffff);
}

.project-story-side-card blockquote {
  margin: 15px 0 0;
  color: #44361c;
  font-family: var(--compass-heading-font);
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.025em;
  font-weight: 750;
}

.project-story-footer {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 17px 26px;
  border-top: 1px solid rgba(16, 24, 40, 0.08);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* Application Toolkit modal */

.toolkit-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 42px;
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
  background:
    radial-gradient(circle at 10% 15%, rgba(83, 103, 255, 0.12), transparent 25%),
    #ffffff;
}

.toolkit-project-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.toolkit-project-identity img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.toolkit-project-identity > div {
  min-width: 0;
}

.toolkit-project-identity span,
.toolkit-project-identity strong {
  display: block;
}

.toolkit-project-identity span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.toolkit-project-identity strong {
  margin-top: 5px;
  overflow: hidden;
  color: var(--text);
  font-family: var(--compass-heading-font);
  font-size: 23px;
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolkit-progress-copy {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.toolkit-progress-copy strong {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.toolkit-progress-copy span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.toolkit-modal-layout {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr) 285px;
  min-height: 610px;
}

.toolkit-type-nav {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 24px 16px;
  border-right: 1px solid rgba(16, 24, 40, 0.08);
  background: #f4f5f9;
}

.toolkit-type-nav button {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 62px;
  padding: 10px;
  border: 0;
  border-radius: 17px;
  color: #667085;
  background: transparent;
  text-align: left;
}

.toolkit-type-nav button:hover,
.toolkit-type-nav button.active {
  color: var(--text);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
}

.toolkit-type-nav i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 9px;
  color: #98a2b3;
  background: #ffffff;
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
}

.toolkit-type-nav button.active i {
  border-color: rgba(47, 49, 146, 0.15);
  color: var(--accent);
  background: var(--accent-soft);
}

.toolkit-type-nav span,
.toolkit-type-nav strong,
.toolkit-type-nav small {
  display: block;
}

.toolkit-type-nav strong {
  color: inherit;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 850;
}

.toolkit-type-nav small {
  margin-top: 3px;
  color: #98a2b3;
  font-size: 8px;
  font-weight: 650;
}

.toolkit-builder {
  min-width: 0;
  padding: 34px;
  background: #ffffff;
}

.toolkit-builder-kicker {
  display: block;
  color: var(--accent);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.toolkit-builder h2 {
  margin: 8px 0 0;
  color: var(--text);
  font-family: var(--compass-heading-font);
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 800;
}

.toolkit-builder > p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.52;
}

.toolkit-guidance-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.7fr);
  gap: 18px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(47, 49, 146, 0.12);
  border-radius: 20px;
  background: var(--accent-soft);
}

.toolkit-guidance-card span,
.toolkit-guidance-card strong {
  display: block;
}

.toolkit-guidance-card span {
  color: var(--accent);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.toolkit-guidance-card strong {
  margin-top: 6px;
  color: #36385e;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 800;
}

.toolkit-guidance-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toolkit-guidance-card li {
  position: relative;
  padding-left: 14px;
  color: #55577d;
  font-size: 9px;
  line-height: 1.4;
  font-weight: 700;
}

.toolkit-guidance-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 900;
}

.toolkit-editor-label {
  display: block;
  margin-top: 24px;
  color: #344054;
  font-size: 10px;
  font-weight: 850;
}

.toolkit-editor {
  width: 100%;
  min-height: 240px;
  margin-top: 8px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: 20px;
  padding: 18px;
  color: var(--text);
  background: #fbfcfe;
  font: inherit;
  font-size: 12px;
  line-height: 1.65;
  resize: vertical;
  outline: none;
}

.toolkit-editor:focus {
  border-color: rgba(47, 49, 146, 0.42);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(47, 49, 146, 0.07);
}

.toolkit-editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
}

.toolkit-editor-actions > div {
  display: flex;
  gap: 8px;
}

.toolkit-save-status {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
  font-weight: 700;
}

.toolkit-save-status.success { color: #087443; }
.toolkit-save-status.error { color: #b42318; }
.toolkit-save-status.saving { color: var(--accent); }

.toolkit-context-sidebar {
  padding: 28px 22px;
  border-left: 1px solid rgba(16, 24, 40, 0.08);
  background: #f7f8fb;
}

.toolkit-context-sidebar h3 {
  margin: 8px 0 0;
  color: var(--text);
  font-family: var(--compass-heading-font);
  font-size: 20px;
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.toolkit-context-list {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.toolkit-context-list > div {
  display: grid;
  gap: 4px;
  padding: 13px;
  border-radius: 15px;
  background: #ffffff;
}

.toolkit-context-list span,
.toolkit-context-list strong {
  display: block;
}

.toolkit-context-list span {
  color: #98a2b3;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toolkit-context-list strong {
  color: #344054;
  font-size: 10px;
  line-height: 1.35;
  font-weight: 800;
}

.toolkit-context-signals,
.toolkit-context-reflection {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(16, 24, 40, 0.09);
}

.toolkit-context-signals > span,
.toolkit-context-reflection > span {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toolkit-context-signals strong {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  margin: 0 5px 5px 0;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 8px;
  font-weight: 800;
}

.toolkit-context-reflection p {
  margin: 0;
  color: #475467;
  font-size: 10px;
  line-height: 1.55;
}

/* Responsive */

@media (max-width: 1120px) {
  .portfolio-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .portfolio-student-summary {
    max-width: 520px;
  }

  .portfolio-featured-card {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .portfolio-featured-value {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 18px 0 0;
    border-top: 1px solid rgba(16, 24, 40, 0.08);
    border-left: 0;
  }

  .portfolio-story-grid.single-project {
    grid-template-columns: 1fr;
  }

  .portfolio-value-grid {
    grid-template-columns: 1fr 1fr;
  }

  .portfolio-value-card:last-child {
    grid-column: 1 / -1;
  }

  .project-story-body {
    grid-template-columns: 1fr;
  }

  .project-story-sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .toolkit-modal-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .toolkit-context-sidebar {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    border-top: 1px solid rgba(16, 24, 40, 0.08);
    border-left: 0;
  }

  .toolkit-context-sidebar > .project-story-side-kicker,
  .toolkit-context-sidebar > h3 {
    grid-column: 1 / -1;
  }

  .toolkit-context-list,
  .toolkit-context-signals,
  .toolkit-context-reflection {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
}

@media (max-width: 820px) {
  .portfolio-page {
    padding-bottom: 100px;
  }

  .portfolio-hero {
    margin-top: 26px;
    gap: 22px;
  }

  .portfolio-hero h1 {
    font-size: clamp(40px, 12vw, 56px);
    line-height: 0.97;
    letter-spacing: -0.06em;
  }

  .portfolio-hero-copy > p {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.52;
  }

  .portfolio-hero-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 22px;
  }

  .portfolio-hero-actions .compass-primary-btn {
    width: 100%;
  }

  .portfolio-student-summary {
    width: 100%;
    max-width: none;
    padding: 18px;
    border-radius: 25px;
  }

  .portfolio-featured-card {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 0;
    padding: 18px;
    border-radius: 30px;
  }

  .portfolio-featured-visual {
    min-height: 250px;
    border-radius: 24px;
  }

  .portfolio-featured-visual > img {
    width: 104px;
    height: 104px;
  }

  .portfolio-featured-copy {
    padding: 4px 3px;
  }

  .portfolio-featured-copy h2 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .portfolio-featured-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .portfolio-featured-actions > * {
    width: 100%;
  }

  .portfolio-tertiary-action {
    min-height: 44px;
  }

  .portfolio-featured-value {
    grid-template-columns: 1fr;
  }

  .portfolio-story-grid,
  .portfolio-value-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-story-grid.single-project {
    grid-template-columns: 1fr;
  }

  .portfolio-next-step-card {
    min-height: 520px;
    padding: 22px;
    border-radius: 26px;
  }

  .portfolio-toolkit-mini-list.all-tools {
    grid-template-columns: 1fr;
  }

  .portfolio-value-card:last-child {
    grid-column: auto;
  }

  .portfolio-story-card-header {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .portfolio-story-card-header .portfolio-project-status {
    grid-column: 1 / -1;
  }

  .portfolio-story-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .portfolio-story-card-footer > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .portfolio-modal {
    align-items: end;
    padding: 0;
  }

  .portfolio-story-modal-card,
  .portfolio-toolkit-modal-card {
    width: 100%;
    max-height: 94vh;
    border-radius: 30px 30px 0 0;
  }

  .portfolio-modal-close {
    top: 12px;
    margin: 12px 12px -52px 0;
  }

  .project-story-hero {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 14px;
    padding: 28px 18px 22px;
  }

  .project-story-icon {
    width: 68px;
    height: 68px;
    border-radius: 22px;
  }

  .project-story-icon img {
    width: 54px;
    height: 54px;
  }

  .project-story-outcome {
    grid-column: 1 / -1;
  }

  .project-story-hero h2 {
    font-size: clamp(31px, 9.5vw, 42px);
  }

  .project-story-body {
    padding: 14px;
  }

  .project-story-section,
  .project-story-side-card {
    padding: 19px;
    border-radius: 23px;
  }

  .project-story-section-heading.with-action {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .project-story-section-heading.with-action > button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .project-artifact-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .project-artifact-card > a,
  .project-artifact-actions {
    grid-column: 1 / -1;
    justify-items: start;
  }

  .project-artifact-actions {
    display: flex;
  }

  .portfolio-artifact-fields {
    grid-template-columns: 1fr;
  }

  .portfolio-artifact-fields label.full {
    grid-column: auto;
  }

  .project-reflection-grid,
  .project-story-sidebar {
    grid-template-columns: 1fr;
  }

  .project-story-footer {
    display: grid;
    grid-template-columns: 1fr;
    padding: 13px 14px calc(13px + env(safe-area-inset-bottom));
  }

  .project-story-footer > * {
    width: 100%;
  }

  .toolkit-modal-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 18px 18px;
  }

  .toolkit-progress-copy {
    justify-items: start;
  }

  .toolkit-modal-layout {
    display: block;
  }

  .toolkit-type-nav {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 12px 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(16, 24, 40, 0.08);
    scrollbar-width: none;
  }

  .toolkit-type-nav::-webkit-scrollbar {
    display: none;
  }

  .toolkit-type-nav button {
    flex: 0 0 170px;
  }

  .toolkit-builder {
    padding: 24px 18px;
  }

  .toolkit-guidance-card {
    grid-template-columns: 1fr;
  }

  .toolkit-editor {
    min-height: 260px;
  }

  .toolkit-editor-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .toolkit-editor-actions > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .toolkit-editor-actions button {
    width: 100%;
  }

  .toolkit-context-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    padding: 22px 18px calc(28px + env(safe-area-inset-bottom));
  }

  .toolkit-context-sidebar > .project-story-side-kicker,
  .toolkit-context-sidebar > h3 {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .portfolio-summary-metrics {
    gap: 5px;
  }

  .portfolio-summary-metrics strong {
    font-size: 21px;
  }

  .portfolio-story-card,
  .portfolio-value-card {
    padding: 18px;
    border-radius: 24px;
  }

  .portfolio-story-facts {
    gap: 5px;
  }

  .portfolio-story-facts > div {
    padding: 9px 8px;
  }

  .portfolio-story-card-footer > div,
  .toolkit-editor-actions > div {
    grid-template-columns: 1fr;
  }

  .portfolio-empty-state {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .portfolio-empty-visual {
    width: 96px;
    height: 96px;
  }

  .portfolio-artifact-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .portfolio-artifact-form-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-story-card,
  .portfolio-loading span {
    transition: none;
    animation: none;
  }
}

/* =========================================================
   Rounded white Portfolio project icons
   Matches the Dashboard icon presentation
========================================================= */

.portfolio-featured-visual > img {
  display: block;
  box-sizing: border-box;
  width: 138px;
  height: 138px;
  padding: 8px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 30px;
  background: #ffffff;
  object-fit: contain;
  box-shadow:
    0 22px 48px rgba(47, 49, 146, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

/* Project cards inside Portfolio */
.portfolio-story-icon img {
  display: block;
  box-sizing: border-box;
  width: 47px;
  height: 47px;
  padding: 3px;
  border-radius: 14px;
  background: #ffffff;
  object-fit: contain;
}

/* Project Story popup */
.project-story-icon img {
  display: block;
  box-sizing: border-box;
  width: 76px;
  height: 76px;
  padding: 5px;
  border: 1px solid rgba(16, 24, 40, 0.07);
  border-radius: 22px;
  background: #ffffff;
  object-fit: contain;
  box-shadow:
    0 12px 28px rgba(47, 49, 146, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

@media (max-width: 760px) {
  .portfolio-featured-visual > img {
    width: 118px;
    height: 118px;
    padding: 7px;
    border-radius: 26px;
  }

  .project-story-icon img {
    width: 58px;
    height: 58px;
    padding: 4px;
    border-radius: 18px;
  }
}

/* Story Bank */
.portfolio-story-bank {
  margin: 34px 0 42px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(104, 112, 146, .15);
  border-radius: 32px;
  background:
    radial-gradient(circle at 90% 12%, rgba(110, 91, 234, .1), transparent 32%),
    linear-gradient(180deg, #fff, #fbfbff);
}

.story-bank-heading {
  align-items: flex-end;
  margin-bottom: 24px;
}

.story-bank-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.story-bank-preview-grid .story-entry-card {
  min-height: 190px;
}

.story-entry-empty.large {
  grid-column: 1 / -1;
  padding: 38px 24px;
}

.story-bank-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: none;
}

.story-bank-modal.open {
  display: block;
}

.story-bank-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 17, 39, .58);
  backdrop-filter: blur(12px);
}

.story-bank-dialog {
  position: relative;
  width: min(1080px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  margin: 20px auto;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 34px 90px rgba(12, 21, 48, .3);
  padding: clamp(24px, 4vw, 48px);
}

.story-bank-dialog > header {
  max-width: 760px;
  margin-bottom: 26px;
}

.story-bank-dialog > header span {
  color: #4e43d0;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.story-bank-dialog > header h2 {
  margin: 8px 0 10px;
  color: #111b31;
  font-size: clamp(42px, 7vw, 74px);
  line-height: .96;
  letter-spacing: -.055em;
}

.story-bank-dialog > header p {
  margin: 0;
  color: #68748b;
  font-size: 17px;
  line-height: 1.6;
}

.story-bank-close {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(98, 108, 142, .16);
  border-radius: 999px;
  background: #fff;
  color: #647087;
  font-size: 28px;
  cursor: pointer;
}

.story-bank-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 12px;
  margin-bottom: 20px;
}

.story-bank-controls label {
  display: grid;
  gap: 7px;
}

.story-bank-controls label > span {
  color: #27324a;
  font-size: 13px;
  font-weight: 800;
}

.story-bank-controls input,
.story-bank-controls select {
  width: 100%;
  border: 1px solid rgba(104, 112, 146, .2);
  border-radius: 16px;
  background: #fff;
  color: #172139;
  font: inherit;
  padding: 14px 16px;
}

.story-bank-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.story-bank-card {
  border: 1px solid rgba(104, 112, 146, .16);
  border-radius: 24px;
  background: linear-gradient(180deg, #fff, #fcfcff);
  padding: 22px;
}

.story-bank-card-top,
.story-bank-card-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.story-bank-card-top span {
  color: #4b40cd;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.story-bank-card-top time,
.story-bank-card-bottom span {
  color: #8a94a8;
  font-size: 12px;
}

.story-bank-card h3 {
  margin: 14px 0 8px;
  color: #172139;
  font-size: 21px;
  line-height: 1.15;
}

.story-bank-card p {
  margin: 0;
  color: #5f6c84;
  font-size: 15px;
  line-height: 1.6;
}

.story-bank-card-bottom {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(104, 112, 146, .11);
}

.story-bank-card-bottom strong {
  color: #2b3650;
  font-size: 13px;
}

@media (max-width: 760px) {
  .story-bank-preview-grid,
  .story-bank-results,
  .story-bank-controls {
    grid-template-columns: 1fr;
  }

  .story-bank-dialog {
    width: calc(100% - 16px);
    max-height: calc(100vh - 16px);
    margin: 8px auto;
    border-radius: 24px;
  }
}

/* Calm portfolio disclosures */
.portfolio-deeper-view,
.portfolio-more-experiences {
  margin: 30px 0 0;
  border: 1px solid rgba(104, 112, 146, .15);
  border-radius: 26px;
  background: rgba(255, 255, 255, .9);
  overflow: hidden;
}

.portfolio-deeper-view > summary,
.portfolio-more-experiences > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  list-style: none;
  cursor: pointer;
}

.portfolio-deeper-view > summary::-webkit-details-marker,
.portfolio-more-experiences > summary::-webkit-details-marker { display: none; }
.portfolio-deeper-view > summary span,
.portfolio-more-experiences > summary span:first-child { display: grid; gap: 3px; }
.portfolio-deeper-view > summary strong,
.portfolio-more-experiences > summary strong { color: #1c2740; font-size: 17px; }
.portfolio-deeper-view > summary em,
.portfolio-more-experiences > summary em { color: #758096; font-size: 13px; font-style: normal; }
.portfolio-deeper-view > summary svg { width: 22px; color: #6659dc; transition: transform .2s ease; }
.portfolio-deeper-view[open] > summary svg { transform: rotate(180deg); }
.portfolio-deeper-view .portfolio-value-grid { margin: 0; padding: 0 22px 24px; }
.portfolio-more-experiences > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 0 20px 22px; }
.portfolio-more-experiences > div .portfolio-story-card { min-width: 0; }

@media (max-width: 760px) {
  .portfolio-more-experiences > div { grid-template-columns: 1fr; padding: 0 12px 16px; }
}

/* =========================================================
   Portfolio mobile polish
   Story Bank action + compact project card actions
========================================================= */

@media (max-width: 760px) {

  /* -----------------------------------------
     Story Bank heading
  ----------------------------------------- */

  .portfolio-story-bank {
    margin: 24px 0 32px;
    padding: 24px 20px;
    border-radius: 26px;
  }

  .story-bank-heading {
    display: block;
    margin-bottom: 20px;
  }

  .story-bank-heading > div {
    max-width: none;
  }

  .story-bank-heading h2 {
    max-width: 420px;
  }

  .story-bank-heading p {
    max-width: 520px;
  }

  /* Whatever button markup portfolio.js uses,
     keep it as a normal compact pill */

  .story-bank-heading > button,
  .story-bank-heading > a,
  .story-bank-heading .compass-primary-btn,
  .story-bank-heading .portfolio-secondary-action {
    width: auto !important;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 0 18px;
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1;
  }


  /* -----------------------------------------
     Project story cards
  ----------------------------------------- */

  .portfolio-story-card {
    padding: 20px;
  }

  .portfolio-story-card-footer {
    display: block;
    margin-top: 20px;
    padding-top: 0;
  }

  .portfolio-story-card-footer > span {
    display: block;
    margin-bottom: 12px;
    color: #667085;
    font-size: 10px;
    line-height: 1.35;
    font-weight: 750;
  }

  .portfolio-story-card-footer > div {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .portfolio-story-card-footer button {
    width: auto !important;
    min-width: 0 !important;
    min-height: 40px;
    padding: 0 17px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    font-weight: 850;
  }

  /* Primary action */

  .portfolio-story-card-footer button:first-child {
    color: #ffffff;
    background: linear-gradient(
      135deg,
      #6258f4,
      #3730bf
    );
    box-shadow: 0 8px 20px rgba(55, 48, 191, 0.18);
  }

  /* Preview */

  .portfolio-story-card-footer button:last-child {
    color: #344054;
    background: #f2f4f7;
    box-shadow: none;
  }
}


@media (max-width: 480px) {

  /* Override the old rule that stacks both actions
     into giant full-width buttons */

  .portfolio-story-card-footer > div {
    display: flex !important;
    grid-template-columns: none !important;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .portfolio-story-card-footer button {
    width: auto !important;
    flex: 0 0 auto;
  }

  .story-bank-heading > button,
  .story-bank-heading > a,
  .story-bank-heading .compass-primary-btn,
  .story-bank-heading .portfolio-secondary-action {
    width: auto !important;
  }
}

/* Progressive disclosure: empty portfolio modules do not occupy space before work exists. */
#portfolio-featured:empty, #portfolio-story-bank:empty, #portfolio-items:empty { display:none; }
.portfolio-deeper-view:not([open]) { margin-top: 24px; }

/* Project Journal v3 actions */
.story-bank-card {
  display: flex;
  flex-direction: column;
}

.story-bank-card .journal-rich-body {
  color: #5f6c84;
  font-size: 15px;
  line-height: 1.65;
}

.story-bank-artifact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 14px;
  color: #4338ca;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.story-bank-artifact-link:hover,
.story-bank-artifact-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.story-bank-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(104, 112, 146, .1);
}

.story-bank-sharing-control {
  display: grid;
  gap: 6px;
}

.story-bank-sharing-control > span {
  color: #7a8498;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.story-bank-sharing-control select,
.story-bank-share-copy {
  min-height: 40px;
  border-radius: 13px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}

.story-bank-sharing-control select {
  width: 100%;
  border: 1px solid rgba(104, 112, 146, .16);
  background: #fbfcff;
  color: #344054;
  padding: 0 34px 0 12px;
}

.story-bank-share-copy {
  border: 1px solid rgba(79, 70, 229, .15);
  background: #fff;
  color: #4338ca;
  padding: 0 14px;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.story-bank-share-copy:hover,
.story-bank-share-copy:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(79, 70, 229, .3);
  box-shadow: 0 10px 22px rgba(47, 49, 146, .08);
  outline: none;
}

.story-bank-action-status {
  grid-column: 1 / -1;
  min-height: 14px;
  color: #16815a;
  font-size: 9.5px;
  font-weight: 800;
}

.story-bank-visibility-note {
  width: fit-content;
  margin-top: 14px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #f3f4f8;
  color: #697386;
  font-size: 9.5px;
  font-weight: 800;
}

@media (max-width: 560px) {
  .story-bank-card-actions {
    grid-template-columns: 1fr;
  }

  .story-bank-share-copy {
    width: 100%;
  }
}

/* =========================================================
   Project Journal: organized long-term history
========================================================= */
.story-bank-organized-dialog {
  width: min(1360px, calc(100% - 32px));
  padding: clamp(24px, 3.5vw, 46px);
}
.story-bank-organized-dialog > header {
  max-width: 850px;
}
.story-bank-workspace {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.story-bank-project-panel {
  position: sticky;
  top: 0;
  overflow: hidden;
  border: 1px solid rgba(92, 101, 139, .13);
  border-radius: 24px;
  background: linear-gradient(180deg, #fbfbff, #f8f9fd);
}
.story-bank-project-panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding: 17px 18px 13px;
  border-bottom: 1px solid rgba(92, 101, 139, .1);
}
.story-bank-project-panel-heading span {
  color: #202b43;
  font-size: 12px;
  font-weight: 850;
}
.story-bank-project-panel-heading strong {
  color: #8a94a8;
  font-size: 10px;
  font-weight: 800;
}
.story-bank-project-list {
  display: grid;
  gap: 4px;
  max-height: min(58vh, 620px);
  overflow: auto;
  padding: 8px;
}
.story-bank-project-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 9px 10px;
  border: 0;
  border-radius: 16px;
  color: #344054;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease, box-shadow 150ms ease, color 150ms ease;
}
.story-bank-project-item:hover,
.story-bank-project-item:focus-visible {
  background: rgba(255, 255, 255, .8);
  outline: none;
}
.story-bank-project-item.active {
  color: #302d9a;
  background: #fff;
  box-shadow: 0 8px 22px rgba(40, 44, 107, .08);
}
.story-bank-project-count,
.story-bank-project-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #5a54cf;
  background: rgba(86, 78, 210, .08);
  font-size: 11px;
  font-weight: 900;
}
.story-bank-project-mark {
  font-size: 15px;
}
.story-bank-project-item.active .story-bank-project-count,
.story-bank-project-item.active .story-bank-project-mark {
  color: #fff;
  background: #5147cf;
}
.story-bank-project-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.story-bank-project-copy strong {
  overflow: hidden;
  color: inherit;
  font-size: 12px;
  font-weight: 820;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.story-bank-project-copy small {
  color: #9099aa;
  font-size: 9.5px;
  font-weight: 700;
}
.story-bank-entry-panel {
  min-width: 0;
}
.story-bank-active-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  min-height: 86px;
  margin-bottom: 14px;
  padding: 4px 2px 16px;
  border-bottom: 1px solid rgba(92, 101, 139, .11);
}
.story-bank-active-header > div {
  min-width: 0;
}
.story-bank-pane-kicker {
  color: #5950ca;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.story-bank-active-header h3 {
  margin: 5px 0 5px;
  color: #162139;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.02;
  letter-spacing: -.035em;
}
.story-bank-active-header p {
  margin: 0;
  color: #7a8498;
  font-size: 12px;
  line-height: 1.5;
}
.story-bank-open-project {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(79, 70, 229, .15);
  border-radius: 13px;
  color: #4338ca;
  background: #fff;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}
.story-bank-organized-dialog .story-bank-results {
  grid-template-columns: 1fr;
  gap: 13px;
}
.story-bank-organized-dialog .story-bank-card {
  padding: 20px 22px;
}
.story-bank-project-summary {
  overflow: hidden;
  border: 1px solid rgba(104, 112, 146, .14);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(30, 40, 80, .035);
}
.story-bank-project-summary > header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 20px 22px 14px;
}
.story-bank-project-summary > header span {
  color: #5a54cf;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.story-bank-project-summary > header h4 {
  margin: 4px 0 4px;
  color: #172139;
  font-size: 19px;
  line-height: 1.18;
}
.story-bank-project-summary > header p {
  margin: 0;
  color: #8a94a8;
  font-size: 10.5px;
}
.story-bank-project-summary > header button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(79, 70, 229, .13);
  border-radius: 12px;
  color: #4338ca;
  background: #fff;
  font-size: 10.5px;
  font-weight: 850;
  cursor: pointer;
}
.story-bank-project-moments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 22px 14px;
}
.story-bank-project-moments span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #6762bb;
  background: #f5f4ff;
  font-size: 9px;
  font-weight: 800;
}
.story-bank-project-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(104, 112, 146, .09);
  background: #fcfcfe;
}
.story-bank-project-preview article {
  min-width: 0;
  padding: 16px 20px 18px;
}
.story-bank-project-preview article + article {
  border-left: 1px solid rgba(104, 112, 146, .09);
}
.story-bank-project-preview article > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}
.story-bank-project-preview article span {
  color: #5a54cf;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.story-bank-project-preview article time {
  color: #9aa2b1;
  font-size: 9px;
}
.story-bank-project-preview article strong {
  display: block;
  color: #263149;
  font-size: 12px;
  line-height: 1.35;
}
.story-bank-project-preview article p {
  margin: 5px 0 0;
  color: #7b8598;
  font-size: 10.5px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .story-bank-workspace {
    grid-template-columns: 1fr;
  }
  .story-bank-project-panel {
    position: static;
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .story-bank-project-panel-heading {
    padding: 0 0 8px;
    border: 0;
  }
  .story-bank-project-list {
    display: flex;
    max-height: none;
    overflow-x: auto;
    padding: 0 0 8px;
    scroll-snap-type: x proximity;
  }
  .story-bank-project-item {
    flex: 0 0 min(230px, 76vw);
    scroll-snap-align: start;
    border: 1px solid rgba(92, 101, 139, .12);
    background: #fafbfe;
  }
}

@media (max-width: 620px) {
  .story-bank-organized-dialog {
    padding: 22px 16px 28px;
  }
  .story-bank-organized-dialog > header {
    padding-right: 42px;
  }
  .story-bank-organized-dialog > header h2 {
    font-size: 44px;
  }
  .story-bank-active-header,
  .story-bank-project-summary > header {
    align-items: stretch;
    flex-direction: column;
  }
  .story-bank-open-project,
  .story-bank-project-summary > header button {
    width: 100%;
  }
  .story-bank-project-preview {
    grid-template-columns: 1fr;
  }
  .story-bank-project-preview article + article {
    border-top: 1px solid rgba(104, 112, 146, .09);
    border-left: 0;
  }
}
