:root {
  --ink: #17211d;
  --ink-soft: #33423c;
  --muted: #68766f;
  --green-950: #0d2f26;
  --green-900: #123d31;
  --green-800: #18513f;
  --green-700: #236c52;
  --green-100: #dfeae4;
  --green-50: #eef4f0;
  --gold: #d6a84c;
  --gold-soft: #f4e8cc;
  --cream: #f5f3ec;
  --paper: #fffefa;
  --white: #ffffff;
  --line: #dce2dc;
  --line-dark: #c8d1ca;
  --danger: #8f463c;
  --shadow-sm: 0 1px 2px rgba(13, 47, 38, 0.06), 0 6px 18px rgba(13, 47, 38, 0.06);
  --shadow-md: 0 18px 48px rgba(18, 61, 49, 0.11), 0 2px 8px rgba(18, 61, 49, 0.06);
  --shadow-lg: 0 30px 80px rgba(13, 47, 38, 0.2);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  min-width: 320px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 5%, rgba(214, 168, 76, 0.08), transparent 30rem),
    var(--cream);
}

button,
textarea,
input {
  font: inherit;
}

button {
  color: inherit;
}

button,
[contenteditable="true"] {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
textarea:focus-visible,
input:focus-visible,
[contenteditable="true"]:focus-visible {
  outline: 3px solid rgba(35, 108, 82, 0.26);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  min-height: 72px;
  padding: 10px clamp(20px, 3vw, 46px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(13, 47, 38, 0.97);
  color: var(--white);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(3, 5px);
  align-items: end;
  gap: 3px;
  width: 28px;
  height: 28px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.brand-mark span {
  display: block;
  border-radius: 99px;
  background: var(--gold);
}

.brand-mark span:nth-child(1) {
  height: 8px;
}

.brand-mark span:nth-child(2) {
  height: 16px;
}

.brand-mark span:nth-child(3) {
  height: 12px;
}

.brand > span:last-child {
  display: grid;
}

.brand strong {
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.brand small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar-center {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.73);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #79c99e;
  box-shadow: 0 0 0 4px rgba(121, 201, 158, 0.12);
}

.status-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.16);
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.quiet-button {
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
}

.quiet-button:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}

.avatar-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  text-align: left;
  cursor: default;
}

.avatar-button > span:first-child,
.large-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 35px;
  height: 35px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: #d7be86;
  color: var(--green-950);
  font-size: 11px;
  font-weight: 800;
}

.avatar-label {
  display: grid;
  gap: 2px;
}

.avatar-label strong {
  font-size: 11px;
}

.avatar-label small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 9.5px;
}

.product-nav {
  display: flex;
  gap: 0;
  min-height: 58px;
  padding: 0 clamp(20px, 3vw, 46px);
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.88);
  scrollbar-width: none;
  backdrop-filter: blur(14px);
}

.product-nav::-webkit-scrollbar {
  display: none;
}

.product-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 190px;
  padding: 0 24px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.product-tab:first-child {
  border-left: 1px solid var(--line);
}

.product-tab::after {
  position: absolute;
  right: 18px;
  bottom: -1px;
  left: 18px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: transparent;
  content: "";
}

.product-tab:hover {
  background: rgba(18, 61, 49, 0.025);
  color: var(--ink);
}

.product-tab.active {
  color: var(--green-900);
}

.product-tab.active::after {
  background: var(--green-700);
}

.tab-index {
  color: #9ba69f;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}

.tab-progress {
  margin-left: auto;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-700);
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: view-in 240ms ease both;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-view-toggle {
  display: none;
}

.build-workspace {
  display: grid;
  grid-template-columns: minmax(370px, 38%) minmax(610px, 1fr);
  min-height: calc(100vh - 130px);
}

.story-panel {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 48px);
  border-right: 1px solid var(--line);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.7), rgba(245, 243, 236, 0.92)),
    var(--cream);
}

.panel-kicker,
.resume-toolbar,
.referral-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-kicker > span,
.eyebrow {
  color: var(--green-700);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.text-button {
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #bcc7c0;
  text-underline-offset: 3px;
  cursor: pointer;
}

.text-button:hover {
  color: var(--green-700);
}

.interview-welcome {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  max-width: 590px;
  padding: clamp(26px, 5vh, 62px) 0 24px;
}

.welcome-orb-wrap {
  position: relative;
  width: max-content;
  margin-bottom: 34px;
}

.welcome-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 126px;
  height: 126px;
}

