
:root {
  --bg: #f4f8fd;
  --surface: #ffffff;
  --surface-soft: #f7faff;
  --line: #dbe4f0;
  --text: #10172f;
  --muted: #68748c;
  --blue: #1f5df5;
  --blue-dark: #133fb8;
  --blue-soft: #e9f0ff;
  --green: #33c48d;
  --orange: #f5a30f;
  --pink: #ef6685;
  --purple: #8d6cf6;
  --shadow: 0 18px 48px rgba(27, 54, 93, 0.14);
  --radius: 24px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN",
    Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 8%, rgba(31, 93, 245, 0.1), transparent 30%),
    linear-gradient(145deg, #f9fbff 0%, #edf4ff 48%, #f8fbff 100%);
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(31, 93, 245, 0.28);
  outline-offset: 2px;
}

.application-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.navigation-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  gap: 28px;
  padding: 28px 20px;
  border-right: 1px solid rgba(141, 156, 180, 0.24);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  color: var(--text);
  background: transparent;
  font-weight: 800;
  letter-spacing: 0;
}

.brand.compact {
  font-size: 20px;
}

.brand-mark {
  width: 26px;
  height: 26px;
  background: url("/assets/brand-logo.webp") center / contain no-repeat;
  filter: drop-shadow(0 5px 10px rgba(31, 62, 112, 0.12));
}

.rail-nav {
  display: grid;
  gap: 8px;
}

.rail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  color: var(--muted);
  background: transparent;
  text-align: left;
}

.rail-item span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background: #eef3fb;
  color: #53627b;
}

.rail-item.active {
  color: var(--blue);
  background: var(--blue-soft);
}

.rail-item.active span {
  color: #fff;
  background: var(--blue);
}

.rail-card,
.context-panel,
.stat-card,
.ring-card,
.flow-card,
.lesson-card,
.coach-panel,
.score-panel,
.next-action-card,
.architecture-card {
  border: 1px solid rgba(164, 177, 197, 0.34);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(31, 62, 112, 0.08);
}

.rail-card {
  margin-top: auto;
  padding: 18px;
}

.rail-card h2,
.context-panel h2 {
  margin: 7px 0 8px;
  font-size: 17px;
}

.rail-card p,
.context-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.app-stage {
  display: grid;
  grid-template-columns: minmax(360px, 460px) minmax(280px, 430px);
  justify-content: center;
  align-items: start;
  gap: 28px;
  padding: 30px;
}

.app-frame {
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  height: calc(100vh - 60px);
  min-height: calc(100vh - 60px);
  border: 1px solid rgba(151, 167, 191, 0.35);
  border-radius: 34px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow: var(--shadow);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  height: 78px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(151, 167, 191, 0.24);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.back-button,
.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: var(--text);
  background: #f5f8fd;
  font-size: 28px;
}

.icon-button {
  font-size: 20px;
}

.topbar .brand {
  justify-self: center;
}

.topbar-spacer {
  display: block;
  width: 48px;
  height: 48px;
}

.topbar-account {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 5px;
  place-items: center;
  border-radius: 50%;
  color: inherit;
  background: var(--blue-soft);
  text-decoration: none;
}

.topbar-account .generated-avatar {
  width: 34px;
  height: 34px;
}

.launch-screen {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: end;
  overflow: hidden;
  height: 100%;
  padding: 34px 22px 54px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

.launch-screen.is-hidden {
  display: none;
}

.launch-scene {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.48) 47%, rgba(248, 251, 255, 0.96) 78%),
    url("/api/v1/content/assets/home-gas-station-hero.webp");
  background-position: 62% center;
  background-size: cover;
}

.launch-content {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 12px;
  width: 100%;
}

.launch-brand-mark {
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 12px 24px rgba(20, 40, 112, 0.18));
}

.launch-content h1 {
  margin: 0;
  color: #030a34;
  font-size: 38px;
  line-height: 1;
}

.launch-content p:not(.eyebrow) {
  max-width: 18em;
  margin: 0;
  color: #53627b;
  font-size: 14px;
  line-height: 1.65;
}

.launch-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.launch-checks span {
  padding: 7px 11px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: var(--card-radius-3mm);
  color: var(--blue);
  background: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 800;
}

.launch-button {
  width: 100%;
  margin-top: 10px;
}

.login-screen {
  position: absolute;
  inset: 0;
  z-index: 75;
  display: grid;
  align-items: end;
  justify-items: center;
  overflow: hidden;
  height: 100%;
  padding: 22px 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

.login-screen[hidden] {
  display: none;
}

.login-scene {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.72) 48%, rgba(248, 251, 255, 0.98) 82%),
    url("/api/v1/content/assets/home-gas-station-hero.webp");
  background-position: 58% center;
  background-size: cover;
}

.login-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 480px;
  max-height: calc(100% - 16px);
  padding: 20px;
  border: 1px solid rgba(164, 177, 197, 0.34);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(31, 62, 112, 0.14);
  backdrop-filter: blur(18px);
  overflow-y: auto;
}

.login-brand-mark {
  width: 44px;
  height: 44px;
}

.login-panel h1 {
  margin: 0;
  color: #030a34;
  font-size: 25px;
  line-height: 1.18;
}

.login-panel p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.login-fields {
  display: grid;
  gap: 9px;
  margin-top: 4px;
}

.login-submit {
  width: 100%;
  margin-top: 4px;
}

.google-sign-in-button {
  display: flex;
  min-height: 44px;
  justify-content: center;
  margin-top: 4px;
}

.google-sign-in-button[hidden],
.login-reload[hidden] {
  display: none;
}

.google-sign-in-status {
  min-height: 1.55em;
  text-align: center;
}

.login-reload {
  width: 100%;
}

.login-development {
  width: 100%;
}

.login-development-note {
  margin-top: -4px;
}

.login-panel small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.login-panel .login-release-identity {
  padding-top: 10px;
  border-top: 1px solid rgba(141, 156, 180, 0.2);
  overflow-wrap: anywhere;
}

.password-login,
.auth-action-panel,
.auth-method-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

.password-login label,
.auth-action-panel label,
.auth-method-settings label {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.password-login input,
.auth-action-panel input,
.auth-method-settings input {
  width: 100%;
  min-height: 44px;
}

.password-field {
  position: relative;
  min-width: 0;
}

.password-field input {
  padding-inline-end: 54px;
}

.password-visibility-toggle {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 4px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-block: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
}

.password-visibility-toggle:hover {
  color: var(--text);
  background: var(--gs-primary-container);
}

.password-visibility-toggle:focus-visible {
  outline-offset: -3px;
}

.password-visibility-icon {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
}

.password-visibility-toggle[aria-pressed="true"] .password-visibility-icon::after {
  position: absolute;
  inset: 11px -1px auto;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  box-shadow: 0 0 0 1px var(--gs-surface);
  transform: rotate(45deg);
  content: "";
}

.password-login .login-id-mode {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.password-login .login-id-mode input {
  flex: 0 0 20px;
  width: 20px;
  min-height: 20px;
  height: 20px;
  margin: 0;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}

.login-divider::before,
.login-divider::after {
  height: 1px;
  flex: 1;
  background: #dbe4f0;
  content: "";
}

.text-button,
.text-link {
  padding: 4px;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.auth-action-status {
  min-height: 1.6em;
}

/* メールリンクの操作画面: 完了・利用不可の次の行動（#379 F01）。 */
.auth-action-panel .auth-action-next {
  width: 100%;
  margin-top: 4px;
  text-decoration: none;
}

.auth-action-panel[data-auth-action-stage="completed"] .auth-action-status {
  min-height: 0;
  color: var(--text);
}

/* 利用不可では状態表示を使わない（理由は見出しの直後に示す）。空の欄で余白を作らない。 */
.auth-action-panel[data-auth-action-stage="unavailable"] .auth-action-status:empty {
  display: none;
}

/* 処理中の実行ボタンを、操作できる状態と見分けられるようにする。 */
.login-panel .primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.auth-progress {
  font-weight: 800;
}

.view {
  display: none;
  padding: 22px 22px 120px;
}

.view.active {
  display: block;
}

.content-status-panel {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  margin: 12px 18px 0;
  padding: 14px;
  border: 1px solid #d7e2f3;
  border-radius: 16px;
  background: #f5f8ff;
}

.content-status-panel[hidden] {
  display: none;
}

.content-status-panel.fatal {
  border-color: #f0c9c2;
  background: #fff6f4;
}

.content-status-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: var(--blue);
  background: #e6efff;
  font-size: 20px;
  font-weight: 900;
}

.content-status-panel.fatal .content-status-icon {
  color: #a13724;
  background: #ffe3de;
}

.content-status-copy {
  display: grid;
  gap: 3px;
}

.content-status-copy strong {
  color: var(--text);
  font-size: 14px;
}

.content-status-copy > span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.content-retry-button {
  grid-column: 2;
  justify-self: start;
  min-height: 38px;
  padding: 0 14px;
}

.content-retry-button:disabled,
.rail-item:disabled,
.bottom-item:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.home-action-card {
  position: relative;
  display: grid;
  min-height: 190px;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(164, 177, 197, 0.22);
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 17%, rgba(141, 108, 246, 0.13), transparent 31%),
    linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  box-shadow: 0 18px 42px rgba(39, 54, 118, 0.12);
}

.home-action-card::after {
  position: absolute;
  right: -38px;
  bottom: -42px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(31, 93, 245, 0.08);
  content: "";
}

.home-action-visual {
  display: grid;
  min-height: 52px;
  place-items: center;
}

.home-action-visual .avatar-mini {
  width: 72px;
  height: 56px;
  border: 0;
  border-radius: 20px;
  background-color: #eef6ff;
  background-position: 34% 48%;
  background-size: 158px auto;
  box-shadow: 0 14px 30px rgba(42, 78, 134, 0.14);
}

.home-action-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.home-action-card h1 {
  margin: 4px auto;
  max-width: 12em;
  font-size: 22px;
  line-height: 1.2;
}

.home-action-card p:not(.eyebrow) {
  margin: 0 auto;
  max-width: 20em;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
}

.hero-greeting {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(164, 177, 197, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(240, 246, 255, 0.86), rgba(255, 255, 255, 0.96)),
    #fff;
  box-shadow: 0 12px 32px rgba(31, 62, 112, 0.08);
}

.avatar-mini {
  width: 132px;
  height: 154px;
  border: 1px solid #dbe8ff;
  border-radius: 22px;
  background-image: url("/api/v1/content/assets/training-hero.webp");
  background-position: 30% 47%;
  background-size: 310px auto;
  box-shadow: 0 10px 24px rgba(42, 78, 134, 0.12);
}

.home-compact-hero {
  grid-template-columns: 52px 1fr;
  gap: 10px;
  padding: 9px;
  border-radius: 20px;
}

.home-compact-hero .avatar-mini {
  width: 52px;
  height: 56px;
  border-radius: 16px;
  background-position: 32% 48%;
  background-size: 136px auto;
}

.home-compact-hero h1 {
  margin: 2px 0;
  font-size: 20px;
  line-height: 1.16;
}

.home-compact-hero p:not(.eyebrow) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.78);
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 6px 0 7px;
  font-size: clamp(25px, 5.6vw, 32px);
  line-height: 1.28;
}

h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.34;
}

h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}

.hero-greeting p:not(.eyebrow),
.page-heading p,
.recommend-card p,
.next-action-card p {
  color: var(--muted);
  line-height: 1.7;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 112px 1fr;
  gap: 10px;
  margin-top: 22px;
}

.home-start-card,
.home-level-card {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(164, 177, 197, 0.28);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 30px rgba(31, 62, 112, 0.08);
}

.home-quick-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.home-start-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: center;
}

.home-quick-grid .home-start-card {
  min-height: 124px;
  margin-top: 0;
  padding: 10px;
  grid-template-columns: 30px 1fr;
  gap: 7px;
  border-radius: 20px;
}

.home-start-card .primary-button {
  grid-column: 1 / -1;
  min-height: 54px;
  font-size: 16px;
}

.home-quick-grid .home-start-card .primary-button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 12px;
}

.home-start-number {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #1f5df5, #54d1ff);
  font-size: 22px;
  font-weight: 900;
}

.home-quick-grid .home-start-number {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  font-size: 15px;
}

.home-quick-grid .home-start-card h2,
.home-proposal-card h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 2px 0;
  font-size: 15px;
  line-height: 1.22;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-quick-grid .home-start-card p:not(.eyebrow),
.home-proposal-card p:not(.eyebrow) {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-start-card p,
.home-level-card p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.home-level-topline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.home-level-topline strong {
  display: block;
  margin-top: 4px;
  font-size: 32px;
  line-height: 1;
}

.home-level-percent {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--blue);
  background: #eef4ff;
  font-size: 18px;
  font-weight: 900;
}

.home-level-rules {
  display: grid;
  gap: 7px;
  margin: 14px 0 0;
  padding: 12px 14px 12px 30px;
  border-radius: 18px;
  background: #f7faff;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.home-score-chart {
  margin-top: 6px;
  padding: 8px 9px 7px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(247, 250, 255, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: inset 0 0 0 1px rgba(164, 177, 197, 0.18);
}

.home-chart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.home-chart-heading span {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.home-chart-heading strong {
  padding: 3px 7px;
  border-radius: 999px;
  color: #6c42e8;
  background: #f0ecff;
  font-size: 11px;
  font-weight: 600;
}

.home-chart-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  align-items: end;
  min-height: 72px;
}

.home-chart-bar {
  display: grid;
  grid-template-rows: 14px 48px 13px;
  gap: 3px;
  justify-items: center;
  align-items: end;
}

.home-chart-bar span {
  display: block;
  width: 16px;
  height: calc(var(--score) * 0.48px);
  min-height: 14px;
  border-radius: 999px 999px 7px 7px;
  background: linear-gradient(180deg, #b990ff 0%, #7b54f2 100%);
  box-shadow: 0 7px 13px rgba(123, 84, 242, 0.22);
}

.home-chart-bar.accent span {
  background: linear-gradient(180deg, #ffb57d 0%, #ff7d57 100%);
  box-shadow: 0 7px 13px rgba(255, 125, 87, 0.22);
}

.home-chart-bar em {
  grid-row: 1;
  color: var(--text);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.home-chart-bar small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
}

.home-unlock-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 10px;
  align-items: center;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid #edf1f7;
}

.home-unlock-row h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 1px 0;
  font-size: 14px;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.home-unlock-row p:not(.eyebrow) {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 0;
  font-size: 11px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.stat-card,
.ring-card {
  display: grid;
  min-height: 132px;
  align-content: center;
  padding: 18px;
}

.stat-card strong {
  margin: 9px 0 5px;
  font-size: 31px;
  line-height: 1;
}

.stat-card span {
  color: var(--muted);
}

.stat-card button,
.section-title button {
  padding: 0;
  color: var(--blue);
  background: transparent;
  font-weight: 800;
  text-align: left;
}

.stat-label {
  font-size: 13px;
}

.ring-card {
  padding: 12px;
  place-items: center;
}

.progress-ring {
  display: grid;
  width: 90px;
  height: 90px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 57%, transparent 59%),
    conic-gradient(var(--blue) calc(var(--value) * 1%), #edf1f7 0);
}

.progress-ring span {
  font-size: 22px;
  font-weight: 900;
}

.recommend-card {
  position: relative;
  display: grid;
  min-height: 220px;
  margin-top: 18px;
  overflow: hidden;
  padding: 26px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, #123ca4 0%, #1f5df5 78%);
  box-shadow: 0 18px 38px rgba(31, 93, 245, 0.28);
}

.home-proposal-card {
  min-height: 124px;
  margin-top: 0;
  padding: 10px;
  border-radius: 20px;
  align-content: stretch;
}

.home-proposal-card p {
  max-width: 100%;
}

.home-proposal-card .light-button {
  min-height: 34px;
  margin-top: 7px;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 12px;
}

.recommend-card.home-proposal-card h2 {
  max-width: 100%;
  margin: 2px 0;
  font-size: 15px;
  line-height: 1.22;
}

.recommend-card.home-proposal-card p {
  max-width: 100%;
  font-size: 11px;
  line-height: 1.45;
}

.recommend-card h2 {
  max-width: 78%;
  margin: 8px 0;
  font-size: 24px;
}

.recommend-card p {
  max-width: 76%;
  color: rgba(255, 255, 255, 0.84);
}

.recommend-card img {
  position: absolute;
  right: -64px;
  bottom: -30px;
  width: 270px;
  height: 190px;
  object-fit: cover;
  object-position: 62% center;
  border-radius: 26px 0 0 0;
  mix-blend-mode: screen;
  opacity: 0.9;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 16px;
  font-weight: 900;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 12px 26px rgba(31, 93, 245, 0.24);
}

.light-button {
  position: relative;
  z-index: 1;
  width: max-content;
  margin-top: 8px;
  color: var(--blue);
  background: #fff;
}

.ghost-button {
  color: var(--blue);
  background: var(--blue-soft);
}

.section-block {
  margin-top: 28px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title.tight {
  margin-top: 20px;
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.category-card,
.source-item {
  display: grid;
  border: 1px solid rgba(164, 177, 197, 0.32);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 62, 112, 0.07);
}

.category-card {
  grid-template-columns: 78px 1fr auto;
  gap: 14px;
  min-height: 126px;
  align-items: center;
  padding: 14px;
  text-align: left;
}

.category-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
}

.category-media {
  position: relative;
  display: grid;
  width: 78px;
  height: 78px;
  overflow: hidden;
  place-items: center;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(14, 44, 120, 0.16), rgba(255, 255, 255, 0)),
    var(--visual-bg, linear-gradient(135deg, var(--blue), #62d5ff));
  box-shadow: 0 12px 28px rgba(31, 62, 112, 0.12);
}

.category-media::before,
.module-photo::before,
.product-thumb::before,
.nav-icon::before {
  position: absolute;
  inset: 0;
  background-image: var(--visual-image);
  background-position: var(--visual-position, center);
  background-repeat: no-repeat;
  background-size: var(--visual-size, cover);
  content: "";
}

.category-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 23, 67, 0.02), rgba(6, 23, 67, 0.24));
  content: "";
}

.visual-home {
  --visual-image: url("/assets/app-icons-sprite.webp");
  --visual-position: 0% 0%;
  --visual-size: 300% 300%;
}

.visual-learn {
  --visual-image: url("/assets/app-icons-sprite.webp");
  --visual-position: 50% 0%;
  --visual-size: 300% 300%;
}

.visual-roleplay {
  --visual-image: url("/assets/app-icons-sprite.webp");
  --visual-position: 100% 0%;
  --visual-size: 300% 300%;
}

.visual-results {
  --visual-image: url("/assets/app-icons-sprite.webp");
  --visual-position: 0% 50%;
  --visual-size: 300% 300%;
}

.visual-settings {
  --visual-image: url("/assets/app-icons-sprite.webp");
  --visual-position: 50% 50%;
  --visual-size: 300% 300%;
}

.visual-staff {
  --visual-image: url("/assets/app-icons-sprite.webp");
  --visual-position: 100% 50%;
  --visual-size: 300% 300%;
}

.visual-intro-service {
  --visual-image: url("/api/v1/content/assets/intro-service-basics.webp");
  --visual-position: 50% 40%;
  --visual-size: cover;
}

.visual-intro-refueling {
  --visual-image: url("/api/v1/content/assets/intro-refueling.webp");
  --visual-position: 57% 52%;
  --visual-size: cover;
}

.visual-intro-customer {
  --visual-image: url("/api/v1/content/assets/intro-customer-service.webp");
  --visual-position: 59% 46%;
  --visual-size: cover;
}

.visual-ss-equipment {
  --visual-image: url("/api/v1/content/assets/ss-equipment.webp");
  --visual-position: 50% 50%;
  --visual-size: cover;
}

.visual-ss-safety {
  --visual-image: url("/api/v1/content/assets/ss-safety.webp");
  --visual-position: 50% 50%;
  --visual-size: cover;
}

.visual-ss-law {
  --visual-image: url("/api/v1/content/assets/ss-law.webp");
  --visual-position: 50% 50%;
  --visual-size: cover;
}

.visual-ss-emergency {
  --visual-image: url("/api/v1/content/assets/ss-emergency.webp");
  --visual-position: 50% 50%;
  --visual-size: cover;
}

.visual-station {
  --visual-image: url("/assets/app-icons-sprite.webp");
  --visual-position: 0% 100%;
  --visual-size: 300% 300%;
}

.visual-product,
.visual-tire {
  --visual-image: url("/api/v1/content/assets/product-sprite.webp");
  --visual-position: 0% 0%;
  --visual-size: 200% auto;
}

.visual-oil {
  --visual-image: url("/api/v1/content/assets/product-sprite.webp");
  --visual-position: 100% 0%;
  --visual-size: 200% auto;
}

.visual-inspection {
  --visual-image: url("/api/v1/content/assets/product-sprite.webp");
  --visual-position: 0% 100%;
  --visual-size: 200% auto;
}

.visual-coating {
  --visual-image: url("/api/v1/content/assets/product-sprite.webp");
  --visual-position: 100% 100%;
  --visual-size: 200% auto;
}

.visual-proposal {
  --visual-image: url("/api/v1/content/assets/proposal-recommendation.webp");
  --visual-position: 50% 50%;
  --visual-size: cover;
}

.visual-proposal-observation {
  --visual-image: url("/api/v1/content/assets/proposal-observation.webp");
  --visual-position: 50% 50%;
  --visual-size: cover;
}

.visual-proposal-approach {
  --visual-image: url("/api/v1/content/assets/proposal-approach.webp");
  --visual-position: 50% 50%;
  --visual-size: cover;
}

.visual-proposal-hearing {
  --visual-image: url("/api/v1/content/assets/proposal-hearing.webp");
  --visual-position: 50% 50%;
  --visual-size: cover;
}

.visual-proposal-explanation {
  --visual-image: url("/api/v1/content/assets/proposal-explanation.webp");
  --visual-position: 50% 50%;
  --visual-size: cover;
}

.visual-proposal-recommendation {
  --visual-image: url("/api/v1/content/assets/proposal-recommendation.webp");
  --visual-position: 50% 50%;
  --visual-size: cover;
}

.visual-proposal-closing {
  --visual-image: url("/api/v1/content/assets/proposal-closing.webp");
  --visual-position: 50% 50%;
  --visual-size: cover;
}

.visual-proposal-refusal {
  --visual-image: url("/api/v1/content/assets/proposal-refusal.webp");
  --visual-position: 50% 50%;
  --visual-size: cover;
}

.category-summary {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.category-chips span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--blue);
  background: #eef4ff;
  font-size: 11px;
  font-weight: 900;
}

