.tool-group-heading { grid-column: 1 / -1; margin: 18px 0 0; padding: 12px 0 4px; border-top: 1px solid var(--line); }
.task-grid.marketing-grid.is-grouped { grid-auto-rows: auto; }
.module-route-grid.two-card-grid.is-grouped > .module-route-card:last-child { grid-column: auto; width: auto; justify-self: stretch; }
.tool-subtitle { color: var(--muted); font-size: 15px; font-weight: 700; }
.tool-group-heading h3 { margin: 0 0 6px; font-size: 22px; line-height: 1.4; color: var(--ink); }
.tool-group-heading p { margin: 0; color: var(--muted); line-height: 1.6; }
.data-version-note { margin: 0 0 18px; padding: 12px 16px; border-left: 3px solid #0f766e; background: #f0fdfa; color: #36575d; font-size: 15px; line-height: 1.7; }
.medical-tool-embed-heading #medicalToolTitle { display: none; }
.medical-tool-embed-heading #medicalToolDescription { margin: 0; font-size: 15px; }
.reservoir-tool-heading strong { display: none; }
.medical-tool-frame.shield-frame-auto, .reservoir-tool-frame.shield-frame-auto, .business-tool-frame.shield-frame-auto { min-height: 0; }
.card-layer h2[tabindex="-1"]:focus-visible, .card-layer h3[tabindex="-1"]:focus-visible { outline: 2px solid #0f766e; outline-offset: 6px; }
@media (max-width: 720px) { .tool-group-heading h3 { font-size: 20px; } .tool-group-heading { margin-top: 10px; } }

:root {
  --ink: #00272b;
  --muted: #666666;
  --line: #dddddd;
  --paper: #ffffff;
  --background: #eff8f9;
  --primary: #019ca8;
  --primary-strong: #167d86;
  --primary-dark: #0d575d;
  --primary-deep: #00272b;
  --gold-soft: #ffeab4;
  --gold: #eab329;
  --red: #ea6a5e;
  --gray-soft: #f8f8f8;
  --shadow: 10px 25px 45px -15px rgba(0, 0, 0, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.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;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--background);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", Arial, sans-serif;
  line-height: 1.5;
}

button,
a,
textarea,
select,
input {
  font: inherit;
  touch-action: manipulation;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto 20px;
  max-width: 1320px;
  padding: 12px 22px;
  background: var(--paper);
  border: 1px solid rgba(0, 39, 43, 0.08);
  border-radius: 72px;
  box-shadow: 0 11px 20px rgba(0, 0, 0, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand-home {
  color: inherit;
  text-decoration: none;
  border-radius: 48px;
  cursor: pointer;
}

.brand-home:hover h1 {
  color: var(--primary);
}

.brand-home:focus-visible {
  outline: 3px solid rgba(0, 156, 170, 0.28);
  outline-offset: 6px;
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.brand h1,
.study-heading h3,
.chapter-detail h4,
.chapter-detail h5 {
  margin: 0;
  letter-spacing: 0;
}

.brand h1 {
  font-size: 28px;
  line-height: 1.2;
  white-space: nowrap;
}

.eyebrow {
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 4px;
}

.topbar-meta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.topbar-meta strong {
  color: var(--ink);
  font-size: 15px;
}

.device-recommendation {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 6px 10px;
  color: var(--muted);
  background: #f5fbfb;
  border-left: 3px solid var(--primary);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
}

.device-recommendation strong {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.version-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  color: var(--primary-dark);
  background: #eef9f9;
  border: 1px solid rgba(0, 156, 170, 0.2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.topbar-home-link {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.topbar-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.topbar-links a {
  white-space: nowrap;
}

.topbar-feedback-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  background: #eef9f9;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.topbar-feedback-link:hover {
  background: #dff3f3;
}

.topbar-feedback-link:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.topbar-home-link:hover,
.topbar-home-link:focus-visible {
  color: var(--primary);
  outline: none;
}

.topbar-actions {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.workspace {
  display: block;
  max-width: 1320px;
  margin: 0 auto;
}

.task-panel,
.detail-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.task-panel {
  padding: 22px;
}

.detail-panel {
  padding: 22px;
}

.task-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.task-heading h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.card-layer {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.card-layer[hidden] {
  display: none;
}

#medicalGeneratorContent[hidden],
#medicalTopicArticle[hidden],
#medicalToolEmbed[hidden],
.reservoir-tool-panel[hidden] {
  display: none !important;
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.balanced-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.five-card-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.six-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.seven-card-grid {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.seven-card-grid > .task-card {
  grid-column: span 2;
}

.seven-card-grid > .task-card:nth-child(5) {
  grid-column: 2 / span 2;
}

.seven-card-grid > .task-card:nth-child(6) {
  grid-column: 4 / span 2;
}

.seven-card-grid > .task-card:nth-child(7) {
  grid-column: 6 / span 2;
}

.primary-task-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  width: 100%;
}

@media (min-width: 781px) {
  .primary-task-grid.nine-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.subject-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
}

.business-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  max-width: 1260px;
}

.tool-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.task-grid.marketing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  max-width: 980px;
}

.medical-topic-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.reward-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  width: 100%;
  max-width: none;
}

.reservoir-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  width: 100%;
  max-width: none;
}

.tax-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  width: 100%;
  max-width: none;
}

.public-sector-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  max-width: 980px;
}

.task-card {
  min-height: 172px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--primary);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.task-card.is-ready:hover,
.task-card.is-ready:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 14px 24px rgba(1, 156, 168, 0.14);
  outline: none;
  transform: translateY(-2px);
}

.task-card:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.company-card:not(a) {
  cursor: default;
}

.task-kicker {
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 800;
}

.task-card strong {
  display: block;
  font-size: 22px;
  line-height: 1.25;
}

.subject-card,
.business-card {
  min-height: 160px;
  display: grid;
  grid-template-rows: 18px 58px auto;
  align-content: start;
}

.subject-card strong,
.business-card strong {
  min-height: 58px;
}

.subject-title-lines span {
  display: block;
}

.task-card > span:last-child {
  color: var(--muted);
  font-size: 14px;
}

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

.wpm-resource-card,
.marketing-resource-card {
  min-height: 360px;
  overflow: hidden;
  padding: 0;
  gap: 0;
  border-top-width: 1px;
  justify-content: flex-start;
}

.wpm-card-preview,
.marketing-card-preview {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: #f8f4eb;
}

.wpm-trust-card .wpm-card-preview {
  object-position: center 12%;
}

.wpm-card-copy,
.marketing-card-copy {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 18px 20px 20px;
}

.wpm-card-copy > span:last-child,
.marketing-card-copy > span:last-child {
  color: var(--muted);
  font-size: 14px;
}

.wpm-transcript-card {
  background: linear-gradient(145deg, #f5fbfb 0%, #ffffff 68%);
}

.wpm-video-card {
  background: linear-gradient(145deg, #fff5f2 0%, #ffffff 68%);
}

.wpm-video-visual {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  width: 100%;
  aspect-ratio: 16 / 9;
  color: #ffffff;
  background: linear-gradient(135deg, #b42318 0%, #e03a2f 58%, #f0675d 100%);
  border-bottom: 1px solid var(--line);
}

.wpm-video-play {
  display: grid;
  place-items: center;
  width: 58px;
  height: 42px;
  padding-left: 4px;
  border-radius: 14px;
  color: #b42318;
  background: #ffffff;
  font-size: 22px;
  box-shadow: 0 10px 24px rgba(83, 17, 12, 0.22);
}

.wpm-video-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.marketing-protection-card {
  background: linear-gradient(145deg, #f5fbf8 0%, #fffaf1 100%);
}

.marketing-risk-card {
  background: linear-gradient(145deg, #f1f8f6 0%, #fffaf1 100%);
}

.marketing-risk-card .marketing-card-preview {
  object-fit: contain;
  padding: 14px;
  background: #eaf3f1;
}

.marketing-retirement-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(300px, 0.86fr);
  min-height: 280px;
  background: linear-gradient(145deg, #eef4f6 0%, #fbfaf7 68%, #f5efe5 100%);
}

.marketing-retirement-card .marketing-card-preview {
  height: 100%;
  min-height: 280px;
  max-height: 320px;
  aspect-ratio: auto;
  border-right: 1px solid var(--line);
  border-bottom: 0;
  object-position: center 8%;
  background: #dce7ec;
}

.marketing-retirement-card .marketing-card-copy {
  align-content: center;
  padding: 28px 30px;
}

.marketing-accounts-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1.14fr);
  min-height: 280px;
  background: linear-gradient(145deg, #f4f5f7 0%, #ffffff 72%);
}

.marketing-accounts-preview {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  min-height: 280px;
  border-right: 1px solid var(--line);
  background: #1d1d1f;
}

.marketing-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  color: #ffffff;
}

.marketing-account-row small {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.marketing-account-row strong {
  font-size: clamp(19px, 2vw, 27px);
  letter-spacing: -0.03em;
}

.marketing-account-invest { background: #272729; }
.marketing-account-save { background: #8e7ca7; }
.marketing-account-cover { background: #c98f6f; }
.marketing-account-cash { background: #789db4; }

.marketing-accounts-card .marketing-card-copy {
  align-content: center;
  padding: 28px 30px;
}

.marketing-p100-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  min-height: 280px;
  background: linear-gradient(145deg, #f4f4f2 0%, #ffffff 72%);
}

.marketing-p100-preview {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 280px;
  overflow: hidden;
  padding: 22px;
  border-right: 1px solid var(--line);
  color: #ffffff;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.14), transparent 28%),
    #0c0c0c;
}

.marketing-p100-toolbar,
.marketing-p100-list > span {
  display: flex;
  align-items: center;
}

.marketing-p100-toolbar {
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.marketing-p100-toolbar strong {
  font-family: "Arial Black", "Helvetica Neue", sans-serif;
  font-size: 20px;
  letter-spacing: -0.05em;
}

.marketing-p100-toolbar small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.marketing-p100-list {
  display: grid;
  align-content: center;
  gap: 8px;
  padding-right: 68px;
}

.marketing-p100-list > span {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
}

.marketing-p100-list i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #111111;
  background: #ffffff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.marketing-p100-list b {
  align-self: center;
  font-size: 12px;
}

.marketing-p100-list small {
  align-self: center;
  color: #f6c85f;
  font-size: 13px;
  font-weight: 900;
}

.marketing-p100-score {
  position: absolute;
  right: 20px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(246, 200, 95, 0.74);
  border-radius: 50%;
  background: #0c0c0c;
}

.marketing-p100-score b {
  color: #f6c85f;
  font-size: 24px;
  line-height: 1;
}

.marketing-p100-score small {
  color: rgba(255, 255, 255, 0.64);
  font-size: 9px;
}

.marketing-p100-card .marketing-card-copy {
  align-content: center;
  padding: 28px 30px;
}

.marketing-newborn-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  min-height: 300px;
  background: #f5f5f7;
}

.marketing-newborn-card .marketing-card-preview {
  height: 100%;
  min-height: 300px;
  aspect-ratio: auto;
  border-right: 1px solid var(--line);
  border-bottom: 0;
  object-position: 66% center;
  background: #e8eef1;
}

.marketing-newborn-card .marketing-card-copy {
  align-content: center;
  padding: 28px 30px;
}

.marketing-product-card {
  background: #fffdf8;
}

.marketing-product-preview {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: 22px 24px 20px;
  color: #ffffff;
  background:
    radial-gradient(circle at 88% 18%, rgba(92, 210, 218, 0.36), transparent 25%),
    linear-gradient(135deg, #003d54 0%, #065f75 54%, #0b7c87 100%);
  border-bottom: 1px solid var(--line);
}

.marketing-product-preview::before {
  position: absolute;
  z-index: -1;
  right: -64px;
  bottom: -92px;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(255, 234, 180, 0.5);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(255, 234, 180, 0.06),
    0 0 0 72px rgba(255, 255, 255, 0.04);
  content: "";
}

.marketing-product-preview::after {
  position: absolute;
  z-index: -1;
  right: 84px;
  bottom: 48px;
  width: 112px;
  height: 1px;
  background: rgba(255, 234, 180, 0.8);
  box-shadow: 32px -26px 0 rgba(255, 234, 180, 0.58);
  content: "";
  transform: rotate(-36deg);
  transform-origin: right center;
}

.marketing-product-code {
  align-self: start;
  color: #eafcfd;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.marketing-product-currency {
  justify-self: end;
  padding: 4px 8px;
  border: 1px solid rgba(255, 234, 180, 0.62);
  color: #ffeab4;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.marketing-product-title {
  grid-column: 1 / -1;
  align-self: end;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: "Noto Serif TC", "Songti TC", serif;
  line-height: 0.9;
  text-shadow: 0 6px 24px rgba(0, 28, 43, 0.22);
}

.marketing-product-title > span {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.marketing-product-title strong {
  color: #ffeab4;
  font-size: clamp(52px, 6vw, 76px);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.marketing-product-subtitle {
  grid-column: 1 / -1;
  margin-top: 10px;
  color: #eafcfd;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.marketing-product-meta {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.marketing-product-meta > span {
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: rgba(255, 255, 255, 0.88);
  background: rgba(0, 39, 43, 0.16);
  font-size: 11px;
  font-weight: 700;
}

.marketing-card-copy > .marketing-product-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 39, 43, 0.1);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.marketing-product-action > span {
  color: var(--gold);
  font-size: 20px;
  line-height: 1;
  transition: transform 160ms ease;
}

.marketing-resource-card:hover .marketing-product-action > span,
.marketing-resource-card:focus-visible .marketing-product-action > span {
  transform: translateX(4px);
}

/* 行銷訓練第二層共用卡片格式；個別主題只保留預覽內容的視覺。 */
.marketing-grid > .marketing-resource-card {
  grid-column: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  min-height: 0;
  background: #fff;
}

.marketing-grid > .marketing-resource-card > .marketing-card-media {
  flex: 0 0 auto;
  width: 100%;
  height: 260px;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  border-right: 0;
  border-bottom: 1px solid var(--line);
}

.marketing-grid > .marketing-resource-card > .marketing-card-copy {
  flex: 1;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
  gap: 8px;
  padding: 20px;
}

.marketing-grid .marketing-card-copy > .task-kicker {
  color: var(--primary-strong);
  font-size: 13px;
  line-height: 1.5;
}

.marketing-grid .marketing-card-copy > strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.4;
}

.marketing-grid .marketing-card-copy > span:not([class]) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.marketing-grid .marketing-card-copy > .marketing-product-action {
  align-self: end;
  color: var(--primary-strong);
}

.marketing-grid > .marketing-resource-card:focus-visible {
  outline: 3px solid var(--primary-strong);
  outline-offset: 3px;
}

@media (max-width: 780px) {
  .marketing-grid > .marketing-resource-card > .marketing-card-media {
    height: 240px;
  }

  .marketing-grid .marketing-p100-preview {
    grid-template-rows: auto 1fr auto;
    padding: 16px;
  }

  .marketing-grid .marketing-p100-list {
    gap: 6px;
    padding-right: 0;
  }

  .marketing-grid .marketing-p100-list > span {
    padding: 6px 8px;
  }

  .marketing-grid .marketing-p100-score {
    position: static;
    display: flex;
    justify-content: space-between;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: none;
  }

  .marketing-grid .marketing-p100-score b { font-size: 18px; }
  .marketing-grid .marketing-p100-score small { font-size: 11px; }
}

.wpm-transcript-visual {
  display: grid;
  flex: 1;
  place-items: center;
  width: 100%;
  min-height: 218px;
  background:
    linear-gradient(rgba(0, 39, 43, 0.04) 1px, transparent 1px) 0 0 / 100% 36px,
    linear-gradient(135deg, #eff8f9 0%, #fdf7e9 100%);
  border-bottom: 1px solid var(--line);
}

.wpm-transcript-visual > span {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border: 1px solid rgba(234, 179, 41, 0.58);
  border-radius: 50%;
  color: var(--primary-deep);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 35px rgba(0, 39, 43, 0.12);
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 44px;
  font-weight: 800;
}

.wpm-image-dialog {
  width: min(96vw, 1420px);
  max-width: none;
  max-height: 94vh;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 39, 43, 0.16);
  border-radius: 20px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(0, 39, 43, 0.32);
}

.wpm-image-dialog::backdrop {
  background: rgba(0, 24, 27, 0.78);
  backdrop-filter: blur(5px);
}

.wpm-image-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.wpm-image-dialog-header h3 {
  margin: 2px 0 0;
  font-size: 22px;
  line-height: 1.2;
}

.wpm-image-dialog-close {
  flex: 0 0 auto;
  padding: 9px 18px;
  border: 1px solid rgba(0, 39, 43, 0.16);
  border-radius: 999px;
  color: var(--primary-deep);
  background: var(--gray-soft);
  cursor: pointer;
  font-weight: 800;
}

.wpm-image-dialog-close:hover,
.wpm-image-dialog-close:focus-visible {
  border-color: var(--primary);
  outline: 3px solid rgba(1, 156, 168, 0.2);
  outline-offset: 2px;
}

.wpm-image-dialog-canvas {
  max-height: calc(94vh - 76px);
  overflow: auto;
  display: grid;
  gap: 18px;
  grid-auto-rows: max-content;
  align-content: start;
  padding: 18px;
  background: #f3f6f5;
}

.wpm-image-figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(0, 39, 43, 0.12);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 39, 43, 0.08);
}

.wpm-image-figure-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.wpm-image-figure-heading > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.wpm-image-figure-heading strong {
  color: var(--primary-deep);
  font-size: 19px;
}

.wpm-image-figure-heading small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.wpm-image-download {
  flex: 0 0 auto;
  padding: 9px 16px;
  border: 1px solid rgba(1, 156, 168, 0.28);
  border-radius: 999px;
  color: var(--primary-deep);
  background: #effafb;
  font-size: 14px;
  font-weight: 800;
}

.wpm-image-download:hover,
.wpm-image-download:focus-visible {
  border-color: var(--primary);
  color: #ffffff;
  background: var(--primary-strong);
  outline: 3px solid rgba(1, 156, 168, 0.2);
  outline-offset: 2px;
}

.wpm-image-figure img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 781px) {
  .wpm-image-dialog[open] {
    display: grid;
    height: 94vh;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .wpm-image-dialog-canvas {
    min-height: 0;
    max-height: none;
    overflow: auto;
  }
}

.wpm-transcript-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0%, rgba(1, 156, 168, 0.12), transparent 34%),
    radial-gradient(circle at 92% 18%, rgba(234, 179, 41, 0.14), transparent 28%),
    var(--background);
}

.wpm-transcript-shell {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.wpm-transcript-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.wpm-transcript-meta {
  color: var(--muted);
  font-size: 14px;
}

.wpm-transcript-hero,
.wpm-transcript-article {
  border: 1px solid rgba(0, 39, 43, 0.1);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.wpm-transcript-hero {
  padding: clamp(28px, 5vw, 52px);
  border-radius: 24px 24px 10px 10px;
}

.wpm-transcript-hero h1 {
  max-width: 760px;
  margin: 4px 0 14px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
}

.wpm-transcript-hero p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.wpm-transcript-article {
  margin-top: 16px;
  padding: clamp(24px, 5vw, 52px);
  border-radius: 10px 10px 24px 24px;
}

.wpm-transcript-section + .wpm-transcript-section {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.wpm-transcript-section h2 {
  margin: 0 0 14px;
  color: var(--primary-dark);
  font-size: 24px;
}

.wpm-transcript-section p {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.9;
}

.wpm-transcript-section p:last-child {
  margin-bottom: 0;
}

.wpm-transcript-raw {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  font-size: 18px;
  line-height: 1.9;
}

.wpm-transcript-highlight {
  padding: 0 0.08em;
  border-radius: 0.16em;
  color: #b42318;
  background:
    linear-gradient(
      to bottom,
      transparent 58%,
      rgba(217, 45, 32, 0.16) 58%
    );
  font-weight: 800;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.wpm-transcript-tool {
  display: inline-block;
  margin: 0 0.08em;
  padding: 0.02em 0.38em;
  border: 1px solid rgba(180, 35, 24, 0.35);
  border-radius: 0.38em;
  color: #a4120b;
  background: rgba(254, 226, 226, 0.92);
  font-weight: 900;
  line-height: 1.45;
  box-shadow: inset 0 -2px 0 rgba(180, 35, 24, 0.12);
}

.wpm-transcript-cue {
  color: var(--primary-strong);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.wpm-transcript-note {
  margin-top: 34px;
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  color: #5c4b1d;
  background: #fff7df;
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 780px) {
  .wpm-layer-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .wpm-resource-card {
    min-height: 0;
  }

  .task-grid.marketing-grid {
    grid-template-columns: 1fr;
  }

  .marketing-resource-card {
    min-height: 0;
  }

  .marketing-retirement-card {
    grid-column: auto;
    display: flex;
    min-height: 0;
  }

  .marketing-accounts-card {
    grid-column: auto;
    display: flex;
    min-height: 0;
  }

  .marketing-p100-card {
    grid-column: auto;
    display: flex;
    min-height: 0;
  }

  .marketing-newborn-card {
    grid-column: auto;
    display: flex;
    min-height: 0;
  }

  .marketing-retirement-card .marketing-card-preview {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 9;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .marketing-retirement-card .marketing-card-copy {
    padding: 18px 20px 20px;
  }

  .marketing-accounts-preview {
    width: 100%;
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .marketing-accounts-card .marketing-card-copy {
    padding: 18px 20px 20px;
  }

  .marketing-p100-preview {
    width: 100%;
    min-height: 240px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .marketing-p100-card .marketing-card-copy {
    padding: 18px 20px 20px;
  }

  .marketing-newborn-card .marketing-card-preview {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .marketing-newborn-card .marketing-card-copy {
    padding: 18px 20px 20px;
  }

  .wpm-image-dialog {
    width: calc(100vw - 16px);
    max-height: 96vh;
    border-radius: 14px;
  }

  .wpm-image-dialog-header {
    align-items: flex-start;
    padding: 12px 14px;
  }

  .wpm-image-dialog-header h3 {
    font-size: 18px;
  }

  .wpm-image-dialog-close {
    padding: 7px 14px;
  }

  .wpm-image-dialog-canvas {
    max-height: calc(96vh - 70px);
    gap: 12px;
    padding: 10px;
  }

  .wpm-image-figure {
    border-radius: 12px;
  }

  .wpm-image-figure-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 13px 14px;
  }

  .wpm-image-download {
    width: 100%;
    text-align: center;
  }

  .wpm-transcript-shell {
    width: min(calc(100% - 24px), 980px);
    padding-top: 16px;
  }

  .wpm-transcript-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .wpm-transcript-section p {
    font-size: 17px;
  }
}

.primary-task-grid .task-card {
  min-height: 148px;
  display: grid;
  grid-template-rows: 18px 42px auto;
  align-content: start;
}

.primary-task-grid .task-card strong {
  display: flex;
  align-items: center;
  min-height: 42px;
}

.onboard-flow-card {
  cursor: default;
  gap: 18px;
  grid-column: span 4;
  min-height: 0;
}

.accident-sop-card {
  cursor: default;
  gap: 18px;
  grid-column: span 4;
  min-height: 0;
}

.medical-message-card {
  cursor: default;
  gap: 18px;
  grid-column: span 4;
  min-height: 0;
}

.medical-info-card {
  cursor: default;
  gap: 18px;
  grid-column: span 4;
  min-height: 0;
}

.onboard-card-heading {
  display: grid;
  gap: 10px;
}

.onboard-card-heading strong {
  font-size: 24px;
}

.onboard-card-heading > span:last-child {
  color: var(--muted);
  font-size: 14px;
}

.onboard-flow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.accident-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.onboard-flow li,
.accident-flow li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 150px;
  padding: 14px;
  border: 1px solid rgba(1, 156, 168, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(1, 156, 168, 0.08), #fff);
}

.onboard-flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 32px;
  right: -10px;
  width: 10px;
  height: 2px;
  background: var(--primary);
}

.onboard-flow li > span,
.accident-flow li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.onboard-flow li strong,
.accident-flow li strong {
  font-size: 16px;
  line-height: 1.35;
}

.onboard-flow li p,
.accident-flow li p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.accident-copy-panel {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--gray-soft);
}

.accident-copy-select {
  display: inline-grid;
  grid-template-columns: auto minmax(180px, 260px);
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.accident-copy-select select {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
}

.accident-message {
  width: 100%;
  min-height: 210px;
  resize: vertical;
  padding: 14px;
  border: 1px solid rgba(0, 39, 43, 0.12);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}

.accident-message:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(1, 156, 168, 0.14);
}

.accident-copy-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.accident-copy-button {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.accident-copy-button:hover,
.accident-copy-button:focus-visible {
  background: var(--primary-dark);
  color: #fff;
}

.accident-copy-status {
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 900;
}

.medical-control-panel,
.medical-documents-panel {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--gray-soft);
}

.medical-type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.medical-customer-field {
  display: grid;
  grid-template-columns: minmax(90px, auto) minmax(220px, 1fr);
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(0, 39, 43, 0.1);
  border-radius: 8px;
  background: #fff;
}

.medical-customer-field span {
  color: var(--primary-dark);
  font-size: 15px;
  font-weight: 900;
}

.medical-customer-field input {
  width: 100%;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
}

.medical-customer-field input:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(1, 156, 168, 0.14);
}

.medical-choice {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 118px;
  padding: 14px;
  border: 1px solid rgba(1, 156, 168, 0.2);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.medical-choice input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.medical-choice span {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
}

.medical-choice small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.5;
}

.medical-choice:has(input:checked) {
  border-color: var(--primary);
  box-shadow: inset 0 4px 0 var(--primary);
}

.medical-document-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.medical-document-field {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(0, 39, 43, 0.1);
  border-radius: 8px;
  background: #fff;
}

.medical-document-field span {
  color: var(--primary-dark);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}

.medical-document-field input {
  width: 100%;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 17px;
  font-weight: 900;
}

.medical-document-field input:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(1, 156, 168, 0.14);
}

.medical-document-field input[readonly] {
  color: var(--primary-dark);
  background: rgba(1, 156, 168, 0.08);
  cursor: default;
}

.medical-topic-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.medical-topic-section {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(0, 39, 43, 0.1);
  border-radius: 8px;
  background: var(--gray-soft);
}

.medical-topic-section h3 {
  color: var(--primary-dark);
  font-size: 20px;
  line-height: 1.3;
}

.medical-topic-section p {
  color: var(--muted);
  line-height: 1.75;
}

.medical-topic-section ul {
  display: grid;
  gap: 8px;
  padding-left: 1.1em;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.6;
}

.medical-tool-embed {
  display: grid;
  gap: 14px;
  width: 100%;
}

.medical-tool-embed-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.medical-tool-embed-heading > div {
  display: grid;
  gap: 6px;
}

.medical-tool-embed-heading strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.25;
}

.medical-tool-embed-heading p {
  color: var(--muted);
  line-height: 1.7;
}

.medical-tool-embed-heading a {
  flex: 0 0 auto;
  text-decoration: none;
}

.medical-tool-frame-shell {
  min-height: 760px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.medical-tool-frame {
  display: block;
  width: 100%;
  min-height: 760px;
  height: 82vh;
  border: 0;
  background: #fff;
}

.reservoir-tool-panel,
.reservoir-placeholder-card {
  display: grid;
  gap: 14px;
  width: 100%;
}

.reservoir-tool-heading,
.reservoir-placeholder-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.reservoir-tool-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.reservoir-tool-heading > div,
.reservoir-placeholder-card {
  display: grid;
  gap: 6px;
}

.reservoir-tool-heading strong,
.reservoir-placeholder-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.25;
}

.reservoir-tool-heading p,
.reservoir-placeholder-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.reservoir-tool-heading a {
  flex: 0 0 auto;
  text-decoration: none;
}

.reservoir-tool-frame-shell {
  min-height: 780px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.reservoir-tool-frame {
  display: block;
  width: 100%;
  min-height: 780px;
  height: 84vh;
  border: 0;
  background: #fff;
}

.labor-retirement-card {
  display: grid;
  gap: 18px;
  width: 100%;
}

.labor-intro-panel,
.labor-control-panel,
.labor-result-panel,
.labor-projection-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.labor-intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  background: linear-gradient(180deg, rgba(1, 156, 168, 0.08), #fff);
}

.labor-intro-panel h3,
.labor-result-hero h3,
.labor-projection-heading h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: 0;
}

.labor-intro-panel p {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.75;
}

.labor-scenario-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.labor-scenario,
.labor-mini-grid button {
  border: 1px solid rgba(1, 156, 168, 0.24);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(1, 156, 168, 0.06);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.labor-scenario {
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 92px;
  padding: 14px;
  text-align: left;
}

.labor-scenario span {
  color: var(--primary-strong);
  font-size: 13px;
}

.labor-scenario strong {
  font-size: 18px;
  line-height: 1.3;
}

.labor-scenario.is-active,
.labor-mini-grid button.is-active {
  border-color: var(--primary);
  color: var(--primary-strong);
  background: rgba(1, 156, 168, 0.14);
  box-shadow: inset 0 4px 0 var(--primary);
}

.labor-tool-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 18px;
  align-items: start;
}

.labor-control-panel,
.labor-result-panel,
.labor-projection-panel {
  padding: 18px;
}

.labor-control-panel {
  display: grid;
  gap: 16px;
}

.labor-control-group {
  display: grid;
  gap: 8px;
}

.labor-control-label,
.labor-range-meta,
.labor-derived-note,
.labor-projection-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.labor-control-label span,
.labor-range-meta span,
.labor-derived-note span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.labor-control-label strong,
.labor-derived-note strong,
.labor-range-meta strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.labor-select-control,
.labor-control-group input[type="range"] {
  width: 100%;
}

.labor-select-control {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
}

.labor-control-group input[type="range"] {
  accent-color: var(--primary);
}

.labor-range-field {
  display: grid;
  gap: 6px;
}

.labor-derived-note {
  padding: 10px 12px;
  border: 1px solid rgba(1, 156, 168, 0.18);
  border-radius: 8px;
  background: rgba(1, 156, 168, 0.06);
}

.labor-divider {
  height: 1px;
  background: var(--line);
}

.labor-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.labor-mini-grid button {
  min-height: 38px;
  padding: 8px;
  font-size: 13px;
}

.labor-result-panel {
  display: grid;
  gap: 16px;
}

.labor-result-hero {
  display: grid;
  gap: 8px;
}

.labor-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.labor-result-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(1, 156, 168, 0.18);
  border-top: 5px solid var(--primary);
  border-radius: 8px;
  background: #fff;
}

.labor-result-card span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.labor-result-card strong {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}

.labor-result-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.labor-explain-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(1, 156, 168, 0.18);
  border-radius: 8px;
  background: var(--gray-soft);
}

.labor-explain-band h4 {
  margin: 0;
  font-size: 20px;
}

.labor-explain-band p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.7;
}

.labor-formula-list {
  display: grid;
  gap: 8px;
}

.labor-formula-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
}

.labor-formula-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.labor-formula-list strong {
  color: var(--primary-strong);
  font-weight: 900;
}

.labor-source-note {
  margin-top: 0;
}

.labor-projection-panel {
  display: grid;
  gap: 16px;
}

.labor-projection-heading p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.labor-projection-control-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(180px, 0.8fr) minmax(260px, 1.4fr);
  gap: 12px;
}

.public-sector-projection-control-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.public-sector-income-control {
  min-width: 0;
}

.labor-table-wrap {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.labor-projection-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #fff;
}

.labor-projection-table th,
.labor-projection-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 800;
  white-space: nowrap;
}

.labor-projection-table th {
  color: var(--ink);
  background: rgba(1, 156, 168, 0.1);
}

.labor-projection-table td {
  color: var(--muted);
}

.public-sector-panel {
  display: grid;
  gap: 18px;
  width: 100%;
}

.public-sector-retirement-card {
  gap: 14px;
}

.public-sector-retirement-intro {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
}

.public-sector-group-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-sector-result-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-sector-result-grid .labor-result-card {
  min-height: 128px;
}

.public-sector-result-grid .labor-result-card strong {
  font-size: clamp(24px, 2.8vw, 38px);
}

.public-sector-overview,
.public-sector-download-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.public-sector-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  background: linear-gradient(180deg, rgba(1, 156, 168, 0.08), #fff);
}

.public-sector-overview h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: 0;
}

.public-sector-overview p {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.75;
}

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

.public-sector-metric-grid article {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 110px;
  padding: 14px;
  border: 1px solid rgba(1, 156, 168, 0.18);
  border-top: 5px solid var(--primary);
  border-radius: 8px;
  background: #fff;
}

.public-sector-metric-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.public-sector-metric-grid strong {
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  letter-spacing: 0;
}

.public-sector-download-section {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.public-sector-download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 126px;
  padding: 18px;
  border: 1px solid rgba(1, 156, 168, 0.22);
  border-top: 5px solid var(--primary);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(1, 156, 168, 0.06);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.public-sector-download-card:hover,
.public-sector-download-card:focus-visible {
  border-color: rgba(1, 156, 168, 0.55);
  box-shadow: 0 14px 28px rgba(0, 58, 66, 0.1);
  transform: translateY(-1px);
}

.public-sector-download-copy {
  display: grid;
  gap: 8px;
}

.public-sector-download-copy strong {
  color: var(--ink);
  font-size: 24px;
  font-weight: 950;
  line-height: 1.15;
}

.public-sector-download-copy small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
}

.public-sector-download-action {
  flex: 0 0 auto;
  padding: 11px 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  font-weight: 950;
  white-space: nowrap;
}

.public-sector-note {
  margin-top: 0;
}

.onboard-documents {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--gray-soft);
}

.onboard-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.onboard-section-heading h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.onboard-document-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.onboard-document-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(0, 39, 43, 0.1);
  border-radius: 8px;
  background: #fff;
}

.onboard-document-grid article > span {
  color: var(--primary-dark);
  font-size: 15px;
  font-weight: 900;
}

.onboard-document-grid ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.onboard-document-grid li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.onboard-document-grid li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.onboard-flow-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: var(--gold-soft);
}