.orb-core {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 26%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(145deg, #276a54, var(--green-950));
  color: var(--gold-soft);
  box-shadow: 0 18px 38px rgba(13, 47, 38, 0.22), inset 0 0 30px rgba(121, 201, 158, 0.13);
  font-family: var(--serif);
  font-size: 31px;
}

.orb-ring {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(35, 108, 82, 0.22);
  border-radius: 50%;
}

.orb-ring-one {
  inset: 8px;
  animation: orb-breathe 3.1s ease-in-out infinite;
}

.orb-ring-two {
  inset: -2px;
  border-color: rgba(214, 168, 76, 0.18);
  animation: orb-breathe 3.1s 850ms ease-in-out infinite;
}

@keyframes orb-breathe {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.94);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.voice-ready-pill {
  position: absolute;
  right: -83px;
  bottom: 4px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.94);
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  font-size: 9.5px;
  font-weight: 750;
  white-space: nowrap;
}

.voice-ready-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #54a77b;
  box-shadow: 0 0 0 4px rgba(84, 167, 123, 0.12);
}

.interview-welcome h1 {
  max-width: 570px;
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: clamp(39px, 4.1vw, 59px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.interview-welcome > p:not(.welcome-trust) {
  max-width: 540px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.welcome-promises {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 560px;
  margin-top: 26px;
}

.welcome-promises > div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 254, 250, 0.65);
}

.welcome-promises strong {
  color: var(--green-800);
  font-size: 11px;
}

.welcome-promises span {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.4;
}

.welcome-actions {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto;
  gap: 10px;
  max-width: 560px;
  margin-top: 20px;
}

.start-interview-button,
.start-typing-button {
  min-height: 60px;
  border-radius: 13px;
  cursor: pointer;
}

.start-interview-button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 0 19px;
  border: 1px solid var(--green-900);
  background: var(--green-900);
  color: white;
  box-shadow: 0 12px 26px rgba(18, 61, 49, 0.2);
  text-align: left;
}

.start-interview-button:hover {
  transform: translateY(-1px);
  background: var(--green-800);
  box-shadow: 0 16px 34px rgba(18, 61, 49, 0.24);
}

.start-interview-button > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.start-interview-button strong {
  font-size: 12px;
}

.start-interview-button small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
}

.start-typing-button {
  padding: 0 18px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 254, 250, 0.78);
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 750;
}

.start-typing-button:hover {
  border-color: #9cb1a5;
  background: var(--green-50);
}

.welcome-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 540px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.45;
}

.welcome-trust .trust-lock {
  transform: scale(0.78);
}

.interview-stage {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.interview-stage .progress-row {
  margin: 16px 0 22px;
}

.interview-session-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.interview-session-bar .coach-meta {
  margin: 0;
}

.question-counter {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-700);
  font-size: 9px;
  font-weight: 800;
}

.conversation-stream {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 14px;
  min-height: 180px;
  max-height: 310px;
  padding: 22px 4px 18px;
  overflow-y: auto;
  scrollbar-color: #bac8c0 transparent;
}

.conversation-message {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 92%;
  animation: message-in 220ms ease both;
}

@keyframes message-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
}

.conversation-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--green-900);
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 12px;
}

.conversation-message.user .message-avatar {
  background: #d7be86;
  color: var(--green-950);
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 850;
}

.message-bubble {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 5px 14px 14px;
  background: rgba(255, 254, 250, 0.9);
  box-shadow: 0 3px 11px rgba(13, 47, 38, 0.04);
}

.conversation-message.user .message-bubble {
  border-color: rgba(35, 108, 82, 0.22);
  border-radius: 14px 5px 14px 14px;
  background: var(--green-50);
}

.message-bubble span {
  display: block;
  margin-bottom: 4px;
  color: var(--green-700);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.message-bubble p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.52;
}

.voice-console {
  display: grid;
  justify-items: center;
  padding: 15px 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 25%, rgba(121, 201, 158, 0.12), transparent 46%),
    rgba(255, 254, 250, 0.75);
}

.voice-orb-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.voice-button-core {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--green-900);
  color: white;
  box-shadow: 0 10px 22px rgba(18, 61, 49, 0.25);
  transition: transform 170ms ease, background 170ms ease;
}

.voice-orb-button:hover .voice-button-core {
  transform: scale(1.04);
  background: var(--green-800);
}