.category-card p,
.source-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.next-action-card {
  margin-top: 22px;
  padding: 20px;
}

.mini-progress {
  overflow: hidden;
  height: 9px;
  margin-top: 16px;
  border-radius: 99px;
  background: #e8edf5;
}

.mini-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #54d1ff);
}

.page-heading {
  margin-bottom: 18px;
}

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

.flow-card,
.lesson-card,
.architecture-card {
  margin-top: 18px;
  padding: 20px;
}

.category-detail-hero {
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(164, 177, 197, 0.34);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 95% 12%, rgba(31, 93, 245, 0.13), transparent 28%),
    #fff;
  box-shadow: 0 12px 32px rgba(31, 62, 112, 0.08);
}

.back-inline {
  margin-bottom: 14px;
  padding: 0;
  color: var(--blue);
  background: transparent;
  font-weight: 900;
}

.detail-hero-layout {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
}

.detail-hero-layout .category-media {
  width: 88px;
  height: 88px;
  border-radius: 24px;
}

.detail-hero-layout h1,
.detail-hero-layout p {
  margin: 0;
}

.detail-hero-layout h1 {
  margin-top: 4px;
}

.detail-hero-layout p:not(.eyebrow) {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.6;
}

.detail-progress {
  overflow: hidden;
  height: 9px;
  margin-top: 16px;
  border-radius: 99px;
  background: #e8edf5;
}

.detail-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #54d1ff);
}

.next-lesson {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

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

.stage-card {
  display: grid;
  gap: 4px;
  min-height: 92px;
  padding: 12px;
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  background: #fff;
  text-align: left;
}

.stage-card strong {
  color: var(--text);
}

.stage-card span,
.stage-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.stage-card.done {
  border-color: #bfead9;
  background: #edfff7;
}

.stage-card.active {
  border-color: #8fb1ff;
  background: var(--blue-soft);
}

.stage-card.locked {
  border-color: #f5bfd0;
  background: #fff1f5;
  cursor: not-allowed;
  opacity: 0.72;
}

.proposal-product-filter {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 62, 112, 0.07);
}

.proposal-product-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.proposal-product-button {
  min-width: 0;
  min-height: 42px;
  padding: 8px 5px;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  color: var(--muted);
  background: #f7faff;
  font-size: 12px;
  font-weight: 900;
}

.proposal-product-button.active {
  border-color: #8fb1ff;
  color: var(--blue);
  background: var(--blue-soft);
}

.mini-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.module-grid {
  display: grid;
  gap: 12px;
}

.module-card {
  overflow: hidden;
  border: 1px solid rgba(164, 177, 197, 0.34);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 62, 112, 0.07);
}

.module-card.locked {
  opacity: 0.72;
}

.module-card.saved {
  border-color: #9ebaff;
}

.module-photo {
  position: relative;
  width: 100%;
  min-height: 136px;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: linear-gradient(145deg, #edf4ff, #fff);
}

.module-photo.visual-tire {
  --visual-position: 0% 18%;
}

.module-photo.visual-oil {
  --visual-position: 100% 18%;
}

.module-photo.visual-inspection {
  --visual-position: 0% 82%;
}

.module-photo.visual-coating {
  --visual-position: 100% 82%;
}

.proposal-stage-card .module-photo {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.module-body {
  padding: 16px;
}

.module-title-row,
.module-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.module-body h2,
.module-body p {
  margin: 0;
}

.module-body p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.65;
}

.module-meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.module-action {
  width: 100%;
  margin-top: 14px;
}

.module-action:disabled {
  color: #8b95a7;
  background: #edf1f7;
  box-shadow: none;
  cursor: not-allowed;
}

.lesson-study-header {
  padding: 18px;
  border: 1px solid rgba(164, 177, 197, 0.34);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 32px rgba(31, 62, 112, 0.08);
}

.lesson-study-header h1,
.lesson-study-header p {
  margin: 0;
}

.lesson-study-header h1 {
  margin-top: 5px;
}

.lesson-study-header p:not(.eyebrow) {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.7;
}

.lesson-progress {
  margin-top: 14px;
}

.lesson-study-header .lesson-save-status {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #bddbc8;
  border-radius: 12px;
  color: #23623b;
  background: #effaf3;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.lesson-study-header .lesson-save-status.failed {
  border-color: #f0c9c2;
  color: #8f3020;
  background: #fff3f1;
}

.lesson-study-header .lesson-save-status[hidden] {
  display: none;
}

.lesson-content {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.study-card {
  padding: 18px;
  border: 1px solid rgba(164, 177, 197, 0.34);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 62, 112, 0.07);
}

.study-card h2,
.study-card p {
  margin: 0;
}

.study-card h2 {
  margin-top: 8px;
}

.study-card > p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.7;
}

.study-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.study-card.lesson-card,
.study-card.question-card {
  position: relative;
  isolation: isolate;
  padding: clamp(16px, 3vw, 32px);
}

.lesson-background {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  opacity: 0.14;
  pointer-events: none;
}

.lesson-illustration {
  margin-block: 12px;
  color: var(--gs-secondary);
}

.lesson-illustration > summary {
  width: fit-content;
  padding-block: 10px;
  cursor: pointer;
}

.lesson-illustration > summary:focus-visible {
  outline: 3px solid var(--gs-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.lesson-introduction {
  margin-block-start: 12px;
}

.lesson-introduction h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.3;
}

.lesson-introduction p {
  margin-block-start: 8px;
  color: var(--gs-secondary);
  line-height: 1.75;
}

.application-shell #view-lesson:has(:is(.lesson-card, .question-card)) #lesson-summary {
  display: none;
}

.application-shell #view-lesson #lesson-service-note .service-type-notice {
  margin-block: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--gs-secondary);
  background: transparent;
  box-shadow: none;
}

.application-shell #view-lesson #lesson-service-note .service-type-notice > summary {
  font-size: 0.8125rem;
  font-weight: 500;
}

.lesson-block-list {
  margin-block-start: 24px;
}

.lesson-block {
  padding-block: 18px;
  border-block-start: 1px solid var(--gs-outline-variant);
}

.lesson-block.block-point {
  margin-block-end: 16px;
  padding: clamp(14px, 3vw, 22px);
  border: 0;
  border-radius: 20px;
  color: var(--gs-on-primary-container);
  background: var(--gs-primary-container);
}

.lesson-block.block-point h3 {
  font-size: 1.125rem;
}

.lesson-block.block-point h3,
.lesson-block.block-point p {
  color: inherit;
}

.lesson-block.block-caution {
  margin-block-end: 16px;
  padding: 8px 0 8px 14px;
  border-block-start: 0;
  border-inline-start: 3px solid var(--gs-error);
}

.lesson-block.block-caution h3 {
  color: var(--gs-error);
}

.lesson-block h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1rem;
}

.lesson-block p {
  margin: 0;
  color: var(--gs-secondary);
  line-height: 1.75;
}

.lesson-block p + p {
  margin-top: 4px;
}

.lesson-video {
  margin: 16px 0 0;
}

.lesson-video-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.lesson-video-header span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.lesson-video video {
  display: block;
  width: 100%;
  max-height: min(70vh, 675px);
  border-radius: 14px;
  background: #0a0f18;
}

.lesson-video-error {
  margin-top: 10px;
  color: #b42318;
}

.service-type-notice {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #b8d2f5;
  border-left: 5px solid var(--blue);
  border-radius: 14px;
  color: var(--text);
  background: #f3f7ff;
}

.service-type-notice strong {
  display: block;
  margin-bottom: 8px;
  color: #16427d;
  font-size: 15px;
}

.service-type-notice p {
  margin: 4px 0;
  line-height: 1.65;
}

.service-type-notice b {
  color: #16427d;
}

.service-type-notice small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.study-actions {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 10px;
  margin-top: 18px;
}

.study-actions.lesson-actions {
  display: flex;
  justify-content: end;
  gap: 8px;
  margin-block-start: 12px;
  padding-block-start: 18px;
  border-block-start: 1px solid var(--gs-outline-variant);
}

.study-actions.lesson-actions .ghost-button,
.study-actions.lesson-actions .primary-button {
  width: auto;
  min-height: 48px;
  padding-inline: clamp(12px, 3vw, 24px);
}

.lesson-actions .primary-button {
  min-width: min(52%, 176px);
}

.completion-card .study-actions {
  grid-template-columns: 1fr;
}

.scenario-text {
  padding: 12px;
  border-radius: 14px;
  color: var(--text) !important;
  background: #f1f6ff;
  font-weight: 800;
}

.scenario-slide {
  margin: 14px 0 0;
  overflow: hidden;
  border: 1px solid #dbe5f3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(31, 62, 112, 0.08);
}

.scenario-slide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  color: var(--blue);
  background: #f5f8ff;
  font-size: 11px;
  font-weight: 900;
}

.scenario-slide-header span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.scenario-slide-header small {
  padding: 2px 7px;
  border-radius: 999px;
  color: #52647e;
  background: #e8eef8;
  font-size: 10px;
  font-weight: 800;
}

.scenario-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.scenario-slide figcaption {
  padding: 10px 12px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}

.scenario-carousel-viewport {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}

.scenario-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.scenario-carousel-viewport:focus-visible {
  outline: 3px solid rgba(29, 94, 210, 0.35);
  outline-offset: -3px;
}

.scenario-carousel-track {
  display: flex;
}

.scenario-carousel-item {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.scenario-carousel-item img {
  user-select: none;
  -webkit-user-drag: none;
}

.scenario-carousel-controls {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 10px;
  border-top: 1px solid #e4ebf5;
  background: #f8faff;
}

.scenario-carousel-arrow {
  display: grid;
  width: 38px;
  height: 34px;
  place-items: center;
  border: 1px solid #cbd8eb;
  border-radius: 10px;
  color: var(--blue);
  background: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.scenario-carousel-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.scenario-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.scenario-carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #b9c7dc;
  cursor: pointer;
  transition: width 160ms ease, background-color 160ms ease;
}

.scenario-carousel-dot[aria-current="true"] {
  width: 22px;
  background: var(--blue);
}

.question-card {
  padding: 16px;
}

.question-context {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid #dbe5f3;
  border-radius: 14px;
  background: #f8fbff;
}

.question-tags {
  display: flex;
  gap: 6px;
  padding: 12px 14px 0;
}

.question-tags span {
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 11px;
  font-weight: 900;
}

.context-copy {
  padding: 10px 14px 12px;
  color: var(--text) !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.65 !important;
}

.prompt-facts {
  margin: 0;
  border-top: 1px solid #dbe5f3;
  background: #fff;
}

.prompt-facts > div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 14px;
}

.prompt-facts > div + div {
  border-top: 1px solid #e7edf6;
}

.prompt-facts dt,
.prompt-facts dd {
  margin: 0;
}

.prompt-facts dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.prompt-facts dd {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
}

.prompt-facts .customer-voice-row {
  background: #eef4ff;
}

.prompt-facts .customer-voice-row dd {
  color: var(--blue-dark);
}

.question-ask {
  margin-top: 16px;
}

.question-ask > span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
}

.question-ask h2 {
  margin: 3px 0 0;
  font-size: 18px;
  line-height: 1.5;
}

.question-choice-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.question-choice-list .choice {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 12px;
}

.question-choice-list .choice strong {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: var(--blue-soft);
}

.question-choice-list .choice span {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.question-choice-list .choice:disabled {
  cursor: default;
}

.visual-question-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--blue-dark);
  background: #eaf2ff;
  font-size: 12px;
  font-weight: 900;
}

.visual-question-heading span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.visual-question-heading span::before {
  width: 10px;
  height: 10px;
  border: 3px solid var(--blue);
  border-radius: 3px;
  content: "";
}

.visual-question-heading strong {
  color: var(--muted);
  font-size: 11px;
}

.visual-question-heading b {
  color: var(--blue);
  font-size: 15px;
}

.question-choice-list.choice-layout-multiple-diagram {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.question-choice-list.choice-layout-multiple-diagram .choice {
  grid-template-columns: 32px minmax(0, 1fr);
  min-height: 104px;
  align-content: center;
  border-width: 2px;
  background: #fbfdff;
}

.question-choice-list.choice-layout-multiple-diagram .choice strong {
  width: 32px;
  height: 32px;
  border: 2px solid #a9bddc;
  border-radius: 8px;
  background: #fff;
}

.question-choice-list.choice-layout-multiple-diagram .choice.selected {
  border-color: var(--blue);
  background: #edf4ff;
  box-shadow: 0 8px 18px rgba(31, 94, 214, 0.12);
}

.question-choice-list.choice-layout-multiple-diagram .choice.selected strong {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.sequence-slide {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid #d6e2f3;
  border-radius: 16px;
  background: #f8fbff;
}

.sequence-slide .visual-question-heading {
  margin: 0;
  border-radius: 0;
}

.sequence-slide .visual-question-heading span::before {
  border-radius: 50%;
}

.sequence-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 14px;
  list-style: none;
}

.sequence-track li {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 108px;
  align-content: start;
  gap: 8px;
  padding: 10px;
  border: 1px dashed #b8c7dd;
  border-radius: 12px;
  color: #8b9ab0;
  background: #fff;
}

.sequence-track li:not(:last-child)::after {
  position: absolute;
  top: 42px;
  right: -15px;
  color: #91a3bf;
  content: "›";
  font-size: 24px;
  font-weight: 900;
}

.sequence-track li.filled {
  color: var(--text);
  border-style: solid;
  border-color: #8fb1ff;
  background: #edf4ff;
}

.sequence-track li strong {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #94a5bd;
  font-size: 12px;
}

.sequence-track li.filled strong {
  background: var(--blue);
}

.sequence-track li span {
  overflow-wrap: anywhere;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
}

.question-choice-list.choice-layout-sequence-slide .choice {
  grid-template-columns: 32px minmax(0, 1fr);
}

.question-choice-list.choice-layout-sequence-slide .choice.selected strong {
  color: #fff;
  background: var(--blue);
}

@media (max-width: 560px) {
  .question-choice-list.choice-layout-multiple-diagram {
    grid-template-columns: 1fr;
  }

  .question-choice-list.choice-layout-multiple-diagram .choice {
    min-height: 76px;
  }

  .sequence-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .sequence-track li {
    min-height: 92px;
  }

  .sequence-track li::after {
    display: none;
  }
}

.answer-feedback {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  line-height: 1.7;
}

.answer-feedback.correct {
  border: 1px solid #bfead9;
  background: #edfff7;
}

.answer-feedback.incorrect {
  border: 1px solid #f5bfd0;
  background: #fff1f5;
}

.answer-feedback p {
  margin: 0;
  color: var(--muted);
}

.written-answer-panel {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.written-answer-panel label {
  color: var(--text);
  font-weight: 900;
}

.written-answer-panel textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  padding: 13px;
  border: 1px solid #cbd8eb;
  border-radius: 14px;
  color: var(--text);
  background: #fbfdff;
  line-height: 1.7;
}

.written-answer-panel textarea:disabled {
  color: var(--text);
  background: #f1f5fa;
  opacity: 1;
}

.written-answer-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.model-answer,
.review-criteria {
  padding-top: 8px;
  border-top: 1px solid rgba(104, 116, 140, 0.18);
}

.model-answer > span,
.review-criteria > span {
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 900;
}

.quick-actions[hidden] {
  display: none;
}

.disclosure-icon {
  flex: 0 0 auto;
  color: var(--blue) !important;
  font-size: 18px !important;
}

.product-thumb {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 15px;
  background: #eef4ff;
}

.flow-steps {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.flow-steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  line-height: 1.45;
  counter-increment: step;
}

.flow-steps li::before {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  content: counter(step);
  font-weight: 900;
}

.flow-steps strong {
  display: block;
  color: var(--text);
}

.lesson-header,
.roleplay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.badge {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 13px;
  font-weight: 900;
}

.level-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.level-tab {
  min-height: 72px;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  color: var(--muted);
  background: #fff;
  font-weight: 900;
}

.level-tab small {
  color: inherit;
  font-size: 11px;
  font-weight: 700;
}

.level-tab.done {
  color: #15895f;
  background: #edfff7;
  border-color: #bfead9;
}

.level-tab.active {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #8fb1ff;
}

.level-tab.locked {
  color: #c34665;
  background: #fff1f5;
  border-color: #f5bfd0;
}

.quiz-box {
  display: grid;
  gap: 10px;
}

.question-label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.choice {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #dbe4f0;
  border-radius: 13px;
  color: var(--text);
  background: #fff;
  text-align: left;
}

.choice.selected {
  border-color: #83a8ff;
  background: var(--blue-soft);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

textarea,
input {
  width: 100%;
  border: 1px solid #d5dfed;
  border-radius: 15px;
  color: var(--text);
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 90px;
  padding: 12px;
  line-height: 1.6;
}

.roleplay-view {
  padding-bottom: 258px;
}

.scenario-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 900;
}

dl {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

dl div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
}

dt {
  color: var(--blue);
  font-weight: 900;
}

dd {
  margin: 0;
  color: var(--text);
  line-height: 1.65;
}

.chat-log {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}

.proposal-chat-choice-list {
  display: grid;
  margin: 0 0 18px;
}

.proposal-chat-choice-list[hidden] {
  display: none;
}

.proposal-chat-choice-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 9px;
  width: min(94%, 600px);
  align-items: end;
  justify-self: end;
}

