[hidden] {
  display: none !important;
}

/* Phase 1: real UniSign integration */
.service-state i.offline {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(217, 74, 85, .1);
}

.button.warning {
  color: #bc6716;
  border-color: #f1c68e;
  background: #fff8ee;
}

.button.warning:not(:disabled):hover {
  background: #fff1dc;
}

.phase1-toolbar {
  min-height: 92px;
}

.phase1-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.phase1-actions .button {
  min-width: 102px;
}

.tool-status > span.error {
  background: var(--danger);
  box-shadow: 0 0 0 5px rgba(217, 74, 85, .1);
}

.tool-status > span.recording {
  background: #f04f5d;
  box-shadow: 0 0 0 5px rgba(240, 79, 93, .1);
  animation: phase1Pulse 1.1s ease-in-out infinite;
}

.tool-status > span.processing {
  background: #36a9df;
  box-shadow: 0 0 0 5px rgba(54, 169, 223, .1);
  animation: phase1Pulse 1.1s ease-in-out infinite;
}

.tool-status > span.complete {
  background: var(--mint);
  box-shadow: 0 0 0 5px var(--mint-soft);
}

@keyframes phase1Pulse {
  50% { opacity: .48; }
}

.phase1-result-panel {
  gap: 14px;
}

.live-pill.connected {
  color: #16816f;
  background: var(--mint-soft);
}

.live-pill.connected i {
  background: var(--mint);
}

.live-pill.disconnected {
  color: #bd4650;
  background: #fff0f1;
}

.live-pill.disconnected i {
  background: var(--danger);
}

.sign-connection-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8faff;
}

.connection-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--blue);
  background: var(--blue-soft);
}

.connection-icon .icon {
  width: 20px;
  height: 20px;
}

.sign-connection-card strong {
  display: block;
  color: var(--navy);
  font-size: 10px;
}

.sign-connection-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.recognition-result-card {
  position: relative;
  display: flex;
  min-height: 250px;
  flex-direction: column;
  padding: 16px;
  overflow: hidden;
  border: 1px solid #d8e3f1;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #f7faff);
}

.recognition-result-card::after {
  content: "";
  position: absolute;
  right: -45px;
  top: -52px;
  width: 115px;
  height: 115px;
  border-radius: 50%;
  background: rgba(50, 122, 237, .07);
}

.recognition-result-card.has-result {
  border-color: #b8d1f5;
  box-shadow: inset 0 0 0 1px rgba(23, 105, 232, .03);
}

.result-card-label,
.result-card-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.result-card-label span {
  color: var(--navy);
  font-size: 11px;
  font-weight: 760;
}

.result-card-label small {
  padding: 4px 7px;
  border-radius: 9px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 8px;
}

.recognition-result-card blockquote {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 1;
  place-items: center;
  margin: 15px 0;
  color: #8795a8;
  font-size: 14px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.7;
  text-align: center;
}

.recognition-result-card.has-result blockquote {
  color: var(--navy);
  font-size: 20px;
  font-weight: 780;
}

.result-card-meta {
  color: #98a5b6;
  font-size: 8px;
}

.result-speak-button {
  position: relative;
  z-index: 1;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 13px;
  border: 1px solid #c4d7f4;
  border-radius: 11px;
  color: var(--blue);
  background: #fff;
  font-size: 9px;
  font-weight: 720;
  cursor: pointer;
}

.result-speak-button:disabled {
  color: #9caabd;
  border-color: #e2e8f0;
  background: #f5f7fa;
  cursor: not-allowed;
}

.result-speak-button .icon {
  width: 15px;
  height: 15px;
}

.integration-progress-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.integration-progress-card > div:first-child {
  display: flex;
  justify-content: space-between;
  color: #5e6d83;
  font-size: 9px;
}

.integration-progress-card strong {
  color: var(--blue);
}

.integration-progress {
  height: 6px;
  margin: 10px 0 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #e8eef6;
}

.integration-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #35b9c5);
  transition: width .35s ease;
}

.integration-progress-card > small {
  color: #98a5b6;
  font-size: 8px;
}

.ai-coming-card {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding: 14px;
  border: 1px dashed #ccd8e8;
  border-radius: 14px;
  background: #fafbfe;
}

.ai-coming-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 9px;
  color: #7564d9;
  background: #f0edff;
}

.ai-coming-icon .icon {
  width: 16px;
}

.ai-coming-card strong {
  color: var(--navy);
  font-size: 10px;
}

.ai-coming-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.6;
}

