/*
 * Beauty system v1.0
 * Beauty here means calm hierarchy, readable rhythm and unmistakable action.
 * This file is loaded last so the visual language stays consistent without
 * changing the application's calculation or navigation behaviour.
 */
:root {
  --beauty-ink: #10281f;
  --beauty-forest: #0c3b2b;
  --beauty-forest-strong: #072a1e;
  --beauty-lime: #d9f36a;
  --beauty-paper: #fbfaf4;
  --beauty-surface: #fffef9;
  --beauty-soft: #f1f5ed;
  --beauty-line: #d3ddd3;
  --beauty-muted: #5d7066;
  --beauty-radius-sm: 12px;
  --beauty-radius: 18px;
  --beauty-radius-lg: 24px;
  --beauty-shadow: 0 14px 38px rgba(7, 42, 30, .09);
  --beauty-shadow-soft: 0 6px 18px rgba(7, 42, 30, .06);
}

/* Shared details: a quieter page and a consistent interaction rhythm. */
body {
  color: var(--beauty-ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

:where(button, a, input, select, summary) {
  transition: color .16s ease, background-color .16s ease, border-color .16s ease,
    box-shadow .16s ease, transform .16s ease;
}

:where(.primary-button, .secondary-button, .upload-button) {
  min-height: 44px;
  border-radius: var(--beauty-radius-sm);
}

.primary-button {
  background: var(--beauty-forest);
  border-color: var(--beauty-forest);
  box-shadow: 0 3px 0 #06281d;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: #155841;
  border-color: #155841;
  box-shadow: 0 4px 0 #06281d, 0 10px 20px rgba(7, 42, 30, .13);
  transform: translateY(-1px);
}

/* GX Navigator: one calm frame, one readable condition row. */
.topbar {
  border-bottom: 1px solid rgba(18, 58, 43, .12);
  background: rgba(251, 250, 244, .97);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9);
  backdrop-filter: blur(18px);
}

.terminal-brand {
  background: linear-gradient(145deg, #08291e, #0c3829);
}

.screen-location-mark {
  color: var(--beauty-forest);
  background: #edf3e7;
  border: 1px solid #dde7d8;
  border-radius: var(--beauty-radius-sm);
}

.screen-location b {
  color: var(--beauty-ink);
}

.language-button {
  color: var(--beauty-ink);
  border: 1px solid #c6d3c8;
  border-radius: var(--beauty-radius-sm);
  background: var(--beauty-surface);
  box-shadow: none;
}

.language-button:hover,
.language-button:focus-visible {
  border-color: #73917d;
  background: #f3f7ed;
}

.sidebar {
  background:
    radial-gradient(circle at 15% 6%, rgba(217, 243, 106, .08), transparent 180px),
    linear-gradient(180deg, #08291e, #061d16);
  border-right: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-role-switcher .current-role-button {
  border-color: rgba(255, 255, 255, .14);
  border-radius: var(--beauty-radius-sm);
  background: rgba(255, 255, 255, .055);
}

.persona-menu,
body[data-persona="farmer"] .persona-menu {
  border-color: #d6e0d3;
  border-radius: var(--beauty-radius);
  background: #f7f9f2;
  box-shadow: none;
}

.persona-menu header h2 {
  color: var(--beauty-ink);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-weight: 800;
  letter-spacing: -.02em;
}

.persona-primary-nav {
  gap: 7px;
}

.persona-primary-nav button {
  border-color: #d6dfd5;
  border-radius: var(--beauty-radius-sm);
  background: var(--beauty-surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9);
}

.persona-primary-nav button:hover,
.persona-primary-nav button:focus-visible {
  border-color: #73917d;
  background: #f7faef;
  box-shadow: var(--beauty-shadow-soft);
  transform: translateY(-1px);
}

.persona-primary-nav button.active {
  border-color: var(--beauty-forest);
  background: var(--beauty-forest);
  box-shadow: 0 7px 18px rgba(7, 42, 30, .2);
}

.persona-task-progress {
  border-color: #d8e2ca;
  border-radius: var(--beauty-radius-sm);
  background: #fbfdf6;
  box-shadow: inset 0 1px 0 #fff;
}

.persona-task-progress [data-persona-next] {
  border: 1px solid #bdd64d;
  border-radius: var(--beauty-radius-sm);
  background: var(--beauty-lime);
  box-shadow: 0 3px 0 #9caf3f;
}

.sidebar-more,
.sidebar-learning {
  border-color: rgba(255, 255, 255, .12);
  border-radius: var(--beauty-radius-sm);
  background: rgba(255, 255, 255, .04);
}

.sidebar-more > summary:hover,
.sidebar-learning > summary:hover {
  background: rgba(255, 255, 255, .055);
}

.context-bar {
  border-bottom: 1px solid var(--beauty-line);
  background: rgba(246, 248, 242, .97);
  box-shadow: 0 8px 24px rgba(7, 42, 30, .045);
  backdrop-filter: blur(16px);
}

.context-title p,
.context-meta span {
  color: #65776d;
  letter-spacing: .12em;
}

.context-title b {
  color: var(--beauty-ink);
  font-weight: 850;
}

.context-bar select,
.context-bar input,
.player-context select,
.player-context input {
  color: var(--beauty-ink);
  border: 1px solid #c7d3c8;
  border-radius: 10px;
  background: var(--beauty-surface);
  box-shadow: inset 0 1px 0 #fff;
}

.context-bar :is(select, input):focus,
.player-context :is(select, input):focus {
  border-color: #356f55;
  box-shadow: 0 0 0 3px rgba(53, 111, 85, .16);
  outline: none;
}

.crop-first-launch {
  border-color: #cbd8cd;
  border-radius: var(--beauty-radius-lg);
  background:
    radial-gradient(circle at 8% 5%, rgba(217, 243, 106, .22), transparent 25%),
    linear-gradient(135deg, #fffef9, #f2f6ed);
  box-shadow: var(--beauty-shadow);
}

.crop-first-launch h1 {
  color: var(--beauty-forest-strong);
  font-weight: 820;
  letter-spacing: -.04em;
}

.crop-first-badge {
  color: var(--beauty-forest-strong);
  background: var(--beauty-lime);
}

.crop-first-form > div {
  border-color: #2d6c51;
  border-radius: 16px;
  box-shadow: 0 7px 20px rgba(7, 42, 30, .08);
}

.crop-first-form button {
  border-radius: var(--beauty-radius-sm);
  background: var(--beauty-forest);
}

.crop-first-art img {
  border-color: #d9dfd6;
  border-radius: var(--beauty-radius);
  box-shadow: none;
}

.crop-first-examples button {
  border-color: #ced9d0;
  background: rgba(255, 255, 255, .82);
}

.crop-first-examples button:hover,
.crop-first-examples button:focus-visible {
  border-color: #75917e;
  background: #f6f9ef;
  box-shadow: var(--beauty-shadow-soft);
}

/* Keep help visible without covering the work. It expands only on request. */
.right-help-menu {
  right: 14px;
  bottom: 16px;
  width: 132px;
}

.right-help-menu details {
  border-color: rgba(18, 62, 44, .18);
  border-radius: 15px;
  box-shadow: 0 10px 32px rgba(7, 27, 20, .15);
}

.right-help-menu details:not([open]) summary {
  min-height: 50px;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 7px;
  padding: 7px 9px;
}

.right-help-menu details:not([open]) summary small,
.right-help-menu details:not([open]) summary > i {
  display: none;
}

.right-help-menu details[open] {
  width: 226px;
  margin-left: -94px;
}

.right-help-menu summary b {
  font-size: 14px;
}

.right-help-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--beauty-lime);
}

.right-help-panel :is(button, a) {
  border-radius: 10px;
  background: #f4f7f0;
}

/* General Navigator surfaces: fewer competing shadows, stronger grouping. */
.workspace :where(.panel, .funding-card, .model-form, .mini-chart, .practice-planner,
  .role-home, .player-mission, .guide-hero, .project-desk-hero) {
  border-radius: var(--beauty-radius);
}

.workspace :where(.panel, .funding-card, .mini-chart) {
  border-color: var(--beauty-line);
  box-shadow: 0 3px 12px rgba(7, 42, 30, .035);
}

/* View changes move focus to the heading for screen readers. Keep that
   programmatic focus calm; the active menu and page title already show place. */
.view-header h1:focus {
  outline: none;
}

/* Game title: let the scene inspire, while keeping the setup in the first view. */
.game-topbar {
  min-height: 60px;
  padding: 5px clamp(16px, 3vw, 42px);
  background: rgba(7, 35, 25, .97);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .18);
}

.game-brand > span:first-child {
  width: 40px;
  height: 40px;
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .08);
}

.game-topbar .navigator-workspace-exit {
  min-height: 46px !important;
  padding: 6px 12px !important;
  color: #f4f7f2 !important;
  border: 1px solid rgba(255, 255, 255, .3) !important;
  border-radius: 13px !important;
  background: rgba(255, 255, 255, .07) !important;
  box-shadow: none !important;
}

.game-topbar .navigator-workspace-exit:hover,
.game-topbar .navigator-workspace-exit:focus-visible {
  color: var(--beauty-forest-strong) !important;
  border-color: var(--beauty-lime) !important;
  background: var(--beauty-lime) !important;
}

.game-topbar .navigator-workspace-exit small {
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
}

.game-topbar .navigator-workspace-exit:hover small,
.game-topbar .navigator-workspace-exit:focus-visible small {
  color: #36513f;
}

#languageToggle {
  color: var(--beauty-forest-strong);
  border: 1px solid #bed34e;
  background: var(--beauty-lime);
  box-shadow: none;
}