.voice-pulse {
  position: absolute;
  inset: 4px;
  z-index: 1;
  border: 1px solid rgba(35, 108, 82, 0.22);
  border-radius: 50%;
  opacity: 0;
}

.voice-orb-button.listening .voice-pulse,
.voice-console.speaking .voice-pulse {
  animation: voice-pulse 1.5s ease-out infinite;
}

.voice-orb-button.listening .voice-pulse-two,
.voice-console.speaking .voice-pulse-two {
  animation-delay: 650ms;
}

.voice-orb-button.listening .voice-button-core {
  background: #a47224;
}

.voice-console.muted .voice-button-core {
  background: #7b8680;
  box-shadow: 0 8px 18px rgba(23, 33, 29, 0.18);
}

.voice-console.muted .voice-button-core::after {
  position: absolute;
  width: 27px;
  height: 2px;
  border-radius: 99px;
  background: #fff;
  content: "";
  transform: rotate(-42deg);
}

@keyframes voice-pulse {
  0% {
    opacity: 0.8;
    transform: scale(0.76);
  }
  100% {
    opacity: 0;
    transform: scale(1.25);
  }
}

.voice-console > strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 11px;
}

.voice-console > span:not(.voice-pulse) {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9.5px;
}

.heard-text {
  width: 100%;
  margin-top: 12px;
  padding: 10px 11px;
  border: 1px solid #cbd7d0;
  border-radius: 9px;
  background: var(--white);
  text-align: left;
}

.heard-text > span {
  color: var(--green-700);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.heard-text p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.45;
}

.interview-fallbacks {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.typing-toggle {
  padding: 6px 9px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: #bcc7c0;
  text-underline-offset: 3px;
  cursor: pointer;
}

.typing-panel {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 13px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: rgba(255, 254, 250, 0.88);
  box-shadow: var(--shadow-sm);
}

.typing-panel label {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.typing-panel textarea {
  width: 100%;
  min-height: 76px;
  padding: 10px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
}

.typing-panel .primary-button {
  min-height: 41px;
}

.progress-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 16px 0 40px;
}

.progress-segment {
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: #dce2dc;
}

.progress-segment.active,
.progress-segment.complete {
  background: var(--green-700);
}

.progress-segment.active {
  position: relative;
}

.progress-segment.active::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--green-700), #5da485, var(--green-700));
  background-size: 200% 100%;
  content: "";
  animation: shimmer 2.4s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.coach-card {
  max-width: 570px;
}

.coach-meta {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 22px;
}

.coach-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--green-900);
  color: var(--gold-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.coach-meta > div:last-child {
  display: grid;
  gap: 3px;
}

.coach-meta strong {
  font-size: 12px;
}

.coach-meta span {
  color: var(--muted);
  font-size: 10.5px;
}

.coach-card h1,
.section-heading h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(31px, 3.1vw, 47px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.coach-card > p {
  max-width: 500px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.answer-card {
  margin-top: 34px;
  padding: 20px;
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  background: rgba(255, 254, 250, 0.88);
  box-shadow: var(--shadow-sm);
}

.answer-card > label,
.referral-section > label {
  display: block;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.answer-card textarea,
.referral-section textarea {
  display: block;
  width: 100%;
  resize: vertical;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  outline: none;
}

.answer-card textarea::placeholder {
  color: #9aa59f;
}

.sample-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px -4px 0;
  padding: 12px 4px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
}

.sample-button {
  padding: 6px 9px;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  background: var(--white);
  color: var(--green-800);
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

.sample-button:hover {
  border-color: var(--green-700);
  background: var(--green-50);
}

.answer-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 16px;
}

.mic-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.mic-button {
  min-width: 128px;
  padding: 0 14px;
  border: 1px solid var(--line-dark);
  background: var(--white);
  color: var(--green-900);
}

.mic-button:hover,
.secondary-button:hover {
  border-color: #9cb1a5;
  background: var(--green-50);
}

.mic-button.listening {
  border-color: #ad7e27;
  background: var(--gold-soft);
  box-shadow: 0 0 0 4px rgba(214, 168, 76, 0.13);
}

.mic-glyph {
  position: relative;
  display: inline-block;
  width: 12px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 8px;
}

.mic-glyph::before {
  position: absolute;
  right: -5px;
  bottom: -5px;
  left: -5px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  border-radius: 0 0 8px 8px;
  content: "";
}

.mic-glyph::after {
  position: absolute;
  bottom: -8px;
  left: 3px;
  width: 4px;
  height: 4px;
  border-bottom: 2px solid currentColor;
  content: "";
}

.primary-button {
  padding: 0 18px;
  border: 1px solid var(--green-900);
  background: var(--green-900);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(18, 61, 49, 0.16);
}

.primary-button:hover {
  transform: translateY(-1px);
  background: var(--green-800);
  box-shadow: 0 11px 24px rgba(18, 61, 49, 0.2);
}

.primary-button:active,
.mic-button:active,
.secondary-button:active {
  transform: translateY(1px);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.74;
  transform: none;
}

.input-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.trust-note {
  display: flex;
  gap: 11px;
  max-width: 500px;
  margin-top: auto;
  padding-top: 30px;
}

.trust-lock {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 15px;
  margin-top: 4px;
  border: 1.5px solid var(--green-700);
  border-radius: 4px;
}

.trust-lock::before {
  position: absolute;
  top: -8px;
  left: 3px;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--green-700);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  content: "";
}

.trust-note p {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
}

.trust-note strong {
  color: var(--ink-soft);
}

.resume-panel {
  min-width: 0;
  padding: clamp(24px, 2.7vw, 42px) clamp(24px, 4vw, 64px) 54px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 12%, rgba(35, 108, 82, 0.09), transparent 26rem),
    #e9eee9;
}

.resume-toolbar {
  max-width: 860px;
  margin: 0 auto 24px;
}

.resume-toolbar h2 {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 29px);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.resume-toolbar-actions {
  display: flex;
  gap: 8px;
}

.secondary-button {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid #c6d0c9;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink-soft);
  box-shadow: 0 3px 10px rgba(13, 47, 38, 0.04);
}

.template-swatch {
  width: 12px;
  height: 14px;
  border: 1px solid var(--green-700);
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green-700) 0 3px, var(--white) 3px);
}