@media (max-width: 1180px) {
  .phase1-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .phase1-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .sign-insight-panel.phase1-result-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phase1-result-panel .panel-heading,
  .phase1-result-panel .recognition-result-card {
    grid-column: 1 / -1;
  }

  .phase1-result-panel .ai-coming-card {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .phase1-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phase1-actions .button {
    min-width: 0;
  }

  .sign-insight-panel.phase1-result-panel {
    display: flex;
  }
}

/* Phase 7: real growth profile and printable report */
.phase7-growth-page { min-width: 0; }
.phase7-growth-page .profile-banner { grid-template-columns: minmax(210px, 1fr) minmax(230px, .8fr) auto; }
.phase7-growth-page .level-summary { min-width: 0; }
.phase7-growth-page .xp-track { height: 7px; margin: 8px 0 6px; overflow: hidden; border-radius: 8px; background: #dfe8f4; }
.phase7-growth-page .xp-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #43bbc7); transition: width .5s ease; }
.phase7-growth-page .radar-wrap { height: 270px; }
.phase7-growth-page .ability-bars { gap: 13px; margin-top: 16px; }
.phase7-growth-page .ability-bars strong small { color: #91a0b2; font-weight: 500; }
.growth-event-summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; padding: 0; overflow: hidden; }
.growth-event-summary > div { min-width: 0; display: grid; gap: 5px; padding: 14px 12px; border-left: 1px solid var(--line); text-align: center; }
.growth-event-summary > div:first-child { border-left: 0; background: linear-gradient(145deg, #edf5ff, #f6faff); }
.growth-event-summary small { overflow: hidden; color: #7c8ba0; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.growth-event-summary strong { color: var(--navy); font-size: 17px; }
.growth-event-summary strong em { color: #8997aa; font-size: 7px; font-style: normal; }
.growth-record-note { color: #8a98aa; font-size: 7px; }
.phase7-growth-page .timeline-dot.sign { color: var(--blue); background: var(--blue-soft); }
.phase7-growth-page .timeline-dot.interview { color: #7b65d8; background: #f0edff; }
.phase7-growth-page .timeline-dot.companion { color: #d46e91; background: #fff0f5; }
.phase7-growth-page .timeline-dot.challenge { color: #1c8d78; background: var(--mint-soft); }
.phase7-growth-page .timeline-dot.rights { color: #d38a35; background: #fff6e9; }
.growth-empty-state { display: grid; justify-items: center; gap: 7px; padding: 30px 20px; color: #8a98aa; text-align: center; }
.growth-empty-state > .icon { width: 30px; color: #80a8e8; }
.growth-empty-state strong { color: var(--navy); font-size: 12px; }
.growth-empty-state p { max-width: 430px; margin: 0 0 5px; font-size: 8px; line-height: 1.6; }
.growth-print-report { display: none; }

@media (max-width: 1180px) {
  .phase7-growth-page .profile-banner { grid-template-columns: 1fr 1fr; }
  .phase7-growth-page .profile-banner > .button { grid-column: 1 / -1; justify-self: start; }
  .growth-event-summary { grid-template-columns: repeat(3, 1fr); }
  .growth-event-summary > div:nth-child(4) { border-left: 0; border-top: 1px solid var(--line); }
  .growth-event-summary > div:nth-child(n+5) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .phase7-growth-page .profile-banner, .growth-event-summary { grid-template-columns: 1fr; }
  .growth-event-summary > div { border-top: 1px solid var(--line); border-left: 0; }
  .growth-event-summary > div:first-child { border-top: 0; }
  .growth-record-note { display: none; }
}

@media print {
  @page { size: A4; margin: 14mm; }
  body.printing-growth-report { background: #fff !important; }
  body.printing-growth-report * { visibility: hidden !important; }
  body.printing-growth-report .growth-print-report,
  body.printing-growth-report .growth-print-report * { visibility: visible !important; }
  body.printing-growth-report .growth-print-report { position: absolute; inset: 0; display: block !important; width: 100%; padding: 0; color: #243b5a; background: #fff; font-family: "Microsoft YaHei", sans-serif; }
  .growth-print-report header { padding-bottom: 14px; border-bottom: 2px solid #256fe8; }
  .growth-print-report header span { color: #256fe8; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
  .growth-print-report header h1 { margin: 7px 0; color: #0f315e; font-size: 25px; }
  .growth-print-report header p, .growth-print-report footer { color: #78889b; font-size: 10px; }
  .growth-print-report h2 { margin: 18px 0 10px; color: #123868; font-size: 15px; }
  .report-profile { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
  .report-profile > div { display: grid; gap: 4px; padding: 10px; border: 1px solid #dce6f2; border-radius: 7px; }
  .report-profile small, .report-abilities span { color: #718197; font-size: 9px; }
  .report-profile strong { color: #173b68; font-size: 13px; }
  .report-abilities { display: grid; gap: 8px; }
  .report-abilities > div { display: grid; grid-template-columns: 80px 1fr 28px; align-items: center; gap: 8px; }
  .report-abilities i { height: 6px; overflow: hidden; border-radius: 6px; background: #e7edf5; }
  .report-abilities b { display: block; height: 100%; background: linear-gradient(90deg, #327cea, #47b6c4); }
  .report-abilities strong { color: #173b68; font-size: 10px; }
  .growth-print-report table { width: 100%; border-collapse: collapse; font-size: 9px; }
  .growth-print-report th, .growth-print-report td { padding: 8px; border: 1px solid #dfe6ef; text-align: left; vertical-align: top; }
  .growth-print-report th { color: #244b7a; background: #eef5ff; }
  .growth-print-report td small { display: block; margin-top: 3px; color: #7c8ba0; }
  .report-advice { padding: 12px; border-radius: 8px; background: #f1f6fd; }
  .report-advice h2 { margin-top: 0; }
  .report-advice p { margin: 0; font-size: 10px; line-height: 1.6; }
  .report-advice strong { display: block; margin-bottom: 3px; }
  .growth-print-report footer { margin-top: 16px; padding-top: 8px; border-top: 1px solid #dfe6ef; }
}

/* Phase 6: Wujie rights assistant */
.workspace:has(.phase6-rights-page) { grid-template-columns: minmax(0, 1fr) minmax(270px, 300px); gap: 14px; align-items: start; }
.phase6-rights-page { min-width: 0; gap: 13px; }
.phase6-rights-hero { min-height: 235px; grid-template-columns: minmax(0, 1.25fr) minmax(230px, .75fr); padding: 27px 30px; }
.phase6-rights-hero h1 { margin: 8px 0; font-size: 31px; }
.phase6-rights-hero p { max-width: 520px; margin-bottom: 13px; }
.rights-hero-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.rights-hero-tags span { display: flex; align-items: center; gap: 5px; padding: 6px 8px; border: 1px solid #d8e5f6; border-radius: 10px; color: #58708e; background: rgba(255,255,255,.72); font-size: 8px; }
.rights-hero-tags .icon { width: 12px; color: var(--blue); }
.rights-map-visual { position: relative; min-height: 180px; display: grid; place-items: center; }
.rights-map-visual:before { content: ''; position: absolute; width: 148px; height: 148px; border-radius: 50%; background: radial-gradient(circle, #fff 0 31%, #e8f2ff 32% 49%, transparent 50%); box-shadow: 0 18px 35px rgba(45,108,204,.12); }
.rights-map-visual .map-ring { position: absolute; width: 172px; height: 172px; border: 1px dashed #b7cff2; border-radius: 50%; }
.rights-map-visual .map-ring.two { width: 205px; height: 205px; opacity: .45; }
.rights-map-pin { z-index: 1; width: 49px; height: 49px; display: grid; place-items: center; border-radius: 16px 16px 16px 4px; color: #fff; background: linear-gradient(145deg, #2f7df3, #155ad4); box-shadow: 0 12px 25px rgba(25,95,212,.3); transform: rotate(-8deg); }
.rights-map-pin .icon { width: 23px; transform: rotate(8deg); }
.rights-map-visual > div { position: absolute; z-index: 2; right: 0; bottom: 2px; display: grid; gap: 2px; min-width: 135px; padding: 9px 11px; border: 1px solid #d6e4f5; border-radius: 11px; background: rgba(255,255,255,.92); box-shadow: var(--shadow-soft); }
.rights-map-visual small, .rights-map-visual em { color: #8393a8; font-size: 7px; font-style: normal; }
.rights-map-visual strong { color: var(--navy); font-size: 9px; }
.rights-map-visual em { color: #1b957c; }

.rights-core-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rights-core-card { min-width: 0; min-height: 178px; display: flex; flex-direction: column; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 15px; color: inherit; background: #fff; text-align: left; box-shadow: var(--shadow-soft); cursor: pointer; transition: transform .2s, border-color .2s; }
.rights-core-card:hover { border-color: #bdd3f3; transform: translateY(-2px); }
.rights-core-card.featured { border-color: #bcd3f4; background: linear-gradient(145deg, #fff, #f0f6ff); }
.rights-core-card > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: var(--blue); background: var(--blue-soft); }
.rights-core-card > span .icon { width: 17px; }
.rights-core-card small { margin-top: 10px; color: var(--blue); font-size: 7px; font-weight: 800; letter-spacing: .08em; }
.rights-core-card h2 { margin: 4px 0; color: var(--navy); font-size: 14px; }
.rights-core-card p { margin: 0; color: #718299; font-size: 8px; line-height: 1.55; }
.rights-core-card > strong { display: flex; align-items: center; gap: 4px; margin-top: auto; color: var(--blue); font-size: 8px; }
.rights-core-card > strong .icon { width: 11px; }

.rights-policy-section, .rights-assistant { min-width: 0; padding: 19px; }
.rights-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rights-section-heading h2 { margin: 4px 0; color: var(--navy); font-size: 20px; }
.rights-section-heading p { margin: 0; color: #76879e; font-size: 9px; }
.demo-data-badge, .rights-ai-badge { display: flex; align-items: center; gap: 5px; flex: 0 0 auto; padding: 6px 8px; border-radius: 9px; color: #1d8c77; background: #eaf8f4; font-size: 7px; font-weight: 700; }
.rights-ai-badge { color: #76879d; background: #f0f3f7; }
.rights-ai-badge i { width: 6px; height: 6px; border-radius: 50%; background: #aab5c2; }
.rights-ai-badge.ready { color: #16846f; background: #eaf8f4; }
.rights-ai-badge.ready i { background: #24a88c; }
.rights-match-form { margin-top: 14px; padding: 15px; border: 1px solid #dbe7f6; border-radius: 13px; background: linear-gradient(145deg, #f8fbff, #f1f6fd); }
.rights-step-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.rights-step-heading:not(:first-child) { margin-top: 13px; }
.rights-step-heading > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: var(--blue); font-size: 7px; font-weight: 800; }
.rights-step-heading > div { display: grid; gap: 2px; }
.rights-step-heading strong { color: var(--navy); font-size: 9px; }
.rights-step-heading small { color: #8997aa; font-size: 7px; }
.rights-region-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rights-region-grid label { display: grid; gap: 5px; color: #718197; font-size: 7px; }
.rights-region-grid select { width: 100%; min-width: 0; height: 36px; padding: 0 9px; border: 1px solid #d5e1f0; border-radius: 9px; color: #334f72; background: #fff; font-size: 8px; outline: none; }
.rights-need-options { display: flex; flex-wrap: wrap; gap: 6px; }
.rights-need-options button { display: flex; align-items: center; gap: 5px; padding: 7px 9px; border: 1px solid #d6e2f0; border-radius: 10px; color: #657991; background: #fff; font-size: 8px; cursor: pointer; }
.rights-need-options button i { width: 9px; height: 9px; border: 2px solid #b4c0cf; border-radius: 50%; }
.rights-need-options button.active { color: var(--blue); border-color: #9ec2f6; background: #edf5ff; }
.rights-need-options button.active i { border: 3px solid var(--blue); }
.rights-match-button { margin-top: 12px; }
.rights-region-note { display: flex; align-items: center; gap: 5px; margin: 9px 0 0; color: #97a4b4; font-size: 7px; }
.rights-region-note .icon { width: 11px; }

.rights-policy-results { margin-top: 15px; }
.policy-results-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.policy-results-head > div { display: grid; gap: 2px; }
.policy-results-head strong { color: var(--navy); font-size: 11px; }
.policy-results-head small { color: #8392a5; font-size: 7px; }
.policy-results-head > span { color: var(--blue); font-size: 9px; font-weight: 800; }
.policy-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.policy-card { min-width: 0; padding: 13px; border: 1px solid #dce6f2; border-radius: 12px; background: #fff; box-shadow: 0 7px 20px rgba(37,70,114,.045); }
.policy-card.viewed { border-color: #b8d5f7; }
.policy-card-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.policy-category { padding: 4px 6px; border-radius: 7px; color: var(--blue); background: var(--blue-soft); font-size: 7px; font-weight: 800; }
.policy-region { display: flex; align-items: center; gap: 3px; color: #8997a9; font-size: 6.5px; }
.policy-region .icon { width: 9px; }
.policy-card h3 { margin: 9px 0 5px; color: var(--navy); font-size: 11px; line-height: 1.4; }
.policy-summary { min-height: 37px; margin: 0; color: #6c7f97; font-size: 8px; line-height: 1.55; }
.policy-audience { display: grid; gap: 3px; margin-top: 8px; padding: 7px 8px; border-radius: 8px; background: #f5f8fc; }
.policy-audience small, .policy-support-list > small { color: #8d9bad; font-size: 6.5px; }
.policy-audience span { color: #506782; font-size: 7px; line-height: 1.45; }
.policy-support-list { margin-top: 8px; }
.policy-support-list > div { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.policy-support-list span { padding: 3px 5px; border-radius: 6px; color: #547093; background: #edf4fe; font-size: 6.5px; }
.policy-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 10px; }
.policy-card-actions .button { min-height: 31px; padding: 0 8px; font-size: 7px; }
.policy-card-actions .icon { width: 11px; }
.policy-card-actions a { display: flex; align-items: center; gap: 3px; color: #7a8da5; font-size: 6.5px; }
.policy-explanation { display: grid; gap: 7px; margin-top: 10px; padding: 9px; border: 1px solid #d8e8fb; border-radius: 9px; background: #f5f9ff; }
.policy-explanation > div { display: grid; gap: 2px; }
.policy-explanation strong { color: #34577f; font-size: 7px; }
.policy-explanation p { margin: 0; color: #637991; font-size: 7px; line-height: 1.5; }
.policy-explanation > small { display: flex; gap: 4px; color: #95a1b0; font-size: 6px; line-height: 1.45; }
.policy-explanation > small .icon { flex: 0 0 auto; width: 9px; }
.policy-loading, .policy-empty { grid-column: 1 / -1; min-height: 130px; display: grid; align-content: center; justify-items: center; gap: 4px; padding: 20px; border: 1px dashed #cfdaea; border-radius: 11px; color: #8493a6; background: #fafcff; font-size: 8px; text-align: center; }
.policy-empty strong { color: var(--navy); font-size: 10px; }
.policy-empty p { max-width: 390px; margin: 0; line-height: 1.55; }

.rights-assistant-tabs { display: flex; margin-top: 13px; border: 1px solid #d9e4f1; border-radius: 10px 10px 0 0; background: #f7f9fc; }
.rights-assistant-tabs button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 10px; color: #73869d; background: transparent; font-size: 8px; font-weight: 700; cursor: pointer; }
.rights-assistant-tabs button.active { color: var(--blue); background: #fff; box-shadow: inset 0 -2px var(--blue); }
.rights-assistant-tabs .icon { width: 12px; }
.rights-assistant-panel { min-width: 0; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 11px; padding: 13px; border: 1px solid #d9e4f1; border-top: 0; border-radius: 0 0 10px 10px; background: #fafcff; }
.rights-assistant-panel[hidden] { display: none; }
.rights-input-column { min-width: 0; display: grid; align-content: start; gap: 8px; }
.rights-input-column label { color: var(--navy); font-size: 9px; font-weight: 800; }
.rights-input-column textarea, .rights-consult-composer textarea { width: 100%; min-height: 110px; padding: 10px; resize: vertical; border: 1px solid #d5e1ef; border-radius: 9px; color: #385371; background: #fff; font-size: 8px; line-height: 1.55; outline: none; }
.rights-quick-topics { display: flex; flex-wrap: wrap; gap: 5px; }
.rights-quick-topics button { padding: 5px 7px; border: 1px solid #dce5f0; border-radius: 8px; color: #6a7d95; background: #fff; font-size: 6.5px; cursor: pointer; }
.rights-ai-output { min-width: 0; display: grid; gap: 7px; }
.rights-ai-output > div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px; padding: 9px; border-radius: 9px; background: #fff; }
.rights-ai-output > div > span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: var(--blue); background: var(--blue-soft); }
.rights-ai-output > div > span .icon { width: 12px; }
.rights-ai-output section { min-width: 0; }
.rights-ai-output strong { color: var(--navy); font-size: 8px; }
.rights-ai-output p, .rights-ai-output blockquote, .rights-ai-output li { color: #647991; font-size: 7px; line-height: 1.5; }
.rights-ai-output p, .rights-ai-output blockquote { margin: 4px 0 0; }
.rights-ai-output blockquote { font-style: normal; }
.rights-ai-output ul { margin: 4px 0 0; padding-left: 14px; }
.rights-ai-output section button { display: flex; align-items: center; gap: 3px; margin-top: 5px; padding: 4px 6px; border-radius: 7px; color: var(--blue); background: #edf4fe; font-size: 6.5px; cursor: pointer; }
.rights-ai-output section button:disabled { color: #9aa7b7; cursor: not-allowed; }
.rights-ai-output section button .icon { width: 9px; }
.rights-ai-output > small { color: #929faf; font-size: 6.5px; }
.rights-ai-output[data-state="loading"] { opacity: .65; }
.rights-ai-output[data-state="error"] > small { color: #bc444d; }
.consultation-panel { grid-template-columns: 1fr; }
.rights-consult-history { height: 270px; display: flex; flex-direction: column; gap: 8px; padding: 10px; overflow: auto; border: 1px solid #d9e3ef; border-radius: 9px; background: #fff; }
.rights-empty-chat { margin: auto; color: #8b99aa; font-size: 8px; text-align: center; }
.rights-chat-message { max-width: 82%; display: grid; gap: 3px; align-self: flex-start; }
.rights-chat-message.user { align-self: flex-end; }
.rights-chat-message small { color: #8291a4; font-size: 6.5px; }
.rights-chat-message.user small { text-align: right; }
.rights-chat-message p { margin: 0; padding: 8px 9px; border-radius: 10px 10px 10px 3px; color: #536b87; background: #edf3fb; font-size: 8px; line-height: 1.55; }
.rights-chat-message.user p { color: #fff; border-radius: 10px 10px 3px 10px; background: var(--blue); }
.rights-chat-message ul { margin: 0; padding: 6px 8px 6px 20px; color: #60758d; background: #f7f9fc; font-size: 7px; line-height: 1.5; }
.rights-chat-message em { color: #8d9aab; font-size: 6.5px; font-style: normal; line-height: 1.45; }
.rights-consult-composer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.rights-consult-composer textarea { min-height: 65px; resize: none; }
.rights-consult-composer button { width: 42px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--blue); cursor: pointer; }
.rights-consult-composer button:disabled { opacity: .55; }
.rights-consult-composer .icon { width: 17px; }
.rights-assistant-disclaimer { display: flex; align-items: center; gap: 5px; margin: 0; color: #97a3b3; font-size: 6.5px; }
.rights-assistant-disclaimer .icon { width: 10px; }

.rights-map-panel { position: sticky; top: 94px; gap: 11px; height: calc(100vh - 118px); min-height: 650px; padding: 15px; }
.rights-location-card { display: grid; grid-template-columns: auto 1fr; gap: 9px; padding: 13px; border: 1px solid #cfe0f7; border-radius: 12px; background: linear-gradient(145deg, #f8fbff, #edf4ff); }
.rights-location-card > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--blue); background: #fff; }
.rights-location-card > span .icon { width: 16px; }
.rights-location-card > div { display: grid; gap: 2px; }
.rights-location-card small, .rights-location-card em { color: #8796a8; font-size: 7px; font-style: normal; }
.rights-location-card strong { color: var(--navy); font-size: 10px; }
.rights-location-card em { color: #1d937a; }
.rights-match-summary-card { padding: 13px; border: 1px solid var(--line); border-radius: 12px; }
.rights-match-summary-card > div:first-child { display: flex; align-items: baseline; justify-content: space-between; }
.rights-match-summary-card small { color: #8493a6; font-size: 7px; }
.rights-match-summary-card strong { color: var(--navy); font-size: 13px; }
#rightsMapDirections { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
#rightsMapDirections span { padding: 5px 7px; border-radius: 8px; color: #537093; background: #edf4fe; font-size: 7px; }
.rights-map-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.rights-map-stats > div { display: grid; justify-items: center; gap: 3px; padding: 10px 5px; border: 1px solid var(--line); border-radius: 11px; }
.rights-map-stats span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: var(--blue); background: var(--blue-soft); }
.rights-map-stats .icon { width: 13px; }
.rights-map-stats small { color: #8997a8; font-size: 6.5px; }
.rights-map-stats strong { color: var(--navy); font-size: 9px; }
.rights-map-advice { margin: 0; }
.rights-verification-card { padding: 11px; border-radius: 11px; background: #f5f7fa; }
.rights-verification-card strong { display: flex; align-items: center; gap: 4px; color: #60728a; font-size: 8px; }
.rights-verification-card strong .icon { width: 11px; }
.rights-verification-card p { margin: 5px 0 0; color: #8b98a8; font-size: 6.5px; line-height: 1.5; }

@media (max-width: 1180px) {
  .workspace:has(.phase6-rights-page) { grid-template-columns: 1fr; }
  .rights-map-panel { position: relative; top: auto; height: auto; min-height: 0; }
}
@media (max-width: 820px) {
  .phase6-rights-hero { grid-template-columns: 1fr; }
  .rights-map-visual { display: none; }
  .rights-core-grid, .policy-list { grid-template-columns: 1fr; }
  .rights-core-card { min-height: 145px; }
  .rights-assistant-panel { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .rights-policy-section, .rights-assistant { padding: 14px; }
  .rights-region-grid { grid-template-columns: 1fr; }
  .rights-section-heading { align-items: flex-start; flex-direction: column; }
  .rights-assistant-tabs { display: grid; grid-template-columns: 1fr; }
  .policy-card-actions { align-items: flex-start; flex-direction: column; }
}

/* Phase 4: real AI companion */
.workspace:has(.phase4-companion-page) {
  grid-template-columns: minmax(660px, 7fr) minmax(280px, 3fr);
  gap: 14px;
  align-items: start;
}

.phase4-companion-page { gap: 12px; }
.companion-intro { min-height: 70px; }
.phase4-companion-layout {
  grid-template-columns: minmax(420px, 9fr) minmax(230px, 5fr);
  gap: 14px;
  align-items: stretch;
}

.phase4-chat-card,
.phase4-emotion-column,
.companion-today-panel {
  height: 650px;
  min-height: 650px;
}

.phase4-chat-card { position: relative; }
.phase4-chat-card .chat-head { min-height: 62px; }
.phase4-chat-card .chat-head b { color: inherit; font-size: inherit; font-weight: 500; }

.companion-topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #f8fbff;
}
.companion-topics button {
  overflow: hidden;
  padding: 7px 8px;
  border: 1px solid #dce7f5;
  border-radius: 9px;
  color: #58708f;
  background: #fff;
  font-size: 8px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.companion-topics button:hover { color: var(--blue); border-color: #aecaef; background: var(--blue-soft); }

.phase4-chat-card .chat-messages { padding: 14px; gap: 11px; }
.phase4-chat-card .message p { white-space: pre-wrap; }
.phase4-chat-card .message.transient > div { border: 1px solid #ffd1d4; background: #fff3f4; }
.real-suggestions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.real-suggestions button { cursor: pointer; }
.companion-risk-notice { margin-top: 8px; padding: 8px; border-radius: 8px; color: #a33a42; background: #fff0f1; font-size: 8px; line-height: 1.55; }

.companion-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 15px;
  color: #8290a3;
  background: #fbfcfe;
  font-size: 8px;
}
.companion-typing[hidden] { display: none; }
.companion-typing > span { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); animation: phase1Pulse 1s infinite; }
.companion-typing > span:nth-child(2) { animation-delay: .15s; }
.companion-typing > span:nth-child(3) { animation-delay: .3s; }
.companion-typing small { margin-left: 4px; }

.phase4-chat-composer {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 8px;
  padding: 10px 12px 12px;
}
.phase4-chat-composer textarea { grid-column: 1; grid-row: 1; min-height: 44px; max-height: 88px; resize: vertical; }
.phase4-chat-composer > div { grid-column: 1; grid-row: 2; display: flex; justify-content: space-between; gap: 8px; color: #9aa7b7; font-size: 7px; }
.phase4-chat-composer .send-button { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.phase4-chat-composer .send-button:disabled { opacity: .55; cursor: not-allowed; }

.phase4-emotion-column { grid-template-rows: minmax(0, 1.12fr) minmax(0, .88fr); }
.phase4-mood-card,
.phase4-emotion-chart { min-height: 0; overflow: hidden; }
.phase4-mood-card { display: flex; flex-direction: column; padding: 14px; }
.phase4-mood-card .mood-face { margin: 5px auto; }
.phase4-mood-card > p { margin: 4px 0 9px; min-height: 42px; }
.moment-suggestion { display: flex; gap: 7px; margin-top: 10px; padding: 9px; border-radius: 10px; background: #f1f6ff; }
.moment-suggestion > span { flex: 0 0 24px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; color: var(--blue); background: #fff; }
.moment-suggestion .icon { width: 12px; }
.moment-suggestion p { display: grid; gap: 2px; margin: 0; color: #61738b; font-size: 7px; line-height: 1.5; }
.moment-suggestion strong { color: var(--navy); font-size: 8px; }
.moment-suggestion b { font-weight: 500; }
.analysis-source { margin-top: auto; padding-top: 7px; color: #9ba8b8; font-size: 7px; }

.phase4-emotion-chart { display: flex; flex-direction: column; }
.phase4-emotion-chart svg { flex: 1; min-height: 110px; }
.phase4-emotion-chart circle.recorded { fill: var(--blue); stroke: #fff; stroke-width: 2; }
.phase4-emotion-chart circle.initial { fill: #fff; stroke: #31a9a1; stroke-width: 2; }
.phase4-emotion-chart .chart-labels span.recorded { color: var(--blue); font-weight: 800; }
.emotion-legend { display: flex; justify-content: center; gap: 10px; margin-top: 7px; color: #93a0b1; font-size: 7px; }
.emotion-legend span { display: flex; align-items: center; gap: 4px; }
.emotion-legend i { width: 6px; height: 6px; border: 1px solid #31a9a1; border-radius: 50%; background: #fff; }
.emotion-legend i.real { border-color: var(--blue); background: var(--blue); }

.companion-today-panel {
  top: 94px;
  min-height: 650px;
  margin-top: 82px;
  padding: 16px;
  gap: 11px;
  overflow: auto;
}
.companion-today-card { display: grid; justify-items: center; padding: 15px 12px; border: 1px solid #dfe8f4; border-radius: 14px; background: linear-gradient(145deg, #f8fbff, #eef5ff); }
.companion-today-orbit { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 7px; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #2d76ed, #4bb9c2); box-shadow: 0 8px 18px rgba(33,105,226,.18); }
.companion-today-orbit .icon { width: 20px; }
.companion-today-card > small { color: #8998aa; font-size: 8px; }
.companion-today-card > strong { margin-top: 2px; color: var(--navy); font-size: 23px; }
.companion-today-card > p { min-height: 35px; margin: 7px 0 9px; color: #63758e; font-size: 8px; line-height: 1.55; text-align: center; }
.companion-energy-row { width: 100%; display: flex; justify-content: space-between; color: #75869c; font-size: 8px; }
.companion-energy-row b { color: var(--blue); }
.companion-energy-track { width: 100%; height: 5px; margin-top: 5px; overflow: hidden; border-radius: 5px; background: #dfe8f2; }
.companion-energy-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #4bbfc6); transition: width .6s; }
.companion-daily-advice { margin: 0; }
.companion-daily-advice p { min-height: 38px; }
.companion-growth-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.companion-growth-card > div { display: grid; justify-items: center; gap: 4px; padding: 9px 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: center; }
.companion-growth-card > div > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; color: var(--blue); background: var(--blue-soft); }
.companion-growth-card .icon { width: 12px; }
.companion-growth-card p { display: grid; gap: 2px; margin: 0; }
.companion-growth-card small { color: #8c9aac; font-size: 7px; }
.companion-growth-card strong { color: var(--navy); font-size: 9px; }
.companion-data-note { padding: 10px; border: 1px dashed #cfdbea; border-radius: 11px; background: #fafcff; }
.companion-data-note strong { display: flex; align-items: center; gap: 5px; color: #536982; font-size: 8px; }
.companion-data-note .icon { width: 11px; }
.companion-data-note p { margin: 5px 0 0; color: #8b98aa; font-size: 7px; line-height: 1.5; }

.companion-weak-disclaimer {
  position: fixed;
  left: calc(var(--sidebar) + 24px);
  right: 24px;
  bottom: 8px;
  z-index: 18;
  padding: 3px 9px;
  color: #a3adb9;
  background: rgba(245, 248, 252, .88);
  backdrop-filter: blur(5px);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  pointer-events: none;
}

@media (max-width: 1180px) {
  .workspace:has(.phase4-companion-page) { grid-template-columns: 1fr; }
  .companion-today-panel { position: relative; top: auto; height: auto; min-height: 0; margin-top: 0; }
  .companion-growth-card { grid-template-columns: repeat(3, minmax(100px, 1fr)); }
}

@media (max-width: 900px) {
  .phase4-companion-layout { grid-template-columns: 1fr; }
  .phase4-chat-card { height: 620px; min-height: 620px; }
  .phase4-emotion-column { height: auto; min-height: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .phase4-mood-card, .phase4-emotion-chart { min-height: 320px; }
  .companion-weak-disclaimer { left: 16px; right: 16px; }
}

@media (max-width: 640px) {
  .companion-topics { grid-template-columns: 1fr; }
  .phase4-emotion-column { grid-template-columns: 1fr; }
  .companion-growth-card { grid-template-columns: 1fr 1fr 1fr; }
  .companion-weak-disclaimer { font-size: 12px; }
}

/* Phase 3: real AI interview training */
.phase3-interview-page { gap: 13px; }

.phase3-role-banner {
  grid-template-columns: auto minmax(135px, 1fr) minmax(110px, .7fr) auto auto;
}

.phase3-role-banner label { display: grid; gap: 4px; }
.phase3-role-banner label > span { color: var(--muted); font-size: 8px; }
.phase3-role-banner select {
  width: 100%;
  padding: 7px 28px 7px 9px;
  border: 1px solid #d7e2f0;
  border-radius: 9px;
  color: var(--navy);
  background: #fff;
  font-size: 10px;
  font-weight: 700;
  outline: none;
}

.interview-lifecycle {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 8px;
  border: 1px solid #dce6f4;
  border-radius: 13px;
  background: #fff;
}

.interview-lifecycle span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px;
  border-radius: 9px;
  color: #94a2b4;
  font-size: 8px;
  font-weight: 700;
}

.interview-lifecycle span i {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf1f6;
  font-style: normal;
}

.interview-lifecycle span.active { color: var(--blue); background: var(--blue-soft); }
.interview-lifecycle span.active i { color: #fff; background: var(--blue); }
.interview-lifecycle span.done { color: #278d72; }
.interview-lifecycle span.done i { color: #fff; background: var(--mint); }

.interview-error {
  padding: 10px 12px;
  border: 1px solid #ffb8bd;
  border-radius: 11px;
  color: #b93b44;
  background: #fff3f4;
  font-size: 9px;
  line-height: 1.5;
}

.interviewer-copy small b { color: inherit; font-weight: 500; }
.phase3-question-pane small { display: block; margin-top: 8px; color: #9aa6b6; font-size: 7px; }

.phase3-sign-answer {
  min-height: 195px;
  grid-template-columns: minmax(230px, .85fr) minmax(300px, 1.15fr);
  gap: 16px;
}

.phase3-mini-camera { height: 170px; }
.phase3-mini-camera video,
.interview-camera-poster,
.interview-camera-poster img { width: 100%; height: 100%; object-fit: cover; }
.phase3-mini-camera video { background: #102039; }
.interview-camera-poster { position: relative; }
.interview-camera-poster span {
  position: absolute;
  left: 8px;
  top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  border-radius: 7px;
  color: #fff;
  background: rgba(12, 29, 52, .7);
  font-size: 7px;
}
.interview-camera-poster .icon { width: 10px; }

.sign-answer-controls { display: grid; align-content: center; gap: 9px; }
.sign-control-row { display: flex; flex-wrap: wrap; gap: 6px; }
.sign-control-row .button { min-height: 34px; padding: 0 10px; font-size: 8px; }
.secondary-row { justify-content: flex-start; }
.quiet-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 0;
  color: #687d98;
  background: transparent;
  font-size: 8px;
  cursor: pointer;
}
.quiet-link .icon { width: 11px; height: 11px; }
.sign-answer-state { display: grid; gap: 2px; margin: 0; }
.sign-answer-state strong { color: var(--navy); font-size: 9px; }
.sign-answer-state span { color: var(--muted); font-size: 8px; }
.sign-answer-controls blockquote {
  margin: 0;
  padding: 8px 9px;
  border-left: 2px solid var(--blue);
  border-radius: 0 8px 8px 0;
  color: #536a86;
  background: #fff;
  font-size: 8px;
  line-height: 1.55;
}
.compact-progress { height: 4px; overflow: hidden; border-radius: 6px; background: #e9eef5; }
.compact-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #49c4c9); transition: width .3s; }

.phase3-text-answer { min-height: 155px; }
.phase3-text-answer > div { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.phase3-text-answer > div small { color: #94a1b3; font-size: 8px; }
.phase3-text-answer .button { float: none; margin-top: 0; }

.answer-understanding { padding: 17px; }
.understanding-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 10px; margin-top: 13px; }
.understanding-grid article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  min-height: 110px;
  padding: 12px;
  border: 1px solid #e0e8f3;
  border-radius: 12px;
  background: #f9fbfe;
}
.understanding-grid article > span { color: #a9b8cb; font-size: 9px; font-weight: 800; }
.understanding-grid strong { color: var(--navy); font-size: 9px; }
.understanding-grid p,
.understanding-grid ul { margin: 7px 0 0; color: #60748e; font-size: 8px; line-height: 1.55; }
.understanding-grid ul { padding-left: 14px; }
[data-state="loading"] .waiting-feedback { color: var(--blue); background: var(--blue-soft); }
[data-state="complete"] .waiting-feedback { color: #278d72; background: var(--mint-soft); }
[data-state="error"] .waiting-feedback { color: #c54850; background: #fff0f1; }

.phase3-score-grid { grid-template-columns: repeat(3, 1fr); }
.feedback-detail-grid { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 10px; margin-top: 13px; }
.feedback-detail-grid article { min-height: 105px; padding: 12px; border-radius: 12px; background: #f7f9fc; }
.feedback-detail-grid article.positive { background: #f0faf7; }
.feedback-detail-grid article.improve { background: #fff8ef; }
.feedback-detail-grid article.suggestion { background: #f1f6ff; }
.feedback-detail-grid strong { display: flex; align-items: center; gap: 5px; color: var(--navy); font-size: 9px; }
.feedback-detail-grid .icon { width: 12px; color: var(--blue); }
.feedback-detail-grid ul { margin: 8px 0 0; padding-left: 15px; color: #5c6f87; font-size: 8px; line-height: 1.6; }
.feedback-detail-grid p { margin: 8px 0 0; color: #5c6f87; font-size: 8px; line-height: 1.6; }
.optimized-answer {
  display: grid;
  grid-template-columns: minmax(115px, .35fr) 1fr auto;
  align-items: center;
  gap: 13px;
  margin-top: 11px;
  padding: 13px;
  border: 1px solid #cfe0f7;
  border-radius: 12px;
  background: linear-gradient(100deg, #f4f8ff, #fbfdff);
}
.optimized-answer > div { display: grid; gap: 3px; }
.optimized-answer > div span { color: var(--navy); font-size: 10px; font-weight: 800; }
.optimized-answer > div small { color: #8b9aaf; font-size: 7px; }
.optimized-answer blockquote { margin: 0; color: #39516f; font-size: 9px; line-height: 1.6; }
.optimized-answer .button { white-space: nowrap; }

.interview-growth-panel { gap: 12px; }
.interview-readiness-card { display: grid; justify-items: center; padding: 18px 13px; border: 1px solid #dfe8f4; border-radius: 15px; background: linear-gradient(145deg, #f7fbff, #edf4ff); }
.interview-readiness-card .status-orbit { width: 55px; height: 55px; margin: 0 0 8px; }
.interview-readiness-card small { color: var(--muted); font-size: 8px; }
.interview-readiness-card > strong { margin-top: 3px; color: var(--navy); font-size: 26px; }
.interview-readiness-card p { margin: 7px 0 0; color: #8493a7; font-size: 7px; text-align: center; }
.readiness-track { width: 100%; height: 6px; margin-top: 10px; overflow: hidden; border-radius: 7px; background: #dfe7f2; }
.readiness-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #47bdc8); transition: width .7s; }
.interview-record-card { padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.interview-record-card > div { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 7px; }
.interview-record-card > div > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: var(--blue); background: var(--blue-soft); }
.interview-record-card .icon { width: 14px; }
.interview-record-card small { color: var(--muted); font-size: 8px; }
.interview-record-card strong { color: var(--navy); font-size: 11px; }
.interview-record-card a { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 8px; color: var(--blue); font-size: 8px; font-weight: 700; }
.interview-record-card a .icon { width: 10px; }
.interview-ai-note { margin: 0; }
.interview-flow-card { padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.interview-flow-card > strong { color: var(--navy); font-size: 9px; }
.interview-flow-card ol { display: grid; gap: 7px; margin: 9px 0 0; padding: 0; list-style: none; }
.interview-flow-card li { display: flex; align-items: center; gap: 7px; color: #647891; font-size: 8px; }
.interview-flow-card li i { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 6px; color: var(--blue); background: var(--blue-soft); font-style: normal; font-weight: 800; }

@media (max-width: 1180px) {
  .phase3-role-banner { grid-template-columns: auto 1fr 1fr auto; }
  .phase3-role-banner .role-tags { display: none; }
}

@media (max-width: 900px) {
  .phase3-role-banner { grid-template-columns: auto 1fr 1fr; }
  .phase3-role-banner .button { grid-column: 2 / -1; justify-self: start; }
  .understanding-grid, .feedback-detail-grid { grid-template-columns: 1fr; }
  .optimized-answer { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .phase3-role-banner { grid-template-columns: auto 1fr; }
  .phase3-role-banner label:nth-of-type(2) { grid-column: 2; }
  .phase3-role-banner .button { grid-column: 1 / -1; }
  .interview-lifecycle { grid-template-columns: 1fr; }
  .interview-lifecycle span:not(.active):not(.done) { display: none; }
  .phase3-sign-answer { grid-template-columns: 1fr; }
  .phase3-score-grid { grid-template-columns: 1fr; }
}

/* Phase 2: DeepSeek understanding layer */
body:has(.phase2-result-panel) {
  --right: 360px;
}

.phase2-result-panel {
  gap: 12px;
  padding: 17px;
}

.phase2-result-panel .recognition-result-card {
  min-height: 190px;
  padding: 14px;
}

.phase2-result-panel .recognition-result-card blockquote {
  margin: 11px 0;
  font-size: 12px;
}

.phase2-result-panel .recognition-result-card.has-result blockquote {
  font-size: 17px;
}

.phase2-result-panel .result-speak-button {
  min-height: 34px;
  margin-top: 10px;
}

.ai-connection-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  padding: 11px;
  border: 1px solid #dcd8fb;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbfaff, #f5f7ff);
}

.ai-connection-card strong {
  display: block;
  color: var(--navy);
  font-size: 10px;
}

.ai-connection-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.ai-service-badge {
  padding: 4px 7px;
  border-radius: 9px;
  color: #766b91;
  background: #eeeafd;
  font-size: 8px;
  font-weight: 720;
  white-space: nowrap;
}

.ai-service-badge.configured {
  color: #167c6d;
  background: var(--mint-soft);
}

.ai-service-badge.missing {
  color: #bd4650;
  background: #fff0f1;
}

.ai-result-stack {
  display: grid;
  gap: 9px;
  padding: 13px;
  border: 1px solid #d9e0f5;
  border-radius: 16px;
  background: linear-gradient(155deg, #fbfcff, #f5f7ff 55%, #faf8ff);
}

.ai-result-heading,
.ai-result-heading > div,
.ai-result-actions {
  display: flex;
  align-items: center;
}

.ai-result-heading,
.ai-result-actions {
  justify-content: space-between;
  gap: 10px;
}

.ai-result-heading > div {
  gap: 8px;
}

.ai-result-heading strong {
  color: var(--navy);
  font-size: 11px;
}

.ai-orbit {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #7258d6;
  background: #eeeafd;
}

.ai-orbit .icon {
  width: 14px;
}

.ai-analysis-status {
  color: #7d899b;
  font-size: 8px;
}

.ai-result-stack[data-state="loading"] .ai-analysis-status {
  color: var(--blue);
  animation: phase1Pulse 1.05s ease-in-out infinite;
}

.ai-result-stack[data-state="complete"] .ai-analysis-status {
  color: var(--mint);
  font-weight: 720;
}

.ai-result-stack[data-state="error"] .ai-analysis-status {
  color: var(--danger);
  font-weight: 720;
}

.ai-result-card {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  padding: 11px;
  border: 1px solid #e3e8f2;
  border-radius: 12px;
  background: rgba(255, 255, 255, .9);
}

.ai-result-card.optimized {
  border-color: #c7d9f6;
  background: linear-gradient(145deg, #fff, #f3f8ff);
}

.ai-result-index {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 8px;
  font-weight: 800;
}

.ai-result-card strong {
  color: var(--navy);
  font-size: 10px;
}

.ai-result-card p,
.ai-result-card blockquote,
.ai-result-card ul {
  margin: 5px 0 0;
  color: #63738a;
  font-size: 9px;
  line-height: 1.65;
}

.ai-result-card blockquote {
  color: #334c70;
  font-style: normal;
  font-weight: 650;
}

.ai-result-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0;
  list-style: none;
}

.ai-result-card li {
  padding: 4px 7px;
  border-radius: 9px;
  color: #536982;
  background: #f0f4fa;
}

.optimized-speak {
  grid-column: 2;
  width: 100%;
}

.ai-result-actions small {
  color: #98a5b6;
  font-size: 7px;
}

.ai-regenerate-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 9px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.ai-regenerate-button:disabled {
  color: #9aa7b8;
  background: #eef1f5;
  cursor: not-allowed;
}

.ai-regenerate-button .icon {
  width: 12px;
  height: 12px;
}

@media (max-width: 1180px) {
  body:has(.phase2-result-panel) {
    --right: 290px;
  }

  .ai-connection-card {
    grid-template-columns: 32px minmax(0, 1fr) auto;
  }

  .ai-connection-card .icon-button {
    display: none;
  }
}

@media (max-width: 900px) {
  .sign-insight-panel.phase2-result-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phase2-result-panel .panel-heading,
  .phase2-result-panel .ai-result-stack {
    grid-column: 1 / -1;
  }

  .phase2-result-panel .recognition-result-card {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .sign-insight-panel.phase2-result-panel {
    display: flex;
  }

  .ai-connection-card {
    grid-template-columns: 32px minmax(0, 1fr) auto;
  }
}

/* Phase 5: AI workplace challenge training */
.workspace:has(.phase5-challenge-page) {
  grid-template-columns: minmax(660px, 7fr) minmax(280px, 3fr);
  gap: 14px;
  align-items: start;
}

.phase5-challenge-page { gap: 12px; }
.phase5-scene-layout { grid-template-columns: 240px minmax(400px, 1fr); gap: 14px; align-items: start; }
.phase5-scene-list {
  position: sticky;
  top: 94px;
  height: calc(100vh - 118px);
  min-height: 650px;
  padding: 11px;
  overflow: auto;
}
.phase5-scene-list .scene-list-head { position: sticky; top: -11px; z-index: 2; padding: 10px 3px; background: #fff; }
.scene-library-loading, .scene-loading-state, .scene-load-error { display: grid; min-height: 180px; place-items: center; color: #8391a4; font-size: 9px; text-align: center; }
.scene-load-error { color: #b93c45; }
.scene-category { display: grid; gap: 3px; margin-bottom: 10px; }
.scene-category-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px; padding: 5px 4px; color: #7a8ca4; }
.scene-category-head > span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; color: var(--blue); background: var(--blue-soft); }
.scene-category-head .icon { width: 11px; }
.scene-category-head strong { color: var(--navy); font-size: 8px; }
.scene-category-head small { font-size: 7px; }
.phase5-scene-list .scene-card { min-height: 48px; padding: 8px 7px; }
.phase5-scene-list .scene-card > span { width: 25px; height: 25px; }
.phase5-scene-list .scene-card > span .icon { width: 12px; }
.phase5-scene-list .scene-card strong { font-size: 8px; line-height: 1.35; }
.phase5-scene-list .scene-card small { display: -webkit-box; overflow: hidden; margin-top: 2px; font-size: 6.5px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.phase5-scene-list .scene-card.completed > svg { color: #1b9b7f; }

.phase5-scenario-workspace { min-width: 0; min-height: 720px; padding: 18px; }
.phase5-scenario-header { align-items: flex-start; }
.phase5-scenario-header h2 { margin: 4px 0; color: var(--navy); font-size: 20px; }
.phase5-scenario-header p { margin: 0; color: #70829a; font-size: 9px; }
.scenario-context-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 13px; }
.scenario-context-grid > article { min-height: 105px; margin: 0; padding: 12px; border-radius: 12px; }
.scenario-context-grid .situation-box { background: #f4f8fd; }
.challenge-question-box { display: flex; gap: 9px; border: 1px solid #cfe0f7; background: linear-gradient(145deg, #f8fbff, #eef5ff); }
.challenge-question-box > span { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--blue); background: #fff; }
.challenge-question-box .icon { width: 15px; }
.challenge-question-box strong { color: var(--navy); font-size: 9px; }
.challenge-question-box p { margin: 5px 0 0; color: #4c6380; font-size: 9px; line-height: 1.6; }
.scene-keywords { display: flex; flex-wrap: wrap; gap: 5px; margin: 9px 0 12px; }
.scene-keywords span { padding: 4px 7px; border-radius: 8px; color: #547196; background: #edf4fe; font-size: 7px; }

.training-mode-tabs, .challenge-answer-tabs { display: flex; border-bottom: 1px solid var(--line); }
.training-mode-tabs { border: 1px solid var(--line); border-radius: 11px 11px 0 0; background: #fff; }
.training-mode-tabs button, .challenge-answer-tabs button { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 10px 13px; color: #78899f; background: transparent; font-size: 8px; font-weight: 700; cursor: pointer; }
.training-mode-tabs button { flex: 1; }
.training-mode-tabs button.active, .challenge-answer-tabs button.active { color: var(--blue); box-shadow: inset 0 -2px var(--blue); }
.training-mode-tabs .icon, .challenge-answer-tabs .icon { width: 12px; }
.training-mode-tabs em { padding: 2px 4px; border-radius: 5px; color: #7d58c9; background: #eeeafd; font-size: 6px; font-style: normal; }

.challenge-analysis-mode, .challenge-role-mode { min-width: 0; padding: 12px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 11px 11px; background: #fafcff; }
.challenge-answer-tabs { margin: -12px -12px 11px; padding: 0 8px; background: #fff; }
.challenge-text-answer textarea { width: 100%; min-height: 115px; padding: 11px; resize: vertical; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; font-size: 9px; line-height: 1.6; outline: none; }
.challenge-text-answer > div { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; }
.challenge-text-answer small { color: #98a5b5; font-size: 7px; }

.challenge-sign-answer { width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.challenge-sign-answer[hidden] { display: none; }
.challenge-sign-camera { position: relative; width: 100%; min-width: 0; min-height: 220px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 11px; background: #102039; }
.challenge-sign-camera video, #challengeCameraPoster { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
#challengeCameraPoster { display: grid; align-content: center; justify-items: center; gap: 5px; color: #dce9fa; background: radial-gradient(circle at center, #213b60, #102039); text-align: center; }
#challengeCameraPoster > span { width: 45px; height: 45px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; }
#challengeCameraPoster .icon { width: 22px; }
#challengeCameraPoster strong { font-size: 10px; }
#challengeCameraPoster small { color: #98abc4; font-size: 7px; }
.challenge-sign-controls { width: 100%; min-width: 0; display: grid; align-content: center; gap: 8px; }
.challenge-sign-controls > div { display: flex; flex-wrap: wrap; gap: 5px; }
.challenge-sign-controls > div:first-child { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.challenge-sign-controls .button { min-width: 0; min-height: 36px; padding: 6px 8px; white-space: normal; font-size: 7px; line-height: 1.25; }
.challenge-sign-controls .button .icon { flex: 0 0 auto; }
.challenge-sign-controls p { display: grid; gap: 2px; margin: 0; }
.challenge-sign-controls p strong { color: var(--navy); font-size: 8px; }
.challenge-sign-controls p span { color: #8190a4; font-size: 7px; }
.challenge-sign-controls blockquote { margin: 0; padding: 8px; border-left: 2px solid var(--blue); color: #536b88; background: #fff; font-size: 8px; line-height: 1.5; }
.challenge-sign-controls .button.full { width: 100%; }

.role-play-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.role-play-head > div { display: flex; align-items: center; gap: 8px; }
.role-play-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #6d55c8; background: #eeeafd; }
.role-play-icon .icon { width: 16px; }
.role-play-head p { display: grid; gap: 3px; margin: 0; }
.role-play-head strong { color: var(--navy); font-size: 9px; }
.role-play-head small { color: #7e8da1; font-size: 7px; }
.role-transcript { height: 235px; display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding: 11px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.role-empty { margin: auto; color: #94a1b2; font-size: 8px; text-align: center; }
.role-message { max-width: 82%; display: grid; gap: 3px; }
.role-message.ai { align-self: flex-start; }
.role-message.user { align-self: flex-end; }
.role-message span { color: #8190a4; font-size: 7px; }
.role-message.user span { text-align: right; }
.role-message p { margin: 0; padding: 8px 10px; border-radius: 10px 10px 10px 3px; color: #4f6682; background: #edf3fb; font-size: 8px; line-height: 1.55; }
.role-message.user p { color: #fff; border-radius: 10px 10px 3px 10px; background: var(--blue); }
.role-composer { display: grid; grid-template-columns: 1fr auto; gap: 7px; margin-top: 8px; }
.role-composer textarea { min-height: 53px; padding: 9px; resize: none; border: 1px solid var(--line); border-radius: 10px; font-size: 8px; line-height: 1.5; outline: none; }
.role-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; }
.role-actions small { color: #8392a6; font-size: 7px; }

.challenge-feedback { margin-top: 13px; padding: 13px; border: 1px solid #dfe7f2; border-radius: 13px; background: #fff; }
.challenge-feedback-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.challenge-feedback-grid article { display: grid; grid-template-columns: auto 1fr; gap: 8px; min-height: 100px; padding: 11px; border-radius: 11px; }
.challenge-feedback-grid article.strength { background: #f0faf7; }
.challenge-feedback-grid article.problem { background: #fff8ef; }
.challenge-feedback-grid article.better { background: #f1f6ff; }
.challenge-feedback-grid article.suggestion { background: #f7f4ff; }
.challenge-feedback-grid article > span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: var(--blue); background: #fff; }
.challenge-feedback-grid .icon { width: 13px; }
.challenge-feedback-grid strong { color: var(--navy); font-size: 8px; }
.challenge-feedback-grid p, .challenge-feedback-grid blockquote { margin: 5px 0 0; color: #5a6f89; font-size: 8px; line-height: 1.55; }
.challenge-feedback-grid blockquote { font-style: normal; }
.challenge-feedback-grid button { display: flex; align-items: center; gap: 4px; margin-top: 7px; padding: 4px 6px; border-radius: 7px; color: var(--blue); background: #fff; font-size: 7px; cursor: pointer; }
.challenge-feedback-grid button:disabled { color: #9ba8b7; cursor: not-allowed; }
.challenge-feedback-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; color: #94a1b2; font-size: 7px; }
#challengeSkillTags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
#challengeSkillTags span { padding: 3px 6px; border-radius: 7px; color: #527094; background: #edf4fe; }
.challenge-feedback[data-state="loading"] .waiting-feedback { color: var(--blue); background: var(--blue-soft); }
.challenge-feedback[data-state="complete"] .waiting-feedback { color: #19866f; background: var(--mint-soft); }
.challenge-feedback[data-state="error"] .waiting-feedback { color: #bd454e; background: #fff0f1; }

.challenge-growth-panel { gap: 11px; padding: 16px; }
.challenge-progress-card { padding: 14px; border: 1px solid #dce6f3; border-radius: 13px; background: linear-gradient(145deg, #f8fbff, #edf4ff); }
.challenge-progress-card > div:first-child { display: flex; justify-content: space-between; align-items: baseline; color: #63758e; font-size: 8px; }
.challenge-progress-card strong { color: var(--navy); font-size: 20px; }
.challenge-progress-track { height: 6px; margin-top: 9px; overflow: hidden; border-radius: 6px; background: #dfe7f2; }
.challenge-progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #49bdc7); transition: width .6s; }
.challenge-progress-card small { display: block; margin-top: 7px; color: #8d9aab; font-size: 7px; line-height: 1.45; }
.challenge-skill-card { padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.challenge-skill-card > strong { display: flex; align-items: center; gap: 5px; color: var(--navy); font-size: 9px; }
.challenge-skill-card .icon { width: 12px; color: var(--blue); }
#challengeMasteredSkills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
#challengeMasteredSkills span { padding: 5px 7px; border-radius: 8px; color: #526d90; background: #edf4fe; font-size: 7px; }
.challenge-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.challenge-stat-grid > div { display: grid; justify-items: center; gap: 3px; padding: 10px 5px; border: 1px solid var(--line); border-radius: 11px; }
.challenge-stat-grid > div > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--blue); background: var(--blue-soft); }
.challenge-stat-grid .icon { width: 13px; }
.challenge-stat-grid small { color: #8b99aa; font-size: 7px; }
.challenge-stat-grid strong { color: var(--navy); font-size: 9px; }
.challenge-improvement-card { padding: 11px; border-radius: 11px; background: #f4f8fd; }
.challenge-improvement-card > div { display: flex; justify-content: space-between; color: #6c7f98; font-size: 8px; }
.challenge-improvement-card strong { color: #1c8e79; font-size: 15px; }
.challenge-improvement-card p { margin: 5px 0 0; color: #8b99aa; font-size: 7px; line-height: 1.45; }
.challenge-latest-card { margin: 0; }

@media (max-width: 1180px) {
  .workspace:has(.phase5-challenge-page) { grid-template-columns: 1fr; }
  .challenge-growth-panel { position: relative; top: auto; height: auto; min-height: 0; }
}
@media (max-width: 900px) {
  .phase5-scene-layout { grid-template-columns: 1fr; }
  .phase5-scene-list { position: relative; top: auto; width: 100%; height: auto; min-height: 0; }
  #sceneLibrary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .scene-category { min-width: 0; }
  .challenge-sign-answer { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  #sceneLibrary, .scenario-context-grid, .challenge-feedback-grid { grid-template-columns: 1fr; }
  .training-mode-tabs { display: grid; grid-template-columns: 1fr; }
  .challenge-sign-controls > div:first-child { grid-template-columns: 1fr; }
  .challenge-feedback-meta { align-items: flex-start; flex-direction: column; }
}

/* Phase 8 · product polish */
:root {
  --type-display: clamp(36px, 3.2vw, 42px);
  --type-section: clamp(24px, 2.1vw, 28px);
  --type-card: 18px;
  --type-body: 15px;
  --type-caption: 12px;
  --product-blue: #0f67f6;
  --product-cyan: #39b9d1;
  --product-navy: #082554;
  --product-radius: 20px;
  --product-shadow: 0 18px 48px rgba(20, 68, 132, .09);
  --product-shadow-hover: 0 22px 56px rgba(20, 92, 196, .15);
}

body { font-size: var(--type-body); background: radial-gradient(circle at 72% 0, #eef6ff 0, transparent 32%), #f6f9fd; }
.workspace { gap: 20px; padding: 24px; }
.central-workspace { isolation: isolate; }
.page { opacity: 0; transform: translateY(10px); transition: opacity .38s ease, transform .38s ease; }
.page.page-entered { opacity: 1; transform: none; }
.card,
.rights-policy-section,
.challenge-feedback,
.rights-core-card,
.task-card { border-color: #dce7f4; border-radius: var(--product-radius); box-shadow: var(--product-shadow); }
.card-head h2,
.rights-core-card h2,
.rights-section-heading h2,
.feedback-head h2 { font-size: var(--type-card); line-height: 1.35; }
.page-intro h1,
.rights-hero h1 { font-size: var(--type-display); line-height: 1.12; letter-spacing: -.045em; }
.page-intro p,
.rights-hero p { font-size: var(--type-body); line-height: 1.75; }
.section-title h2,
.welcome-block h1 { letter-spacing: -.045em; }
.section-title h2 { font-size: var(--type-section); }
.page-kicker,
.eyebrow { font-size: 11px; letter-spacing: .15em; }
.button { min-height: 44px; padding: 0 18px; border-radius: 13px; font-size: 15px; font-weight: 720; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.button:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(24, 105, 232, .18); }
.button:not(:disabled):active { transform: translateY(0) scale(.985); }
.button.primary { background: linear-gradient(135deg, #2c7af4, #0863ee); box-shadow: 0 9px 20px rgba(15, 103, 246, .22); }
.button:focus-visible,
button:focus-visible,
a:focus-visible { outline: 3px solid rgba(36, 126, 246, .3); outline-offset: 3px; }
.nav-item { transition: color .2s ease, background .2s ease, transform .2s ease; }
.nav-item:hover { transform: translateX(3px); }
.right-panel { border-color: #dbe6f3; box-shadow: var(--product-shadow); }
.product-ready-badge { display: inline-flex; align-items: center; gap: 7px; color: #4d6688; font-size: 12px; }
.product-ready-badge i { width: 7px; height: 7px; border-radius: 50%; background: #2bad91; box-shadow: 0 0 0 5px rgba(43, 173, 145, .1); }

/* Reusable process visualization */
.product-process { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 16px 0 2px; padding: 14px 10px; overflow: hidden; border: 1px solid #dce8f8; border-radius: 16px; background: linear-gradient(135deg, #fbfdff, #f1f7ff); }
.product-process::before { content: ''; position: absolute; left: 12%; right: 12%; top: 27px; height: 2px; background: #dce7f5; }
.product-process span { position: relative; z-index: 1; display: grid; justify-items: center; gap: 7px; color: #8a9aaf; text-align: center; }
.product-process i { width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid #d9e5f5; border-radius: 50%; color: #7890ad; background: #fff; font-size: 11px; font-style: normal; font-weight: 800; transition: .28s ease; }
.product-process b { font-size: 12px; font-weight: 680; transition: .28s ease; }
.product-process span.active,
.product-process span.done { color: var(--product-blue); }
.product-process span.active i,
.product-process span.done i { border-color: var(--product-blue); color: #fff; background: var(--product-blue); box-shadow: 0 0 0 7px rgba(15, 103, 246, .1); }
.product-process span.done i::after { content: '✓'; position: absolute; color: #fff; }
.product-process span.done i { color: transparent; }
.product-process.is-busy span.active i { animation: product-process-pulse 1.15s ease-in-out infinite; }
.product-process.is-complete { border-color: #bfe9df; background: linear-gradient(135deg, #fbfffe, #edf9f6); }

.task-card,
.policy-card,
.timeline-item,
.ai-result-card,
.feedback-detail-grid article,
.optimized-answer { opacity: 0; transform: translateY(12px); transition: opacity .42s ease var(--reveal-delay, 0ms), transform .42s ease var(--reveal-delay, 0ms), box-shadow .22s ease; }
.product-revealed { opacity: 1; transform: none; }
.is-typing-text::after { content: ''; display: inline-block; width: 2px; height: 1.05em; margin-left: 3px; vertical-align: -.12em; background: var(--product-blue); animation: typing-cursor .7s steps(1) infinite; }

/* Home */
.welcome-block { border: 1px solid #d9e7f8; background: linear-gradient(120deg, #fff 0%, #f4f9ff 54%, #eaf4ff 100%); box-shadow: var(--product-shadow); }
.welcome-block h1 { font-size: var(--type-display); }
.welcome-block p { font-size: var(--type-body); }
.task-card:hover { transform: translateY(-4px); border-color: #b8d2f4; box-shadow: var(--product-shadow-hover); }
.score-ring { filter: drop-shadow(0 12px 18px rgba(28, 105, 222, .12)); }
.week-chart .line,
.phase4-emotion-chart .line { transition: stroke-dashoffset 1s cubic-bezier(.22, .75, .25, 1); }
.week-chart .area,
.phase4-emotion-chart .area { opacity: 0; transition: opacity .8s ease .2s; }
.week-chart .area.area-drawn,
.phase4-emotion-chart .area.area-drawn { opacity: 1; }

/* Sign language connection */
.phase2-sign-page .camera-stage { border: 1px solid rgba(127, 174, 238, .4); box-shadow: inset 0 0 60px rgba(32, 106, 207, .12), var(--product-shadow); }
.phase2-sign-page .camera-stage::after { content: ''; position: absolute; z-index: 5; left: 4%; right: 4%; top: 16%; height: 2px; opacity: 0; pointer-events: none; background: linear-gradient(90deg, transparent, #46c9f0, #7cf4e3, transparent); box-shadow: 0 0 18px #48ccef; }
.phase2-sign-page .camera-stage[data-state='recording']::after,
.phase2-sign-page .camera-stage[data-state='processing']::after { opacity: .9; animation: sign-scan 2.2s ease-in-out infinite; }
.phase2-sign-page .camera-focus { animation: focus-breathe 2.4s ease-in-out infinite; }
.phase2-sign-page .wave-overlay i { transform-origin: center; animation: wave-idle 1.7s ease-in-out infinite alternate; animation-delay: calc(var(--wave-index, 1) * -30ms); }
.phase2-sign-page .camera-stage[data-state='recording'] .wave-overlay i { animation-duration: .48s; }
.phase2-sign-page #recognitionResultCard.has-result,
.phase2-sign-page #aiAnalysisSection[data-state='complete'] { border-color: #b8d8ff; box-shadow: 0 16px 38px rgba(21, 105, 225, .11); }
.phase2-sign-page button.is-speaking { position: relative; overflow: visible; color: var(--product-blue); }
.phase2-sign-page button.is-speaking::after { content: '▂▅▃▇▂'; margin-left: 8px; letter-spacing: 2px; animation: audio-wave .7s ease-in-out infinite alternate; }

/* Interview */
.phase3-interview-page .question-pane h2 { font-size: clamp(26px, 2.3vw, 34px); line-height: 1.35; letter-spacing: -.035em; }
.interview-analysis-process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 14px 0 8px; }
.interview-analysis-process span { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid #dce8f7; border-radius: 12px; color: #5f7592; background: #f8fbff; font-size: 12px; }
.interview-analysis-process i { width: 8px; height: 8px; border-radius: 50%; background: #2f81f7; box-shadow: 0 0 0 5px rgba(47, 129, 247, .1); animation: product-process-pulse 1.3s ease-in-out infinite; }
.phase3-score-grid strong { font-variant-numeric: tabular-nums; }
.phase3-score-grid i,
.phase3-growth-page .growth-progress i { transition: width .9s cubic-bezier(.22, .75, .25, 1); }
.phase3-interview-page [data-state='loading'] { position: relative; overflow: hidden; }
.phase3-interview-page [data-state='loading']::after { content: ''; position: absolute; inset: 0; transform: translateX(-110%); background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.7), transparent 70%); animation: result-shimmer 1.35s linear infinite; pointer-events: none; }

/* Companion */
.phase4-companion-page .phase4-companion-layout { grid-template-columns: minmax(0, 45fr) minmax(260px, 25fr); gap: 16px; }
.workspace:has(.phase4-companion-page) { grid-template-columns: minmax(640px, 7fr) minmax(270px, 3fr); }
.phase4-chat-card,
.phase4-emotion-column,
.workspace:has(.phase4-companion-page) .right-panel { min-height: 650px; }
.message.message-arrived { animation: message-arrive .38s cubic-bezier(.2, .8, .2, 1) both; }
.message.ai .message-avatar { animation: avatar-breathe 2.8s ease-in-out infinite; }
.phase4-mood-card { position: relative; overflow: hidden; }
.phase4-mood-card::before { content: ''; position: absolute; right: -36px; top: -36px; width: 116px; height: 116px; border-radius: 50%; background: conic-gradient(#42c7bd var(--mood-energy, 234deg), #e9f0f8 0); opacity: .2; mask: radial-gradient(circle, transparent 47%, #000 49%); -webkit-mask: radial-gradient(circle, transparent 47%, #000 49%); transition: background .6s ease; }
.phase4-companion-page .quick-topic,
.phase4-companion-page [data-companion-topic] { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.phase4-companion-page .companion-topics button,
.phase4-companion-page .chat-head p,
.phase4-companion-page .mood-card p,
.phase4-companion-page .emotion-legend,
.phase4-companion-page .analysis-source { font-size: 12px; }
.phase4-companion-page .quick-topic:hover,
.phase4-companion-page [data-companion-topic]:hover { transform: translateY(-2px); border-color: #9bc4fb; box-shadow: 0 9px 20px rgba(27, 101, 205, .1); }
.phase4-emotion-chart circle { transform-origin: center; animation: chart-point-in .35s ease both; }
.phase4-disclaimer,
.companion-disclaimer { font-size: 12px !important; color: #a0adbd !important; }

/* Challenge */
.phase5-challenge-page .scene-card,
.phase5-challenge-page .training-mode-tabs button { font-size: 12px; }
.phase5-challenge-page .scene-card strong,
.phase5-challenge-page .challenge-sign-controls p strong,
.phase5-challenge-page .challenge-feedback-grid strong { font-size: 13px; }
.phase5-challenge-page .scene-card small,
.phase5-challenge-page .challenge-sign-controls p span,
.phase5-challenge-page .challenge-sign-controls blockquote,
.phase5-challenge-page .challenge-feedback-grid p,
.phase5-challenge-page .challenge-feedback-grid blockquote { font-size: 12px; }
.phase5-challenge-page .challenge-sign-controls .button { min-height: 42px; font-size: 12px; }
.phase5-challenge-page .challenge-sign-answer { grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr); align-items: stretch; }
.phase5-challenge-page .challenge-sign-camera { min-height: 300px; }
#scenarioWorkspace.scene-transition { animation: scene-enter .42s cubic-bezier(.2, .75, .25, 1) both; }
.scene-card:hover { transform: translateX(3px); border-color: #a9caf4; box-shadow: 0 8px 18px rgba(21, 91, 184, .09); }

/* Rights */
.phase6-rights-hero { min-height: 250px; background: linear-gradient(120deg, #f7fbff, #e7f2ff); box-shadow: var(--product-shadow); }
.phase6-rights-page .rights-map-pin { animation: map-pin-float 2.5s ease-in-out infinite; }
.phase6-rights-page .map-ring { animation: map-pulse 2.4s ease-out infinite; }
.phase6-rights-page .map-ring.two { animation-delay: 1.1s; }
.phase6-rights-page .rights-core-card { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.phase6-rights-page .rights-core-card:hover { transform: translateY(-5px); border-color: #a8caf8; box-shadow: var(--product-shadow-hover); }
.phase6-rights-page .rights-policy-section[data-state='matching'] .rights-policy-results { opacity: .48; filter: saturate(.6); }
.phase6-rights-page .policy-card:hover { transform: translateY(-4px); border-color: #acd0fa; box-shadow: var(--product-shadow-hover); }
.phase6-rights-page .ai-explanation-enter { animation: explanation-enter .42s ease both; }
.demo-data-badge { font-size: 12px; }
.phase6-rights-page .rights-section-heading p,
.phase6-rights-page .rights-step-heading small,
.phase6-rights-page .rights-region-grid label,
.phase6-rights-page .rights-region-note,
.phase6-rights-page .policy-results-head small { font-size: 12px; line-height: 1.55; }
.phase6-rights-page .rights-step-heading strong,
.phase6-rights-page .policy-results-head strong { font-size: 14px; }
.phase6-rights-page .rights-region-grid select,
.phase6-rights-page .rights-need-options button,
.phase6-rights-page .policy-card,
.phase6-rights-page .rights-assistant { font-size: 13px; }
.phase6-rights-page .rights-step-heading > span { width: 30px; height: 30px; font-size: 11px; }
.phase6-rights-page .rights-region-grid select { height: 43px; }

/* Growth profile */
.phase7-growth-page .profile-banner { position: relative; overflow: hidden; min-height: 180px; padding: 28px 32px; color: #fff; border: 0; border-radius: 24px; background: linear-gradient(120deg, #4386ff 0%, #1168f5 45%, #0049ce 100%); box-shadow: 0 20px 44px rgba(18, 88, 211, .22); }
.phase7-growth-page .profile-banner::after { content: ''; position: absolute; right: -40px; bottom: -82px; width: 340px; height: 220px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.09) 0 20px, transparent 20px 46px); transform: rotate(-18deg); opacity: .55; }
.phase7-growth-page .profile-banner > * { position: relative; z-index: 1; }
.phase7-growth-page .profile-banner h1,
.phase7-growth-page .profile-banner p,
.phase7-growth-page .level-summary strong,
.phase7-growth-page .level-summary span,
.phase7-growth-page .level-summary small { color: #fff; }
.phase7-growth-page .profile-banner .page-kicker { color: #dbeaff; }
.phase7-growth-page .profile-banner .button.secondary { color: #0755d5; background: #fff; border-color: rgba(255,255,255,.8); box-shadow: 0 12px 24px rgba(0, 48, 142, .2); }
.phase7-growth-page .xp-track { background: rgba(255,255,255,.2); }
.phase7-growth-page .xp-track i { background: #fff; transition: width 1s cubic-bezier(.22, .75, .25, 1); }
.phase7-growth-page .ability-track i { transition: width .9s cubic-bezier(.22, .75, .25, 1); }
.radar-wrap.radar-drawing .radar-value { transform-box: fill-box; transform-origin: center; animation: radar-grow .8s cubic-bezier(.2, .75, .25, 1) both; }
.radar-wrap.radar-drawing circle { animation: radar-point .35s ease .65s both; }
.phase7-growth-page .timeline-item:hover { background: #f7faff; transform: translateX(4px); }
.growth-event-summary strong { font-variant-numeric: tabular-nums; }

@keyframes product-process-pulse { 50% { box-shadow: 0 0 0 11px rgba(15, 103, 246, 0); transform: scale(1.06); } }
@keyframes typing-cursor { 50% { opacity: 0; } }
@keyframes sign-scan { 0%, 100% { top: 14%; opacity: .25; } 50% { top: 84%; opacity: 1; } }
@keyframes focus-breathe { 50% { transform: scale(1.035); opacity: .68; } }
@keyframes wave-idle { to { transform: scaleY(.58); opacity: .62; } }
@keyframes audio-wave { to { transform: scaleY(.65); opacity: .55; } }
@keyframes result-shimmer { to { transform: translateX(110%); } }
@keyframes message-arrive { from { opacity: 0; transform: translateY(9px) scale(.985); } }
@keyframes avatar-breathe { 50% { transform: translateY(-2px); box-shadow: 0 0 0 6px rgba(43, 122, 236, .08); } }
@keyframes chart-point-in { from { opacity: 0; transform: scale(0); } }
@keyframes scene-enter { from { opacity: 0; transform: translateY(12px); } }
@keyframes map-pin-float { 50% { transform: translateY(-7px); filter: drop-shadow(0 12px 12px rgba(26, 103, 224, .25)); } }
@keyframes map-pulse { from { transform: scale(.7); opacity: .75; } to { transform: scale(1.45); opacity: 0; } }
@keyframes explanation-enter { from { opacity: 0; transform: translateY(8px); } }
@keyframes radar-grow { from { opacity: 0; transform: scale(.15); } }
@keyframes radar-point { from { opacity: 0; transform: scale(0); } }

@media (max-width: 1280px) {
  .workspace { gap: 16px; padding: 18px; }
  .phase4-companion-page .phase4-companion-layout { grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); }
  .phase5-challenge-page .challenge-sign-answer { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .product-process { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-process::before { display: none; }
  .phase4-companion-page .phase4-companion-layout { grid-template-columns: 1fr; }
  .phase4-chat-card, .phase4-emotion-column { min-height: 0; }
}
@media (max-width: 640px) {
  :root { --type-display: 31px; --type-section: 22px; --type-card: 17px; --type-body: 14px; }
  .button { font-size: 14px; }
  .interview-analysis-process { grid-template-columns: 1fr; }
  .phase7-growth-page .profile-banner { padding: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .page, .task-card, .policy-card, .timeline-item, .ai-result-card, .feedback-detail-grid article, .optimized-answer { opacity: 1; transform: none; }
}

/* Phase 9 · unified information hierarchy */
:root {
  --font-hero-title: 40px;
  --font-page-title: 32px;
  --font-section-title: 24px;
  --font-card-title: 18px;
  --font-body: 15px;
  --font-secondary: 13px;
  --font-caption: 12px;
  --font-tag: 12px;
  --font-button: 15px;
  --weight-title: 600;
  --weight-nav: 500;
  --weight-nav-active: 600;
  --type-display: var(--font-hero-title);
  --type-section: var(--font-section-title);
  --type-card: var(--font-card-title);
  --type-body: var(--font-body);
  --type-caption: var(--font-caption);
}

body { font-size: var(--font-body); }
.page-intro h1,
.phase6-rights-hero h1 { font-size: var(--font-page-title); font-weight: var(--weight-title); line-height: 1.25; }
.page-intro p,
.phase2-sign-page .page-intro p { font-size: 16px; line-height: 1.7; }
.section-title h2 { font-size: var(--font-section-title); font-weight: var(--weight-title); }
.card-head h2,
.rights-core-card h2,
.guide-card strong,
.understanding-grid strong,
.ai-result-card strong { font-size: var(--font-card-title); font-weight: var(--weight-title); }
.page p,
.card p { font-size: var(--font-body); }
.page-kicker,
.eyebrow,
.page small,
.right-panel small { font-size: var(--font-caption); }
.button,
.result-speak-button,
.ai-regenerate-button { font-size: var(--font-button); }
.live-pill,
.growth-pill,
.demo-data-badge,
.rights-ai-badge,
.mood-chip,
.difficulty,
.scene-keywords span,
#challengeSkillTags span { font-size: var(--font-tag); }

/* Global navigation and header */
.nav-item { height: 48px; gap: 13px; font-size: 16px; font-weight: var(--weight-nav); }
.nav-item.active { font-weight: var(--weight-nav-active); }
.nav-item .icon { width: 24px; height: 24px; }
.user-copy strong { font-size: 15px; font-weight: var(--weight-title); }
.user-copy small { font-size: var(--font-caption); }
.breadcrumb { font-size: var(--font-secondary); }
.breadcrumb strong { font-size: 15px; font-weight: var(--weight-title); }
.panel-heading { font-size: var(--font-card-title); font-weight: var(--weight-title); }
.right-panel { font-size: var(--font-secondary); }
.right-panel p { font-size: var(--font-secondary); line-height: 1.65; }
.right-panel .status-hero > strong { font-size: 22px; font-weight: var(--weight-title); }
.right-panel .status-hero > em { font-size: var(--font-secondary); }
.right-panel .status-hero p { font-size: var(--font-secondary); }
.right-panel .status-hero,
.right-panel .interview-readiness-card,
.right-panel .companion-today-card { text-wrap: pretty; }
.right-panel .interview-readiness-card > strong { font-size: 28px; font-weight: var(--weight-title); }
.right-panel .companion-today-card > strong { font-size: 22px; font-weight: var(--weight-title); }
.right-panel .ai-note strong,
.right-panel .companion-daily-advice strong { font-size: 16px; font-weight: var(--weight-title); }

/* Home */
.home-page .welcome-block h1 { font-size: var(--font-hero-title); font-weight: var(--weight-title); line-height: 1.12; }
.home-page .welcome-block p { font-size: 16px; }
.home-page .section-title h2 { font-size: 28px; font-weight: var(--weight-title); }
.home-page .section-title > div > span { font-size: var(--font-secondary); }
.home-page .task-copy h3 { font-size: var(--font-card-title); font-weight: var(--weight-title); }
.home-page .task-copy p { font-size: 14px; line-height: 1.6; }
.home-page .task-copy small { font-size: var(--font-caption); }
.home-page .score-ring strong,
.home-page .chart-head strong { font-size: 28px; font-weight: var(--weight-title); }
.home-page .growth-overview .card-head h2 { font-size: var(--font-section-title); }
.home-page .metric-list > div > span { font-size: var(--font-secondary); }
.home-page .metric-list > div > strong { font-size: 20px; }
.home-page .journey-strip strong { font-size: var(--font-card-title); font-weight: var(--weight-title); }
.home-page .journey-strip p { font-size: 14px; }

/* Sign connection */
.phase2-sign-page .product-process b { font-size: 14px; font-weight: var(--weight-title); }
.phase2-sign-page .capture-status,
.phase2-sign-page .frame-tip,
.phase2-sign-page .tool-status small { font-size: var(--font-secondary); }
.phase2-sign-page .tool-status strong { font-size: var(--font-card-title); font-weight: var(--weight-title); }
.phase2-sign-page .guide-card p { font-size: 14px; line-height: 1.65; }
.phase2-result-panel .result-card-label > span { font-size: var(--font-card-title); font-weight: var(--weight-title); }
.phase2-result-panel .recognition-result-card blockquote,
.phase2-result-panel .recognition-result-card.has-result blockquote,
.phase2-result-panel .ai-result-card p,
.phase2-result-panel .ai-result-card li,
.phase2-result-panel .ai-result-card blockquote { font-size: var(--font-body); line-height: 1.65; }
.phase2-result-panel .result-card-meta,
.phase2-result-panel .integration-progress-card small,
.phase2-result-panel .ai-result-actions small { font-size: var(--font-caption); }

/* Interview */
.phase3-interview-page .role-banner label > span,
.phase3-interview-page .role-banner select { font-size: 16px; }
.phase3-interview-page .role-tags span { font-size: var(--font-tag); }
.phase3-interview-page .interview-lifecycle span { font-size: 14px; font-weight: var(--weight-title); }
.phase3-interview-page .phase3-question-pane h2 { font-size: 26px; font-weight: var(--weight-title); line-height: 1.4; }
.phase3-interview-page .phase3-question-pane p,
.phase3-interview-page .phase3-question-pane small { font-size: var(--font-secondary); }
.phase3-interview-page .feedback-head h2 { font-size: var(--font-section-title); font-weight: var(--weight-title); }
.phase3-interview-page .interview-analysis-process span { font-size: 14px; }
.phase3-interview-page .phase3-score-grid > div > span { font-size: var(--font-secondary); }
.phase3-interview-page .phase3-score-grid strong { font-size: 28px; font-weight: var(--weight-title); }
.phase3-interview-page .feedback-detail-grid strong,
.phase3-interview-page .optimized-answer > div > span { font-size: var(--font-card-title); font-weight: var(--weight-title); }
.phase3-interview-page .feedback-detail-grid li,
.phase3-interview-page .feedback-detail-grid p,
.phase3-interview-page .optimized-answer blockquote { font-size: var(--font-body); line-height: 1.65; }

/* Companion */
.phase4-companion-page .message p,
.phase4-companion-page .chat-composer textarea { font-size: var(--font-body); line-height: 1.65; }
.phase4-companion-page .companion-topics button { font-size: 14px; }
.phase4-companion-page .chat-head strong { font-size: var(--font-card-title); font-weight: var(--weight-title); }
.phase4-companion-page .mood-card .card-head h2,
.phase4-companion-page .emotion-chart .card-head h2 { font-size: var(--font-section-title); }
.phase4-companion-page #currentMood,
.phase4-companion-page #companionTodayMood { font-size: 22px; font-weight: var(--weight-title); }
.phase4-companion-page #currentMoodSummary,
.phase4-companion-page #companionTodaySummary,
.phase4-companion-page .analysis-source { font-size: var(--font-secondary); line-height: 1.65; }
.phase4-companion-page .moment-suggestion strong { font-size: 16px; font-weight: var(--weight-title); }
.phase4-companion-page .moment-suggestion b { font-size: var(--font-secondary); }
.phase4-companion-page .companion-weak-disclaimer { font-size: var(--font-caption); }

/* Challenge hierarchy: library > category > scenario > description */
.phase5-challenge-page .scene-list-head > span { font-size: 20px; font-weight: var(--weight-title); }
.phase5-challenge-page .scene-list-head small { font-size: var(--font-caption); }
.phase5-challenge-page .scene-category-head strong { font-size: 18px; font-weight: var(--weight-title); }
.phase5-challenge-page .scene-category-head small { font-size: var(--font-caption); }
.phase5-challenge-page .scene-card strong { font-size: 16px; font-weight: var(--weight-title); line-height: 1.45; }
.phase5-challenge-page .scene-card small { font-size: 14px; line-height: 1.55; }
.phase5-challenge-page .phase5-scenario-header h2 { font-size: var(--font-section-title); font-weight: var(--weight-title); }
.phase5-challenge-page .phase5-scenario-header p { font-size: var(--font-secondary); }
.phase5-challenge-page .scenario-context-grid strong,
.phase5-challenge-page .challenge-feedback-grid strong { font-size: var(--font-card-title); font-weight: var(--weight-title); }
.phase5-challenge-page .scenario-context-grid p,
.phase5-challenge-page .challenge-feedback-grid p,
.phase5-challenge-page .challenge-feedback-grid blockquote { font-size: 14px; line-height: 1.65; }
.phase5-challenge-page .training-mode-tabs button,
.phase5-challenge-page .challenge-answer-tabs button { font-size: 14px; }
.phase5-challenge-page .feedback-head h2 { font-size: var(--font-section-title); }

/* Rights */
.phase6-rights-page .rights-hero h1 { font-size: var(--font-page-title); }
.phase6-rights-page .rights-hero p { font-size: 16px; }
.phase6-rights-page .rights-hero-tags span { font-size: var(--font-tag); }
.phase6-rights-page .rights-core-card h2,
.phase6-rights-page .policy-card h3 { font-size: var(--font-card-title); font-weight: var(--weight-title); }
.phase6-rights-page .rights-core-card p,
.phase6-rights-page .policy-card p { font-size: 14px; line-height: 1.65; }
.phase6-rights-page .rights-section-heading h2 { font-size: var(--font-section-title); font-weight: var(--weight-title); }
.phase6-rights-page .rights-region-grid label { font-size: var(--font-secondary); }
.phase6-rights-page .rights-region-grid select { font-size: var(--font-body); }
.phase6-rights-page .rights-need-options button,
.phase6-rights-page .policy-card [class*='tag'],
.phase6-rights-page .policy-card [class*='badge'] { font-size: var(--font-tag); }
.phase6-rights-page .product-process b { font-size: 14px; }

/* Growth profile */
.phase7-growth-page .profile-main h1 { font-size: 22px; font-weight: var(--weight-title); }
.phase7-growth-page .profile-main p { font-size: var(--font-secondary); }
.phase7-growth-page .level-summary strong { font-size: 28px; font-weight: var(--weight-title); }
.phase7-growth-page #profileGrowthValue { font-size: 20px; font-weight: var(--weight-title); }
.phase7-growth-page .level-summary small { font-size: var(--font-secondary); }
.phase7-growth-page .card-head h2 { font-size: var(--font-section-title); font-weight: var(--weight-title); }
.phase7-growth-page .ability-bars > div > div:first-child > span,
.phase7-growth-page .radar-label { font-size: 16px; }
.phase7-growth-page .ability-bars strong { font-size: 20px; font-weight: var(--weight-title); }
.phase7-growth-page .ability-insight p { font-size: var(--font-secondary); }
.phase7-growth-page .growth-event-summary small { font-size: var(--font-secondary); }
.phase7-growth-page .growth-event-summary strong { font-size: 20px; }
.phase7-growth-page .timeline-item h3 { font-size: 15px; font-weight: var(--weight-title); }
.phase7-growth-page .timeline-item p { font-size: var(--font-secondary); }
.phase7-growth-page .timeline-item > div > span,
.phase7-growth-page .timeline-item > em { font-size: var(--font-caption); }

@media (max-width: 1280px) {
  .phase5-challenge-page .phase5-scene-layout { grid-template-columns: 230px minmax(0, 1fr); }
  .phase7-growth-page .radar-label { font-size: 14px; }
}

@media (max-width: 640px) {
  :root {
    --font-hero-title: 34px;
    --font-page-title: 28px;
    --font-section-title: 22px;
  }
  .phase5-challenge-page .phase5-scene-layout { grid-template-columns: 1fr; }
}

/* Phase 10 · refined enterprise typography */
:root {
  --font-hero-title: 36px;
  --font-page-title: 28px;
  --font-section-title: 20px;
  --font-card-title: 18px;
  --font-body: 15px;
  --font-secondary: 13px;
  --font-caption: 12px;
  --font-tag: 12px;
  --font-button: 15px;
  --weight-title: 600;
}

.page h1,
.page h2,
.page h3 { font-weight: var(--weight-title); }
.page-intro h1,
.phase6-rights-hero h1 { font-size: var(--font-page-title); line-height: 1.3; }
.page-intro p,
.phase2-sign-page .page-intro p,
.phase6-rights-hero p { font-size: var(--font-body); }
.section-title h2,
.rights-section-heading h2,
.feedback-head h2 { font-size: var(--font-section-title); }
.central-workspace .card h2,
.central-workspace .card h3,
.rights-core-card h2,
.guide-card strong,
.understanding-grid strong,
.ai-result-card strong { font-size: var(--font-card-title); }
.central-workspace .card p,
.rights-core-card p,
.guide-card p { font-size: 14px; line-height: 1.65; }
.button,
.result-speak-button,
.ai-regenerate-button { font-size: var(--font-button); }
.page-kicker,
.eyebrow { font-size: 11px; }
.live-pill,
.growth-pill,
.demo-data-badge,
.rights-ai-badge,
.mood-chip,
.difficulty,
.scene-keywords span,
#challengeSkillTags span { font-size: var(--font-tag); }

/* Navigation remains compact and consistent */
.nav-item { height: 48px; font-size: 16px; font-weight: 500; }
.nav-item.active { font-size: 16px; font-weight: 600; }
.nav-item .icon { width: 23px; height: 23px; }

/* Auxiliary panels must remain below the main workspace weight */
.right-panel .panel-heading { font-size: 20px; font-weight: var(--weight-title); }
.right-panel .status-hero > strong,
.right-panel .companion-today-card > strong { font-size: 24px; font-weight: var(--weight-title); }
.right-panel .interview-readiness-card > strong { font-size: 24px; font-weight: var(--weight-title); }
.right-panel .ai-note strong,
.right-panel .companion-daily-advice strong { font-size: var(--font-card-title); }
.right-panel p { font-size: var(--font-secondary); }
.right-panel small { font-size: var(--font-caption); }

/* Home */
.home-page .welcome-block h1 { font-size: 36px; font-weight: var(--weight-title); line-height: 1.25; }
.home-page .welcome-block .page-kicker { font-size: 14px; }
.home-page .welcome-block p { font-size: 15px; }
.home-page .section-title h2 { font-size: 24px; }
.home-page .task-copy h3 { font-size: 18px; }
.home-page .task-copy p { font-size: 14px; }
.home-page .growth-overview .card-head h2 { font-size: 18px; }
.home-page .score-ring strong,
.home-page .chart-head strong,
.home-page .metric-list > div > strong { font-size: 20px; }
.home-page .journey-strip strong { font-size: 18px; }
.home-page .journey-strip p { font-size: 14px; }

/* Sign connection */
.phase2-sign-page .page-intro h1 { font-size: 28px; }
.phase2-sign-page .page-intro p { font-size: 15px; }
.phase2-sign-page .guide-card strong { font-size: 18px; }
.phase2-sign-page .guide-card p { font-size: 14px; }
.phase2-sign-page .product-process b { font-size: 14px; }
.phase2-result-panel .result-card-label > span,
.phase2-result-panel .ai-result-card strong { font-size: 18px; }
.phase2-result-panel .recognition-result-card blockquote,
.phase2-result-panel .recognition-result-card.has-result blockquote,
.phase2-result-panel .ai-result-card p,
.phase2-result-panel .ai-result-card li,
.phase2-result-panel .ai-result-card blockquote { font-size: 14px; }

/* Interview */
.phase3-interview-page .page-intro h1 { font-size: 32px; line-height: 1.25; }
.phase3-interview-page .page-intro p { font-size: 15px; }
.phase3-interview-page .role-banner label > span,
.phase3-interview-page .role-tags span { font-size: 13px; }
.phase3-interview-page .role-banner select { font-size: 15px; }
.phase3-interview-page .role-banner .button.primary { font-size: 16px; }
.phase3-interview-page .interview-lifecycle span { font-size: 13px; }
.phase3-interview-page .phase3-question-pane h2 { font-size: 24px; line-height: 1.45; }
.phase3-interview-page .phase3-question-pane p,
.phase3-interview-page .phase3-question-pane small { font-size: 13px; }
.phase3-interview-page .answer-understanding .feedback-head h2 { font-size: 20px; }
.phase3-interview-page .answer-understanding .understanding-grid strong { font-size: 18px; }
.phase3-interview-page .answer-understanding .understanding-grid p,
.phase3-interview-page .answer-understanding .understanding-grid li { font-size: 14px; line-height: 1.65; }
.phase3-interview-page .phase3-feedback-card .feedback-head h2 { font-size: 22px; }
.phase3-interview-page .interview-analysis-process span { font-size: 18px; }
.phase3-interview-page .phase3-score-grid > div > span { font-size: 14px; }
.phase3-interview-page .phase3-score-grid strong { font-size: 20px; }
.phase3-interview-page .feedback-detail-grid strong,
.phase3-interview-page .optimized-answer > div > span { font-size: 18px; }
.phase3-interview-page .feedback-detail-grid li,
.phase3-interview-page .feedback-detail-grid p,
.phase3-interview-page .optimized-answer blockquote { font-size: 14px; }

/* Companion */
.phase4-companion-page .page-intro h1 { font-size: 28px; }
.phase4-companion-page .page-intro p { font-size: 15px; }
.phase4-companion-page .chat-head strong,
.phase4-companion-page .mood-card .card-head h2,
.phase4-companion-page .emotion-chart .card-head h2,
.phase4-companion-page .moment-suggestion strong { font-size: 18px; }
.phase4-companion-page .message p,
.phase4-companion-page .chat-composer textarea { font-size: 14px; }
.phase4-companion-page .companion-topics button { font-size: 13px; }
.phase4-companion-page #currentMood,
.phase4-companion-page #companionTodayMood { font-size: 20px; }
.phase4-companion-page #currentMoodSummary,
.phase4-companion-page #companionTodaySummary,
.phase4-companion-page .moment-suggestion b { font-size: 13px; }

/* Challenge hierarchy remains strict */
.phase5-challenge-page .page-intro h1 { font-size: 28px; }
.phase5-challenge-page .scene-list-head > span { font-size: 20px; }
.phase5-challenge-page .scene-category-head strong { font-size: 18px; }
.phase5-challenge-page .scene-card strong,
.phase5-challenge-page .phase5-scenario-header h2 { font-size: 16px; }
.phase5-challenge-page .scene-card small,
.phase5-challenge-page .phase5-scenario-header p,
.phase5-challenge-page .scenario-context-grid p,
.phase5-challenge-page .challenge-feedback-grid p,
.phase5-challenge-page .challenge-feedback-grid blockquote { font-size: 14px; }
.phase5-challenge-page .scenario-context-grid strong,
.phase5-challenge-page .challenge-feedback-grid strong { font-size: 18px; }
.phase5-challenge-page .feedback-head h2 { font-size: 20px; }

/* Rights */
.phase6-rights-page .rights-hero h1 { font-size: 28px; }
.phase6-rights-page .rights-hero p { font-size: 15px; }
.phase6-rights-page .rights-section-heading h2 { font-size: 20px; }
.phase6-rights-page .rights-core-card h2,
.phase6-rights-page .policy-card h3 { font-size: 18px; }
.phase6-rights-page .rights-core-card p,
.phase6-rights-page .policy-card p { font-size: 14px; }
.phase6-rights-page .rights-region-grid select { font-size: 14px; }
.phase6-rights-page .rights-need-options button,
.phase6-rights-page .rights-hero-tags span { font-size: 12px; }

/* Growth */
.phase7-growth-page .profile-main h1 { font-size: 20px; }
.phase7-growth-page .level-summary strong { font-size: 24px; }
.phase7-growth-page #profileGrowthValue,
.phase7-growth-page .growth-event-summary strong,
.phase7-growth-page .ability-bars strong { font-size: 20px; }
.phase7-growth-page .card-head h2 { font-size: 18px; }
.phase7-growth-page .ability-bars > div > div:first-child > span,
.phase7-growth-page .radar-label { font-size: 14px; }
.phase7-growth-page .timeline-item h3 { font-size: 15px; }
.phase7-growth-page .timeline-item p,
.phase7-growth-page .ability-insight p { font-size: 13px; }

@media (max-width: 640px) {
  :root {
    --font-hero-title: 32px;
    --font-page-title: 26px;
    --font-section-title: 20px;
  }
  .home-page .welcome-block h1 { font-size: 32px; }
  .phase3-interview-page .page-intro h1 { font-size: 28px; }
}

/* Brand logo image */
.brand-mark { width: 71px; height: 38px; background: none; box-shadow: none; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