.hero-media {
  height: clamp(360px, 47vh, 430px);
  margin-top: 12px;
  border-radius: var(--beauty-radius-lg);
  box-shadow: var(--beauty-shadow);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(5, 29, 20, .92) 0%, rgba(5, 29, 20, .72) 38%, rgba(5, 29, 20, .06) 72%),
    linear-gradient(0deg, rgba(5, 29, 20, .56), transparent 44%);
}

.hero-copy {
  width: min(630px, 90vw);
  padding: clamp(34px, 5vh, 52px) clamp(24px, 4vw, 58px);
}

.hero-copy h1 {
  max-width: 600px;
  font-size: clamp(39px, 4.7vw, 58px);
  line-height: 1.15;
  letter-spacing: -.045em;
  text-shadow: 0 3px 16px rgba(0, 0, 0, .24);
}

.hero-lead {
  margin: 15px 0 17px;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.65;
}

.hero-facts {
  gap: 7px;
}

.hero-facts > span {
  min-width: 92px;
  padding: 7px 10px;
  border-radius: var(--beauty-radius-sm);
  background: rgba(255, 255, 255, .09);
}

.hero-facts b {
  font-size: 22px;
}

.premise-strip {
  margin-top: -24px;
  border-color: #d7ded5;
  border-radius: var(--beauty-radius);
  background: var(--beauty-surface);
  box-shadow: 0 12px 30px rgba(7, 42, 30, .1);
}

