/* Content-first browsing, shared by the gallery and work pages. */
:root{--paper:#f7f8f6;--ink:#202b25;--muted:#68746c;--line:#e2e7e1}
body{padding-bottom:0;color:var(--ink)}
header{height:60px;padding:0 28px;gap:44px;background:#fff}
.brand{font-size:23px;letter-spacing:-1px}.brand-icon{font-size:31px;margin-right:3px}
nav{gap:24px}.nav{font-size:13px;color:#647168}.nav.active:after{height:2px;bottom:0}
.head-right{gap:12px}.primary,.secondary{min-height:36px;padding:8px 14px;font-size:12px;border-radius:6px;gap:8px}
.primary:hover{transform:none}.secondary{background:#fff;color:#415e4c;border-color:#d9e1d9}
main{max-width:1680px;padding:0 28px}button,input,select{outline-offset:3px}
.collection{padding:20px 0 0}.collection-heading{align-items:center;margin:0 0 12px;gap:20px;min-height:36px}
.collection-heading h1{display:flex;align-items:center;gap:10px;font-size:21px;font-weight:600;letter-spacing:-.4px;line-height:1.4;margin:0;white-space:nowrap}
.count{font-size:12px;font-weight:400;color:#738077;background:#eaf0e9;padding:3px 7px;line-height:1.2;border-radius:5px;margin:0;letter-spacing:0}
.tools{gap:8px;align-items:center}.search{display:flex;align-items:center;gap:7px;border:1px solid var(--line);background:#fff;height:36px;padding:0 11px;color:#738077}
.search input{font-size:12px;width:196px;min-width:0;outline:none;color:var(--ink)}
.search:focus-within{border-color:#73917b;box-shadow:0 0 0 2px #244e3c0d}
.tools select{height:36px;min-width:112px;background:#fff;color:#4d5d52;font-size:12px;padding:0 9px}
.filterbar{padding:0 0 16px;border:0;display:block}.filters{gap:5px}.filters button{font-size:12px;padding:7px 12px;color:#657369;min-height:32px}
.filters button:hover{background:#edf1ec}.filters .selected{color:#244e3c;background:#e4ece3}
.cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 18px}
.card{display:flex;flex-direction:column;border:1px solid var(--line);background:#fff;border-radius:8px;overflow:hidden;transition:border-color .18s,box-shadow .18s}
.card:hover,.card:focus-visible{border-color:#a6b9a8;box-shadow:0 4px 16px #253d2d0a}
.card-image{flex-shrink:0;height:auto;aspect-ratio:4/3;border-radius:0;background:#15241e}
.card img{display:block;transition:transform .35s}.card:hover img{transform:scale(1.025)}
.card-badge{top:10px;left:10px;font-size:10px;padding:3px 6px;letter-spacing:0;background:#17302399;border:1px solid #ffffff30;backdrop-filter:blur(4px)}
.card-type{opacity:0;transform:translateY(4px);transition:opacity .18s,transform .18s;bottom:10px;right:10px;font-size:11px;letter-spacing:0;background:#173023dd;padding:6px 9px}
.card:hover .card-type,.card:focus-visible .card-type{opacity:1;transform:none}
.card-title{padding:0 12px;margin:12px 0 10px;display:block;min-height:21px}
.card h3{font-size:14px;font-weight:600;line-height:1.5;letter-spacing:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-foot{margin-top:auto;padding:0 12px 12px;gap:6px;font-size:11px;color:#637369}.author-dot{width:20px;height:20px;flex-shrink:0;font-family:inherit;font-size:10px;background:#e8eee6}
.card-author{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-foot>span:last-child{font-size:10px;color:#768277;white-space:nowrap;margin-left:auto}
.empty{padding:64px 16px;font-size:14px;color:#657369}
footer{margin-top:28px;padding:20px 28px;background:transparent;gap:20px}footer .brand{font-size:17px}footer small{font-size:11px;color:#7c887f}
/* The title is a toolbar; the scene and guide share the first screen. */
.work-heading{min-height:68px;padding:14px 0;gap:14px;align-items:center;flex-direction:row}
.back-link{width:32px;height:32px;display:grid;place-items:center;flex-shrink:0;border:1px solid var(--line);border-radius:6px;background:#fff;color:#46604e;font-size:18px}
.back-link.browse-public{width:auto;padding:0 10px;font-size:13px;white-space:nowrap}
.back-link:hover{background:#eaf0e9}.work-identity{display:flex;align-items:center;gap:12px;min-width:0;flex:1}
.work-heading h1{font-size:22px;font-weight:600;letter-spacing:-.5px;line-height:1.4;margin:0;overflow-wrap:anywhere}
.work-category{font-size:11px;color:#69796c;background:#edf1ea;padding:4px 8px;border-radius:4px;white-space:nowrap}
.work-actions{gap:8px;flex-direction:row;flex-shrink:0;width:auto}.work-actions button{padding:8px 12px;font-size:12px;min-height:36px;flex:none}
.work-layout{grid-template-columns:minmax(0,1fr) 300px;gap:20px}
.live-scene{height:clamp(400px,calc(100svh - 182px),720px);min-height:0;border-radius:8px;background:#14231d}
.viewer-top{top:14px;left:14px;right:14px}.viewer-top .glass{letter-spacing:0;font-size:10px;padding:6px 8px}
.quality-control{font-size:11px;padding:5px 8px}.quality-control select{font-size:11px}
.camera-caption{left:20px;bottom:72px;max-width:75%}.camera-caption small{font-size:10px;letter-spacing:0;margin-bottom:6px}.camera-caption strong{font-size:21px;font-weight:500}.camera-caption p{font-size:12px;line-height:1.6;margin-top:6px;max-width:400px}
.scene-controls{left:14px;right:14px;bottom:14px}.scene-controls button{font-size:11px;padding:8px 10px;min-height:34px}
.viewer-under{margin:9px 0 0;min-height:18px;font-size:11px;color:#768277}.viewer-under>span:last-child{font-size:10px}
.guide-panel{top:16px;padding:16px;background:#fff;border:1px solid var(--line);border-radius:8px;max-height:calc(100svh - 150px);overflow:auto;scrollbar-width:thin}
.guide-panel .author{padding:0;gap:9px;margin:0}.guide-panel .avatar{height:30px;width:30px;font-family:inherit;font-size:12px}.author b{font-size:13px}.author small{display:none}.public{font-size:10px;padding:4px 6px}.visitor .public{display:none}
.work-intro{font-size:12px;line-height:1.75;color:#67766c;margin:12px 0 18px;white-space:pre-line}
.guide-heading{margin:0 0 10px}.guide-heading h2{font-size:14px;font-weight:600;line-height:1.5;margin:0}
.tour-player{background:#f5f7f3;border-color:#e3e9df;padding:10px;margin-bottom:12px;border-radius:6px}.tour-progress{font-size:10px;color:#72816d}.tour-progress-track{margin:8px 0;height:2px}.tour-progress-track span{height:2px}
.tour-player-buttons{gap:6px}.tour-player-buttons .primary{font-size:12px;padding:7px 10px;min-height:32px}.tour-player-buttons .secondary{min-height:32px;padding:5px 10px}
.tour-list{gap:7px}.tour-stop{gap:10px;padding:11px 10px;border-radius:6px;background:#fff;border-color:#e3e8e0;min-height:66px}.tour-stop.active{background:#edf3e8;border-color:#9cb58b}.tour-number{font-family:inherit;font-size:11px;color:#8c9d86}.tour-stop strong{font-size:12px;font-weight:600;line-height:1.5;margin-bottom:3px}.tour-stop small{font-size:11px;line-height:1.6;color:#76846d}.tour-arrow{font-size:12px}
.story-panel,.facts-details{margin:16px 0 0;padding:12px 0 0;border-top:1px solid var(--line)}
.story-panel summary,.facts-details summary{font-size:12px;font-weight:600;color:#4c6252;cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;min-height:24px}
.story-panel summary:after,.facts-details summary:after{content:'＋';font-size:14px;font-weight:400;color:#83917f}.story-panel[open] summary:after,.facts-details[open] summary:after{content:'−'}
.story-panel summary::-webkit-details-marker,.facts-details summary::-webkit-details-marker{display:none}
.story-panel>p{font-size:12px;color:#657367;line-height:1.9;margin:10px 0}.story-panel .story-note{font-size:11px;line-height:1.8;padding:2px 10px;color:#75816e}.story-panel .content-note{display:none}.story-panel #contact-info{font-size:11px;padding:10px}
.work-facts{font-size:11px;gap:10px;margin:12px 0 0;grid-template-columns:1fr 1.4fr}.work-facts dt{color:#7d8978}.work-facts dd{color:#5b6f53}
.guide-tools{gap:10px;margin-top:14px}.guide-tools .secondary{font-size:11px}.guide-tools>button:last-child{font-size:11px}
.next-scenes{margin:26px 0 0;padding:18px 0 0}.next-scenes h2{font-size:16px;font-weight:600;margin:0 0 14px}#related-scenes{display:flex;flex-wrap:wrap;align-items:stretch;gap:10px}#related-scenes a{display:flex;flex:0 1 260px;width:260px;max-width:100%;min-width:0;box-sizing:border-box;background:#fff;gap:10px;padding:8px;min-height:70px;transition:border-color .15s,background .15s}#related-scenes a:hover{border-color:#b4c6aa;background:#f9fbf6}#related-scenes a:focus-visible{outline:2px solid #5d8651;outline-offset:3px}#related-scenes a:after{content:"↗";margin-left:auto;color:#98a58f;font-size:14px;flex-shrink:0}#related-scenes a>div{min-width:0;flex:1}#related-scenes img{width:64px;height:50px;flex:0 0 64px}#related-scenes strong{margin:0;font-size:12px;line-height:1.6;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}#related-scenes small{display:block;font-size:10px;line-height:1.4;margin-bottom:4px}#related-scenes small:empty{display:none}#related-scenes span{display:none}
.shared-message{padding:10px 14px;margin-bottom:14px}.shared-message p{margin-top:4px;font-size:13px}.preview-bar{margin-bottom:14px;padding:10px 14px}
.presentation .work-heading{padding:0 0 16px}.presentation .work-page{padding-top:20px}.presentation .live-scene{height:calc(100svh - 160px);min-height:400px}.presentation .guide-panel{max-height:calc(100svh - 125px)}.presentation .back-link{display:none}
@media(min-width:1800px){.cards{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1100px){header{gap:28px}.cards{grid-template-columns:repeat(3,minmax(0,1fr))}.work-layout{grid-template-columns:minmax(0,1fr) 280px;gap:16px}.guide-panel{padding:14px}.work-category{display:none}}
@media(max-width:760px){
 header{height:56px;padding:0 16px;gap:24px}.brand{font-size:21px;gap:3px}.brand-icon{font-size:29px;margin-right:2px}nav{gap:16px}.nav{font-size:12px}.head-right .primary{font-size:11px;padding:7px 10px;min-height:32px}.head-right{gap:8px}
 main,.work-page{padding:0 16px}.collection{padding-top:16px}.collection-heading{flex-wrap:wrap;gap:12px;margin-bottom:12px}.collection-heading h1{font-size:20px}.collection-heading .tools{width:100%;gap:8px}.search{flex:1;min-width:0}.search input{width:100%;font-size:12px}.tools select{min-width:103px;width:103px;font-size:11px}
 .filterbar{padding-bottom:14px;overflow:visible}.filters{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;gap:4px;padding-bottom:2px}.filters::-webkit-scrollbar{display:none}.filters button{flex-shrink:0;font-size:12px;padding:7px 10px}
 .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px}.card-title{padding:0 10px;margin:10px 0 8px}.card h3{font-size:13px;line-height:1.5}.card-foot{padding:0 10px 10px;gap:5px;font-size:10px}.card-foot>span:last-child{font-size:9px}.author-dot{width:18px;height:18px;font-size:9px}.card-badge{top:7px;left:7px;font-size:9px;padding:3px 5px}.card-type{display:none}
 footer{padding:18px 16px;margin-top:24px;gap:10px;flex-wrap:nowrap}footer .brand{font-size:16px}footer small{font-size:9px}
 .work-detail{padding-bottom:calc(74px + env(safe-area-inset-bottom,0px))}.work-heading{min-height:66px;gap:10px;padding:12px 0;flex-wrap:wrap}.work-identity{display:block;min-width:0}.work-heading h1{font-size:19px;line-height:1.45;letter-spacing:-.4px}.back-link{width:30px;height:30px}.work-actions{width:auto;gap:6px;flex-wrap:wrap;margin-left:auto}.work-actions button{font-size:11px;padding:7px 10px;min-height:34px}.work-actions .primary{font-size:11px}.work-actions .secondary{font-size:10px}.work-category{display:none}
 .work-layout,.viewer-section{display:block}.live-scene{height:clamp(320px,calc(100svh - 230px),560px);min-height:320px;scroll-margin-top:12px}.viewer-section{scroll-margin-bottom:80px}.viewer-under{font-size:10px;margin:8px 0 0;line-height:1.6}.viewer-under>span:last-child{display:none}
 .viewer-top{top:12px;left:12px;right:12px}.viewer-top .glass{font-size:9px;padding:5px 7px}.quality-control,.quality-control select{font-size:10px}.camera-caption{left:16px;bottom:69px;max-width:88%}.camera-caption strong{font-size:20px}.camera-caption p{font-size:11px;line-height:1.6}.scene-controls{left:12px;right:12px;bottom:12px}.scene-controls button{font-size:10px;padding:7px 8px;min-height:34px}
 .guide-panel{position:fixed;top:auto;left:0;right:0;bottom:0;max-height:78svh;border-radius:14px 14px 0 0;border:1px solid #d7e0d2;border-bottom:0;padding:0;overflow:auto;background:#fff;box-shadow:0 -5px 24px #253d2d10}
 .sheet-handle{background:#fff;padding:21px 16px 14px;gap:12px}.guide-panel[data-sheet="peek"] .sheet-handle{padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))}.sheet-handle b{font-size:13px}.sheet-handle small{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sheet-content{padding:16px 18px calc(22px + env(safe-area-inset-bottom,0px))}.guide-panel .guide-heading h2{font-size:14px}.guide-panel .tour-player{margin-top:0}.work-intro{font-size:12px;margin:10px 0 16px}.tour-stop{padding:11px 10px;min-height:66px}.tour-stop strong{font-size:13px}.tour-stop small{font-size:11px}.sheet-story-link{font-size:12px;margin:14px auto 0}.story-panel{margin:14px 0 0}.guide-tools{margin-top:14px}
 .next-scenes{margin:20px 0 0;padding-top:16px}.next-scenes h2{font-size:15px}#related-scenes{gap:8px}#related-scenes a{flex-basis:100%;width:100%;max-width:360px}#related-scenes img{width:64px;height:50px}#related-scenes strong{font-size:12px}
 .presentation .work-page{padding-top:12px}.presentation .live-scene{height:calc(100svh - 190px);min-height:320px}.presentation .guide-panel{max-height:78svh}.first-hint{font-size:11px}.tour-overlay{font-size:10px}
}
@media(max-width:390px){header{gap:18px}.brand{font-size:19px}.brand-icon{font-size:27px}.card-foot{gap:4px}.card-foot>span:last-child{font-size:9px}.work-heading h1{font-size:18px}}
@media(prefers-reduced-motion:reduce){.card,.card img,.card-type{transition:none}}
@media(max-width:760px){header #upload{width:32px;min-height:32px;padding:0;font-size:0;gap:0}header #upload:after{content:'＋';font-size:20px;line-height:1}}

/* Keep publishing discoverable, including before author verification. */
@media(max-width:760px){header #upload{width:auto;min-height:34px;padding:7px 10px;font-size:11px;white-space:nowrap}header #upload:after{content:none}}
@media(max-width:420px){header{gap:12px}nav{gap:12px}.nav{font-size:11px}}
.author-page{min-height:100svh;display:flex;flex-direction:column}.author-page main{width:100%;flex:1;padding-top:64px;padding-bottom:64px}.author-card{max-width:460px;margin:auto;background:#fff;border:1px solid var(--line);border-radius:10px;padding:30px}.author-card h1{font-size:26px;font-weight:600;letter-spacing:-.5px;margin:14px 0 10px}.author-card>p{font-size:14px;color:#68766c;line-height:1.8}.author-icon{width:42px;height:42px;background:#eaf0e6;color:#345c43;border-radius:10px;display:grid;place-items:center;font-size:24px}.author-card .entry-help{margin:22px 0;padding:14px;background:#f5f7f3;border-radius:6px;font-size:12px;line-height:1.9;color:#5d7061}.entry-help code{overflow-wrap:anywhere;font-size:11px}.author-card details{border-top:1px solid var(--line);padding-top:16px}.author-card summary{cursor:pointer;font-size:12px;color:#526d5b}.author-card label{font-size:12px;margin-top:14px}.author-card .wide{margin-top:16px;min-height:40px}.author-error{font-size:12px;color:#976044;line-height:1.7;min-height:20px}.author-back{font-size:12px;color:#6e7d72;display:inline-block;margin-top:12px}.author-page footer{margin-top:0}.author-page header .back-link{margin-left:auto;font-size:12px;width:auto;padding:0 12px}@media(max-width:760px){.author-page main{padding-top:32px;padding-bottom:32px}.author-card{padding:24px}.author-card h1{font-size:24px}}
@media(max-width:420px){header nav{display:none}header .head-right>.avatar{display:grid;width:30px;height:30px}}
/* Viewers can share an independent viewpoint while the author tour stays intact. */
.community-views{border-top:1px solid var(--line);padding-top:14px;margin-top:16px}.community-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.community-heading h2{font-size:13px;font-weight:600;margin:0}.community-heading button{font-size:11px;color:#365f45;padding:5px 0;white-space:nowrap}.community-views>p{font-size:11px;color:#83907f;line-height:1.8;margin:8px 0 0}
.community-item{border:1px solid #e3e8df;background:#f9faf7;border-radius:6px;margin-top:8px;overflow:hidden}.community-view{display:block;width:100%;text-align:left;padding:11px}.community-view:hover{background:#eef3e9}.community-view strong{font-size:12px;font-weight:600;display:block;line-height:1.6}.community-view span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:11px;color:#6b7c68;line-height:1.7;margin:4px 0}.community-view small{font-size:10px;color:#8b9784}.revoke-own{font-size:10px;color:#8c7467;padding:0 11px 9px;text-decoration:underline;text-underline-offset:3px}
.received-view{padding:13px;background:#edf4e7;border:1px solid #c8d9b9;border-radius:7px;margin-bottom:18px}.received-view>small{font-size:10px;color:#6f8860}.received-view h3{font-size:14px;line-height:1.6;font-weight:600;margin:7px 0}.received-view p{font-size:12px;color:#5d7352;line-height:1.85;margin:7px 0 12px;white-space:pre-line;overflow-wrap:anywhere}.received-view .secondary{font-size:11px;background:#ffffff99;min-height:32px;padding:7px 10px}.camera-caption p{max-height:4.8em;overflow:hidden}
.recommend-dialog{max-width:600px;padding:26px}.recommend-dialog .modal-title{align-items:flex-start;gap:14px;margin-bottom:16px}.recommend-dialog h2{font-size:23px;font-weight:600;letter-spacing:-.5px;margin:0}.recommend-dialog .modal-title p{font-size:12px;color:#7a8878;margin:8px 0 0;line-height:1.7}.recommend-snapshot{position:relative;background:#14231d;border-radius:7px;overflow:hidden;height:150px}.recommend-snapshot img{display:block;width:100%;height:100%;object-fit:cover}.recommend-snapshot span{position:absolute;bottom:9px;left:10px;font-size:10px;color:#d3e0c9;background:#173023b3;padding:4px 7px;border-radius:4px}.recommend-dialog .form-label{margin-top:14px;gap:7px}.recommend-dialog .form-grid{margin-top:14px;gap:12px}.recommend-dialog .check-row{font-size:12px;margin:14px 0 5px}.recommend-dialog .muted{line-height:1.8;margin:4px 0 12px}.recommend-options summary{font-size:11px;color:#7a8974;cursor:pointer}.recommend-dialog .wide{margin-top:16px}.recommend-dialog #recommend-status{font-size:12px;line-height:1.8;color:#8d6c52;margin:8px 0 0}.recommend-dialog #recommend-result{border-top:1px solid var(--line);margin-top:18px;padding-top:14px}.recommend-dialog #recommend-result-note{font-size:12px;line-height:1.8;color:#527147;margin:0}.recommend-dialog .copy-row{margin:12px 0}.recommend-dialog .copy-row input{font-size:11px}.recommend-result-actions{display:flex;gap:10px;flex-wrap:wrap}.recommend-result-actions .secondary{font-size:11px}.recommend-dialog #recommend-revoke{color:#8c7467}
@media(max-width:760px){.recommend-dialog{width:94vw;padding:22px}.recommend-dialog h2{font-size:21px}.recommend-snapshot{height:135px}.recommend-dialog .copy-row{gap:6px}.recommend-dialog .copy-row button{font-size:11px;padding:8px 10px}.community-heading button{font-size:12px}.community-view strong{font-size:13px}}
/* Optional tags carry subjects that do not need another primary category. */
.tag-field-title{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#344d3c}.tag-field-title small{font-size:10px;font-weight:400;color:#82907c}.tag-input-box{display:flex;align-items:center;flex-wrap:wrap;gap:5px;border:1px solid #dfe4d7;background:#fff;border-radius:5px;padding:6px;min-height:42px}.tag-input-box:focus-within{border-color:#8ba37b;box-shadow:0 0 0 2px #244e3c08}.tag-input-chips{display:contents}.tag-input-box input{border:0;background:transparent;padding:5px;min-width:120px;max-width:100%;width:auto;flex:1;font-size:12px;outline:none}.tag-input-chip{display:inline-flex;align-items:center;gap:5px;background:#eaf1e4;color:#46643a;border-radius:4px;padding:3px 4px 3px 8px;font-size:11px;max-width:100%}.tag-input-chip>span{overflow-wrap:anywhere}.tag-input-chip button{font-size:16px;color:#738b64;min-width:22px;min-height:22px;padding:0}.tag-suggestions{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-top:8px}.tag-suggestions button{font-size:10px;color:#85927d;background:#f0f3ec;border-radius:4px;padding:5px 7px}.tag-suggestions button:hover,.tag-suggestions button.selected{color:#3d6132;background:#e7efde}.tag-status{font-size:11px;color:#a46d42;line-height:1.7;margin:6px 0 0}.tag-status:empty{display:none}
.card-tags{display:flex;gap:5px;flex-wrap:wrap;padding:0 12px;margin:0 0 10px}.card-tags span{font-size:10px;color:#7a8a70;background:#f2f5ee;padding:3px 6px;border-radius:4px;line-height:1.3}.card:has(.card-tags) .card-title{margin-bottom:7px}.work-tags{display:flex;flex-wrap:wrap;gap:5px;margin:-5px 0 16px}.work-tags a{display:inline-flex;border:1px solid #e3e9de;background:#f5f8f1;border-radius:4px;color:#718567;font-size:11px;padding:4px 7px}.work-tags a:hover{color:#355e2b;border-color:#a6bc97}.work-intro:has(+.work-tags:not([hidden])){margin-bottom:12px}
.active-tag-filter{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #dce6d4;background:#edf3e7;color:#4d6f3e;padding:7px 11px;border-radius:6px;margin:0 0 14px;font-size:12px}.active-tag-filter button{font-size:11px;color:#7f9271;padding:4px 0}.viewer-under>span{min-width:0;flex:1}.recommend-shortcut{font-size:11px;font-weight:500;color:#3d654c;white-space:nowrap;padding:0 0 2px;min-height:22px}.recommend-shortcut:hover{text-decoration:underline;text-underline-offset:3px}
@media(max-width:760px){.work-actions{max-width:100%}.recommend-shortcut{font-size:11px}.tag-suggestions button{font-size:11px;min-height:30px}.tag-input-chip button{min-width:24px;min-height:24px}.card-tags{padding:0 10px;margin-bottom:8px;gap:4px}.card-tags span{font-size:9px;padding:3px 5px}.work-tags{margin-bottom:14px}}

form label>.field-name{color:#344d3c}.field-name em{font-style:normal;color:#8aa076;margin-left:3px}
.share-purpose{font-size:12px;line-height:1.7;color:#7a8878;margin:8px 0 0}.recommend-visibility{font-size:12px;line-height:1.85;color:#6c805f;margin:16px 0 0;padding:11px 13px;background:#f0f5eb;border-radius:6px}.recommend-dialog #recommend-home{margin-top:14px}.recommend-dialog #recommend-submit:disabled{opacity:.4}

.share-advanced{margin-top:12px}.share-advanced summary{font-size:11px;color:#7d8e72;cursor:pointer}.share-advanced .secondary{margin-top:10px;font-size:11px;min-height:32px}.share-advanced .selected{background:#e7efdf;border-color:#a4bc94;color:#35572b}
.share-expiry-status{font-size:11px;color:#7c8c72;line-height:1.8;margin:-4px 0 12px}.share-dialog .form-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.share-dialog .form-grid label{min-width:0}.share-dialog .form-grid select,.share-dialog .form-grid input{width:100%;max-width:100%;min-width:0}.share-dialog #share-inherit-note{font-size:11px;line-height:1.9;color:#6d815e;margin:12px 0 0}

/* Browsing and authoring have separate entry points, including for owners. */
body:not(.my-space) .mine-only{display:none!important}
.browsing .author-actions,.browsing #upload,.browsing #edit-work,.browsing #import-model{display:none!important}
.management .next-scenes,.management .community-views,.management #recommend-now,.management #recommend-under,.management #received-view,.management #recommend-view{display:none!important}
.management .work-heading{border-bottom:1px solid var(--line)}
.management .work-heading:before{content:'作品工作页';font-size:12px;color:#657e67;white-space:nowrap}
.management #import-model{display:none!important}
.management.previewing .author-actions,.management.previewing .work-heading .danger-button{display:none!important}
.management .editor-dialog{max-width:1100px;width:94vw}.management .editor-dialog .modal-title{align-items:flex-start}
.editor-actions>a{text-decoration:none;font-size:12px;padding:10px;white-space:nowrap}
.work-more{position:relative;margin-left:auto;font-size:12px}.work-more summary{cursor:pointer;padding:9px 12px;border:1px solid var(--line);border-radius:6px;list-style:none}.work-menu{position:absolute;right:0;top:100%;z-index:5;min-width:150px;background:white;padding:8px;box-shadow:0 8px 24px #24372d20;border:1px solid var(--line);border-radius:8px;display:grid;gap:6px}.work-menu a,.work-menu button{text-align:left;width:100%;box-sizing:border-box}.local-preview-link{display:inline-block;margin:0 0 20px;padding:10px 14px;text-decoration:none;font-size:12px}

#editor-cover-preview{display:block;width:100%;max-width:340px;max-height:230px;object-fit:contain;background:#17231e;border:1px solid var(--line);border-radius:8px;margin:12px 0}#frame-cover{margin:8px 0}.pending-cover{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.pending-cover img{width:100px;height:68px;object-fit:cover;border:1px solid #d2dfc9;border-radius:6px;background:#17231e}.pending-cover span{max-width:240px;font-size:12px;line-height:1.7}.preview-bar{flex-wrap:wrap}.pending-cover button{white-space:nowrap}

/* Author name followed by the original publication date. */
.card-foot{flex-wrap:wrap;gap:5px 8px}.card-date{font-size:10px;color:#768277;white-space:nowrap}.card-author{max-width:100%}.collection-heading{margin-bottom:20px}
@media(max-width:700px){header{gap:16px;flex-wrap:wrap;height:auto;min-height:72px;padding-top:10px;padding-bottom:10px}.brand{font-size:20px}nav{gap:15px}.card-date{font-size:9px}}

@media(max-width:420px){header nav{display:flex;flex-wrap:wrap}header .head-right{margin-left:auto}}

/* A compact workspace heading keeps the works in the first screen. */
.workspace-tools{display:flex;align-items:center;gap:16px}.workspace-tools .local-preview-link{margin:0;padding:8px 0;font-size:12px;color:#68746c;white-space:nowrap}.workspace-tools .local-preview-link:hover{color:#244e3c}.workspace-heading{flex-wrap:wrap;gap:12px}#mine #drafts{padding-bottom:24px}
@media(max-width:420px){.workspace-tools{gap:12px}.workspace-tools .primary{padding:8px 10px}}

.author-profile-summary{display:flex;align-items:end;gap:14px}.author-profile-summary label{flex:1}.profile-link{font-size:12px;white-space:nowrap;padding-bottom:12px;color:#416d50;text-decoration:underline}.contact-settings{margin-top:20px}.contact-settings #edit-contact{width:100%;padding:10px;border:1px solid var(--line);background:#f4f6f2;border-radius:5px;margin-top:10px}.contact-settings small{display:block;color:#7c897c;font-size:11px;margin-top:8px}.contact-qr,#edit-contact-qr{width:140px;height:140px;object-fit:contain;display:block;margin-top:12px;background:white}.editor-submit-actions{display:flex;gap:10px;flex-shrink:0}.more-tags summary{font-size:12px;color:#5b7661;cursor:pointer;padding:10px 0}.more-tags>div{display:grid;gap:12px;padding:4px 0}.more-tags>div>div{display:flex;flex-wrap:wrap;gap:6px}.tag-group-label{width:100%;font-size:11px;color:#849082;margin-bottom:2px}.more-tags button{font-size:11px;padding:6px 9px;border:1px solid #dbe4d9;border-radius:5px;background:white;color:#60745f}.more-tags button.selected{background:#e3ecdf;color:#244e3c}.author-profile-summary input[readonly]{background:#f4f6f2;color:#637369}@media(max-width:600px){.editor-actions{flex-wrap:wrap}.editor-submit-actions{margin-left:auto}.workspace-tools{flex-wrap:wrap}}

.editor-actions #editor-status{flex:1;min-width:140px;color:#8a5038;font-size:12px;line-height:1.6}.editor-actions #editor-status:empty{display:none}.editor-actions{flex-wrap:wrap}.editor-submit-actions{margin-left:auto}

/* Keep management beside each work, in a compact footer aligned to the right. */
.managed-work{display:flex;flex-direction:column;padding:0;background:#fff;border-radius:8px}
.managed-work>.card{display:flex;flex-direction:column;flex:1;border:0;border-radius:8px 8px 0 0;box-shadow:none}
.managed-controls{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:2px 12px;padding:6px 12px;border-top:1px solid #edf0e9;min-height:44px}
.managed-controls .managed-meta{margin:0;color:#899482;font-size:10px;line-height:1.6;text-align:right;overflow-wrap:anywhere}
.managed-controls .work-actions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:nowrap;gap:12px;margin:0;width:auto;max-width:100%}
.managed-controls .work-actions>a{border:0;border-radius:4px;background:transparent;padding:5px 0;min-height:30px;font-size:12px;white-space:nowrap;color:#45634b}
.managed-controls .work-actions>a:hover{color:#244e3c;text-decoration:underline;text-underline-offset:4px}
.managed-controls .work-more{margin:0}
.managed-controls .work-more summary{display:flex;align-items:center;gap:4px;border:0;border-radius:4px;padding:5px 0;min-height:30px;font-size:12px;color:#70806b}
.managed-controls .work-more summary:after{content:'⌄';font-size:11px;color:#9aa692}
.managed-controls .work-more summary::-webkit-details-marker{display:none}
.managed-controls .work-more[open] summary{color:#244e3c}
.managed-controls .work-menu{top:auto;bottom:calc(100% + 6px);min-width:144px;z-index:8}
@media(max-width:760px){.managed-controls{padding:6px 10px;gap:1px 10px}.managed-controls .managed-meta{font-size:10px}.managed-controls .work-actions{gap:12px}.managed-controls .work-actions>a,.managed-controls .work-more summary{font-size:11px;min-height:32px}}

#publication-state{font-size:13px;line-height:1.6;color:#315c41;flex:1;min-width:180px}#publication-state.publication-error{color:#a34530;font-weight:500}

.publication-cover-canvas{position:fixed;left:-10000px;top:0;width:900px;height:600px;pointer-events:none}#editor-form[aria-busy=true] .editor-submit-actions{cursor:progress}

.managed-controls .work-menu{max-height:60vh;overflow-y:auto}