.proposal-choice-bubble {
  display: grid;
  gap: 4px;
  padding: 15px;
  border: 1px solid #b9ccff;
  border-radius: 18px;
  background: #eff5ff;
  box-shadow: 0 8px 22px rgba(31, 62, 112, 0.09);
}

.proposal-choice-bubble > strong {
  color: var(--blue-dark);
  font-size: 14px;
}

.proposal-choice-bubble > small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.proposal-choice-options {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.proposal-chat-choice {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  align-items: start;
  padding: 11px;
  border: 1px solid #cfdbef;
  border-radius: 12px;
  color: var(--text);
  background: #fff;
  text-align: left;
  line-height: 1.55;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.proposal-choice-marker {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 11px;
  font-weight: 900;
}

.proposal-chat-choice:hover,
.proposal-chat-choice:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 5px 14px rgba(31, 93, 245, 0.13);
  transform: translateY(-1px);
}

.proposal-chat-choice:focus-visible {
  outline: none;
}

.proposal-chat-choice.selected {
  border-width: 2px;
}

.proposal-chat-choice.correct,
.proposal-chat-choice.correct-answer {
  border-color: #32a66a;
  background: #edf9f2;
}

.proposal-chat-choice.incorrect {
  border-color: #d92d20;
  background: #fff1f0;
}

.proposal-chat-choice:disabled {
  cursor: default;
}

.proposal-chat-choice:disabled:not(.selected):not(.correct-answer) {
  opacity: 0.56;
}

.proposal-next-question {
  display: block;
  width: 100%;
  margin: 18px 0 18px;
}

.proposal-next-question[hidden] {
  display: none;
}

.message {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 9px;
  max-width: 88%;
  align-items: end;
}

.message.customer {
  justify-self: start;
}

.message.staff {
  grid-template-columns: minmax(0, 1fr) 44px;
  justify-self: end;
}

.message.staff .chat-avatar {
  grid-column: 2;
}

.message.staff .message-body {
  grid-column: 1;
  grid-row: 1;
  justify-items: end;
}

.message-body {
  display: grid;
  gap: 6px;
}

.chat-avatar {
  display: block;
  width: 44px;
  height: 44px;
  border: 2px solid #edf4ff;
  border-radius: 50%;
  background-image: url("/api/v1/content/assets/chat-avatars.webp");
  background-size: 200% 100%;
  box-shadow: 0 8px 18px rgba(31, 62, 112, 0.1);
}

.staff-avatar {
  background-position: 0% 50%;
}

.customer-avatar {
  background-image: var(--customer-avatar);
  background-position: center;
  background-size: cover;
}

.message.scene,
.message.observation {
  grid-template-columns: 34px minmax(0, 1fr);
  max-width: 100%;
  padding: 10px;
  border-radius: 16px;
  background: #f7f9fd;
}

.message.observation {
  background: #eef7ff;
}

.scene-message-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: #fff;
  font-weight: 900;
}

.message.scene .bubble,
.message.observation .bubble {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.message strong {
  color: var(--muted);
  font-size: 12px;
}

.bubble {
  padding: 15px 16px;
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(31, 62, 112, 0.07);
  line-height: 1.7;
}

.staff .bubble {
  border-color: #b9ccff;
  background: #eff5ff;
}

.coach-panel {
  padding: 18px;
  border-color: #f6cf8b;
  background: #fffaf0;
}

.coach-panel p:last-child {
  margin: 7px 0 0;
  line-height: 1.7;
}

.chat-composer {
  position: absolute;
  right: 0;
  bottom: 72px;
  left: 0;
  display: grid;
  gap: 10px;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(151, 167, 191, 0.24);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.chat-composer[hidden] {
  display: none;
}

.quick-actions {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.quick-actions button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #cdd9eb;
  border-radius: 13px;
  color: var(--blue);
  background: #fff;
  font-weight: 900;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 86px;
  gap: 10px;
}

.input-row textarea {
  min-height: 72px;
  resize: none;
}

.proposal-free-input-guide {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid #b9ccff;
  border-radius: 16px;
  color: var(--text);
  background: #eff5ff;
}

.proposal-free-input-guide strong {
  color: var(--blue-dark);
}

.proposal-free-input-guide span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

input {
  min-height: 48px;
  padding: 0 14px;
}

.chat-composer small {
  color: var(--muted);
  text-align: center;
}

.score-panel {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 15px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
}

.score-panel[hidden] {
  display: none;
}

.score-panel ul,
.architecture-card ol,
.architecture-card ul {
  grid-column: 1 / -1;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.score-circle {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background:
    radial-gradient(circle, #fff 56%, transparent 58%),
    conic-gradient(var(--blue) 82%, #e7edf7 0);
  font-size: 23px;
  font-weight: 900;
}

.score-circle span {
  font-size: 12px;
}

.review-circle {
  background: var(--blue-soft);
  font-size: 16px;
}

.proposal-review-block {
  grid-column: 1 / -1;
  padding: 13px;
  border-radius: 13px;
  background: #f7f9fd;
}

.proposal-review-block p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.score-circle.large {
  width: 112px;
  height: 112px;
  font-size: 34px;
  background:
    radial-gradient(circle, #fff 56%, transparent 58%),
    conic-gradient(var(--blue) var(--score-value, 0%), #e7edf7 0);
}

.results-start-button {
  margin-top: 14px;
}

.results-storage-warning,
.home-score-warning {
  padding: 12px 14px;
  border: 1px solid #f6c65b;
  border-radius: var(--card-radius-3mm);
  color: #7a4b00;
  background: #fff8df;
}

.results-storage-warning {
  margin-bottom: 16px;
}

.results-storage-warning p,
.home-score-warning {
  margin: 4px 0 0;
  line-height: 1.6;
}

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

.source-card {
  padding: 0;
  overflow: hidden;
}

.source-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  color: var(--text);
  background: #fff;
  text-align: left;
}

.source-toggle strong {
  display: block;
  font-size: 19px;
  line-height: 1.35;
}

.source-toggle small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.source-toggle .disclosure-icon {
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 14px;
  color: var(--blue);
  background: #eef4ff;
  font-size: 18px;
  font-weight: 900;
}

.source-item {
  gap: 9px;
  padding: 18px;
}

.source-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.source-topline span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #15895f;
  background: #edfff7;
  font-size: 12px;
  font-weight: 900;
}

.source-link {
  width: fit-content;
  padding: 0;
  color: var(--blue);
  background: transparent;
  font-weight: 900;
  text-align: left;
  text-decoration: none;
}

.source-link:disabled {
  color: var(--muted);
  cursor: default;
}

.source-open-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.settings-card {
  display: grid;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(164, 177, 197, 0.34);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 32px rgba(31, 62, 112, 0.08);
}

.settings-card-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.settings-card-heading h2,
.settings-section-heading h2 {
  margin: 6px 0 0;
}

.settings-card > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.settings-status-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 11px;
  font-weight: 900;
}

.settings-logout {
  width: 100%;
}

.profile-settings {
  display: grid;
  gap: 14px;
  padding-block: 16px;
  border-block: 1px solid #dbe4f0;
}

.profile-settings h3,
.profile-settings p {
  margin: 0;
}

.profile-summary {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: center;
}

.profile-summary > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.profile-summary strong,
.profile-summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-summary small,
.profile-form > small {
  color: var(--muted);
}

.profile-avatar {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
}

.generated-avatar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 22%;
  shape-rendering: crispEdges;
}

.profile-form {
  display: grid;
  gap: 8px;
}

.profile-form label {
  font-weight: 800;
}

.profile-form input {
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #b8c5d8;
  border-radius: 10px;
  font: inherit;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-actions button {
  min-height: 44px;
}

.profile-save-status {
  min-height: 1.5em;
  color: var(--muted);
}

.profile-load-error {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.session-settings {
  display: grid;
  gap: 12px;
  padding-block: 16px;
  border-top: 1px solid #dbe4f0;
}

.session-settings h3,
.session-settings p {
  margin: 0;
}

.session-settings-heading,
.session-row-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.session-settings-heading > div,
.session-row-heading > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.session-settings-heading > button,
.session-row-heading > .settings-status-badge {
  flex: 0 0 auto;
  white-space: nowrap;
}

.session-settings-heading p,
.session-row small,
.session-action-status,
.session-loading {
  color: var(--muted);
}

.session-list {
  display: grid;
  gap: 10px;
}

.session-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  background: #f8fbff;
}

.session-name-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.session-name-form label {
  grid-column: 1 / -1;
  font-weight: 800;
}

.session-name-form input {
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #b8c5d8;
  border-radius: 10px;
  font: inherit;
}

.session-revoke,
.session-revoke-others {
  width: 100%;
}

.session-action-status {
  min-height: 1.5em;
}

@media (max-width: 520px) {
  .session-settings-heading,
  .session-row-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .session-name-form {
    grid-template-columns: 1fr;
  }
}

.auth-method-settings {
  padding-top: 16px;
  border-top: 1px solid #dbe4f0;
}

.auth-method-settings h3 {
  margin: 0;
}

.auth-method-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  background: #f8fbff;
}

.auth-method-row > div {
  display: grid;
  gap: 3px;
}

.auth-method-row small {
  color: var(--muted);
}

.settings-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
}

.settings-list .settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid #dbe4f0;
  border-radius: 16px;
  color: var(--text);
  background: #fff;
  font-weight: 900;
}

.settings-list dt,
.settings-list dd {
  margin: 0;
}

.release-details {
  margin-top: 0;
}

.release-details dd {
  overflow-wrap: anywhere;
}

.settings-list dd {
  color: var(--blue);
  text-align: right;
}

.settings-primary-column,
.settings-information-column {
  display: grid;
  gap: 18px;
  align-content: start;
  min-width: 0;
}

.settings-section-heading .eyebrow {
  margin: 0;
}

.settings-information-column .architecture-card {
  margin-top: 0;
}

.architecture-card .source-list {
  margin: 0;
  padding: 0 18px 18px;
}

.architecture-card .source-item {
  box-shadow: none;
}

.supporting-pane {
  display: grid;
  gap: 14px;
  align-content: start;
}

.context-panel {
  padding: 20px;
}

.unlock-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid #edf1f7;
}

.unlock-row:last-child {
  border-bottom: 0;
}

.unlock-row span {
  color: var(--muted);
}