.premise-strip article {
  min-height: 64px;
  padding: 12px 16px;
}

.journey-setup {
  margin-top: 38px;
}

.journey-setup > header {
  margin-bottom: 18px;
}

.journey-setup > header h2 {
  color: var(--beauty-forest-strong);
  font-size: clamp(29px, 3.4vw, 42px);
  letter-spacing: -.035em;
}

.setup-mode-card,
.default-setup-panel {
  border-color: var(--beauty-line);
  border-radius: var(--beauty-radius);
  background: var(--beauty-surface);
  box-shadow: none;
}

.setup-mode-card:hover,
.setup-mode-card:focus-visible {
  border-color: #76927f;
  box-shadow: var(--beauty-shadow-soft);
  transform: translateY(-1px);
}

.start-game-button {
  color: #fff;
  border-radius: 15px;
  background: var(--beauty-forest);
  box-shadow: 0 4px 0 #05261b, 0 10px 22px rgba(7, 42, 30, .14);
}

/* Game play: scores are calm information; the current decision is the action. */
.play-screen {
  background: #f1f3ed;
}

.play-header {
  top: 60px;
  min-height: 58px;
  background: rgba(9, 48, 35, .97);
  border-top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 4px 18px rgba(4, 27, 19, .12);
}

.play-section-nav {
  margin: 7px auto;
  gap: 7px;
}

