/* DESIGN-apple.md：全站 Apple 視覺層。工具數值、圖表及列印幾何沿用原頁。 */
body.shield-design[data-design="apple"] {
  --sd-ink: #1d1d1f;
  --sd-muted: #6e6e73;
  --sd-line: #e0e0e0;
  --sd-paper: #fff;
  --sd-background: #fff;
  --sd-primary: #0066cc;
  --sd-primary-hover: #0066cc;
  --sd-soft: #f5f5f7;
  --sd-shadow: none;
  --sd-radius: 18px;
  --sd-control-radius: 8px;
  --sd-font: "SF Pro Text", system-ui, -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", sans-serif;
  --apple-display: "SF Pro Display", system-ui, -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", sans-serif;
  --apple-blue: #0066cc;
  --apple-focus: #0071e3;
  --apple-dark-link: #2997ff;
  --apple-black: #000;
  --apple-dark: #272729;
  --apple-dark-alt: #2a2a2c;
  --apple-pearl: #fafafc;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #e0e0e0;
  --background: #fff;
  --bg: #fff;
  --paper: #fff;
  --surface: #fff;
  --soft: #f5f5f7;
  --primary: #0066cc;
  --primary-strong: #0066cc;
  --primary-dark: #1d1d1f;
  --primary-deep: #1d1d1f;
  --accent: #0066cc;
  --accent-dark: #0066cc;
  --blue: #0066cc;
  --blue-deep: #0066cc;
  --navy: #272729;
  --navy-2: #272729;
  --teal: #0066cc;
  --teal-dark: #0066cc;
  --teal-bright: #0066cc;
  --teal-soft: #f5f5f7;
  --color-primary: #0066cc;
  --color-accent: #0066cc;
  --color-text: #1d1d1f;
  --color-bg: #fff;
  --action-blue: #0066cc;
  --focus-blue: #0071e3;
  --link-blue-dark: #2997ff;
  --canvas: #fff;
  --parchment: #f5f5f7;
  --pearl: #fafafc;
  --black: #000;
  --shadow: none;
  width: 100%; max-width: none; margin: 0; padding: 0;
  color: var(--sd-ink); background: var(--sd-background);
  font-family: var(--sd-font); font-size: 17px; font-weight: 400;
  line-height: 1.47; letter-spacing: -.374px;
}
.shield-design[data-design="apple"] :where(h1, h2, h3) { font-family: var(--apple-display); font-weight: 600; letter-spacing: -.28px; }
.shield-design[data-design="apple"] :where(button, a, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--apple-focus); outline-offset: 3px; }
.shield-design[data-design="apple"] :where(button, input, select, textarea) { font-family: var(--sd-font); }
.shield-design[data-design="apple"] :where(button) { font-weight: 400; }
.shield-design[data-design="apple"] :where(button):active:not(:disabled) { transform: scale(.95); }
.shield-design[data-design="apple"] :where(strong, b) { font-weight: 600; }
.shield-design[data-design="apple"] :where(small, .eyebrow, .section-kicker, .task-kicker) { font-size: 14px; font-weight: 400; letter-spacing: -.224px; }
.shield-design[data-design="apple"] :where(.panel, .card, .task-card, .detail-panel, .summary-card, .source-card, .button, button, .shield-tool-header, .topbar, .site-header, .page-shell, .workspace, .result-panel, .dialog, dialog, .download-item) { box-shadow: none !important; text-shadow: none; }