.bottom-nav {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(151, 167, 191, 0.24);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.bottom-item {
  display: grid;
  gap: 3px;
  min-height: 72px;
  place-items: center;
  color: #7b879b;
  background: transparent;
  font-weight: 800;
}

.bottom-item > span:not(.nav-icon) {
  font-size: 12px;
}

.bottom-item.active {
  color: var(--blue);
}

.nav-icon {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border-radius: 10px;
  background: #eef4ff;
  opacity: 0.86;
}

.bottom-item.active .nav-icon {
  opacity: 1;
  box-shadow: 0 8px 18px rgba(31, 93, 245, 0.18);
}

.nav-home {
  --visual-image: url("/assets/app-icons-sprite.webp");
  --visual-position: 0% 0%;
  --visual-size: 300% 300%;
}

.nav-learn {
  --visual-image: url("/assets/app-icons-sprite.webp");
  --visual-position: 50% 0%;
  --visual-size: 300% 300%;
}

.nav-roleplay {
  --visual-image: url("/assets/app-icons-sprite.webp");
  --visual-position: 100% 0%;
  --visual-size: 300% 300%;
}

.nav-results {
  --visual-image: url("/assets/app-icons-sprite.webp");
  --visual-position: 0% 50%;
  --visual-size: 300% 300%;
}

.nav-settings {
  --visual-image: url("/assets/app-icons-sprite.webp");
  --visual-position: 50% 50%;
  --visual-size: 300% 300%;
}

/* UI text hierarchy: keep headings strong, make support text lighter and smaller. */
.hero-greeting p:not(.eyebrow),
.page-heading p:not(.eyebrow),
.recommend-card p:not(.eyebrow),
.next-action-card p:not(.eyebrow),
.home-start-card p:not(.eyebrow),
.home-level-card p:not(.eyebrow),
.rail-card p:not(.eyebrow),
.context-panel p:not(.eyebrow),
.category-summary,
.category-card p,
.source-item p,
.detail-hero-layout p:not(.eyebrow),
.module-body p,
.lesson-study-header p:not(.eyebrow),
.study-card > p,
.service-type-notice p,
.answer-feedback p,
.proposal-review-block p,
.settings-card p:not(.eyebrow) {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
}

.eyebrow,
.stat-label,
.category-chips span,
.stage-card small,
.module-meta,
.lesson-pill,
.scenario-slide-header small,
.scenario-slide figcaption,
.context-copy,
.level-tab small,
.proposal-choice-bubble > small,
.proposal-choice-marker,
.proposal-free-input-guide span,
.chat-composer small,
.source-toggle small,
.source-topline span {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
}

.service-type-notice small {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
}

.source-link {
  font-weight: 700;
}

.settings-list .settings-item,
.settings-list dt,
.settings-list dd {
  font-weight: 700;
}

@media (max-width: 1080px) {
  .application-shell {
    display: block;
  }

  .navigation-sidebar,
  .supporting-pane {
    display: none;
  }

  .app-stage {
    display: block;
    padding: 0;
  }

  .app-frame {
    height: 100vh;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .bottom-nav {
    position: fixed;
  }

  .chat-composer {
    position: fixed;
    bottom: 72px;
    z-index: 24;
  }
}

@media (max-width: 430px) {
  .view {
    padding-right: 16px;
    padding-left: 16px;
  }

  .topbar {
    padding: 0 16px;
  }

  .hero-greeting {
    grid-template-columns: 104px 1fr;
    gap: 14px;
    padding: 14px;
  }

  .avatar-mini {
    width: 104px;
    height: 134px;
    background-position: 30% 47%;
    background-size: 270px auto;
  }

  .stats-grid {
    grid-template-columns: 1fr 96px 1fr;
  }

  .home-start-card {
    grid-template-columns: 42px 1fr;
    gap: 12px;
    padding: 15px;
  }

  .home-start-number {
    width: 42px;
    height: 42px;
    border-radius: 16px;
  }

  .home-level-topline strong {
    font-size: 28px;
  }

  .stat-card {
    padding: 14px;
  }

  .stat-card strong {
    font-size: 26px;
  }

  .progress-ring {
    width: 76px;
    height: 76px;
  }

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

  .category-card {
    grid-template-columns: 72px minmax(0, 1fr) 18px;
    gap: 12px;
    padding: 12px;
  }

  .category-media {
    width: 72px;
    height: 72px;
    border-radius: 20px;
  }

  .category-chips {
    gap: 5px;
  }

  .category-chips span {
    padding: 4px 8px;
  }

  .detail-hero-layout {
    grid-template-columns: 78px 1fr;
  }

  .detail-hero-layout .category-media {
    width: 78px;
    height: 78px;
  }

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

  .recommend-card h2,
  .recommend-card p {
    max-width: 86%;
  }

  .recommend-card img {
    right: -120px;
    width: 250px;
  }

  .roleplay-view {
    padding-bottom: 270px;
  }

  .chat-composer {
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (max-width: 430px) {

  .home-compact-hero {
    grid-template-columns: 52px 1fr;
    gap: 10px;
    padding: 9px;
  }

  .home-compact-hero .avatar-mini {
    width: 52px;
    height: 56px;
    background-size: 136px auto;
  }

  .home-compact-hero h1 {
    font-size: 20px;
  }

  .home-quick-grid .home-start-card {
    grid-template-columns: 30px 1fr;
    gap: 7px;
    min-height: 124px;
    padding: 10px;
  }

  .home-quick-grid .home-start-number {
    width: 30px;
    height: 30px;
    border-radius: 12px;
    font-size: 15px;
  }

  .home-quick-grid .home-start-card h2,
  .recommend-card.home-proposal-card h2 {
    font-size: 15px;
  }
}

/* 2026-07-18 home mission dashboard based on the supplied home reference. */
.app-frame:has(#view-home.active) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 255, 0.98));
}

.home-level-dashboard,
.home-score-card {
  border: 1px solid rgba(211, 219, 234, 0.9);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(35, 59, 110, 0.08);
}

.station-canopy {
  position: absolute;
  top: 8px;
  right: 28px;
  width: 260px;
  height: 66px;
  border: 1px solid rgba(150, 166, 197, 0.38);
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #edf3ff 0%, #ffffff 34%, #e3ebf7 100%);
  box-shadow: 0 14px 24px rgba(36, 59, 112, 0.1);
  transform: perspective(420px) rotateX(16deg) skewX(-8deg);
}

.station-canopy::before {
  position: absolute;
  right: 0;
  bottom: 13px;
  left: 0;
  height: 17px;
  background: linear-gradient(90deg, #2d6bff 0%, #0d4cce 100%);
  content: "";
}

.station-canopy span {
  position: absolute;
  right: 54px;
  bottom: 15px;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  transform: skewX(8deg);
}

.station-pillars {
  position: absolute;
  top: 70px;
  right: 94px;
  width: 136px;
  height: 90px;
  border-right: 10px solid rgba(216, 227, 246, 0.95);
  border-left: 10px solid rgba(216, 227, 246, 0.95);
}

.station-pillars::before {
  position: absolute;
  top: 6px;
  right: 46px;
  bottom: 0;
  width: 10px;
  background: rgba(216, 227, 246, 0.95);
  content: "";
}

.station-pump {
  position: absolute;
  top: 96px;
  right: 196px;
  display: grid;
  width: 32px;
  height: 62px;
  place-items: start center;
  padding-top: 5px;
  border-radius: 7px 7px 2px 2px;
  color: #2265f3;
  background: #f6f9ff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(165, 184, 218, 0.45);
}

.station-car {
  position: absolute;
  top: 128px;
  right: 122px;
  width: 128px;
  height: 42px;
  border-radius: 32px 42px 14px 16px;
  background:
    radial-gradient(circle at 20% 100%, #111a2f 0 9px, transparent 10px),
    radial-gradient(circle at 80% 100%, #111a2f 0 9px, transparent 10px),
    linear-gradient(180deg, #f9fbff 0%, #dce8f8 100%);
  box-shadow: inset 0 0 0 1px rgba(120, 146, 188, 0.35), 0 10px 20px rgba(42, 67, 118, 0.08);
}

.station-car::before {
  position: absolute;
  top: 7px;
  left: 35px;
  width: 44px;
  height: 16px;
  border-radius: 16px 18px 3px 3px;
  background: #bcd0ed;
  content: "";
}

.home-worker {
  position: absolute;
  right: -16px;
  bottom: 0;
  width: 214px;
  height: 154px;
  background-image: url("/api/v1/content/assets/training-hero.webp");
  background-position: 42% 52%;
  background-size: 368px auto;
  filter: drop-shadow(0 18px 24px rgba(23, 48, 105, 0.18));
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 82%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 82%, transparent 100%);
}

.mission-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin: 0 0 17px;
  padding: 9px 14px;
  border: 1px solid rgba(202, 215, 242, 0.82);
  border-radius: 999px;
  color: #0f55ff;
  background: rgba(246, 249, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 900;
}

.mission-status {
  position: absolute;
  right: -172px;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid rgba(201, 213, 233, 0.9);
  border-radius: 12px;
  color: #10172f;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 18px rgba(34, 60, 116, 0.08);
  font-size: 14px;
  font-weight: 900;
}

.mission-status span {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #20bd83;
  font-size: 12px;
}

.home-level-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 20px;
  align-items: center;
  min-height: 108px;
  margin-top: 8px;
  padding: 14px 16px;
}

.home-level-dashboard .level-copy {
  min-width: 0;
}

.home-level-dashboard .stat-label {
  display: block;
  color: #65728d;
  font-size: 14px;
  font-weight: 800;
}

.home-level-dashboard #home-overall-level {
  display: block;
  margin-top: 6px;
  color: #020735;
  font-size: 34px;
  font-weight: 900;
  line-height: 0.95;
}

.home-level-dashboard #home-level-detail {
  margin: 10px 0 8px;
  color: #65728d;
  font-size: 14px;
  font-weight: 800;
}

.home-level-dashboard .mini-progress {
  width: min(100%, 196px);
  height: 8px;
  margin: 0;
  border-radius: 999px;
  background: #e3e9f4;
}

.home-level-dashboard .mini-progress span {
  border-radius: inherit;
  background: linear-gradient(90deg, #4d20ea 0%, #8e67ff 100%);
}

.level-ring {
  position: relative;
  display: grid;
  width: 96px;
  height: 96px;
  justify-self: end;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#4d20ea calc(var(--level-percent) * 1%), #e3e8f2 0);
}

.level-ring::before {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(202, 211, 229, 0.72);
  content: "";
}

.home-level-percent {
  position: relative;
  z-index: 1;
  padding: 0;
  color: #4d20ea;
  background: transparent;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.home-score-card {
  margin-top: 8px;
  padding: 13px 14px 12px;
}

.home-score-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.home-score-heading > div {
  display: flex;
  align-items: center;
  gap: 11px;
}

.score-heading-icon {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background:
    linear-gradient(#1f66ff, #1f66ff) 0 12px / 5px 10px no-repeat,
    linear-gradient(#1f66ff, #1f66ff) 9px 7px / 5px 15px no-repeat,
    linear-gradient(#1f66ff, #1f66ff) 18px 2px / 5px 20px no-repeat;
}

.home-score-heading h2 {
  color: #020735;
  font-size: 19px;
  font-weight: 900;
}

.home-score-heading strong {
  padding: 8px 12px;
  border: 1px solid rgba(116, 83, 232, 0.18);
  border-radius: 12px;
  color: #4d20ea;
  background: #f4efff;
  font-size: 13px;
  font-weight: 900;
}

.score-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metric-copy {
  display: grid;
  min-width: 0;
  align-content: center;
}

.metric-icon {
  display: grid;
  width: 22px;
  height: 22px;
  margin: 0 0 8px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.metric-bar-visual {
  display: flex;
  min-height: 82px;
  align-items: end;
  justify-content: center;
  padding: 8px 0 0 8px;
  border-left: 1px solid rgba(213, 221, 236, 0.82);
}

.metric-bar-visual span {
  display: block;
  width: 18px;
  height: calc(var(--score) * 0.78px);
  min-height: 12px;
  border-radius: 0;
  background: currentColor;
  box-shadow: 0 10px 18px color-mix(in srgb, currentColor 22%, transparent);
}

.metric-green {
  color: #17b982;
}

.metric-blue {
  color: #246bff;
}

.metric-purple {
  color: #6d35e8;
}

.metric-orange {
  color: #ff7a18;
}

.home-chart-board {
  position: relative;
  height: 132px;
  margin-top: 8px;
  padding: 8px 28px 20px;
  background:
    linear-gradient(rgba(216, 224, 238, 0.88) 1px, transparent 1px) 0 22px / 100% 39px no-repeat,
    linear-gradient(rgba(216, 224, 238, 0.72) 1px, transparent 1px) 0 61px / 100% 39px no-repeat,
    linear-gradient(rgba(216, 224, 238, 0.62) 1px, transparent 1px) 0 100px / 100% 39px no-repeat,
    linear-gradient(rgba(216, 224, 238, 0.5) 1px, transparent 1px) 0 139px / 100% 39px no-repeat;
  border-bottom: 1px solid rgba(200, 211, 230, 0.9);
}

.home-chart-line {
  position: absolute;
  top: 35px;
  right: 34px;
  left: 34px;
  width: calc(100% - 68px);
  height: 104px;
  overflow: visible;
}

.home-chart-line path {
  fill: none;
  stroke: #8fb6ff;
  stroke-dasharray: 3 3;
  stroke-linecap: round;
  stroke-width: 2;
}

.home-chart-line circle {
  fill: #84aefa;
  stroke: #c7dbff;
  stroke-width: 2;
}

.chart-axis {
  position: absolute;
  top: 2px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #65728d;
  font-size: 12px;
  font-weight: 600;
}

.chart-axis.left {
  left: 0;
}

.chart-axis.right {
  right: 0;
}

.score-bars {
  position: relative;
  z-index: 2;
  display: grid;
  height: 100%;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: end;
}

.score-bar {
  display: grid;
  height: 100%;
  grid-template-rows: 20px 1fr 18px;
  justify-items: center;
  align-items: end;
  color: #1f66ff;
}

.score-bar strong {
  color: currentColor;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.score-bar span {
  display: block;
  width: 28px;
  height: calc(var(--score) * 0.78px);
  min-height: 18px;
  border-radius: 16px 16px 3px 3px;
  background: linear-gradient(180deg, color-mix(in srgb, currentColor 62%, white), currentColor);
  box-shadow: 0 11px 18px color-mix(in srgb, currentColor 24%, transparent);
}

.score-bar em {
  color: #65728d;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.home-score-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.16fr);
  gap: 8px;
  margin-top: 8px;
}

.home-score-footer div {
  display: flex;
  min-width: 0;
  min-height: 36px;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 12px;
  color: #65728d;
  background: #f2f6ff;
  font-size: 12px;
  font-weight: 800;
}

.home-score-footer span {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: #286cff;
  background: #e5eeff;
  font-weight: 900;
}

.home-score-footer strong {
  margin-left: auto;
  color: #030a34;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.home-score-footer small {
  color: #65728d;
  font-size: 11px;
  font-weight: 700;
}

.home-score-footer b {
  margin-left: auto;
  color: #65728d;
  font-size: 24px;
  font-weight: 600;
}

@media (max-width: 700px) {

  .station-canopy {
    right: 18px;
    width: 236px;
  }

  .station-pillars {
    right: 80px;
  }

  .station-pump {
    right: 178px;
  }

  .station-car {
    right: 104px;
    width: 116px;
  }

  .home-worker {
    right: -34px;
    width: 196px;
    height: 146px;
    background-size: 340px auto;
  }

  .mission-status {
    right: -142px;
    bottom: 2px;
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  .home-level-dashboard {
    grid-template-columns: minmax(0, 1fr) 100px;
    gap: 12px;
    min-height: 104px;
    padding: 12px 14px;
  }

  .home-level-dashboard #home-overall-level {
    font-size: 32px;
  }

  .level-ring {
    width: 90px;
    height: 90px;
  }

  .home-level-percent {
    font-size: 24px;
  }

  .home-score-card {
    padding: 12px 14px 10px;
  }

  .score-metric-grid {
    gap: 7px;
  }

  .metric-bar-visual {
    min-height: 78px;
    padding-left: 6px;
  }

  .metric-bar-visual span {
    width: 16px;
    height: calc(var(--score) * 0.72px);
  }

  .home-score-card .home-chart-board {
    height: 126px;
    padding: 8px 12px 20px 32px;
  }

  .home-score-card .score-bars {
    gap: 14px;
  }

  .home-score-card .score-bar span {
    width: 26px;
    height: calc(var(--score) * 0.76px);
  }

  .home-score-footer {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.16fr);
  }
}

@media (max-width: 380px) {

  .mission-status {
    right: -130px;
    padding: 0 10px;
  }

  .score-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 2026-07-21 UI/UX refinement: 3mm cards, generated hero image, simpler score graph. */
:root {
  --card-radius-3mm: 11.34px;
  --radius: var(--card-radius-3mm);
}

.rail-card,
.context-panel,
.stat-card,
.ring-card,
.flow-card,
.lesson-card,
.coach-panel,
.score-panel,
.next-action-card,
.architecture-card,
.home-level-card,
.home-level-dashboard,
.home-score-card,
.home-score-footer div,
.category-detail-hero,
.stage-card,
.module-card,
.study-card,
.settings-card,
.source-card,
.recommend-card,
.result-card,
.answer-feedback {
  border-radius: var(--card-radius-3mm);
}

.station-canopy,
.station-pillars,
.station-pump,
.station-car,
.home-worker {
  display: none;
}

.mission-chip,
.mission-status {
  display: none;
}

.home-level-dashboard {
  grid-template-columns: minmax(0, 1fr) minmax(96px, 0.72fr);
  gap: 10px;
  min-height: 134px;
  padding: 18px 20px;
}

.home-level-dashboard .level-copy {
  display: grid;
  align-content: center;
  justify-self: center;
  width: min(100%, 198px);
  text-align: center;
}

.home-level-dashboard .stat-label {
  font-size: 13px;
}

.home-level-dashboard #home-overall-level {
  margin-top: 8px;
  font-size: 40px;
}

.home-level-dashboard #home-level-detail {
  margin: 12px 0 10px;
  font-size: 13px;
  line-height: 1.4;
}

.home-level-dashboard .mini-progress {
  width: min(100%, 178px);
  margin-right: auto;
  margin-left: auto;
}

.level-ring {
  width: 106px;
  height: 106px;
  justify-self: center;
}

.level-ring::before {
  inset: 9px;
}

.home-level-percent {
  font-size: 28px;
}

.home-chart-line {
  display: none;
}

.home-chart-board {
  margin-top: 14px;
}

.score-bars {
  z-index: 1;
}

/* 2026-07-21 home score graph: standard vertical graph, not split metric cards. */
.home-score-card .home-chart-board {
  height: 236px;
  margin-top: 12px;
  padding: 18px 18px 36px 42px;
  border-radius: 0;
  background:
    linear-gradient(rgba(216, 224, 238, 0.92) 1px, transparent 1px) 0 25px / 100% 43px no-repeat,
    linear-gradient(rgba(216, 224, 238, 0.76) 1px, transparent 1px) 0 68px / 100% 43px no-repeat,
    linear-gradient(rgba(216, 224, 238, 0.62) 1px, transparent 1px) 0 111px / 100% 43px no-repeat,
    linear-gradient(rgba(216, 224, 238, 0.5) 1px, transparent 1px) 0 154px / 100% 43px no-repeat;
  border-bottom: 1px solid rgba(200, 211, 230, 0.9);
}

.home-score-card .chart-axis {
  top: 11px;
  bottom: 32px;
  font-size: 12px;
  font-weight: 700;
}

.home-score-card .chart-axis.left {
  left: 0;
}

.home-score-card .chart-axis.right {
  display: none;
}

.home-score-card .score-bars {
  height: 100%;
  gap: 20px;
}

.home-score-card .score-bar {
  grid-template-rows: 24px 1fr 18px 18px;
}

.home-score-card .score-bar strong {
  font-size: 16px;
}

.home-score-card .score-bar span {
  width: 30px;
  height: calc(var(--score) * 1.45px);
  min-height: 18px;
  border-radius: 4px 4px 2px 2px;
  background: currentColor;
  box-shadow: 0 12px 20px color-mix(in srgb, currentColor 20%, transparent);
}

.home-score-card .score-bar em {
  color: #5f6b82;
  font-size: 12px;
  line-height: 1;
}

.home-score-card .score-bar small {
  display: block;
  color: currentColor;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.home-score-card .score-bar.metric-green {
  color: #17b982;
}

.home-score-card .score-bar.metric-blue {
  color: #246bff;
}

.home-score-card .score-bar.metric-purple {
  color: #6d35e8;
}

.home-score-card .score-bar.metric-orange {
  color: #ff7a18;
}

.home-score-card .score-bar.unanswered {
  color: #94a3b8;
}

.home-score-card .score-bar.unanswered span {
  height: 0;
  min-height: 0;
  box-shadow: none;
}

.home-score-empty {
  display: grid;
  min-height: 156px;
  margin-top: 12px;
  place-content: center;
  gap: 8px;
  padding: 24px;
  border: 1px dashed #cbd5e1;
  border-radius: var(--card-radius-3mm);
  color: var(--muted);
  background: #f8fafc;
  text-align: center;
}

.home-score-empty strong {
  color: var(--text);
}

.home-score-empty p {
  max-width: 28em;
  margin: 0;
  line-height: 1.6;
}

.home-score-warning {
  margin-top: 12px;
  font-size: 12px;
}

@media (max-width: 700px) {

  .home-level-dashboard {
    grid-template-columns: minmax(0, 1fr) minmax(92px, 0.72fr);
    gap: 8px;
    min-height: 126px;
    padding: 16px 18px;
  }

  .level-ring {
    width: 96px;
    height: 96px;
  }

  .home-level-percent {
    font-size: 25px;
  }
}

@media (max-width: 700px) {

  .score-circle.large {
    width: 104px;
    height: 104px;
    font-size: 31px;
  }
}

/* Web v0.1.0 adaptive application shell (GS-WEB-PIVOT-C03A). */
html {
  min-width: 320px;
  scroll-padding-top: 88px;
}

body {
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

img,
svg,
canvas,
video {
  max-width: 100%;
}

.app-root {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
}

.system-notice {
  position: fixed;
  z-index: 1200;
  inset-inline: max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-right));
  inset-block-start: max(1rem, env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 52rem;
  margin-inline: auto;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.system-notice p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.offline-notice {
  border-color: var(--orange);
}

@media (max-width: 39.99rem) {
  .system-notice {
    align-items: stretch;
    flex-direction: column;
  }
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 120;
  padding: 12px 16px;
  border-radius: 10px;
  color: #fff;
  background: var(--blue-dark);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.launch-screen,
.login-screen {
  position: fixed;
  min-height: 100vh;
  min-height: 100dvh;
}

.application-shell {
  display: block;
  min-height: 100vh;
  min-height: 100dvh;
}

.navigation-sidebar {
  display: none;
}

.sidebar-open-button,
.sidebar-close-button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(141, 156, 180, 0.42);
  border-radius: 999px;
  color: var(--blue-dark);
  background: #fff;
  font-weight: 800;
}

.sidebar-close-button { display: none; }

.sidebar-current-page {
  margin: -8px 0 0;
  padding: 14px 16px;
  border-radius: 22px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.sidebar-logout-button {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(141, 156, 180, 0.48);
  border-radius: 999px;
  color: var(--blue-dark);
  background: #fff;
  font-weight: 800;
  text-align: left;
}

.sidebar-logout-button:disabled { cursor: not-allowed; opacity: .55; }

.app-stage {
  display: block;
  height: auto;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
}

.topbar {
  width: 100%;
  grid-template-columns: minmax(44px, auto) minmax(44px, auto) minmax(0, 1fr);
  gap: 8px;
}

.topbar .sidebar-open-button {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.topbar .back-button {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
}

.topbar-spacer {
  grid-column: 3;
  grid-row: 1;
  width: 100%;
}

.task-layout {
  width: 100%;
  min-width: 0;
}

.app-frame {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: calc(100vh - 78px);
  min-height: calc(100dvh - 78px);
  height: auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow: none;
}

.view {
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0 auto;
  padding: 22px 16px calc(48px + env(safe-area-inset-bottom));
  overflow-wrap: anywhere;
}

.bottom-nav {
  position: fixed;
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-item,
.rail-item,
.back-button,
.icon-button {
  min-width: 44px;
  min-height: 44px;
}

.bottom-item,
.rail-item,
.topbar .brand {
  color: inherit;
  text-decoration: none;
}

.bottom-item[aria-disabled="true"],
.rail-item[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.48;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  scroll-margin-block: 96px;
}

.chat-composer {
  position: static;
  width: 100%;
}

.roleplay-view {
  padding-bottom: calc(48px + env(safe-area-inset-bottom));
}

.supporting-pane {
  display: none;
  min-width: 0;
}

.supporting-facts {
  display: grid;
  gap: 0;
  margin: 12px 0 0;
}

.supporting-facts > div {
  display: grid;
  grid-template-columns: minmax(72px, auto) minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #edf1f7;
}

.supporting-facts dt {
  color: var(--muted);
}

.supporting-facts dd {
  min-width: 0;
  margin: 0;
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}

.account-nav {
  display: grid;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(141, 156, 180, 0.2);
}

.account-entry {
  min-width: 0;
}

.rail-item.account-entry .sidebar-avatar {
  display: block;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border: 1px solid rgba(31, 93, 245, 0.2);
  border-radius: 22%;
  box-shadow: 0 8px 18px rgba(31, 93, 245, 0.2);
}

.account-entry-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.account-entry-copy strong {
  overflow-wrap: anywhere;
}

.account-entry-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.account-entry.active .account-entry-copy small {
  color: var(--blue-dark);
}

.sidebar-release-identity {
  display: none;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 600px) {
  .login-screen {
    align-items: center;
    padding: clamp(24px, 5vw, 64px);
  }
}

@media (min-width: 840px) {
  .application-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .navigation-sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    width: 240px;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    min-height: 0;
    gap: 12px;
    padding: 16px 12px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-right: 1px solid rgba(141, 156, 180, 0.24);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(22px);
  }

  .navigation-sidebar .brand {
    justify-content: flex-start;
    padding: 0 8px;
  }

  .rail-nav {
    flex: 0 0 auto;
    align-content: start;
    gap: 8px;
  }

  .rail-item {
    justify-content: flex-start;
    padding: 12px;
  }

  .sidebar-open-button {
    display: none;
  }

  .sidebar-close-button {
    display: none;
  }

  .view {
    padding-right: clamp(24px, 4vw, 48px);
    padding-bottom: 48px;
    padding-left: clamp(24px, 4vw, 48px);
  }

}

@media (min-width: 720px) {
  .learning-list,
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 840px) {
  .sidebar-release-identity {
    display: block;
  }

  .task-layout {
    max-width: none;
    margin: 0 auto;
    padding: 0 24px 32px;
  }

  .app-frame {
    min-height: calc(100vh - 48px);
    min-height: calc(100dvh - 48px);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .app-frame:has(#view-home.active) {
    background: transparent;
  }

  .topbar:not(.contextual) {
    display: none;
  }

  .topbar.contextual {
    position: static;
    height: 72px;
    padding: 0 clamp(20px, 3vw, 48px);
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .topbar.contextual .sidebar-open-button {
    display: none;
  }

  .topbar.contextual .back-button {
    grid-column: 1;
    grid-row: 1;
  }

  .lesson-study-view,
  .roleplay-view {
    max-width: none;
  }
}

@media (min-width: 1100px) {
  .task-layout:has(.supporting-pane:not([hidden])) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    align-items: start;
    gap: clamp(20px, 3vw, 36px);
  }

  .supporting-pane:not([hidden]) {
    position: static;
    display: grid;
    gap: 14px;
    max-height: none;
    overflow: visible;
  }

  .home-heading {
    grid-column: 1 / -1;
  }

}

@media (min-width: 1200px) {
  .task-layout:has(.supporting-pane:not([hidden])) {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  }

  .learning-list,
  .module-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  }
}

@media (min-width: 1280px) {
  #view-settings.active {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(20px, 2.5vw, 36px);
  }

  #view-settings .page-heading {
    grid-column: 1 / -1;
  }

  #view-settings .settings-primary-column {
    grid-column: 1;
  }

  #view-settings .settings-information-column {
    grid-column: 2;
  }
}

@media (min-width: 840px) and (max-height: 460px) {
  .navigation-sidebar {
    gap: 4px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .rail-nav {
    gap: 4px;
  }

  .rail-item {
    min-height: 44px;
    padding-top: 6px;
    padding-bottom: 6px;
  }
}

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

.contract-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 16px; }
.contract-card { background: var(--surface, #fff); border: 1px solid #d7dfe8; border-radius: 16px; padding: 20px; margin-block: 16px; overflow-wrap: anywhere; }
.contract-card h3 { margin-bottom: 16px; }
.contract-body { white-space: pre-wrap; line-height: 1.8; }
.contract-block img, .contract-block video { display: block; max-width: 100%; height: auto; margin-block: 16px; }
.contract-card button, .contract-actions button, .contract-notice button { min-height: 44px; padding: 10px 16px; border: 1px solid #8799ac; border-radius: 10px; background: #fff; color: #153454; cursor: pointer; }
.contract-card button:disabled { opacity: .55; cursor: default; }
.contract-choice { display: block; width: 100%; margin-block: 8px; text-align: left; }
.contract-choice[aria-pressed="true"] { background: #e2efff; border-color: #1764ac; }
.contract-card textarea { display: block; width: 100%; min-height: 120px; margin-block: 12px; }
.contract-notice { padding: 16px; background: #eef4ff; border-radius: 12px; }

/* ==========================================================================
   学習UI 情報設計 v2（2026-11-10）
   このファイルは学習Webだけが読み込む。管理・運営と共有するexpressive.cssへ
   学習画面専用の配置を置かない。すべて .application-shell 配下に限定する。

   面の強さは3段階だけを使う。
     1. tonal container … その画面で最初に見る1か所（再開・総合成績・次のおすすめ）
     2. 白い面 + 細い枠  … 操作する一覧・比較する値
     3. 面なし           … 履歴・補足・集計方法
   色の役割は共通tokenに合わせる。青=主操作と得点、緑=学習進捗、
   紫=復習と振り返り、暖色=未読の通知。色だけに依存せず名称と数値を併記する。
   ========================================================================== */
@property --lx-ring-value {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

.application-shell {
  --lx-radius-lg: 24px;
  --lx-radius-md: 16px;
  --lx-radius-sm: 12px;
  --lx-hairline: var(--gs-surface-high);
}

/* ---- 共通の小さな部品 ---------------------------------------------------- */
.application-shell .lx-eyebrow {
  margin: 0;
  color: var(--gs-primary);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
}

.application-shell .lx-section-head {
  display: grid;
  gap: 2px;
  margin: 0 0 10px;
}

.application-shell .lx-section-head h2,
.application-shell .lx-panel-head h2 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 750;
  line-height: 1.45;
}

.application-shell .lx-section-head p {
  max-width: 76ch;
  margin: 0;
  color: var(--gs-secondary);
  font-size: 0.8125rem;
  line-height: 1.7;
}

.application-shell .lx-panel {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--gs-outline-variant);
  border-radius: var(--lx-radius-lg);
  background: #fff;
}

.application-shell .lx-panel-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.application-shell .lx-panel-note {
  margin: 4px 0 0;
  color: var(--gs-secondary);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.application-shell .lx-count {
  flex: none;
  padding: 2px 10px;
  border-radius: 999px;
  color: var(--gs-purple);
  background: var(--gs-purple-container);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.7;
  white-space: nowrap;
}

.application-shell .lx-empty {
  margin-top: 10px;
  padding: 12px;
  border: 1px dashed var(--gs-outline-variant);
  border-radius: var(--lx-radius-sm);
  background: var(--gs-surface);
}

.application-shell .lx-empty strong {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.application-shell .lx-empty p {
  margin: 2px 0 0;
  color: var(--gs-secondary);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.application-shell .lx-text-button {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 22px;
  color: var(--gs-primary);
  background: transparent;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
}

.application-shell .lx-inline-warning {
  display: grid;
  gap: 8px;
  justify-items: start;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--lx-radius-sm);
  color: var(--gs-warm);
  background: var(--gs-warm-container);
}

.application-shell .lx-inline-warning p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ---- 円形の計器 ----------------------------------------------------------
   塗りの量が値、中央の文字が同じ値。色の意味は呼び出し側のclassで決める。
   --lx-ring-value は要素自身のstyleで渡す。 */
.application-shell .lx-ring,
.application-shell .rubric-grid .result-barometer {
  position: relative;
  display: grid;
  flex: none;
  width: var(--lx-ring-size, 48px);
  height: var(--lx-ring-size, 48px);
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(
    var(--lx-ring-color, var(--gs-primary)) var(--lx-ring-value, 0%),
    var(--lx-ring-track, var(--gs-surface-high)) 0
  );
  transition: --lx-ring-value 600ms var(--gs-easing);
}

.application-shell .lx-ring::before,
.application-shell .rubric-grid .result-barometer::before {
  position: absolute;
  inset: var(--lx-ring-width, 5px);
  border-radius: 50%;
  background: var(--lx-ring-hole, #fff);
  content: "";
}

.application-shell .lx-ring > span {
  position: relative;
  color: var(--gs-on-surface);
  font-size: clamp(0.6875rem, calc(var(--lx-ring-size, 48px) * 0.25), 0.8125rem);
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.application-shell .lx-ring-progress {
  --lx-ring-color: var(--gs-green);
}

.application-shell .lx-ring-on-tone {
  --lx-ring-hole: var(--gs-primary-container);
  --lx-ring-track: #fff;
}

.application-shell .lx-ring.is-empty > span {
  color: var(--gs-secondary);
}

@starting-style {
  .application-shell .lx-ring,
  .application-shell .rubric-grid .result-barometer {
    --lx-ring-value: 0%;
  }
}

@media (forced-colors: active) {
  .application-shell .lx-ring,
  .application-shell .rubric-grid .result-barometer {
    border: 2px solid CanvasText;
  }
}

/* ---- ホーム --------------------------------------------------------------
   主列=再開と復習（今日やること）、補助列=通知・成績・履歴（状況の確認）。
   列ごとに独立して積み、隣の列の高さへ引き伸ばさない。 */
.application-shell .home-view.active {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.application-shell .home-view.active > * {
  min-width: 0;
  margin-block: 0;
}

.application-shell .lx-home-primary,
.application-shell .lx-home-secondary {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}

.application-shell .home-mission-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
  min-width: 0;
  padding: 14px 16px;
  border-radius: var(--lx-radius-lg);
  color: var(--gs-on-primary-container);
  background: var(--gs-primary-container);
}

.application-shell .lx-resume-symbol {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 18px 12px 18px 12px;
  color: var(--gs-green);
  background: var(--gs-green-container);
}

.application-shell .lx-resume-copy {
  min-width: 0;
}

.application-shell .lx-resume-copy .lx-eyebrow {
  color: inherit;
}

.application-shell .lx-resume-copy h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 750;
  line-height: 1.4;
}

.application-shell .lx-resume-copy p:not(.lx-eyebrow) {
  margin: 2px 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
}

.application-shell .home-mission-card .lx-resume-action {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 48px;
  padding-inline: 24px;
  white-space: nowrap;
}

.application-shell .home-mission-card .lx-resume-action:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.application-shell .lx-notice-jump {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 8px 14px;
  border-radius: var(--lx-radius-md);
  color: var(--gs-warm);
  background: var(--gs-warm-container);
  font-size: 0.9375rem;
  font-weight: 700;
  text-align: left;
}

.application-shell .lx-notice-jump > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}

/* 復習候補：行全体が1つの操作。設問が長くても操作名は折り返さない。 */
.application-shell .lx-review-list {
  display: grid;
  margin: 8px -8px 0;
  padding: 0;
  list-style: none;
}

.application-shell .lx-review-list > li + li {
  border-top: 1px solid var(--lx-hairline);
}

.application-shell .lx-review-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 10px 8px;
  border-radius: var(--lx-radius-sm);
  color: var(--gs-on-surface);
  background: transparent;
  text-align: left;
}

.application-shell .lx-review-row:focus-visible {
  outline-offset: 0;
}

.application-shell .lx-review-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.application-shell .lx-review-text strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.application-shell .lx-review-text small {
  color: var(--gs-secondary);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.application-shell .lx-review-go {
  flex: none;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--gs-on-primary-container);
  background: var(--gs-primary-container);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

/* 成績の一覧では候補を選ぶために全文を読む。 */
.application-shell .results-review-section .lx-review-text strong {
  display: block;
  overflow: visible;
}

/* お知らせ：未読は暖色の面で知らせ、既読は静かな行へ下げる。
   見出し・未読件数・更新を1行に置き、本文は冒頭だけを見せる。 */
.application-shell .learner-notices {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 8px;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 8px 12px 10px 16px;
  border: 1px solid var(--gs-outline-variant);
  border-radius: var(--lx-radius-lg);
  background: #fff;
}

.application-shell .learner-notices-heading {
  display: contents;
}

.application-shell .learner-notices-heading h2 {
  grid-area: 1 / 1;
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 750;
  line-height: 1.45;
}

.application-shell .learner-notices-heading button {
  grid-area: 1 / 2;
  flex: none;
  padding: 0 14px;
  font-size: 0.875rem;
  white-space: nowrap;
}

.application-shell .learner-notices > p:first-of-type {
  grid-area: 2 / 1 / auto / -1;
  justify-self: start;
  margin: 0 0 2px;
  padding: 2px 10px;
  border-radius: 999px;
  color: var(--gs-secondary);
  background: var(--gs-surface-container);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.7;
  white-space: nowrap;
}

.application-shell .learner-notices.has-unread > p:first-of-type {
  color: var(--gs-warm);
  background: var(--gs-warm-container);
}

.application-shell .learner-notices > :not(.learner-notices-heading):not(p:first-of-type) {
  grid-column: 1 / -1;
}

.application-shell .learner-notices > p[role="status"] {
  margin: 0;
  color: var(--gs-error);
  font-size: 0.875rem;
  line-height: 1.6;
}

.application-shell .learner-notices article {
  min-width: 0;
  margin: 6px -4px 0 -8px;
  padding: 10px 12px;
  border-radius: var(--lx-radius-sm);
  background: var(--gs-surface);
  overflow-wrap: anywhere;
}

.application-shell .learner-notices article.is-unread {
  background: #fff3ec;
  box-shadow: inset 4px 0 0 var(--gs-warm);
}

.application-shell .learner-notices article h3 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.5;
}

.application-shell .learner-notice-meta {
  margin: 2px 0 0;
  color: var(--gs-secondary);
  font-size: 0.75rem;
  line-height: 1.5;
}

.application-shell .learner-notice-body {
  margin: 6px 0 0;
  font-size: 0.875rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.application-shell .learner-notice-body.is-clamped {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.application-shell .learner-notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 4px;
}

.application-shell .learner-notice-actions .ghost-button {
  padding: 0 16px;
  font-size: 0.875rem;
}

.application-shell .learner-notice-actions small {
  padding: 0 4px;
  color: var(--gs-secondary);
  font-size: 0.75rem;
  font-weight: 700;
}

.application-shell .learner-notices > .lx-text-button,
.application-shell .learner-notices > .ghost-button {
  justify-self: start;
  margin-top: 4px;
}

/* 成績の概要：数値と入口だけを持つ小さなtile。 */
.application-shell .lx-score-tile {
  --lx-ring-size: 56px;
  --lx-ring-width: 6px;
  --lx-ring-hole: var(--gs-surface-container);
  --lx-ring-track: #fff;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  align-items: center;
  min-width: 0;
  padding: 12px 16px;
  border-radius: var(--lx-radius-lg);
  background: var(--gs-surface-container);
}

.application-shell .lx-score-tile.is-problem {
  grid-template-columns: minmax(0, 1fr);
  color: var(--gs-warm);
  background: var(--gs-warm-container);
}

.application-shell .lx-score-copy {
  min-width: 0;
}

.application-shell .lx-score-copy h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.45;
}

.application-shell .lx-score-copy p:not(.lx-eyebrow) {
  margin: 2px 0 0;
  color: var(--gs-secondary);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.application-shell .lx-score-tile.is-problem p {
  color: inherit;
}

.application-shell .lx-score-tile > .ghost-button {
  grid-column: 2;
  justify-self: start;
  padding: 0 16px;
  font-size: 0.875rem;
}

.application-shell .lx-score-tile.is-problem > .ghost-button {
  grid-column: 1;
}

/* 直近の活動：過去の記録なので面を持たせず、1行の履歴として置く。 */
.application-shell .lx-activity {
  min-width: 0;
  padding: 4px 4px 0 16px;
}

.application-shell .lx-activity .lx-panel-head h2 {
  font-size: 0.9375rem;
}

.application-shell .lx-activity .lx-empty {
  margin-left: -12px;
}

.application-shell .lx-activity-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 10px;
  align-items: center;
  margin-top: 6px;
}

.application-shell .lx-activity-mark {
  width: 10px;
  height: 10px;
  margin-inline: 4px;
  border-radius: 50%;
  background: var(--gs-green);
  box-shadow: 0 0 0 4px var(--gs-green-container);
}

.application-shell .lx-activity-copy {
  min-width: 0;
}

.application-shell .lx-activity-copy strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.5;
}

.application-shell .lx-activity-copy p {
  margin: 0;
  color: var(--gs-secondary);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.application-shell .lx-activity-row > .lx-text-button {
  grid-column: 2;
  justify-self: start;
  margin-left: -12px;
}

/* ---- 知識学習 ------------------------------------------------------------
   標準教材は「おすすめの順番」を番号とつなぎ線で示す道筋。
   次に取り組むカテゴリだけをtonal containerにする。 */
.application-shell .lx-path-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.application-shell .lx-path-step {
  position: relative;
  min-width: 0;
}

.application-shell .lx-path-step + .lx-path-step::before {
  position: absolute;
  top: -10px;
  left: 41px;
  width: 2px;
  height: 10px;
  background: var(--gs-outline-variant);
  content: "";
}

.application-shell .lx-path-card {
  position: relative;
  display: grid;
  grid-template-areas:
    "media title ring"
    "summary summary summary"
    "next next next"
    "chips chips chips";
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 12px 14px 12px 16px;
  border: 1px solid var(--gs-outline-variant);
  border-radius: var(--lx-radius-lg);
  color: var(--gs-on-surface);
  background: #fff;
  text-align: left;
}

.application-shell .lx-path-card:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.application-shell .lx-path-step.is-next .lx-path-card {
  --lx-ring-hole: var(--gs-primary-container);
  --lx-ring-track: #fff;
  border-color: transparent;
  color: var(--gs-on-primary-container);
  background: var(--gs-primary-container);
}

.application-shell .lx-path-order {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--gs-on-surface);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  line-height: 1;
}

.application-shell .lx-path-card .category-media {
  grid-area: media;
  width: 44px;
  height: 44px;
  margin: 4px 0 0 4px;
  border-radius: 16px 12px 16px 12px;
}

.application-shell .lx-path-copy {
  display: contents;
}

.application-shell .lx-path-title {
  display: flex;
  flex-wrap: wrap;
  grid-area: title;
  gap: 4px 8px;
  align-items: center;
  min-width: 0;
}

.application-shell .lx-path-title strong {
  font-size: 1.125rem;
  font-weight: 750;
  line-height: 1.4;
}

.application-shell .lx-chip-next {
  padding: 2px 10px;
  border-radius: 999px;
  color: var(--gs-on-primary);
  background: var(--gs-primary);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}

.application-shell .lx-path-summary {
  grid-area: summary;
  color: var(--gs-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

.application-shell .lx-path-step.is-next .lx-path-summary {
  color: inherit;
}

.application-shell .lx-path-next {
  grid-area: next;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
}

.application-shell .lx-path-chips {
  display: flex;
  flex-wrap: wrap;
  grid-area: chips;
  gap: 4px 6px;
}

.application-shell .lx-path-chips:empty {
  display: none;
}

.application-shell .lx-path-chips span {
  padding: 1px 8px;
  border-radius: 999px;
  color: var(--gs-secondary);
  background: var(--gs-surface-container);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.7;
}

.application-shell .lx-path-step.is-next .lx-path-chips span {
  color: var(--gs-on-primary-container);
  background: #ffffffa6;
}

.application-shell .lx-path-progress {
  display: grid;
  grid-area: ring;
  gap: 2px;
  justify-items: center;
}

.application-shell .lx-path-progress small {
  color: var(--gs-secondary);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.application-shell .lx-path-step.is-next .lx-path-progress small {
  color: inherit;
}

.application-shell .lx-path-status {
  grid-area: ring;
  padding: 2px 10px;
  border-radius: 999px;
  color: var(--gs-secondary);
  background: var(--gs-surface-high);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.7;
  white-space: nowrap;
}

.application-shell .lx-path-card .lx-path-arrow {
  display: none;
  color: var(--gs-outline);
}

/* 次のカテゴリは面が青になるため、同系色のアイコン面を白へ寄せて埋もれさせない。 */
.application-shell .lx-path-step.is-next .category-media {
  background-color: #ffffffa6;
}

/* 契約教材：標準の道筋とは別の、所属先が指定する入口。 */
.application-shell .lx-assigned {
  margin-top: 20px;
}

.application-shell .lx-assigned-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  max-width: 44rem;
  min-height: 64px;
  padding: 10px 16px 10px 12px;
  border-radius: var(--lx-radius-lg);
  color: var(--gs-purple);
  background: var(--gs-purple-container);
  text-align: left;
}

.application-shell .lx-assigned-symbol {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 16px 12px 16px 12px;
  background: #ffffffa6;
}

.application-shell .lx-assigned-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.application-shell .lx-assigned-copy strong {
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.45;
}

.application-shell .lx-assigned-copy span {
  font-size: 0.8125rem;
  line-height: 1.6;
}

.application-shell .lx-assigned-card .lx-path-arrow {
  color: inherit;
}

/* ---- 接客練習 ------------------------------------------------------------
   条件・進み具合・振り返りを1行に集約し、変更は必要な時だけ開く。
   チャットと回答は主列、シナリオは参照用に横へ固定する（広い画面のみ）。 */
.application-shell .lx-practice-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 12px;
}

.application-shell .lx-settings-chip {
  display: inline-flex;
  flex: 1 1 100%;
  gap: 8px;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  padding: 6px 12px 6px 14px;
  border: 1px solid var(--gs-outline-variant);
  border-radius: 24px;
  color: var(--gs-on-surface);
  background: #fff;
  text-align: left;
}

.application-shell .lx-settings-chip[aria-expanded="true"] {
  border-color: transparent;
  color: var(--gs-on-primary-container);
  background: var(--gs-primary-container);
}

.application-shell .lx-settings-chip-copy {
  display: grid;
  flex: 1;
  min-width: 0;
}

.application-shell .lx-settings-chip-copy small {
  color: var(--gs-primary);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.4;
}

.application-shell .lx-settings-chip-copy strong {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.application-shell .lx-settings-chevron {
  transition: transform var(--gs-motion) var(--gs-easing);
}

.application-shell .lx-settings-chip[aria-expanded="true"] .lx-settings-chevron {
  transform: rotate(180deg);
}

.application-shell .lx-practice-progress {
  display: grid;
  flex: 1 1 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: baseline;
  min-width: 0;
}

.application-shell .lx-practice-progress > span {
  color: var(--gs-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
}

.application-shell .lx-practice-progress > strong {
  color: var(--gs-primary);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  line-height: 1.5;
  white-space: nowrap;
}

.application-shell .proposal-progress-track {
  grid-column: 1 / -1;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--gs-surface-high);
}

.application-shell .proposal-progress-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gs-primary);
  transition: width var(--gs-motion) var(--gs-easing);
}

.application-shell .lx-practice-bar > .ghost-button {
  flex: none;
  padding: 0 18px;
}

.application-shell .lx-settings-panel {
  display: grid;
  gap: 12px;
  max-width: 60rem;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid var(--gs-outline-variant);
  border-radius: var(--lx-radius-lg);
  background: #fff;
}

.application-shell .proposal-control-group {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.application-shell .proposal-control-label {
  color: var(--gs-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
}

.application-shell .roleplay-product-list,
.application-shell .proposal-chat-stage-list,
.application-shell .proposal-chat-difficulty-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.application-shell .roleplay-product,
.application-shell .proposal-chat-stage,
.application-shell .proposal-chat-difficulty {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--gs-outline-variant);
  border-radius: 22px;
  color: var(--gs-secondary);
  background: #fff;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.4;
}

.application-shell .roleplay-product {
  padding-left: 8px;
}

.application-shell .roleplay-product .product-thumb {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 10px 8px 10px 8px;
}

.application-shell .roleplay-product.active,
.application-shell .proposal-chat-stage.active,
.application-shell .proposal-chat-difficulty.active {
  border-color: var(--gs-primary);
  color: var(--gs-on-primary-container);
  background: var(--gs-primary-container);
  font-weight: 750;
}

/* 選択中は色に加えて印でも示す。 */
.application-shell .proposal-chat-stage.active::before,
.application-shell .proposal-chat-difficulty.active::before {
  width: 18px;
  height: 18px;
  flex: none;
  background: currentColor;
  content: "";
  mask: var(--gs-symbol-task-alt) center / contain no-repeat;
}

.application-shell .lx-settings-apply {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--lx-hairline);
}

.application-shell .lx-settings-panel .proposal-settings-apply {
  min-height: 48px;
  padding-inline: 28px;
}

.application-shell .proposal-settings-note {
  color: var(--gs-secondary);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.application-shell .lx-practice-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.application-shell .lx-practice-flow {
  min-width: 0;
}

.application-shell .lx-practice-flow > .chat-log {
  margin-top: 0;
}

/* シナリオ：回答中に見返す参照情報。枠ではなく面の色で本文と分ける。 */
.application-shell .scenario-card {
  min-width: 0;
  margin: 0;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--lx-radius-lg);
  background: var(--gs-surface-container);
  box-shadow: none;
}

.application-shell .scenario-heading {
  color: var(--gs-primary);
  font-size: 0.8125rem;
  font-weight: 750;
  line-height: 1.5;
}

.application-shell #scenario-detail {
  display: grid;
  gap: 0;
  margin: 4px 0 0;
}

.application-shell .scenario-details-toggle {
  display: none;
}

@media (max-width: 1023px) {
  .application-shell .scenario-heading > strong {
    display: none;
  }

  .application-shell .scenario-details-toggle {
    display: flex;
    width: 100%;
    margin: 0;
    justify-content: space-between;
  }

  .application-shell .scenario-details-toggle::after {
    width: 20px;
    height: 20px;
    flex: none;
    content: "";
    background: currentColor;
    mask: var(--gs-symbol-expand-more) center / contain no-repeat;
  }

  .application-shell .scenario-details-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
  }

  .application-shell #scenario-detail:not(.is-expanded) {
    display: none;
  }
}

.application-shell #scenario-detail .scenario-table-row {
  display: grid;
  grid-template-columns: 5.25em minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 7px 0;
  border-top: 1px solid var(--gs-outline-variant);
}

.application-shell #scenario-detail .scenario-table-row:first-child {
  border-top: 0;
}

.application-shell #scenario-detail dt {
  color: var(--gs-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.6;
}

.application-shell #scenario-detail dd {
  min-width: 0;
  margin: 0;
  color: var(--gs-on-surface);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.6;
}

.application-shell #scenario-detail .scenario-customer {
  display: flex;
  gap: 6px;
  align-items: center;
}

.application-shell .scenario-customer-symbol {
  width: 22px;
  height: 22px;
  color: var(--gs-purple);
}

/* チャットの回答：吹き出しの形は保ち、狭い幅では選択肢の読める幅を優先する。 */
.application-shell .proposal-choice-bubble {
  border-radius: 20px 20px 6px 20px;
}

@media (max-width: 479px) {
  .application-shell .proposal-chat-choice-shell {
    grid-template-columns: minmax(0, 1fr);
    width: calc(100% - 12px);
  }

  .application-shell .proposal-chat-choice-shell > .chat-avatar {
    display: none;
  }

  .application-shell .message {
    max-width: 96%;
  }
}

/* ---- 成績 ----------------------------------------------------------------
   読む順番：総合 → カテゴリ別（学習進捗と得点率を円で並べる）→ 次の復習 → 集計方法。 */
.application-shell .lx-results-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.application-shell .score-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 0;
  border-radius: var(--lx-radius-lg);
  background: var(--gs-purple-container);
}

.application-shell .score-summary.is-empty {
  background: var(--gs-surface-container);
}

.application-shell .score-summary .score-circle.large {
  width: 92px;
  height: 92px;
  box-shadow: none;
  font-size: 1.625rem;
  font-variant-numeric: tabular-nums;
}

.application-shell .score-summary.is-empty .score-circle.large {
  color: var(--gs-secondary);
  font-size: 0.9375rem;
}

.application-shell .lx-summary-copy {
  min-width: 0;
}

.application-shell .lx-summary-copy h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 750;
  line-height: 1.4;
}

.application-shell .lx-summary-copy p {
  margin: 4px 0 0;
  color: var(--gs-secondary);
  font-size: 0.875rem;
  line-height: 1.65;
}

.application-shell .lx-summary-copy .results-start-button {
  margin-top: 10px;
}

.application-shell .lx-category-status {
  min-width: 0;
  padding: 14px 16px 6px;
  border: 1px solid var(--gs-outline-variant);
  border-radius: var(--lx-radius-lg);
  background: #fff;
}

.application-shell .lx-category-status .lx-section-head {
  margin-bottom: 4px;
}

.application-shell .rubric-grid {
  --lx-ring-size: 56px;
  --lx-ring-width: 6px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
}

.application-shell .rubric-grid > article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 10px 0;
  border-top: 1px solid var(--lx-hairline);
}

.application-shell .rubric-grid > article:first-child {
  border-top: 0;
}

.application-shell .rubric-value {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.application-shell .rubric-value > span {
  color: var(--gs-on-surface);
  font-size: 0.9375rem;
  font-weight: 750;
  line-height: 1.45;
}

.application-shell .rubric-value > small {
  color: var(--gs-secondary);
  font-size: 0.75rem;
  line-height: 1.55;
}

.application-shell .rubric-value > .rubric-version-note {
  color: var(--gs-warm);
}

.application-shell .lx-metric-pair {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.application-shell .rubric-metric {
  display: grid;
  gap: 4px;
  justify-items: center;
  width: 60px;
}

.application-shell .rubric-metric > span {
  color: var(--gs-secondary);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.application-shell .lx-ring-slot {
  position: relative;
  display: grid;
  place-items: center;
}

.application-shell .lx-ring-slot > strong {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--gs-on-surface);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  line-height: 1;
}

.application-shell .rubric-grid .result-barometer.learning-meter {
  --lx-ring-color: var(--gs-green);
}

/* 未回答は0%の円ではなく、破線の空の円と文字で示す。 */
.application-shell .rubric-grid .result-barometer.unanswered {
  border: 2px dashed var(--gs-outline-variant);
  background: transparent;
}

.application-shell .rubric-grid .result-barometer.unanswered::before {
  display: none;
}

.application-shell .rubric-metric.unanswered .lx-ring-slot > strong {
  color: var(--gs-secondary);
  font-size: 0.6875rem;
}

.application-shell .rubric-grid > article.unanswered .rubric-value > span {
  color: var(--gs-secondary);
}

.application-shell .results-review-section {
  margin-top: 12px;
}

.application-shell .results-method-card {
  margin-top: 12px;
  padding: 0 16px;
  border: 1px solid var(--gs-outline-variant);
  border-radius: var(--lx-radius-md);
  color: var(--gs-secondary);
  background: transparent;
}

.application-shell .results-method-card > summary {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 700;
  list-style: none;
}

.application-shell .results-method-card > summary::-webkit-details-marker {
  display: none;
}

.application-shell .results-method-card > summary::after {
  width: 24px;
  height: 24px;
  margin-left: auto;
  background: currentColor;
  content: "";
  mask: var(--gs-symbol-expand-more) center / contain no-repeat;
  transition: transform var(--gs-motion) var(--gs-easing);
}

.application-shell .results-method-card[open] > summary::after {
  transform: rotate(180deg);
}

.application-shell .results-method-card > ul {
  margin: 0 0 14px;
  padding-left: 1.25em;
  font-size: 0.875rem;
  line-height: 1.8;
}

/* ---- 操作への応答 -------------------------------------------------------- */
@media (hover: hover) {
  .application-shell .lx-text-button:hover,
  .application-shell .lx-review-row:hover {
    background: var(--gs-surface-container);
  }

  .application-shell .lx-review-row:hover .lx-review-go {
    color: var(--gs-on-primary);
    background: var(--gs-primary);
  }

  .application-shell .lx-path-card:hover:not(:disabled),
  .application-shell .lx-settings-chip:hover,
  .application-shell .roleplay-product:hover,
  .application-shell .proposal-chat-stage:hover,
  .application-shell .proposal-chat-difficulty:hover {
    border-color: var(--gs-primary);
  }

  .application-shell .lx-path-card:hover:not(:disabled) .category-media {
    border-radius: 50%;
    transition: border-radius 320ms var(--gs-spring);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .application-shell .lx-settings-panel:not([hidden]) {
    animation: gs-enter var(--gs-motion) var(--gs-easing) both;
  }
}

/* 結果と解説は学習の主情報として、補足文より大きく読みやすくする。 */
.application-shell .view .answer-feedback,
.application-shell .view .coach-panel {
  gap: 12px;
  padding: 20px;
  border-radius: 20px;
}

.application-shell .view .answer-feedback {
  border-inline-start-width: 4px;
}

.application-shell .answer-feedback > strong,
.application-shell .contract-answer-result {
  margin-block: 0;
  font-size: 1.25rem;
  font-weight: 750;
  line-height: 1.45;
}

.application-shell .answer-feedback p,
.application-shell .coach-panel p:last-child,
.application-shell .proposal-review-block p,
.application-shell .contract-answer-explanation p {
  color: var(--gs-on-surface);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
}

.application-shell .coach-panel .eyebrow,
.application-shell .proposal-review-block > strong,
.application-shell .answer-feedback :is(.model-answer, .review-criteria) > span {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.application-shell .contract-answer-result {
  margin-top: 12px;
}

.application-shell .contract-answer-explanation {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: var(--lx-radius-md);
  background: var(--gs-surface-container);
}

.application-shell .contract-answer-explanation > summary {
  min-height: 44px;
  align-content: center;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 599px) {
  .application-shell .view .answer-feedback,
  .application-shell .view .coach-panel {
    padding: 16px;
  }
}

/* ---- 幅への適応 ----------------------------------------------------------
   幅が増えたら縮尺を変えるのではなく、主操作の位置と列の役割を変える。 */
@media (min-width: 420px) {
  .application-shell .learner-notices {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .application-shell .learner-notices-heading button {
    grid-area: 1 / 3;
  }

  .application-shell .learner-notices > p:first-of-type {
    grid-area: 1 / 2;
    margin: 0;
  }

  .application-shell .lx-activity-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .application-shell .lx-activity-row > .lx-text-button {
    grid-column: 3;
    margin-left: 0;
  }
}

@media (min-width: 600px) {
  .application-shell .home-mission-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 14px 16px 14px 18px;
  }

  .application-shell .home-mission-card .lx-resume-action {
    grid-column: auto;
    width: auto;
  }

  .application-shell .lx-path-card {
    grid-template-areas:
      "media title ring arrow"
      "media summary ring arrow"
      "media next ring arrow"
      "media chips ring arrow";
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    padding-block: 14px;
  }

  .application-shell .lx-path-card .category-media {
    align-self: start;
    width: 52px;
    height: 52px;
  }

  .application-shell .lx-path-card .lx-path-arrow {
    display: block;
    grid-area: arrow;
  }

  .application-shell .lx-path-step + .lx-path-step::before {
    left: 45px;
  }
}

@media (min-width: 720px) {
  .application-shell .lx-settings-chip {
    flex: 0 1 auto;
    max-width: 100%;
  }

  .application-shell .lx-practice-progress {
    flex: 0 1 280px;
  }

  .application-shell .lx-practice-bar > .ghost-button {
    margin-left: auto;
  }

  .application-shell .proposal-control-group {
    grid-template-columns: 4.5em minmax(0, 1fr);
    gap: 12px;
    align-items: center;
  }

  .application-shell .rubric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }

  .application-shell .rubric-grid > article:nth-child(2) {
    border-top: 0;
  }
}

/* PCでは画面の外側とセクション間に余白を置き、部品内の密度は保つ。 */
@media (min-width: 840px) {
  .application-shell .app-frame > .view {
    padding-top: 32px;
  }

  .application-shell .home-view.active {
    row-gap: 24px;
  }

  .application-shell .lx-home-primary,
  .application-shell .lx-home-secondary,
  .application-shell .lx-results-overview {
    gap: 24px;
  }

  .application-shell .lx-assigned,
  .application-shell .results-review-section,
  .application-shell .results-method-card {
    margin-top: 24px;
  }

  .application-shell .lx-practice-bar,
  .application-shell .lx-settings-panel {
    margin-bottom: 24px;
  }
}

@media (min-width: 1024px) {
  .application-shell .home-view.active {
    grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr);
  }

  .application-shell .home-view.active > :not(.lx-home-primary):not(.lx-home-secondary) {
    grid-column: 1 / -1;
  }

  /* 補助列の先頭にお知らせが見えているため、移動用の案内は不要。 */
  .application-shell .lx-notice-jump {
    display: none;
  }
}

@media (min-width: 1100px) {
  .application-shell .lx-path-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }

  .application-shell .lx-path-step + .lx-path-step::before {
    top: 50%;
    left: -22px;
    width: 16px;
    height: 16px;
    background: var(--gs-outline);
    mask: var(--gs-symbol-arrow-forward) center / contain no-repeat;
    transform: translateY(-50%);
  }

  .application-shell .lx-path-card {
    grid-template-areas:
      "media . ring"
      "title title title"
      "summary summary summary"
      "next next next"
      "chips chips chips";
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto auto 1fr;
    gap: 6px 12px;
    align-content: start;
    padding: 16px;
  }

  .application-shell .lx-path-chips {
    align-self: end;
    padding-top: 4px;
  }

  .application-shell .lx-path-card .lx-path-arrow {
    display: none;
  }

  .application-shell .lx-results-overview {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .application-shell .lx-practice-layout {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 30%);
    gap: 16px;
  }

  .application-shell .lx-practice-flow {
    grid-row: 1;
    grid-column: 1;
  }

  .application-shell .lx-practice-layout > .scenario-card {
    position: sticky;
    top: 16px;
    grid-row: 1;
    grid-column: 2;
  }
}

/* 学習項目は縦に追える同じ部品をホームとカテゴリ詳細で使う。 */
.application-shell .lx-module-path {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.application-shell .lx-module-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px 12px;
  align-items: start;
  min-width: 0;
  padding: 16px 0;
}

.application-shell .lx-module-step + .lx-module-step {
  border-top: 1px solid var(--lx-hairline);
}

.application-shell .lx-module-icon {
  width: 36px;
  height: 36px;
  min-height: 0;
  border-radius: 12px;
}

.application-shell .lx-module-copy {
  min-width: 0;
}

.application-shell .lx-module-copy h3 {
  margin: 0;
  color: var(--gs-on-surface);
  font-size: 1.0625rem;
  line-height: 1.45;
}

.application-shell .lx-module-copy p {
  max-width: 68ch;
  margin: 6px 0 4px;
  color: var(--gs-on-surface);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.application-shell .lx-module-copy small,
.application-shell .lx-module-progress small {
  color: var(--gs-secondary);
  font-size: 0.75rem;
  line-height: 1.5;
}

.application-shell .lx-module-progress {
  display: grid;
  gap: 4px;
  justify-items: center;
  align-self: center;
}

.application-shell .lx-module-progress .lx-ring {
  --lx-ring-size: 44px;
}

.application-shell .lx-module-action {
  grid-column: 2 / -1;
  justify-self: start;
  width: auto;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 8px 18px;
  line-height: 1.5;
  white-space: normal;
  text-align: center;
}

.application-shell .lx-module-step.locked .lx-module-action {
  color: var(--gs-secondary);
  opacity: 1;
}

.application-shell #view-category .lx-module-path {
  padding: 0 16px;
  border: 1px solid var(--gs-outline-variant);
  border-radius: var(--lx-radius-lg);
  background: #fff;
}

.application-shell #view-category .stage-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.application-shell #view-category .stage-card {
  min-width: 0;
  min-height: 44px;
  padding: 12px 8px;
}

@media (max-width: 599px) {
  .application-shell .lx-module-step {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .application-shell .lx-module-copy {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .application-shell .lx-module-progress {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    max-width: 48px;
    text-align: center;
  }

  .application-shell .lx-module-progress small {
    font-size: 0.6875rem;
  }

  .application-shell .lx-module-action {
    width: 100%;
  }

  .application-shell .lx-home-path .lx-module-step {
    grid-template-columns: 36px minmax(0, 1fr) auto;
  }

  .application-shell .lx-home-path .lx-module-copy,
  .application-shell .lx-home-path .lx-module-progress {
    grid-column: auto;
    grid-row: auto;
  }

  .application-shell .lx-home-path .lx-module-progress {
    align-self: center;
    max-width: 56px;
  }
}

/* カテゴリ選択は縦の道筋。選択中の面と「おすすめ」の印を分ける。 */
.application-shell #view-learn .lx-path-list {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.application-shell #view-learn .lx-path-card {
  grid-template-areas:
    "media title ring"
    "summary summary summary"
    "next next next"
    "chips chips chips";
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-rows: auto;
  gap: 6px 10px;
  height: auto;
  padding: 16px;
}

.application-shell #view-learn .lx-path-card .category-media {
  width: 40px;
  height: 40px;
}

.application-shell #view-learn .lx-path-card .lx-path-arrow {
  display: none;
}

.application-shell #view-learn .lx-path-step + .lx-path-step::before {
  top: -12px;
  left: 36px;
  width: 2px;
  height: 12px;
  background: var(--gs-outline-variant);
  mask: none;
  transform: none;
}

.application-shell #view-learn .lx-path-step.is-next .lx-path-card {
  border-color: var(--gs-outline-variant);
  color: var(--gs-on-surface);
  background: #fff;
}