.play-section-nav a {
  min-height: 40px;
  border-color: #d2dcd2;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
}

.play-section-nav .game-project-action {
  min-height: 40px;
  border-color: #2c6b50;
  background: var(--beauty-lime);
  box-shadow: 0 2px 0 #2c6b50;
}

#regionalDashboard,
#decisionStage,
#peopleDock,
#decisionLab {
  scroll-margin-top: 144px;
}

.regional-dashboard {
  border-color: var(--beauty-line);
  border-radius: var(--beauty-radius);
  background: #edf2e9;
  box-shadow: none;
}

.regional-dashboard .score-console article,
.regional-dashboard .pressure-deck article,
.regional-dashboard .nature-automation,
.decision-card,
.action-card {
  border-color: var(--beauty-line);
  box-shadow: none;
}

.regional-dashboard .score-console article {
  background: var(--beauty-surface);
}

.regional-dashboard .pressure-deck article {
  background: rgba(255, 254, 249, .94);
}

.regional-dashboard .pressure-deck small {
  display: block;
}

.regional-dashboard .pressure-deck b {
  display: flex;
  margin: 1px 0 0;
  align-items: baseline;
  gap: 3px;
  white-space: nowrap;
}

.regional-dashboard .pressure-deck .metric-unit {
  margin-left: 2px;
  font-size: 12px;
}

.regional-dashboard-basis {
  border-color: #d5ded2;
  background: rgba(255, 255, 255, .68);
}

.regional-dashboard .nature-automation {
  overflow: hidden;
  border-radius: 14px;
}

.regional-dashboard .system-card {
  background: var(--beauty-surface);
}

.chapter-banner {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--beauty-radius);
  background: linear-gradient(120deg, #082b1f, #164b37);
  box-shadow: var(--beauty-shadow-soft);
}

.decision-card {
  overflow: hidden;
  border-radius: var(--beauty-radius);
  background: var(--beauty-surface);
}

.decision-card > header {
  background: #fffef9;
}