/* 導覽：既有品牌與返回功能組成 44px 黑列及 52px 淺灰工具列。 */
.shield-design[data-design="apple"] .shield-tool-header {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  gap: 0; width: 100%; max-width: none; min-height: 96px; height: auto;
  margin: 0 0 32px; padding: 0; border: 0; border-radius: 0;
  background: var(--sd-soft); box-shadow: none;
}
.shield-design[data-design="apple"] .shield-tool-heading,
.shield-design[data-design="apple"] .shield-tool-header > .brand { display: contents; }
.shield-design[data-design="apple"] .shield-tool-header > .brand > svg { display: none; }
.shield-design[data-design="apple"] .shield-identity {
  grid-row: 1; grid-column: 1 / -1; display: flex; align-items: center; gap: 16px;
  width: 100%; min-height: 44px; margin: 0; padding: 0 max(24px, calc((100% - 1320px) / 2));
  background: var(--apple-black); color: #fff;
  font-size: 12px; font-weight: 400; line-height: 1.3; letter-spacing: -.12px;
}
.shield-design[data-design="apple"] .shield-identity span { color: #ccc; font-size: 12px; font-weight: 400; }
.shield-design[data-design="apple"] .shield-tool-header :is(h1, .shield-tool-name) {
  grid-row: 2; grid-column: 1; align-self: center;
  min-width: 0; margin: 0; padding: 12px 20px 12px max(24px, calc((100vw - 1320px) / 2));
  color: var(--sd-ink); font-family: var(--apple-display);
  font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: .231px;
}
.shield-design[data-design="apple"] .shield-return {
  grid-row: 2; grid-column: 2; margin: 4px max(24px, calc((100vw - 1320px) / 2)) 4px 0;
  min-height: 44px; padding: 11px 16px; background: transparent; border: 0;
  border-radius: 9999px; color: var(--apple-blue); font-size: 14px;
  font-weight: 400; line-height: 1.3; letter-spacing: -.224px;
}
.shield-design[data-design="apple"] .shield-header-meta { grid-row: 2; grid-column: 2; gap: 12px; }
.shield-design[data-design="apple"] .shield-header-meta .version-pill { background: transparent; border: 0; font-size: 12px; }
.shield-design[data-design="apple"] .shield-local-toolbar {
  margin-bottom: 24px; padding: 8px 0; min-height: 44px;
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
}
.shield-design[data-design="apple"] .shield-local-toolbar :is(a, button) { color: var(--apple-blue); font-weight: 400; }
.shield-design[data-design="apple"] .shield-local-toolbar :is(.button-primary, .primary-button, button.primary, .print-button) { background: var(--apple-blue); color: #fff; }
.shield-design[data-design="apple"] .shield-local-toolbar :is(.sub-nav-actions > a, .sub-nav-inner > a, .sub-nav-action) { background: transparent; color: var(--apple-blue); border: 1px solid var(--apple-blue); border-radius: 9999px; min-height: 44px; padding: 11px 22px; }
.shield-design[data-design="apple"] .shield-local-toolbar :is(.global-nav, .sub-nav, .nav-inner, .sub-nav-inner) { background: transparent; }
.shield-design[data-design="apple"][data-shield-page="page-49"] .hero-lead span { color: var(--sd-muted); opacity: 1 !important; }
.shield-design[data-design="apple"] .app-shell { padding: 0; }
.shield-design[data-design="apple"] :is(main.workspace, main.entrepreneur-workspace) { width: min(1440px, calc(100% - 48px)); max-width: 1440px; margin-inline: auto; }

/* 商品地圖保留資料與表內標示，統一工具外觀。 */
.shield-design[data-design="apple"][data-shield-page^="page-6"]:is([data-shield-page="page-61"], [data-shield-page="page-62"], [data-shield-page="page-63"], [data-shield-page="page-64"]) {
  --rule: #e0e0e0; --label: #f5f5f7; border-top: 0;
}
.shield-design[data-design="apple"]:is([data-shield-page="page-61"], [data-shield-page="page-62"], [data-shield-page="page-63"], [data-shield-page="page-64"]) :is(thead th, thead .filled-company) { background: var(--apple-dark); color: #fff; }
.shield-design[data-design="apple"]:is([data-shield-page="page-61"], [data-shield-page="page-62"], [data-shield-page="page-63"], [data-shield-page="page-64"]) thead small { color: #ccc; }
.shield-design[data-design="apple"]:is([data-shield-page="page-61"], [data-shield-page="page-62"], [data-shield-page="page-63"], [data-shield-page="page-64"]) :is(.section-row th, .metric-row th.metric, .section th, .metrics th, tbody .label, .notes) { background: var(--sd-soft); color: var(--sd-ink); border-color: var(--sd-line); }
.shield-design[data-design="apple"]:is([data-shield-page="page-61"], [data-shield-page="page-62"], [data-shield-page="page-63"], [data-shield-page="page-64"]) :is(.download-pdf, .toolbar a[download]) { background: var(--apple-blue); color: #fff; border-color: var(--apple-blue); min-height: 44px; padding: 11px 22px; border-radius: 9999px; font-size: 17px; }

/* 首頁採 utility grid；九個入口與原有分層維持不變。 */
.shield-design[data-design="apple"] .shield-portal-header {
  width: 100%; max-width: none; min-height: 44px; margin: 0 0 40px;
  padding: 0 max(24px, calc((100% - 1320px) / 2)); border: 0; border-radius: 0;
  background: var(--apple-black); color: #fff; box-shadow: none;
}
.shield-design[data-design="apple"] .shield-portal-header :is(.brand h1, .brand-home:hover h1) { color: #fff; font-family: var(--apple-display); font-size: 21px; font-weight: 600; }
.shield-design[data-design="apple"] .shield-portal-header .version-pill { color: #ccc; background: transparent; border: 0; font-size: 12px; }
.shield-design[data-design="apple"] .shield-portal-header :is(.device-recommendation, .device-recommendation strong, .topbar-feedback-link) { color: #ccc; background: transparent; border: 0; font-size: 12px; font-weight: 400; }
.shield-design[data-design="apple"] .shield-portal-header .topbar-feedback-link { color: #fff; }
.shield-design[data-design="apple"] :is(.task-panel, .detail-panel) { border: 0; border-radius: 0; background: #fff; padding: 24px 0; box-shadow: none; }
.shield-design[data-design="apple"] :is(.task-heading h2, .layer-heading h2, .study-heading h2) { font-family: var(--apple-display); font-size: 40px; font-weight: 600; line-height: 1.2; letter-spacing: -.28px; }
.shield-design[data-design="apple"] .task-grid { gap: 24px; }
.shield-design[data-design="apple"] .task-card { border: 1px solid var(--sd-line); border-radius: 18px; background: var(--sd-paper); color: var(--sd-ink); box-shadow: none; }
.shield-design[data-design="apple"] .task-card strong { font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: .231px; }
.shield-design[data-design="apple"] .task-card > span:not(.task-kicker) { font-size: 17px; line-height: 1.47; letter-spacing: -.374px; }
.shield-design[data-design="apple"] .primary-task-grid .home-entry { min-height: 180px; padding: 24px; background: var(--sd-soft); border: 0; }
.shield-design[data-design="apple"] .task-card::after { color: var(--apple-blue); }
.shield-design[data-design="apple"] :is(.task-kicker, .marketing-product-action) { color: var(--apple-blue); }
.shield-design[data-design="apple"] .task-card:hover { box-shadow: none; }

/* 閱讀與開場：平面的明暗 tile；工具輸入與結果仍採 18px utility card。 */
.shield-design[data-design="apple"] :is(.hero, .intro, .entrepreneur-hero) {
  background-image: none; box-shadow: none; border-radius: 0; border: 0;
  padding-top: 64px; padding-bottom: 64px;
}
.shield-design[data-design="apple"] :is(.hero, .intro) .shield-original-title {
  font-family: var(--apple-display); font-size: clamp(40px, 4.75vw, 56px);
  font-weight: 600; line-height: 1.18; letter-spacing: -.28px;
}
.shield-design[data-design="apple"] :is(.hero-intro, .hero-lead, .hero-copy > p:not(.eyebrow), .intro-copy > p:not(.eyebrow)) { font-size: 17px; font-weight: 400; line-height: 1.6; letter-spacing: -.374px; }
.shield-design[data-design="apple"] :is(.section-heading h2, .section-title h2, .panel-heading h2, .control-heading h2, .chapter-heading h2) { font-size: 34px; font-weight: 600; line-height: 1.47; letter-spacing: -.374px; }
.shield-design[data-design="apple"] :is(.panel, .control-panel, .summary-card, .source-card, .result-card, .form-card, .card, .resource-card, .download-item, .practice-card, .input-panel) { border-radius: 18px; border-color: var(--sd-line); background-image: none; box-shadow: none; }
.shield-design[data-design="apple"] :is(.download-panel, .preview-panel, .workflow, .source-section, .resource-header, .resource-intro, .page-footer, .quick-note, .scope-banner) { background-image: none; box-shadow: none; }
.shield-design[data-design="apple"] :is(.section, .workflow, .source-section) { margin-bottom: 48px; }
.shield-design[data-design="apple"] :is(.download-panel, .preview-panel) { background: var(--sd-paper); }
.shield-design[data-design="apple"] :is(.workflow, .source-section, .preview-panel) { border-top: 1px solid var(--sd-line); }
.shield-design[data-design="apple"] .hero-art { opacity: .15; }
.shield-design[data-design="apple"]:is([data-shield-page="page-30"], [data-shield-page="page-31"], [data-shield-page="page-72"])::before { background-image: none; }
.shield-design[data-design="apple"] :is(.entrepreneur-page, .market-candidate-section, .is-primary-candidate, .planner-form, .ideal-combination-section, .tier-card, .value-list > div, .stage-step, .metric-card, .chart-wrap, .selected-event, .takeaway, .chart-card, .preview-column, .supervisor-brief, .hero-aside) { background: var(--sd-soft); background-image: none; box-shadow: none; border-color: var(--sd-line); }
.shield-design[data-design="apple"] :is(.esbi-card.is-focus, .route-board, .evidence-section, .methodology, .result-block, .mechanism-card, .tracker-section, .partner-card, .source-banner, .route-card, .bonus-output, .milestone-card, .timeline-item.destination, .detail-card.products-card, .case-block, .stage-card, .talk-track, .primary-result) { background: var(--apple-dark); background-image: none; color: #fff; box-shadow: none; }
.shield-design[data-design="apple"][data-shield-page="page-31"] .reward-arrow { background: var(--apple-blue); background-image: none; }
.shield-design[data-design="apple"][data-shield-page="page-31"] .ticket-line { background: var(--sd-line); background-image: none; }
.shield-design[data-design="apple"][data-shield-page="page-31"] .result-panel { background: var(--sd-paper); background-image: none; color: var(--sd-ink); box-shadow: none; }
.shield-design[data-design="apple"][data-shield-page="page-31"] .gauge { background: conic-gradient(var(--apple-blue) var(--gauge-progress), var(--sd-line) 0); }
.shield-design[data-design="apple"][data-shield-page="page-30"] .progress-fill { background: var(--apple-blue); background-image: none; }
.shield-design[data-design="apple"][data-shield-page="page-41"] [id^="stage-tab-"][aria-selected="true"] { background: var(--apple-blue); background-image: none; color: #fff; }
.shield-design[data-design="apple"][data-shield-page="page-41"] [id^="stage-panel-"] { background: var(--sd-soft); background-image: none; }
.shield-design[data-design="apple"][data-shield-page="page-47"] :is(.step-card, .phase) > header { background: var(--apple-dark); background-image: none; color: #fff; }
.shield-design[data-design="apple"][data-shield-page="page-48"] .social-preview { background: var(--sd-soft); background-image: none; }
.shield-design[data-design="apple"][data-shield-page="page-48"] .social-preview.preview-two { background: var(--apple-dark); color: #fff; }
.shield-design[data-design="apple"][data-shield-page="page-50"] :is(.home-board, .exchange-rate-panel, .installment-feature-card, .info-card.accent-card) { background: var(--sd-soft); background-image: none; box-shadow: none; }
.shield-design[data-design="apple"][data-shield-page="page-50"] :is(.benefit-button, .next-benefit-button, .installment-hero h3) { background: var(--apple-blue); background-image: none; color: #fff; box-shadow: none; }
.shield-design[data-design="apple"][data-shield-page="page-50"] .exchange-rate-form button { background: var(--apple-blue); background-image: none; color: #fff; }
.shield-design[data-design="apple"][data-shield-page="page-50"] .highlight-strip article { background: var(--sd-soft); background-image: none; box-shadow: none; }
.shield-design[data-design="apple"][data-shield-page="page-72"] .evidence.section-shell { background: var(--apple-dark); background-image: none; }
.shield-design[data-design="apple"][data-shield-page="page-29"] .summary-card.primary { background: var(--sd-soft); color: var(--sd-ink); }
.shield-design[data-design="apple"] .calculator-result-table thead th { background: var(--sd-soft); color: var(--sd-muted); }
.shield-design[data-design="apple"] :is(.calculator-result-table, .medical-table, .result-table, .data-table) { font-variant-numeric: tabular-nums; }

/* 既有深色主題改成近黑平面；不以漸層營造 UI 深度。 */
.shield-design[data-design="apple"]:is([data-shield-page="page-30"], [data-shield-page="page-31"]) { --ink: #fff; --muted: #ccc; color: #fff; background: var(--apple-dark); }
.shield-design[data-design="apple"]:is([data-shield-page="page-30"], [data-shield-page="page-31"]) :is(.hero, .hero::before, .hero::after, .star-field, .orbit-stage) { background-image: none; }
.shield-design[data-design="apple"]:is([data-shield-page="page-38"], [data-shield-page="page-39"], [data-shield-page="page-41"], [data-shield-page="page-42"], [data-shield-page="page-47"], [data-shield-page="page-48"], [data-shield-page="page-69"]) .hero {
  background: var(--apple-dark); color: #fff;
}
.shield-design[data-design="apple"]:is([data-shield-page="page-38"], [data-shield-page="page-39"], [data-shield-page="page-41"], [data-shield-page="page-42"], [data-shield-page="page-47"], [data-shield-page="page-48"], [data-shield-page="page-69"]) .hero :is(.eyebrow, .section-kicker) { color: #ccc; }
.shield-design[data-design="apple"]:is([data-shield-page="page-38"], [data-shield-page="page-39"], [data-shield-page="page-41"], [data-shield-page="page-42"], [data-shield-page="page-47"], [data-shield-page="page-48"], [data-shield-page="page-69"]) .hero .shield-original-title { color: #fff; }
.shield-design[data-design="apple"][data-shield-page="page-18"] .entrepreneur-hero { background: var(--apple-dark); color: #fff; }
.shield-design[data-design="apple"][data-shield-page="page-48"] :is(.life-section, .life-map-section) { background-image: none; background-color: var(--apple-dark-alt); }

/* Action Blue 只用於操作訊號；錯誤、待確認與 DISC 向度色保留其語意。 */
.shield-design[data-design="apple"] :is(.button-primary, .button.primary, .button.dark, .button.gold, .button-dark, .primary-button, .primary-link, .export-button, .btn-primary, .solid-button, button.primary, button#next, .download-button:not(.secondary), .button-store-hero) {
  min-height: 44px; padding: 11px 22px; border: 1px solid var(--apple-blue);
  border-radius: 9999px; background: var(--apple-blue); color: #fff;
  font-family: var(--sd-font); font-size: 17px; font-weight: 400; line-height: 1.3; letter-spacing: -.374px; box-shadow: none;
}
.shield-design[data-design="apple"] :is(.button-primary, .primary-button, .primary-link, .export-button, button.primary):hover:not(:disabled) { background: var(--apple-blue); border-color: var(--apple-blue); color: #fff; }
.shield-design[data-design="apple"] :is(.button-secondary, .button.secondary, .button.light, .secondary-button, .btn-secondary, .ghost-button, .export-button.is-secondary) {
  min-height: 44px; padding: 11px 22px; border: 1px solid var(--apple-blue); border-radius: 9999px;
  background: transparent; color: var(--apple-blue); font-size: 17px; font-weight: 400; line-height: 1.3; box-shadow: none;
}
.shield-design[data-design="apple"] :is(.layer-back, .back-link, .text-button, .quiet, .support-action) {
  min-height: 44px; border-radius: 8px; border-color: var(--sd-line); background: var(--apple-pearl); color: var(--sd-ink);
  font-size: 14px; font-weight: 400; line-height: 1.3; box-shadow: none;
}
.shield-design[data-design="apple"] :is(.source-actions a, .source-links a, .source-strip a, .download-again, .text-link, .hub-back-link) { color: var(--apple-blue); }
.shield-design[data-design="apple"] :is(.chapter-filter, .filter-button, .module-tab, .category-tab, .chip) { border-radius: 9999px; min-height: 44px; font-size: 14px; font-weight: 400; }
.shield-design[data-design="apple"] :is(.chapter-filter, .filter-button, .module-tab, .category-tab, .chip)[aria-selected="true"] { border-color: var(--apple-focus); }
.shield-design[data-design="apple"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]), select, textarea) {
  border-color: #d2d2d7; border-radius: 8px; background: #fff; color: var(--sd-ink); min-height: 44px;
  font-size: 17px; font-weight: 400; line-height: 1.47; letter-spacing: -.374px;
}
.shield-design[data-design="apple"] input[type="search"] { border-radius: 9999px; padding: 12px 20px; }
.shield-design[data-design="apple"] :is(.icon-button, .zoom-tools button:not(.fit-button), .carousel-controls button) { border-radius: 50%; background: #d2d2d7; color: var(--sd-ink); }

/* 保留現有導覽按鈕，避免 React 及 P100 產生第二條黑色品牌列。 */
.shield-design[data-design="apple"]:is([data-shield-page="page-54"], [data-shield-page="page-55"]) .global-nav { background: transparent; color: var(--apple-blue); border: 0; }
.shield-design[data-design="apple"]:is([data-shield-page="page-54"], [data-shield-page="page-55"]) .global-nav :is(button, a) { color: inherit; font-weight: 400; }
.shield-design[data-design="apple"][data-shield-page="page-55"] .hero h1 { font-size: clamp(40px, 4.75vw, 56px); font-weight: 600; line-height: 1.18; letter-spacing: -.28px; }
.shield-design[data-design="apple"][data-shield-page="page-55"] :is(.cycle-intro__copy h2, .review-copy h2) { font-size: 40px; font-weight: 600; }
.shield-design[data-design="apple"][data-shield-page="page-74"] > .shield-tool-header { width: 100%; }
.shield-design[data-design="apple"][data-shield-page="page-74"] .heading .shield-original-title { font-size: 34px; }
.shield-design[data-design="apple"] .download-bar { background: rgba(245, 245, 247, .92); border-color: var(--sd-line); box-shadow: none; backdrop-filter: saturate(180%) blur(20px); }

/* 首頁內建退休與稅務工具使用同一組平面內容區塊。 */
.shield-design[data-design="apple"] .shield-related-cards { background: var(--sd-soft) !important; background-image: none !important; box-shadow: none !important; border-color: var(--sd-line); }
.shield-design[data-design="apple"] .shield-related-card { border-color: var(--sd-line); border-radius: 18px; box-shadow: none; color: var(--sd-ink); }
.shield-design[data-design="apple"] .shield-related-card:hover { border-color: var(--apple-blue); box-shadow: none; }
.shield-design[data-design="apple"] :is(.shield-related-cards__eyebrow, .shield-related-card__eyebrow, .shield-related-card__action) { color: var(--apple-blue); font-weight: 400; }
.shield-design[data-design="apple"] :is(.shield-related-cards__heading h2, .shield-related-card strong) { color: var(--sd-ink); font-weight: 600; }
.shield-design[data-design="apple"] :is(.shield-related-cards__heading p:last-child, .shield-related-card__description) { color: var(--sd-muted); }
.shield-design[data-design="apple"][data-shield-template="portal"] :is(.labor-intro-panel, .labor-derived-note, .labor-explain-band, .tax-calculator-layout, .inheritance-control-grid, .house-land-expense-help, .inheritance-single-count, .inheritance-relation-stepper) { background: var(--sd-soft); background-image: none; box-shadow: none; }
.shield-design[data-design="apple"][data-shield-template="portal"] :is(.tax-calculator-hero, .tax-result-hero, .inheritance-tool-intro) { background: var(--apple-dark); background-image: none; color: #fff; box-shadow: none; }
.shield-design[data-design="apple"][data-shield-template="portal"] :is(.tax-result-hero, .tax-calculator-hero, .inheritance-tool-intro) :is(h3, strong, p, span) { color: inherit; }
.shield-design[data-design="apple"][data-shield-template="portal"] :is(.inheritance-will-mode, .inheritance-law-mode) button.is-active,
.shield-design[data-design="apple"][data-shield-template="portal"] .inheritance-relation-card.is-active .inheritance-relation-toggle { background: var(--sd-soft); background-image: none; border-color: var(--apple-blue); color: var(--sd-ink); }
.shield-design[data-design="apple"][data-shield-template="portal"] :is(.tax-summary .is-total, .tax-bracket-note.is-gift, .tax-bracket-note.is-house-land) { background: var(--sd-soft); color: var(--sd-ink); }
.shield-design[data-design="apple"][data-shield-template="portal"] :is(.module-layer, .accident-flow li, .public-sector-overview, .dashboard-rank-card, .wpm-transcript-visual) { background: var(--sd-soft); background-image: none; box-shadow: none; border-color: var(--sd-line); }
.shield-design[data-design="apple"][data-shield-template="portal"] :is(.marketing-product-preview, .marketing-p100-preview, .wpm-video-visual) { background: var(--apple-dark); background-image: none; color: #fff; }
.shield-design[data-design="apple"][data-shield-template="portal"] :is(.labor-scenario.is-active, .labor-mini-grid button.is-active) { background: var(--sd-soft); border-color: var(--apple-blue); color: var(--apple-blue); box-shadow: none; }

/* 簡報保留固定控制列、翻頁與全螢幕，使用相同的黑列與工具列。 */
.shield-design[data-design="apple"][data-shield-template="deck"] { --nav-height: 112px; }
.shield-design[data-design="apple"][data-shield-template="deck"] .shield-compact-header {
  position: fixed; inset: 0 0 auto; z-index: 100; grid-template-columns: minmax(0, 1fr) auto auto auto auto;
  height: 112px; min-height: 112px; margin: 0; gap: 0 12px;
}
.shield-design[data-design="apple"][data-shield-template="deck"] .shield-compact-header .shield-identity { grid-column: 1 / -1; height: 44px; }
.shield-design[data-design="apple"][data-shield-template="deck"] .shield-compact-header .shield-tool-name { font-size: 21px; }
.shield-design[data-design="apple"][data-shield-template="deck"] .shield-return { grid-column: 2; margin-right: 0; padding-inline: 12px; font-size: 14px; }
.shield-design[data-design="apple"][data-shield-template="deck"] .brand-button,
.shield-design[data-design="apple"][data-shield-template="deck"] .shield-compact-header > .brand { display: inline-flex; grid-row: 2; grid-column: 3; font-size: 14px; font-weight: 400; color: var(--apple-blue); }
.shield-design[data-design="apple"][data-shield-template="deck"] :is(.chapter-dots, .nav-actions, .toolbar-right) { grid-row: 2; color: var(--sd-ink); }
.shield-design[data-design="apple"][data-shield-template="deck"] .chapter-dots { grid-column: 4; }
.shield-design[data-design="apple"][data-shield-template="deck"] .chapter-dot { position: relative; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.shield-design[data-design="apple"][data-shield-template="deck"] .chapter-dot::after { position: absolute; inset: auto; top: 19px; left: 19px; width: 6px; height: 6px; border-radius: 50%; background: #d2d2d7; }
.shield-design[data-design="apple"][data-shield-template="deck"] .chapter-dot.is-active { background: transparent; }
.shield-design[data-design="apple"][data-shield-template="deck"] .chapter-dot.is-active::after { background: var(--apple-blue); }
.shield-design[data-design="apple"][data-shield-template="deck"] .chapter-dots { gap: 0; }
.shield-design[data-design="apple"][data-shield-template="deck"] :is(.nav-actions, .toolbar-right) { grid-column: 5; }
.shield-design[data-design="apple"][data-shield-template="deck"] .nav-actions { padding-right: 24px; }
.shield-design[data-design="apple"][data-shield-template="deck"] .chapter-dot.is-active { background: var(--apple-blue); }
.shield-design[data-design="apple"][data-shield-template="deck"] .shield-original-title { font-family: var(--apple-display); font-size: 56px; font-weight: 600; line-height: 1.18; letter-spacing: -.28px; }
.shield-design[data-design="apple"][data-shield-template="deck"] .fullscreen-button { background: var(--apple-pearl); border-color: var(--sd-line); border-radius: 8px; color: var(--sd-ink); font-weight: 400; }

@media (max-width: 1068px) {
  .shield-design[data-design="apple"] .shield-header-meta .version-pill { display: none; }
  .shield-design[data-design="apple"] :is(.hero, .intro) .shield-original-title,
  .shield-design[data-design="apple"][data-shield-page="page-55"] .hero h1 { font-size: 40px; }
}
@media (max-width: 833px) {
  .shield-design[data-design="apple"] .shield-portal-header { flex-wrap: wrap; padding: 10px 20px; margin-bottom: 24px; }
  .shield-design[data-design="apple"] .shield-portal-header .device-recommendation { display: none; }
  .shield-design[data-design="apple"] .shield-tool-header { margin-bottom: 24px; }
  .shield-design[data-design="apple"] .shield-identity { padding-inline: 20px; }
  .shield-design[data-design="apple"] .shield-tool-header :is(h1, .shield-tool-name) { font-size: 21px; padding-left: 20px; }
  .shield-design[data-design="apple"] .shield-tool-header .shield-return { margin-right: 20px; font-size: 14px; }
  .shield-design[data-design="apple"] .shield-header-meta .version-pill { display: none; }
  .shield-design[data-design="apple"] :is(main.workspace, main.entrepreneur-workspace) { width: calc(100% - 40px); }
  .shield-design[data-design="apple"] :is(.hero, .intro, .entrepreneur-hero) { padding-block: 48px; }
  .shield-design[data-design="apple"][data-shield-template="deck"] { --nav-height: 148px; }
  .shield-design[data-design="apple"][data-shield-template="deck"] .shield-compact-header { grid-template-columns: minmax(0, 1fr) auto; height: 148px; min-height: 148px; }
  .shield-design[data-design="apple"][data-shield-template="deck"] .shield-compact-header .shield-identity { height: 44px; }
  .shield-design[data-design="apple"][data-shield-template="deck"] :is(.nav-actions, .toolbar-right) { grid-row: 3; grid-column: 2; padding: 0 20px 8px; justify-self: end; }
  .shield-design[data-design="apple"][data-shield-template="deck"] :is(.brand-button, .shield-compact-header > .brand) { grid-row: 3; grid-column: 1; margin-left: 20px; justify-self: start; }
  .shield-design[data-design="apple"][data-shield-template="deck"] .chapter-dots { display: none; }
}
@media (max-width: 640px) {
  .shield-design[data-design="apple"] :is(.task-heading h2, .layer-heading h2, .study-heading h2, .section-heading h2, .control-heading h2, .chapter-heading h2) { font-size: 28px; }
  .shield-design[data-design="apple"] :is(.hero, .intro) .shield-original-title,
  .shield-design[data-design="apple"][data-shield-page="page-55"] .hero h1,
  .shield-design[data-design="apple"][data-shield-template="deck"] .shield-original-title { font-size: 34px; }
  .shield-design[data-design="apple"] .shield-tool-header :is(h1, .shield-tool-name) { font-size: 20px; line-height: 1.3; }
  .shield-design[data-design="apple"] .shield-return { max-width: 140px; padding-inline: 10px; font-size: 13px; }
  .shield-design[data-design="apple"] .shield-local-toolbar { width: calc(100% - 40px); }
}
@media (max-width: 419px) {
  .shield-design[data-design="apple"] :is(.hero, .intro) .shield-original-title,
  .shield-design[data-design="apple"][data-shield-page="page-55"] .hero h1,
  .shield-design[data-design="apple"][data-shield-template="deck"] .shield-original-title { font-size: 28px; }
  .shield-design[data-design="apple"] .shield-identity span { font-size: 12px; }
  .shield-design[data-design="apple"] .shield-tool-header :is(h1, .shield-tool-name) { font-size: 19px; padding-right: 8px; }
}
@media print {
  .shield-design[data-design="apple"] .shield-tool-header,
  .shield-design[data-design="apple"] .shield-portal-header { display: none !important; }
  .shield-design[data-design="apple"][data-shield-template="deck"] { --nav-height: 0px; }
}

/* 2026-10-09：補齊工具主標題與內層內容卡片；資料圖形及來源圖卡沿用原樣。 */
body.shield-design[data-design="apple"] .shield-original-title {
  font-weight: 600;
  letter-spacing: -.28px;
}
body.shield-design[data-design="apple"] :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--apple-display);
  font-weight: 600;
  text-shadow: none;
}
body.shield-design[data-design="apple"] .marketing-product-title { text-shadow: none; }
body.shield-design[data-design="apple"] :is(
  .entrepreneur-article, .advantage-card, .gap-grid article,
  .guide-grid article, .filter-panel, .product-card, .compare-tray,
  .ranking-card, .table-shell, .notice, .hero-highlight, .reward-chip,
  .boarding-pass, .bonus-rate-grid article, .event-card,
  .logic-grid article, .metric-grid article, .question-grid article,
  .curve-section, .example-section, .sell-section, .sources, .boundary-section,
  .recognition-card, .phase, .comparison, .experience, .hero-summary,
  .page-switcher a, .editor, .inheritance-relation-card.is-active
) { box-shadow: none; }

/* 選取與鍵盤焦點沿用既有框線／輪廓，不以投影作為操作訊號。 */
body.shield-design[data-design="apple"] .event-card.is-selected { border-color: var(--apple-blue); }
body.shield-design[data-design="apple"] .inheritance-relation-card.is-active { border-color: var(--apple-blue); }
body.shield-design[data-design="apple"] .house-land-holding-grid label:has(input:checked) {
  border-color: var(--apple-blue);
  background: var(--sd-soft);
  box-shadow: 0 0 0 2px rgba(0, 102, 204, .12);
}

/* 活動頁的文字、捲動進度及偽元素背景回到單色；保留進度環與航線資料圖形。 */
body.shield-design[data-design="apple"][data-shield-page="page-30"] .gradient-text {
  background: none;
  color: var(--apple-dark-link);
  -webkit-text-fill-color: currentColor;
  text-shadow: none;
}
body.shield-design[data-design="apple"][data-shield-page="page-30"] .brand-event b {
  background: none;
  color: var(--apple-blue);
  -webkit-text-fill-color: currentColor;
}
body.shield-design[data-design="apple"]:is([data-shield-page="page-30"], [data-shield-page="page-31"]) .scroll-meter span {
  background: var(--apple-blue);
  box-shadow: none;
}
body.shield-design[data-design="apple"][data-shield-page="page-30"] .orbit-stage::before,
body.shield-design[data-design="apple"][data-shield-page="page-31"] .route-card::before { background-image: none; }
body.shield-design[data-design="apple"][data-shield-page="page-31"] .bonus-section::before { background: var(--sd-soft); }
body.shield-design[data-design="apple"][data-shield-page="page-31"] .calculator-section::before { background: var(--apple-dark); }
body.shield-design[data-design="apple"][data-shield-page="page-31"] .timeline::before { background: var(--apple-blue); }
body.shield-design[data-design="apple"][data-shield-page="page-50"] .home-board::after {
  background: var(--apple-blue);
  border-top-color: var(--sd-line);
}

/* 小元件採相同平面語彙；進度、國旗及資料圖表的意義與幾何不變。 */
body.shield-design[data-design="apple"] .closing-statement {
  background: var(--apple-dark);
  color: #fff;
}
body.shield-design[data-design="apple"] #progress-bar {
  background: var(--apple-blue);
}
body.shield-design[data-design="apple"] .ideal-combination-summary .ideal-combination-total {
  background: var(--sd-soft);
}
body.shield-design[data-design="apple"] :is(.question-grid blockquote, .infographic-preview) {
  box-shadow: none;
}
body.shield-design[data-design="apple"][data-shield-page="page-30"] :is(.scroll-progress span, .eyebrow span, .partner-index) {
  background: var(--apple-blue);
  box-shadow: none;
}
body.shield-design[data-design="apple"][data-shield-page="page-30"] :is(.number-25 > span, .reward-summary strong) {
  background: none;
  color: #fff;
  -webkit-text-fill-color: currentColor;
}
body.shield-design[data-design="apple"][data-shield-page="page-30"] :is(.orbit-stage i, .voyage-dot, .step-icon i, .step-icon i::after, .progress-fill, .spark) {
  box-shadow: none;
}
body.shield-design[data-design="apple"][data-shield-page="page-30"] .voyage-dot {
  background: var(--apple-blue);
  animation: none;
}
body.shield-design[data-design="apple"][data-shield-page="page-30"] :is(.aurora, .particle-canvas) {
  display: none;
}
body.shield-design[data-design="apple"][data-shield-page="page-30"] .hero-art {
  opacity: 1;
}
body.shield-design[data-design="apple"]:is([data-shield-page="page-30"], [data-shield-page="page-31"]) :is(.shield-local-toolbar a, .shield-local-toolbar button, .eyebrow) {
  color: var(--apple-dark-link);
}
body.shield-design[data-design="apple"][data-shield-page="page-31"] .gold-type {
  background: none;
  color: #fff;
  -webkit-text-fill-color: currentColor;
}
body.shield-design[data-design="apple"][data-shield-page="page-31"] .flag-mark {
  box-shadow: none;
}
body.shield-design[data-design="apple"][data-shield-page="page-31"] .scroll-cue i {
  background: var(--apple-dark-link);
}
body.shield-design[data-design="apple"][data-shield-page="page-50"] .benefit-icon {
  background: var(--sd-paper);
  color: var(--apple-blue);
  box-shadow: none;
}
body.shield-design[data-design="apple"][data-shield-page="page-50"] .benefit-copy strong {
  color: #fff;
  font-weight: 600;
  text-shadow: none;
}
body.shield-design[data-design="apple"][data-shield-page="page-50"] :is(.product-table, .interest-table, .waiver-table, .growth-table, .annuity-table) th {
  background: var(--apple-dark) !important;
  color: #fff !important;
}
body.shield-design[data-design="apple"] .shield-local-toolbar a { box-shadow: none; }
body.shield-design[data-design="apple"] .shield-tool-header .shield-return {
  color: var(--apple-blue);
  background: transparent;
  border: 0;
  border-radius: 9999px;
}
body.shield-design[data-design="apple"] .card-layer :is(h2, h3)[tabindex="-1"]:focus-visible {
  outline-color: var(--apple-focus);
}
body.shield-design[data-design="apple"]:is(
  [data-shield-page="page-30"], [data-shield-page="page-31"],
  [data-shield-page="page-38"], [data-shield-page="page-39"],
  [data-shield-page="page-41"], [data-shield-page="page-42"],
  [data-shield-page="page-47"], [data-shield-page="page-48"],
  [data-shield-page="page-69"]
) .hero :is(.secondary-button, .button-secondary, .btn-secondary, .button.secondary, .download-button.secondary) {
  color: var(--apple-dark-link);
  border-color: var(--apple-dark-link);
}
body.shield-design[data-design="apple"][data-shield-page="page-50"] :is(
  .installment-rate-band, .interest-rate-band, .waiver-rate-band,
  .growth-rate-band, .annuity-rate-band, .growth-summary-strip,
  .interest-feature-card, .waiver-feature-card, .annuity-feature-card,
  .simple-feature-grid article, .currency-chart-card, .currency-explain-card,
  .waiver-condition-card
) {
  background: var(--sd-soft);
  color: var(--sd-ink);
  box-shadow: none;
}
body.shield-design[data-design="apple"][data-shield-page="page-50"] .waiver-condition-card > span {
  background: var(--apple-dark);
  color: #fff;
}

/* 2026-10-09：補齊彈窗、短暫提示與輸入狀態的 Apple 樣式。 */
body.shield-design[data-design="apple"][data-shield-page="page-31"] :is(.modal, .result-panel) {
  --ink: var(--sd-ink);
  --muted: var(--sd-muted);
  color: var(--sd-ink);
}
body.shield-design[data-design="apple"][data-shield-page="page-31"] .modal-head {
  background: var(--apple-pearl);
  border-color: var(--sd-line);
}
body.shield-design[data-design="apple"][data-shield-page="page-31"] .modal :is(.section-kicker, .result-summary) {
  color: var(--sd-muted);
  font-weight: 400;
}
body.shield-design[data-design="apple"][data-shield-page="page-31"] .product-tools label span {
  font-weight: 400;
}
body.shield-design[data-design="apple"]:is([data-shield-page="page-30"], [data-shield-page="page-31"]) .toast {
  background: var(--apple-dark-alt);
  border-color: var(--sd-muted);
  color: #fff;
  box-shadow: none;
  text-shadow: none;
  font-weight: 400;
}
body.shield-design[data-design="apple"][data-shield-page="page-30"] .source-dialog {
  background: var(--apple-dark);
}
body.shield-design[data-design="apple"][data-shield-page="page-30"] .dialog-header {
  background: var(--apple-dark-alt);
}

/* 移除舊主題的輸入光圈；保留鍵盤可見的藍色焦點輪廓。 */
body.shield-design[data-design="apple"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), select, textarea):focus {
  border-color: var(--apple-focus);
  box-shadow: none;
}
body.shield-design[data-design="apple"] :is(input, select, textarea):focus-visible {
  outline: 2px solid var(--apple-focus);
  outline-offset: 3px;
}
body.shield-design[data-design="apple"] :is(.inheritance-estate-input, .tax-input-with-unit):focus-within {
  border-color: var(--apple-focus);
  box-shadow: none;
}
body.shield-design[data-design="apple"][data-shield-page="page-31"] .number-field:focus-within {
  border-color: var(--apple-focus);
  box-shadow: none;
}
body.shield-design[data-design="apple"][data-shield-template="workspace"] .quick-input-wrap:focus-within {
  outline-color: var(--apple-focus);
}
body.shield-design[data-design="apple"] .support-check-control input:focus-visible + span {
  outline: 2px solid var(--apple-focus);
  outline-offset: 3px;
  box-shadow: none;
}
body.shield-design[data-design="apple"][data-shield-page="page-31"] .performance-range {
  appearance: none;
  -webkit-appearance: none;
  accent-color: var(--apple-blue);
}
body.shield-design[data-design="apple"][data-shield-page="page-31"] .performance-range::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 99px;
  background: var(--apple-blue);
}
body.shield-design[data-design="apple"][data-shield-page="page-31"] .performance-range::-moz-range-track {
  height: 5px;
  border-radius: 99px;
  background: var(--apple-blue);
}
body.shield-design[data-design="apple"][data-shield-page="page-31"] .performance-range::-moz-range-progress {
  height: 5px;
  border-radius: 99px;
  background: var(--apple-blue);
}
body.shield-design[data-design="apple"][data-shield-page="page-31"] .performance-range::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border: 3px solid var(--apple-blue);
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
  -webkit-appearance: none;
}
body.shield-design[data-design="apple"][data-shield-page="page-31"] .performance-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid var(--apple-blue);
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
}
body.shield-design[data-design="apple"][data-shield-page="expense"] :is(.dialog-subtitle, .dialog-metric span, .dialog-source a) {
  font-weight: 400;
}
body.shield-design[data-design="apple"][data-shield-page="expense"] .dialog-source a {
  color: var(--apple-blue);
}

/* 局部欄名與分類文字只使用 400 或 600，不使用 500。 */
body.shield-design[data-design="apple"][data-shield-page="page-49"] .coverage-table tbody th {
  font-weight: 600;
}
body.shield-design[data-design="apple"][data-shield-page="page-58"] #page-19 .surgery-count > span,
body.shield-design[data-design="apple"][data-shield-page="page-61"] .metric-row th.metric,
body.shield-design[data-design="apple"][data-shield-page="page-66"] .category,
body.shield-design[data-design="apple"][data-shield-template="workspace"] :is(.promotion-table thead th, .performance-table thead th, .income-table thead th, .income-unknown) {
  font-weight: 400;
}
body.shield-design[data-design="apple"][data-shield-template="workspace"] :is(.promotion-table tbody th, .performance-table tbody th) {
  font-weight: 600;
}

/* 首頁：明暗表面、主題圖示與三組任務形成辨識，不增加導覽層。 */
body.shield-design[data-design="apple"][data-shield-template="portal"]:not(:has(.task-panel > .card-layer:not([hidden]))) .shield-portal-header {
  margin-bottom: 24px;
}
body.shield-design[data-design="apple"][data-shield-template="portal"]:not(:has(.task-panel > .card-layer:not([hidden]))) .task-panel {
  padding-top: 0;
}
body.shield-design[data-design="apple"][data-shield-template="portal"]:not(:has(.task-panel > .card-layer:not([hidden]))) .app-shell {
  min-height: 0;
}

body.shield-design[data-design="apple"][data-shield-template="portal"] .home-heading {
  align-items: center;
  margin-bottom: 24px;
  gap: 24px;
}
body.shield-design[data-design="apple"] .home-heading .eyebrow {
  color: var(--sd-muted);
  margin: 0 0 12px;
}
body.shield-design[data-design="apple"] .home-heading h2 {
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1.1;
}
body.shield-design[data-design="apple"] .home-intro {
  margin: 0;
  color: var(--sd-muted);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
}
body.shield-design[data-design="apple"] .primary-task-grid.nine-card-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
body.shield-design[data-design="apple"] .home-group-title {
  margin: 0 0 8px;
  color: var(--sd-ink);
  font-size: 17px;
  line-height: 1.47;
  font-weight: 600;
}
body.shield-design[data-design="apple"] .home-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
body.shield-design[data-design="apple"] .primary-task-grid .home-entry {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: start;
  align-content: start;
  gap: 20px;
  min-height: 164px;
  padding: 24px;
  border: 1px solid transparent;
  border-radius: 18px;
  color: var(--sd-ink);
  background: var(--sd-soft);
  box-shadow: none;
  text-align: left;
}
body.shield-design[data-design="apple"] .home-entry .home-card-icon {
  display: block;
  width: 40px;
  height: 40px;
  padding: 0;
  color: inherit;
}
body.shield-design[data-design="apple"] .home-card-icon svg { width: 100%; height: 100%; }
body.shield-design[data-design="apple"] .home-entry .home-card-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: inherit;
}
body.shield-design[data-design="apple"] .home-entry .task-kicker {
  color: var(--sd-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.43;
}
body.shield-design[data-design="apple"] .home-entry strong {
  display: block;
  min-height: 0;
  color: inherit;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.24;
}
body.shield-design[data-design="apple"] .home-entry .home-card-description {
  display: block;
  color: var(--sd-muted);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
}
body.shield-design[data-design="apple"] .home-entry::after {
  content: "→";
  position: absolute;
  top: auto;
  right: 24px;
  bottom: 12px;
  font-size: 21px;
  line-height: 1;
  color: var(--apple-blue);
}
body.shield-design[data-design="apple"] [data-home-tone="dark"] .home-entry {
  color: #fff;
  background: var(--apple-dark);
}
body.shield-design[data-design="apple"] [data-home-tone="dark"] .home-entry :is(.task-kicker, .home-card-description) { color: #ccc; }
body.shield-design[data-design="apple"] [data-home-tone="dark"] .home-entry::after { color: var(--apple-dark-link); }
body.shield-design[data-design="apple"] [data-home-tone="paper"] .home-entry {
  background: var(--sd-paper);
  border-color: var(--sd-line);
}
@media (max-width: 833px) and (min-width: 641px) {
  body.shield-design[data-design="apple"] .home-card-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body.shield-design[data-design="apple"][data-shield-template="portal"] .home-heading { align-items: start; flex-direction: column; gap: 16px; }
  body.shield-design[data-design="apple"] .home-heading h2 { font-size: 34px; }
  body.shield-design[data-design="apple"] .home-intro br { display: none; }
  body.shield-design[data-design="apple"] .home-card-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  body.shield-design[data-design="apple"] .primary-task-grid .home-entry { min-height: 164px; }
}
@media (max-width: 419px) {
  body.shield-design[data-design="apple"] .home-heading h2 { font-size: 28px; }
}

/* 文字規範覆蓋既有工具的局部字重；來源圖卡與 HTML 教材圖形保留。 */
@media screen {
body.shield-design[data-design="apple"] :is(
  a, button, dd, dt, em, figcaption, h1, h2, h3, h4, h5, h6,
  i, input, label, legend, li, mark, p, select, small, span, strong, b,
  summary, td, textarea, th, time
):not(:where(
  .growth-mark, .growth-mark *, .shield-mark, .shield-mark *,
  .preview-life-wheel, .preview-life-wheel *, .social-preview, .social-preview *,
  .policy-center, .policy-center *, .not-equal, .not-equal *,
  svg, svg *,
  .marketing-card-media, .marketing-card-media *
)),
body.shield-design[data-design="apple"] :is(
  .stage-mark, .company, .notice-icon, .status-line, .status-pill,
  .rank-badge, .event-number, .stage-number, .warning-icon, .card-number, .chart-summary
):not(:where(
  .growth-mark, .growth-mark *, .shield-mark, .shield-mark *,
  .preview-life-wheel, .preview-life-wheel *, .social-preview, .social-preview *,
  .policy-center, .policy-center *, .not-equal, .not-equal *,
  svg, svg *, .marketing-card-media, .marketing-card-media *
)) {
  font-family: var(--sd-font) !important;
  font-weight: 400 !important;
}
body.shield-design[data-design="apple"] :is(
  strong, b, th, dt, legend, mark,
  .chapter-number, .metric-value, .numeric-cell, .ratio-cell, .premium,
  .number.highest-value, .number.highest-recovery, .money, .wan,
  .step-number, .stage-number, .event-number, .card-number,
  .rank-badge, .table-rank, .rank-cell, .mdrt-count, .question-progress
):not(:where(
  .growth-mark, .growth-mark *, .shield-mark, .shield-mark *,
  .preview-life-wheel, .preview-life-wheel *, .social-preview, .social-preview *,
  .policy-center, .policy-center *, .not-equal, .not-equal *,
  svg, svg *,
  .marketing-card-media, .marketing-card-media *
)) { font-weight: 600 !important; }
body.shield-design[data-design="apple"] :is(strong, b, th, dt, legend, mark) :is(span, em, small):not(:where(
  .growth-mark, .growth-mark *, .shield-mark, .shield-mark *,
  .preview-life-wheel, .preview-life-wheel *, .social-preview, .social-preview *,
  .policy-center, .policy-center *, .not-equal, .not-equal *,
  svg, svg *, .marketing-card-media, .marketing-card-media *
)) {
  font-weight: inherit !important;
}
body.shield-design[data-design="apple"] :is(h1, h2, h3, h4, h5, h6):not(:where(
  .growth-mark, .growth-mark *, .shield-mark, .shield-mark *,
  .preview-life-wheel, .preview-life-wheel *, .social-preview, .social-preview *,
  .policy-center, .policy-center *, .not-equal, .not-equal *,
  svg, svg *, .marketing-card-media, .marketing-card-media *
)),
body.shield-design[data-design="apple"] :is(h1, h2, h3, h4, h5, h6) :is(span, em, strong, b):not(:where(
  .growth-mark, .growth-mark *, .shield-mark, .shield-mark *,
  .preview-life-wheel, .preview-life-wheel *, .social-preview, .social-preview *,
  .policy-center, .policy-center *, .not-equal, .not-equal *,
  svg, svg *, .marketing-card-media, .marketing-card-media *
)) {
  font-family: var(--apple-display) !important;
  font-weight: 600 !important;
}
body.shield-design[data-design="apple"] :is(.version-pill, .shield-kicker) { font-weight: 400 !important; }
body.shield-design[data-design="apple"] .download-card-button { font-weight: 400 !important; }
body.shield-design[data-design="apple"] .sub { font-size: 17px; line-height: 1.47; }
body.shield-design[data-design="apple"][data-shield-page="page-61"] .metric-row th.metric,
body.shield-design[data-design="apple"][data-shield-template="workspace"] :is(.promotion-table thead th, .performance-table thead th, .income-table thead th) {
  font-weight: 400 !important;
}
body.shield-design[data-design="apple"][data-shield-page="package"] .tier-detail {
  background: var(--sd-soft);
  border-color: var(--sd-line);
}
body.shield-design[data-design="apple"][data-shield-page="package"] :is(
  .ideal-combination-status, .ideal-combination-summary span,
  .ideal-company-heading span, .ideal-product-role, .tier-detail > div > span,
  .ranking-card-heading span, .upload-grid article > span
) { font-weight: 400 !important; }
}

/* 義大利頁面依實際表面設定文字，不讓深色頁的變數流入白色區塊。 */
body.shield-design[data-design="apple"][data-shield-page="page-31"] :is(
  .bonus-section, .section-reward, .timeline-section, .details-section,
  .bonus-controls, .bonus-rate-grid article, .timeline-item:not(.destination),
  .source-card, .result-panel, .modal, .rules-grid article
) {
  --ink: var(--sd-ink);
  --muted: var(--sd-muted);
  color: var(--sd-ink);
}
body.shield-design[data-design="apple"][data-shield-page="page-31"] :is(
  .hero, .route-card, .hero-facts > div, .boarding-pass, .bonus-output,
  .milestone-card, .calculator-section, .number-field,
  .timeline-item.destination, .products-card, .site-footer, .toast
) {
  --ink: #fff;
  --muted: #ccc;
  color: #fff;
}
body.shield-design[data-design="apple"][data-shield-page="page-31"] :is(.section-reward, .details-section)::before {
  background: var(--sd-soft);
}
body.shield-design[data-design="apple"][data-shield-page="page-31"] :is(.bonus-controls, .timeline-item:not(.destination), .rules-grid article) {
  background: var(--sd-paper);
  background-image: none;
  box-shadow: none;
}
body.shield-design[data-design="apple"][data-shield-page="page-31"] :is(.milestone-card > p, .milestone-card strong span, .timeline-item.destination time) {
  color: #fff;
}
body.shield-design[data-design="apple"][data-shield-page="page-31"] :is(
  .range-labels, .calculator-copy .field-hint, .calculator-note,
  .bonus-output-meta span, .bonus-output > small, .site-footer small, .hero-facts span
) { color: #ccc; }
body.shield-design[data-design="apple"][data-shield-page="page-31"] .historical-version a { color: var(--apple-blue); }

/* 裝飾光圈改回平面；資料表分隔線、國旗與數據圖形保留。 */
body.shield-design[data-design="apple"] :is(.hero, .entrepreneur-hero, .bonus-output, .result-panel)::before,
body.shield-design[data-design="apple"] :is(.hero, .entrepreneur-hero, .bonus-output, .result-panel)::after {
  box-shadow: none;
}
body.shield-design[data-design="apple"][data-shield-page="package"] .ideal-company-card {
  box-shadow: none;
}
body.shield-design[data-design="apple"][data-shield-page="page-30"] .icon-orbit i::before {
  box-shadow: none;
}
body.shield-design[data-design="apple"] :is(.status-dot, .privacy-dot) {
  box-shadow: none;
}
body.shield-design[data-design="apple"][data-shield-template="workspace"] :is(.person.selected, .person.search-match) {
  box-shadow: none;
  outline: 2px solid var(--apple-blue);
  outline-offset: 2px;
}
body.shield-design[data-design="apple"][data-shield-page="page-31"] .site-header :is(a, button),
body.shield-design[data-design="apple"][data-shield-page="page-31"] :is(.hero .eyebrow, .calculator-copy .section-kicker, .products-card .section-kicker) {
  color: var(--apple-dark-link);
}
body.shield-design[data-design="apple"][data-shield-page="page-31"] .boarding-pass span {
  color: #ccc;
}
body.shield-design[data-design="apple"][data-shield-page="page-31"] .bonus-calculator {
  background: var(--sd-paper);
  background-image: none;
  box-shadow: none;
}
body.shield-design[data-design="apple"][data-shield-page="page-31"] :is(.bonus-rate-grid article, .timeline-item:not(.destination)) {
  background: var(--sd-paper);
  box-shadow: none;
}

/* 較早的舊版模板映射不得把深色連結改回淺底用的藍色。 */
body.shield-design[data-design="apple"][data-shield-template] {
  --action-blue: var(--apple-blue);
  --focus-blue: var(--apple-focus);
  --link-blue-dark: var(--apple-dark-link);
}

/* Apple 複查：投資教材與行銷頁的局部文字對比。
   僅調整命名區塊；教材圖形的分類色、計算、列印色與資料保留。 */
@media screen {
body.shield-design[data-design="apple"][data-shield-page="page-38"] .method-grid article > span {
  color: var(--sd-muted);
}
body.shield-design[data-design="apple"][data-shield-page="page-39"] .flow > i {
  color: var(--sd-muted);
}
body.shield-design[data-design="apple"][data-shield-page="page-40"] .sources-section {
  color: #ccc;
  background: var(--apple-dark);
}
body.shield-design[data-design="apple"][data-shield-page="page-40"] .sources-section > div > span {
  color: #ccc;
}
body.shield-design[data-design="apple"][data-shield-page="page-40"] .sources-section .source-list a {
  color: var(--apple-dark-link);
}
body.shield-design[data-design="apple"][data-shield-page="page-41"] .stage-panels .stage-number {
  color: var(--sd-muted);
}
body.shield-design[data-design="apple"][data-shield-page="page-42"] :is(.step-number, .question-grid article > span) {
  color: var(--sd-muted);
}
body.shield-design[data-design="apple"][data-shield-page="page-42"] .stage-card :is(.stage-count span, h3, dd) {
  color: #fff;
}
body.shield-design[data-design="apple"][data-shield-page="page-42"] .stage-card :is(.stage-count small, .eyebrow, dt) {
  color: #ccc;
}
body.shield-design[data-design="apple"][data-shield-page="page-43"] :is(.hero-note .note-number, .method-grid article > span) {
  color: var(--sd-muted);
}
body.shield-design[data-design="apple"][data-shield-page="page-43"] .result-panel {
  background: var(--apple-dark);
  color: #fff;
}
body.shield-design[data-design="apple"][data-shield-page="page-43"] .result-actions .secondary-button {
  color: var(--apple-dark-link);
  border-color: var(--apple-dark-link);
}
body.shield-design[data-design="apple"][data-shield-page="page-44"] .draft-state {
  color: var(--sd-muted);
}
body.shield-design[data-design="apple"][data-shield-page="page-48"] :is(.life-map, .social-assets) .section-heading > .eyebrow {
  color: #ccc;
}
body.shield-design[data-design="apple"][data-shield-page="page-48"] .question-grid blockquote > span {
  color: var(--sd-muted);
}
body.shield-design[data-design="apple"][data-shield-page="page-53"] .account-slide-invest :is(.account-name, .account-stage > p),
body.shield-design[data-design="apple"][data-shield-page="page-53"] .slide-action .action-content > .eyebrow {
  color: #ccc;
}
/* 這兩張色塊是帳戶概念圖：保留圖形分類色，改深色字使標籤可讀。 */
body.shield-design[data-design="apple"][data-shield-page="page-53"] :is(.stack-card-cover, .stack-card-cash) :is(span, strong) {
  color: var(--sd-ink);
}
body.shield-design[data-design="apple"][data-shield-page="page-54"] .analysis-intro > p:first-child {
  color: #ccc;
}
body.shield-design[data-design="apple"][data-shield-page="page-55"] :is(.cycle-card--dark, .cycle-card--black) {
  --link-blue-dark: var(--apple-dark-link);
}
body.shield-design[data-design="apple"][data-shield-page="page-55"] :is(.cycle-card--dark, .cycle-card--black) :is(.cycle-card__number, .observable-actions > p, .skill-links > p) {
  color: var(--apple-dark-link);
}
body.shield-design[data-design="apple"][data-shield-page="page-56"] .coverage-card .coverage-number {
  color: var(--sd-muted);
}
/* 第三欄藍底費用情境須保留白字來源連結，不能套用淺底的藍字。 */
body.shield-design[data-design="apple"][data-shield-page="page-58"] .page .price-layout.three-tone > .price-item:nth-child(3) .price-source .text-link {
  color: var(--tone-link);
}
body.shield-design[data-design="apple"][data-shield-page="page-69"] .metric-card-primary :is(span, p) {
  color: var(--sd-muted);
}
body.shield-design[data-design="apple"][data-shield-page="page-69"] .metric-card-primary strong {
  color: var(--sd-ink);
}
body.shield-design[data-design="apple"][data-shield-page="page-69"] .section-dark .section-kicker {
  color: #ccc;
}
body.shield-design[data-design="apple"][data-shield-page="page-71"] .intro-subtitle {
  color: var(--sd-ink);
}
}

/* 局部 UI 對比修正：只調整已命名表面的文字與明暗 tokens，保留列印與原始圖形。 */
@media screen {
  /* 21：醫療前／中／後卡片為深色；健保查詢連結仍是淺底控件。 */
  body.shield-design[data-design="apple"][data-shield-page="page-21"] .stage-card {
    --ink: #fff;
    --muted: #ccc;
    color: #fff;
  }
  body.shield-design[data-design="apple"][data-shield-page="page-21"] .stage-card :is(h3, h4),
  body.shield-design[data-design="apple"][data-shield-page="page-21"] .stage-card .stage-columns li {
    color: #fff;
  }
  body.shield-design[data-design="apple"][data-shield-page="page-21"] .stage-card .stage-content > p:not(.stage-label),
  body.shield-design[data-design="apple"][data-shield-page="page-21"] .stage-card .stage-columns p {
    color: #ccc;
  }
  body.shield-design[data-design="apple"][data-shield-page="page-21"] .stage-card .stage-label {
    color: var(--apple-dark-link);
  }
  body.shield-design[data-design="apple"][data-shield-page="page-21"] .stage-card:nth-child(3) .stage-mark {
    background: var(--apple-blue);
  }
  body.shield-design[data-design="apple"][data-shield-page="page-21"] .stage-card .resource-link {
    color: var(--apple-blue);
  }

  /* 25 / 26：只覆蓋深色來源區；來源層級的淺底語意徽章保留。 */
  body.shield-design[data-design="apple"][data-shield-page="expense"] .methodology,
  body.shield-design[data-design="apple"][data-shield-page="care"] .source-section {
    --ink: #fff;
    --muted: #ccc;
    color: #fff;
  }
  body.shield-design[data-design="apple"][data-shield-page="expense"] .method-intro h2,
  body.shield-design[data-design="apple"][data-shield-page="care"] .source-heading h2 {
    color: #fff;
  }
  body.shield-design[data-design="apple"][data-shield-page="expense"] .method-intro .eyebrow,
  body.shield-design[data-design="apple"][data-shield-page="care"] .source-heading .eyebrow {
    color: var(--apple-dark-link);
  }
  body.shield-design[data-design="apple"][data-shield-page="expense"] .method-intro > p:last-child,
  body.shield-design[data-design="apple"][data-shield-page="expense"] .method-steps p,
  body.shield-design[data-design="apple"][data-shield-page="care"] .source-heading > p:last-child,
  body.shield-design[data-design="apple"][data-shield-page="care"] .source-cards p {
    color: #ccc;
  }

  /* 29：總價值摘要已改淺底，標籤與註解同步恢復深色。 */
  body.shield-design[data-design="apple"][data-shield-page="page-29"] .summary-card.primary {
    --ink: var(--sd-ink);
    --muted: var(--sd-muted);
  }
  body.shield-design[data-design="apple"][data-shield-page="page-29"] .summary-card.primary :is(span, small) {
    color: var(--sd-muted);
  }

  /* 30：深色齊航頁的章節標籤與步驟編號。aria-hidden 券圖示不覆蓋。 */
  body.shield-design[data-design="apple"][data-shield-page="page-30"] .section-kicker {
    color: var(--apple-dark-link);
  }
  body.shield-design[data-design="apple"][data-shield-page="page-30"] .step-no {
    color: #ccc;
  }

  /* 45：稅務結論為淺底；來源連結使用淺底操作藍。 */
  body.shield-design[data-design="apple"][data-shield-page="page-45"] .takeaway {
    --ink: var(--sd-ink);
    --muted: var(--sd-muted);
    color: var(--sd-ink);
  }
  body.shield-design[data-design="apple"][data-shield-page="page-45"] .takeaway h2 {
    color: var(--sd-ink);
  }
  body.shield-design[data-design="apple"][data-shield-page="page-45"] .takeaway-label {
    color: var(--sd-muted);
  }
  body.shield-design[data-design="apple"][data-shield-page="page-45"] .takeaway > a {
    --card-color: var(--apple-blue);
    --link-bg: var(--apple-pearl);
    color: var(--apple-blue);
    border-color: var(--sd-line);
  }
  body.shield-design[data-design="apple"][data-shield-page="page-45"] .takeaway > a span {
    color: inherit;
  }

  /* 47：下載按鈕為操作藍，舊版深色子文字需明確改為白色。 */
  body.shield-design[data-design="apple"][data-shield-page="page-47"] .download-button {
    --ink: #fff;
    --muted: #fff;
    color: #fff;
  }
  body.shield-design[data-design="apple"][data-shield-page="page-47"] .download-button :is(strong, small, b) {
    color: #fff;
  }
}
@media screen {
  body.shield-design[data-design="apple"][data-shield-page="page-42"] .stage-tabs button:not([aria-pressed="true"]) > span {
    color: var(--sd-muted);
  }
  body.shield-design[data-design="apple"][data-shield-page="page-56"] :is(.coverage-critical, .coverage-life) .coverage-number {
    color: #ccc;
  }
}

@media screen {
  body.shield-design[data-design="apple"][data-shield-page="page-42"] .stage-tabs button[aria-pressed="true"] > span {
    color: #fff;
  }
}

/* 2026-10-09 操作複查：補齊連結 CTA、正文、返回列及觸控範圍。 */
body.shield-design[data-design="apple"][data-shield-page="page-66"] a:is(.primary, .secondary) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 22px;
  border: 1px solid var(--apple-blue);
  border-radius: 9999px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.3;
  box-shadow: none;
}
body.shield-design[data-design="apple"][data-shield-page="page-66"] a.primary {
  background: var(--apple-blue);
  color: #fff;
}
body.shield-design[data-design="apple"][data-shield-page="page-66"] a.secondary {
  background: transparent;
  color: var(--apple-blue);
}
body.shield-design[data-design="apple"] .marketing-product-action > span {
  color: var(--apple-blue);
}

/* 一般說明採正文角色；欄名、來源註記與 caption 不一併放大。 */
body.shield-design[data-design="apple"][data-shield-page="page-66"] :is(.coach p, .closing-grid p),
body.shield-design[data-design="apple"][data-shield-page="page-18"] :is(
  .content-section > p, .quadrant-grid article p, .advantage-card p,
  .roadmap article p, .business-checklist li p
),
body.shield-design[data-design="apple"] .gap-grid p,
body.shield-design[data-design="apple"][data-shield-template="resource"] :is(.workflow-grid p, .download-intro),
body.shield-design[data-design="apple"] .marketing-grid .marketing-card-copy > span:not([class]) {
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -.374px;
}

body.shield-design[data-design="apple"] :is(.item-row-title, .clear-choice) {
  min-width: 44px;
  min-height: 44px;
  padding-block: 10px;
}
body.shield-design[data-design="apple"] .inheritance-relation-stepper {
  grid-template-columns: 44px minmax(46px, 1fr) 44px;
  min-height: 44px;
}
body.shield-design[data-design="apple"] .inheritance-relation-stepper button {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
}
body.shield-design[data-design="apple"] :is(.calculator-shell, .person) {
  box-shadow: none;
}
body.shield-design[data-design="apple"] .person.selected {
  border-color: var(--apple-blue);
  box-shadow: none;
}

@media screen {
  /* 投影片維持自己的固定控制列；一般長頁持續保留標題與返回動作。 */
  body.shield-design[data-design="apple"]:not([data-shield-template="deck"]) .shield-tool-header {
    position: sticky;
    top: 0;
    z-index: 40;
  }
  body.shield-design[data-design="apple"]:not([data-shield-template="deck"]) :is(section[id], article[id], main[id]) {
    scroll-margin-top: 112px;
  }
  body.shield-design[data-design="apple"][data-shield-template="portal"] .shield-portal-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 44px;
    min-height: 44px;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    padding-block: 0;
  }
  body.shield-design[data-design="apple"][data-shield-template="portal"] .brand-home {
    min-height: 44px;
    align-self: stretch;
    border-radius: 0;
  }
  body.shield-design[data-design="apple"][data-shield-template="portal"] .topbar-feedback-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  /* 嵌入工具隱藏自身 header，由外層同一條返回列承接操作。 */
  body.shield-design[data-design="apple"][data-shield-template="portal"] .card-layer > .layer-heading {
    position: sticky;
    top: 44px;
    z-index: 30;
    min-height: 52px;
    margin-bottom: 24px;
    padding: 4px 16px;
    align-items: center;
    background: var(--sd-soft);
    border-bottom: 1px solid var(--sd-line);
    gap: 12px;
  }
  body.shield-design[data-design="apple"][data-shield-template="portal"] .card-layer > .layer-heading :is(h2, h3) {
    margin: 0;
    font-size: 21px;
    line-height: 1.3;
  }
  body.shield-design[data-design="apple"][data-shield-template="portal"] .card-layer > .layer-heading .eyebrow {
    display: none;
  }
  body.shield-design[data-design="apple"][data-shield-template="portal"] section.card-layer {
    scroll-margin-top: 44px;
    min-height: calc(100vh - 44px);
    padding-top: 0;
    border-top: 0;
  }
}
@media (min-width: 834px) {
  body.shield-design[data-design="apple"] #marketingLayer > .marketing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
    gap: 24px;
  }
  body.shield-design[data-design="apple"] #marketingLayer .marketing-resource-card > .marketing-card-media {
    height: 180px;
  }
  body.shield-design[data-design="apple"] #marketingLayer .marketing-resource-card > .marketing-card-copy {
    padding: 24px;
  }
}
@media screen and (max-width: 833px) {
  body.shield-design[data-design="apple"][data-shield-template="portal"] .shield-portal-header {
    gap: 12px;
    padding-inline: 20px;
  }
  body.shield-design[data-design="apple"][data-shield-template="portal"] .shield-portal-header .version-pill {
    display: none;
  }
  body.shield-design[data-design="apple"][data-shield-template="portal"] .brand-title {
    flex-wrap: nowrap;
  }
  body.shield-design[data-design="apple"][data-shield-template="portal"] .topbar-meta,
  body.shield-design[data-design="apple"][data-shield-template="portal"] .topbar-links {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
  }
  body.shield-design[data-design="apple"][data-shield-template="portal"] .topbar-meta {
    width: auto;
    flex: 0 0 auto;
  }
  body.shield-design[data-design="apple"][data-shield-template="portal"] .card-layer > .layer-heading {
    flex-direction: row;
    padding-inline: 12px;
  }
  body.shield-design[data-design="apple"][data-shield-template="portal"] .card-layer > .layer-heading .layer-back {
    flex: 0 0 auto;
    max-width: 150px;
  }
  body.shield-design[data-design="apple"] .shield-identity {
    height: 44px;
    flex-wrap: nowrap;
  }
  body.shield-design[data-design="apple"] .shield-identity > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.shield-design[data-design="apple"] #marketingLayer > .marketing-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 全頁面操作守門：只擴大螢幕上的點擊盒，列印與 PDF 排版沿用原幾何。 */
@media screen {
  body.shield-design[data-design="apple"] button,
  body.shield-design[data-design="apple"] :is(
    input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([readonly]),
    select, textarea:not([readonly])
  ) {
    min-width: 44px !important;
    min-height: 44px !important;
  }
  body.shield-design[data-design="apple"] :is(
    input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([readonly]),
    select, textarea:not([readonly])
  ) {
    max-width: 100%;
    box-sizing: border-box;
  }
  /* checkbox／radio 保持小圖示，整個選項標籤承接 44px 觸控範圍。 */
  body.shield-design[data-design="apple"] label:has(input:is([type="checkbox"], [type="radio"])) {
    display: inline-flex;
    align-items: center;
    min-width: 44px !important;
    min-height: 44px !important;
  }
  body.shield-design[data-design="apple"] a.shield-back-link {
    display: inline-flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
  }
}

/* 內建退休工具的原生滑桿：保留軌道外觀，擴大可操作範圍。 */
@media screen {
  body.shield-design[data-design="apple"][data-shield-template="portal"] .labor-control-group input[type="range"] {
    min-height: 44px !important;
  }
}