.application-shell #view-learn .lx-path-step .lx-path-card[aria-pressed="true"] {
  border-color: var(--gs-primary);
  color: var(--gs-on-primary-container);
  background: var(--gs-primary-container);
}

.application-shell #view-results .lx-results-overview {
  grid-template-columns: minmax(0, 1fr);
}

/* カテゴリはPCで比較し、モバイルでは一件ずつ読み進める。 */
@media (max-width: 719px) {
  .application-shell #view-results .rubric-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .application-shell #view-results .rubric-grid > article + article {
    border-top: 1px solid var(--lx-hairline);
  }
}

.application-shell .lx-category-review {
  justify-self: start;
  margin-left: -12px;
}

.application-shell #view-results .rubric-grid > article.is-selected .rubric-value > span {
  color: var(--gs-primary);
}

@media (min-width: 1024px) {
  .application-shell .app-frame:is([data-current-view="learn"], [data-current-view="category"]) {
    display: grid;
    grid-template-columns: minmax(260px, 26%) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    align-content: start;
  }

  .application-shell .app-frame:is([data-current-view="learn"], [data-current-view="category"]) > :is(#view-learn, #view-category) {
    display: block;
    min-width: 0;
  }

  .application-shell .app-stage:has(.app-frame[data-current-view="category"]) > .topbar.contextual {
    display: none;
  }

  .application-shell #view-category .category-detail-hero {
    margin-bottom: 16px;
  }

  .application-shell #view-category .category-detail-hero > .back-inline,
  .application-shell #view-category .detail-progress {
    display: none;
  }

  .application-shell #view-category .stage-list {
    gap: 10px;
  }

  .application-shell #view-category .stage-card {
    padding: 12px;
  }

  .application-shell #view-results .rubric-grid > article {
    padding-block: 18px;
  }

  .application-shell #view-results .score-summary {
    padding: 0;
    background: transparent;
  }

  .application-shell .lx-home-path .lx-module-step {
    grid-template-columns: 36px minmax(0, 1fr) auto minmax(100px, auto);
    align-items: center;
  }

  .application-shell .lx-home-path .lx-module-action {
    grid-column: auto;
    max-width: 13rem;
  }
}