.people-decision-dock {
  border-color: var(--beauty-line);
  background: linear-gradient(135deg, #fbf8ed, #edf3e9);
}

.action-options {
  gap: 12px;
  background: #fafbf7;
}

.action-card {
  border-radius: var(--beauty-radius);
  background: var(--beauty-surface);
}

.action-card:hover,
.action-card:focus-within {
  border-color: #7b9985;
  box-shadow: var(--beauty-shadow-soft);
  transform: translateY(-1px);
}

.choice-impact {
  border: 1px solid #dce7d5;
  background: #f1f6eb;
}

.action-card-buttons a {
  color: #245b43;
  border-color: #c9d7cb;
  background: #f7f9f5;
  box-shadow: none;
}

.action-card-buttons a:hover,
.action-card-buttons a:focus-visible {
  border-color: #6f8f7a;
  background: #eef4ea;
}

/* A chosen plan is affirmative, never visually confused with danger. */
.action-card-buttons button {
  color: #fff;
  border: 2px solid #0b4d37;
  background: linear-gradient(145deg, #176346, #0c4a35);
  box-shadow: 0 4px 0 #073425, 0 8px 16px rgba(7, 52, 37, .16);
}

.action-card-buttons button:hover,
.action-card-buttons button:focus-visible {
  border-color: #0a432f;
  background: linear-gradient(145deg, #207454, #11583f);
  box-shadow: 0 5px 0 #073425, 0 11px 22px rgba(7, 52, 37, .19);
  transform: translateY(-1px);
}

.action-card-buttons button:active {
  box-shadow: 0 1px 0 #073425, 0 4px 8px rgba(7, 52, 37, .15);
  transform: translateY(3px);
}

.action-card-buttons button:focus-visible {
  outline: 4px solid var(--beauty-lime) !important;
  outline-offset: 3px;
}

.decision-foot {
  background: var(--beauty-forest-strong);
}

/* Short laptop screens: preserve meaning while revealing the next action. */
@media (min-width: 801px) {
  :root {
    --sidebar: 252px;
    --topbar: 64px;
  }

  .context-bar {
    min-height: 68px;
    padding: 8px 24px;
    grid-template-columns: minmax(180px, 1fr) minmax(145px, .72fr) minmax(175px, .85fr) minmax(135px, .62fr) minmax(150px, .68fr);
    gap: 12px;
  }

  .context-bar label {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    font-size: 14px !important;
    letter-spacing: 0;
  }

  .context-bar select,
  .context-bar input {
    height: 44px;
    min-height: 44px !important;
    margin-top: 0;
    font-size: 15px !important;
  }

  .context-bar .scale-control {
    min-width: 0;
  }

  .context-bar .scale-control span {
    top: 12px;
  }
}

@media (min-width: 801px) and (max-width: 1360px) {
  .context-bar {
    grid-template-columns: minmax(190px, 1fr) minmax(150px, .72fr) minmax(175px, .85fr) minmax(135px, .62fr);
  }

  .context-meta {
    display: none;
  }
}

@media (min-width: 801px) and (max-width: 1100px) {
  :root {
    --sidebar: 238px;
  }

  .context-bar {
    padding-inline: 18px;
    grid-template-columns: minmax(170px, 1fr) minmax(132px, .7fr) minmax(150px, .8fr) minmax(120px, .6fr);
    gap: 8px;
  }

  .context-title p {
    display: none;
  }

  .context-bar label {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (min-width: 901px) and (max-height: 820px) {
  .crop-first-launch {
    margin-top: 14px;
    padding: 25px 28px;
  }

  .crop-first-launch h1 {
    font-size: clamp(34px, 3.25vw, 45px);
  }

  .game-topbar {
    min-height: 60px;
  }

  .hero-media {
    height: 360px;
  }

  .hero-copy {
    width: min(720px, 92vw);
    padding-top: 36px;
    padding-right: 30px;
    padding-bottom: 36px;
  }

  .hero-copy h1 {
    max-width: 650px;
    font-size: clamp(40px, 4vw, 50px);
  }

  .journey-setup {
    margin-top: 34px;
  }

  .regional-dashboard .score-console article {
    min-height: 68px;
    padding: 7px 10px;
  }

  .regional-dashboard .score-console article > p {
    margin-top: 2px;
    line-height: 1.3;
  }

  .regional-dashboard .pressure-deck article {
    min-height: 54px;
    padding: 6px 8px;
  }

  .regional-dashboard-basis {
    padding: 6px 9px;
  }

  .regional-dashboard .nature-automation > header {
    min-height: 38px;
    padding: 5px 10px;
  }

  .regional-dashboard .system-card {
    min-height: 78px;
    padding: 8px;
  }

  .regional-dashboard .system-card p {
    display: none;
  }

  .regional-dashboard .technology-portfolio {
    padding: 7px;
  }
}

@media (max-width: 800px) {
  .right-help-menu {
    right: 10px;
    bottom: 84px;
  }

  .hero-media {
    height: auto;
    min-height: 500px;
  }

  .hero-copy {
    min-height: 500px;
    padding: 210px 20px 34px;
  }

  .game-topbar .navigator-workspace-exit {
    display: none !important;
  }

  .regional-dashboard .pressure-deck b {
    display: block;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(button, a, input, select, summary) {
    transition: none !important;
  }
}

/* v1.1 — a calm, truthful first-time guide. */
.guide-view-v2 {
  width: min(1160px, 100%);
  margin-inline: auto;
}

.guide-hero-v2 {
  min-height: 0;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 26px;
  padding: 30px 34px;
  border: 0;
  border-radius: 20px;
  box-shadow: none;
}

.guide-hero-v2::before {
  width: 280px;
  height: 280px;
  left: -150px;
  top: -190px;
}

.guide-hero-v2 .guide-hero-copy h1 {
  max-width: 760px;
  margin-bottom: 10px;
  font-size: clamp(36px, 3.35vw, 48px);
  line-height: 1.2;
}

.guide-hero-v2 .guide-hero-copy > p:not(.terminal-kicker) {
  max-width: 720px;
  margin: 0;
  color: #d5e2da;
  font-size: 16px;
  line-height: 1.75;
}

.guide-hero-v2 .guide-actions {
  margin-top: 20px;
}

.guide-hero-v2 .guide-actions :is(button, a) {
  min-height: 48px;
  border-radius: 11px;
  padding-inline: 18px;
  font-size: 15px;
}

.guide-hero-v2 .guide-actions .primary-button {
  gap: 18px;
  justify-content: space-between;
  background: var(--beauty-lime);
  color: var(--beauty-forest-strong);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .13);
}

.guide-hero-v2 .guide-actions .primary-button #guidePrimaryLabel {
  color: var(--beauty-forest-strong);
}

.guide-role-change {
  border: 1px solid rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .05);
  color: #fff;
  font-weight: 850;
}

.guide-role-change:hover,
.guide-role-change:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, .12);
}

.guide-current-card {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 16px;
  background: rgba(255, 255, 255, .09);
  padding: 20px;
}

.guide-current-label {
  color: var(--beauty-lime);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
}

.guide-current-card > small {
  margin-top: 13px;
  color: #c2d2c8;
  font-size: 14px;
  line-height: 1.6;
}

.guide-current-card .guide-role-summary {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
  border-radius: 0;
  background: transparent;
  padding: 14px 0 0;
  color: #fff;
}

.guide-current-card .guide-role-summary .ui-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--beauty-lime);
  color: var(--beauty-forest-strong);
  padding: 9px;
}