.onboard-flow-note span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.onboard-flow-note p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.layer-back {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--background);
  font-weight: 800;
  cursor: pointer;
}

.layer-back:hover,
.layer-back:focus-visible {
  border-color: var(--primary);
  outline: none;
}

.layer-back:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--background);
  font-weight: 800;
}

.back-link-secondary {
  color: var(--muted);
  background: #fff;
}

.back-link:hover,
.back-link:focus-visible {
  border-color: var(--primary);
  outline: none;
}

ul,
ol {
  margin: 0;
  padding-left: 20px;
}

li {
  margin: 7px 0;
  color: var(--ink);
}

.study-panel {
  margin-top: 0;
  padding-top: 0;
}

.study-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.study-heading h3,
.study-heading h2,
.chapter-detail h4,
.chapter-detail h5 {
  margin: 0;
  letter-spacing: 0;
}

.study-heading h2,
.study-heading h3 {
  font-size: 20px;
}

.chapter-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-chip {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip:focus-visible,
.filter-chip.is-active {
  border-color: var(--primary);
  color: var(--primary-dark);
  outline: none;
}

.filter-chip.is-active {
  background: rgba(1, 156, 168, 0.1);
  font-weight: 800;
}

.chapter-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.35fr);
  gap: 14px;
  align-items: start;
}