@media (min-width: 1400px) {
  .application-shell #view-category .lx-module-step {
    grid-template-columns: 36px minmax(0, 1fr) auto minmax(100px, auto);
    gap: 16px;
    align-items: center;
  }

  .application-shell #view-category .lx-module-action {
    grid-column: auto;
    justify-self: end;
    max-width: 15rem;
  }
}

/* モバイルは帯を作らず、メニュー操作だけを左上に浮かせる。 */
@media (max-width: 839px) {
  .application-shell .topbar {
    position: fixed;
    inset: calc(8px + env(safe-area-inset-top)) auto auto calc(12px + env(safe-area-inset-left));
    display: block;
    width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .application-shell .topbar .sidebar-open-button {
    display: grid;
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 12px;
    place-items: center;
    border: 0;
    border-radius: 16px;
    color: var(--gs-on-primary-container);
    background: var(--gs-primary-container);
    box-shadow: 0 4px 12px #18243a1f;
  }

  .application-shell .topbar .sidebar-open-button:hover {
    background: var(--gs-surface-high);
  }

  /* カテゴリと教材の本文内にある戻る操作を使う。 */
  .application-shell .topbar :is(.back-button, .topbar-spacer) {
    display: none;
  }

  .application-shell .app-stage {
    padding-top: calc(56px + env(safe-area-inset-top));
  }

  .application-shell .app-frame {
    min-height: calc(100dvh - 56px - env(safe-area-inset-top));
    padding-top: 0;
  }
}

/* 主要な文字だけを一段抑え、補助情報と入力欄を小さくしすぎない。 */
@media (max-width: 599px) {
  .application-shell .app-stage {
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  .application-shell .app-frame .view h2 {
    font-size: 1rem;
    line-height: 1.45;
  }

  .application-shell .app-frame .view h3 {
    font-size: 0.9375rem;
    line-height: 1.5;
  }

  .application-shell .view .lx-path-title strong {
    font-size: 1rem;
  }

  .application-shell .view :is(.category-detail-hero h1, .lesson-study-header h1) {
    font-size: 1.125rem;
  }

  .application-shell .view :is(.lx-path-summary, .lx-path-next, .lx-resume-copy p:not(.lx-eyebrow)) {
    font-size: 0.8125rem;
  }

  .application-shell .view .lx-module-copy p {
    font-size: 0.875rem;
    line-height: 1.6;
  }

  .application-shell .view button {
    font-size: 0.875rem;
  }

  .application-shell .view :is(.choice, .choice-button, .proposal-chat-choice, .bubble) {
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  .application-shell .view .study-card h2 {
    font-size: 1.0625rem;
  }

  .application-shell .view .lx-module-step {
    gap: 8px 10px;
    padding-block: 12px;
  }

  .application-shell #view-learn .lx-path-card {
    padding: 12px;
  }

  .application-shell .view :is(.lx-path-progress small, .lx-module-progress small, .rubric-metric > span) {
    font-size: 0.75rem;
  }

  /* 解説は本文より読みやすく、正誤は明確な強調を保つ。 */
  .application-shell .view :is(.answer-feedback > strong, .contract-answer-result) {
    font-size: 1.25rem;
  }

  .application-shell .view :is(.answer-feedback p, .coach-panel p:last-child, .proposal-review-block p, .contract-answer-explanation p) {
    font-size: 1rem;
    line-height: 1.8;
  }

  .application-shell :is(input:not([type=checkbox]):not([type=radio]), select, textarea) {
    font-size: 1rem;
  }
}

/* カテゴリの主題、説明、学べる内容を別の行で読めるようにする。 */
.application-shell #view-category .category-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0 0 8px;
}

.application-shell #view-category .category-detail-hero {
  display: grid;
  gap: 12px;
  padding: 20px;
  text-align: left;
}

