.jun-kokugo-app {
  --jun-bg: #f4f7fc;
  --jun-card: #ffffff;
  --jun-text: #182233;
  --jun-muted: #59677a;
  --jun-accent: #2457d6;
  --jun-accent-dark: #183f9e;
  --jun-accent-soft: #eaf0ff;
  --jun-border: #dbe4f0;
  --jun-success: #16794d;
  --jun-success-soft: #e9f7f0;
  --jun-warning: #9b6511;
  --jun-warning-soft: #fff6dc;
  --jun-danger: #a13b35;
  --jun-danger-soft: #fff0ee;
  box-sizing: border-box;
  color: var(--jun-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  margin: 20px auto;
  max-width: 960px;
  width: 100%;
}

.jun-kokugo-app *,
.jun-kokugo-app *::before,
.jun-kokugo-app *::after { box-sizing: inherit; }

.jun-kokugo-app button,
.jun-kokugo-app input { font: inherit; }

.jun-kokugo-app button:focus-visible,
.jun-kokugo-app input:focus-visible,
.jun-source-overlay button:focus-visible {
  outline: 3px solid #f4b942;
  outline-offset: 3px;
}

.jun-kokugo-app--dark {
  --jun-bg: #151a24;
  --jun-card: #202736;
  --jun-text: #f4f7fb;
  --jun-muted: #c0cad8;
  --jun-accent: #96b4ff;
  --jun-accent-dark: #bdd0ff;
  --jun-accent-soft: #2b3858;
  --jun-border: #3d485a;
  --jun-success: #78d9ac;
  --jun-success-soft: #203e32;
  --jun-warning: #ffd27d;
  --jun-warning-soft: #483a1e;
  --jun-danger: #ffaaa3;
  --jun-danger-soft: #4a2927;
}

.jun-kokugo-loading,
.jun-busy-overlay > div {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: center;
  min-height: 180px;
}

.jun-kokugo-spinner {
  animation: jun-spin .8s linear infinite;
  border: 4px solid var(--jun-border);
  border-radius: 50%;
  border-top-color: var(--jun-accent);
  display: inline-block;
  height: 34px;
  width: 34px;
}

@keyframes jun-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .jun-kokugo-spinner { animation-duration: 1.8s; }
  .jun-btn, .jun-option, .jun-review-item { transition: none !important; }
}

.jun-kokugo-hero,
.jun-kokugo-card,
.jun-kokugo-question-card,
.jun-kokugo-review {
  background: var(--jun-card);
  border: 1px solid var(--jun-border);
  border-radius: 22px;
  box-shadow: 0 15px 45px rgba(29, 56, 110, .09);
}

.jun-kokugo-hero {
  background: linear-gradient(145deg, var(--jun-card), var(--jun-bg));
  padding: clamp(26px, 5vw, 48px);
}

.jun-kokugo-eyebrow {
  color: var(--jun-accent);
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .06em;
  margin: 0 0 8px;
}

.jun-kokugo-hero h2,
.jun-kokugo-card h2,
.jun-kokugo-question-card h2,
.jun-kokugo-review h2 {
  color: var(--jun-text);
  line-height: 1.35;
  margin: 0 0 16px;
}

.jun-kokugo-hero h2 { font-size: clamp(1.75rem, 4vw, 2.65rem); }
.jun-kokugo-lead { color: var(--jun-muted); font-size: 1.06rem; margin: 0; }