.chapter-cards {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 210px);
  overflow: auto;
  padding-right: 4px;
}

.chapter-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.chapter-card:hover,
.chapter-card:focus-visible,
.chapter-card.is-active {
  border-color: var(--primary);
  outline: none;
}

.chapter-card.is-active {
  background: var(--gray-soft);
  box-shadow: inset 4px 0 0 var(--primary);
}

.chapter-number {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  background: var(--primary);
  font-weight: 800;
}

.chapter-card strong,
.chapter-card small,
.chapter-part {
  display: block;
}

.chapter-card strong {
  font-size: 15px;
  line-height: 1.35;
}

.chapter-card small,
.chapter-part {
  color: var(--muted);
  font-size: 12px;
}

.chapter-detail {
  min-height: 520px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--gray-soft);
}

.chapter-detail-header {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.chapter-detail h4 {
  font-size: 22px;
}

.chapter-detail-header p:not(.eyebrow),
.coach-note p {
  margin: 8px 0 0;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-row span {
  padding: 5px 9px;
  border: 1px solid rgba(1, 156, 168, 0.2);
  border-radius: 999px;
  color: var(--primary-dark);
  background: rgba(1, 156, 168, 0.08);
  font-size: 12px;
  font-weight: 700;
}

.chapter-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.chapter-detail h5 {
  font-size: 16px;
  margin-bottom: 8px;
}

.coach-note {
  margin-top: 16px;
  padding: 14px;
  border-left: 5px solid var(--primary);
  border-radius: 8px;
  background: #fff;
}

.question-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.question-stats div {
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--gray-soft);
}

.question-stats span,
.question-stats strong {
  display: block;
}

.question-stats span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.question-stats strong {
  margin-top: 4px;
  font-size: 24px;
  line-height: 1.1;
}

.question-detail-header p:not(.eyebrow) {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.option-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.option-button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  width: 100%;
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.option-button:hover,
.option-button:focus-visible {
  border-color: var(--primary);
  outline: none;
}

.option-button span {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  background: var(--primary-dark);
  font-weight: 900;
}

.option-button strong {
  font-size: 16px;
  line-height: 1.45;
}

.option-button.is-selected {
  border-color: var(--primary);
  box-shadow: inset 4px 0 0 var(--primary);
}

.option-button.is-answer {
  border-color: var(--primary);
  background: rgba(1, 156, 168, 0.08);
}

.option-button.is-wrong {
  border-color: var(--red);
  background: rgba(234, 106, 94, 0.08);
}

.option-button:disabled {
  cursor: default;
  opacity: 1;
}

.question-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.question-progress {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.question-nav-button.is-primary {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.exam-rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(260px, 1.1fr);
  gap: 12px;
  margin: 8px 0 18px;
}

.exam-rule-card {
  min-height: 136px;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--primary);
  border-radius: 8px;
  background: #fff;
}

.exam-rule-card h3 {
  margin: 0;
  font-size: 21px;
  letter-spacing: 0;
}

.exam-rule-card p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
}

.exam-rule-pass {
  border-top-color: var(--gold);
  background: var(--gold-soft);
}

.exam-rule-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.exam-rule-metrics span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid rgba(0, 39, 43, 0.12);
  border-radius: 8px;
  background: var(--gray-soft);
  color: var(--ink);
  font-weight: 800;
  text-align: center;
}

.exam-work-heading {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.exam-control-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}

.exam-status-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(1, 156, 168, 0.2);
  border-radius: 999px;
  color: var(--primary-dark);
  background: rgba(1, 156, 168, 0.08);
  font-weight: 900;
}

.exam-scoreboard {
  margin-bottom: 14px;
}

.exam-score-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--gray-soft);
}

.exam-score-summary.is-pass {
  border-color: rgba(1, 156, 168, 0.35);
  background: rgba(1, 156, 168, 0.08);
}

.exam-score-summary.is-fail {
  border-color: rgba(234, 106, 94, 0.35);
  background: rgba(234, 106, 94, 0.08);
}

.exam-score-summary div {
  padding: 10px;
  border-radius: 8px;
  background: #fff;
}

.exam-score-summary span,
.exam-score-summary strong {
  display: block;
}

.exam-score-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.exam-score-summary strong {
  margin-top: 3px;
  font-size: 18px;
}

.question-card.is-answered .chapter-number {
  background: var(--primary-dark);
}

.answer-note.is-correct {
  border-left-color: var(--primary);
}

.answer-note.is-wrong {
  border-left-color: var(--red);
}

.question-card.is-correct .chapter-number {
  background: var(--primary);
}

.question-card.is-wrong .chapter-number {
  background: var(--red);
}

.system-heading {
  align-items: flex-start;
}

.system-control-panel,
.comparison-card,
.calculator-panel,
.system-empty-panel,
.system-article-panel {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--gray-soft);
}

.system-control-panel[hidden],
.comparison-card[hidden],
.calculator-panel[hidden],
.system-summary-grid[hidden],
.system-empty-panel[hidden],
.system-article-panel[hidden],
.system-heading[hidden],
.system-tool-tabs[hidden],
.system-tool-view[hidden],
.chapter-filters[hidden] {
  display: none;
}

.system-tool-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.system-tool-view {
  margin-top: 14px;
}

.commission-database-view,
#commissionDatabaseApp,
#weishengBonusApp,
#xinanBonusApp,
#yongxuBonusApp,
#fuyidaBonusApp,
#gongshengBonusApp,
#bonusComparisonApp,
.commission-database-layout,
.commission-database-layout > *,
.commission-editor-panel,
.commission-editor-panel > form,
.commission-quote-panel,
.commission-amount-panel,
.commission-schedule-panel,
.commission-rate-table-wrap {
  min-width: 0;
  max-width: 100%;
}

.commission-database-view,
#commissionDatabaseApp,
#weishengBonusApp,
#xinanBonusApp,
#yongxuBonusApp,
#fuyidaBonusApp,
#gongshengBonusApp,
#bonusComparisonApp {
  width: 100%;
  overflow-x: clip;
}

.commission-database-toolbar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.commission-database-toolbar > div,
.commission-panel-heading > div,
.commission-five-bonus-total > div,
.commission-five-bonus-result {
  min-width: 0;
  max-width: 100%;
}

.commission-database-toolbar h3,
.commission-panel-heading h4 {
  margin: 0;
  letter-spacing: 0;
}

.commission-database-toolbar h3 {
  font-size: 24px;
}

.commission-database-toolbar h3,
.commission-database-toolbar p,
.commission-panel-heading h4,
.commission-panel-heading p,
.commission-five-bonus-total h5,
.commission-five-bonus-result small {
  overflow-wrap: anywhere;
}

.commission-database-toolbar > div:first-child > p:not(.eyebrow) {
  max-width: 720px;
  margin: 7px 0 0;
  color: var(--muted);
}

.commission-database-actions,
.commission-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.commission-database-actions {
  align-items: flex-end;
  justify-content: flex-end;
  width: 100%;
}

.commission-product-switch {
  display: grid;
  flex: 1 1 640px;
  gap: 4px;
  width: 100%;
  min-width: 0;
  max-width: none;
}

.commission-product-switch > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.commission-product-switch select {
  width: 100%;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.commission-product-switch select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(1, 156, 168, 0.1);
}

.commission-action-button {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--primary-dark);
  background: #fff;
  font-weight: 850;
  cursor: pointer;
}

.commission-action-button:hover,
.commission-action-button:focus-visible {
  border-color: var(--primary);
  outline: none;
}

.commission-action-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.commission-action-primary {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.commission-action-danger {
  color: #a33b32;
  border-color: rgba(234, 106, 94, 0.45);
  background: rgba(234, 106, 94, 0.06);
}

.commission-database-notice {
  margin-top: 12px;
  padding: 11px 13px;
  border-left: 5px solid var(--primary);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(1, 156, 168, 0.08);
  font-size: 14px;
  font-weight: 800;
}

.commission-database-notice.is-error {
  border-left-color: var(--red);
  background: rgba(234, 106, 94, 0.08);
}

.commission-database-notice.is-warning {
  border-left-color: var(--gold);
  background: var(--gold-soft);
}

.commission-database-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.commission-database-summary article {
  min-width: 0;
  min-height: 92px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--primary);
  border-radius: 8px;
  background: #fff;
}

.commission-database-summary span,
.commission-database-summary strong {
  display: block;
}

.commission-database-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.commission-database-summary strong {
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 18px;
}

.commission-database-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 14px;
}

.commission-product-panel,
.commission-editor-panel > form,
.commission-schedule-panel,
.commission-quote-panel,
.commission-amount-panel {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--gray-soft);
}

.commission-product-panel {
  position: sticky;
  top: 14px;
}

.commission-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.commission-panel-heading h4 {
  font-size: 19px;
}

.commission-panel-heading > span,
.commission-editor-status {
  min-width: 0;
  max-width: 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.5;
  text-align: right;
  white-space: normal;
  overflow-wrap: anywhere;
}

.commission-schedule-meta {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.commission-amount-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-align: left;
}

