/* Phase 2.2 — neutral work surface. No external font or asset dependency. */
:root {
  --canvas: #f3f4f6;
  --surface: #fff;
  --navy: #202124;
  --brand: #142d3b;
  --teal: #23776f;
  --blue: #416bab;
  --gold: #89662e;
  --muted: #626a73;
  --line: #e0e3e7;
  --radius: 10px;
  color: #202124;
  background: var(--canvas);
  font-size: 16px;
  line-height: 1.7;
  font-synthesis: none;
}
body {
  background: var(--canvas);
}
h1 {
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.5;
}
h2 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.005em;
}
h3 {
  font-size: 1rem;
  line-height: 1.7;
}
button,
input,
select,
textarea {
  min-height: 44px;
}
button {
  border-radius: 7px;
  transition:
    background-color 0.12s,
    border-color 0.12s;
  color: var(--navy);
}
button:hover {
  background: #f3f5f5;
  border-color: #b9c3c8;
}
button:active:not(:disabled) {
  background: #e6eeec;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #416bab;
  outline-offset: 3px;
}
button.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}
button.primary:hover {
  background: #1b635d;
}
button.active {
  background: #e8f1ef;
  border-color: #c7ded8;
  color: #195e57;
}
button:disabled {
  opacity: 0.5;
}
input,
select,
textarea {
  color: var(--navy);
  border-color: var(--line);
  border-radius: 6px;
  background: white;
}
select {
  padding-right: 28px;
}
.small,
.panel-head .sub,
.panel-note,
.stat .foot {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--muted);
}
.muted,
.nav-label {
  color: var(--muted);
}
.brand {
  color: var(--brand);
}
.brand-mark {
  border-color: var(--brand);
}
.brand-mark i {
  background: var(--brand);
}
.brand-mark i:nth-child(2) {
  background: var(--teal);
}
.brand small {
  color: var(--muted);
  font-size: 0.625rem;
}
.sidebar {
  width: 248px;
  background: #f7f8f9;
  padding: 26px 16px 20px;
}
.sidebar .brand {
  padding-left: 8px;
}
.workspace {
  background: #fff;
  margin: 26px 4px 18px;
  padding: 12px;
  box-shadow: none;
}
.workspace strong {
  font-size: 0.875rem;
  line-height: 1.65;
}
.workspace span {
  font-size: 0.75rem;
}
.nav-label {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  margin: 18px 0 8px;
  padding-left: 14px;
}
.nav {
  gap: 3px;
}
.nav button {
  background: transparent;
  color: #596168;
  font-weight: 500;
  border-radius: 6px;
  min-height: 46px;
  padding: 11px 13px;
  gap: 11px;
}
.nav button .icon {
  width: 18px;
  height: 18px;
  color: #687078;
}
.nav button.active {
  background: #e2e6e9;
  color: #202124;
  box-shadow: none;
  font-weight: 600;
}
.nav button.active .icon {
  color: #202124;
}
.nav button:hover {
  background: #eef0f2;
}
.sidebar-bottom {
  padding-top: 24px;
}
.privacy {
  font-size: 0.75rem;
  margin: 18px 10px 0;
  line-height: 1.8;
  color: var(--muted);
}
.privacy strong {
  font-size: 0.75rem;
  color: #4d555d;
}
header.topbar {
  left: 248px;
  height: 68px;
  padding: 0 32px;
  background: white;
}
.topbar .breadcrumb {
  color: var(--muted);
}
.app-main {
  margin: 68px 0 0 248px;
  padding: 28px 32px 24px;
  max-width: 1900px;
}
.page-heading {
  margin: 0 0 26px;
  gap: 20px;
  align-items: center;
}
.page-heading p {
  font-size: 0.9375rem;
  max-width: 68ch;
  color: var(--muted);
  margin-top: 8px;
}
.period-select {
  padding: 4px 10px;
  border-radius: 6px;
  flex-shrink: 0;
}
.period-select input {
  min-height: 36px;
}
.demo-banner {
  background: #eceff2;
  color: #535d66;
  border: 1px solid #dde2e6;
  border-radius: 6px;
  margin-bottom: 24px;
  padding: 8px 12px;
  gap: 12px;
  font-size: 0.8125rem;
}
.demo-banner select {
  min-height: 36px;
}
.stats {
  gap: 16px;
  margin-bottom: 26px;
}
.stat {
  border-radius: var(--radius);
  padding: 22px 20px 18px;
  min-width: 0;
  min-height: 182px;
  border-color: var(--line);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: var(--navy);
  overflow: hidden;
}
.stat:hover {
  background: #fff;
  border-color: #b7c1c8;
}
.stat .stat-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #505860;
  gap: 8px;
}
.stat .stat-title svg {
  width: 20px;
  color: var(--blue);
}
.stat[data-view="activities"] .stat-title svg {
  color: var(--teal);
}
.stat[data-view="checks"] .stat-title svg {
  color: var(--gold);
}
.stats .number {
  font-family:
    -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 3rem;
  letter-spacing: -0.045em;
  line-height: 1.15;
  font-weight: 600;
  margin: 14px 0 10px;
}
.stat .number small {
  font-size: 0.875rem;
  letter-spacing: 0;
  font-weight: 500;
  margin-left: 7px;
  color: var(--muted);
}
.stat .foot {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--muted);
}
.stat .foot em {
  color: var(--muted);
}
.stat .number .ratio {
  font-size: 1.25rem;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 4px;
}
.mini-series {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 24px;
  margin-top: 12px;
  width: 100%;
  border-bottom: 1px solid #edf0f2;
}
.mini-series i {
  flex: 1;
  max-width: 32px;
  height: var(--h);
  min-height: 0;
  background: #6d91c7;
  border-radius: 2px 2px 0 0;
}
.stat[data-view="activities"] .mini-series i {
  background: #659e95;
}
.mini-series i.missing {
  height: 1px;
  background: #9aa2a8;
  align-self: center;
}
.check-meter {
  display: flex;
  gap: 4px;
  margin-top: 16px;
}
.check-meter i {
  height: 5px;
  flex: 1;
  background: #e7eaed;
  border-radius: 2px;
}
.check-meter i.filled {
  background: #9f804c;
}
.grid-main {
  grid-template-columns: minmax(0, 1.5fr) minmax(310px, 1fr);
  gap: 24px;
  align-items: start;
}
.stack {
  gap: 24px;
  min-width: 0;
}
.panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: none;
  background: white;
}
.panel-head {
  padding: 22px 24px 15px;
  align-items: start;
}
.panel-head h2 {
  font-size: 1.0625rem;
}
.panel-head .sub {
  margin-top: 5px;
  max-width: 60ch;
}
.panel-head .text-button {
  white-space: nowrap;
  min-height: 32px;
}
.panel-content {
  padding: 0 24px 22px;
}
.activity-row {
  grid-template-columns: minmax(0, 1fr) 74px 96px;
  gap: 12px;
  min-height: 70px;
  padding: 12px 0;
  border-color: #eceff1;
}
.activity-name {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.6;
}
.activity-name small {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 3px;
}
.activity-progress {
  font-variant-numeric: tabular-nums;
  font-size: 0.8125rem;
  color: var(--muted);
}
.activity-progress b {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
}
.activity-progress .track {
  height: 4px;
}
.counter {
  gap: 8px;
}
.counter button,
.channel-row .counter button {
  border-radius: 6px;
  height: 44px;
  min-width: 44px;
  width: 44px;
  border-color: #dde3e5;
  font-weight: 500;
  background: #fff;
}
.counter button.add {
  background: #edf5f3;
  border-color: #d1e4df;
  color: #195e57;
}
.counter button.add:hover {
  background: #dceee8;
}
.counter button:disabled {
  color: #8c949b;
  background: #f8f9fa;
}
.track {
  background: #e8edeb;
  height: 7px;
}
.track span {
  background: var(--teal);
}
.panel-note {
  border-color: #eceff1;
  margin-top: 14px;
  padding-top: 14px;
  font-size: 0.8125rem;
}
.channel-row {
  grid-template-columns: minmax(105px, 1fr) minmax(20px, 1fr) 30px 96px;
  gap: 10px;
  margin: 14px 0;
}
.channel-name {
  font-size: 0.875rem;
  line-height: 1.6;
}
.channel-name i {
  display: none;
}
.channel-bar {
  background: #f0f2f5;
  height: 6px;
}
.channel-bar span,
.channel-row:nth-child(2n) .channel-bar span {
  background: #6d91c7;
}
.channel-count {
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}
.insight {
  border-color: #eceff1;
  padding: 18px 0;
}
.insight:first-child {
  padding-top: 4px;
}
.insight h3 {
  margin: 10px 0 7px;
  font-weight: 600;
}
.insight p {
  color: #515b63;
  font-size: 0.875rem;
  line-height: 1.85;
}
.tag {
  border-radius: 4px;
  font-size: 0.75rem;
  line-height: 1.6;
  padding: 3px 7px;
  background: #edf4f1;
  color: #21665b;
}
.tag.gold {
  color: #795a27;
  background: #f5f0e6;
}
.tag.neutral {
  color: #5d6670;
  background: #eff1f3;
}
.notice {
  font-size: 0.875rem;
  color: #55616b;
  background: #f0f3f5;
  border: 1px solid #e0e5e8;
  border-radius: 6px;
  line-height: 1.85;
  padding: 15px 18px;
}
.empty {
  background: #fafbfc;
  border: 1px dashed #d7dfe4;
  border-radius: 7px;
  color: var(--muted);
  padding: 28px 20px;
  line-height: 1.9;
}
.market-art {
  background: #edf0f3;
  border-radius: 5px;
}
.market-art span {
  background: #b0bdc7;
}
.market-art span:nth-child(2) {
  background: #d0b88a;
}
.market-teaser {
  gap: 18px;
}
footer {
  color: var(--muted);
  font-size: 0.75rem;
}
#toast {
  background: #263b35;
  color: white;
  box-shadow: 0 6px 22px #0002;
  border-radius: 7px;
  font-size: 0.9375rem;
}
#toast button {
  margin-left: 12px;
  background: transparent;
  border-color: #8ca49b;
  color: white;
  min-height: 36px;
}
@media (min-width: 1600px) {
  .app-main {
    padding-left: 44px;
    padding-right: 44px;
  }
  .grid-main {
    grid-template-columns: minmax(0, 1.6fr) minmax(340px, 1fr);
  }
}
@media (max-width: 1150px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-main {
    grid-template-columns: 1fr;
  }
  .stat {
    min-height: 164px;
  }
  .stat .mini-series {
    max-width: 200px;
  }
  .sidebar {
    width: 232px;
  }
  header.topbar {
    left: 232px;
  }
  .app-main {
    margin-left: 232px;
    padding: 24px;
  }
  .stack {
    gap: 20px;
  }
}
@media (max-width: 950px) {
  .sidebar {
    transform: translateX(-100%);
    width: 248px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  header.topbar {
    left: 0;
    padding: 0 24px;
  }
  .app-main {
    margin-left: 0;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .grid-main {
    grid-template-columns: minmax(0, 1.4fr) minmax(285px, 1fr);
  }
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .stats .number {
    font-size: 2.5rem;
  }
}
@media (max-width: 800px) {
  .grid-main {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  header.topbar {
    height: 60px;
    padding: 0 16px;
  }
  .app-main {
    margin-top: 60px;
    padding: 18px 16px;
  }
  .demo-banner {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.75rem;
    margin-bottom: 20px;
  }
  .demo-banner > span {
    width: 100%;
  }
  .page-heading {
    align-items: start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
  }
  .page-heading p {
    font-size: 0.875rem;
  }
  .page-heading h1 {
    font-size: 1.5rem;
  }
  .period-select {
    padding: 0 8px;
  }
  .stats {
    gap: 10px;
    margin-bottom: 20px;
  }
  .stat {
    padding: 16px 14px;
    min-height: 166px;
  }
  .stat .stat-title {
    font-size: 0.8125rem;
    line-height: 1.6;
  }
  .stat .stat-title svg {
    display: none;
  }
  .stats .number {
    font-size: 2.5rem;
    margin: 12px 0 8px;
  }
  .stat .number .ratio {
    font-size: 1rem;
  }
  .stat .number small {
    font-size: 0.75rem;
  }
  .stat .foot {
    font-size: 0.75rem;
  }
  .panel-head {
    padding: 19px 18px 13px;
    flex-wrap: wrap;
  }
  .panel-content {
    padding: 0 18px 20px;
  }
  .activity-row {
    grid-template-columns: minmax(0, 1fr) 36px 96px;
    gap: 8px;
    min-height: 74px;
  }
  .activity-name {
    font-size: 0.875rem;
  }
  .activity-progress {
    font-size: 0.75rem;
  }
  .channel-row {
    grid-template-columns: minmax(90px, 1fr) 25px 96px;
    gap: 8px;
  }
  .channel-bar {
    display: none;
  }
  .channel-name {
    font-size: 0.875rem;
  }
  .panel-head .text-button {
    white-space: normal;
  }
  .sidebar {
    width: 264px;
  }
  .top-actions {
    gap: 10px;
  }
  .mini-series {
    height: 20px;
  }
  .brand strong {
    font-size: 0.8125rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  body {
    background: white;
  }
  .app-main {
    margin: 0;
    padding: 0;
  }
  .stat {
    break-inside: avoid;
  }
  .mini-series {
    display: none;
  }
  button {
    min-height: 0;
  }
  .notice {
    background: white;
  }
}
/* Purpose-specific layouts: library, search, analysis, planning and anonymous voice. */
.mini-label {
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--muted);
  display: block;
  margin-top: 8px;
}
.mini-series {
  margin-top: 4px;
}
.check-meter {
  display: block;
  height: 5px;
  border-radius: 2px;
  background: #eceff1;
  overflow: hidden;
}
.check-meter i {
  display: block;
  background: #9f804c;
  height: 100%;
  border-radius: 2px;
}
.voice-choices {
  display: grid;
  gap: 8px;
}
.voice-choice {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  text-align: left;
  gap: 8px;
  align-items: center;
  padding: 11px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  min-height: 52px;
  border-color: #e4e8eb;
  line-height: 1.65;
}
.voice-choice .voice-kind {
  font-size: 0.6875rem;
  text-align: center;
  background: #eef1f4;
  color: #535e67;
  padding: 3px;
  border-radius: 3px;
}
.voice-choice b {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--teal);
  text-align: right;
}
.voice-choice:hover {
  background: #f0f6f4;
  border-color: #bad3ca;
}
.voice-more {
  margin-top: 14px;
  font-size: 0.875rem;
}
.voice-more > summary {
  padding: 8px 0;
  color: var(--teal);
  cursor: pointer;
  min-height: 44px;
}
.voice-more .filter-form {
  padding: 12px 0 0;
  border: 0;
  background: none;
  grid-template-columns: 1fr 1fr;
}
.voice-more .filter-form label:first-child {
  grid-column: 1/-1;
}
.voice-more .filter-form button {
  grid-column: 1/-1;
}
.voice-overview {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 32px;
  background: white;
  border: 1px solid var(--line);
  padding: 26px 30px;
  border-radius: 10px;
  margin-bottom: 24px;
  align-items: center;
}
.voice-overview > div > strong {
  font-size: 3rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  display: block;
  line-height: 1.4;
}
.voice-overview strong small {
  font-size: 0.875rem;
  color: var(--muted);
  margin-left: 8px;
}
.voice-totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 20px;
}
.voice-totals div {
  border-left: 2px solid #d6e4df;
  padding-left: 12px;
}
.voice-totals span {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
}
.voice-totals b {
  font-size: 1.5rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.voice-matrix {
  font-size: 0.8125rem;
  white-space: nowrap;
}
.voice-matrix th,
.voice-matrix td {
  padding: 11px 9px;
}
.voice-matrix td {
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.voice-months {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  padding: 20px 0 6px;
}
.voice-months div {
  border-top: 2px solid #dce8e4;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
}
.voice-months span,
.voice-months small {
  font-size: 0.75rem;
  color: var(--muted);
}
.voice-months strong {
  font-size: 1.75rem;
  font-variant-numeric: tabular-nums;
}
.starter-steps h3 {
  margin-top: 20px;
}
.section-title {
  font-size: 1.125rem;
  margin: 30px 0 16px;
}
.section-title small {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: 8px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin: 28px 0 16px;
  flex-wrap: wrap;
}
.section-heading p {
  font-size: 0.875rem;
  color: var(--muted);
}
.check-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.check-group {
  border-top: 1px solid var(--line);
}
.check-group > summary {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 24px;
  min-height: 116px;
  list-style: none;
  cursor: pointer;
}
.check-group > summary::-webkit-details-marker {
  display: none;
}
.category-symbol {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  background: #f3efe7;
  color: var(--gold);
  border-radius: 8px;
  font-size: 1.5rem;
}
.check-group:nth-child(3n + 1) .category-symbol {
  background: #edf2f9;
  color: var(--blue);
}
.check-group:nth-child(3n + 2) .category-symbol {
  background: #edf5f1;
  color: var(--teal);
}
.check-summary {
  flex: 1;
  min-width: 0;
}
.check-group summary strong {
  font-size: 1rem;
}
.check-group summary small {
  display: block;
  font-size: 0.8125rem;
  margin: 4px 0 9px;
  color: var(--muted);
}
.check-group .track {
  display: block;
  height: 4px;
  max-width: 240px;
}
.check-open {
  font-size: 0.8125rem;
  color: var(--teal);
}
.check-open:after {
  content: " ＋";
}
.check-group[open] .check-open:after {
  content: " −";
}
.check-group[open] {
  grid-column: 1/-1;
}
.check-detail {
  padding: 20px 0;
  gap: 20px;
}
.learning-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr);
  gap: 40px;
  border-top: 3px solid #b29765;
  background: white;
  padding: 32px;
  margin: 24px 0 28px;
  border-bottom: 1px solid var(--line);
}
.learning-feature h2 {
  font-size: 1.5rem;
  line-height: 1.6;
  margin: 12px 0 16px;
  letter-spacing: -0.02em;
}
.learning-feature p {
  font-size: 0.9375rem;
  line-height: 1.95;
  color: #515b63;
}
.learning-feature .actions {
  margin-top: 20px;
}
.learning-feature .eyebrow {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
.learning-concept {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: #f5f6f6;
  padding: 24px;
  border-radius: 6px;
}
.learning-concept > span {
  padding: 10px 18px;
  border: 1px solid #d9e0e1;
  background: white;
  font-size: 0.875rem;
  width: 100%;
  text-align: center;
}
.learning-concept > span + span {
  margin-top: 16px;
  position: relative;
}
.learning-concept > span + span:before {
  content: "";
  position: absolute;
  top: -17px;
  left: 50%;
  height: 16px;
  border-left: 1px solid #aabbb5;
}
.learning-concept small {
  font-size: 0.75rem;
  margin-top: 16px;
  color: var(--muted);
}
.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.theme-grid button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 16px;
  background: white;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.65;
}
.theme-grid button.active {
  background: #edf3f0;
  border-color: #b5ccc3;
}
.theme-grid small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
  margin-top: 3px;
}
.theme-mark {
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 400;
  flex: none;
}
.library-filter {
  margin-top: 24px;
}
.library-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.lesson-list,
.knowledge-list {
  background: white;
  border-top: 1px solid var(--line);
}
.lesson-list article {
  padding: 24px;
  display: flex;
  align-items: start;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.lesson-list article > div {
  flex: 1;
  min-width: 0;
}
.lesson-list h3 {
  font-size: 1.0625rem;
  margin: 6px 0 8px;
}
.lesson-list p {
  font-size: 0.875rem;
  line-height: 1.85;
  color: #5b646c;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.knowledge-list article {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.knowledge-list h3 {
  margin: 10px 0 8px;
}
.knowledge-list p {
  font-size: 0.875rem;
  line-height: 1.85;
  color: #5b646c;
}
.market-search-surface {
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 20px 0;
}
.market-intro h2 {
  font-size: 1.25rem;
}
.market-intro p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 8px;
}
.market-search-surface .filter-form {
  padding: 20px 0 12px;
  border: 0;
  background: none;
}
.market-entries {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.market-entries button {
  padding: 24px;
  text-align: left;
  background: white;
  min-height: 116px;
  border-top: 3px solid #a5b6c4;
}
.market-entries strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
}
.market-entries span {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 8px;
}
.market-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.region-result {
  padding: 24px;
}
.region-result h2 {
  font-size: 1.25rem;
  margin-top: 14px;
}
.region-population {
  padding: 18px 0 16px;
}
.region-population > small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}
.region-population strong {
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.region-population strong small {
  font-size: 0.8125rem;
  font-weight: 400;
  margin-left: 5px;
  letter-spacing: 0;
}
.region-demographics {
  display: flex;
  gap: 12px;
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.region-demographics div {
  flex: 1;
}
.region-demographics dt {
  font-size: 0.6875rem;
  color: var(--muted);
}
.region-demographics dd {
  margin: 4px 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.alternative-region {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.alternative-region span {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.chart-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  gap: 16px;
  padding-top: 12px;
}
.review-chart {
  min-height: 230px;
  display: flex;
  gap: 12px;
  align-items: end;
  overflow-x: auto;
  padding: 20px 0 8px;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 42px,
    #eef1f4 42px,
    #eef1f4 43px
  );
}
.review-col {
  min-width: 38px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.review-col > span:first-child {
  font-size: 0.75rem;
  min-height: 20px;
  color: #4d5862;
}
.chart-bar-area {
  height: 130px;
  width: 100%;
  display: flex;
  align-items: end;
  justify-content: center;
  position: relative;
}
.review-col .bar {
  min-height: 0;
  width: 70%;
  max-width: 30px;
  background: #6d91c7;
  border-radius: 3px 3px 0 0;
}
.review-col:nth-child(even) .bar {
  background: #6d91c7;
}
.review-col.unmeasured .chart-bar-area small {
  position: absolute;
  bottom: 4px;
  writing-mode: vertical-rl;
  font-size: 0.6875rem;
  color: #77818a;
}
.review-col > span:last-child {
  font-size: 0.75rem;
  display: block;
  min-height: 34px;
  line-height: 1.4;
  text-align: center;
}
.review-col > span small {
  display: block;
  font-size: 0.625rem;
  color: var(--muted);
}
.zero-mark {
  width: 12px;
  height: 2px;
  background: #6d91c7;
  position: absolute;
  bottom: 0;
}
.chart-data {
  font-size: 0.8125rem;
  margin-top: 16px;
  color: var(--teal);
}
.composition > div {
  display: grid;
  grid-template-columns: minmax(115px, 1fr) minmax(20px, 1fr) 60px 38px;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  font-size: 0.8125rem;
}
.composition-track {
  height: 7px;
  background: #eef1f5;
  border-radius: 2px;
  overflow: hidden;
}
.composition-track i {
  display: block;
  height: 100%;
  background: #6d91c7;
}
.composition strong {
  font-size: 0.875rem;
  text-align: right;
  font-weight: 600;
}
.composition small {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
}
.composition + p {
  margin-top: 14px;
}
.timeline-item {
  border-left: 2px solid #d7e2e5;
  padding: 0 0 22px 18px;
  margin-left: 4px;
}
.timeline-item h3 {
  font-size: 0.9375rem;
  margin-top: 4px;
}
.timeline-item p {
  color: var(--muted);
}
.year-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  border-top: 2px solid #d2c0a2;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.year-summary strong {
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin-right: 16px;
  font-variant-numeric: tabular-nums;
}
.year-summary span {
  font-size: 0.875rem;
  color: var(--muted);
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-top: 22px;
  background: white;
}
.month-card {
  border-radius: 0;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px;
  min-height: 300px;
  background: white;
}
.month-card.current-month {
  background: #f3f8f5;
  box-shadow: inset 0 3px var(--teal);
}
.month-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}
.month-heading h2 {
  margin: 0;
  color: var(--navy);
  font-weight: 400;
  font-size: 0.8125rem;
}
.month-heading h2 strong {
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
  margin-right: 3px;
  font-weight: 500;
}
.month-heading > .small {
  margin-left: auto;
  font-size: 0.75rem;
}
.month-card > .small,
.month-card .text-button {
  font-size: 0.8125rem;
}
.month-card > div {
  margin-top: 16px;
}
.month-card .plan-line {
  border-left: 3px solid #a6b9cc;
  padding: 12px;
  background: #f5f7f9;
  margin-top: 16px;
  border-radius: 3px;
}
.plan-line strong {
  display: block;
  font-size: 0.875rem;
  margin-top: 7px;
}
.month-card .plan-line[data-status="実施"] {
  border-left-color: var(--teal);
  background: #eaf2ee;
}
.month-card .plan-line.prep {
  border-left-color: #b89b68;
  background: #f8f4eb;
}
.month-card .plan-line[data-status="見送り"] {
  border-left-color: #a5aab0;
  background: #f2f3f4;
}
.survey-results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}
.survey-results-layout > .panel:first-child {
  grid-row: span 2;
}
.survey-results-layout .question h3 {
  font-size: 1rem;
}
.survey-results-layout .track span {
  background: #6d91c7;
}
.survey-results-layout .track {
  background: #eef2f7;
}
.survey-preview > summary {
  font-size: 0.9375rem;
  min-height: 44px;
  cursor: pointer;
}
.survey-preview[open] {
  grid-column: 1/-1;
}
.survey-preview .survey-sheet {
  margin-top: 20px;
}
.survey-results-layout .pagination {
  padding: 16px 20px;
  background: white;
  border: 1px solid var(--line);
  border-top: 0;
  margin-top: -1px;
  border-radius: 0 0 8px 8px;
}
@media (max-width: 1200px) {
  .theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .market-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 950px) {
  .sidebar {
    visibility: hidden;
  }
  .sidebar.open {
    visibility: visible;
  }
  .library-columns {
    gap: 24px;
  }
}
@media (max-width: 800px) {
  .library-columns {
    grid-template-columns: 1fr;
  }
  .learning-feature {
    gap: 24px;
    padding: 24px;
  }
  .market-entries {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .survey-results-layout {
    grid-template-columns: 1fr;
  }
  .survey-results-layout > .panel:first-child {
    grid-row: auto;
  }
  .composition > div {
    grid-template-columns: minmax(110px, 1fr) minmax(30px, 1fr) 55px 34px;
  }
}
@media (max-width: 650px) {
  .voice-overview {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px;
  }
  .voice-totals {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .voice-overview > div > strong {
    font-size: 2.75rem;
  }
  .voice-months {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .voice-months strong {
    font-size: 1.5rem;
  }
  .check-groups {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .check-group > summary {
    padding: 18px;
    gap: 12px;
    min-height: 104px;
  }
  .check-group .category-symbol {
    width: 36px;
    height: 40px;
  }
  .learning-feature {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .learning-feature h2 {
    font-size: 1.25rem;
  }
  .learning-concept {
    display: none;
  }
  .theme-grid {
    gap: 8px;
  }
  .theme-grid button {
    padding: 14px 12px;
    gap: 8px;
    font-size: 0.8125rem;
  }
  .theme-mark {
    font-size: 1.25rem;
  }
  .lesson-list article {
    padding: 20px;
    gap: 10px;
  }
  .knowledge-list article {
    padding: 20px;
  }
  .market-search-surface {
    padding: 20px;
  }
  .market-search-surface .filter-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .market-search-surface .filter-form label {
    width: 100%;
  }
  .market-intro h2 {
    font-size: 1.125rem;
  }
  .market-result-grid,
  .market-entries {
    grid-template-columns: 1fr;
  }
  .market-entries button {
    min-height: 96px;
    padding: 20px;
  }
  .region-result {
    padding: 22px;
  }
  .calendar-grid {
    grid-template-columns: 1fr;
  }
  .month-card {
    min-height: 0;
    padding: 20px;
  }
  .year-summary {
    gap: 12px;
  }
  .year-summary strong {
    font-size: 2.5rem;
  }
  .year-summary p {
    width: 100%;
    font-size: 0.875rem;
  }
  .upcoming-ideas {
    grid-template-columns: 1fr;
  }
  .composition > div {
    grid-template-columns: minmax(100px, 1fr) minmax(20px, 1fr) 50px 30px;
    gap: 6px;
    font-size: 0.75rem;
  }
  .check-detail {
    flex-direction: column;
  }
  .section-title {
    margin-top: 26px;
  }
  .mini-label {
    font-size: 0.625rem;
  }
  .voice-choice {
    padding: 10px;
    font-size: 0.8125rem;
  }
}
@media print {
  .survey-results-layout {
    display: block;
  }
  .chart-bar-area {
    print-color-adjust: exact;
  }
  .calendar-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .month-card {
    break-inside: avoid;
  }
  .voice-choices {
    display: none;
  }
  .learning-feature {
    break-inside: avoid;
  }
}
@media (max-width: 650px) {
  .page-heading > div:first-child {
    flex: none;
    width: 100%;
    min-width: 0;
  }
  .page-heading h1 {
    max-width: none;
  }
  .page-heading .period-select {
    margin-left: auto;
  }
  .page-heading .title-actions {
    flex-wrap: wrap;
    max-width: 100%;
  }
  .filter-form {
    max-width: 100%;
  }
  .voice-more select {
    width: 100%;
    min-width: 0;
  }
}
.review-chart {
  gap: 8px;
}
.review-col {
  min-width: 28px;
}
.review-col > span:first-child {
  font-size: 0.6875rem;
}
.actions {
  gap: 12px;
}
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  border-color: #89939d;
}
.period-select input,
.period-select select {
  border: 0;
}
#toast.visible button {
  pointer-events: auto;
  min-height: 44px;
}
.survey-results-layout > .panel:first-child {
  grid-row: auto;
}
.survey-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.survey-side .survey-sheet {
  max-width: 100%;
  padding: 18px;
  font-size: 0.875rem;
}
.survey-side .survey-sheet h1 {
  font-size: 1.25rem;
}
.survey-side .survey-sheet h3 {
  font-size: 1rem;
}
.upcoming-disclosure {
  margin-bottom: 20px;
}
.upcoming-disclosure > summary {
  font-size: 0.875rem;
  color: var(--teal);
  min-height: 44px;
  cursor: pointer;
  padding: 8px 0;
}
.upcoming-disclosure .upcoming-ideas {
  margin-top: 10px;
}
.year-control {
  display: flex;
  gap: 8px;
  align-items: center;
}
.year-control input {
  width: 90px;
}
.title-actions {
  flex-wrap: wrap;
}
.year-control .period-select {
  padding: 4px 10px;
}
/* Phase 2.2.1: restrained selection and local Font Awesome Solid glyphs. */
svg.fa-icon {
  fill: currentColor;
  stroke: none;
  stroke-width: 0;
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: -0.15em;
  flex: none;
}
button.with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.nav button.with-icon {
  justify-content: flex-start;
}
button.with-icon > .fa-icon {
  width: 14px;
  height: 14px;
}
.nav button > .fa-icon {
  width: 18px;
  height: 18px;
}
.counter button > .fa-icon,
.voice-choice b > .fa-icon {
  width: 14px;
  height: 14px;
}
.page-heading h1 > .fa-icon {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  color: #687078;
  vertical-align: 0;
}
.category-symbol .fa-icon,
.theme-mark .fa-icon {
  width: 18px;
  height: 18px;
}
.nav button:hover {
  background: #eceff1;
}
.nav button.active:hover {
  background: #d9dfe3;
  color: #202124;
}
.nav button:focus-visible {
  outline: 3px solid #416bab;
  outline-offset: 2px;
}
.stat[data-view="customers"] .mini-series i:last-child,
.stat[data-view="surveys"] .mini-series i:last-child {
  background: #416bab;
}
.stat[data-view="activities"] .mini-series i:last-child {
  background: #23776f;
}
.mini-series i.zero {
  height: 1px;
  background: #687078;
}
.mini-series i.missing {
  height: 1px;
  background: #818b94;
  align-self: center;
}
.demo-sample-label {
  white-space: nowrap;
}
.demo-sample {
  gap: 8px;
}
@media (max-width: 650px) {
  .app-main {
    padding-top: 12px;
  }
  .demo-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 122px;
    gap: 8px;
    padding: 7px 10px;
    margin-bottom: 14px;
    align-items: center;
  }
  .demo-banner > span {
    width: auto;
    font-size: 0.75rem;
    line-height: 1.65;
  }
  .demo-banner > a,
  .demo-sample-label {
    display: none;
  }
  .demo-banner .demo-sample {
    margin: 0;
    min-width: 0;
    display: block;
  }
  .demo-banner select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 6px;
    font-size: 0.75rem;
  }
  .page-heading {
    gap: 8px;
    margin-bottom: 18px;
  }
  .page-heading p {
    margin-top: 5px;
  }
  .page-heading h1 > .fa-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
  }
  .period-select input {
    min-height: 36px;
  }
}
.mobile-menu.with-icon {
  display: none;
}
@media (max-width: 950px) {
  .mobile-menu.with-icon {
    display: inline-flex;
  }
  .mobile-menu .fa-icon {
    width: 18px;
    height: 18px;
  }
}
.mobile-menu.with-icon {
  min-width: 44px;
  min-height: 44px;
}

/* Official supplied logo: do not tint, crop or stretch the lockup. */
:root {
  --brand: #3d636d;
  --brand-dark: #3d636d;
  --brand-mid: #54899b;
  --brand-light: #63a3bf;
}
.brand {
  gap: 0;
}
.brand .brand-logo {
  width: 208px;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.document-brand {
  margin: 0 0 24px;
}
.document-brand .brand-logo {
  display: block;
  width: 248px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.landing-nav .brand .brand-logo {
  width: 248px;
}
@media (max-width: 600px) {
  .landing-nav .brand .brand-logo {
    width: 176px;
  }
  .document-brand .brand-logo {
    width: 232px;
  }
}
@media print {
  .document-brand {
    break-inside: avoid;
    margin-bottom: 8mm;
  }
  .document-brand .brand-logo {
    width: 48mm;
    height: auto;
    print-color-adjust: exact;
  }
}
.mobile-brand {
  display: none;
}
@media (max-width: 950px) {
  .topbar .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .topbar .breadcrumb > span,
  .topbar .breadcrumb > b {
    display: none;
  }
  .mobile-brand {
    display: block;
  }
  .mobile-brand .brand-logo {
    width: 176px;
    max-width: 100%;
    height: auto;
    display: block;
  }
}
.landing-nav .brand {
  min-width: 0;
  flex: 0 1 248px;
}
.landing-nav > div {
  flex-shrink: 0;
}

/* Research/UI line: same dashboard order, compact mobile summaries only. */
@media (max-width: 650px) {
  .home-stats .stat {
    min-height: 132px;
    padding: 12px;
  }
  .home-stats .number {
    font-size: 2rem;
    line-height: 1.1;
    margin: 8px 0 6px;
  }
}

/* Formal app: scoped library flow and dashboard-consistent calendar cards. */
.research-library {
  display: block;
  min-width: 0;
}
.research-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 0.4fr) auto;
  align-items: end;
  gap: 16px;
}
.research-filter label,
.research-filter input,
.research-filter select {
  min-width: 0;
  width: 100%;
}
.research-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.research-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  overflow-wrap: anywhere;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.research-card h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
}
.research-card p {
  margin: 0;
  line-height: 1.8;
}
.research-card button {
  align-self: flex-start;
  margin-top: auto;
}
.calendar-grid {
  gap: 16px;
  border: 0;
  background: transparent;
  align-items: start;
}
.calendar-grid .month-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 220px;
}
.calendar-grid .month-heading {
  flex-wrap: wrap;
}
.year-summary {
  background: white;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.year-summary strong,
.year-summary p {
  color: inherit;
}
.title-actions {
  flex-wrap: wrap;
}
.initial-content-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 680px) {
  .research-filter,
  .research-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .calendar-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.research-detail {
  min-width: 0;
  overflow-wrap: anywhere;
}
.research-detail ol,
.research-detail ul {
  padding-inline-start: 24px;
}

.research-library {
  padding: 24px;
}
@media (max-width: 680px) {
  .research-library {
    padding: 16px;
  }
}
@media print {
  #local-preview-banner {
    display: none !important;
  }
  html,
  body,
  #print-area {
    background: white !important;
  }
  #print-area .survey-sheet {
    font-size: 10pt;
    line-height: 1.35;
  }
  #print-area .survey-sheet .document-brand {
    margin-bottom: 4mm;
  }
  #print-area .survey-sheet h1 {
    font-size: 17pt;
    margin: 6pt 0;
  }
  #print-area .survey-sheet > p {
    font-size: 9pt;
    margin: 4pt 0;
  }
  #print-area .sheet-question {
    padding: 7pt 0;
    margin: 0;
    break-inside: avoid;
  }
  #print-area .sheet-question h3 {
    font-size: 10pt;
    margin: 0 0 3pt;
  }
  #print-area .sheet-question p {
    font-size: 8pt;
    margin: 0 0 4pt;
  }
  #print-area .sheet-option {
    display: inline-block;
    font-size: 9pt;
    margin: 0 9pt 3pt 0;
  }
}