.jun-kokugo-meta {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.jun-kokugo-meta > div {
  align-items: baseline;
  background: var(--jun-card);
  border: 1px solid var(--jun-border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  padding: 15px 18px;
}

.jun-kokugo-meta strong { color: var(--jun-accent); font-size: 1.7rem; line-height: 1.1; }
.jun-kokugo-meta span { color: var(--jun-muted); font-size: .84rem; }

.jun-kokugo-start-card { margin-top: 18px; padding: clamp(24px, 4vw, 38px); }
.jun-kokugo-start-card h3 { font-size: 1.3rem; margin: 0 0 14px; }

.jun-kokugo-check-list { list-style: none; margin: 0; padding: 0; }
.jun-kokugo-check-list li { border-bottom: 1px solid var(--jun-border); padding: 9px 0 9px 30px; position: relative; }
.jun-kokugo-check-list li::before { color: var(--jun-success); content: "✓"; font-weight: 800; left: 4px; position: absolute; }

.jun-kokugo-privacy {
  background: var(--jun-accent-soft);
  border-radius: 14px;
  margin-top: 22px;
  padding: 16px;
}

.jun-kokugo-consent { align-items: flex-start; cursor: pointer; display: flex; gap: 12px; }
.jun-kokugo-consent input { height: 21px; margin-top: 4px; width: 21px; }

.jun-kokugo-resume {
  align-items: center;
  background: var(--jun-warning-soft);
  border-left: 5px solid var(--jun-warning);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding: 13px 16px;
}

.jun-kokugo-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.jun-kokugo-actions--start { margin-top: 22px; }

.jun-btn {
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  min-height: 48px;
  padding: 11px 20px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.jun-btn:not(:disabled):hover { transform: translateY(-1px); }
.jun-btn:disabled { cursor: not-allowed; opacity: .45; }
.jun-btn--primary { background: var(--jun-accent); color: #fff; }
.jun-btn--primary:not(:disabled):hover { background: var(--jun-accent-dark); box-shadow: 0 7px 18px rgba(36,87,214,.22); }
.jun-btn--secondary { background: var(--jun-card); border-color: var(--jun-border); color: var(--jun-text); }

.jun-kokugo-small { color: var(--jun-muted); font-size: .86rem; margin: 16px 0 0; }

.jun-kokugo-exam-shell { background: var(--jun-bg); border-radius: 22px; padding: 14px; }

.jun-kokugo-topbar {
  background: var(--jun-card);
  border: 1px solid var(--jun-border);
  border-radius: 16px;
  margin-bottom: 14px;
  padding: 14px 18px;
  position: sticky;
  top: 10px;
  z-index: 30;
}

.jun-kokugo-topbar__row,
.jun-kokugo-topbar__sub {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.jun-kokugo-topbar__row > div:first-child { display: flex; flex-direction: column; }
.jun-kokugo-topbar__row span,
.jun-kokugo-topbar__sub { color: var(--jun-muted); font-size: .82rem; }
.jun-kokugo-timer { font-size: 1.15rem; font-variant-numeric: tabular-nums; font-weight: 800; }
.jun-kokugo-timer.is-over { color: var(--jun-warning); }

.jun-kokugo-progress { background: var(--jun-border); border-radius: 999px; height: 7px; margin: 10px 0 7px; overflow: hidden; }
.jun-kokugo-progress span { background: var(--jun-accent); border-radius: 999px; display: block; height: 100%; transition: width .25s ease; }

.jun-kokugo-question-card { min-height: 450px; padding: clamp(22px, 4vw, 40px); }
.jun-kokugo-question-card:focus { outline: none; }

.jun-kokugo-question-head { align-items: center; border-bottom: 1px solid var(--jun-border); display: flex; justify-content: space-between; margin-bottom: 22px; padding-bottom: 16px; }
.jun-kokugo-section-label { color: var(--jun-accent); font-size: .82rem; font-weight: 800; }
.jun-kokugo-question-head h2 { font-size: 1.55rem; margin: 2px 0 0; }
.jun-kokugo-points { background: var(--jun-accent-soft); border-radius: 999px; color: var(--jun-accent-dark); font-size: .86rem; font-weight: 800; padding: 5px 12px; }
.jun-kokugo-instruction { font-size: 1.06rem; font-weight: 700; margin: 0 0 18px; }

.jun-kokugo-context {
  background: var(--jun-bg);
  border-left: 5px solid var(--jun-accent);
  border-radius: 8px;
  font-size: 1.05rem;
  margin-bottom: 22px;
  padding: 17px 19px;
}
.jun-mark { font-weight: 800; text-decoration: underline; text-decoration-color: #e6a800; text-decoration-thickness: 3px; text-underline-offset: 4px; }

.jun-options { display: grid; gap: 12px; }
.jun-options--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jun-options--tap { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.jun-option {
  align-items: flex-start;
  background: var(--jun-card);
  border: 2px solid var(--jun-border);
  border-radius: 13px;
  cursor: pointer;
  display: flex;
  gap: 11px;
  min-height: 56px;
  padding: 13px 15px;
  transition: border-color .15s ease, background .15s ease, transform .12s ease;
}

.jun-option:hover { border-color: var(--jun-accent); transform: translateY(-1px); }
.jun-option.is-selected { background: var(--jun-accent-soft); border-color: var(--jun-accent); }
.jun-option input { flex: 0 0 auto; height: 20px; margin: 4px 0 0; width: 20px; }
.jun-option__label { color: var(--jun-accent); flex: 0 0 auto; font-weight: 800; min-width: 1.5em; }
.jun-option__text { color: var(--jun-text); }
.jun-option__text small { color: var(--jun-muted); }
.jun-options--cards .jun-option { align-items: stretch; flex-direction: column; }
.jun-options--tap .jun-option { align-items: center; justify-content: center; text-align: center; }
.jun-options--tap .jun-option input { position: absolute; opacity: 0; }
.jun-options--tap .jun-option__label { font-size: 1.35rem; min-width: auto; }
.jun-options--tap .jun-option__text { display: none; }

.jun-kokugo-multipart { display: grid; gap: 22px; }
.jun-kokugo-subquestion { border-top: 1px dashed var(--jun-border); padding-top: 18px; }
.jun-kokugo-subquestion:first-child { border-top: 0; padding-top: 0; }
.jun-kokugo-subquestion h3 { color: var(--jun-accent); font-size: 1.06rem; margin: 0 0 4px; }
.jun-kokugo-subquestion > p { margin: 0 0 14px; }

.jun-tap-sentence {
  background: var(--jun-bg);
  border-radius: 12px;
  font-size: 1.1rem;
  line-height: 2.35;
  padding: 18px;
}
.jun-word-token { background: transparent; border: 0; border-bottom: 3px solid var(--jun-border); border-radius: 3px; color: var(--jun-text); cursor: pointer; padding: 2px 5px; }
.jun-word-token:hover, .jun-word-token.is-selected { background: var(--jun-accent-soft); border-bottom-color: var(--jun-accent); color: var(--jun-accent-dark); font-weight: 800; }

.jun-order { background: var(--jun-bg); border-radius: 14px; padding: 17px; }
.jun-order__label { color: var(--jun-muted); font-size: .82rem; font-weight: 800; margin: 0 0 7px; }
.jun-order__selected, .jun-order__available { display: flex; flex-wrap: wrap; gap: 9px; min-height: 55px; }
.jun-order__selected { background: var(--jun-card); border: 2px dashed var(--jun-border); border-radius: 11px; margin-bottom: 15px; padding: 10px; }
.jun-order__empty { color: var(--jun-muted); padding: 6px; }
.jun-order-token { background: var(--jun-card); border: 1px solid var(--jun-border); border-radius: 10px; color: var(--jun-text); cursor: pointer; padding: 8px 13px; }
.jun-order-token.is-selected { border-color: var(--jun-accent); }
.jun-order-token span { background: var(--jun-accent); border-radius: 50%; color: #fff; display: inline-grid; font-size: .72rem; height: 21px; margin-right: 7px; place-items: center; width: 21px; }
.jun-link-button { background: transparent; border: 0; color: var(--jun-accent); cursor: pointer; font-weight: 800; margin-top: 10px; padding: 5px 0; text-decoration: underline; }

.jun-kokugo-question-tools { align-items: center; border-top: 1px solid var(--jun-border); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 26px; padding-top: 18px; }
.jun-flag-button, .jun-source-button { background: var(--jun-card); border: 1px solid var(--jun-border); border-radius: 10px; color: var(--jun-text); cursor: pointer; font-weight: 700; min-height: 44px; padding: 8px 13px; }
.jun-flag-button.is-active { background: var(--jun-warning-soft); border-color: var(--jun-warning); color: var(--jun-warning); }
.jun-source-button { background: var(--jun-accent-soft); border-color: var(--jun-accent); color: var(--jun-accent-dark); }

.jun-kokugo-bottom-nav { display: grid; gap: 10px; grid-template-columns: 1fr auto 1fr; margin-top: 14px; }
.jun-kokugo-bottom-nav .jun-btn:last-child { justify-self: stretch; }

.jun-sync-status { align-items: center; color: var(--jun-muted); display: flex; font-size: .78rem; gap: 7px; justify-content: center; min-height: 32px; padding-top: 8px; }
.jun-sync-dot { background: var(--jun-success); border-radius: 50%; height: 8px; width: 8px; }
.jun-sync-status.is-saving .jun-sync-dot { background: var(--jun-warning); }
.jun-sync-status.is-offline .jun-sync-dot { background: var(--jun-danger); }

.jun-kokugo-review { padding: clamp(22px, 4vw, 38px); }
.jun-kokugo-review:focus { outline: none; }
.jun-kokugo-review__summary { border-left: 5px solid var(--jun-success); border-radius: 11px; margin-bottom: 24px; padding: 15px 18px; }
.jun-kokugo-review__summary.is-complete { background: var(--jun-success-soft); }
.jun-kokugo-review__summary.has-unanswered { background: var(--jun-danger-soft); border-left-color: var(--jun-danger); }
.jun-kokugo-review__summary h2 { font-size: 1.3rem; margin: 0 0 4px; }
.jun-kokugo-review__summary p { margin: 0; }
.jun-review-section { border-top: 1px solid var(--jun-border); padding: 20px 0; }
.jun-review-section h3 { font-size: 1.04rem; margin: 0 0 12px; }
.jun-review-grid { display: grid; gap: 9px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.jun-review-item { background: var(--jun-card); border: 1px solid var(--jun-border); border-radius: 11px; color: var(--jun-text); cursor: pointer; display: flex; flex-direction: column; min-height: 88px; padding: 11px; text-align: left; }
.jun-review-item.is-answered { border-color: var(--jun-success); }
.jun-review-item.is-unanswered { background: var(--jun-danger-soft); border-color: var(--jun-danger); }
.jun-review-item.is-partial { background: var(--jun-warning-soft); border-color: var(--jun-warning); }
.jun-review-item__number { font-weight: 800; }
.jun-review-item__status { color: var(--jun-muted); font-size: .78rem; }
.jun-review-item__flag { color: var(--jun-warning); font-size: .76rem; font-weight: 800; margin-top: auto; }
.jun-kokugo-review__finish { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; margin-top: 22px; }

.jun-kokugo-complete { padding: clamp(28px, 5vw, 48px); text-align: center; }
.jun-complete-icon { background: var(--jun-success-soft); border-radius: 50%; color: var(--jun-success); display: grid; font-size: 2.2rem; font-weight: 900; height: 76px; margin: 0 auto 15px; place-items: center; width: 76px; }
.jun-complete-data { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); margin: 25px 0; }
.jun-complete-data div { background: var(--jun-bg); border-radius: 12px; padding: 12px; }
.jun-complete-data dt { color: var(--jun-muted); font-size: .78rem; }
.jun-complete-data dd { font-size: 1.08rem; font-weight: 800; margin: 2px 0 0; }

.jun-kokugo-notice { border-radius: 12px; margin: 16px 0; padding: 14px 16px; }
.jun-kokugo-notice--warning { background: var(--jun-warning-soft); color: var(--jun-warning); }
.jun-kokugo-notice--info { background: var(--jun-accent-soft); color: var(--jun-accent-dark); }

.jun-source-is-open { overflow: hidden; }
.jun-source-overlay { background: rgba(8, 18, 38, .68); inset: 0; padding: 18px; position: fixed; z-index: 99999; }
.jun-source-dialog { background: var(--jun-card, #fff); border-radius: 18px; color: var(--jun-text, #182233); display: flex; flex-direction: column; height: calc(100vh - 36px); margin: 0 auto; max-width: 920px; overflow: hidden; }
.jun-source-dialog > header { align-items: center; border-bottom: 1px solid var(--jun-border, #dbe4f0); display: flex; justify-content: space-between; padding: 15px 20px; }
.jun-source-dialog > header span { color: var(--jun-muted, #59677a); font-size: .78rem; }
.jun-source-dialog > header h2 { font-size: 1.25rem; line-height: 1.3; margin: 1px 0 0; }
.jun-source-close { background: transparent; border: 0; color: inherit; cursor: pointer; font-size: 2rem; line-height: 1; padding: 5px 10px; }
.jun-source-content { flex: 1; font-size: 17px; line-height: 1.9; overflow: auto; padding: clamp(18px, 4vw, 38px); scroll-behavior: smooth; }
.jun-source-dialog > footer { border-top: 1px solid var(--jun-border, #dbe4f0); padding: 12px 18px; text-align: right; }
.jun-source-heading { background: var(--jun-accent-soft, #eaf0ff); border-left: 5px solid var(--jun-accent, #2457d6); font-size: 1.05rem; margin: 30px 0 14px; padding: 9px 13px; }
.jun-source-heading:first-child { margin-top: 0; }
.jun-source-paragraph { display: grid; grid-template-columns: auto 1fr; scroll-margin-top: 20px; }
.jun-source-paragraph p { margin: 0 0 1.25em; }
.jun-source-number { color: var(--jun-accent, #2457d6); font-weight: 800; padding-right: 7px; }
.jun-source-content blockquote { background: var(--jun-bg, #f4f7fc); border-left: 5px solid var(--jun-accent, #2457d6); margin: 14px 0; padding: 15px 20px; }
.jun-email { background: var(--jun-bg, #f4f7fc); border: 1px solid var(--jun-border, #dbe4f0); border-radius: 12px; padding: 17px; }
.jun-email p { margin: 10px 0 0; }
.jun-source-note { background: #fff8df; border-radius: 12px; color: #4f3b09; margin: 16px 0 26px; padding: 14px 17px; }
.jun-source-note ul { columns: 2; margin: 8px 0 0; padding-left: 22px; }
.jun-table-wrap { overflow-x: auto; }
.jun-table-wrap table { border-collapse: collapse; min-width: 700px; width: 100%; }
.jun-table-wrap th, .jun-table-wrap td { border: 1px solid var(--jun-border, #dbe4f0); padding: 10px 12px; text-align: left; vertical-align: top; }
.jun-table-wrap th { background: var(--jun-accent-soft, #eaf0ff); }

.jun-busy-overlay { background: rgba(8, 18, 38, .68); display: grid; inset: 0; place-items: center; position: fixed; z-index: 100000; }
.jun-busy-overlay > div { background: #fff; border-radius: 15px; color: #182233; min-height: auto; padding: 22px 28px; }
.jun-kokugo-toast { background: #182233; border-radius: 12px; bottom: 22px; box-shadow: 0 10px 35px rgba(0,0,0,.25); color: #fff; left: 50%; max-width: min(90vw, 650px); padding: 14px 18px; position: fixed; transform: translateX(-50%); z-index: 100001; }

@media (max-width: 720px) {
  .jun-kokugo-app { font-size: 16px; margin: 10px auto; }
  .jun-kokugo-hero, .jun-kokugo-card, .jun-kokugo-question-card, .jun-kokugo-review { border-radius: 16px; }
  .jun-kokugo-meta { grid-template-columns: 1fr; }
  .jun-kokugo-meta > div { align-items: center; flex-direction: row; gap: 8px; }
  .jun-kokugo-resume { align-items: flex-start; flex-direction: column; }
  .jun-kokugo-actions--start .jun-btn { width: 100%; }
  .jun-kokugo-exam-shell { border-radius: 0; margin-left: -10px; margin-right: -10px; padding: 8px; }
  .jun-kokugo-topbar { border-radius: 12px; padding: 10px 12px; top: 4px; }
  .jun-kokugo-question-card { min-height: 420px; padding: 20px 16px; }
  .jun-options--cards, .jun-options--tap { grid-template-columns: 1fr; }
  .jun-options--tap { grid-template-columns: repeat(3, 1fr); }
  .jun-kokugo-bottom-nav { bottom: 0; grid-template-columns: 1fr 74px 1fr; padding-bottom: max(6px, env(safe-area-inset-bottom)); position: sticky; z-index: 25; }
  .jun-kokugo-bottom-nav .jun-btn { font-size: .88rem; padding-left: 9px; padding-right: 9px; }
  .jun-kokugo-question-tools { align-items: stretch; flex-direction: column; }
  .jun-review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jun-kokugo-review__finish .jun-btn { width: 100%; }
  .jun-complete-data { grid-template-columns: 1fr; }
  .jun-source-overlay { padding: 0; }
  .jun-source-dialog { border-radius: 0; height: 100vh; max-width: none; }
  .jun-source-content { font-size: 16px; padding: 18px 15px 36px; }
  .jun-source-note ul { columns: 1; }
  .jun-table-wrap { overflow: visible; }
  .jun-table-wrap table, .jun-table-wrap thead, .jun-table-wrap tbody, .jun-table-wrap tr, .jun-table-wrap td { display: block; min-width: 0; width: 100%; }
  .jun-table-wrap thead { display: none; }
  .jun-table-wrap tr { border: 1px solid var(--jun-border, #dbe4f0); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
  .jun-table-wrap td { border: 0; border-bottom: 1px solid var(--jun-border, #dbe4f0); display: grid; gap: 8px; grid-template-columns: 7.5em 1fr; }
  .jun-table-wrap td:last-child { border-bottom: 0; }
  .jun-table-wrap td::before { color: var(--jun-muted, #59677a); content: attr(data-label); font-size: .78rem; font-weight: 800; }
}

@media (max-width: 390px) {
  .jun-options--tap { grid-template-columns: 1fr; }
  .jun-kokugo-topbar__row > div:first-child span { display: none; }
  .jun-review-grid { grid-template-columns: 1fr 1fr; }
}

/* Phase 3 result report */
.jun-result-shell{display:grid;gap:24px;max-width:1080px;margin:0 auto;padding:8px 0 32px}
.jun-result-score-card,.jun-result-section{background:#fff;border:1px solid #dce5ef;border-radius:20px;box-shadow:0 10px 30px rgba(27,52,79,.08)}
.jun-result-score-card{padding:clamp(24px,5vw,48px);text-align:center;background:linear-gradient(145deg,#f8fbff,#fff)}
.jun-result-score{display:flex;align-items:flex-end;justify-content:center;gap:8px;margin:12px 0}
.jun-result-score strong{font-size:clamp(64px,13vw,112px);line-height:.9;letter-spacing:-.05em;color:#174d78}
.jun-result-score span{font-size:clamp(20px,4vw,30px);font-weight:700;color:#4b6072;padding-bottom:8px}
.jun-result-score-card h2{font-size:clamp(24px,4.8vw,38px);margin:18px auto 12px;max-width:820px}
.jun-result-score-card>p:not(.jun-kokugo-eyebrow):not(.jun-result-time-comment){max-width:820px;margin:0 auto;line-height:1.9}
.jun-result-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:760px;margin:24px auto 16px}
.jun-result-meta div{padding:13px;background:#fff;border:1px solid #e0e7ee;border-radius:12px}
.jun-result-meta dt{font-size:13px;color:#617282}.jun-result-meta dd{margin:4px 0 0;font-weight:800}
.jun-result-time-comment{max-width:800px;margin:14px auto 0;padding:14px 16px;border-radius:12px;background:#edf6fb;text-align:left;line-height:1.7}
.jun-result-section{padding:clamp(20px,4vw,36px)}
.jun-result-section>h2{margin:0 0 20px;font-size:clamp(22px,4vw,30px);border-left:6px solid #2d739e;padding-left:12px}
.jun-result-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:14px}
.jun-result-card{border:1px solid #dde5ec;border-radius:15px;padding:18px;background:#fafcfe}
.jun-result-card.is-stable{border-top:5px solid #277b57}.jun-result-card.is-mostly{border-top:5px solid #347da5}.jun-result-card.is-check{border-top:5px solid #b88322}.jun-result-card.is-priority{border-top:5px solid #b95b50}.jun-result-card.is-reference{border-top:5px solid #8795a1}
.jun-result-card__head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.jun-result-card__head h3{margin:0;font-size:18px}.jun-result-card__head strong{white-space:nowrap;color:#174d78}
.jun-result-card__status{display:flex;justify-content:space-between;gap:10px;font-size:13px;margin:10px 0;color:#526576}.jun-result-card__status span:first-child{font-weight:800}.jun-result-card p{margin:0;line-height:1.75}
.jun-result-highlight-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px}.jun-result-highlight-grid article{display:flex;gap:14px;padding:18px;border-radius:15px;background:#edf8f2;border:1px solid #cce8d8}.jun-result-highlight-grid article>span{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#277b57;color:#fff;font-weight:900;flex:0 0 auto}.jun-result-highlight-grid h3,.jun-result-highlight-grid p{margin:0}.jun-result-highlight-grid p{margin-top:7px;line-height:1.7}
.jun-priority-list{list-style:none;margin:0;padding:0;display:grid;gap:14px}.jun-priority-list li{display:flex;gap:16px;padding:20px;border-radius:16px;background:#fff8e8;border:1px solid #ecdcae}.jun-priority-list li>span{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#b57c13;color:#fff;font-weight:900;flex:0 0 auto}.jun-priority-list h3,.jun-priority-list p{margin:0}.jun-priority-list p{margin-top:7px;line-height:1.75}
.jun-skill-list{display:grid;gap:15px}.jun-skill-list article{padding:18px;border:1px solid #dfe6ec;border-radius:14px}.jun-skill-list__head{display:flex;justify-content:space-between;gap:12px}.jun-skill-list__head h3{margin:0;font-size:17px}.jun-skill-list__head span{font-weight:800;white-space:nowrap}.jun-skill-meter{height:9px;background:#e8edf1;border-radius:10px;overflow:hidden;margin:12px 0}.jun-skill-meter span{display:block;height:100%;background:#347da5;border-radius:10px}.jun-skill-list p{margin:0;line-height:1.65}
.jun-tendency-list{display:grid;gap:12px}.jun-tendency-list article{padding:17px 18px;border-left:5px solid #b88322;background:#fff9ec;border-radius:8px 14px 14px 8px}.jun-tendency-list h3,.jun-tendency-list p{margin:0}.jun-tendency-list p{margin-top:6px;line-height:1.7}.jun-result-empty{padding:18px;background:#f4f7f9;border-radius:12px;line-height:1.7}
.jun-review-result-section{margin-top:24px}.jun-review-result-section>h3{font-size:19px;margin:0 0 10px}.jun-answer-review{border:1px solid #dfe6ec;border-radius:12px;margin:9px 0;background:#fff;overflow:hidden}.jun-answer-review summary{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:15px 16px;cursor:pointer;font-weight:800}.jun-answer-review.is-correct summary{border-left:5px solid #277b57}.jun-answer-review.is-partial summary{border-left:5px solid #b88322}.jun-answer-review.is-incorrect summary,.jun-answer-review.is-unanswered summary{border-left:5px solid #b95b50}.jun-answer-review__body{padding:5px 20px 22px;border-top:1px solid #edf0f3}.jun-answer-review__prompt{font-weight:700}.jun-answer-review dl{display:grid;gap:8px;margin:14px 0}.jun-answer-review dl div{display:grid;grid-template-columns:110px 1fr;gap:10px;padding:9px;background:#f6f8fa;border-radius:8px}.jun-answer-review dt{font-weight:800}.jun-answer-review dd{margin:0}.jun-answer-review h4{margin:17px 0 4px}.jun-answer-review p{line-height:1.75}
.jun-parent-summary,.jun-limitations{padding:20px;border-radius:14px;background:#f5f2fb;border:1px solid #e3dbf1}.jun-parent-summary p,.jun-limitations p{margin:0;line-height:1.8}.jun-limitations ul{margin:14px 0 0;padding-left:1.4em;columns:2}.jun-next-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px}.jun-next-steps article{padding:18px;border:1px solid #dde5ec;border-radius:14px;background:#fafcfe}.jun-next-steps h3,.jun-next-steps p{margin:0}.jun-next-steps p{margin-top:7px;line-height:1.75}.jun-result-actions{text-align:center;padding:8px}
@media(max-width:700px){.jun-result-meta{grid-template-columns:1fr}.jun-result-card__head,.jun-skill-list__head{align-items:flex-start}.jun-limitations ul{columns:1}.jun-answer-review summary{align-items:flex-start;flex-direction:column}.jun-answer-review dl div{grid-template-columns:1fr;gap:3px}.jun-result-section{border-radius:15px}.jun-result-score-card{border-radius:16px}}

/* Phase 4: result email and consultation */
.jun-contact-actions { display: grid; gap: 16px; }
.jun-contact-panel { background: var(--jun-card); border: 1px solid var(--jun-border); border-radius: 14px; overflow: hidden; }
.jun-contact-panel summary { cursor: pointer; font-weight: 800; padding: 17px 19px; }
.jun-contact-panel[open] summary { border-bottom: 1px solid var(--jun-border); }
.jun-contact-form { display: grid; gap: 15px; padding: 20px; }
.jun-contact-form > p { margin: 0; }
.jun-contact-form label { color: var(--jun-text); display: grid; font-weight: 700; gap: 7px; }
.jun-contact-form input[type="text"],
.jun-contact-form input[type="email"],
.jun-contact-form textarea { background: var(--jun-card); border: 1px solid var(--jun-border); border-radius: 10px; box-sizing: border-box; color: var(--jun-text); font: inherit; padding: 11px 12px; width: 100%; }
.jun-contact-form textarea { resize: vertical; }
.jun-contact-form input:focus,
.jun-contact-form textarea:focus { border-color: var(--jun-accent); box-shadow: 0 0 0 3px var(--jun-accent-soft); outline: 0; }
.jun-contact-consent { align-items: flex-start; display: grid !important; font-size: .9rem; font-weight: 500 !important; gap: 9px !important; grid-template-columns: auto 1fr; }
.jun-contact-consent input { margin-top: .2em; }
.jun-honeypot { left: -10000px !important; position: absolute !important; top: auto !important; height: 1px !important; overflow: hidden !important; width: 1px !important; }
.jun-form-status { border-radius: 9px; font-weight: 700; min-height: 1.5em; padding: 9px 11px; }
.jun-form-status:empty { padding: 0; }
.jun-form-status.is-working { background: var(--jun-warning-soft); }
.jun-form-status.is-success { background: var(--jun-success-soft); color: var(--jun-success); }
.jun-form-status.is-error { background: var(--jun-danger-soft); color: var(--jun-danger); }
