/* V4 seven-page decision UI styles, scoped to .v4-decisions (the shell host element).
   Derived from U frozen styles.css sha256 b5f2b0a4d6146ba71d556b2f77b3297d67b2dd5ec7fd5adee43326cdaedcd8ad: every selector prefixed;
   preview-only page chrome (banner, demo bar, workspace, page nav, reset) dropped;
   :root/body tokens moved onto .v4-decisions. Member, legal and global body styles are not touched. */
.v4-decisions { --page: #f5f2e9;
  --surface: #fffdf6;
  --ink: #3a3d3e;
  --soft: #4e5253;
  --muted: #686b6b;
  --line: rgba(61, 62, 61, .22);
  --fill: #efede5;
  --font: PMingLiU, "新細明體", "Songti TC", "Noto Serif TC", serif;
  color-scheme: light;
  scrollbar-color: #aaa79e var(--page); }
.v4-decisions * { box-sizing: border-box; }
.v4-decisions { margin: 0; background: var(--page); color: var(--ink); font: 17px/1.7 var(--font); }
.v4-decisions .preview-nav { display: flex; gap: 8px; padding: 12px 22px; border-bottom: 1px solid var(--line); }
.v4-decisions .preview-nav button { flex: 1; min-width: 0; padding: 8px 6px; font-size: 14px; }
.v4-decisions button, .v4-decisions input, .v4-decisions textarea, .v4-decisions select { font: inherit; color: inherit; }
.v4-decisions a { color: inherit; text-underline-offset: 4px; }
.v4-decisions ::selection { background: #dcd6c7; color: #292d2d; }
.v4-decisions button, .v4-decisions a, .v4-decisions input, .v4-decisions textarea, .v4-decisions select { -webkit-tap-highlight-color: transparent; }
.v4-decisions button:focus-visible, .v4-decisions a:focus-visible, .v4-decisions input:focus-visible, .v4-decisions textarea:focus-visible, .v4-decisions select:focus-visible { outline: 3px solid #686b6b; outline-offset: 4px; }
.v4-decisions button:not(.zj-v2 button) { min-height: 46px; border: 1px solid var(--line); border-radius: 11px; background: transparent; padding: 10px 16px; cursor: pointer; line-height: 1.55; white-space: normal; overflow-wrap: anywhere; }
.v4-decisions button:not(.zj-v2 button):hover { background: #eae7de; }
.v4-decisions button:not(.zj-v2 button):disabled { cursor: not-allowed; opacity: .48; }
.v4-decisions button.primary:not(.zj-v2 button) { background: #505657; color: var(--surface); border-color: #505657; }
.v4-decisions button.primary:not(.zj-v2 button):hover { background: #393e3f; }
.v4-decisions .phone { min-width: 0; width: 100%; max-width: 680px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; min-height: 820px; display: flex; flex-direction: column; }
.v4-decisions .phone > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 28px 18px; border-bottom: 1px solid var(--line); }
.v4-decisions .brand { font-size: 25px; letter-spacing: .12em; font-weight: 600; text-decoration: none; }
.v4-decisions .page-count { font: 13px/1.6 system-ui, sans-serif; color: var(--muted); }
.v4-decisions .screen { padding: 28px 28px 18px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.v4-decisions .screen > h1 { font-size: 28px; line-height: 1.42; letter-spacing: .02em; margin: 0 0 12px; font-weight: 600; }
.v4-decisions .screen > h2 { font-size: 21px; line-height: 1.5; margin: 28px 0 10px; }
.v4-decisions .screen > h3 { font-size: 18px; line-height: 1.5; margin: 24px 0 10px; }
.v4-decisions .screen > p { margin: 10px 0; }
.v4-decisions .lead { color: var(--soft); margin-bottom: 24px; }
.v4-decisions .meta, .v4-decisions .hint { font-size: 14px; line-height: 1.7; color: var(--muted); }
.v4-decisions .demo-label { font: 12px/1.6 system-ui, sans-serif; color: #62645f; margin: 0 0 22px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.v4-decisions .status { display: inline-block; font-size: 14px; line-height: 1.5; border: 1px solid var(--line); border-radius: 7px; padding: 4px 9px; background: var(--fill); }
.v4-decisions .panel { border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin: 20px 0; }
.v4-decisions .panel > h2, .v4-decisions .panel > h3 { font-size: 20px; line-height: 1.5; margin: 0 0 12px; }
.v4-decisions .panel > p { margin: 10px 0; }
.v4-decisions .panel > p:last-child { margin-bottom: 0; }
.v4-decisions .entry { padding: 24px 0; border-bottom: 1px solid var(--line); }
.v4-decisions .entry:first-child { border-top: 1px solid var(--line); }
.v4-decisions .entry h2, .v4-decisions .entry h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.5; }
.v4-decisions .entry p { font-size: 16px; color: var(--soft); margin: 8px 0; }
.v4-decisions .entry button { width: 100%; margin-top: 14px; text-align: left; display: flex; justify-content: space-between; gap: 16px; }
.v4-decisions .footer { position: static; padding: 20px 28px max(24px, env(safe-area-inset-bottom)); margin-top: auto; }
.v4-decisions .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.v4-decisions .actions button { flex: 1 1 100px; font-size: 17px; }
.v4-decisions .actions button.primary { flex: 2 1 170px; }
.v4-decisions .warning { font-size: 10.5px; line-height: 1.7; text-align: center; color: var(--muted); margin: 18px 0 0; }
.v4-decisions .full { width: 100%; }
.v4-decisions .field { display: block; margin: 24px 0; }
.v4-decisions .field > span, .v4-decisions .field > label { display: block; margin-bottom: 8px; font-size: 16px; }
.v4-decisions .field input:not([type="checkbox"]):not([type="radio"]), .v4-decisions .field textarea, .v4-decisions .field select { display: block; width: 100%; max-width: 100%; min-height: 48px; border: 1px solid #a7a79e; border-radius: 11px; background: transparent; padding: 12px; font: 17px/1.7 var(--font); caret-color: var(--ink); }
.v4-decisions .field textarea { min-height: 136px; resize: vertical; }
.v4-decisions .field textarea:read-only { background: #f2efe6; }
.v4-decisions .field input::placeholder, .v4-decisions .field textarea::placeholder { color: #686b6b; opacity: 1; }
.v4-decisions .field input[type="date"] { -webkit-appearance: none; appearance: none; min-width: 0; }
.v4-decisions .quote { font-size: 20px; line-height: 1.65; padding: 22px 0; border-block: 1px solid var(--line); margin: 20px 0; }
.v4-decisions .reading-section { padding: 24px 0; border-bottom: 1px solid var(--line); }
.v4-decisions .reading-section h2 { font-size: 21px; line-height: 1.5; margin: 0 0 12px; }
.v4-decisions .reading-section h3 { font-size: 18px; line-height: 1.5; margin: 18px 0 8px; }
.v4-decisions .reading-section p { font-size: 17px; margin: 12px 0; white-space: pre-line; }
.v4-decisions .compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.v4-decisions .compare > div + div { border-left: 1px solid var(--line); padding-left: 20px; }
.v4-decisions ul { padding-left: 22px; }
.v4-decisions li { margin: 8px 0; }
.v4-decisions .checklist { padding: 0; list-style: none; }
.v4-decisions .checklist label { display: flex; align-items: flex-start; gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.v4-decisions input[type="checkbox"], .v4-decisions input[type="radio"] { accent-color: #505657; width: 20px; height: 20px; flex-shrink: 0; margin: 5px 0 0; }
.v4-decisions .choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.v4-decisions .choice-row button { flex: 1 1 120px; min-width: 0; font-size: 16px; }
.v4-decisions .choice-row button[aria-pressed="true"], .v4-decisions .topic-options button[aria-pressed="true"] { background: #e8e6dd; border-color: #656a68; }
.v4-decisions .topic-options { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 24px 0; }
.v4-decisions .topic-options button { text-align: left; min-height: 58px; font-size: 20px; }
.v4-decisions .sleep-checkin:not(.zj-v2 .sleep-checkin) { display: grid; gap: 12px; margin: 24px 0; }
.v4-decisions .sleep-checkin > button:not(.zj-v2 button) { min-height: 52px; text-align: left; }
.v4-decisions .timeline { margin: 26px 0; }
.v4-decisions .timeline article { border-left: 1px solid #b3b0a5; padding: 0 0 28px 20px; margin-left: 4px; }
.v4-decisions .timeline article:last-child { padding-bottom: 0; }
.v4-decisions .timeline h3 { font-size: 18px; line-height: 1.5; margin: 0 0 8px; }
.v4-decisions .timeline p { font-size: 16px; margin: 8px 0; white-space: pre-line; }
.v4-decisions .timeline time { display: block; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.v4-decisions .segmented { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 24px 0 12px; border-bottom: 1px solid var(--line); }
.v4-decisions .segmented button { border: 0; border-radius: 0; padding: 8px 0; font-size: 16px; }
.v4-decisions .segmented button[aria-pressed="true"] { border-bottom: 2px solid var(--ink); }
.v4-decisions .empty { padding: 32px 12px; text-align: center; color: var(--muted); }
.v4-decisions .notice { font-size: 15px; border: 1px solid var(--line); padding: 12px 14px; border-radius: 10px; margin: 16px 0; }
.v4-decisions .error { color: #884b44; }
.v4-decisions .success { color: #465a49; }
.v4-decisions .method { margin-top: 26px; font-size: 14px; color: var(--muted); }
.v4-decisions summary { cursor: pointer; min-height: 44px; display: list-item; padding: 10px 0; }
.v4-decisions .source-text { overflow-wrap: anywhere; }
.v4-decisions .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.v4-decisions .stats { display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: center; gap: 24px; margin: 26px 0; }
.v4-decisions .pie { width: 160px; height: 160px; border-radius: 50%; background: conic-gradient(#505657 0 50%, #9d9f97 50% 75%, #ddd8cb 75% 100%); }
.v4-decisions .stats ul { padding: 0; list-style: none; margin: 0; }
.v4-decisions .stats li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.v4-decisions .stats .swatch { display: inline-block; width: 10px; height: 10px; margin-right: 8px; }
.v4-decisions hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
@media (max-width: 740px) {
  .v4-decisions .phone { border: 0; border-radius: 0; min-height: calc(100dvh - 110px); }
  .v4-decisions .phone > header { padding: 20px 22px 16px; }
  .v4-decisions .screen { padding: 26px 22px 16px; }
  .v4-decisions .footer { padding: 20px 22px max(24px, env(safe-area-inset-bottom)); }
  .v4-decisions .panel { padding: 17px; }
  .v4-decisions .compare { grid-template-columns: 1fr; gap: 16px; }
  .v4-decisions .compare > div + div { border-left: 0; border-top: 1px solid var(--line); padding: 16px 0 0; }
  .v4-decisions .stats { grid-template-columns: 1fr; justify-items: start; }
  .v4-decisions .stats ul { width: 100%; }
}
/* Shell integration: the shell already draws the phone frame, brand header and footer warning. */
.v4-decisions .phone { border: 0; border-radius: 0; min-height: 0; background: transparent; }
.v4-decisions .phone > header { display: none; }
.v4-decisions .screen { padding: 0; }
.v4-decisions .footer { padding: 20px 0 max(24px, env(safe-area-inset-bottom)); }
.v4-decisions .field input:not([type="checkbox"]):not([type="radio"]), .v4-decisions .field textarea { font-size: max(16px, 1em); }
.v4-decisions { background: transparent; }

/* Record previews stay recognizable; full text remains in the original-question page. */
.v4-decisions .record-question-title { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; overflow-wrap:anywhere; }
.v4-decisions .reading-section--group { padding:20px 0; }
.v4-decisions .reading-section--inner { border:0; padding:0; margin:12px 0 0; }
.v4-decisions .reading-section--inner .reading-section--inner { margin-top:12px; }
.v4-decisions .reading-section--inner h3 { margin:16px 0 8px; }