.guide-current-card .guide-role-summary b,
.guide-current-card .guide-role-summary p {
  display: block;
}

.guide-current-card .guide-role-summary b {
  font-size: 17px;
}

.guide-current-card .guide-role-summary p {
  margin: 3px 0 0;
  color: #c9d8cf;
  font-size: 14px;
  line-height: 1.5;
}

.guide-three-steps,
.guide-screen-map,
.guide-footer-help {
  margin-top: 14px;
  border: 1px solid var(--beauty-line);
  border-radius: 16px;
  background: #fff;
  padding: 22px 24px;
  box-shadow: none;
}

.guide-three-steps > header {
  display: flex;
  gap: 14px;
  align-items: center;
}

.guide-three-steps > header > span {
  display: grid;
  place-items: center;
  min-width: 68px;
  min-height: 44px;
  border-radius: 12px;
  background: var(--beauty-forest);
  color: var(--beauty-lime);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: .08em;
}

.guide-three-steps h2,
.guide-screen-map h2,
.guide-reading-lanes h2 {
  margin: 0;
  font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  font-size: 23px;
  line-height: 1.35;
  letter-spacing: -.02em;
}

.guide-three-steps header p {
  margin: 3px 0 0;
  color: var(--beauty-muted);
  font-size: 14px;
}

.guide-three-steps ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.guide-three-steps li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  border: 1px solid #d7dfd6;
  border-radius: 12px;
  background: #f8faf5;
  padding: 15px;
}

.guide-three-steps li > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--beauty-lime);
  color: var(--beauty-forest-strong);
  font-size: 16px;
  font-weight: 950;
}

.guide-three-steps li b {
  display: block;
  color: var(--beauty-ink);
  font-size: 15px;
  line-height: 1.45;
}

.guide-three-steps li p {
  margin: 5px 0 0;
  color: var(--beauty-muted);
  font-size: 14px;
  line-height: 1.65;
}

.guide-screen-map > header {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: baseline;
}

.guide-screen-map > header p {
  margin: 0;
  color: #bb5a39;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .1em;
}

.guide-screen-map > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--beauty-line);
  border-radius: 12px;
}

.guide-screen-map article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 16px;
  background: #fff;
}

.guide-screen-map article + article {
  border-left: 1px solid var(--beauty-line);
}

.guide-screen-map article > span {
  color: var(--beauty-green);
  font-size: 20px;
  font-weight: 950;
}

.guide-screen-map article b {
  display: block;
  font-size: 15px;
}

