/* The home headline stays in its existing composition; review controls are owner-only. */
.quote-entry{display:inline-flex;align-items:center;gap:7px;min-height:32px;padding:5px 0;background:none;color:var(--muted);font:11px/1.5 var(--sans);letter-spacing:1px;border-bottom:1px solid var(--hairline)}
.quote-entry:hover{color:var(--ink)}
.quote-entry-wrap{position:absolute;left:0;top:calc(100% + 12px);display:flex;align-items:center;gap:16px}
.quote-entry-wrap [data-quote-logout]{font-size:10px;background:none;color:var(--muted);padding:7px 0}
.home-view .coordinate{display:none}
.hero-copy .chapter-label,.hero-copy h1,.hero-copy .hero-description,.hero-copy .hero-caption{margin-left:0}
.quote-row{position:relative}
.quote-actions[hidden],.quote-review-meta[hidden],.quote-empty[hidden],.quote-owner-only[hidden]{display:none!important}
.quote-active .quote-row{width:min(100%,750px);display:grid;grid-template-columns:minmax(0,1fr) 72px;gap:24px;align-items:center;min-height:264px}
.quote-active .hero-copy h1{font-family:'Songti SC','STSong','SimSun',serif;font-weight:600;font-size:var(--quote-font-size,70px);line-height:1.36;letter-spacing:0;white-space:normal;overflow-wrap:normal;word-break:normal;text-wrap:pretty;text-shadow:0 2px 28px rgba(var(--ivory-rgb),.9)}
.quote-line{display:block;white-space:nowrap}
.quote-actions{display:flex;flex-direction:column;gap:13px;align-items:center;align-self:center}
.quote-action{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;width:64px;min-height:67px;padding:8px 4px;border:1px solid var(--hairline);background:rgba(var(--paper-rgb),.65);color:var(--ink);font:11px/1.4 var(--sans)}
.quote-action svg{width:22px;height:22px;stroke-width:1.6}
.quote-action:hover:not(:disabled){background:var(--paper);border-color:var(--muted)}
.quote-action:disabled{opacity:.4;cursor:default}
.quote-action[data-quote-decision="reject"]{color:var(--muted)}
.quote-review-meta{margin-top:13px;display:flex;gap:8px 16px;flex-wrap:wrap;font:11px/1.7 var(--sans);color:var(--muted);letter-spacing:.2px}
.quote-review-meta strong{font-weight:500;color:var(--ink);font-variant-numeric:tabular-nums}
.quote-feedback{font:11px/1.8 var(--sans);color:var(--muted);min-height:20px;margin-top:7px;max-width:580px;letter-spacing:0}
.quote-feedback:empty{display:none}
.home-view:not(.quote-active) .quote-feedback:not(:empty){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0}
.quote-active .quote-feedback{display:block;height:20px}
.quote-feedback[data-kind="error"]{color:#8b3c30}
.quote-active .hero-description{margin-top:15px}
.quote-active .hero-signature{margin-top:18px}
.quote-active .quote-entry-wrap{top:calc(100% + 5px)}
.quote-empty{font:17px/1.8 var(--sans);max-width:420px;color:var(--muted)}
.quote-empty strong{display:block;color:var(--ink);font:500 32px/1.6 var(--display,serif);margin-bottom:8px}
.quote-dialog{width:min(480px,calc(100% - 32px));max-height:calc(100svh - 40px);overflow:auto;padding:30px;border:1px solid var(--hairline);background:var(--paper);color:var(--ink);box-shadow:0 24px 100px rgba(var(--ink-rgb),.15)}
.quote-dialog::backdrop{background:rgba(var(--ink-rgb),.38);backdrop-filter:blur(6px)}
.quote-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px}
.quote-dialog h2{font:500 26px/1.5 'Songti SC','STSong','SimSun',serif;margin:0}
.quote-dialog-close{width:36px;height:36px;background:none;border:1px solid var(--hairline);font-size:22px;line-height:1;color:var(--muted)}
.quote-dialog p{font:13px/1.9 var(--sans);margin:0 0 18px;color:var(--muted)}
.quote-login-form{display:grid;gap:16px;margin-top:22px}
.quote-login-form label{display:grid;gap:8px;font:12px/1.6 var(--sans);color:var(--muted)}
.quote-login-form input{width:100%;border:1px solid var(--hairline);background:var(--ivory);padding:12px;color:var(--ink);border-radius:0;font:15px/1.5 var(--sans)}
.quote-login-form input:focus-visible{outline:1px solid var(--ink);outline-offset:2px}
.quote-primary,.quote-secondary{font:12px/1.6 var(--sans);letter-spacing:.5px;min-height:43px;padding:10px 16px;border:1px solid var(--hairline)}
.quote-primary{background:var(--ink);color:var(--paper)}
.quote-secondary{background:transparent;color:var(--ink)}
.quote-primary:disabled,.quote-secondary:disabled{opacity:.45}
.quote-dialog .quote-form-message{min-height:24px;font-size:12px;margin:2px 0 0;color:var(--muted)}
.quote-dialog .quote-form-message[data-kind="error"]{color:#8b3c30}
.quote-saved-dialog{width:min(640px,calc(100% - 32px))}
.quote-saved-list{list-style:none;margin:18px 0;padding:0;border-top:1px solid var(--hairline)}
.quote-saved-list li{padding:15px 0;border-bottom:1px solid var(--hairline);font:18px/1.8 'Songti SC','STSong','SimSun',serif}
.quote-saved-list small{display:block;font:10px/1.6 var(--sans);color:var(--muted);margin-top:5px}
.quote-saved-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.quote-page-controls{display:flex;align-items:center;gap:10px;font:11px/1.6 var(--sans);color:var(--muted)}
.quote-admin{--ivory:#f9f9f8;--paper:#fefefe;--sand:#eceae9;--ink:#322a24;--muted:#6c5f56;--ink-rgb:50,42,36;--paper-rgb:254,254,254;--hairline:rgba(50,42,36,.18);--sans:'PingFang SC','Microsoft YaHei',sans-serif;margin:0;min-height:100svh;background:var(--ivory);color:var(--ink);font:14px/1.7 var(--sans)}
.quote-admin *{box-sizing:border-box}.quote-admin [hidden]{display:none!important}.quote-admin button{cursor:pointer}.quote-admin a{color:inherit;text-underline-offset:5px}.quote-admin button:focus-visible,.quote-admin a:focus-visible{outline:2px solid var(--ink);outline-offset:4px}
.quote-admin-header{padding:28px 5vw;border-bottom:1px solid var(--hairline);display:flex;justify-content:space-between;align-items:center;font-size:12px;letter-spacing:2px}
.quote-admin-header a{text-decoration:none}.quote-admin-main{width:min(520px,calc(100% - 40px));margin:clamp(50px,12vh,130px) auto}
.quote-admin-main h1{font:500 clamp(32px,5vw,44px)/1.4 'Songti SC','STSong','SimSun',serif;margin:0 0 20px}
.quote-admin-main p{color:var(--muted);margin:0 0 22px;font-size:14px}
.quote-admin-main .quote-primary,.quote-admin-main .quote-secondary{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.quote-admin-status{display:flex;gap:12px 25px;flex-wrap:wrap;margin:26px 0;color:var(--muted);font-size:13px}.quote-admin-status strong{color:var(--ink);font-weight:500}
.quote-admin-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}
@media(min-width:1800px){.quote-active .hero-copy{bottom:23%;width:48%}.quote-active .quote-row{min-height:282px}}
@media(max-width:1180px){.quote-active .hero-copy{width:67%;bottom:25%}.quote-active .quote-row{width:min(100%,650px);min-height:242px;gap:18px;grid-template-columns:minmax(0,1fr) 64px}.quote-active .hero-copy h1{font-size:var(--quote-font-size,56px)}}
@media(max-width:900px) and (min-width:721px){.quote-active .hero-copy{width:83%;bottom:29%}.quote-active .quote-row{min-height:220px}.quote-active .hero-signature{display:none}}
@media(max-width:720px){.quote-entry-wrap{margin-top:9px}.quote-entry{font-size:10px;min-height:29px}.quote-active .hero-copy{left:7%;width:86%;bottom:auto;top:34%}.quote-active .chapter-label{margin-bottom:14px}.quote-active .quote-row{display:flex;flex-direction:column;align-items:stretch;gap:12px;min-height:0;width:100%}.quote-active .hero-copy h1{font-size:var(--quote-font-size,39px);line-height:1.4;min-height:120px;display:flex;flex-direction:column;justify-content:center;letter-spacing:0}.quote-actions{flex-direction:row;align-self:flex-start;gap:10px}.quote-action{width:auto;min-width:100px;min-height:44px;flex-direction:row;gap:8px;padding:9px 15px;font-size:11px}.quote-action svg{width:19px;height:19px}.quote-review-meta{margin-top:10px;font-size:10px;gap:6px 12px}.quote-feedback{font-size:10px;line-height:1.65;min-height:17px;margin-top:4px}.quote-active .hero-description{font-size:12px;line-height:1.7;letter-spacing:1px;margin-top:10px}.quote-active .hero-caption{font-size:8px;line-height:1.7;margin-top:5px;letter-spacing:.5px}.quote-active .hero-signature{display:none}.quote-active .quote-entry-wrap{margin-top:6px}.quote-active .hero-eyebrow{top:26%}.quote-active.home-view{min-height:810px}.quote-active .entry-dock{bottom:8.5%}.quote-dialog{padding:23px 21px}.quote-dialog h2{font-size:23px}.quote-saved-list li{font-size:17px}.quote-empty strong{font-size:28px}.quote-empty{font-size:14px}.quote-admin-header{padding:22px 20px}}
@media(max-width:380px){.quote-active .hero-copy{top:32%}.quote-active .hero-copy h1{min-height:112px}.quote-active.home-view{min-height:800px}.quote-active .hero-eyebrow{top:25%}.quote-review-meta{gap:4px 10px}}
@media(max-width:720px){.home-view:not(.quote-active) .quote-entry-wrap{top:auto;bottom:0;left:auto;right:0;margin:0}.home-view:not(.quote-active) .quote-entry{width:72px;min-height:44px;justify-content:center;padding:8px 3px}.home-view:not(.quote-active) .hero-signature{padding-right:84px}.home-view:not(.quote-active) .hero-signature small{min-width:0;white-space:normal}}
@media print{.quote-actions,.quote-review-meta,.quote-feedback,.quote-entry-wrap,.quote-dialog{display:none!important}}
@media(min-width:721px) and (max-height:800px){.quote-active .hero-eyebrow,.quote-active .mark-top{display:none}}
/* Review actions replace the home statistics line. Keep the headline measure unchanged. */
.home-view .quote-review-meta{display:none!important}
.quote-active .quote-row{margin-bottom:54px}
.quote-active .quote-actions{position:absolute;top:calc(100% + 10px);left:0;flex-direction:row;gap:12px}
.quote-active .quote-action{width:auto;min-width:92px;min-height:44px;flex-direction:row;gap:8px;padding:9px 14px}
.quote-active .quote-action svg{width:18px;height:18px}
@media(max-width:720px){.quote-active .quote-row{margin-bottom:0}.quote-active .quote-actions{position:static;align-self:flex-start}}
/* Transparent homepage links, including their hover state. */
.home-view .primary-entry,.home-view .primary-entry:hover,.home-view .secondary-entries a,.home-view .secondary-entries a:hover,.site-header .appearance-trigger,.site-header .appearance-trigger:hover{background:transparent;box-shadow:none;backdrop-filter:none}
.home-view .primary-entry{color:var(--ink)}
.home-view .primary-entry .entry-top,.home-view .primary-entry .entry-bottom{color:var(--muted)}
.home-view .primary-entry:after{display:none}
.site-header .appearance-trigger,.home-view .secondary-entries a,.quote-active .quote-action{border-color:transparent;background:transparent;box-shadow:none}
.site-header .appearance-trigger:hover,.home-view .secondary-entries a:hover,.quote-active .quote-action:hover:not(:disabled){border-color:transparent;background:transparent}
/* Readable labels and subtle movement, with no hover fill. */
.quote-active .quote-row{grid-template-columns:minmax(0,1fr)}
.home-view .secondary-entries strong{font-size:18px}
.quote-active .quote-action{font-size:14px;min-width:100px}
.quote-active .quote-action svg{width:20px;height:20px}
.home-view .quote-entry,.home-view .quote-entry-wrap [data-quote-logout]{font-size:13px}
.site-header .appearance-trigger{font-size:12px}
.rail .nav-item span{font-size:12px}
.site-header .icon-button:hover,.rail .nav-item:hover{background:transparent}
.site-header .icon-button,.site-header .appearance-trigger,.home-view .secondary-entries a,.home-view .quote-action,.home-view .quote-entry,.home-view [data-quote-logout],.rail .nav-item{transition:transform .2s ease,color .2s ease}
.home-view .secondary-entries svg{transition:transform .2s ease}
@media(hover:hover){
 .site-header .icon-button:hover,.site-header .appearance-trigger:hover,.home-view .secondary-entries a:hover,.home-view .quote-action:hover:not(:disabled),.home-view .quote-entry:hover,.home-view [data-quote-logout]:hover,.rail .nav-item:hover{transform:translateY(-3px)}
 .home-view .secondary-entries a:hover svg{transform:translate(3px,-3px)}
}
@media(max-width:720px){.home-view .secondary-entries strong{font-size:14px}.site-header .appearance-trigger{font-size:11px}.rail .nav-item span{font-size:11px}.home-view .quote-entry,.home-view .quote-entry-wrap [data-quote-logout]{font-size:12px}}
@media(prefers-reduced-motion:reduce){.site-header .icon-button,.site-header .appearance-trigger,.home-view .entry-dock a,.home-view .entry-dock svg,.home-view .quote-action,.home-view .quote-entry,.home-view [data-quote-logout],.rail .nav-item{transition:none!important;transform:none!important}}
/* Reading scale: 16px controls, 14px supporting copy, 20-28px entry titles. */
.rail .nav-item span{font-size:16px;letter-spacing:1px}
.site-header .appearance-trigger{font-size:16px;min-height:44px}
.site-header .icon-button{width:36px;height:44px}
.site-header .header-brand{font-size:14px}
.site-header .header-sub,.site-header .clock{font-size:12px}
.home-view .chapter-label,.home-view .chapter-label span:first-child{font-size:14px;letter-spacing:1px;line-height:1.6}
.home-view .hero-eyebrow{font-size:14px;letter-spacing:2px}
.home-view .technical-marks .mark-top{font-size:12px;line-height:1.6}
.home-view .hero-description{font-size:22px;line-height:1.6;letter-spacing:1px}
.home-view .hero-caption{font-size:16px;line-height:1.7;letter-spacing:.5px}
.home-view .hero-signature small{font-size:12px;letter-spacing:1px}
.quote-active .quote-action{font-size:16px;min-width:108px}
.home-view .quote-entry,.home-view .quote-entry-wrap [data-quote-logout]{font-size:16px;min-height:44px}
.home-view .quote-feedback{font-size:14px}
.home-view .primary-entry strong{font-size:28px}
.home-view .secondary-entries strong{font-size:20px;letter-spacing:1px}
.home-view .entry-top,.home-view .secondary-entries small{font-size:12px;line-height:1.4;letter-spacing:1px}
.home-view .entry-bottom{font-size:14px;line-height:1.6;letter-spacing:.5px}
.home-view .hero-footer{font-size:12px;line-height:1.6;letter-spacing:.3px;flex-wrap:wrap}
@media(max-width:1180px){.home-view .entry-top{font-size:11px}.home-view .primary-entry strong{font-size:24px}.home-view .secondary-entries strong{font-size:18px}}
@media(max-width:720px){
 .rail .nav-item span{font-size:14px;letter-spacing:0}
 .site-header .appearance-trigger{font-size:14px;padding:6px;gap:4px}
 .site-header .header-brand{font-size:12px;gap:5px;letter-spacing:1px}
 .site-header .icon-button{width:28px}
 .site-header{padding-inline:14px}
 .home-view .chapter-label,.home-view .chapter-label span:first-child{font-size:12px;letter-spacing:.5px}
 .home-view .hero-eyebrow{font-size:13px;letter-spacing:1px}
 .home-view .hero-description{font-size:18px}
 .home-view .hero-caption{font-size:14px}
 .home-view .hero-signature small{font-size:10px}
 .home-view .primary-entry{padding:12px;min-height:140px}
 .home-view .primary-entry strong{font-size:20px}
 .home-view .secondary-entries strong{font-size:16px;letter-spacing:0}
 .home-view .secondary-entries a{padding:10px 8px}
 .home-view .entry-top,.home-view .secondary-entries small{font-size:10px;letter-spacing:0}
 .home-view .entry-bottom{font-size:12px}
 .home-view .hero-footer{font-size:11px;gap:5px 9px}
 .quote-active.home-view{min-height:940px}
 .quote-active .hero-copy{top:28%}
 .quote-active .hero-eyebrow{top:22%}
 .quote-active .entry-dock{bottom:10%}
}