.commission-five-bonus-total {
  display: grid;
  grid-template-columns: minmax(190px, 0.6fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 18px;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(1, 156, 168, 0.2);
  border-left: 5px solid var(--primary);
  border-radius: 8px;
  background: rgba(1, 156, 168, 0.06);
}

.commission-five-bonus-total h5 {
  margin: 0;
  font-size: 20px;
}

.commission-five-bonus-result {
  display: grid;
  gap: 2px;
  width: 100%;
  justify-items: start;
  text-align: left;
}

.commission-five-bonus-result strong {
  max-width: 100%;
  color: var(--primary-dark);
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.commission-five-bonus-result small {
  max-width: 560px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
}

@media (max-width: 780px) {
  .commission-five-bonus-total {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .commission-five-bonus-result {
    justify-items: start;
    text-align: left;
  }
}

.commission-editor-status.is-dirty {
  color: #9a5d00;
}

.commission-search-field {
  display: block;
  margin-top: 12px;
}

.commission-search-field input,
.commission-product-fields input,
.commission-rate-input input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.commission-search-field input,
.commission-product-fields input {
  min-height: 42px;
  padding: 8px 10px;
}

.commission-search-field input:focus,
.commission-product-fields input:focus,
.commission-rate-input input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(1, 156, 168, 0.1);
}

.commission-product-list {
  display: grid;
  gap: 8px;
  max-height: 660px;
  margin-top: 10px;
  padding-right: 3px;
  overflow: auto;
}

.commission-product-item {
  display: grid;
  gap: 3px;
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.commission-product-item:hover,
.commission-product-item:focus-visible,
.commission-product-item.is-active {
  border-color: var(--primary);
  outline: none;
}

.commission-product-item.is-active {
  background: rgba(1, 156, 168, 0.08);
  box-shadow: inset 4px 0 0 var(--primary);
}

.commission-product-item span,
.commission-product-item small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.commission-product-item strong {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.commission-product-empty {
  margin: 0;
  padding: 18px 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
  text-align: center;
}

.commission-editor-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.commission-quote-grid {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(120px, 0.7fr) minmax(190px, 1fr) minmax(260px, 1.35fr);
  gap: 10px;
  align-items: end;
  margin-top: 13px;
}

.weisheng-definition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.weisheng-definition-grid > div {
  min-width: 0;
  padding: 13px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.weisheng-definition-grid dt {
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 900;
}

.weisheng-definition-grid dd {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.weisheng-five-bonus-heading {
  display: grid;
  grid-template-areas:
    "title title total"
    "context rank total";
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px) minmax(240px, 300px);
  gap: 12px 16px;
  align-items: stretch;
}

.weisheng-five-bonus-title {
  grid-area: title;
  min-width: 0;
}

.weisheng-five-bonus-heading h4 {
  margin: 0;
  letter-spacing: 0;
  font-size: 19px;
}

.weisheng-bonus-context {
  grid-area: context;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.6fr);
  gap: 12px;
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.weisheng-bonus-context-item {
  min-width: 0;
}

.weisheng-bonus-context-item span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.weisheng-bonus-context-item strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.weisheng-rank-select {
  grid-area: rank;
  display: grid;
  align-content: start;
  gap: 5px;
  width: 100%;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.weisheng-rank-select > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.weisheng-rank-select select {
  width: 100%;
  min-height: 42px;
  padding: 8px 36px 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.weisheng-five-bonus-total {
  grid-area: total;
  display: grid;
  align-content: center;
  gap: 2px;
  min-width: 0;
  padding: 14px 16px;
  border-left: 5px solid var(--primary);
  background: rgba(1, 156, 168, 0.08);
}

.weisheng-five-bonus-total span,
.weisheng-five-bonus-total small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.weisheng-five-bonus-total strong {
  color: var(--primary-dark);
  font-size: 27px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.weisheng-five-bonus-list {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.weisheng-five-bonus-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(170px, 0.75fr) minmax(0, 2fr);
  gap: 18px;
  align-items: center;
  min-width: 0;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.weisheng-five-bonus-name,
.weisheng-five-bonus-amount,
.weisheng-five-bonus-rule {
  min-width: 0;
}

.weisheng-five-bonus-name {
  display: flex;
  gap: 10px;
  align-items: center;
}

.weisheng-five-bonus-name > span {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.weisheng-five-bonus-name strong {
  font-size: 16px;
  overflow-wrap: anywhere;
}

.weisheng-five-bonus-amount {
  display: grid;
  gap: 2px;
}

.weisheng-five-bonus-amount small,
.weisheng-five-bonus-rule small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
}

.weisheng-five-bonus-amount strong {
  color: var(--ink);
  font-size: 21px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.weisheng-five-bonus-rule > span {
  display: inline-block;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
}

.weisheng-five-bonus-rule p {
  margin: 4px 0 2px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.weisheng-rule-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 5px solid var(--gold);
  background: var(--gold-soft);
}

.weisheng-rule-note strong {
  font-size: 13px;
}

.weisheng-rule-note p {
  margin: 4px 0 0;
  color: #5d4718;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.6;
}

.bonus-comparison-rank-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.bonus-comparison-rank-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 4px 0 4px 12px;
  border-left: 4px solid var(--primary);
}

.bonus-comparison-rank-card > span {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
}

.bonus-comparison-rank-card select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 36px 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.bonus-comparison-table-wrap {
  max-width: 100%;
  margin-top: 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.bonus-comparison-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.bonus-comparison-table th,
.bonus-comparison-table td {
  min-width: 0;
  padding: 13px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.bonus-comparison-table tr > :last-child {
  border-right: 0;
}

.bonus-comparison-table tbody tr:last-child > *,
.bonus-comparison-table tfoot tr:last-child > * {
  border-bottom: 0;
}

.bonus-comparison-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: var(--ink);
  background: #eaf6f7;
}

.bonus-comparison-table thead th:first-child,
.bonus-comparison-table tbody th,
.bonus-comparison-table tfoot th {
  width: 170px;
  min-width: 170px;
}

.bonus-comparison-table thead th:first-child,
.bonus-comparison-table tbody th,
.bonus-comparison-table tfoot th {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #eef7f8;
}

.bonus-comparison-table thead th:first-child {
  z-index: 4;
}

.bonus-comparison-table thead th span,
.bonus-comparison-table thead th strong {
  display: block;
  overflow-wrap: anywhere;
}

.bonus-comparison-table thead th span {
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 900;
}

.bonus-comparison-table thead th strong {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
}

.bonus-comparison-table tbody th,
.bonus-comparison-table tfoot th {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.bonus-comparison-table tbody th span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-size: 10px;
}

.bonus-comparison-table tfoot th,
.bonus-comparison-table tfoot td {
  border-top: 3px solid var(--primary);
  background: #f5fbfb;
}

.bonus-comparison-value {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.bonus-comparison-value strong {
  color: var(--ink);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.bonus-comparison-value small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.weisheng-five-bonus-rule .original-commission-rate,
.bonus-comparison-value .original-commission-rate {
  display: block;
  color: var(--primary-dark);
  font-weight: 900;
}

.bonus-comparison-value.is-pending strong {
  color: #936100;
}

.bonus-comparison-value.is-not-applicable strong {
  color: var(--muted);
}

.bonus-comparison-value.is-total strong {
  color: var(--primary-dark);
  font-size: 21px;
}

.commission-quote-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.commission-quote-field > span,
.commission-premium-result > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.commission-quote-field select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.commission-quote-field select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(1, 156, 168, 0.1);
}

.commission-premium-result {
  display: grid;
  gap: 3px;
  min-width: 0;
  max-width: 100%;
  min-height: 70px;
  padding: 10px 12px;
  border-left: 5px solid var(--primary);
  background: rgba(1, 156, 168, 0.08);
}

.commission-premium-result strong {
  overflow-wrap: anywhere;
  font-size: 22px;
}

.commission-premium-result small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.commission-product-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
}

.commission-product-fields > label {
  display: grid;
  gap: 5px;
}

.commission-product-fields > label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.commission-source-field {
  grid-column: 1 / -1;
}

.commission-product-name-field {
  grid-column: 1 / -1;
}

.commission-year-input {
  position: relative;
}

.commission-year-input input {
  padding-right: 42px;
}

.commission-year-input > span {
  position: absolute;
  top: 50%;
  right: 11px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  transform: translateY(-50%);
  pointer-events: none;
}

.commission-editor-actions {
  margin-top: 13px;
}

.commission-schedule-heading {
  align-items: baseline;
}

.commission-rate-table-wrap {
  width: 100%;
  margin-top: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.commission-rate-table {
  width: 100%;
  min-width: 1050px;
  border-collapse: collapse;
}

.commission-amount-table {
  min-width: 1320px;
}

.commission-rate-table th,
.commission-rate-table td {
  padding: 9px 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.commission-rate-table th:last-child,
.commission-rate-table td:last-child {
  border-right: 0;
}

.commission-rate-table tr:last-child th,
.commission-rate-table tr:last-child td {
  border-bottom: 0;
}

.commission-rate-table thead th,
.commission-rate-table tbody th {
  color: var(--ink);
  background: rgba(1, 156, 168, 0.08);
  font-size: 13px;
  font-weight: 900;
}

.commission-rate-table thead th {
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
}

.commission-rate-table tbody th {
  width: 105px;
  white-space: nowrap;
}

.commission-rate-input {
  position: relative;
  display: block;
  min-width: 138px;
}

.commission-rate-input input {
  min-height: 38px;
  padding: 7px 30px 7px 8px;
}

.commission-rate-input input[readonly] {
  color: var(--ink);
  background: rgba(1, 156, 168, 0.06);
  cursor: default;
}

.commission-rate-input > span:not(.sr-only) {
  position: absolute;
  top: 50%;
  right: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  transform: translateY(-50%);
  pointer-events: none;
}

.commission-not-applicable {
  display: block;
  color: #9b9b9b;
  text-align: center;
}

.commission-money {
  display: block;
  white-space: nowrap;
  font-weight: 850;
}

.commission-money.is-unavailable {
  color: var(--muted);
  font-weight: 750;
}

.commission-amount-empty {
  padding: 22px 14px !important;
  color: var(--muted);
  text-align: center !important;
}

.commission-database-footnote {
  margin: 14px 0 0;
  padding: 11px 13px;
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  color: #6f5200;
  background: var(--gold-soft);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.system-control-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}

.system-control-panel h3,
.comparison-heading h3,
.system-summary-card h3 {
  margin: 0;
  letter-spacing: 0;
}

.system-control-panel h3,
.comparison-heading h3 {
  font-size: 20px;
}

.company-switch {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.company-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.company-toggle:hover,
.company-toggle:focus-visible,
.company-toggle.is-active {
  border-color: var(--primary);
  outline: none;
}

.company-toggle.is-active {
  background: rgba(1, 156, 168, 0.08);
  box-shadow: inset 4px 0 0 var(--primary);
}

.company-toggle span,
.company-toggle strong {
  display: block;
}

.company-toggle span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.company-toggle strong {
  margin-top: 4px;
  font-size: 16px;
}

.system-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  align-items: stretch;
  gap: 10px;
  margin-top: 14px;
}

.system-summary-card {
  min-width: 0;
  min-height: 150px;
  padding: 14px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--primary);
  border-radius: 8px;
  background: #fff;
}

.system-summary-card h3 {
  font-size: 19px;
}

.system-summary-card p:not(.eyebrow),
.system-summary-card span,
.comparison-heading p {
  color: var(--muted);
}

.system-summary-card span {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
}

.system-empty-panel h3,
.system-empty-card h4 {
  margin: 0;
  letter-spacing: 0;
}

.system-empty-panel > p:not(.eyebrow),
.system-empty-card p:not(.eyebrow) {
  color: var(--muted);
}

.system-empty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.system-empty-card {
  min-height: 132px;
  padding: 14px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--primary);
  border-radius: 8px;
  background: #fff;
}

.system-empty-card h4 {
  font-size: 18px;
}

.system-card-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 14px 0 0;
  color: var(--muted);
  list-style: none;
}

.system-card-list li {
  display: grid;
  grid-template-columns: minmax(92px, max-content) 1fr;
  gap: 8px;
  align-items: baseline;
}

.system-card-list strong {
  color: var(--ink);
}

.system-dashboard {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.dashboard-title-row,
.dashboard-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.dashboard-title-row h4,
.dashboard-section-heading h5,
.dashboard-info-card h5 {
  margin: 0;
  letter-spacing: 0;
}

.dashboard-title-row h4 {
  font-size: 24px;
}

.dashboard-title-row > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

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

.dashboard-metric,
.dashboard-info-card,
.dashboard-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.dashboard-metric {
  min-height: 132px;
  padding: 14px;
  border-top: 5px solid var(--primary);
}

.dashboard-metric span,
.dashboard-metric p,
.dashboard-rank-card small,
.dashboard-rank-card p,
.dashboard-info-card p:not(.eyebrow) {
  color: var(--muted);
}

.dashboard-metric span {
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.dashboard-metric strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.dashboard-metric p {
  margin: 10px 0 0;
  font-size: 13px;
}

.dashboard-section {
  padding: 16px;
}

.dashboard-section-heading {
  margin-bottom: 12px;
}

.dashboard-section-heading h5 {
  font-size: 18px;
}

.dashboard-rank-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding-bottom: 4px;
}

.system-dashboard.dashboard-rank-ten .dashboard-rank-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.system-dashboard.dashboard-rank-five .dashboard-rank-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.system-dashboard.dashboard-rank-six .dashboard-rank-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-rank-card {
  display: grid;
  grid-template-rows: 46px 24px minmax(76px, auto) minmax(64px, auto) minmax(0, 1fr);
  align-content: stretch;
  gap: 10px;
  min-height: 324px;
  height: 100%;
  padding: 12px;
  border: 1px solid rgba(1, 156, 168, 0.24);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(1, 156, 168, 0.08), #fff);
}

.dashboard-rank-card span,
.dashboard-rank-card strong,
.dashboard-rank-card small {
  display: block;
}

.rank-card-heading {
  align-self: start;
}

.rank-admin {
  color: var(--muted);
  font-weight: 800;
}

.dashboard-rank-card span {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
}

.dashboard-rank-card strong {
  margin-top: 4px;
  font-size: 17px;
}

.dashboard-rank-card p {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 800;
}

.dashboard-rank-card small {
  margin-top: 4px;
}

.rank-promotion,
.rank-promotion-time,
.rank-transfer {
  display: grid;
  align-content: start;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(1, 156, 168, 0.18);
}

.rank-transfer-empty {
  visibility: hidden;
}

.rank-promotion span,
.rank-promotion-time span,
.rank-transfer span {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
}

.rank-promotion p,
.rank-promotion-time p,
.rank-transfer p {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.rank-transfer ul {
  margin: 0;
  padding-left: 16px;
  color: #8a6b46;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.rank-transfer small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.dashboard-matrix th,
.dashboard-matrix td {
  min-width: 82px;
  white-space: nowrap;
  text-align: center;
}

.dashboard-matrix {
  min-width: 940px;
}

.dashboard-matrix tbody th {
  min-width: 190px;
  text-align: left;
}

.dashboard-info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-info-card {
  display: grid;
  grid-template-rows: 44px 42px minmax(52px, auto) 1fr;
  align-content: start;
  min-height: 136px;
  padding: 14px;
  border-top: 5px solid var(--gold);
}

.dashboard-info-card h5 {
  font-size: 17px;
  line-height: 1.35;
}

.dashboard-info-card p:not(.eyebrow) {
  margin: 0;
  font-size: 14px;
}

.dashboard-info-card .dashboard-note {
  margin-top: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(1, 156, 168, 0.14);
  color: var(--primary-dark);
  font-weight: 800;
}

.org-applies {
  align-self: start;
  line-height: 1.45;
}

.org-title,
.org-formula,
.org-note {
  align-self: start;
}

.org-formula {
  line-height: 1.45;
}

.dashboard-definition-list {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.dashboard-definition-list li {
  color: var(--muted);
}

.system-article {
  width: min(100%, 920px);
  padding: 10px 2px 4px;
  margin: 0 auto;
}

.system-article h3,
.article-section h4 {
  margin: 0;
  letter-spacing: 0;
}

.system-article h3 {
  font-size: 28px;
  line-height: 1.25;
}

.article-lead {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.article-body {
  margin-top: 22px;
}

.article-section {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.article-section + .article-section {
  margin-top: 20px;
}

.article-section h4 {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.35;
}

.article-section p,
.article-body > p {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.9;
}

.article-navigation {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.article-navigation[hidden] {
  display: none;
}

.article-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--primary-dark);
  background: #fff;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.article-nav-link:hover,
.article-nav-link:focus-visible {
  border-color: var(--primary);
  outline: none;
}

.article-nav-home {
  background: var(--background);
}

.article-nav-link-primary {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
}

.comparison-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.comparison-heading p:not(.eyebrow) {
  margin: 6px 0 0;
}

.comparison-table-wrap {
  overflow: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.comparison-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  color: var(--ink);
  background: rgba(1, 156, 168, 0.08);
  font-weight: 900;
}

.labor-projection-table thead th:first-child,
.commission-rate-table thead th:first-child,
.comparison-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 4;
}

.labor-projection-table tbody th:first-child,
.labor-projection-table tbody td:first-child,
.commission-rate-table tbody th:first-child,
.commission-rate-table tbody td:first-child,
.comparison-table tbody th:first-child,
.comparison-table tbody td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  box-shadow: 1px 0 0 var(--line);
}

.labor-projection-table tbody td:first-child,
.comparison-table tbody td:first-child {
  background: #fff;
}

@media (pointer: coarse) {
  .layer-back,
  .back-link,
  .filter-chip,
  .accident-copy-select select,
  .medical-customer-field input,
  .medical-document-field input,
  .labor-select-control,
  .labor-mini-grid button,
  .commission-product-switch select,
  .commission-action-button,
  .commission-search-field input,
  .commission-product-fields input,
  .commission-quote-field select,
  .commission-rate-input input,
  .calculator-grid input,
  .calculator-grid select,
  .bonus-input-grid input,
  .bonus-input-grid select {
    min-height: 44px;
  }

  .labor-control-group input[type="range"] {
    min-height: 44px;
  }
}

.comparison-table thead th {
  white-space: nowrap;
}

.comparison-table tbody th {
  width: 132px;
}

.comparison-table tr:last-child th,
.comparison-table tr:last-child td {
  border-bottom: 0;
}

.comparison-table th:last-child,
.comparison-table td:last-child {
  border-right: 0;
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.calculator-grid label {
  display: grid;
  gap: 6px;
}

.calculator-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.calculator-grid input,
.calculator-grid select {
  min-height: 42px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.calculator-grid input:focus,
.calculator-grid select:focus {
  border-color: var(--primary);
  outline: none;
}

.calculator-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.calc-primary {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.calc-source {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.calc-result {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 14px;
  border-left: 5px solid var(--primary);
  border-radius: 8px;
  background: #fff;
}

.calc-result strong {
  font-size: 22px;
}

.calc-result span {
  color: var(--muted);
  font-size: 14px;
}

.bonus-setup-panel {
  grid-template-columns: minmax(230px, 0.7fr) minmax(230px, 0.6fr);
}

.bonus-setup-panel h3 {
  font-size: 20px;
}

.bonus-setup-panel p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.bonus-warning {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(180, 119, 31, 0.35);
  border-radius: 8px;
  color: #8a5a00;
  background: #fff8e1;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
}

.bonus-company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.bonus-company-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--company-color, var(--primary));
  border-radius: 8px;
  background: #fff;
}

.bonus-company-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.bonus-company-head h4 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  letter-spacing: 0;
}

.bonus-company-head > span {
  max-width: 170px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  text-align: right;
}

.bonus-input-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: 9px;
}

.bonus-input-grid label {
  display: grid;
  gap: 5px;
}

.bonus-input-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.bonus-input-grid input,
.bonus-input-grid select {
  min-height: 38px;
  width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.bonus-input-grid input:focus,
.bonus-input-grid select:focus {
  border-color: var(--primary);
  outline: none;
}

.bonus-result-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.bonus-result-summary article {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.bonus-result-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.bonus-result-summary strong,
.bonus-result-summary p {
  display: block;
}

.bonus-result-summary strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 20px;
}

.bonus-result-summary p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.bonus-table td,
.bonus-table th {
  text-align: right;
}

.bonus-table tbody th,
.bonus-table thead th:first-child {
  text-align: left;
}

.bonus-total-row th,
.bonus-total-row td {
  background: rgba(1, 156, 168, 0.08);
  font-size: 16px;
}

.bonus-winner {
  color: #0f766e;
}

.bonus-note {
  margin-top: 10px;
  line-height: 1.6;
}

@media (max-width: 780px) {
  .app-shell {
    padding: 14px;
  }

  .topbar,
  .study-heading,
  .system-control-panel,
  .bonus-setup-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    border-radius: 8px;
  }

  .topbar-meta {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
    text-align: left;
  }

  .device-recommendation {
    max-width: 100%;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .task-grid,
  .chapter-layout,
  .question-stats {
    grid-template-columns: 1fr;
  }

  .seven-card-grid > .task-card:nth-child(n) {
    grid-column: auto;
    width: auto;
    justify-self: stretch;
  }

  .onboard-flow-card,
  .accident-sop-card,
  .medical-message-card,
  .medical-info-card {
    grid-column: auto;
  }

  .onboard-flow,
  .accident-flow {
    grid-template-columns: 1fr;
  }

  .onboard-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .onboard-document-grid {
    grid-template-columns: 1fr;
  }

  .medical-type-grid,
  .medical-document-grid,
	  .medical-topic-layout {
	    grid-template-columns: 1fr;
	  }

	  .labor-intro-panel,
	  .labor-tool-grid,
	  .labor-result-grid,
	  .labor-explain-band,
	  .labor-projection-control-grid,
    .public-sector-overview,
    .public-sector-metric-grid {
	    grid-template-columns: 1fr;
	  }

	  .labor-scenario-row,
	  .labor-mini-grid {
	    grid-template-columns: 1fr;
	  }

	  .labor-projection-heading,
	  .labor-control-label,
	  .labor-derived-note {
	    align-items: flex-start;
	    flex-direction: column;
	  }

    .public-sector-download-card {
      align-items: flex-start;
      flex-direction: column;
    }

	  .medical-customer-field {
	    grid-template-columns: 1fr;
	  }

  .medical-tool-embed-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .reservoir-tool-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .medical-tool-embed-heading a {
    width: 100%;
    justify-content: center;
  }

  .reservoir-tool-heading a {
    width: 100%;
    justify-content: center;
  }

  .onboard-flow li,
  .accident-flow li {
    min-height: 0;
  }

  .onboard-flow li:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -10px;
    left: 28px;
    width: 2px;
    height: 10px;
  }

  .onboard-flow-note {
    grid-template-columns: 1fr;
  }

  .accident-copy-select {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .accident-copy-select select,
  .accident-copy-button {
    width: 100%;
  }

  .question-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .question-actions .layer-back,
  .question-progress {
    width: 100%;
  }

  .exam-rule-grid,
  .exam-rule-metrics,
  .system-control-panel,
  .dashboard-metric-grid,
  .dashboard-info-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-title-row,
  .dashboard-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-title-row > span {
    text-align: left;
  }

  .dashboard-section {
    padding: 14px;
  }

  .dashboard-rank-strip {
    grid-template-columns: 1fr;
  }

  .exam-control-bar .layer-back,
  .exam-status-pill {
    width: 100%;
    justify-content: center;
  }

  .subject-card,
  .business-card {
    min-height: 138px;
    grid-template-rows: auto auto auto;
  }

  .primary-task-grid {
    max-width: none;
  }

  .chapter-filters {
    justify-content: flex-start;
  }

  .chapter-cards {
    max-height: none;
    padding-right: 0;
  }

  .comparison-table {
    min-width: 680px;
  }

  .commission-database-toolbar,
  .commission-panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .commission-database-actions,
  .commission-editor-actions {
    width: 100%;
  }

  .commission-database-actions .commission-action-button,
  .commission-editor-actions .commission-action-button {
    flex: 1 1 150px;
  }

  .commission-database-summary,
  .commission-product-fields,
  .commission-product-list {
    grid-template-columns: 1fr;
  }

  .commission-source-field {
    grid-column: auto;
  }

  .brand h1 {
    font-size: 24px;
  }

  .brand h1 {
    white-space: normal;
  }
}

@media (max-width: 1100px) {

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

  .bonus-comparison-rank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bonus-comparison-rank-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 6px);
    justify-self: center;
  }

  .bonus-comparison-table {
    min-width: 1120px;
  }

  .commission-premium-result {
    grid-column: 1 / -1;
  }

  .labor-intro-panel,
  .labor-tool-grid,
  .labor-explain-band,
  .public-sector-overview {
    grid-template-columns: 1fr;
  }

  .labor-projection-control-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .labor-income-control {
    grid-column: span 2;
  }

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

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

  .dashboard-rank-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-dashboard.dashboard-rank-ten .dashboard-rank-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-dashboard.dashboard-rank-five .dashboard-rank-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-dashboard.dashboard-rank-six .dashboard-rank-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .commission-database-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .commission-database-layout {
    grid-template-columns: 1fr;
  }

  .commission-product-panel {
    position: static;
  }

  .commission-product-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 330px;
  }

}

@media (max-width: 680px) {
  .company-switch,
  .system-summary-grid,
  .commission-database-summary,
  .commission-product-fields,
  .commission-product-list {
    grid-template-columns: 1fr;
  }

  .dashboard-metric-grid,
  .dashboard-info-grid,
  .dashboard-rank-strip {
    grid-template-columns: 1fr;
  }

  .commission-quote-grid {
    grid-template-columns: 1fr;
  }

  .bonus-comparison-rank-grid {
    grid-template-columns: 1fr;
  }

  .bonus-comparison-rank-grid > :last-child:nth-child(odd) {
    grid-column: auto;
    width: auto;
    justify-self: stretch;
  }

  .bonus-comparison-table {
    min-width: 1120px;
  }

  .bonus-comparison-table th,
  .bonus-comparison-table td {
    padding: 11px 12px;
  }

  .system-dashboard.dashboard-rank-ten .dashboard-rank-strip {
    grid-template-columns: 1fr;
  }

  .system-dashboard.dashboard-rank-five .dashboard-rank-strip {
    grid-template-columns: 1fr;
  }

  .system-dashboard.dashboard-rank-six .dashboard-rank-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) and (min-width: 781px) {
  .primary-task-grid,
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .onboard-flow-card,
  .accident-sop-card,
  .medical-message-card,
  .medical-info-card {
    grid-column: span 2;
  }

  .onboard-flow,
  .accident-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .medical-type-grid,
  .medical-document-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

	  .medical-topic-layout {
	    grid-template-columns: 1fr;
	  }

	  .labor-projection-control-grid {
	    grid-template-columns: repeat(2, minmax(0, 1fr));
	  }

	  .labor-income-control {
	    grid-column: span 2;
	  }

	  .onboard-flow li:not(:last-child)::after {
	    display: none;
  }

  .subject-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .seven-card-grid > .task-card:nth-child(n) {
    grid-column: auto;
    width: auto;
    justify-self: stretch;
  }

  .seven-card-grid > .task-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 7px);
    justify-self: center;
  }

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

  .five-card-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .five-card-grid > .task-card {
    grid-column: span 2;
  }

  .five-card-grid > .task-card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .five-card-grid > .task-card:nth-child(5) {
    grid-column: 4 / span 2;
  }

  .public-sector-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .labor-intro-panel,
  .labor-tool-grid,
  .labor-result-grid,
  .labor-explain-band,
  .labor-projection-control-grid,
  .labor-scenario-row,
  .labor-mini-grid {
    grid-template-columns: 1fr;
  }

  .labor-income-control {
    grid-column: auto;
  }
}

/* iPad portrait: preserve the card hierarchy and keep long study pages usable. */
@media (min-width: 700px) and (max-width: 780px) {
  .app-shell {
    padding: 18px;
  }

  .topbar {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    border-radius: 24px;
  }

  .topbar-meta {
    align-items: center;
    text-align: right;
  }

  .topbar-actions {
    flex: 1 0 100%;
    justify-content: flex-start;
  }

  .study-heading {
    align-items: flex-end;
    flex-direction: row;
  }

  .task-grid,
  .primary-task-grid,
  .tool-grid,
  .business-grid,
  .balanced-card-grid,
  .reward-grid,
  .reservoir-grid,
  .subject-grid,
  .public-sector-grid,
  .medical-type-grid,
  .medical-document-grid,
  .question-stats,
  .exam-rule-grid,
  .exam-rule-metrics,
  .dashboard-metric-grid,
  .dashboard-info-grid,
  .dashboard-rank-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .five-card-grid > .task-card {
    grid-column: auto;
  }

  .seven-card-grid > .task-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 7px);
    justify-self: center;
  }

  .five-card-grid > .task-card:last-child {
    grid-column: 1 / -1;
  }

  .onboard-flow-card,
  .accident-sop-card,
  .medical-message-card,
  .medical-info-card {
    grid-column: span 2;
  }

  .chapter-layout {
    grid-template-columns: minmax(210px, 0.72fr) minmax(0, 1.28fr);
  }

  .chapter-cards {
    max-height: calc(100vh - 190px);
    overflow: auto;
    padding-right: 4px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .question-actions {
    align-items: center;
    flex-direction: row;
  }

  .question-actions .layer-back,
  .question-progress {
    width: auto;
  }
}

/* iPad landscape: fit the main rate table before falling back to touch scroll. */
@media (min-width: 781px) and (max-width: 1180px) {
  .commission-rate-table {
    min-width: 900px;
  }

  .commission-amount-table {
    min-width: 1120px;
  }

  .commission-rate-input {
    min-width: 118px;
  }
}

@media (max-width: 680px) {
  .chapter-cards {
    max-height: 320px;
    overflow: auto;
    padding-right: 4px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 1080px) {
  .weisheng-five-bonus-heading {
    grid-template-areas:
      "title total"
      "context total"
      "rank total";
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  }

  .weisheng-bonus-context {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .weisheng-definition-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .weisheng-five-bonus-row {
    grid-template-columns: minmax(140px, 0.75fr) minmax(150px, 0.8fr) minmax(0, 1.8fr);
    gap: 13px;
  }
}

@media (max-width: 680px) {
  .weisheng-definition-grid {
    grid-template-columns: 1fr;
  }

  .weisheng-five-bonus-heading {
    grid-template-areas:
      "title"
      "context"
      "rank"
      "total";
    grid-template-columns: minmax(0, 1fr);
  }

  .weisheng-bonus-context {
    grid-template-columns: 1fr;
  }

  .weisheng-five-bonus-total {
    width: 100%;
    min-width: 0;
  }

  .weisheng-five-bonus-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .weisheng-five-bonus-amount,
  .weisheng-five-bonus-rule {
    padding-left: 44px;
  }
}

.two-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  width: 100%;
}

.recruit-resource-stack {
  display: grid;
  gap: 16px;
}

.business-workspace {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

#businessResourceGroups[hidden],
#businessToolPanel[hidden],
#businessLayer > .shield-related-cards {
  display: none;
}

.business-resource-section + .business-resource-section { margin-top: 30px; }
.business-resource-section > h3 { margin: 0 0 14px; color: var(--ink); font-size: 22px; }
.task-grid.business-resource-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.business-resource-card { min-height: 150px; justify-content: flex-start; gap: 9px; padding: 16px; font: inherit; }
.business-resource-card strong { font-size: 21px; line-height: 1.4; }
.business-resource-card > span:last-child { line-height: 1.65; }
.business-resource-card:focus-visible {
  outline: 3px solid #159ca0;
  outline-offset: 2px;
}

.business-tool-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 0;
}

.business-tool-heading { padding: 18px 20px 0; }
.business-tool-heading h3 { margin: 0; color: var(--ink); font-size: 26px; }
.business-tool-toolbar a { flex-shrink: 0; }
.business-tool-summary { margin: 12px 20px 18px; color: var(--muted); line-height: 1.7; }
.business-tool-status:empty { display: none; }
.business-tool-status { margin: 12px 20px; color: var(--muted); }
.business-tool-frame { display: block; width: 100%; height: calc(100vh - 280px); min-height: 420px; border: 0; border-top: 1px solid var(--line); background: #fff; }

@media (min-width: 1280px) {
  .task-grid.business-resource-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .task-grid.business-resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .task-grid.business-resource-grid { grid-template-columns: 1fr; }
  .business-tool-toolbar { flex-wrap: wrap; padding: 14px 14px 0; gap: 10px; }
  .business-tool-heading { padding: 14px 14px 0; }
  .business-tool-toolbar a { margin-left: auto; }
  .business-tool-summary { margin: 12px 14px; }
}

.recruit-resource-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.recruit-resource-group > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.recruit-resource-group > summary::-webkit-details-marker {
  display: none;
}

.recruit-resource-group > summary strong {
  color: var(--ink);
  font-size: 20px;
}

.recruit-resource-group > summary > span:last-child {
  color: var(--muted);
  font-size: 14px;
}

.recruit-resource-group[open] > summary {
  border-bottom: 1px solid var(--line);
  background: #f7fbfb;
}

.recruit-resource-group > .task-grid {
  padding: 16px;
}

.system-support-panel {
  overflow: hidden;
}

.system-support-heading {
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.system-support-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.support-action {
  cursor: pointer;
}

.support-intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 20px 22px;
  background: #eef9f9;
  border-left: 5px solid var(--primary);
}

.support-intro-band h3,
.support-table-section h3 {
  margin: 0;
  letter-spacing: 0;
}

.support-intro-band h3 {
  font-size: 25px;
}

.support-intro-band p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.support-count {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 0 8px;
  min-width: 150px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid rgba(1, 156, 168, 0.24);
  border-radius: 8px;
}

.support-count > span {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.support-count strong {
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
}

.support-count small {
  grid-column: 1 / -1;
  margin-top: 6px;
  color: var(--muted);
}

.support-table-section {
  min-width: 0;
  padding-top: 20px;
}

.support-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.support-legend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.support-legend span {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border-radius: 4px;
}

.passive-income-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.passive-income-table-wrap:focus-visible {
  outline: 3px solid rgba(1, 156, 168, 0.24);
  outline-offset: 3px;
}

.passive-income-table {
  width: 100%;
  min-width: 835px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: #fff;
}

.passive-income-table th,
.passive-income-table td {
  height: 58px;
  padding: 8px 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}

.passive-income-table tr > :last-child {
  border-right: 0;
}

.passive-income-table tbody tr:last-child > * {
  border-bottom: 0;
}

.passive-income-table thead th {
  height: 54px;
  color: #fff;
  background: var(--primary-dark);
  font-size: 15px;
  font-weight: 800;
}

.passive-income-table .support-source-heading {
  width: 310px;
  color: var(--ink);
  background: #dff3f5;
  text-align: left;
}

.passive-income-table thead th:not(.support-source-heading) {
  width: 105px;
}

.support-group-label {
  width: 96px;
  color: var(--primary-dark);
  background: #eaf7f8;
  font-size: 19px;
  font-weight: 900;
}

.support-group-label span {
  display: block;
}

.support-group-organization {
  background: #d7f0f3;
}

.support-income-label {
  width: 214px;
  color: var(--ink);
  background: #f6fbfb;
  font-size: 15px;
  text-align: left !important;
}

.support-income-organization {
  background: #e8f7f8;
}

.support-check-control {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  cursor: pointer;
}

.support-check-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.support-check-control span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  background: #fff;
  border: 2px solid #91a6a8;
  border-radius: 5px;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.support-check-control input:checked + span {
  background: var(--primary);
  border-color: var(--primary);
}

.support-check-control input:checked + span::after {
  content: "✓";
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
}

.support-check-control input:focus-visible + span {
  box-shadow: 0 0 0 4px rgba(1, 156, 168, 0.2);
}

.support-registration-row th {
  color: #fff;
  background: #687a7c;
  text-align: left;
}

.support-registration-row td {
  background: #f4f7f7;
}

.support-footnote {
  margin: 12px 0 0;
  padding: 12px 14px;
  color: #6d5013;
  background: var(--gold-soft);
  border-left: 4px solid var(--gold);
  font-size: 13px;
}

.inheritance-tool-panel {
  overflow: hidden;
  border: 1px solid rgba(0, 39, 43, 0.12);
  border-radius: 14px;
  background: #fff;
}

.inheritance-tool-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 234, 180, 0.3), transparent 32%),
    linear-gradient(125deg, var(--primary-deep), var(--primary-dark));
}

.inheritance-tool-intro .eyebrow {
  color: #8ee3e8;
}

.inheritance-tool-intro h3,
.inheritance-tool-intro p,
.inheritance-section-heading h4,
.inheritance-legal-note h4 {
  margin: 0;
}

.inheritance-tool-intro h3 {
  margin-bottom: 7px;
  font-size: clamp(22px, 2.4vw, 31px);
  line-height: 1.25;
}

.inheritance-tool-intro > div:first-child > p:last-child {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
}

.inheritance-law-status {
  display: grid;
  flex: 0 0 auto;
  gap: 4px;
  min-width: 200px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.inheritance-law-status span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.inheritance-law-status strong {
  color: #fff;
  font-size: 16px;
}

.inheritance-law-mode,
.inheritance-will-mode {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.4fr);
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(0, 39, 43, 0.1);
  background: #fff;
}

.inheritance-law-mode h4,
.inheritance-law-mode p,
.inheritance-will-mode h4,
.inheritance-will-mode p {
  margin: 0;
}

.inheritance-law-mode h4,
.inheritance-will-mode h4 {
  font-size: 18px;
}

#inheritanceLawModeNote,
#inheritanceWillModeNote {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.inheritance-law-mode-options,
.inheritance-will-mode-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.inheritance-law-mode-options button,
.inheritance-will-mode-options button {
  display: grid;
  align-content: center;
  gap: 3px;
  min-height: 86px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #f8fbfb;
  text-align: left;
  cursor: pointer;
}

.inheritance-law-mode-options button:hover,
.inheritance-law-mode-options button:focus-visible,
.inheritance-will-mode-options button:hover,
.inheritance-will-mode-options button:focus-visible {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(1, 156, 168, 0.12);
}

.inheritance-law-mode-options button.is-active,
.inheritance-will-mode-options button.is-active {
  border-color: var(--primary);
  background: linear-gradient(145deg, #e5f7f8, #f8fcfc);
  box-shadow: 0 8px 16px rgba(1, 156, 168, 0.1);
}

.inheritance-law-mode-options span,
.inheritance-will-mode-options span {
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 900;
}

.inheritance-law-mode-options strong,
.inheritance-will-mode-options strong {
  font-size: 16px;
}

.inheritance-law-mode-options small,
.inheritance-will-mode-options small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.inheritance-control-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.78fr) minmax(0, 1.8fr);
  gap: 18px;
  padding: 22px;
  background: #f4fafb;
}

.inheritance-estate-panel,
.inheritance-relations-panel,
.inheritance-result-panel {
  min-width: 0;
  border: 1px solid rgba(0, 39, 43, 0.1);
  border-radius: 12px;
  background: #fff;
}

.inheritance-estate-panel,
.inheritance-relations-panel {
  padding: 18px;
}

.inheritance-section-heading {
  margin-bottom: 14px;
}

.inheritance-section-heading h4 {
  font-size: 18px;
  line-height: 1.35;
}

.inheritance-estate-control {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.inheritance-estate-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  border: 2px solid #d2d2d7;
  border-radius: 10px;
  background: #fff;
}

.inheritance-estate-input:focus-within {
  border-color: var(--apple-focus, #0071e3);
  box-shadow: none;
}

.inheritance-estate-input input {
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 25px;
  font-weight: 900;
}

.inheritance-estate-input strong {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 0 13px;
  color: var(--primary-dark);
  background: var(--sd-soft, #f5f5f7);
  font-size: 13px;
  white-space: nowrap;
}

#inheritanceEstateEquivalent {
  margin: 8px 0 0;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.inheritance-preset-actions {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.inheritance-preset-actions button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #d2d2d7;
  border-radius: 9px;
  color: var(--primary-dark);
  background: var(--sd-soft, #f5f5f7);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.inheritance-preset-actions button:last-child {
  border-color: var(--line);
  color: var(--muted);
  background: #fff;
}

.inheritance-preset-actions button:hover,
.inheritance-preset-actions button:focus-visible {
  border-color: var(--apple-focus, #0071e3);
  box-shadow: none;
}

.inheritance-preset-actions button:focus-visible {
  outline: 2px solid var(--apple-focus, #0071e3);
  outline-offset: 3px;
}

.inheritance-relation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.inheritance-relation-card {
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.inheritance-relation-card.is-active {
  border-color: var(--primary);
  box-shadow: 0 9px 18px rgba(1, 156, 168, 0.12);
  transform: translateY(-1px);
}

.inheritance-relation-toggle {
  display: grid;
  align-content: start;
  gap: 3px;
  min-height: 102px;
  padding: 13px;
  border: 0;
  color: var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.inheritance-relation-card.is-active .inheritance-relation-toggle {
  background: linear-gradient(155deg, #e8f8f9, #fff);
}

.inheritance-relation-toggle:hover,
.inheritance-relation-toggle:focus-visible {
  background: var(--sd-soft, #f5f5f7);
}

.inheritance-relation-toggle:focus-visible {
  outline: 2px solid var(--apple-focus, #0071e3);
  outline-offset: -3px;
}

.inheritance-relation-toggle > span {
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 900;
}

.inheritance-relation-toggle > strong {
  font-size: 18px;
}

.inheritance-relation-toggle > small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.inheritance-single-count,
.inheritance-relation-stepper {
  display: grid;
  grid-template-columns: 36px minmax(46px, 1fr) 36px;
  align-items: center;
  min-height: 42px;
  border-top: 1px solid var(--line);
  background: #f8fbfb;
}

.inheritance-single-count {
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 0 12px;
}

.inheritance-single-count span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.inheritance-single-count output,
.inheritance-relation-stepper output {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.inheritance-relation-stepper button {
  align-self: stretch;
  border: 0;
  color: var(--primary-dark);
  background: transparent;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.inheritance-relation-stepper button:hover:not(:disabled),
.inheritance-relation-stepper button:focus-visible:not(:disabled) {
  background: var(--sd-soft, #f5f5f7);
}

.inheritance-relation-stepper button:focus-visible:not(:disabled) {
  outline: 2px solid var(--apple-focus, #0071e3);
  outline-offset: -3px;
}

.inheritance-relation-stepper button:disabled {
  color: #b9c3c4;
  cursor: not-allowed;
}

.inheritance-result-panel {
  margin: 0 22px 22px;
  padding: 20px;
}

.inheritance-result-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.inheritance-result-heading > p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.inheritance-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.inheritance-summary-grid article {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 13px 14px;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  background: #edf8f9;
}

.inheritance-summary-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.inheritance-summary-grid strong {
  overflow-wrap: anywhere;
  color: var(--primary-dark);
  font-size: 15px;
}

.inheritance-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  -webkit-overflow-scrolling: touch;
}

.inheritance-result-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 13px;
}

.inheritance-result-table th,
.inheritance-result-table td {
  padding: 12px 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.inheritance-result-table th:last-child,
.inheritance-result-table td:last-child {
  border-right: 0;
}

.inheritance-result-table tbody tr:last-child th,
.inheritance-result-table tbody tr:last-child td {
  border-bottom: 0;
}

.inheritance-result-table thead th {
  color: var(--primary-dark);
  background: #dff3f5;
  font-size: 12px;
  white-space: nowrap;
}

.inheritance-result-table tbody tr.is-excluded {
  color: #7c8586;
  background: #fafafa;
}

.inheritance-person-label {
  display: inline-flex;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.inheritance-status {
  display: inline-flex;
  max-width: 210px;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
}

.inheritance-status.is-included {
  color: var(--primary-dark);
  background: #dff4f5;
}

.inheritance-status.is-excluded {
  color: #6c7071;
  background: #eceeee;
}

.inheritance-money {
  display: grid;
  gap: 2px;
  white-space: nowrap;
}

.inheritance-money strong {
  color: var(--ink);
  font-size: 14px;
}

.inheritance-money small {
  color: var(--muted);
  font-size: 10px;
}

.inheritance-empty-row td {
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.inheritance-legal-note {
  display: grid;
  grid-template-columns: minmax(210px, 0.65fr) minmax(0, 1.6fr);
  gap: 18px 28px;
  margin: 0 22px 22px;
  padding: 20px;
  border: 1px solid #ebd18a;
  border-left: 5px solid var(--gold);
  border-radius: 10px;
  background: #fff9e9;
}

.inheritance-legal-note ul {
  margin: 0;
  padding-left: 20px;
  color: #5e5132;
  font-size: 13px;
}

.inheritance-legal-note li + li {
  margin-top: 7px;
}

.inheritance-source-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 13px;
  border-top: 1px solid rgba(121, 92, 20, 0.16);
}

.inheritance-source-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #dfc374;
  border-radius: 999px;
  color: #654c0f;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.inheritance-source-links a:hover,
.inheritance-source-links a:focus-visible {
  border-color: #9c7411;
  outline: none;
  box-shadow: 0 0 0 3px rgba(234, 179, 41, 0.18);
}

@media (max-width: 1180px) {
  .inheritance-relation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .inheritance-tool-intro,
  .inheritance-result-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .inheritance-law-status {
    width: 100%;
  }

  .inheritance-control-grid {
    grid-template-columns: 1fr;
  }

  .inheritance-law-mode,
  .inheritance-will-mode {
    grid-template-columns: 1fr;
  }

  .inheritance-result-heading > p {
    text-align: left;
  }
}

@media (max-width: 680px) {
  .inheritance-tool-intro,
  .inheritance-law-mode,
  .inheritance-will-mode,
  .inheritance-control-grid {
    padding: 17px;
  }

  .inheritance-law-mode-options,
  .inheritance-will-mode-options,
  .inheritance-relation-grid,
  .inheritance-summary-grid,
  .inheritance-legal-note {
    grid-template-columns: 1fr;
  }

  .inheritance-result-panel,
  .inheritance-legal-note {
    margin-right: 17px;
    margin-left: 17px;
  }

  .inheritance-source-links {
    grid-column: 1;
  }
}

.tax-calculator-panel {
  overflow: hidden;
  border: 1px solid rgba(0, 39, 43, 0.12);
  border-radius: 14px;
  background: #fff;
}

.tax-calculator-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 234, 180, 0.28), transparent 34%),
    linear-gradient(126deg, #00272b, #0d6770);
}

.tax-calculator-hero.is-gift {
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 234, 180, 0.32), transparent 34%),
    linear-gradient(126deg, #12333a, #167d72);
}

.tax-calculator-hero.is-house-land {
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 236, 187, 0.3), transparent 34%),
    linear-gradient(126deg, #143846, #16747b);
}

.tax-calculator-hero .eyebrow {
  color: #8ee3e8;
}

.tax-calculator-hero h3,
.tax-calculator-hero p,
.tax-section-heading h4,
.tax-calculator-note h4 {
  margin: 0;
}

.tax-calculator-hero h3 {
  margin-bottom: 7px;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.3;
}

.tax-calculator-hero > div:first-child > p:last-child {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.tax-rule-status {
  display: grid;
  flex: 0 0 auto;
  gap: 4px;
  min-width: 230px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.tax-rule-status span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.tax-rule-status strong {
  color: #fff;
  font-size: 15px;
}

.tax-calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(340px, 0.9fr);
  gap: 18px;
  padding: 22px;
  background: #f4fafb;
}

.tax-calculator-layout.is-gift {
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
}

.tax-calculator-layout.is-house-land {
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
}

.tax-input-panel,
.tax-result-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(0, 39, 43, 0.1);
  border-radius: 12px;
  background: #fff;
}

.tax-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.tax-section-heading h4 {
  font-size: 18px;
}

.tax-reset-button {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--sd-soft, #f5f5f7);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.tax-reset-button:hover,
.tax-reset-button:focus-visible {
  border-color: var(--apple-focus, #0071e3);
  box-shadow: none;
}

.tax-reset-button:focus-visible {
  outline: 2px solid var(--apple-focus, #0071e3);
  outline-offset: 3px;
}

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

.tax-field-grid.is-single-column {
  grid-template-columns: 1fr;
}

.tax-money-field.is-wide {
  grid-column: 1 / -1;
}

.tax-money-field {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.tax-input-with-unit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  min-width: 0;
  border: 1px solid #d2d2d7;
  border-radius: 9px;
  background: #fff;
}

.tax-input-with-unit:focus-within {
  border-color: var(--apple-focus, #0071e3);
  box-shadow: none;
}

.tax-input-with-unit input {
  width: 100%;
  min-width: 0;
  padding: 10px 11px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 18px;
  font-weight: 900;
}

.tax-input-with-unit strong {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 0 10px;
  color: var(--primary-dark);
  background: var(--sd-soft, #f5f5f7);
  font-size: 11px;
  white-space: nowrap;
}

.tax-family-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 9px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.tax-family-heading strong {
  font-size: 14px;
}

.tax-family-heading span {
  color: var(--muted);
  font-size: 11px;
}

.tax-family-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.tax-choice-control,
.tax-count-field {
  min-width: 0;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--apple-pearl, #fafafc);
}

.tax-choice-control {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  cursor: pointer;
}

.tax-choice-control:has(input:checked) {
  border-color: var(--primary);
  background: var(--sd-soft, #f5f5f7);
}

.tax-choice-control input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.tax-choice-control span {
  display: grid;
  gap: 2px;
}

.tax-choice-control strong,
.tax-count-field > span:first-child {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.tax-choice-control small {
  color: var(--muted);
  font-size: 10px;
}

.tax-count-field {
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 10px 11px;
}

.tax-count-field > span:last-child {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.tax-count-field input {
  width: 60px;
  min-height: 34px;
  padding: 4px 6px;
  border: 1px solid #d2d2d7;
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  font-weight: 900;
}

.tax-count-field input:focus-visible {
  border-color: var(--apple-focus, #0071e3);
  outline: 2px solid var(--apple-focus, #0071e3);
  outline-offset: 3px;
  box-shadow: none;
}

.tax-count-field strong {
  color: var(--primary-dark);
  font-size: 11px;
}

.tax-fixed-deduction-note {
  margin: 10px 0 0;
  padding: 9px 11px;
  border-left: 4px solid var(--gold);
  color: #66521f;
  background: #fff8e5;
  font-size: 11px;
  font-weight: 700;
}

.tax-fixed-deduction-note span:not(:empty) {
  display: block;
  margin-top: 4px;
  color: #a04434;
}

.gift-exemption-card {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 15px;
  border-left: 5px solid var(--gold);
  border-radius: 9px;
  background: #fff8e5;
}

.gift-exemption-card span {
  color: #786026;
  font-size: 11px;
  font-weight: 800;
}

.gift-exemption-card strong {
  color: #5d4510;
  font-size: 18px;
}

.gift-exemption-card small {
  color: #74643e;
  font-size: 11px;
}

.tax-result-panel {
  display: grid;
  align-content: start;
  gap: 13px;
}

.tax-result-hero {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.tax-result-hero.is-gift {
  background: linear-gradient(135deg, #255148, #2b9a7d);
}

.tax-result-hero.is-house-land {
  background: linear-gradient(135deg, #174451, #15929a);
}

.tax-result-hero span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 800;
}

.tax-result-hero strong {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
}

.tax-result-hero small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.tax-result-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tax-result-metrics article {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(1, 156, 168, 0.16);
  border-radius: 8px;
  background: #f1f9fa;
}

.tax-result-metrics span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.tax-result-metrics strong {
  overflow-wrap: anywhere;
  color: var(--primary-dark);
  font-size: 14px;
}

.tax-breakdown {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.tax-breakdown > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 8px 11px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.tax-breakdown > div:last-child {
  border-bottom: 0;
}

.tax-breakdown > div.is-total {
  color: var(--primary-dark);
  background: #e7f6f7;
  font-size: 12px;
  font-weight: 900;
}

.tax-breakdown span {
  color: var(--muted);
}

.tax-breakdown strong {
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}

.tax-bracket-note {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border-radius: 8px;
  color: #654c0f;
  background: var(--gold-soft);
}

.tax-bracket-note.is-gift {
  color: #245a4d;
  background: #dcf2e9;
}

.tax-bracket-note.is-house-land {
  color: #235561;
  background: #ddf2f4;
}

.tax-bracket-note strong {
  font-size: 11px;
}

.tax-bracket-note span {
  font-size: 10px;
  line-height: 1.55;
}

.tax-calculator-note {
  display: grid;
  grid-template-columns: minmax(210px, 0.65fr) minmax(0, 1.6fr);
  gap: 18px 28px;
  margin: 0 22px 22px;
  padding: 20px;
  border: 1px solid #ebd18a;
  border-left: 5px solid var(--gold);
  border-radius: 10px;
  background: #fff9e9;
}

.tax-calculator-note ul {
  margin: 0;
  padding-left: 20px;
  color: #5e5132;
  font-size: 12px;
}

.tax-calculator-note li + li {
  margin-top: 7px;
}

.tax-source-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 13px;
  border-top: 1px solid rgba(121, 92, 20, 0.16);
}

.tax-source-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #dfc374;
  border-radius: 999px;
  color: #654c0f;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
}

.tax-source-links a:hover,
.tax-source-links a:focus-visible {
  border-color: #9c7411;
  outline: none;
  box-shadow: 0 0 0 3px rgba(234, 179, 41, 0.18);
}

.house-land-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(0, 39, 43, 0.12);
}

.house-land-steps article {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 13px 18px;
  background: #eef8f9;
}

.house-land-steps article > span {
  display: grid;
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--primary-dark);
  font-size: 11px;
  font-weight: 900;
}

.house-land-steps div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.house-land-steps strong {
  color: var(--ink);
  font-size: 13px;
}

.house-land-steps small {
  color: var(--muted);
  font-size: 10px;
}

.house-land-expense-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 11px;
  padding: 11px 12px;
  border: 1px dashed rgba(1, 156, 168, 0.38);
  border-radius: 9px;
  background: #f1f9fa;
}

.house-land-expense-help > div {
  display: grid;
  gap: 2px;
}

.house-land-expense-help strong {
  color: var(--primary-dark);
  font-size: 12px;
}

.house-land-expense-help small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.house-land-expense-help .tax-reset-button {
  flex: 0 0 auto;
}

.house-land-fieldset {
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}

.house-land-fieldset legend {
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.house-land-holding-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.house-land-holding-grid label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fafcfc;
  cursor: pointer;
}

.house-land-holding-grid label:has(input:checked) {
  border-color: var(--primary);
  background: #e8f7f8;
  box-shadow: 0 0 0 2px rgba(1, 156, 168, 0.08);
}

.house-land-holding-grid input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.house-land-holding-grid span {
  display: grid;
  gap: 2px;
}

.house-land-holding-grid strong {
  color: var(--ink);
  font-size: 11px;
}

.house-land-holding-grid small {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
}

.house-land-holding-grid.is-disabled {
  opacity: 0.52;
}

.house-land-holding-grid.is-disabled label {
  cursor: not-allowed;
}

.house-land-self-use {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 12px;
  padding: 13px;
  border: 1px solid #dfc374;
  border-radius: 9px;
  background: #fff9e9;
  cursor: pointer;
}

.house-land-self-use:has(input:checked) {
  border-color: #c58b00;
  background: #fff4cf;
}

.house-land-self-use input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: #a86f00;
}

.house-land-self-use span {
  display: grid;
  gap: 3px;
}

.house-land-self-use strong {
  color: #5d4510;
  font-size: 12px;
}

.house-land-self-use small {
  color: #74643e;
  font-size: 10px;
  line-height: 1.55;
}

@media (max-width: 1180px) {
  .tax-calculator-layout,
  .tax-calculator-layout.is-gift,
  .tax-calculator-layout.is-house-land {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .tax-calculator-hero,
  .tax-section-heading,
  .tax-family-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .tax-rule-status,
  .tax-reset-button {
    width: 100%;
  }

  .tax-field-grid,
  .tax-family-grid,
  .house-land-steps,
  .house-land-holding-grid,
  .tax-calculator-note {
    grid-template-columns: 1fr;
  }

  .tax-calculator-hero,
  .tax-calculator-layout {
    padding: 17px;
  }

  .tax-calculator-note {
    margin-right: 17px;
    margin-left: 17px;
  }

  .tax-source-links {
    grid-column: 1;
  }

  .house-land-expense-help {
    align-items: stretch;
    flex-direction: column;
  }

  .tax-money-field.is-wide {
    grid-column: auto;
  }
}

@media (max-width: 780px) {
  .two-card-grid {
    grid-template-columns: 1fr;
  }

  .recruit-resource-group > summary {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .system-support-heading,
  .support-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .support-intro-band {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  .support-count {
    width: 100%;
  }

  .passive-income-table {
    min-width: 835px;
  }
}

/* Five task-first modules: the homepage is a stable purpose map, while the
   existing card folders remain the source-backed implementation layer. */
.primary-task-grid.module-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.primary-task-grid.module-grid > .module-entry {
  position: relative;
  grid-column: span 2;
  min-height: 196px;
  overflow: hidden;
  padding: 22px;
  border-top-width: 1px;
  border-color: rgba(0, 39, 43, 0.12);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.9), transparent 42%),
    linear-gradient(145deg, #f7fbfb 0%, #edf7f7 100%);
  box-shadow: 0 14px 30px rgba(0, 39, 43, 0.07);
}

.primary-task-grid.module-grid > .module-entry::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -48px;
  width: 138px;
  height: 138px;
  border: 24px solid rgba(1, 156, 168, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.primary-task-grid.module-grid > .module-entry:nth-child(4) {
  grid-column: 2 / span 2;
}

.primary-task-grid.module-grid > .module-entry:nth-child(5) {
  grid-column: 4 / span 2;
}

.module-entry-service {
  background:
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.9), transparent 42%),
    linear-gradient(145deg, #f7fbfb 0%, #eff5fb 100%) !important;
}

.module-entry-finance {
  background:
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.9), transparent 42%),
    linear-gradient(145deg, #fffaf0 0%, #f9f3df 100%) !important;
}

.module-entry-business {
  background:
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.9), transparent 42%),
    linear-gradient(145deg, #f8f6fb 0%, #f0eef7 100%) !important;
}

.module-entry-learning {
  background:
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.9), transparent 42%),
    linear-gradient(145deg, #fff8f5 0%, #f9eeea 100%) !important;
}

.module-layer {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid rgba(0, 39, 43, 0.1);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(239, 248, 249, 0.78), rgba(255, 255, 255, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.module-layer > .layer-heading {
  margin-bottom: 20px;
}

.module-route-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.module-route-grid.two-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.module-route-card {
  min-height: 164px;
  background: rgba(255, 255, 255, 0.94);
}

.module-route-card[aria-expanded="true"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(1, 156, 168, 0.12);
}

.module-section-stack {
  display: grid;
  gap: 22px;
}

.module-section {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(0, 39, 43, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
}

.module-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.module-section-heading > span {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: var(--primary-dark);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.module-section-heading h3,
.module-section-heading p {
  margin: 0;
}

.module-section-heading h3 {
  font-size: 19px;
}

.module-section-heading p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
}

.medical-topic-grid [hidden] {
  display: none !important;
}

@media (min-width: 700px) and (max-width: 1180px) {
  .primary-task-grid.module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .primary-task-grid.module-grid > .module-entry,
  .primary-task-grid.module-grid > .module-entry:nth-child(4),
  .primary-task-grid.module-grid > .module-entry:nth-child(5) {
    grid-column: auto;
  }

  .primary-task-grid.module-grid > .module-entry:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 8px);
    justify-self: center;
  }

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

  .module-route-grid > .module-route-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 7px);
    justify-self: center;
  }
}

@media (max-width: 699px) {
  .primary-task-grid.module-grid,
  .module-route-grid,
  .module-route-grid.two-card-grid {
    grid-template-columns: 1fr;
  }

  .primary-task-grid.module-grid > .module-entry,
  .primary-task-grid.module-grid > .module-entry:nth-child(4),
  .primary-task-grid.module-grid > .module-entry:nth-child(5),
  .primary-task-grid.module-grid > .module-entry:last-child,
  .module-route-grid > .module-route-card:last-child:nth-child(odd) {
    grid-column: auto;
    width: auto;
    justify-self: stretch;
  }

  .module-layer {
    padding: 18px;
  }

  .module-section {
    padding: 16px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .app-shell,
  .detail-panel {
    padding: 0;
  }

  .topbar,
  .system-support-actions,
  .support-count,
  .support-footnote {
    display: none;
  }

  .detail-panel,
  .passive-income-table-wrap {
    border: 0;
    box-shadow: none;
  }

  .passive-income-table {
    min-width: 0;
    font-size: 10px;
  }

  .passive-income-table th,
  .passive-income-table td {
    height: 38px;
    padding: 4px;
  }

  .support-check-control {
    width: 30px;
    height: 30px;
  }

  .support-check-control span {
    width: 20px;
    height: 20px;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

/* Product map previews keep every comparison label visible on narrow cards. */
#productMapEntry > .marketing-card-media { object-fit: contain; background: #edf4f1; }

#productMapLayer .product-map-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 24px 0;
}
#productMapLayer .product-map-tab {
  min-width: 0;
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid #e0e0e0;
  border-radius: 9999px;
  background: #f5f5f7;
  color: #0066cc;
  font: inherit;
  cursor: pointer;
}
#productMapLayer .product-map-tab[aria-selected="true"] {
  border-color: #0066cc;
  background: #0066cc;
  color: #fff;
}
#productMapLayer .product-map-tool-panel {
  min-width: 0;
  padding: 24px;
  border: 1px solid #e0e0e0;
  border-radius: 18px;
  background: #fff;
}
#productMapLayer .product-map-tool-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 17px;
}
#productMapLayer .product-map-tool-heading h3 {
  min-width: 0;
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}
#productMapLayer .product-map-tool-heading a {
  flex: 0 0 auto;
}
#productMapLayer .product-map-tool-status {
  margin: 17px 0;
  color: #6e6e73;
  font-size: 17px;
  line-height: 1.47;
}
#productMapLayer .product-map-frame-shell {
  min-width: 0;
  min-height: 420px;
  border: 0;
  border-radius: 0;
}
#productMapLayer .product-map-tool-frame {
  min-height: 420px;
  height: 760px;
}
#productMapLayer .product-map-tool-frame.shield-frame-auto { min-height: 0; }
@media (max-width: 780px) {
  #productMapLayer .product-map-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #productMapLayer .product-map-tool-panel { padding: 17px; }
  #productMapLayer .product-map-tool-heading { align-items: flex-start; flex-direction: column; }
  #productMapLayer .product-map-tool-heading h3 { font-size: 21px; }
}

/* Reclassified entries share the existing visual language. */
.primary-task-grid.nine-card-grid { grid-auto-flow: row; }
#medicalLayer .medical-topic-grid.is-grouped { grid-template-columns: repeat(6, minmax(0, 1fr)); }
#medicalLayer .medical-topic-grid > .task-card { grid-column: span 2; min-width: 0; }
#medicalLayer .medical-topic-grid > .marketing-protection-card,
#medicalLayer .medical-topic-grid > .marketing-newborn-card { grid-column: span 3; display: flex; flex-direction: column; }
#medicalLayer .marketing-newborn-card .marketing-card-media { aspect-ratio: 16 / 9; min-height: 0; height: auto; border-right: 0; }
#medicalLayer .medical-topic-grid > [data-medical-topic="medicalPackageNavigator"] { grid-column: 1 / -1; }
.module-route-grid > .marketing-resource-card { min-width: 0; }
@media (max-width: 1000px) {
  #medicalLayer .medical-topic-grid.is-grouped { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #medicalLayer .medical-topic-grid > .task-card { grid-column: auto; }
  #medicalLayer .medical-topic-grid > [data-medical-topic="medicalPackageNavigator"],
  #medicalLayer .medical-topic-grid > #productMapEntry { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  #medicalLayer .medical-topic-grid.is-grouped { grid-template-columns: minmax(0, 1fr); }
  #medicalLayer .medical-topic-grid > .task-card { grid-column: auto; }
}

/* 需求分析與提案：五個主題並列，完整架構獨立於簡報選擇。 */
body.shield-design[data-design="apple"] #clientPlanningLayer {
  padding-inline: 0;
  border-inline: 0;
  border-bottom: 0;
  border-radius: 0;
  background: #fff;
}
body.shield-design[data-design="apple"] #clientPlanningLayer > .layer-heading {
  margin-bottom: 16px;
}
body.shield-design[data-design="apple"] #clientPlanningLayer .planning-gallery-intro {
  margin: 0 0 20px;
}
/* This gallery already contains all three entries recommended by its footer. */
body.shield-design[data-design="apple"] #clientPlanningLayer > .shield-related-cards {
  display: none;
}
body.shield-design[data-design="apple"] #clientPlanningLayer .planning-gallery-intro h3 {
  margin: 0;
  color: #1d1d1f;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.28px;
}
body.shield-design[data-design="apple"] #clientPlanningLayer .planning-gallery-intro p {
  margin: 8px 0 0;
  color: #6e6e73;
  font-size: 17px;
  line-height: 1.47;
}
body.shield-design[data-design="apple"] #clientPlanningLayer .planning-gallery {
  width: 100%;
  max-width: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 16px;
}
body.shield-design[data-design="apple"] #clientPlanningLayer .planning-topic-card {
  display: flex;
  flex-direction: column;
  grid-column: auto;
  align-items: stretch;
  justify-content: flex-start;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 1px solid #e0e0e0;
  border-radius: 18px;
  background: #fff;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 160ms ease;
}
body.shield-design[data-design="apple"] #clientPlanningLayer .planning-topic-card:hover,
body.shield-design[data-design="apple"] #clientPlanningLayer .planning-topic-card:focus-visible {
  border-color: #0066cc;
  transform: none;
}
body.shield-design[data-design="apple"] #clientPlanningLayer .planning-topic-card:focus-visible {
  outline: 2px solid #0071e3;
  outline-offset: 3px;
}
body.shield-design[data-design="apple"] #clientPlanningLayer .planning-topic-visual {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  height: 112px;
  aspect-ratio: auto;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #e0e0e0;
  background: #f5f5f7;
  color: #0066cc;
}
body.shield-design[data-design="apple"] #clientPlanningLayer .planning-topic-number {
  position: absolute;
  top: 12px;
  left: 14px;
  color: #6e6e73;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.224px;
}
body.shield-design[data-design="apple"] #clientPlanningLayer .planning-topic-visual > svg {
  display: block;
  width: 144px;
  max-width: calc(100% - 24px);
  height: 101px;
}
body.shield-design[data-design="apple"] #clientPlanningLayer .planning-visual-time {
  padding: 12px 10px;
  background: #f7f5ee;
}
body.shield-design[data-design="apple"] #clientPlanningLayer .planning-visual-time > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
body.shield-design[data-design="apple"] #clientPlanningLayer .planning-visual-time .planning-topic-number {
  top: 5px;
  left: 8px;
}
body.shield-design[data-design="apple"] #clientPlanningLayer .planning-topic-copy {
  display: grid;
  flex: 1;
  grid-template-rows: auto minmax(55px, auto) 1fr auto;
  align-content: start;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 16px 20px 12px;
  color: #1d1d1f;
}
body.shield-design[data-design="apple"] #clientPlanningLayer .planning-topic-copy > .task-kicker {
  color: #6e6e73;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -.224px;
}
body.shield-design[data-design="apple"] #clientPlanningLayer .planning-topic-copy > strong {
  margin: 0;
  color: #1d1d1f;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.28px;
  overflow-wrap: normal;
}
body.shield-design[data-design="apple"] #clientPlanningLayer .planning-topic-description {
  min-height: 50px;
  color: #6e6e73;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
}
body.shield-design[data-design="apple"] #clientPlanningLayer .planning-title-part {
  display: inline-block;
  color: inherit;
  font: inherit;
  white-space: nowrap;
}
body.shield-design[data-design="apple"] #clientPlanningLayer .planning-topic-copy > .marketing-product-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  padding: 8px 0 0;
  border-top: 0;
  color: #0066cc;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
}
body.shield-design[data-design="apple"] #clientPlanningLayer .marketing-product-action > span {
  color: #0066cc;
  font-size: 21px;
  line-height: 1;
}
body.shield-design[data-design="apple"] #clientPlanningLayer .planning-framework {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  width: 100%;
  min-height: 96px;
  margin: 16px 0 0;
  padding: 16px 24px;
  border: 1px solid #e0e0e0;
  border-radius: 18px;
  background: #f5f5f7;
  text-align: left;
  transform: none;
}
body.shield-design[data-design="apple"] #clientPlanningLayer .planning-framework:hover,
body.shield-design[data-design="apple"] #clientPlanningLayer .planning-framework:focus-visible {
  border-color: #0066cc;
}
body.shield-design[data-design="apple"] #clientPlanningLayer .planning-framework-symbol {
  display: flex;
  flex: 0 0 44px;
  align-items: center;
  width: 44px;
  height: 44px;
  color: #0066cc;
}
body.shield-design[data-design="apple"] #clientPlanningLayer .planning-framework-symbol svg {
  width: 44px;
  height: 44px;
}
body.shield-design[data-design="apple"] #clientPlanningLayer .planning-framework-copy {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}
body.shield-design[data-design="apple"] #clientPlanningLayer .planning-framework-copy > .task-kicker {
  color: #6e6e73;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.47;
}
body.shield-design[data-design="apple"] #clientPlanningLayer .planning-framework-copy > strong {
  color: #1d1d1f;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
}
body.shield-design[data-design="apple"] #clientPlanningLayer .planning-framework-description {
  color: #6e6e73;
  font-size: 17px;
  line-height: 1.47;
}
body.shield-design[data-design="apple"] #clientPlanningLayer .planning-framework-open {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: #0066cc;
  font-size: 17px;
  line-height: 1.47;
  white-space: nowrap;
}
@media (min-width: 600px) and (max-width: 1023px) {
  body.shield-design[data-design="apple"] #clientPlanningLayer .planning-gallery {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  body.shield-design[data-design="apple"] #clientPlanningLayer .planning-topic-card {
    grid-column: span 2;
  }
  body.shield-design[data-design="apple"] #clientPlanningLayer .planning-topic-card:nth-child(-n + 2) {
    grid-column: span 3;
  }
}
@media (max-width: 599px) {
  body.shield-design[data-design="apple"] #clientPlanningLayer .planning-gallery-intro h3 {
    font-size: 24px;
  }
  body.shield-design[data-design="apple"] #clientPlanningLayer .planning-gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  body.shield-design[data-design="apple"] #clientPlanningLayer .planning-topic-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: stretch;
  }
  body.shield-design[data-design="apple"] #clientPlanningLayer .planning-topic-visual {
    width: 96px;
    height: 100%;
    min-height: 160px;
    border-bottom: 0;
    border-right: 1px solid #e0e0e0;
  }
  body.shield-design[data-design="apple"] #clientPlanningLayer .planning-topic-visual > svg {
    width: 90px;
    max-width: calc(100% - 8px);
    height: 100px;
  }
  body.shield-design[data-design="apple"] #clientPlanningLayer .planning-topic-copy {
    grid-template-rows: auto auto 1fr auto;
    gap: 4px;
    padding: 12px 16px 8px;
  }
  body.shield-design[data-design="apple"] #clientPlanningLayer .planning-topic-description {
    min-height: 0;
  }
  body.shield-design[data-design="apple"] #clientPlanningLayer .planning-visual-time {
    padding: 28px 6px 12px;
  }
  body.shield-design[data-design="apple"] #clientPlanningLayer .planning-framework {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 16px;
  }
  body.shield-design[data-design="apple"] #clientPlanningLayer .planning-framework-symbol {
    flex-basis: 36px;
    width: 36px;
  }
  body.shield-design[data-design="apple"] #clientPlanningLayer .planning-framework-symbol svg {
    width: 36px;
  }
  body.shield-design[data-design="apple"] #clientPlanningLayer .planning-framework-open {
    margin-left: 48px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.shield-design[data-design="apple"] #clientPlanningLayer .planning-topic-card,
  body.shield-design[data-design="apple"] #clientPlanningLayer .marketing-product-action > span {
    transition: none;
  }
}