.guide-screen-map article p {
  margin: 4px 0 0;
  color: var(--beauty-muted);
  font-size: 14px;
  line-height: 1.6;
}

.guide-reading-lanes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.guide-reading-lanes article {
  border: 1px solid var(--beauty-line);
  border-radius: 16px;
  padding: 20px 22px;
}

.guide-do-lane {
  background: #e8f2e4;
}

.guide-read-lane {
  background: #f0f2ef;
}

.guide-reading-lanes article > span {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 8px;
  color: var(--beauty-green);
  font-size: 14px;
  letter-spacing: .08em;
}

.guide-do-lane article > span i,
.guide-reading-lanes i {
  color: var(--beauty-green);
  font-style: normal;
}

.guide-reading-lanes p {
  margin: 7px 0 0;
  color: var(--beauty-muted);
  font-size: 14px;
  line-height: 1.65;
}

.guide-footer-help {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}

.guide-footer-help b,
.guide-footer-help p {
  display: block;
}

.guide-footer-help > div > b {
  color: var(--beauty-green);
  font-size: 14px;
  letter-spacing: .06em;
}

.guide-footer-help p {
  margin: 4px 0 0;
  color: var(--beauty-muted);
  font-size: 14px;
}

.guide-footer-help > a {
  min-height: 46px;
  display: inline-flex;
  gap: 14px;
  align-items: center;
  border: 1px solid #9eafa3;
  border-radius: 11px;
  padding: 0 16px;
  background: #fff;
  color: var(--beauty-forest);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.guide-footer-help > a:hover,
.guide-footer-help > a:focus-visible {
  border-color: var(--beauty-forest);
  background: #f3f7ef;
}

.right-help-menu details[open] {
  width: 296px;
  margin-left: -164px;
}

.right-help-context {
  margin: 9px 0 0;
  border-radius: 10px;
  background: #eaf1e6;
  padding: 12px;
}

.right-help-context small,
.right-help-context b,
.right-help-context p {
  display: block;
}

.right-help-context small {
  color: #52705e;
  font-size: 14px;
  font-weight: 850;
}

.right-help-context b {
  margin-top: 3px;
  color: var(--beauty-ink);
  font-size: 16px;
}

.right-help-context p {
  margin: 5px 0 0;
  color: #4f6257;
  font-size: 14px;
  line-height: 1.55;
}

.right-help-panel .right-help-primary {
  border-color: var(--beauty-forest);
  background: var(--beauty-forest);
  color: #fff;
}

.right-help-panel .right-help-primary small {
  color: #d6e3da;
}

.guide-target-pulse {
  outline: 4px solid var(--beauty-lime) !important;
  outline-offset: 5px !important;
  box-shadow: 0 0 0 9px rgba(216, 242, 106, .24) !important;
  animation: guide-target-pulse 1.1s ease-in-out 1;
}

@keyframes guide-target-pulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@media (max-width: 1040px) {
  .guide-hero-v2 {
    grid-template-columns: 1fr;
  }

  .guide-current-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 18px;
  }

  .guide-current-card .guide-role-summary {
    grid-column: 1;
  }

  .guide-current-card > small {
    grid-column: 2;
    grid-row: 1 / span 2;
    max-width: 240px;
  }

  .guide-three-steps ol,
  .guide-screen-map > div {
    grid-template-columns: 1fr;
  }

  .guide-screen-map article + article {
    border-top: 1px solid var(--beauty-line);
    border-left: 0;
  }
}

@media (max-width: 800px) {
  .guide-hero-v2 {
    padding: 24px 21px;
  }

  .guide-hero-v2 .guide-hero-copy h1 {
    font-size: 34px;
  }

  .guide-current-card {
    display: block;
  }

  .guide-reading-lanes {
    grid-template-columns: 1fr;
  }

  .guide-footer-help {
    align-items: stretch;
    flex-direction: column;
  }

  .guide-footer-help > a {
    justify-content: space-between;
  }

  .right-help-menu details[open] {
    width: min(296px, calc(100vw - 20px));
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-target-pulse {
    animation: none;
  }
}