.resume-stage {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.update-toast {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 250px;
  padding: 10px 13px;
  border: 1px solid #b7cfbf;
  border-radius: 11px;
  background: rgba(245, 252, 247, 0.96);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}

.update-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-check {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--green-700);
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.update-toast > span:last-child {
  display: grid;
  gap: 2px;
}

.update-toast strong {
  font-size: 10.5px;
}

.update-toast small {
  color: var(--muted);
  font-size: 9px;
}

.resume-page {
  position: relative;
  width: min(100%, 760px);
  min-height: 980px;
  margin: 0 auto;
  padding: 66px 72px;
  overflow: hidden;
  background: var(--white);
  color: #1d2421;
  box-shadow: var(--shadow-md);
  transition: font-family 200ms ease, color 200ms ease;
}

.resume-page::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 10px;
  background: var(--green-700);
  content: "";
}

.resume-header {
  padding-bottom: 24px;
  border-bottom: 1px solid #b9c6bf;
}

.resume-header h3 {
  margin: 0;
  color: var(--green-900);
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
}

.resume-header > p {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  color: #5f6b65;
  font-size: 10.5px;
}

.resume-section {
  margin-top: 27px;
}

.resume-section h4 {
  margin: 0 0 12px;
  color: var(--green-800);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.resume-section > p,
.experience-block li {
  color: #37423d;
  font-size: 11.5px;
  line-height: 1.55;
}

.resume-section > p {
  margin: 0;
}

.placeholder-copy {
  color: #95a09a !important;
  font-style: italic;
}

.experience-heading,
.education-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.experience-heading h5,
.education-row h5 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
}

.experience-heading p,
.education-row p {
  margin: 4px 0 0;
  color: #627069;
  font-size: 10.5px;
}

.experience-heading > span {
  flex: 0 0 auto;
  color: #627069;
  font-size: 10.5px;
}

.experience-block ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.resume-pending-note {
  margin: 10px 0 0;
  color: #7c8982;
  font-size: 10px;
  font-style: italic;
  line-height: 1.45;
}

.experience-block + .experience-block {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #e1e6e2;
}

.experience-block li + li {
  margin-top: 7px;
}

.education-row + .education-row {
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid #e8ece9;
}