/* Second-use simplification: preserve the existing brand and component palette. */
.hero-preview {
  transform: none;
}
.landing-nav > div,
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.record-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.record-tabs button.active {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}
.activity-settings-list {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}
.activity-setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line, #dfe4e8);
  padding: 12px 0;
}
.activity-setting-row .inline-actions {
  flex-wrap: wrap;
}
.activity-setting-row .field {
  margin: 0;
}
.simple-review-group {
  border: 1px solid var(--line, #dfe4e8);
  border-radius: 12px;
  padding: 18px;
  min-width: 0;
}
.simple-review-group legend {
  padding: 0 6px;
  font-weight: 600;
}
.service-sections {
  display: grid;
  gap: 24px;
}
.app-main > .panel + .panel,
.app-main > .cards-grid + .panel {
  margin-top: 24px;
}
.annual-ideas {
  padding: 24px;
  margin-top: 24px;
  min-width: 0;
}
#consents-form > .field {
  padding-block: 8px;
  margin-bottom: 12px;
}
#consents-form input[type="checkbox"] {
  margin-right: 8px;
}
.legal-page {
  max-width: 1000px;
  margin: 24px auto;
  padding: 16px;
}
.legal-page > nav {
  margin: 24px 0;
  line-height: 2;
}
.legal {
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.legal h1 {
  font-size: 1.8rem;
}
.legal h2 {
  margin-top: 28px;
}
.legal h3 {
  margin-top: 20px;
}
.legal ul,
.legal ol {
  padding-left: 24px;
}
.legal pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 16px;
  background: #f4f6f7;
  border-radius: 8px;
}
.legal-table th,
.legal-table td {
  white-space: normal;
  min-width: 140px;
  vertical-align: top;
}
.storage-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.storage-card {
  padding: 24px;
  border: 1px solid var(--line, #dfe4e8);
  border-radius: 12px;
  background: #f9fbfb;
}
.storage-card > span {
  display: block;
  text-align: center;
  font-size: 24px;
  color: var(--teal);
}
.storage-card > strong {
  display: block;
  text-align: center;
}
[hidden] {
  display: none !important;
}
@media (max-width: 680px) {
  .activity-setting-row {
    grid-template-columns: minmax(0, 1fr) 110px;
    gap: 12px;
  }
  .activity-setting-row .inline-actions {
    grid-column: 1/-1;
  }
  .storage-flow {
    grid-template-columns: 1fr;
  }
  .legal-page {
    padding: 12px;
    margin: 12px auto;
  }
  .legal-page .detail-card {
    padding: 18px;
  }
  .annual-ideas {
    padding: 18px;
  }
  .landing-nav > div {
    gap: 8px;
  }
}
.review-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.season-candidate {
  padding: 14px 0;
  border-bottom: 1px solid var(--line, #dfe4e8);
}
.season-candidate h3 {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 10px;
}
@media (max-width: 680px) {
  .review-stats {
    grid-template-columns: 1fr;
  }
  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .legal-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .legal-table tr {
    border: 1px solid var(--line, #dfe4e8);
    border-radius: 8px;
    margin: 12px 0;
    overflow: hidden;
  }
  .legal-table td {
    padding: 12px;
    border: 0;
    overflow-wrap: anywhere;
  }
  .legal-table td:first-child {
    font-weight: 600;
    background: #f4f6f7;
  }
  .legal-table td:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 5px;
  }
}
#p2-review-form > .cards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.activity-extra {
  margin-top: 16px;
}
.activity-extra > summary {
  cursor: pointer;
  color: var(--teal);
  padding-block: 12px;
  font-weight: 600;
}
.recent-records {
  border-top: 1px solid var(--line, #dfe4e8);
  margin-top: 16px;
  padding-top: 16px;
}
.recent-records h3 {
  font-size: 0.9rem;
}
@media (max-width: 800px) {
  #p2-review-form > .cards-grid {
    grid-template-columns: 1fr;
  }
}
/* Compact, aligned activity settings. Names never size the control columns. */
#activity-settings-form .activity-setting-head,
#activity-settings-form .activity-setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px 100px 116px;
  gap: 12px;
  align-items: center;
}
.activity-setting-head {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.activity-setting-name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}
.activity-setting-visible {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}
.activity-setting-visible input {
  width: 18px;
  height: 18px;
  margin: 0;
}
#activity-settings-form .activity-setting-target {
  margin: 0;
  min-width: 0;
}
#activity-settings-form .activity-setting-target input {
  width: 100%;
  min-width: 0;
  padding: 8px;
}
#activity-settings-form .activity-setting-row .inline-actions {
  grid-column: auto;
  flex-wrap: wrap;
  gap: 4px;
}
#activity-settings-form .inline-actions button {
  padding: 8px;
  min-width: 0;
}
.activity-settings-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--paper, #fff);
  padding: 8px 0;
  display: flex;
  justify-content: flex-end;
}
#activity-settings-form .activity-settings-list {
  max-height: 55vh;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-gutter: stable;
}
.record-definition {
  height: 8em;
  line-height: 1.6;
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.season-candidate {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.season-candidate h3,
.season-candidate p {
  margin: 0;
  overflow-wrap: anywhere;
}
.season-candidate .inline-actions {
  margin-top: auto;
  flex-wrap: wrap;
}
.plan-registration {
  font-weight: 600;
  color: var(--green, #28624c);
}
.upcoming-ideas > .panel {
  min-width: 0;
}
@media (max-width: 680px) {
  #activity-settings-form .activity-setting-head {
    display: none;
  }
  #activity-settings-form .activity-setting-row {
    grid-template-columns: 44px minmax(70px, 1fr) 116px;
    gap: 10px;
  }
  .activity-setting-name {
    grid-column: 1 / -1;
  }
  #activity-settings-form .activity-setting-target::before {
    content: "月次目標";
    font-size: 0.75rem;
    color: var(--muted);
  }
  #activity-settings-form .activity-setting-visible::before {
    content: "表示";
    font-size: 0.75rem;
    color: var(--muted);
  }
  #activity-settings-form .activity-setting-visible {
    flex-direction: column;
    gap: 6px;
  }
  #activity-settings-form .activity-settings-list {
    max-height: 52vh;
    padding-right: 4px;
  }
  .record-definition {
    height: 11.2em;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#activity-settings-form .activity-setting-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
}