.application-shell #view-category .category-heading-line {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.application-shell #view-category .category-heading-line > .category-media {
  flex: none;
  width: 40px;
  height: 40px;
  min-height: 0;
  border-radius: 14px;
}

.application-shell #view-category .category-title-copy {
  min-width: 0;
}

.application-shell #view-category .category-title-copy h1 {
  margin: 0;
  font-size: 1.375rem;
  line-height: 1.4;
}

.application-shell #view-category .category-overall-progress {
  display: grid;
  flex: none;
  gap: 4px;
  justify-items: center;
  margin-left: auto;
}

.application-shell #view-category .category-overall-progress .lx-ring {
  --lx-ring-size: 44px;
}

.application-shell #view-category .category-overall-progress small {
  color: var(--gs-secondary);
  font-size: 0.75rem;
  line-height: 1.4;
}

.application-shell #view-category .category-description {
  max-width: 68ch;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.application-shell #view-category .category-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0;
  padding: 0;
  color: var(--gs-secondary);
  font-size: 0.8125rem;
  line-height: 1.6;
  list-style: none;
}

.application-shell #view-category .category-topics > li + li::before {
  margin-right: 10px;
  color: var(--gs-outline);
  content: "·";
}

.application-shell #view-category .service-type-notice {
  margin: 0;
}

.application-shell #view-category .category-difficulty {
  margin-block: 16px;
}

.application-shell #view-category .category-difficulty-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.application-shell #view-category .category-difficulty-heading h2 {
  margin: 0;
  font-size: 1rem;
}

.application-shell #view-category .category-difficulty-heading > span {
  color: var(--gs-secondary);
  font-size: 0.75rem;
}

.application-shell #view-category .category-stage-description,
.application-shell #view-category .stage-availability {
  display: none;
}

@media (min-width: 840px) {
  .application-shell #view-category .category-back {
    display: none;
  }
}

/* モバイルの一般sectionは外枠を重ねず、共通gutterと区切りで読む。 */
@media (max-width: 839px) {
  .application-shell .app-frame .view {
    padding-inline: 0;
  }

  .application-shell .app-frame .view :is(.lx-panel, .lx-category-status, .learner-notices, .settings-card, .lesson-study-header, .study-card, .scenario-card, .contract-card) {
    padding-inline: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .application-shell #view-category .category-detail-hero {
    padding: 0 0 16px;
    border: 0;
    border-bottom: 1px solid var(--gs-outline-variant);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .application-shell #view-category .lx-module-path {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .application-shell #view-learn .lx-path-card {
    padding: 12px 8px;
    border: 0;
    border-radius: 12px;
    background: transparent;
  }

  .application-shell #view-learn .lx-path-step.is-next .lx-path-card {
    background: transparent;
  }

  .application-shell #view-learn .lx-path-step .lx-path-card[aria-pressed="true"] {
    background: var(--gs-primary-container);
  }

  .application-shell #view-learn .lx-path-step + .lx-path-step::before {
    display: none;
  }

  .application-shell #view-learn .lx-path-step + .lx-path-step {
    border-top: 1px solid var(--gs-outline-variant);
  }

  .application-shell #view-home.active,
  .application-shell #view-home :is(.lx-home-primary, .lx-home-secondary) {
    gap: 0;
  }

  .application-shell #view-home :is(.lx-panel, .learner-notices, .lx-score-tile, .lx-activity) {
    margin: 0;
    padding: 16px 0;
    border-top: 1px solid var(--gs-outline-variant);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .application-shell #view-home .home-mission-card {
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 16px;
  }

  .application-shell .view .learner-notices article {
    margin: 8px 0 0;
  }

  .application-shell .view .learner-notices article:not(.is-unread) {
    padding: 8px 0;
    border-radius: 0;
    background: transparent;
  }

  .application-shell .view .lx-review-list {
    margin-inline: 0;
  }

  .application-shell .view .lx-review-row {
    padding-inline: 0;
  }

  .application-shell #view-results .score-summary {
    gap: 12px;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--gs-outline-variant);
    border-radius: 0;
    background: transparent;
  }

  .application-shell #view-results .score-summary .score-circle.large {
    width: 80px;
    height: 80px;
  }

  .application-shell #view-results .lx-category-status {
    padding-block: 12px 0;
  }

  .application-shell #view-results .results-review-section {
    padding-block: 16px 0;
    border-top: 1px solid var(--gs-outline-variant);
  }

  .application-shell #view-results .results-method-card,
  .application-shell #view-settings .source-card {
    padding-inline: 0;
    border: 0;
    border-top: 1px solid var(--gs-outline-variant);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .application-shell #view-settings .settings-card + .settings-card,
  .application-shell .view .contract-card + .contract-card {
    border-top: 1px solid var(--gs-outline-variant);
  }

  .application-shell #view-lesson .lesson-study-header {
    padding-block: 0 16px;
    border-bottom: 1px solid var(--gs-outline-variant);
  }

  .application-shell #view-roleplay .proposal-choice-bubble {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .application-shell #view-roleplay .proposal-choice-bubble::after {
    display: none;
  }

  .application-shell #view-roleplay .proposal-chat-choice-shell {
    grid-template-columns: minmax(0, 1fr) 24px;
    gap: 6px;
  }

  .application-shell #view-roleplay .proposal-chat-choice-shell > .staff-avatar {
    width: 24px;
    height: 24px;
  }

  .application-shell #view-roleplay .message {
    max-width: 100%;
  }
}

@media (max-width: 599px) {
  .application-shell #view-category .category-title-copy h1 {
    font-size: 1.125rem;
  }

  .application-shell #view-category .category-description {
    font-size: 0.875rem;
  }

  .application-shell #view-category .stage-list {
    gap: 4px;
    margin: 0;
    padding: 4px;
    border-radius: 16px;
    background: var(--gs-surface-high);
  }

  .application-shell #view-category .stage-card {
    display: grid;
    gap: 0;
    align-content: center;
    min-height: 48px;
    padding: 6px 4px;
    border: 0;
    border-radius: 12px;
    color: var(--gs-secondary);
    background: transparent;
    text-align: center;
  }

  .application-shell #view-category .stage-card.active {
    color: var(--gs-primary);
    background: #fff;
    box-shadow: 0 1px 4px #18243a14;
  }

  .application-shell #view-category .stage-card strong {
    color: inherit;
  }

  .application-shell #view-category .stage-card :is(.stage-condition, .stage-format) {
    display: none;
  }

  .application-shell #view-category .stage-card .stage-availability:not([hidden]) {
    display: block;
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .application-shell #view-category .category-stage-description {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2px 8px;
    margin: 8px 0 0;
    color: var(--gs-secondary);
    font-size: 0.8125rem;
    line-height: 1.6;
  }

  .application-shell #view-category .category-stage-description strong {
    color: var(--gs-on-surface);
  }

  .application-shell #view-category .category-stage-description small {
    grid-column: 2;
    font-size: 0.75rem;
  }
}

/* ---- 学習のあしあと（#426） -------------------------------------------------
   Material 3 Expressiveの共通方針に合わせる（docs/06-web-app/expressive-ui.md）。
   - 面の強さ: セクション内の強調は「今週の取り組み」の緑tonal面だけ。累計・日付詳細・
     週の記録は面なしと区切り線。839px以下はlx-panelの外枠を既存規則で外す。
   - 色の役割: 緑=学習進捗（学習した日・今週）、紫=達成と振り返り（バッジ・学習直後）、
     青=操作と選択。未達・期限を暖色や赤で強調しない。
   - 形: 学習した日は丸い形とチェックの印、選択中は形が変わり青の輪郭。色やhoverだけに依存しない。
   - 動き: 押下・選択の短い形の変化だけ。reduced-motionでは既存の共通規則で止まる。 */
.application-shell .lx-footprints {
  display: grid;
  gap: 16px;
}

/* ホームの概要は常に表示し、学習と記録の詳細だけを切り替える。 */
.application-shell #view-home.active { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.application-shell #view-home > [hidden] { display: none; }
.application-shell .lx-home-overview { display: grid; gap: 16px; }
.application-shell .lx-home-overview > .lx-welcome-back { grid-column: 1 / -1; }
.application-shell .lx-home-snapshot {
  display: grid; align-content: start; gap: 14px; padding: 20px; border: 1px solid #c2dece;
  border-radius: 28px 28px 12px 28px; background: #edf6ef;
}
.application-shell .lx-home-snapshot header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.application-shell .lx-home-snapshot h2 { margin: 2px 0 0; font-size: 1.125rem; font-weight: 800; }
.application-shell .lx-home-snapshot .lx-eyebrow { color: var(--gs-green); }
.application-shell .lx-home-snapshot header .lx-text-button { flex: none; gap: 4px; padding: 0 4px; font-size: .8125rem; }
.application-shell .lx-home-snapshot header .gs-symbol { width: 18px; height: 18px; }
.application-shell .lx-snapshot-message { display: flex; gap: 6px; align-items: center; margin: 0; color: #21553a; font-size: .875rem; }
.application-shell .lx-snapshot-message .gs-symbol { width: 18px; height: 18px; }
.application-shell .lx-snapshot-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.application-shell .lx-snapshot-totals > div { display: block; min-width: 0; }
.application-shell .lx-snapshot-totals > div + div { border-inline-start: 1px solid #c2d8c9; padding-inline-start: 12px; }
.application-shell .lx-snapshot-totals dt { color: #3e5c4b; font-size: .8125rem; }
.application-shell .lx-snapshot-totals dd { margin: 4px 0 0; font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; text-align: start; white-space: nowrap; }
.application-shell .lx-snapshot-totals dd span { margin-inline-start: 4px; font-size: .8125rem; font-weight: 650; }
.application-shell .lx-home-snapshot .lx-snapshot-note { margin: 0; color: #3e5c4b; font-size: .8125rem; }
.application-shell .lx-home-overview .home-mission-card { margin: 0; align-content: center; }
.application-shell .lx-home-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--gs-outline-variant); scroll-margin-top: 16px; }
.application-shell .lx-home-tabs > button {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 24px; border: 0; border-radius: 16px 16px 0 0;
  color: var(--gs-secondary); background: transparent; font-size: .9375rem; font-weight: 650;
}
.application-shell .lx-home-tabs .gs-symbol { width: 20px; height: 20px; }
.application-shell .lx-home-tabs > [aria-selected="true"] { color: var(--gs-primary); background: #eaf1ff; font-weight: 800; }
.application-shell .lx-home-tabs > [aria-selected="true"]::after {
  position: absolute; inset: auto 16px -1px; height: 4px; border-radius: 4px 4px 0 0; background: var(--gs-primary); content: "";
}
.application-shell .lx-home-tabs > button:hover { background: var(--gs-primary-container); }
.application-shell .lx-home-content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.application-shell .lx-home-path-details { display: block; }
.application-shell .lx-home-path-details summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; list-style: none; cursor: pointer; }
.application-shell .lx-home-path-details summary::-webkit-details-marker { display: none; }
.application-shell .lx-home-path-details summary h2 { margin: 0; font-size: 1.0625rem; }
.application-shell .lx-home-path-details summary p { margin: 4px 0 0; }
.application-shell .lx-path-toggle { display: flex; flex: none; align-items: center; gap: 4px; color: var(--gs-primary); font-size: .8125rem; font-weight: 700; }
.application-shell .lx-home-path-details[open] .lx-path-toggle .gs-symbol { transform: rotate(180deg); }
.application-shell .lx-home-path-details[open] summary { margin-bottom: 16px; }
.application-shell .lx-footprint-layout { display: grid; gap: 24px; align-items: start; }
.application-shell .lx-footprint-calendar-column { min-width: 0; }
.application-shell .lx-footprint-insights { display: grid; gap: 16px; min-width: 0; }
.application-shell details.lx-footprint-disclosure { display: block; padding-top: 8px; }
.application-shell .lx-footprint-disclosure summary { display: flex; gap: 8px; align-items: center; min-height: 48px; list-style: none; cursor: pointer; }
.application-shell .lx-footprint-disclosure summary::-webkit-details-marker { display: none; }
.application-shell .lx-footprint-disclosure summary > .gs-symbol { width: 20px; height: 20px; margin-inline-start: auto; color: var(--gs-secondary); }
.application-shell .lx-footprint-disclosure[open] summary > .gs-symbol { transform: rotate(180deg); }
.application-shell .lx-footprint-disclosure[open] summary { margin-bottom: 8px; }
.application-shell .lx-badge-earned-count { color: var(--gs-purple); font-size: .8125rem; font-weight: 700; }

@media (min-width: 1100px) {
  .application-shell .lx-home-overview { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .application-shell .lx-home-content { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); }
  .application-shell .lx-footprint-layout { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 28px; }
}

.application-shell .lx-footprints h3 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 750;
  line-height: 1.5;
}

/* 今週の取り組み: 既存の再開カードと同じ構成（形のある記号/計器 + 文言）。 */
.application-shell .lx-footprint-week {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--lx-radius-lg);
  color: var(--gs-on-surface);
  background: var(--gs-green-container);
}