.education-row > span {
  flex: 0 0 auto;
  color: #627069;
  font-size: 10.5px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skills-list span {
  padding: 5px 8px;
  border: 1px solid #d1d9d4;
  border-radius: 4px;
  background: #f6f8f6;
  color: #35453e;
  font-size: 9.5px;
  font-weight: 650;
}

.skills-list .placeholder-skill {
  border-style: dashed;
  color: #929e98;
  font-style: italic;
  font-weight: 500;
}

[contenteditable="true"] {
  border-radius: 3px;
}

[contenteditable="true"]:hover {
  box-shadow: 0 0 0 3px rgba(35, 108, 82, 0.07);
}

[contenteditable="true"]:focus {
  background: #f2f7f4;
  box-shadow: 0 0 0 3px rgba(35, 108, 82, 0.12);
}

.resume-page.flash .resume-section:nth-of-type(1),
.resume-page.flash .resume-section:nth-of-type(2),
.resume-page.flash .resume-section:nth-of-type(3) {
  animation: resume-flash 1.3s ease both;
}

@keyframes resume-flash {
  0%,
  100% {
    background: transparent;
  }
  25% {
    background: rgba(214, 168, 76, 0.15);
    box-shadow: 0 0 0 6px rgba(214, 168, 76, 0.15);
  }
}

.resume-page.template-editorial {
  color: #272420;
}

.resume-page.template-editorial::before {
  top: 37px;
  right: 72px;
  bottom: auto;
  left: 72px;
  width: auto;
  height: 2px;
  background: #a46f4f;
}

.template-editorial .resume-header {
  padding-top: 5px;
  border-bottom-color: #d5cbc1;
  text-align: center;
}

.template-editorial .resume-header h3 {
  color: #2b2723;
  font-family: var(--serif);
  font-size: 40px;
  letter-spacing: -0.02em;
}

.template-editorial .contact-line {
  justify-content: center;
}

.template-editorial .resume-section h4 {
  color: #8b5638;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.09em;
}

.template-editorial .skills-list span {
  border: 0;
  border-bottom: 1px solid #d8cbbf;
  border-radius: 0;
  background: transparent;
}

.resume-page.template-essential {
  padding: 60px 66px;
  font-family: Arial, Helvetica, sans-serif;
}

.resume-page.template-essential::before {
  display: none;
}

.template-essential .resume-header {
  border-bottom: 3px solid #1d2421;
}

.template-essential .resume-header h3 {
  color: #151a18;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.template-essential .resume-section {
  margin-top: 23px;
}

.template-essential .resume-section h4 {
  padding-bottom: 5px;
  border-bottom: 1px solid #8d9792;
  color: #151a18;
  font-size: 9.5px;
}

.template-essential .skills-list span {
  padding: 0;
  border: 0;
  background: transparent;
}

.template-essential .skills-list span:not(:last-child)::after {
  margin-left: 6px;
  color: #8d9792;
  content: "•";
}

.resume-footnote {
  display: flex;
  justify-content: space-between;
  width: min(100%, 760px);
  margin: 12px auto 0;
  color: #758079;
  font-size: 9.5px;
}

.resume-footnote span:last-child {
  color: var(--green-700);
  font-weight: 700;
}

.section-shell {
  max-width: 1440px;
  min-height: calc(100vh - 130px);
  margin: 0 auto;
  padding: clamp(42px, 5vw, 78px) clamp(24px, 5vw, 74px) 80px;
}

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

.section-heading h1 {
  max-width: 750px;
  margin-top: 10px;
}

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

.section-heading.compact {
  align-items: flex-start;
}

.match-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 230px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 254, 250, 0.82);
  box-shadow: var(--shadow-sm);
}

.match-summary strong {
  color: var(--green-800);
  font-family: var(--serif);
  font-size: 43px;
  font-weight: 500;
  line-height: 1;
}

.match-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}

.match-layout {
  display: grid;
  grid-template-columns: minmax(470px, 1.25fr) minmax(380px, 0.75fr);
  gap: 22px;
}

.match-list {
  display: grid;
  gap: 12px;
}

.match-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 254, 250, 0.91);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.match-card:hover,
.match-card.selected {
  transform: translateY(-1px);
  border-color: #a7b9ae;
  box-shadow: var(--shadow-md);
}

.match-card.selected {
  background: var(--white);
}

.match-score {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 5px solid #dceae1;
  border-top-color: var(--green-700);
  border-radius: 50%;
  color: var(--green-800);
  font-size: 14px;
  font-weight: 850;
}

.match-company {
  margin: 0 0 5px;
  color: var(--green-700);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.match-card h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10.5px;
}

.match-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}