/* 第二層主題展示：共用圖像、內容型態與用途，依既有分組數量排版。 */
body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) { padding-inline: 0; border-inline: 0; border-bottom: 0; border-radius: 0; background: #fff; }
body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) > .layer-heading { margin-bottom: 16px; }
body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-gallery-intro { margin: 0 0 20px; }
body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-gallery-intro h3 { margin: 0; color: #1d1d1f; font-size: 28px; font-weight: 600; line-height: 1.25; letter-spacing: -.28px; text-wrap: balance; }
body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-gallery-intro p { margin: 8px 0 0; color: #6e6e73; font-size: 17px; line-height: 1.47; }
body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-gallery-group + .layer-gallery-group { margin-top: 20px; }
body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-gallery-group > .tool-group-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 12px; padding: 0; border: 0; background: transparent; }
body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-gallery-group > .tool-group-heading h3 { margin: 0; color: #1d1d1f; font-size: 21px; font-weight: 600; line-height: 1.3; }
body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-gallery-group > .tool-group-heading p { margin: 0; color: #6e6e73; font-size: 17px; line-height: 1.47; }
body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-gallery-grid { --gallery-columns: 3; display: grid; width: 100%; max-width: none; grid-template-columns: repeat(var(--gallery-columns), minmax(0, 1fr)); grid-auto-rows: auto; gap: 16px; margin: 0; }
body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-gallery-grid[data-count="1"] { --gallery-columns: 1; }
body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-gallery-grid[data-count="2"] { --gallery-columns: 2; }
body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-gallery-grid[data-count="4"] { --gallery-columns: 4; }
body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-gallery-grid[data-count="5"] { --gallery-columns: 5; }
body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-gallery-grid[data-count="7"] { --gallery-columns: 12; }
body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-topic-card { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; grid-column: auto; width: 100%; min-width: 0; min-height: 0; padding: 0; border: 1px solid #e0e0e0; border-radius: 18px; background: #fff; color: #1d1d1f; text-align: left; text-decoration: none; overflow: hidden; box-shadow: none; transition: border-color 160ms ease; }
body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-gallery-grid[data-count="7"] > .layer-topic-card { grid-column: span 3; }
body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-gallery-grid[data-count="7"] > .layer-topic-card:nth-child(n + 5) { grid-column: span 4; }
body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-topic-card:hover { border-color: #0066cc; transform: none; }
body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-topic-card:focus-visible { border-color: #0066cc; outline: 2px solid #0071e3; outline-offset: 3px; transform: none; }
body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-topic-card > .layer-topic-visual { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 100%; height: 100px; min-height: 0; padding: 0 12px; border: 0; border-bottom: 1px solid #e0e0e0; background: #f5f5f7; color: #0066cc; overflow: hidden; }
body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-topic-card > .layer-topic-visual > svg { display: block; width: 144px; max-width: 100%; height: 100px; }
body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-topic-card > .layer-topic-visual > img { display: block; width: 100%; height: 100%; object-fit: contain; }
body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-topic-card > .layer-topic-copy { display: flex; flex: 1; flex-direction: column; align-items: stretch; gap: 8px; width: 100%; min-width: 0; padding: 16px 20px 12px; }
body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-topic-card > .layer-topic-copy > .task-kicker { color: #6e6e73; font-size: 14px; font-weight: 400; line-height: 1.47; letter-spacing: -.224px; }
body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-topic-card > .layer-topic-copy > strong { min-height: 0; margin: 0; color: #1d1d1f; font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: -.28px; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-topic-card > .layer-topic-copy > .tool-subtitle { margin: -4px 0 0; color: #6e6e73; font-size: 14px; font-weight: 400; line-height: 1.47; }
body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-topic-description { flex: 1; min-height: 50px; color: #6e6e73; font-size: 17px; font-weight: 400; line-height: 1.47; }
body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-topic-card > .layer-topic-copy > .marketing-product-action { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; width: 100%; align-self: stretch; margin: 0; padding: 8px 0 0; border-top: 0; color: #0066cc; font-size: 17px; font-weight: 400; line-height: 1.47; }
body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-topic-card > .layer-topic-copy > .marketing-product-action > span { color: inherit; font: inherit; }
body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-gallery-grid:is([data-count="1"], [data-count="2"]) > .layer-topic-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-gallery-grid:is([data-count="1"], [data-count="2"]) .layer-topic-card > .layer-topic-visual { height: 100%; min-height: 158px; border-bottom: 0; border-right: 1px solid #e0e0e0; padding: 8px; }
body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-gallery-grid:is([data-count="1"], [data-count="2"]) .layer-topic-card > .layer-topic-copy > strong { min-height: 0; }
body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .data-version-note { margin: 0 0 20px; padding: 16px; border: 0; background: #f5f5f7; color: #6e6e73; font-size: 17px; line-height: 1.47; }
body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) > .shield-related-cards { margin-top: 20px; }
@media (min-width: 600px) and (max-width: 1023px) {
 body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-gallery-grid[data-count="4"] { --gallery-columns: 2; }
 body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-gallery-grid[data-count="5"] { --gallery-columns: 6; }
 body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-gallery-grid[data-count="5"] > .layer-topic-card { grid-column: span 2; }
 body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-gallery-grid[data-count="5"] > .layer-topic-card:nth-child(-n + 2) { grid-column: span 3; }
 body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-gallery-grid[data-count="7"] { --gallery-columns: 6; }
 body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-gallery-grid[data-count="7"] > .layer-topic-card { grid-column: span 3; }
 body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-gallery-grid[data-count="7"] > .layer-topic-card:nth-child(n + 5) { grid-column: span 2; }
 body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-gallery-grid[data-count="2"] > .layer-topic-card { display: flex; }
 body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-gallery-grid[data-count="2"] .layer-topic-card > .layer-topic-visual { height: 100px; min-height: 0; border-right: 0; border-bottom: 1px solid #e0e0e0; }
}
@media (min-width: 600px) and (max-width: 767px) {
 body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-gallery-grid:is([data-count="3"], [data-count="5"], [data-count="7"]) { --gallery-columns: 2; }
 body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-gallery-grid:is([data-count="3"], [data-count="5"], [data-count="7"]) > .layer-topic-card:nth-child(n) { grid-column: auto; }
 body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-gallery-grid:is([data-count="3"], [data-count="5"], [data-count="7"]) > .layer-topic-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
 body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-gallery-intro h3 { font-size: 24px; }
 body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-gallery-grid[data-count] { --gallery-columns: 1; gap: 12px; }
 body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-gallery-grid[data-count] > .layer-topic-card:nth-child(n) { display: grid; grid-template-columns: 88px minmax(0, 1fr); grid-column: auto; }
 body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-gallery-grid[data-count] .layer-topic-card > .layer-topic-visual { width: 88px; height: 100%; min-height: 170px; border-right: 1px solid #e0e0e0; border-bottom: 0; padding: 6px; }
 body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-topic-card > .layer-topic-visual > svg { width: 80px; height: 100px; }
 body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-topic-card > .layer-topic-copy { gap: 6px; padding: 12px 16px 8px; }
 body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-topic-card > .layer-topic-copy > strong { min-height: 0; font-size: 20px; }
 body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-topic-description { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
 body.shield-design[data-design="apple"] .layer-gallery-page:is(#marketingLayer, #clientPlanningLayer, #clientServiceLayer, #trainingLayer, #businessOperationsLayer, #medicalLayer, #taxLayer, #reservoirLayer, #rewardsLayer) .layer-topic-card { transition: none; }
}

body.shield-design[data-design="apple"] .layer-gallery-page .layer-title-part { display: inline-block; color: inherit; font: inherit; white-space: nowrap; }