.application-shell .lx-footprint-week .lx-eyebrow {
  color: var(--gs-green);
}

.application-shell .lx-footprint-week-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.application-shell .lx-footprint-week-copy {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 750;
  line-height: 1.5;
}

.application-shell .lx-footprint-week .lx-panel-note {
  margin: 0;
  color: var(--gs-on-surface);
}

.application-shell .lx-ring-on-week {
  --lx-ring-size: 56px;
  --lx-ring-hole: var(--gs-green-container);
  --lx-ring-track: #fff;
}

.application-shell .lx-footprint-symbol {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 18px 12px 18px 12px;
  color: var(--gs-green);
  background: #fff;
}

.application-shell .lx-goal-editor {
  grid-column: 1 / -1;
}

.application-shell .lx-goal-editor summary,
.application-shell .lx-visibility-note summary {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  min-height: 44px;
  padding: 0 12px 0 4px;
  border-radius: 22px;
  color: var(--gs-primary);
  font-size: 0.875rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.application-shell .lx-goal-editor summary::-webkit-details-marker,
.application-shell .lx-visibility-note summary::-webkit-details-marker {
  display: none;
}

.application-shell .lx-goal-editor summary .gs-symbol,
.application-shell .lx-visibility-note summary .gs-symbol {
  width: 20px;
  height: 20px;
  transition: transform var(--gs-motion) var(--gs-easing);
}

.application-shell .lx-goal-editor[open] summary .gs-symbol,
.application-shell .lx-visibility-note[open] summary .gs-symbol {
  transform: rotate(180deg);
}

.application-shell .lx-goal-editor fieldset {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 4px 0 0;
  padding: 12px;
  border: 0;
  border-radius: var(--lx-radius-sm);
  background: #fff;
}

.application-shell .lx-goal-editor legend {
  float: left;
  width: 100%;
  margin-bottom: 2px;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 750;
}

.application-shell .lx-goal-editor legend + * {
  clear: both;
}

/* 目標の選択肢は選択chip。選択中は塗り・形・チェックの印の3つで示す。 */
.application-shell .lx-goal-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.application-shell .lx-goal-option {
  position: relative;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 44px;
  padding: 0 16px 0 12px;
  border: 1px solid var(--gs-outline-variant);
  border-radius: 12px;
  color: var(--gs-on-surface);
  background: #fff;
  font-size: 0.875rem;
  font-weight: 650;
  cursor: pointer;
  transition: background var(--gs-motion) var(--gs-easing), border-radius var(--gs-motion) var(--gs-easing);
}

.application-shell .lx-goal-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.application-shell .lx-goal-option .gs-symbol {
  display: none;
  width: 18px;
  height: 18px;
}

.application-shell .lx-goal-option.is-selected {
  border-color: transparent;
  border-radius: 22px;
  color: var(--gs-on-primary-container);
  background: var(--gs-primary-container);
}

.application-shell .lx-goal-option.is-selected .gs-symbol {
  display: inline-block;
}

.application-shell .lx-goal-option:has(input:focus-visible) {
  outline: 3px solid var(--gs-primary);
  outline-offset: 2px;
}

/* 累計は面を重ねず、数値の大きさと名称で示す。 */
.application-shell .lx-footprint-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.application-shell .lx-footprint-totals > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  align-content: start;
  min-width: 0;
}

.application-shell .lx-footprint-totals > div + div {
  padding-inline-start: 12px;
  border-inline-start: 1px solid var(--gs-outline-variant);
}

.application-shell .lx-footprint-totals dt {
  color: var(--gs-secondary);
  font-size: 0.75rem;
  line-height: 1.5;
}

.application-shell .lx-footprint-totals dd {
  margin: 0;
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  line-height: 1.2;
  text-align: start;
  white-space: nowrap;
}

.application-shell .lx-footprint-totals dd span {
  margin-inline-start: 2px;
  font-size: 0.8125rem;
  font-weight: 650;
}

.application-shell .lx-milestones,
.application-shell .lx-week-list ul,
.application-shell .lx-day-detail ul,
.application-shell .lx-badges ul,
.application-shell .lx-session-lines {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  line-height: 1.6;
}

.application-shell .lx-milestones {
  color: var(--gs-secondary);
}

/* 学習量は回答・教材の件数で5段階。曜日と学習量は別の手掛かりで伝える。 */
.application-shell .lx-calendar { display: grid; gap: 12px; min-width: 0; }
.application-shell .lx-calendar-head { display: flex; gap: 4px; align-items: center; justify-content: space-between; }
.application-shell .lx-calendar-head h3 { font-size: 1.125rem; font-weight: 800; white-space: nowrap; }
.application-shell .lx-month-trigger { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 12px; color: var(--gs-primary); background: var(--gs-primary-container); font: inherit; }
.application-shell .lx-month-trigger .gs-symbol { width: 20px; height: 20px; }
.application-shell dialog.lx-day-dialog.lx-month-dialog { width: min(480px, calc(100vw - 40px)); }
.application-shell .lx-month-year-label { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; font-weight: 700; }
.application-shell .lx-month-year-label select { width: 100%; min-width: 0; min-height: 48px; font-size: 1rem; }
.application-shell .lx-month-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.application-shell .lx-month-options > button { min-width: 0; min-height: 48px; border: 1px solid var(--gs-outline-variant); border-radius: 12px; background: #fff; color: var(--gs-on-surface); font-size: .9375rem; font-weight: 700; }
.application-shell .lx-month-options > button.is-selected { border: 2px solid var(--gs-primary); background: var(--gs-primary-container); color: var(--gs-on-primary-container); }
.application-shell .lx-month-options > button:disabled { background: var(--gs-surface-high); color: #727b85; border-style: dashed; opacity: .7; }
.application-shell .lx-calendar-head .lx-text-button { padding: 0 8px; min-height: 44px; }
.application-shell .lx-calendar-head .lx-text-button:disabled { color: var(--gs-outline); }
.application-shell .lx-calendar-month-note { margin: 0; color: var(--gs-secondary); font-size: .875rem; }
.application-shell .lx-calendar[aria-busy="true"] .lx-calendar-grid { opacity: .6; }
.application-shell .lx-calendar-grid { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 6px; }
.application-shell .lx-calendar-grid th { height: 32px; color: var(--gs-secondary); font-size: .8125rem; font-weight: 750; text-align: center; }
.application-shell .lx-calendar-grid th.is-sunday { color: #b32636; }
.application-shell .lx-calendar-grid th.is-saturday { color: #195cb7; }
.application-shell .lx-calendar-grid td { padding: 0; text-align: center; }
.application-shell [data-level="0"] { --lx-heat-fill: #f0f4f2; --lx-heat-text: #31463b; }
.application-shell [data-level="1"] { --lx-heat-fill: #d6eedf; --lx-heat-text: #174d32; }
.application-shell [data-level="2"] { --lx-heat-fill: #9cd4b5; --lx-heat-text: #123d29; }
.application-shell [data-level="3"] { --lx-heat-fill: #4d9e75; --lx-heat-text: #082e1b; }
.application-shell [data-level="4"] { --lx-heat-fill: #1c6b49; --lx-heat-text: #fff; }
.application-shell .lx-calendar-day {
  display: grid; width: 100%; min-width: 0; max-width: none; min-height: 68px; margin: 0; padding: 6px 0;
  place-items: center; align-content: center; gap: 4px; border: 1px solid #c8d8cf; border-radius: 14px;
  background: var(--lx-heat-fill); color: var(--lx-heat-text); font-variant-numeric: tabular-nums; line-height: 1.2;
}
.application-shell .lx-calendar-day:hover:not(:disabled) { filter: brightness(.96); }
.application-shell .lx-calendar-number { display: grid; min-width: 26px; height: 26px; place-items: center; border-radius: 50%; font-size: 1rem; font-weight: 750; }
.application-shell .lx-calendar-activity { min-height: 12px; font-size: .6875rem; font-weight: 700; }
.application-shell .lx-calendar-day.is-sunday .lx-calendar-number { background: #fff; color: #b32636; }
.application-shell .lx-calendar-day.is-saturday .lx-calendar-number { background: #fff; color: #195cb7; }
.application-shell .lx-calendar-day.is-today { outline: 2px solid var(--gs-green); outline-offset: 1px; }
.application-shell .lx-calendar-day.is-today .lx-calendar-number { text-decoration: underline; text-underline-offset: 3px; }
.application-shell .lx-calendar-day.is-selected { outline: 3px solid var(--gs-primary); outline-offset: 1px; }
.application-shell .lx-calendar-day:focus-visible { outline: 3px solid var(--gs-primary); outline-offset: 2px; }
.application-shell .lx-calendar-day:disabled { background: #f7f9f8; border-style: dashed; border-color: #d8e0dc; color: #75817a; opacity: 1; }
.application-shell .lx-heatmap-legend { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--gs-secondary); font-size: .75rem; }
.application-shell .lx-heatmap-legend > span:first-child { margin-inline-end: 8px; color: var(--gs-on-surface); font-weight: 700; }
.application-shell .lx-heatmap-legend i { width: 14px; height: 14px; background: var(--lx-heat-fill); border: 1px solid #aec7b9; border-radius: 4px; }
.application-shell .lx-heatmap-scale { flex-basis: 100%; text-align: start; font-size: .6875rem; }
.application-shell .lx-day-preview {
  position: fixed; z-index: 60; display: grid; gap: 10px; width: 320px; max-height: min(300px, calc(100dvh - 16px));
  overflow: auto; padding: 18px; border: 1px solid #b2c8bc; border-radius: 20px; background: #fff;
  box-shadow: 0 8px 32px #152b5229; text-align: start;
}
.application-shell .lx-day-preview { max-width: calc(100vw - 16px); }
.application-shell .lx-day-preview h4 { margin: 0; color: var(--gs-on-surface); font-size: 1rem; }
.application-shell .lx-day-record-total { margin: 0; color: var(--gs-green); font-size: 1rem; font-weight: 750; }
.application-shell .lx-day-record-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; font-size: .875rem; line-height: 1.7; }
.application-shell .lx-day-record-list li { display: grid; gap: 4px; }
.application-shell .lx-day-record-list li + li { padding-block-start: 12px; border-block-start: 1px solid var(--gs-outline-variant); }
.application-shell .lx-day-record-list li > span { color: var(--gs-secondary); }
.application-shell dialog.lx-day-dialog { width: min(560px, calc(100vw - 40px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--gs-outline-variant); }
.application-shell .lx-day-dialog-body { display: grid; gap: 20px; padding: 24px; }
.application-shell .lx-day-dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.application-shell .lx-day-dialog-head h2 { margin: 4px 0 0; color: var(--gs-on-surface); font-size: 1.25rem; }
.application-shell .lx-dialog-close { flex: none; min-height: 44px; }
.application-shell .lx-sheet-handle { display: none; }
.application-shell .lx-day-record-note { padding-top: 12px; border-top: 1px solid var(--gs-outline-variant); }
html:has(dialog.lx-day-dialog[open]) { overflow: hidden; }

.application-shell .lx-week-list,
.application-shell .lx-badges {
  display: grid;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--gs-outline-variant);
}

.application-shell .lx-week-list li + li {
  padding-top: 6px;
  border-top: 1px solid var(--gs-surface-high);
}

/* バッジ: 達成は紫。取得済みは塗った形、未取得は破線の形。状態は文言でも示す。 */
.application-shell .lx-badges ul {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 10px 16px;
}

.application-shell .lx-badges li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.application-shell .lx-badge-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px dashed var(--gs-outline-variant);
  border-radius: 50%;
  color: var(--gs-outline);
}

.application-shell .lx-badge-mark .gs-symbol {
  width: 22px;
  height: 22px;
}

.application-shell .lx-badges li.is-earned .lx-badge-mark {
  border-style: solid;
  border-color: transparent;
  border-radius: 50%;
  color: var(--gs-purple);
  background: var(--gs-purple-container);
}

.application-shell .lx-badge-copy {
  display: grid;
  gap: 0;
  min-width: 0;
}

.application-shell .lx-badge-copy span {
  color: var(--gs-secondary);
  font-size: 0.8125rem;
}

.application-shell .lx-badge-progress { --lx-ring-size: 44px; --lx-ring-width: 4px; --lx-ring-color: var(--gs-purple); }
.application-shell .lx-badge-copy .lx-badge-counter { color: var(--gs-purple); font-weight: 750; }
.application-shell #home-footprints-title { scroll-margin-top: 20px; outline-offset: 4px; }

.application-shell .lx-visibility-note p {
  margin: 0;
  color: var(--gs-secondary);
  font-size: 0.8125rem;
  line-height: 1.7;
}

/* 久しぶりの再開: 強調面は直後の「次におすすめ」に任せ、面なしの短い案内にする。 */
.application-shell .lx-welcome-back {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  align-items: start;
}

.application-shell .lx-welcome-back .lx-footprint-symbol {
  background: var(--gs-green-container);
}

.application-shell .lx-welcome-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.application-shell .lx-welcome-copy h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.application-shell .lx-welcome-copy p {
  margin: 0;
  color: var(--gs-secondary);
  font-size: 0.875rem;
  line-height: 1.7;
}

.application-shell .lx-welcome-actions {
  grid-column: 2;
}

.application-shell .lx-welcome-actions:empty {
  display: none;
}

/* 学習直後の振り返り: 振り返りの紫tonal面。完了カード内の強調はここだけ。 */
.lx-session-reflection {
  display: grid;
  gap: 6px;
  margin: 8px 0 4px;
}

.lx-session-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 20px;
  color: var(--gs-on-surface);
  background: var(--gs-purple-container);
}

.lx-session-symbol {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 16px 10px 16px 10px;
  color: var(--gs-purple);
  background: #fff;
}

.lx-session-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.lx-session-title {
  margin: 0;
  color: var(--gs-purple);
  font-size: 0.8125rem;
  font-weight: 750;
}

.lx-session-note {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

@media (prefers-reduced-motion: no-preference) {
  .lx-session-card {
    animation: gs-enter var(--gs-motion) var(--gs-easing) both;
  }
}

/* 「続ける」と「今日はここまで」を同じ大きさで並べ、どちらも選びやすくする。 */
.completion-card .completion-choices {
  grid-template-columns: 1fr;
}

.completion-card .completion-choices :is(.primary-button, .ghost-button) {
  min-height: 48px;
}

@media (min-width: 600px) {
  .completion-card .completion-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .completion-card .completion-choices .lx-text-button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* 320px幅でも7列の日付を押せる大きさを保ち、累計は縦に積む。 */
@media (max-width: 599px) {
  .application-shell .lx-footprint-totals {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .application-shell .lx-footprint-totals > div {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
  }

  .application-shell .lx-footprint-totals dd { text-align: end; }

  .application-shell .lx-footprint-totals > div + div {
    padding: 6px 0 0;
    border-inline-start: 0;
    border-top: 1px solid var(--gs-surface-high);
  }

  .application-shell .lx-footprint-totals dt {
    font-size: 0.8125rem;
  }

  .application-shell .lx-footprint-totals dd {
    font-size: 1.25rem;
  }
}

@media (max-width: 360px) {
  .application-shell .lx-calendar-grid {
    border-spacing: 1px 4px;
  }

  .application-shell .lx-calendar-day {
    min-height: 44px;
    font-size: 0.75rem;
  }

  .application-shell .lx-footprint-week {
    padding: 12px;
  }
}

@media (forced-colors: active) {
  .application-shell .lx-calendar-day.is-learned,
  .application-shell .lx-badges li.is-earned .lx-badge-mark,
  .application-shell .lx-goal-option.is-selected {
    border: 2px solid CanvasText;
  }
}

@media (max-width: 599px) {
  .application-shell #view-home.active { gap: 16px; }
  .application-shell .lx-home-overview { gap: 12px; }
  .application-shell .lx-home-snapshot { padding: 16px; gap: 10px; border-radius: 24px 24px 10px 24px; }
  .application-shell .lx-home-snapshot h2 { font-size: 1rem; }
  .application-shell .lx-home-snapshot .lx-eyebrow { font-size: .6875rem; }
  .application-shell .lx-snapshot-totals dd { font-size: 1.625rem; }
  .application-shell .lx-snapshot-totals dt { font-size: .75rem; }
  .application-shell .lx-snapshot-totals > div + div { padding-inline-start: 8px; }
  .application-shell .lx-home-tabs > button { flex: 1; min-width: 0; padding: 12px 4px; gap: 6px; font-size: .875rem; }
  .application-shell .lx-home-tabs > [aria-selected="true"]::after { inset-inline: 8px; }
  .application-shell .lx-home-content { gap: 12px; }
  .application-shell .lx-calendar-grid { border-spacing: 3px 5px; }
  .application-shell .lx-calendar-day { min-height: 54px; padding-block: 4px; border-radius: 10px; gap: 2px; }
  .application-shell .lx-calendar-number { font-size: .9375rem; }
  .application-shell .lx-calendar-head h3 { font-size: 1rem; }
  .application-shell .lx-calendar-head .lx-text-button { padding: 0 4px; font-size: .8125rem; }
  .application-shell .lx-day-preview { display: none; }
  .application-shell dialog.lx-day-dialog {
    inset: auto 0 0; width: 100%; max-width: 100%; margin: auto 0 0;
    max-height: calc(100dvh - 24px); border-radius: 28px 28px 0 0; border-bottom: 0;
  }
  .application-shell dialog.lx-day-dialog.lx-month-dialog { width: 100%; max-width: 100%; }
  .application-shell .lx-month-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .application-shell .lx-day-dialog-body { gap: 20px; padding: 12px 20px max(24px, env(safe-area-inset-bottom)); }
  .application-shell .lx-sheet-handle { display: block; width: 40px; height: 4px; margin: 0 auto -4px; border-radius: 4px; background: #9baaa1; }
  .application-shell .lx-day-dialog-head h2 { font-size: 1.125rem; }
  .application-shell .lx-day-record-totals { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .application-shell .lx-day-record-totals > div { display: block; }
  .application-shell .lx-day-record-totals > div + div { padding: 0 0 0 8px; border-top: 0; border-inline-start: 1px solid var(--gs-outline-variant); }
  .application-shell .lx-day-record-totals dt { font-size: .75rem; }
  .application-shell .lx-day-record-totals dd { margin-top: 4px; }
  .application-shell .lx-day-record-totals dd { text-align: start; }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 599px) {
  .application-shell dialog.lx-day-dialog[open] { animation: lx-sheet-enter 240ms var(--gs-easing); }
}
@keyframes lx-sheet-enter {
  from { transform: translateY(100%); opacity: .5; }
  to { transform: translateY(0); opacity: 1; }
}