.match-tags span {
  padding: 5px 7px;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-800);
  font-size: 9px;
  font-weight: 700;
}

.card-arrow {
  color: var(--green-700);
  font-size: 22px;
}

.match-detail {
  min-height: 520px;
  padding: 30px;
  border: 1px solid rgba(18, 61, 49, 0.75);
  border-radius: 18px;
  background: var(--green-950);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.detail-empty {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 455px;
}

.detail-empty > span,
.match-detail .detail-kicker {
  color: #9fcab5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-empty h2,
.match-detail h2 {
  margin: 12px 0;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 500;
  line-height: 1.12;
}

.detail-empty p,
.match-detail .detail-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.6;
}

.detail-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 22px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.detail-score-row span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
}

.detail-score-row strong {
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
}

.evidence-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 25px;
  padding: 0;
  list-style: none;
}

.evidence-list li {
  position: relative;
  padding-left: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11.5px;
  line-height: 1.5;
}

.evidence-list li::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(121, 201, 158, 0.18);
  color: #9fd8bc;
  content: "✓";
  font-size: 9px;
  font-weight: 900;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.detail-actions .primary-button {
  min-height: 49px;
  border-color: var(--gold);
  background: var(--gold);
  color: var(--green-950);
  box-shadow: none;
}

.detail-actions .primary-button:hover {
  background: #e0b65f;
}

.detail-note {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 9.5px;
  text-align: center;
}

.demo-badge {
  padding: 8px 10px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.75);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.referral-grid {
  display: grid;
  grid-template-columns: minmax(560px, 1fr) minmax(310px, 0.42fr);
  gap: 22px;
}

.referral-card,
.specialist-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 254, 250, 0.92);
  box-shadow: var(--shadow-sm);
}

.referral-card {
  padding: 30px;
}

.referral-topline {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.draft-status {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #75571e;
  letter-spacing: 0;
  text-transform: none;
}

.draft-status.ready {
  background: #dceee3;
  color: var(--green-700);
}

.referral-role {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.company-monogram {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: var(--green-900);
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 850;
}

.referral-role h2 {
  margin: 0;
  font-size: 19px;
}

.referral-role p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.referral-role > strong {
  color: var(--green-700);
  font-size: 12px;
}

.referral-section {
  margin-top: 24px;
}

.referral-section h3 {
  margin: 0 0 13px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.referral-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 12px;
}

.referral-section textarea {
  padding: 14px;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: var(--white);
  font-size: 12px;
}

.consent-check {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding: 14px;
  border-radius: 10px;
  background: var(--green-50);
}

.consent-check input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--green-700);
}

.consent-check label {
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.5;
}

.referral-button {
  width: 100%;
  margin-top: 18px;
}

.specialist-card {
  align-self: start;
  padding: 28px;
  background: var(--green-950);
  color: var(--white);
}

.specialist-card .eyebrow {
  color: #9fcab5;
}

.specialist-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 26px;
}

.large-avatar {
  width: 54px;
  height: 54px;
  border: 0;
  font-size: 14px;
}

.specialist-profile h2 {
  margin: 0;
  font-size: 17px;
}

.specialist-profile p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10.5px;
}

.specialist-details {
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.specialist-details > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 0;
}

.specialist-details > div + div {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.specialist-details span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
}

.specialist-details strong {
  font-size: 10px;
  text-align: right;
}

.handoff-timeline {
  display: grid;
  gap: 0;
  margin-top: 24px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  min-height: 58px;
}

.timeline-item::after {
  position: absolute;
  top: 15px;
  bottom: -2px;
  left: 6px;
  width: 1px;
  background: rgba(255, 255, 255, 0.16);
  content: "";
}

.timeline-item:last-child::after {
  display: none;
}

.timeline-item > span {
  width: 13px;
  height: 13px;
  margin-top: 2px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: var(--green-950);
}

.timeline-item.complete > span {
  border-color: #83c7a5;
  background: #83c7a5;
  box-shadow: inset 0 0 0 3px var(--green-950);
}

.timeline-item > div {
  display: grid;
  gap: 3px;
}

.timeline-item strong {
  font-size: 10.5px;
}

.timeline-item small {
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(7, 25, 20, 0.66);
  backdrop-filter: blur(8px);
}

.modal-backdrop.open {
  display: grid;
  animation: modal-fade 180ms ease both;
}

