/* R318: documentation only; original site/app palettes remain unchanged. */
.r318-guide-update{margin:24px 0;padding:22px;border:1px solid #acc9bb;border-radius:16px;background:#fffefb;scroll-margin-top:115px}.r318-guide-update h3:first-child{margin-top:0}.r318-home-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:36px;align-items:center}.r318-illustration{margin:0;min-width:0}.r318-preview-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.r318-phone{border:1px solid #b7c6bd;border-radius:20px;padding:16px 12px 20px;min-width:0;background:#f3f6f1;color:#183f31}.r318-night{background:#17221d;color:#e9f1df}.r318-preview-label{font-size:12px;font-weight:650;margin-bottom:12px}.r318-device-row{display:flex;gap:9px;align-items:center;justify-content:center}.r318-demo-menu{min-width:0;flex:1;max-width:260px;display:grid;gap:10px}.r318-handle{display:flex;justify-content:space-between;align-items:center;padding:5px 12px;background:#fff;color:#13251d;border-radius:16px;min-height:34px}.r318-pill{padding:11px 12px;min-height:44px;box-sizing:border-box;display:flex;align-items:center;border:1px solid #d8e3dc;border-radius:20px;background:#fff;box-shadow:0 2px 0 #c4d2c9,0 3px 6px #0000000d;font:600 15px/1.35 Inter,system-ui,sans-serif;overflow-wrap:anywhere}.r318-night .r318-pill,.r318-night .r318-handle{background:#000;border-color:#355749;box-shadow:0 2px 0 #18382b,0 3px 6px #0003}.r318-night .r318-handle{color:#e9f1df}.r318-demo-icon{width:54px;height:54px;flex:0 0 54px;border-radius:50%;background:transparent;display:grid;place-items:center}.r318-demo-icon img{width:50px;height:50px;max-height:none!important;margin:0!important}.r318-recording{background:#b60012;box-shadow:0 0 0 3px #ff8d99}.r318-illustration figcaption{font-size:12px;line-height:1.55;color:#52615a;margin:12px 0}.r318-gesture-guide h3{font-size:21px;line-height:1.3;margin:22px 0 8px}.r318-gesture-guide h3:first-child{margin-top:0}.r318-gesture-guide p{font-size:15px;line-height:1.7}.r318-home-update .intro>p{font-size:14px}.docbody .r318-illustration{margin:22px 0}.docbody .r318-preview-pair{max-width:740px}.docbody .r318-phone{padding:16px}.docbody .r318-demo-menu{max-width:260px}.docbody .r318-pill{font-size:15px}.docbody .r318-illustration img{margin:0}.r318-illustration *{box-sizing:border-box}
@media(max-width:1050px){.r318-home-grid{grid-template-columns:1fr;gap:24px}.r318-preview-pair{max-width:740px}.r318-gesture-guide{max-width:740px}}@media(max-width:640px){.r318-preview-pair{grid-template-columns:1fr}.r318-phone{max-width:380px;width:100%;margin:auto;padding:16px 18px}.r318-device-row{gap:16px}.r318-demo-menu{max-width:260px}.r318-demo-icon{width:60px;height:60px;flex-basis:60px}.r318-demo-icon img{width:56px;height:56px}.r318-guide-update{padding:17px}.r318-gesture-guide h3{font-size:20px}.r318-gesture-guide p{font-size:14px}}

.r318-pill.r318-muted{color:#52615a}.r318-night .r318-pill.r318-muted{color:#a8b5ad}

.r318-history{margin-top:24px;border-top:1px solid #acc9bb}.r318-history summary{cursor:pointer;min-height:44px;padding:14px 0;font-weight:600}.r318-history .versionnote{padding-bottom:16px}

.r318-summary-preview{max-width:296px;margin:22px auto 0}.r318-summary-intro{font-size:12px;font-weight:650;color:#006c50;margin:0 0 8px!important}.r318-summary-window{background:#fff;color:#13251d;border:1px solid #9bb7a8;border-radius:16px;padding:10px;box-shadow:0 2px 6px #00000012}.r318-summary-header{display:flex;justify-content:space-between;font-size:15px;font-weight:650;padding:4px 4px 10px}.r318-summary-card{border:1px solid #c8d8cf;border-radius:12px;padding:10px;margin-bottom:6px;display:grid;gap:6px;font:12px/1.45 Inter,system-ui,sans-serif}.r318-summary-card strong{color:#52615a;font-size:14px;font-weight:600}.r318-summary-count>div{display:flex;justify-content:space-between;gap:8px;align-items:center}.r318-summary-count strong{text-align:right}.r318-summary-result{background:#fefefd}.r318-summary-count{background:#fff9f5}.r318-summary-offer{background:#fffdf6}.r318-summary-note{font-size:11px!important;line-height:1.5!important;color:#52615a;margin:8px 0 0!important}.docbody .r318-summary-preview p{margin-block:0}

/* R320: exact JVM palette from the app; fully opaque surfaces. */
.r318-phone,.r318-summary-window{--r320-background:#ffffff;--r320-plateTop:#ffffff;--r320-plateBottom:#f8fbf5;--r320-label:#001b14;--r320-muted:#5d6059;--r320-positive:#006c50;--r320-negative:#80302a;--r320-accepted:#593111;--r320-quote:#594c1a;--r320-border:#8cc8b6;--r320-video:#80302a;--r320-work:#006c50;--r320-end:#594c1a;--r320-open:#593111;--r320-destination:#006240;--r320-card-positive:#f2f9f7;--r320-card-negative:#fff7f6;--r320-card-accepted_count:#fff9f5;--r320-card-offer_quote:#fffdf6;--r320-card-neutral:#fefefd;--r320-card-muted:#fefefd}
.r318-night{--r320-background:#000000;--r320-plateTop:#000d0a;--r320-plateBottom:#000000;--r320-label:#e9f1df;--r320-muted:#979d91;--r320-positive:#59d1a8;--r320-negative:#ff988f;--r320-accepted:#ffb478;--r320-quote:#ffe277;--r320-border:#4daa8e;--r320-video:#ff988f;--r320-work:#59d1a8;--r320-end:#ffe277;--r320-open:#ffb478;--r320-destination:#73bca6;--r320-card-positive:#000806;--r320-card-negative:#0f0605;--r320-card-accepted_count:#0f0803;--r320-card-offer_quote:#0f0d04;--r320-card-neutral:#0e0e0d;--r320-card-muted:#0e0e0d}
.r318-pill{min-height:54px;padding:8px 12px;border-color:var(--r320-border);background:linear-gradient(180deg,var(--r320-plateTop),var(--r320-plateBottom));color:var(--r320-label)}
.r318-night .r318-pill{background:linear-gradient(180deg,var(--r320-plateTop),var(--r320-plateBottom));border-color:var(--r320-border)}
.r318-handle,.r318-night .r318-handle{background:var(--r320-background);color:var(--r320-label);border:1px solid var(--r320-border)}
.r318-video,.r318-night .r318-video{color:var(--r320-video)}.r318-work,.r318-night .r318-work{color:var(--r320-work)}.r318-end,.r318-night .r318-end{color:var(--r320-end)}.r318-open,.r318-night .r318-open{color:var(--r320-open)}.r318-destination,.r318-night .r318-destination{color:var(--r320-destination)}
.r318-pill.r318-muted,.r318-night .r318-pill.r318-muted{color:var(--r320-muted)}
.r318-summary-window{background:var(--r320-background);color:var(--r320-label);border-color:var(--r320-border)}.r318-summary-intro{color:#006c50}.r318-summary-card{border-color:var(--r320-border)}.r318-summary-card strong{color:var(--r320-muted)}.r318-summary-result{background:var(--r320-card-neutral)}.r318-summary-count{background:var(--r320-card-accepted_count)}.r318-summary-offer{background:var(--r320-card-offer_quote)}
.r320-offer-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:start;padding:4px 0}.r320-offer-line span{color:var(--r320-muted)}.r320-offer-line strong{color:var(--r320-quote);text-align:right}.r320-offer-title{color:var(--r320-quote);font-weight:650}.r320-offer-empty{font-size:11px;color:var(--r320-muted)}

/* R320 owner follow-up: white circular icon, real-recording illustration red. */
.r318-demo-icon:not(.r318-recording){background:#ffffff}.r318-demo-icon.r318-recording{background:#ff4b4b}.r318-handle{display:none}.r318-summary-header{justify-content:flex-start}

/* R321 owner revision: keep capsule geometry; right-aligned labels and clear theme ink. */
.r318-phone,.r318-summary-window{--r321-primary-label:#000000}
.r318-night{--r321-primary-label:#ffffff}
.r318-demo-menu .r318-pill{justify-content:flex-end;text-align:right}
.r318-summary-header,.r318-summary-card>span:first-child,.r318-summary-count>div>span,.r320-offer-title,.r320-offer-line>span{font-weight:700;color:var(--r321-primary-label)}
.r318-phone.r318-night,.r318-summary-window.r318-night{color:#ffffff}
.r318-night .r318-preview-label,.r318-summary-window.r318-night .r320-offer-empty{color:#ffffff}

.r318-night .r318-summary-note,.r318-night .r318-summary-intro{color:#ffffff}

.r318-summary-intro{font-weight:700;color:#000000}

/* R321 REV3: owner-approved neutral metadata and empty offer placeholders. */
.r318-summary-window .r320-offer-line:nth-of-type(1)>strong,
.r318-summary-window .r320-offer-line:nth-of-type(4)>strong,
.r318-summary-window .r318-summary-count>div:nth-child(3)>strong,
.r318-summary-window .r320-offer-empty ~ .r320-offer-line>strong{color:var(--r321-primary-label)}

/* R321 REV4: owner-requested25% QUICK visual reduction; font15px, summary and icon unchanged. */
.r318-demo-menu,.docbody .r318-demo-menu{max-width:195px}
.r318-demo-menu .r318-pill{min-height:40.5px;padding:6px 9px;border-radius:15px}

/* R322: single-line QUICK labels; preserve195px/40.5px geometry and font15px. */
.r318-demo-menu .r318-pill{height:40.5px;min-width:0;overflow:hidden;white-space:nowrap}
.r318-demo-menu .r322-quick-label{display:block;min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.r318-demo-menu .r318-destination.r318-muted{color:var(--r320-muted)}

/* R323: native24-grid glyphs rendered22px; grouped right with one literal ASCII space. */
.r318-demo-menu .r318-pill{padding-left:12px;padding-right:12px}
.r318-demo-menu .r323-quick-group{display:inline-flex;align-items:center;justify-content:flex-end;flex:0 1 auto;min-width:0;max-width:100%;margin-left:auto;gap:0}
.r318-demo-menu .r323-quick-glyph{display:block;width:22px;height:22px;flex:0 0 22px}
.r318-demo-menu .r323-quick-space{white-space:pre;flex:0 0 auto}
