@charset "UTF-8";

:root {
  --accent:#245849; --accent-strong:#173e32; --accent-soft:#e7eee9; --accent-wash:#f2f6f3;
  --page:#eeede9; --surface:#fff; --ink:#272a28; --muted:#697066; --subtle:#747a70;
  --border:#e1e3dc; --panel:#f6f7f3; --danger:#a14f33; --danger-bg:#fff5ee;
  font-family:"Segoe UI","Microsoft YaHei","PingFang SC",sans-serif;
  font-size:14px; font-synthesis:none; color:var(--ink); background:var(--page);
}
body[data-theme="ocean"] { --accent:#245f94; --accent-strong:#17466d; --accent-soft:#e4edf5; --accent-wash:#f2f6fa; }
body[data-theme="sunset"] { --accent:#a6532c; --accent-strong:#7d3b1c; --accent-soft:#f6e9df; --accent-wash:#faf5f0; }
body[data-theme="violet"] { --accent:#785198; --accent-strong:#593773; --accent-soft:#eee7f3; --accent-wash:#f7f4fa; }
/* Dark mode keeps the visitor accent but moves the surrounding surfaces into
   a restrained, low-glare palette. SVG product art remains self-contained. */
body[data-color-mode="dark"] {
  --page:#151916; --surface:#202521; --ink:#e8eee8; --muted:#aab5aa; --subtle:#879187;
  --border:#38423a; --panel:#29322b; --danger:#e0a083; --danger-bg:#35251f;
  --accent:#79ad8f; --accent-strong:#9bc7ab; --accent-soft:#294137; --accent-wash:#25332b;
  color-scheme:dark;
}
body[data-color-mode="dark"][data-theme="ocean"] { --accent:#80b2d9; --accent-strong:#a6cbed; --accent-soft:#263c4d; --accent-wash:#202f3b; }
body[data-color-mode="dark"][data-theme="sunset"] { --accent:#dfa078; --accent-strong:#f1bc98; --accent-soft:#493126; --accent-wash:#38291f; }
body[data-color-mode="dark"][data-theme="violet"] { --accent:#c3a3d7; --accent-strong:#d7bee7; --accent-soft:#3d3049; --accent-wash:#30283a; }
* { box-sizing:border-box; }
body { --phone-height:clamp(590px,calc(100dvh - 112px),790px); --phone-width:clamp(350px,calc(var(--phone-height) / 1.91),384px); margin:0; min-height:100vh; color:var(--ink); background:var(--page); }
button,select,input { font:inherit; }
button,select,summary { cursor:pointer; }
button,a,select,label { -webkit-tap-highlight-color:transparent; }
button { transition:background-color 240ms ease,color 240ms ease,border-color 240ms ease,box-shadow 240ms ease,opacity 240ms ease; }
button:disabled { cursor:not-allowed; opacity:.42; }
button:focus-visible,a:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
[hidden] { display:none!important; }
.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; }
summary { list-style:none; }
summary::-webkit-details-marker { display:none; }
.eyebrow { display:block; margin:0 0 7px; font-size:11px; color:var(--muted); }

/* The application frame stays neutral while each visitor has one accent. */
.site-header { height:56px; padding:0 max(28px,calc((100vw - 1180px) / 2)); display:flex; align-items:center; justify-content:space-between; gap:20px; border-bottom:1px solid var(--border); background:var(--surface); transition:background-color 260ms ease,border-color 260ms ease,color 260ms ease; }
.brand { display:flex; align-items:center; gap:17px; min-width:0; color:var(--ink); text-decoration:none; }
.brand strong { font-size:22px; font-weight:650; letter-spacing:1px; line-height:1; }
.brand>span { padding-left:17px; border-left:1px solid #d5d8d0; font-size:12px; color:var(--muted); white-space:nowrap; }
.header-right { display:flex; align-items:center; gap:25px; }
.environment-badge { border:0; background:transparent; padding:7px 0; color:var(--muted); font-size:12px; white-space:nowrap; }
.environment-badge>span { margin-left:5px; }
.environment-badge:hover { color:var(--ink); }
.theme-toggle { display:inline-flex; align-items:center; gap:5px; padding:6px 8px; border:1px solid var(--border); border-radius:999px; color:var(--muted); background:transparent; font-size:11px; white-space:nowrap; }
.theme-toggle:hover { color:var(--ink); background:var(--panel); border-color:var(--accent); }
.theme-toggle-icon { width:13px; text-align:center; font-size:15px; line-height:1; }
.viewer-profile { display:flex; align-items:center; gap:9px; min-width:95px; }
.viewer-avatar { display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:var(--accent); color:#fff; font-size:12px; }
.viewer-profile strong { display:block; font-size:12px; font-weight:600; line-height:1.3; }
.viewer-profile div>span { display:block; margin-top:3px; font-size:10px; color:var(--muted); white-space:nowrap; }
.workspace { display:grid; grid-template-columns:var(--phone-width) 420px; justify-content:center; align-items:start; gap:40px; max-width:1090px; padding:16px 24px 12px; margin:0 auto; }
.client-column { width:var(--phone-width); max-width:100%; min-width:0; }

/* Neither the hardware nor its measurable review viewport is transformed. */
#phone-shell { position:relative; display:flex; flex-direction:column; width:100%; height:var(--phone-height); padding:14px 8px; border:1px solid #3a3d3a; border-radius:32px; overflow:hidden; background:#252825; box-shadow:0 13px 28px #20251c1a,0 2px 3px #20251c26,inset 0 0 0 2px #3a3d39; }
.phone-hardware { position:absolute; top:4px; left:calc(50% - 22px); width:44px; height:4px; }
.phone-status { display:flex; align-items:center; justify-content:space-between; height:var(--status-height); padding:0 14px; color:var(--ink); }
.phone-time { font-size:9px; font-weight:600; letter-spacing:.2px; }
.phone-speaker { display:block; width:100%; height:100%; border-radius:5px; background:#111511; }
.phone-signals { display:flex; align-items:center; gap:5px; }
.phone-signals i { width:10px; height:7px; background:repeating-linear-gradient(90deg,currentColor 0 2px,transparent 2px 4px); clip-path:polygon(0 75%,35% 75%,35% 40%,68% 40%,68% 0,100% 0,100% 100%,0 100%); }
.phone-signals b { position:relative; width:13px; height:7px; border:1px solid currentColor; border-radius:2px; }
.phone-signals b::before { content:""; position:absolute; inset:1px; background:currentColor; }
.phone-signals b::after { content:""; position:absolute; top:1px; right:-3px; width:2px; height:3px; background:currentColor; }
#phone-screen { --status-height:22px; --homebar-height:18px; position:relative; isolation:isolate; flex:1 1 0; min-height:0; width:100%; overflow:hidden; border-radius:19px; background:var(--surface); container-type:inline-size; }
#phone-screen>main { position:absolute; inset:var(--status-height) 0 var(--homebar-height); width:100%; height:calc(100% - var(--status-height) - var(--homebar-height)); min-height:0; max-width:none; margin:0; background:var(--surface); }
#phone-screen>main[hidden] { display:none!important; }
.phone-homebar { position:absolute; inset:auto 0 0; height:var(--homebar-height); display:grid; place-items:center; color:var(--ink); background:var(--surface); }
.phone-homebar span { width:76px; height:3px; border-radius:3px; background:currentColor; opacity:.55; }
body[data-screen="reviews"] .phone-homebar { background:var(--panel); }
body.is-transitioning #phone-screen { pointer-events:none; }
.page-signature {
  position:fixed; left:var(--content-center,50%); bottom:10px; z-index:4; margin:0; transform:translateX(-50%);
  color:var(--subtle); font-size:10px; line-height:14px; letter-spacing:.18em;
  text-align:center; text-indent:.09em; opacity:.72; pointer-events:none; user-select:none;
  transition:color 260ms ease, opacity 260ms ease;
}
.page-signature a { color:inherit; text-decoration:none; pointer-events:auto; letter-spacing:normal; }
.page-signature a:hover { color:var(--accent); text-decoration:underline; }

/* Product detail: navigation, product, specifications, then the reading entry. */
#product-screen { display:flex; flex-direction:column; overflow:hidden; }
.product-intro { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; flex:0 0 43px; padding:0 15px; border-bottom:1px solid var(--border); }
.product-intro h1 { margin:0; font-size:14px; font-weight:600; }
.shop-name { font-size:13px; font-weight:600; color:var(--accent); }
.product-nav-label { font-size:10px; color:var(--muted); text-align:right; }
.product-detail { flex:1 1 0; min-height:0; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#c8cec3 transparent; }
.product-art { display:grid; place-items:center; width:100%; height:clamp(210px,calc(var(--phone-height) * .335),265px); background:#eeefe9; overflow:hidden; }
#last-result:not([hidden]) + .product-detail .product-art { height:clamp(160px,calc(var(--phone-height) * .27),220px); }
.product-art>svg,.product-visual { display:block; width:100%; height:100%; }
.product-copy { padding:16px 17px 17px; }
.product-price { display:flex; align-items:baseline; gap:1px; color:var(--accent); font-size:28px; line-height:1; font-weight:650; font-variant-numeric:tabular-nums; letter-spacing:-.5px; }
.product-price>span { font-size:15px; font-weight:500; }
.product-price>.currency { font-size:17px; margin-right:3px; }
.product-copy h2 { margin:11px 0 7px; font-size:19px; font-weight:600; line-height:1.4; }
.product-description { margin:0; font-size:12px; line-height:1.7; color:var(--muted); }
.specs { display:grid; grid-template-columns:1.1fr .8fr 1fr; gap:12px; margin:15px 0 0; padding:13px 0 0; border-top:1px solid var(--border); }
.specs dt { margin-bottom:5px; font-size:10px; color:var(--muted); }
.specs dd { display:flex; align-items:center; gap:5px; margin:0; font-size:11px; }
.color-swatch { width:9px; height:9px; border:1px solid #62735d; border-radius:2px; background:#75826a; }
.product-action { flex:0 0 auto; padding:13px 16px 14px; border-top:1px solid var(--border); background:#fff; }
.review-entry-info { display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:12px; }
.review-entry-info strong { font-size:12px; font-weight:600; }
.review-entry-info strong>span { margin-left:5px; color:var(--muted); font-weight:400; font-variant-numeric:tabular-nums; }
.review-entry-info>span { font-size:10px; color:var(--muted); }
.primary-button { display:flex; align-items:center; justify-content:space-between; width:100%; min-height:43px; padding:11px 15px; border:1px solid var(--accent); border-radius:5px; background:var(--accent); color:#fff; font-size:13px; font-weight:500; }
.primary-button>span:last-child { font-size:18px; line-height:1; }
.primary-button:hover:not(:disabled) { background:var(--accent-strong); border-color:var(--accent-strong); }
.last-result { flex:0 0 auto; background:var(--accent-wash); border-bottom:1px solid var(--border); }
.last-result>summary { display:flex; align-items:center; gap:7px; padding:10px 14px; font-size:10px; color:var(--accent); }
.result-check { font-size:12px; flex-shrink:0; }
.result-expand { margin-left:auto; }
.last-result-body { max-height:140px; overflow-y:auto; padding:0 14px 12px; font-size:11px; line-height:1.8; color:var(--muted); }
.last-result-body p { margin:5px 0 10px; }
.result-table { width:100%; border-collapse:collapse; font-size:10px; font-variant-numeric:tabular-nums; }
.result-table th,.result-table td { padding:5px 3px; text-align:left; border-bottom:1px solid var(--border); }
.result-table th { font-weight:500; color:var(--ink); }

/* Eight equal-height rows. No card gap, external margin, or row transform. */
#reviews-screen { display:grid; grid-template-rows:42px minmax(0,1fr) auto; overflow:hidden; }
.review-page-header { display:flex; align-items:center; gap:11px; min-width:0; padding:0 12px; border-bottom:1px solid var(--border); }
.back-button { display:flex; align-items:center; gap:4px; flex-shrink:0; padding:6px 0; border:0; background:none; color:var(--muted); font-size:11px; }
.back-button>span { font-size:25px; line-height:16px; }
.review-product-summary { min-width:0; }
.review-product-summary strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; font-weight:500; }
.review-header-actions { display:flex; align-items:center; margin-left:auto; flex-shrink:0; }
.reading-status { display:none; }
.outline-button { padding:5px 0 5px 5px; border:0; background:transparent; color:var(--accent); font-size:10px; }
.outline-button>span { margin-left:2px; }
.reading-layout { display:grid; grid-template-columns:minmax(0,1fr); min-height:0; }
.comment-panel { display:flex; flex-direction:column; min-height:0; overflow:hidden; background:#fff; }
.comment-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; flex:0 0 42px; padding:0 13px; }
.comment-heading h1 { margin:0; font-size:16px; font-weight:600; line-height:1.4; }
.comment-heading h1>span { margin-left:3px; color:var(--muted); font-size:11px; font-weight:400; vertical-align:middle; }
.weight-heading { font-size:10px; color:var(--muted); }
.review-controls { display:flex; align-items:center; justify-content:space-between; flex:0 0 34px; gap:8px; padding:0 12px 8px; border-bottom:1px solid var(--border); }
.filter-group { display:flex; align-items:center; gap:3px; min-width:0; }
.filter { padding:4px 8px; border:0; border-radius:3px; color:var(--muted); background:transparent; font-size:11px; white-space:nowrap; }
.filter:hover:not(:disabled) { background:var(--panel); }
.filter.active { background:var(--accent-soft); color:var(--accent); font-weight:600; }
.sort-label select { max-width:78px; padding:3px 0; border:0; color:var(--muted); background:transparent; font-size:10px; }
.review-stage { display:grid; grid-template-columns:minmax(0,1fr) 29px; flex:1 1 0; min-height:0; }
.review-viewport { height:100%; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#c5cebf transparent; scroll-snap-type:y mandatory; scroll-padding:0; }
.reviews { padding:0; margin:0; }
.review-card { height:var(--row-height,50px); min-height:var(--row-height,50px); max-height:var(--row-height,50px); margin:0; padding:0; border-bottom:1px solid var(--border); overflow:hidden; scroll-snap-align:start; scroll-snap-stop:always; }
.review-open { display:grid; grid-template-columns:21px minmax(0,1fr) 8px; align-items:center; gap:8px; width:100%; height:100%; padding:3px 10px; border:0; border-radius:0; background:transparent; color:var(--ink); text-align:left; overflow:hidden; }
.review-open:hover { background:var(--panel); }
.review-open:focus-visible { outline-offset:-3px; }
.avatar { display:grid; place-items:center; width:21px; height:21px; border-radius:50%; background:#e9ece5; color:var(--muted); font-size:10px; }
.row-copy { min-width:0; overflow:hidden; }
.review-topline { display:flex; align-items:center; gap:7px; min-width:0; line-height:15px; }
.review-author { max-width:48%; font-size:11px; font-weight:500; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.topic-badge { color:var(--subtle); font-size:10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.review-text { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:1; overflow:hidden; overflow-wrap:anywhere; margin:2px 0 0; font-size:13px; line-height:18px; color:var(--ink); }
.review-viewport[data-summary-lines="2"] .review-text { -webkit-line-clamp:2; }
.open-arrow { color:var(--subtle); font-size:15px; }
.weight-ruler { display:grid; grid-template-rows:repeat(8,minmax(0,1fr)); height:100%; min-height:0; border-left:1px solid var(--border); background:var(--accent-wash); }
.weight-slot { position:relative; display:grid; place-items:center; border-bottom:1px solid var(--border); color:var(--accent); font-variant-numeric:tabular-nums; }
.weight-slot:last-child { border-bottom:0; }
.weight-slot::before { content:""; position:absolute; inset:0; background:var(--accent); opacity:calc(var(--weight-opacity,.1) * .5); pointer-events:none; }
.weight-slot strong { position:relative; font-size:13px; font-weight:600; }
.review-footer { display:flex; align-items:center; justify-content:space-between; gap:8px; flex:0 0 30px; padding:0 10px; border-top:1px solid var(--border); font-size:10px; color:var(--muted); }
.pagination { display:flex; align-items:center; gap:6px; }
.pagination button { display:grid; place-items:center; width:23px; height:23px; padding:0; border:1px solid var(--border); border-radius:3px; background:#fff; color:var(--muted); font-size:13px; }
.pagination span { min-width:45px; text-align:center; font-size:10px; font-variant-numeric:tabular-nums; }
.decision-bar { padding:11px 12px 12px; border-top:1px solid var(--border); background:var(--panel); }
.decision-copy { margin-bottom:9px; }
.decision-copy strong { font-size:11px; line-height:1.4; font-weight:500; color:var(--muted); }
.outcome-buttons { display:flex; gap:6px; }
.outcome-buttons button { flex:1 1 0; min-width:0; min-height:34px; padding:8px 3px; border:1px solid #d9dfd1; border-radius:4px; background:#fff; color:#636b5c; font-size:11px; line-height:1.25; white-space:nowrap; }
.outcome-buttons button:hover:not(:disabled) { background:#edf1e7; }
.outcome-buttons .purchase-button { background:var(--accent); border-color:var(--accent); color:#fff; }
.outcome-buttons .purchase-button:hover:not(:disabled) { background:var(--accent-strong); }
.purchase-button>span { margin-right:1px; }
.empty-state { display:flex; align-items:center; justify-content:center; min-height:120px; padding:20px; font-size:13px; color:var(--muted); }

/* The outside desk uses rules and numeric columns, with optional detail folded. */
#research-panel,#research-panel.mobile-open { display:flex; flex-direction:column; position:static; width:420px; height:var(--phone-height); max-width:100%; min-height:0; border:1px solid #d9ddd1; border-radius:7px; overflow:hidden; background:#fff; box-shadow:0 2px 4px #30382605; scroll-margin-top:16px; }
.research-heading { display:flex; align-items:center; justify-content:space-between; gap:15px; flex:0 0 56px; padding:0 21px; border-bottom:1px solid var(--border); }
.research-heading h2 { margin:0; font-size:17px; font-weight:600; }
.research-heading-actions { display:flex; align-items:center; flex-shrink:0; }
.stop-reading { display:flex; align-items:center; justify-content:center; gap:6px; min-height:30px; min-width:62px; padding:5px 10px; border:1px solid #cad2bf; border-radius:4px; color:#69755c; background:#fff; font-size:11px; font-weight:500; }
.stop-reading>span { font-size:8px; }
.stop-reading:hover:not(:disabled) { background:var(--panel); border-color:#9eaa90; }
.round-progress { flex:0 0 auto; margin:0 21px; padding:17px 0 13px; border-bottom:1px solid var(--border); }
.round-progress-heading { display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
#round-progress-label { font-size:12px; font-weight:600; font-variant-numeric:tabular-nums; }
.round-size-label { color:var(--muted); font-size:10px; }
.round-step-list { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:5px; padding:0; margin:12px 0 0; list-style:none; min-height:34px; }
.round-step { display:flex; align-items:center; gap:5px; min-width:0; padding:0 0 8px; border-bottom:2px solid #e7eadf; color:var(--subtle); }
.step-avatar { font-size:11px; line-height:1.5; font-variant-numeric:tabular-nums; }
.step-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:10px; line-height:1.5; }
.round-step[data-status="current"] { border-color:var(--accent); color:var(--accent); font-weight:600; }
.round-step[data-status="complete"] { color:var(--muted); border-color:#abb6a0; }
.round-strategy-label { margin:8px 0 0; font-size:11px; color:var(--muted); line-height:1.5; }
.research-scroll { flex:1 1 0; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#cbd2c2 transparent; }
.setup-panel { border-bottom:1px solid var(--border); }
.setup-panel>summary { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:13px 21px; font-size:12px; color:var(--ink); }
.setup-panel>summary>span:last-child { color:var(--accent); font-size:11px; }
.setup-panel summary b { margin-left:8px; font-weight:400; }
.setup-panel[open]>summary { background:var(--panel); }
.setup-body { padding:0 21px 16px; }
.setup-body>p { margin:7px 0 10px; font-size:12px; line-height:1.8; color:var(--muted); }
.strategy-options { display:flex; flex-direction:column; gap:0; }
.strategy-choice { position:relative; display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid var(--border); cursor:pointer; }
.strategy-choice:last-child { border-bottom:0; padding-bottom:0; }
.strategy-choice input { position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; }
.strategy-choice:has(input:disabled) { opacity:.55; cursor:not-allowed; }
.strategy-choice:has(input:disabled) input { cursor:not-allowed; }
.strategy-choice:has(input:focus-visible) { outline:2px solid var(--accent); outline-offset:3px; }
.strategy-choice strong { display:block; font-size:12px; font-weight:500; }
.strategy-choice small { display:block; margin-top:4px; color:var(--muted); font-size:11px; }
.choice-check { width:14px; height:14px; flex-shrink:0; margin-left:auto; border:1px solid #c4ceb6; border-radius:50%; }
.strategy-choice:has(input:checked) .choice-check { border:4px solid var(--accent); background:#fff; }
.research-section { padding:16px 21px; border-bottom:1px solid var(--border); }
.section-line { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:14px; }
.section-line h3 { margin:0; font-size:12px; font-weight:600; }
.recording-indicator { display:flex; align-items:center; gap:6px; color:var(--muted); font-size:10px; white-space:nowrap; }
.recording-indicator i { width:5px; height:5px; border-radius:50%; background:#abb59e; }
.recording-indicator.live { color:var(--accent); }
.recording-indicator.live i { background:var(--accent); }
.metrics { display:grid; grid-template-columns:1.14fr 1fr 1fr; gap:12px; }
.metrics>div { display:flex; flex-direction:column; gap:7px; }
.metrics strong { font-size:26px; font-weight:500; line-height:1; letter-spacing:-.5px; font-variant-numeric:tabular-nums; }
.metrics strong>span { margin-left:2px; font-size:11px; font-weight:400; }
.metrics>div>span { font-size:10px; color:var(--muted); }
.episode-line { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:14px; color:var(--muted); font-size:10px; }
.strategy-tag { font-size:10px; color:var(--accent); }
.viewport-model { display:grid; grid-template-columns:12px 55px minmax(0,1fr); align-items:start; column-gap:13px; }
.viewport-scale { display:flex; flex-direction:column; justify-content:space-between; height:78px; padding:1px 0; color:var(--subtle); font-size:9px; }
.position-heatmap { display:flex; flex-direction:column; justify-content:space-between; gap:3px; width:100%; height:78px; padding:0; border:0; }
.heat-row { flex:1; min-height:0; background:var(--accent); border-radius:1px; }
.viewport-caption { display:flex; flex-direction:column; min-width:0; padding:1px 0; }
.viewport-caption strong { font-size:12px; font-weight:500; line-height:1.5; }
.viewport-caption>span { margin-top:5px; font-size:11px; line-height:1.5; color:var(--muted); }
.viewport-caption small { margin-top:12px; font-size:10px; line-height:1.6; color:var(--muted); }
.research-details { margin-top:12px; }
.research-details>summary { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:11px; line-height:1.7; color:var(--muted); }
.research-details>summary>span { color:var(--subtle); font-size:13px; }
.research-details[open]>summary>span { font-size:0; }
.research-details[open]>summary>span::after { content:"−"; font-size:13px; }
.research-details p,.score-note,.control-note { margin:10px 0 0; color:var(--muted); font-size:12px; line-height:1.85; overflow-wrap:anywhere; }
.score-list { display:flex; flex-direction:column; gap:0; }
.score-list:empty::before { content:"进入评论后显示推荐评分"; padding:2px 0 8px; color:var(--muted); font-size:11px; line-height:1.7; }
.score-row { display:grid; grid-template-columns:33px minmax(0,1fr) 44px; align-items:center; gap:13px; min-height:23px; color:var(--muted); font-size:11px; font-variant-numeric:tabular-nums; }
.score-track { height:4px; background:#e9ede3; }
.score-bar { height:100%; background:#a0ad8e; }
.score-value { color:var(--ink); text-align:right; }
.scoring-details { padding-top:10px; margin-top:9px; border-top:1px solid var(--border); }
.policy-meta { display:flex; flex-direction:column; gap:4px; margin-top:12px; color:var(--muted); font-size:11px; line-height:1.7; }
.research-explanation { margin:0; padding:13px 21px 16px; }
.muted { color:var(--muted); font-size:10px; }
.research-mobile-navigation { display:none; }
#research-backdrop,#close-research { display:none!important; pointer-events:none; }

/* A completed round is a report, with individual records on the outside desk. */
#summary-screen { display:flex; flex-direction:column; overflow:hidden; }
.summary-page-header { display:flex; align-items:center; justify-content:space-between; flex:0 0 43px; padding:0 17px; border-bottom:1px solid var(--border); font-size:12px; color:var(--muted); }
.completed-label { font-size:10px; color:var(--accent); }
.summary-content { flex:1 1 0; min-height:0; padding:29px 19px 20px; overflow-y:auto; overflow-x:hidden; scrollbar-width:thin; scrollbar-color:#c6d0b9 transparent; }
#summary-title { margin:0; font-size:25px; line-height:1.4; font-weight:600; }
.summary-subtitle { margin:9px 0 0; color:var(--muted); font-size:11px; line-height:1.8; }
.summary-outcomes { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; margin:27px 0 28px; padding:18px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.summary-stat { display:flex; flex-direction:column; align-items:flex-start; gap:8px; min-width:0; padding:0 10px; border-left:1px solid var(--border); }
.summary-stat:first-child { border:0; padding-left:0; }
.summary-stat:last-child { padding-right:0; }
.summary-stat strong { font-size:28px; line-height:1; font-weight:500; font-variant-numeric:tabular-nums; }
.summary-stat>span { font-size:10px; color:var(--muted); line-height:1.6; }
.summary-section-title { margin:0 0 14px; font-size:12px; font-weight:600; }
.summary-highlights { font-size:12px; color:var(--muted); line-height:1.9; }
.summary-observation { margin:9px 0; }
.summary-report-hint { margin:24px 0 0; color:var(--muted); font-size:11px; line-height:1.8; }
.summary-action { flex:0 0 auto; padding:13px 16px 14px; border-top:1px solid var(--border); }
.summary-action>p { margin:0 0 11px; color:var(--muted); font-size:10px; line-height:1.8; }
.round-report-results,.round-report-scores { display:flex; flex-direction:column; gap:0; }
.report-person { display:grid; grid-template-columns:27px minmax(0,1fr) auto; align-items:center; gap:10px; padding:11px 0; border-bottom:1px solid var(--border); }
.report-person:first-child { padding-top:0; }
.report-person:last-child { border:0; padding-bottom:0; }
.report-avatar { display:grid; place-items:center; width:27px; height:27px; border-radius:50%; background:#edf0e7; color:var(--muted); font-size:11px; }
.report-name { min-width:0; }
.report-name strong { display:block; font-size:12px; font-weight:500; }
.report-name small { display:block; margin-top:4px; font-size:10px; color:var(--muted); line-height:1.5; }
.report-outcome { color:var(--muted); font-size:11px; line-height:1.5; white-space:nowrap; }
.report-outcome[data-outcome="purchase"] { color:var(--accent); }
.report-score { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:14px; padding:13px 0; border-bottom:1px solid var(--border); }
.report-score:last-child { border:0; padding-bottom:0; }
.report-score-copy { min-width:0; color:var(--muted); font-size:11px; line-height:1.75; overflow-wrap:anywhere; }
.report-score-copy strong { display:block; margin-bottom:4px; color:var(--ink); font-size:12px; font-weight:500; }
.report-score-copy span { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
.report-score-values { color:var(--muted); font-size:10px; line-height:1.7; text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.report-score-values strong { display:block; margin-top:5px; color:var(--accent); font-size:12px; font-weight:500; }
.report-score-values .negative-change { color:var(--danger); }
.report-empty { margin:0; color:var(--muted); font-size:12px; line-height:1.8; }

/* Feedback remains outside the measured phone viewport. */
.content-dialog { width:min(470px,calc(100vw - 28px)); max-height:min(80dvh,740px); padding:0; border:1px solid #d6dfcd; border-radius:8px; color:var(--ink); background:#fff; box-shadow:0 16px 60px #18251038; }
.content-dialog::backdrop { background:#24282066; }
.dialog-heading { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:21px 23px 18px; border-bottom:1px solid var(--border); }
.dialog-heading h2 { margin:0; font-size:18px; font-weight:600; line-height:1.5; }
.dialog-heading button { width:29px; height:29px; flex-shrink:0; padding:0; border:0; background:transparent; color:var(--muted); font-size:24px; line-height:1; }
.content-dialog-body { padding:18px 23px 23px; font-size:14px; line-height:1.9; overflow-wrap:anywhere; white-space:pre-line; }
.content-dialog-body p { margin:0 0 14px; }
.content-dialog-body p:last-child { margin-bottom:0; }
.notice { position:fixed; z-index:40; top:64px; left:50%; transform:translateX(-50%); display:flex; align-items:center; gap:12px; width:max-content; max-width:min(760px,calc(100vw - 26px)); padding:11px 14px; border:1px solid #c7d5b9; border-radius:5px; color:var(--accent); background:#fff; box-shadow:0 4px 20px #28341c24; }
.notice p { min-width:0; margin:0; font-size:12px; line-height:1.8; }
.notice.error { color:var(--danger); background:var(--danger-bg); border-color:#e6c9b6; }
.notice button { flex-shrink:0; padding:6px 9px; border:1px solid currentColor; border-radius:3px; background:transparent; color:inherit; font-size:11px; white-space:nowrap; }
.notice #dismiss-notice { padding:0 2px; border:0; font-size:18px; }

/* Shared surfaces use the same tokens in both modes. These declarations cover
   legacy component rules that intentionally keep a light fallback literal. */
body, #phone-screen, #phone-screen>main, .phone-status, .phone-homebar, .product-action, .comment-panel,
#research-panel, .summary-action, .content-dialog, .notice,
.pagination button, .outcome-buttons button, .stop-reading, .return-to-client {
  transition:background-color 260ms ease,color 260ms ease,border-color 260ms ease,box-shadow 260ms ease;
}
body[data-color-mode="dark"] .product-art { background:#eeefe9; }
body[data-color-mode="dark"] .product-action,
body[data-color-mode="dark"] .comment-panel,
body[data-color-mode="dark"] #research-panel,
body[data-color-mode="dark"] .content-dialog,
body[data-color-mode="dark"] .notice,
body[data-color-mode="dark"] .pagination button,
body[data-color-mode="dark"] .outcome-buttons button,
body[data-color-mode="dark"] .stop-reading,
body[data-color-mode="dark"] .return-to-client { background:var(--surface); color:var(--ink); }
body[data-color-mode="dark"] .site-header { box-shadow:0 1px 0 #0005; }
body[data-color-mode="dark"] .brand>span { border-color:var(--border); }
body[data-color-mode="dark"] .review-open:hover,
body[data-color-mode="dark"] .filter:hover:not(:disabled),
body[data-color-mode="dark"] .outcome-buttons button:hover:not(:disabled),
body[data-color-mode="dark"] .stop-reading:hover:not(:disabled),
body[data-color-mode="dark"] .return-to-client:hover { background:var(--panel); }
body[data-color-mode="dark"] .avatar,
body[data-color-mode="dark"] .report-avatar { background:#344037; color:var(--muted); }
body[data-color-mode="dark"] .outcome-buttons button { border-color:var(--border); color:var(--muted); }
body[data-color-mode="dark"] .stop-reading { border-color:var(--border); color:var(--muted); }
body[data-color-mode="dark"] .return-to-client { border-color:var(--border); }
body[data-color-mode="dark"] .score-track { background:#344036; }
body[data-color-mode="dark"] .score-bar { background:#6f9278; }
body[data-color-mode="dark"] .round-step { border-color:#344036; }
body[data-color-mode="dark"] .choice-check { border-color:#566457; }
body[data-color-mode="dark"] .strategy-choice:has(input:checked) .choice-check { background:var(--surface); }
body[data-color-mode="dark"] .content-dialog::backdrop { background:#0009; }
body[data-color-mode="dark"] .notice.error { background:var(--danger-bg); border-color:#6e4335; }
body[data-color-mode="dark"] #phone-shell { box-shadow:0 14px 34px #0008,0 2px 3px #0008,inset 0 0 0 2px #3a3d39; }

/* Theme changes never animate review geometry. */
.viewer-avatar,.shop-name,.product-price,.primary-button,.purchase-button,
.filter,.weight-slot,.step-avatar,.round-step,.recording-indicator,
.strategy-tag,.heat-row,.report-outcome { transition:background-color 220ms ease,color 220ms ease,border-color 220ms ease; }

@container (max-width:305px) {
  .review-open { grid-template-columns:minmax(0,1fr) 8px; gap:5px; }
  .review-open>.avatar { display:none; }
  .review-controls { gap:5px; padding-right:10px; padding-left:10px; }
  .filter { padding:4px 7px; font-size:10px; }
  .review-page-header { gap:9px; padding-right:10px; padding-left:10px; }
  .review-product-summary strong { font-size:10px; }
  .outline-button>span { display:none; }
  .product-copy { padding-right:15px; padding-left:15px; }
  .product-copy h2 { font-size:18px; }
  .review-entry-info>span { font-size:9px; }
  .summary-content { padding-right:16px; padding-left:16px; }
}
@media (max-width:900px) {
  .workspace { grid-template-columns:var(--phone-width) minmax(0,400px); gap:24px; padding-right:20px; padding-left:20px; }
  #research-panel,#research-panel.mobile-open { width:100%; }
}
@media (max-width:780px) {
  body { --phone-height:clamp(610px,calc(100dvh - 104px),790px); --phone-width:min(384px,calc(var(--phone-height) / 1.91)); }
  .site-header { padding:0 16px; gap:12px; }
  .brand { gap:0; }
  .brand>span { display:none; }
  .header-right { gap:18px; }
  .theme-toggle { padding:6px 7px; }
  .theme-toggle-label { display:none; }
  .viewer-profile { min-width:88px; }
  .workspace { grid-template-columns:minmax(0,1fr); justify-items:center; max-width:470px; gap:24px; padding:15px 14px 24px; }
  .client-column { width:var(--phone-width); max-width:100%; }
  #research-panel,#research-panel.mobile-open { width:100%; max-width:420px; height:min(720px,86dvh); min-height:500px; }
  .research-mobile-navigation { display:block; flex:0 0 auto; padding:10px 18px; border-top:1px solid var(--border); }
  .return-to-client { display:flex; align-items:center; justify-content:center; gap:9px; width:100%; min-height:34px; padding:7px 12px; border:1px solid #dce5d2; border-radius:4px; background:#fff; color:var(--muted); font-size:11px; }
  .return-to-client:hover { background:var(--panel); }
  .return-to-client>span { font-size:15px; }
}
@media (max-width:360px) {
  .site-header { padding:0 12px; }
  .brand strong { font-size:20px; }
  .environment-badge { font-size:11px; }
  .header-right { gap:12px; }
  .viewer-profile { min-width:83px; gap:6px; }
  .viewer-avatar { width:29px; height:29px; }
  .viewer-profile strong { font-size:11px; }
  .viewer-profile div>span { font-size:9px; }
  .workspace { padding-right:10px; padding-left:10px; }
  #phone-shell { padding:14px 7px; border-radius:29px; }
  .research-heading,.research-section { padding-right:15px; padding-left:15px; }
  .round-progress { margin-right:15px; margin-left:15px; }
  .round-step { gap:3px; }
  .step-name { font-size:9px; }
  .setup-panel>summary,.research-explanation { padding-right:15px; padding-left:15px; }
  .setup-body { padding-right:15px; padding-left:15px; }
  .metrics { gap:8px; }
  .metrics>div>span { font-size:9px; }
  .notice { gap:8px; }
  .notice p { font-size:11px; }
}

@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}