@keyframes modal-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal {
  width: min(100%, 900px);
  max-height: calc(100vh - 40px);
  padding: clamp(24px, 4vw, 42px);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.modal-header h2 {
  max-width: 670px;
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(27px, 4vw, 39px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.modal-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: var(--white);
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--ink);
  border-color: #aab8af;
}

.modal-intro {
  max-width: 700px;
  margin: 14px 0 30px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

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

.template-option {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  text-align: left;
  cursor: pointer;
}

.template-option:hover,
.template-option.selected {
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(35, 108, 82, 0.08);
}

.template-preview {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 0.75;
  overflow: hidden;
  border: 1px solid #d7dcd8;
  background: #fff;
  box-shadow: 0 8px 18px rgba(18, 61, 49, 0.08);
}

.template-preview i,
.template-preview b,
.template-preview em,
.template-preview u,
.template-preview small {
  position: absolute;
  display: block;
  height: 3px;
  border-radius: 2px;
  background: #c5ccc8;
  text-decoration: none;
}

.template-preview i {
  top: 14%;
  left: 18%;
  width: 43%;
  height: 7px;
  background: var(--green-800);
}

.template-preview b {
  top: 22%;
  left: 18%;
  width: 30%;
}

.template-preview em {
  top: 33%;
  right: 18%;
  left: 18%;
  height: 1px;
  background: #9fa9a3;
}

.template-preview u:nth-of-type(1) {
  top: 41%;
  left: 18%;
  width: 64%;
}

.template-preview u:nth-of-type(2) {
  top: 47%;
  left: 18%;
  width: 52%;
}

.template-preview small {
  top: 62%;
  left: 18%;
  width: 64%;
}

.preview-foundation::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--green-700);
  content: "";
}

.preview-editorial::before {
  position: absolute;
  top: 8%;
  right: 14%;
  left: 14%;
  height: 2px;
  background: #9d6748;
  content: "";
}

.preview-editorial i,
.preview-editorial b {
  left: 25%;
  text-align: center;
}

.preview-editorial i {
  width: 50%;
  background: #2d2925;
}

.preview-editorial b {
  width: 36%;
}

.preview-essential i {
  background: #1d2421;
}

.preview-essential em {
  height: 3px;
  background: #1d2421;
}

.template-option > span:nth-child(2) {
  display: grid;
  gap: 4px;
}

.template-option strong {
  font-size: 12px;
}

.template-option small {
  color: var(--muted);
  font-size: 9.5px;
}

.template-check {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: none;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--green-700);
  color: white;
  font-size: 10px;
}

.template-option.selected .template-check {
  display: grid;
}

.presenter-modal {
  width: min(100%, 780px);
}

.presenter-steps {
  display: grid;
  gap: 0;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.presenter-steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 15px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.presenter-steps li > span {
  color: var(--green-700);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 800;
}

.presenter-steps strong {
  font-size: 12px;
}

.presenter-steps p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.presenter-callout {
  margin-top: 20px;
  padding: 16px;
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  background: var(--gold-soft);
  color: #5c4824;
  font-size: 11px;
  line-height: 1.55;
}

.presenter-capture-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--green-800);
  font-size: 11px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.global-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  max-width: 340px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: var(--green-950);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  font-size: 11px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.global-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topbar-center {
    display: none;
  }

  .build-workspace {
    grid-template-columns: minmax(340px, 43%) minmax(520px, 1fr);
  }

  .story-panel {
    padding: 32px 28px;
  }

  .resume-panel {
    padding-right: 28px;
    padding-left: 28px;
  }

  .resume-page {
    min-height: 900px;
    padding: 55px 54px;
  }

  .match-layout,
  .referral-grid {
    grid-template-columns: 1fr;
  }

  .match-detail {
    min-height: 380px;
  }

  .detail-empty {
    min-height: 315px;
  }
}

@media (max-width: 820px) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .topbar {
    min-height: 64px;
    padding: 9px 16px;
  }

  .brand-mark {
    width: 26px;
    height: 26px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small,
  .avatar-label,
  .topbar-actions .quiet-button {
    display: none;
  }

  .avatar-button > span:first-child {
    width: 33px;
    height: 33px;
  }

  .product-nav {
    position: sticky;
    top: 64px;
    z-index: 40;
    min-height: 54px;
    padding: 0;
  }

  .product-tab {
    min-width: 156px;
    padding: 0 14px;
    font-size: 11px;
  }

  .tab-progress {
    display: none;
  }

  .mobile-view-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 14px 16px 0;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
  }

  .mobile-view-toggle button {
    min-height: 38px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
  }

  .mobile-view-toggle button.active {
    background: var(--green-900);
    color: var(--white);
    box-shadow: var(--shadow-sm);
  }

  .build-workspace {
    display: block;
    min-height: auto;
  }

  .story-panel,
  .resume-panel {
    min-height: calc(100vh - 132px);
  }

  .story-panel {
    padding: 24px 18px 30px;
    border-right: 0;
  }

  .interview-welcome {
    justify-content: flex-start;
    padding: 30px 0 18px;
  }

  .welcome-orb-wrap {
    margin-bottom: 27px;
  }

  .welcome-orb {
    width: 108px;
    height: 108px;
  }

  .orb-core {
    width: 72px;
    height: 72px;
    font-size: 27px;
  }

  .voice-ready-pill {
    right: -91px;
  }

  .interview-welcome h1 {
    font-size: 39px;
  }

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

  .start-typing-button {
    min-height: 45px;
  }

  .conversation-stream {
    max-height: 330px;
  }

  .voice-console {
    padding-top: 18px;
  }

  .progress-row {
    margin-bottom: 28px;
  }

  .coach-card h1 {
    font-size: 33px;
  }

  .answer-card {
    margin-top: 27px;
  }

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

  .mic-button {
    width: 100%;
  }

  .trust-note {
    margin-top: 30px;
  }

  .resume-panel {
    padding: 24px 14px 40px;
  }

  .resume-toolbar {
    display: grid;
    gap: 16px;
  }

  .resume-toolbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .resume-page {
    width: 100%;
    min-height: 0;
    padding: 44px 32px;
  }

  .resume-page.template-essential {
    padding: 42px 30px;
  }

  .resume-header h3,
  .template-editorial .resume-header h3 {
    font-size: 31px;
  }

  .mobile-hidden {
    display: none;
  }

  .section-shell {
    padding: 38px 18px 55px;
  }

  .section-heading {
    display: grid;
    gap: 22px;
    margin-bottom: 28px;
  }

  .section-heading h1 {
    font-size: 36px;
  }

  .match-summary {
    min-width: 0;
    width: 100%;
  }

  .match-card {
    grid-template-columns: auto 1fr;
    padding: 17px;
  }

  .card-arrow {
    display: none;
  }

  .match-score {
    width: 51px;
    height: 51px;
    border-width: 4px;
    font-size: 12px;
  }

  .match-detail {
    min-height: 0;
    padding: 24px;
  }

  .detail-empty {
    min-height: 260px;
  }

  .referral-role {
    grid-template-columns: auto 1fr;
  }

  .referral-role > strong {
    grid-column: 2;
  }

  .referral-card,
  .specialist-card {
    padding: 22px;
  }

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

  .template-option {
    grid-template-columns: 92px 1fr;
    align-items: center;
  }

  .template-preview {
    width: 92px;
  }

  .template-check {
    top: 10px;
    bottom: auto;
  }

  .global-toast {
    right: 14px;
    bottom: 14px;
    left: 14px;
    max-width: none;
  }
}

@media (max-width: 420px) {
  .welcome-promises {
    grid-template-columns: 1fr;
  }

  .interview-welcome h1 {
    font-size: 36px;
  }

  .conversation-message {
    max-width: 96%;
  }

  .sample-row {
    align-items: flex-start;
  }

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

  .resume-page {
    padding: 38px 24px;
  }

  .contact-line {
    font-size: 9.5px;
  }

  .section-heading h1 {
    font-size: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body {
    background: white;
  }

  .topbar,
  .product-nav,
  .story-panel,
  .resume-toolbar,
  .resume-footnote,
  .mobile-view-toggle,
  .update-toast,
  .global-toast,
  .modal-backdrop {
    display: none !important;
  }

  .resume-pending-note {
    display: none !important;
  }

  .view {
    display: block !important;
  }

  .view:not(#buildView) {
    display: none !important;
  }

  .build-workspace {
    display: block;
    min-height: 0;
  }

  .resume-panel {
    display: block !important;
    padding: 0;
    background: white;
  }

  .resume-page {
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0.55in 0.65in;
    box-shadow: none;
  }

  .resume-page::before {
    display: none;
  }

  [contenteditable="true"]:focus,
  [contenteditable="true"]:hover {
    background: transparent;
    box-shadow: none;
  }
}
