:root{font-family:Inter,"Microsoft YaHei",sans-serif;color:#20312d;background:#f5f6f2;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer;border:0;background:#215c48;color:white;border-radius:9px;padding:12px 19px;font-weight:600}button:disabled{opacity:.5;cursor:wait}.secondary{background:#fff;color:#315047;border:1px solid #dce3dc}button:hover{filter:brightness(.96)}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #d29e40;outline-offset:3px}h1{font-size:30px;letter-spacing:-.7px;margin:12px 0 24px}p{line-height:1.8}small,.muted{color:#6b7b72;font-size:13px}.brand{font-weight:750;font-size:19px;margin-bottom:45px}label{display:block;font-size:14px;margin:18px 0}input,textarea{display:block;width:100%;padding:13px;border:1px solid #d4ded7;border-radius:8px;background:white;color:#20312d;margin-top:8px}textarea{resize:vertical}.login{max-width:420px;margin:9vh auto;padding:24px}.login h1{font-size:39px;line-height:1.4}.login form button{width:100%;margin-top:8px}aside{width:238px;position:fixed;height:100vh;left:0;top:0;padding:32px 22px;background:#edf1ea;border-right:1px solid #dce3d9;display:flex;flex-direction:column}aside small{letter-spacing:1px;margin:15px 8px}.agents{display:flex;gap:9px}.agents button{flex:1;background:white;color:#496353;border:1px solid #dce3d9}.agents button.selected{background:#215c48;color:#fff}nav{display:grid;gap:6px}nav button{text-align:left;background:transparent;color:#5b6d61;font-weight:500}nav button.selected{background:#dce8dd;color:#173f31}.aside-bottom{margin-top:auto;display:grid;gap:16px;font-size:13px}main{margin-left:238px;padding:42px 5vw;max-width:1600px}header{display:flex;justify-content:space-between;align-items:center}.eyebrow{font-size:11px;letter-spacing:2px;color:#6b7c70}.notice{background:#eef0e5;border:1px solid #e0e3d1;color:#657047;padding:13px 17px;border-radius:9px;font-size:13px;line-height:1.7;margin-bottom:26px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card,.panel{border:1px solid #dfe5dc;background:#fff;border-radius:13px;padding:24px;margin-bottom:22px}.card strong{display:block;font-size:28px;margin:16px 0}.panel h2{font-size:18px;margin:0 0 18px}.toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.toolbar h2{font-size:19px}.empty{padding:70px 15px;text-align:center;background:#fff;border:1px dashed #d4ddd1;border-radius:12px;color:#74806f}.record{padding:20px;background:#fff;border:1px solid #dfe5dc;border-radius:12px;margin:12px 0}.record h3{margin:0 0 10px;font-size:17px}.record p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}.badge{display:inline-block;font-size:12px;background:#eef2e9;border-radius:5px;padding:5px 8px;color:#536544}.meta{font-size:12px;color:#849081;margin-top:16px}pre{overflow:auto;white-space:pre-wrap;font-size:12px;line-height:1.7;max-height:360px}dialog{border:1px solid #dfe5dc;border-radius:15px;padding:26px;width:min(580px,92vw)}dialog::backdrop{background:#14271d77}.actions{display:flex;justify-content:flex-end;gap:10px}#message{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#233e31;color:#fff;border-radius:9px;padding:14px 20px;max-width:90vw;z-index:10;box-shadow:0 6px 30px #0002}#message:empty{display:none}[hidden]{display:none!important}.steps{display:flex;flex-wrap:wrap;gap:10px;font-size:13px}.steps span{background:#f1f4ed;padding:10px;border-radius:7px}@media(max-width:800px){aside{position:static;width:100%;height:auto;padding:20px}.brand{margin-bottom:18px}aside small,.aside-bottom{margin-top:15px}nav{display:flex;overflow:auto}nav button{white-space:nowrap}.agents{max-width:220px}.aside-bottom{display:flex;align-items:center;justify-content:space-between}main{margin:0;padding:25px 18px}.cards{grid-template-columns:1fr}.card{margin-bottom:0}.cards{margin-bottom:20px}h1{font-size:25px}.login{margin:5vh auto}}
select{font:inherit;display:block;width:100%;padding:13px;border:1px solid #d4ded7;border-radius:8px;background:white;color:#20312d;margin-top:8px}select:focus-visible{outline:3px solid #d29e40;outline-offset:3px}
/* Production workspace forms. */
aside{overflow-y:auto}
.panel textarea{width:100%;box-sizing:border-box}.panel label{display:block;margin:12px 0}
.debug-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.debug-grid .record{min-width:0}.debug-grid textarea{min-height:110px}#content .panel>button{margin:4px} .debug-grid details{margin:18px 0}@media(max-width:1200px){.debug-grid{grid-template-columns:1fr}}
.panel input[type=checkbox]{display:inline-block;width:auto;margin:0 10px;vertical-align:middle}.agents button{min-width:0;padding-left:10px;padding-right:10px}
/* Workspace navigation: stable header/footer, independently scrollable groups. */
.sidebar{width:252px;padding:0;background:#f9fbf9;border-right:1px solid #e0e8e2;height:100dvh;overflow:hidden;z-index:20}
.sidebar-head{display:flex;align-items:center;justify-content:space-between;padding:25px 20px 19px;flex-shrink:0}
.sidebar .brand{display:flex;align-items:center;gap:11px;margin:0;font-size:17px;letter-spacing:-.3px;color:#193e31}
.brand-mark{display:grid;place-items:center;width:35px;height:35px;background:#215c48;color:#fff;border-radius:11px;font-size:23px;box-shadow:0 3px 8px #215c4818}
.sidebar .brand small{display:block;margin:5px 0 0;font-size:9px;letter-spacing:1.8px;color:#85978b;font-weight:500}
#sidebar-body{display:flex;flex-direction:column;flex:1;min-height:0}
.workspace-picker{margin:0 16px 16px;padding:12px;background:#edf3ee;border:1px solid #e0e9e1;border-radius:12px}
.workspace-caption{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:10px;font-size:11px;color:#647b6d}
#workspace-note{font-size:10px;color:#557a64}
.sidebar .agents{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;max-width:none}
.sidebar .agents button{padding:9px 0;border:1px solid transparent;border-radius:8px;background:#ffffffb3;color:#637a6b;font-size:13px;min-height:36px;transition:background .15s}
.sidebar .agents button:hover{background:#dce9df;filter:none}
.sidebar .agents button.selected{background:#215c48;color:#fff;box-shadow:0 2px 4px #215c4820}
#nav{display:block;flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:0 12px 12px;scrollbar-width:thin;scrollbar-color:#cbd8cd transparent;overscroll-behavior:contain}
.nav-group+.nav-group{margin-top:18px}
.nav-group-label{font-size:10px;letter-spacing:1px;font-weight:600;color:#8a9b90;padding:0 12px;margin:0 0 7px}
#nav button{position:relative;display:flex;align-items:center;gap:11px;width:100%;min-height:40px;padding:10px 12px;margin:3px 0;border:1px solid transparent;border-radius:8px;white-space:normal;font-size:13px;line-height:1.4;color:#566b5e;background:transparent;text-align:left;transition:background .15s,color .15s}
#nav button:hover{background:#edf2ee;color:#214d38;filter:none}
#nav button.selected{background:#e3eee6;border-color:#d8e6dc;color:#205539;font-weight:650}
#nav button.selected::before{content:'';position:absolute;left:-1px;top:11px;bottom:11px;width:3px;border-radius:4px;background:#338059}
.nav-icon{display:inline-flex;justify-content:center;align-items:center;flex:0 0 20px;font-size:17px;font-weight:400;color:#7a9081;line-height:1}
.selected .nav-icon{color:#2c704d}
.nav-label{min-width:0}
.sidebar .aside-bottom{flex-shrink:0;display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:14px 18px 18px;background:#f9fbf9;border-top:1px solid #e5ebe6}
#user{display:block;width:100%;font-size:11px;line-height:1.6;color:#728377;overflow-wrap:anywhere}
.sidebar .aside-bottom button{flex:1;padding:8px 10px;font-size:11px;font-weight:500;min-height:34px;background:#fff;border:1px solid #e0e7e1;color:#607267}
.nav-toggle{display:none}
#main-content{margin-left:252px;min-width:0;padding-top:34px}
#main-content>header h1{margin:10px 0 22px;font-size:27px}
.sidebar button:focus-visible{outline:2px solid #49886a;outline-offset:-2px}
@media(max-width:800px){
 .sidebar{position:sticky;top:0;width:100%;height:auto;max-height:85dvh;box-shadow:0 2px 10px #173d3110}
 .sidebar-head{padding:13px 18px}
 .sidebar .brand{font-size:15px}.brand-mark{width:31px;height:31px;border-radius:9px;font-size:21px}
 .sidebar .brand small{font-size:8px;margin-top:3px}
 .nav-toggle{display:block;font-size:12px;padding:9px 13px;background:#edf3ee;color:#315c43;border:1px solid #dce7df;min-height:38px}
 #sidebar-body{display:none;overflow:hidden;flex:auto;min-height:0}
 .sidebar.menu-open #sidebar-body{display:flex}
 .sidebar.menu-open{height:85dvh}
 .workspace-picker{margin:0 16px 14px}.sidebar .agents button{min-height:40px}
 #nav button{min-height:44px}.nav-group+.nav-group{margin-top:15px}
 .sidebar .aside-bottom{padding:10px 18px;align-items:center}.sidebar .aside-bottom button{flex:0 1 auto}#user{flex:1;width:auto}
 #main-content{margin-left:0;padding:24px 18px}.notice{font-size:12px;margin-bottom:20px}
 #main-content>header h1{font-size:23px}.eyebrow{font-size:10px}
}
@media(prefers-reduced-motion:reduce){.sidebar button{transition:none!important}}

.production-gallery{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0}.production-gallery img{width:150px;max-width:100%;height:auto;border-radius:8px}.production-copy{white-space:pre-wrap}.button-link{display:inline-block;padding:10px 14px;border-radius:8px;background:#17695c;color:white;text-decoration:none}.record>.notice{white-space:pre-wrap}

.review-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:20px}.image-preview{padding:8px;background:#f4f6f3;color:#315047;display:flex;flex-direction:column;gap:8px;align-items:center;min-width:0;cursor:zoom-in}.review-gallery .image-preview img{width:100%;max-width:460px;height:auto}.image-preview span{font-size:13px}.image-viewer{width:min(1320px,96vw);max-width:96vw;max-height:96vh;padding:12px;background:#edf1eb}.image-viewer::backdrop{background:#101913dd}.image-viewer-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:0 0 12px}.image-viewer-toolbar strong{margin-right:auto}.image-viewer-toolbar button,.image-viewer-toolbar a{padding:9px 12px;font-size:14px}.image-viewer-viewport{overflow:auto;max-height:calc(96vh - 115px);text-align:center}.image-viewer-viewport img{display:block;max-width:100%;max-height:calc(96vh - 115px);width:auto;height:auto;margin:auto}.image-viewer-viewport.actual-size img{max-width:none;max-height:none;margin:0 auto}@media(max-width:600px){.image-viewer-toolbar strong{width:100%}.review-gallery{grid-template-columns:1fr}}
/* Schedule overview: compact cover, readable copy, date always visible. */
.schedule-controls{margin:24px 0 18px}.schedule-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.schedule-stat{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;background:#fff;color:#62756a;border:1px solid #dfe7df;text-align:left}.schedule-stat strong{font-size:29px;font-weight:650;color:#244f3b}.schedule-stat.active{background:#e8f1e9;border-color:#73a182;box-shadow:inset 0 0 0 1px #73a182}.schedule-stat.active span{color:#244f3b}.schedule-search{display:flex;gap:10px;margin-top:18px;max-width:560px}.schedule-search input{margin:0;min-width:0}.schedule-search button{flex-shrink:0}.schedule-bulk{display:flex;align-items:center;gap:10px;min-height:38px;margin:12px 0}.schedule-bulk>span{margin-right:auto;font-size:13px;color:#6b7b72}.schedule-bulk button{font-size:12px;padding:8px 12px}.schedule-group{margin:20px 0}.schedule-group-title{font-size:14px;color:#57725f;display:flex;align-items:center;gap:12px;margin:0 0 12px}.schedule-group-title::after{content:'';height:1px;background:#dfe6df;flex:1}.schedule-item{background:#fff;border:1px solid #dfe6df;border-radius:13px;margin-bottom:12px;overflow:hidden}.schedule-item-main{display:grid;grid-template-columns:18px 100px minmax(0,1fr) 168px;gap:20px;padding:20px;align-items:start}.schedule-item input[type=checkbox]{width:17px;height:17px;margin:8px 0;accent-color:#215c48;cursor:pointer}.schedule-cover{position:relative;display:block;width:100%;padding:0;overflow:hidden;background:#eff3ed;border-radius:8px;aspect-ratio:3/4}.schedule-cover img{display:block;width:100%;height:100%;object-fit:cover}.schedule-cover span{position:absolute;bottom:0;left:0;right:0;background:#193c31db;color:white;padding:7px 2px;font-size:10px;font-weight:500}.schedule-body{min-width:0}.schedule-body h3{font-size:17px;line-height:1.55;margin:7px 0;color:#243c2e;overflow-wrap:anywhere}.schedule-status{display:inline-block;font-size:11px;line-height:1.5;padding:3px 8px;border-radius:5px;background:#fff3da;color:#987027}.schedule-status.planned{background:#e7f2e9;color:#2c724a}.schedule-excerpt{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;color:#6a7b70;line-height:1.7;margin:0 0 6px;white-space:pre-line;overflow-wrap:anywhere}.schedule-tags{font-size:11px;color:#829086;margin:5px 0 12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.schedule-item-actions{display:flex;flex-wrap:wrap;gap:7px}.schedule-item-actions button,.schedule-item-actions a{font-size:11px;padding:7px 10px;line-height:1.5;border-radius:6px}.schedule-date{border-left:1px solid #edf0eb;padding-left:17px;min-width:0}.schedule-date label{font-size:11px;color:#718475;margin:0}.schedule-date input{width:100%;padding:9px 7px;font-size:12px;margin-top:9px;min-width:0}.schedule-date small{display:block;font-size:10px;line-height:1.7;margin:9px 0;color:#8a978e}.schedule-date button{font-size:11px;padding:7px 11px;margin:3px 5px 0 0}.schedule-full{border-top:1px solid #e8ece7;padding:16px 24px;background:#fcfdfb;font-size:14px;overflow-wrap:anywhere}.schedule-full p{margin:5px 0 12px}.schedule-trash{margin:24px 0;color:#6d7d72;font-size:13px}.schedule-trash summary{cursor:pointer}.schedule-trash p>button{margin-left:14px;font-size:12px;padding:7px 12px}
@media(max-width:1100px){.schedule-item-main{grid-template-columns:18px 82px minmax(0,1fr);gap:14px}.schedule-date{grid-column:3;display:flex;align-items:center;gap:8px;padding:10px 0 0;border-left:0;border-top:1px solid #edf0eb;flex-wrap:wrap}.schedule-date label{display:flex;align-items:center;gap:8px}.schedule-date input{width:145px;margin:0}.schedule-date small{margin:0}.schedule-date button{margin:0}}
@media(max-width:600px){.schedule-stats{gap:8px}.schedule-stat{padding:12px;display:block}.schedule-stat span{font-size:11px}.schedule-stat strong{display:block;font-size:24px;margin-top:5px}.schedule-item-main{grid-template-columns:18px 64px minmax(0,1fr);gap:10px;padding:14px}.schedule-body h3{font-size:15px}.schedule-date{grid-column:2 / -1}.schedule-item-actions{gap:5px}.schedule-item-actions button,.schedule-item-actions a{font-size:10px;padding:6px}.schedule-bulk{flex-wrap:wrap}.schedule-bulk>span{width:100%}.schedule-excerpt{-webkit-line-clamp:2}}
.auto-schedule{padding:20px;margin:20px 0}.auto-schedule-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.auto-schedule details{margin-top:14px}.auto-schedule summary{cursor:pointer;font-size:13px;color:#315f45}.auto-schedule label{max-width:180px}.auto-schedule details>button{margin-right:10px}.schedule-week-nav{display:flex;align-items:center;gap:8px;margin:20px 0 14px;flex-wrap:wrap}.schedule-week-nav strong{font-size:13px;margin-right:auto}.schedule-week-nav button{font-size:11px;padding:7px 10px}.schedule-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.schedule-day{min-width:0;border:1px solid #e2e9e1;background:#f8faf7;border-radius:9px;padding:10px;min-height:100px}.schedule-day h4{font-size:14px;margin:0 0 5px}.schedule-day small{font-size:10px}.schedule-calendar-post{display:block;text-align:left;width:100%;font-size:14px;font-weight:600;line-height:1.6;padding:8px 0;background:transparent;color:#244b36;overflow-wrap:anywhere}.schedule-calendar-post span{display:block;font-size:10px;color:#839185;font-weight:400}.calendar-cover{margin-top:10px}.calendar-cover .schedule-cover{max-width:90px;margin:auto}.calendar-cover .schedule-cover span{font-size:9px;padding:4px 1px}@media(max-width:1000px){.schedule-calendar{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:600px){.schedule-calendar{grid-template-columns:repeat(2,minmax(0,1fr))}.auto-schedule{padding:14px}.schedule-week-nav strong{width:100%;order:-1}}
/* Production workspace */
.production-entry{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin:20px 0}.production-entry>.panel{margin:0}.production-auto{position:relative;padding:20px 24px}.production-auto h3{font-size:17px;margin:0 0 10px}.production-auto>p{margin:7px 0;font-size:12px}.production-auto>p:first-of-type{color:#286144;font-size:14px;font-weight:600}.production-auto>button{position:absolute;right:24px;top:20px;font-size:12px;padding:9px 14px}.production-auto>details{display:inline-block;vertical-align:top;margin:10px 18px 0 0;font-size:12px}.production-auto>details[open]{display:block;width:100%}.production-auto details summary,.manual-production summary{cursor:pointer;color:#315d45}.production-auto form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 16px}.production-auto form p,.production-auto form>button{grid-column:1/-1}.production-auto form>button{justify-self:start}.production-auto form label{font-size:12px}.manual-production{padding:18px 24px}.manual-production>summary{font-size:15px;font-weight:650}.manual-production textarea{min-height:80px}.manual-production label{font-size:13px}.manual-topic-preview{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.topic-chip{font-size:12px;padding:7px 10px;border:1px solid #d5e4d6;border-radius:7px;background:#edf5ed;overflow-wrap:anywhere;max-width:100%}.manual-fields{display:grid;grid-template-columns:minmax(160px,1fr) 2fr;gap:20px}.manual-settings{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.manual-submit{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;border-top:1px solid #e5ebe3;padding-top:12px}.manual-options{margin-top:12px;font-size:13px}.production-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:24px 0}.production-overview>div{background:#eaf1e9;border:1px solid #dbe6d9;border-radius:10px;display:flex;align-items:center;justify-content:space-between;padding:16px 20px}.production-overview span{font-size:12px;color:#617867}.production-overview strong{font-size:26px;color:#285c40}.production-section-title{font-size:17px;margin:26px 0 14px}.production-task{border-left:4px solid #679477;padding:16px 20px}.production-task>p{margin:7px 0}.production-review-card{background:#fff;border:1px solid #dce5db;border-radius:12px;margin:12px 0;overflow:hidden}.production-review-card>summary{display:flex;align-items:center;gap:14px;padding:19px 22px;cursor:pointer;list-style:none}.production-review-card>summary::before{content:'›';font-size:23px;color:#6a8873;transition:transform .15s}.production-review-card[open]>summary::before{transform:rotate(90deg)}.production-review-card>summary>div{flex:1;min-width:0}.production-review-card>summary strong{display:block;font-size:16px;line-height:1.6;overflow-wrap:anywhere}.production-review-card>summary .muted{display:block;margin-top:5px;font-size:12px}.production-review-card[open]>summary{border-bottom:1px solid #e5ebe3;background:#f8fbf6}.production-review-body{padding:20px 24px}.production-text{background:#f7f9f5;padding:16px 20px;border-radius:9px;font-size:14px;overflow-wrap:anywhere}.production-text p{margin:0}.production-text .production-tags{margin-top:12px;font-size:12px;color:#6a8372}.production-review-body .review-gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.production-review-body .image-preview img{max-height:330px;width:100%;object-fit:contain}.production-review-body .image-preview span{font-size:11px}.production-review-body>details{font-size:12px;padding:10px 0;border-top:1px solid #edf0e9}.production-review-body>details summary{cursor:pointer;color:#6f8374}.production-review-body>.panel{margin:18px 0 10px;padding:16px 20px;background:#f3f7ef}.production-review-body>.panel h4{margin:0}.production-review-body>.panel>p{margin:8px 0;font-size:12px}.production-review-body .production-copy{line-height:1.9}
@media(max-width:900px){.production-auto>button{position:static;margin:6px 0}.production-auto form{grid-template-columns:repeat(2,minmax(0,1fr))}.manual-settings{grid-template-columns:repeat(2,minmax(0,1fr))}.production-overview>div{padding:12px;display:block}.production-overview strong{display:block;margin-top:6px}.manual-fields{grid-template-columns:1fr;gap:0}}
@media(max-width:600px){.production-review-card>summary{padding:15px;gap:8px}.production-review-card>summary .badge{font-size:10px}.production-review-body{padding:14px}.production-review-body .review-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.production-auto form{grid-template-columns:1fr}.manual-submit{align-items:stretch;flex-direction:column}.manual-production{padding:16px}.production-overview{gap:7px}.production-overview span{font-size:11px}}
.manual-topic-field{position:relative}.manual-topic-field>label{padding-top:4px}.manual-topic-field>button{position:absolute;right:0;top:0;padding:4px 11px;font-size:11px;line-height:1.4}.manual-topic-field textarea{margin-top:12px}
/* Debug studio: one topic per page, one manuscript per row. */
.debug-studio{max-width:1000px;margin:auto}.debug-studio [hidden]{display:none!important}.debug-save-notice:empty{display:none}.debug-save-notice{position:sticky;top:12px;z-index:5;background:#e8f3ec;border:1px solid #a6c8b2;padding:14px 18px;border-radius:10px;color:#24543c;box-shadow:0 3px 14px #143a2010}.debug-create h2,.debug-history h2{margin-top:0}.debug-history-row{display:grid;grid-template-columns:minmax(0,1fr) auto 140px;gap:16px;align-items:center;padding:14px 0;border-bottom:1px solid #e8ede8}.debug-topic-link{padding:0;background:none;color:#285b45;text-align:left;line-height:1.6}.debug-history-row small{color:#829087}.debug-topic-head{margin-top:16px}.debug-topic-head h2{font-size:26px;margin:0 0 10px}.debug-topic-head>button{margin-right:8px}.debug-manuscript-list{display:flex;flex-direction:column;gap:24px}.debug-manuscript{background:white;border:1px solid #dce5de;border-radius:14px;padding:26px 30px;margin:0;box-shadow:0 3px 12px #19352404;scroll-margin-top:90px}.debug-manuscript>h3:first-child{font-size:13px;color:#68806f;letter-spacing:.04em}.debug-manuscript>h3:nth-child(2){font-size:23px;line-height:1.5}.debug-manuscript>p{line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.debug-image-plan{padding:12px 0;border-top:1px solid #edf1ed}.debug-inline-review{border-top:1px solid #dce7df;margin-top:12px;padding-top:18px}.debug-rating{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.debug-rating label{margin:0 auto 0 0;max-width:220px}.debug-rating select{margin-bottom:0}.debug-rating button[aria-pressed=true]{background:#e3f0e8;color:#245b3c;box-shadow:inset 0 0 0 2px #609576}.debug-comment{margin:18px 0}.debug-comment textarea{min-height:82px}.debug-saved-comment{padding:10px 14px;background:#f4f7f3;border-left:3px solid #b6cebd;font-size:13px;white-space:pre-wrap}.debug-manuscript-more{border-top:1px solid #edf1ed;margin-top:18px;padding-top:14px}.debug-manuscript summary,.debug-tools summary,.debug-resources summary,.debug-action-log summary{cursor:pointer;line-height:1.7}.debug-manuscript-more>summary{color:#7a8a7e;font-size:13px}.debug-tools,.debug-action-log,.debug-resources{margin-top:22px}.debug-tools>div{margin-top:20px}.debug-manuscript textarea{width:100%}@media(max-width:650px){.debug-manuscript{padding:18px}.debug-history-row{grid-template-columns:1fr auto}.debug-history-row small{grid-column:1/-1}.debug-rating label{max-width:none;width:100%}}
/* Debug modes and manuscript editing cards. */
.debug-training-actions{margin:18px 0}.debug-dimensions{display:flex;gap:20px;flex-wrap:wrap;margin-bottom:14px}.debug-dimensions label,.debug-manuscript>label{display:flex;align-items:center;gap:8px}.debug-studio input[type=checkbox]{width:18px;height:18px;accent-color:#28694a;margin:0 8px 0 0}.debug-edit-cards{display:flex;flex-direction:column;gap:18px}.debug-edit-pages{display:flex;flex-direction:column;gap:18px}.debug-edit-card{border:1px solid #dce5df;border-radius:12px;background:#fbfcfa;padding:22px;margin:14px 0}.debug-edit-card h4{margin:0 0 16px;font-size:18px}.debug-edit-card textarea{width:100%;resize:vertical;line-height:1.85;min-height:70px;padding:14px;font-size:15px}.debug-image-card{border-top:3px solid #9db6a6}.debug-image-card label:has(.debug-image-copy){font-size:17px;font-weight:650;color:#21583e}.debug-edit-card .debug-image-copy{min-height:190px;background:#fffef4;border:1px solid #cbbf83;font-size:17px;font-weight:500;line-height:1.9}.debug-copy-preview{white-space:pre-wrap;font-size:17px;line-height:1.9;background:#fffbea;padding:16px;border-radius:8px}.debug-training-output{margin-top:28px}.debug-training-output .debug-edit-card>p{white-space:pre-wrap;line-height:1.8}.debug-training-output pre{max-height:400px;overflow:auto}@media(max-width:650px){.debug-edit-card{padding:14px}.debug-dimensions{gap:12px}}
.debug-create-settings{display:grid;grid-template-columns:1fr 150px 1fr;gap:18px}.debug-create-extra{margin:12px 0 20px}.debug-create>.panel{padding:14px;margin:14px 0}.debug-history-row{grid-template-columns:minmax(0,1fr) auto 110px 70px}.debug-history-row>button:last-child{font-size:12px;padding:7px 12px}.debug-history>details{margin-top:16px}.debug-history>details button{margin-left:14px}.debug-create textarea{line-height:1.7}@media(max-width:700px){.debug-create-settings{grid-template-columns:1fr}.debug-history-row{grid-template-columns:1fr auto}.debug-history-row small{grid-column:auto}}
.debug-edit-dock{position:sticky;bottom:12px;z-index:4;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;background:#edf5ef;border:1px solid #a6c8b2;box-shadow:0 3px 18px #19352420}.debug-edit-dock span{font-size:12px;color:#476c55}.debug-manuscript>summary{font-weight:650;cursor:pointer}.debug-editor-compact{gap:8px}.debug-editor-compact .debug-edit-card{padding:12px 16px;margin:6px 0}.debug-editor-compact .debug-edit-card h4{font-size:14px;margin-bottom:8px}.debug-editor-compact .debug-edit-pages{gap:6px}.debug-editor-compact label{font-size:12px;margin:8px 0}.debug-editor-compact .debug-edit-card textarea{min-height:38px;padding:8px 10px;font-size:14px;line-height:1.6}.debug-editor-compact .debug-edit-card .debug-image-copy{min-height:120px;font-size:15px}.debug-editor-compact summary{font-size:13px}.debug-editor-compact .actions button{font-size:12px;padding:7px 10px}.debug-revision-notes{background:#edf5ef;border-left:3px solid #78a487;padding:12px 16px;margin-bottom:16px}.debug-revision-notes h4{margin:0 0 8px}.debug-revision-notes p{margin:6px 0}.debug-revision-notes small{color:#637d6c}@media(max-width:650px){.debug-edit-dock{flex-direction:column;align-items:stretch}.debug-edit-dock button{width:100%}}
.debug-common-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.debug-common-grid .debug-edit-card{padding:16px;margin:8px 0;min-width:0}.debug-common-grid h3{font-size:18px;margin:0 0 12px}.debug-common-grid p{font-size:13px}.debug-common-grid small,.debug-common-grid summary{font-size:11px;color:#68806f}.debug-common-grid button{font-size:12px;padding:9px 10px;margin-top:12px}.debug-common-grid pre{max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:850px){.debug-common-grid{grid-template-columns:1fr}}
.debug-judge-page{padding-bottom:110px}.debug-judge-dock{position:fixed;bottom:16px;left:282px;right:32px;max-width:1000px;margin:0 auto;z-index:6;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;background:#edf5ef;border:1px solid #9bbb9f;box-shadow:0 4px 20px #183b2729}.debug-judge-dock span{font-size:12px;color:#476c55}.debug-judge-dock button{flex-shrink:0}.debug-per-rating{padding:12px 0;border-bottom:1px solid #dce5de;margin-bottom:16px}.debug-per-rating>button{margin:0 8px 12px 0;padding:8px 12px;font-size:13px}.debug-per-rating>button[aria-pressed=true]{background:#235e44;color:white}.debug-per-rating .debug-dimensions{gap:12px;font-size:12px}.debug-per-rating textarea{min-height:60px}.debug-per-rating>label{font-size:12px}@media(max-width:850px){.debug-judge-dock{left:16px;right:16px;flex-wrap:wrap}.debug-judge-dock button{width:100%}}

/* Keep only the action button floating; no full-width backdrop. */
.debug-training-actions.debug-judge-dock,.debug-training-actions.debug-edit-dock{position:fixed;left:auto;right:32px;bottom:16px;width:max-content;max-width:calc(100vw - 32px);margin:0;padding:0;background:transparent;border:0;box-shadow:none;z-index:6;display:block}.debug-judge-dock button,.debug-edit-dock button{width:auto;box-shadow:0 3px 12px #19352420}.debug-rating-error{color:#9a342b;font-size:13px;margin:8px 0}.debug-per-rating[aria-invalid=true]{border-left:3px solid #b75240;padding-left:12px}.debug-per-rating>small{display:block;color:#637d6c;margin-bottom:10px}@media(max-width:850px){.debug-training-actions.debug-judge-dock,.debug-training-actions.debug-edit-dock{right:16px;left:auto}.debug-judge-dock button,.debug-edit-dock button{width:auto;max-width:100%}}

.debug-training-output{scroll-margin-top:100px}

.calendar-post-actions{display:flex;align-items:center;gap:4px;margin:2px 0 8px}.calendar-post-actions>button,.calendar-post-actions>a{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:1 1 0;min-width:0;margin:0;padding:5px 2px;font-size:11px;line-height:1.4;white-space:nowrap;border:1px solid #dce5dc;border-radius:5px;background:#fff;color:#315c43;text-decoration:none;font-weight:500;cursor:pointer}.calendar-post-actions>a:hover{background:#edf4ee}.calendar-post-actions>a[aria-disabled="true"]{opacity:.5;cursor:default}

.schedule-range-nav{display:flex;align-items:center;gap:8px;margin-right:auto;max-width:100%}.schedule-week-nav .schedule-range-nav strong{width:auto;order:0;margin:0;white-space:nowrap}.schedule-week-nav .schedule-range-arrow{flex:none;width:28px;height:28px;padding:0;font-size:16px;line-height:1}.schedule-week-nav>button[hidden]{display:none}

.material-guide-card{display:inline-block;vertical-align:top;box-sizing:border-box;width:calc(50% - 8px);padding:14px;margin:4px;border:1px solid #dce5dc;border-radius:8px}.material-guide-card.current{background:#edf5ee;border-color:#9bbfa4}.material-guide-card p{margin:8px 0;font-size:14px}.material-drop{display:block;padding:20px;border:2px dashed #aac3b0;border-radius:8px;background:#f6faf6;cursor:pointer}.material-drop input{display:block;margin-top:12px}.material-file-row{display:flex;align-items:center;gap:12px;margin:8px 0}.material-file-row button{padding:4px 8px;font-size:12px}.material-import .notice{white-space:pre-wrap}.material-import pre,.material-guide~.record pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:320px;overflow:auto}.material-import .record>input,.material-import .record>select,.material-import .record>textarea{display:block;width:100%;box-sizing:border-box;margin:8px 0}@media(max-width:600px){.material-guide-card{width:100%;margin:4px 0}}

.material-kind{display:inline-block;padding:3px 9px;border-radius:5px;background:#eaf3ed;color:#315c43;font-size:12px}.material-library pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:320px;overflow:auto}

.negative-copy{white-space:pre-wrap;line-height:1.8}.negative-gallery{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0;min-height:120px}.negative-gallery img{width:110px;height:146px;object-fit:contain;border-radius:6px}.negative-sample textarea{display:block;box-sizing:border-box;width:100%;min-height:90px;margin:8px 0}.negative-experience{scroll-margin-top:24px}.negative-experience:focus{outline:2px solid #91baa0;outline-offset:3px}

.persona-toolbar{position:sticky;top:0;z-index:2;background:var(--bg,#fff);padding:12px;flex-wrap:wrap;border-bottom:1px solid #ddd}.persona-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px}.persona-preview{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.persona-active dl{display:grid;grid-template-columns:160px 1fr;gap:8px}.persona-active dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.persona-compact{position:relative}.persona-compact h3{margin:6px 0}.persona-compact small{display:block}.persona-library{margin:20px 0}.persona-library-card h4{font-size:18px;margin:0 0 12px}@media(max-width:600px){.persona-active dl{grid-template-columns:1fr}.persona-active dd{margin-bottom:12px}}

.persona-compact{display:flex;flex-wrap:wrap;align-items:center;gap:8px 24px;padding:14px 20px}.persona-compact .persona-preview{margin:0;font-size:14px}.persona-auto-selection{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px;margin:16px 0}.persona-auto-selection h4{grid-column:1/-1;margin:0}.persona-auto-option{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px;border:1px solid #dce5df;border-radius:8px}.persona-auto-option input{width:auto}.persona-auto-option small{width:100%;color:#657568}

.persona-saved{outline:3px solid #317b60;outline-offset:3px}.persona-saved:focus{scroll-margin:100px}
.persona-editor-dialog{width:min(760px,92vw);max-height:88vh;border:0;border-radius:16px;padding:24px;overflow:auto;box-shadow:0 20px 80px #0004}.persona-editor-dialog::backdrop{background:#142e2566}.persona-editor-dialog form{margin:0}.persona-editor-dialog button{margin:8px 8px 0 0}
.persona-default-button{font-size:12px;padding:5px 10px;min-height:28px;border-radius:6px}.persona-default-badge{color:#22624b;background:#e4f1e9;font-size:12px;padding:4px 9px;border-radius:5px}

.persona-card-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}.persona-card-heading h3{margin:0;overflow-wrap:anywhere}.persona-card-heading .persona-default-button,.persona-card-heading .persona-default-badge{margin:0;flex-shrink:0}

.schedule-personas{border:0;padding:0;margin:18px 0}.schedule-personas legend{font-size:13px;color:#57725f;margin-bottom:10px}.schedule-persona-choices{display:flex;flex-wrap:wrap;gap:10px}.schedule-persona-choice{display:flex;align-items:center;gap:8px;margin:0;padding:10px 16px;border:1px solid #dfe7df;border-radius:9px;background:#fff;color:#62756a;cursor:pointer}.schedule-persona-choice input[type=radio]{width:16px;height:16px;margin:0;accent-color:#215c48;flex-shrink:0}.schedule-persona-choice:has(input:checked){background:#e8f1e9;border-color:#73a182;color:#244f3b;box-shadow:inset 0 0 0 1px #73a182}.schedule-persona-choice:focus-within{outline:2px solid #215c48;outline-offset:2px}

.session-loading{max-width:420px;margin:18vh auto;padding:24px;color:#6b7b72}.session-loading .brand{color:#20312d;margin-bottom:24px}
.user-manual{max-width:1000px;margin:0 auto}.manual-intro h2{font-size:24px}.manual-toc{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.manual-toc button{text-align:left;font-size:13px}.manual-section{scroll-margin-top:24px}.manual-section ol{padding-left:24px}.manual-section li{padding:8px 0 16px 8px;border-bottom:1px solid #e6eae7}.manual-section li:last-child{border-bottom:0}.manual-section h3{font-size:16px;margin:4px 0 8px}.manual-section p{line-height:1.8;overflow-wrap:anywhere}.manual-section li button{margin-top:4px}.manual-note{padding:12px 16px;background:#f0f5f1;border-left:3px solid #73a182;border-radius:4px}.manual-section:focus{outline:2px solid #73a182;outline-offset:3px}.user-manual [hidden]{display:none!important}@media(max-width:600px){.manual-intro h2{font-size:20px}.manual-toc{display:grid;grid-template-columns:1fr}.manual-section ol{padding-left:20px}}
.manual-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.manual-heading h2{margin:0}.manual-search-toggle{flex:none;width:auto;white-space:nowrap}.manual-search{max-width:480px;margin-top:16px}@media(max-width:600px){.manual-heading{gap:10px}.manual-heading h2{font-size:18px}.manual-search-toggle{padding:8px 12px}}

.debug-mode-help{color:#18543b;background:#f0f7f2;border-left:3px solid #286647;border-radius:6px;padding:12px 16px;margin:8px 0 14px;font-size:14px;line-height:1.85;white-space:pre-line}
.production-text [contenteditable="plaintext-only"],.production-review-card>summary [contenteditable="plaintext-only"]{outline:1px dashed #72937b;outline-offset:5px;cursor:text;min-height:1.6em;white-space:pre-wrap}
.production-text [contenteditable="plaintext-only"]:focus,.production-review-card>summary [contenteditable="plaintext-only"]:focus{outline:2px solid #39764e}
.copy-editor{margin-top:14px}.copy-editor .actions{gap:8px}.copy-editor [role="status"]{font-size:12px;color:#526958;margin:8px 0 0}

.account-import-preview textarea,.account-item textarea{width:100%;min-height:140px}.account-import-preview pre,.account-linked-items pre,.account-item pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:420px;overflow:auto}.account-import-preview input[type=checkbox]{width:auto;margin-left:10px}.account-import-preview details{margin:12px 0}.account-linked-items{margin:20px 0}.account-item .production-copy{white-space:pre-wrap;overflow-wrap:anywhere}

.schedule-week-nav .schedule-range-label{background:transparent;border:0;color:inherit;font-size:17px;font-weight:700;white-space:nowrap;padding:7px 3px;box-shadow:none}.schedule-week-nav .schedule-range-label:hover{color:#39764e}.schedule-range-label:focus-visible{outline:2px solid #39764e;outline-offset:3px}.range-popover{position:fixed;inset:auto;margin:0;width:320px;max-width:calc(100vw - 16px);box-sizing:border-box;padding:14px;border:1px solid #dce4dc;border-radius:12px;color:#243329;background:#fff;box-shadow:0 8px 28px #16291e26;overflow:auto}.range-popover::backdrop{background:transparent}.range-shortcuts{display:flex;gap:5px;padding-bottom:12px;border-bottom:1px solid #eef1ed}.range-popover button{background:transparent;color:#315f45;border:0;box-shadow:none}.range-shortcuts button{font-size:12px;padding:6px 7px;background:#f1f6f0;border-radius:6px}.range-month-head{display:flex;align-items:center;justify-content:space-between;margin:10px 0}.range-month-head button{font-size:22px;padding:2px 12px}.range-month-head input{width:155px;padding:5px;margin:0;font-size:15px;font-weight:600;border:0}.range-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.range-weekday{text-align:center;font-size:12px;color:#89968b;padding:5px 0}.range-popover .range-date{height:30px;padding:0;font-size:14px;border-radius:6px;color:#243329}.range-popover .outside-month{color:#a9b3aa}.range-popover .in-range{background:#e9f2e7}.range-popover .range-end{background:#315f45;color:white}.range-popover button:hover{background:#dfebdc;color:#244b36}.range-popover button:focus-visible{outline:2px solid #39764e;outline-offset:1px}.range-hint{font-size:12px;color:#718073;min-height:18px;margin:12px 0 0}.schedule-week-nav>a[aria-disabled=true]{opacity:.5;cursor:not-allowed}@media(max-width:420px){.schedule-week-nav .schedule-range-label{font-size:15px}}
.visual-manual{max-width:1000px}.guide-hero{padding:22px 26px;background:#f3f7f0}.guide-hero h2{font-size:22px;margin:0 0 8px}.guide-hero>p{color:#617368;font-size:14px;margin:0}.guide-flow{display:flex;flex-wrap:wrap;gap:14px;margin-top:18px}.guide-flow>div{display:flex;align-items:center;gap:7px}.guide-flow>div:not(:last-child):after{content:'→';color:#94a292;margin-left:7px}.guide-number{display:inline-grid;place-items:center;background:#e1ebdc;color:#486a4f;border-radius:50%;width:24px;height:24px;font-size:12px}.guide-flow strong{font-size:13px;font-weight:500}.guide-chapter{padding:24px 28px}.guide-chapter-head{display:flex;justify-content:space-between;gap:20px;align-items:center;border-bottom:1px solid #e8ede5;padding-bottom:18px}.guide-chapter-head h2{font-size:19px;margin:0 0 6px}.guide-chapter-head p{font-size:13px;color:#73806f;margin:0}.guide-chapter-head button{flex-shrink:0;font-size:12px;padding:8px 12px}.guide-instructions{list-style:none;counter-reset:guide-step;margin:0;padding:0}.guide-instructions>li{counter-increment:guide-step;display:flex;gap:14px;padding:18px 0;border-bottom:1px solid #f0f2ed}.guide-instructions>li:last-child{border:0;padding-bottom:0}.guide-instructions>li:before{content:counter(guide-step);flex-shrink:0;display:grid;place-items:center;width:24px;height:24px;background:#f0f4ed;border-radius:50%;font-size:12px;color:#73816e;margin-top:1px}.guide-instruction-text{min-width:0}.guide-instruction-text h3{font-size:15px;margin:0 0 6px;color:#273d2c}.guide-instruction-text p{font-size:14px;line-height:1.8;color:#536455;margin:0}.guide-action-cues{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:9px}.guide-cue{font-size:12px;padding:3px 8px;border:1px solid #e4e9e0;border-radius:4px;color:#6b7b64;background:#fafbf8}.guide-cue-arrow{color:#a3aca0;font-size:12px}.guide-file-example{display:inline-block;margin:10px 0 0;padding:8px 12px;font-size:12px;line-height:1.8;background:#fafbf8;color:#687661;border-left:2px solid #dae4d4;white-space:pre-wrap}.guide-note{font-size:12px;color:#77816f;border-top:1px solid #e8ede5;margin:18px 0 0;padding-top:12px;line-height:1.8}.guide-faq>summary{font-size:14px;cursor:pointer}.guide-faq details{margin-top:18px;font-size:14px}.guide-faq details summary{cursor:pointer;color:#315f45}.guide-faq p{color:#637468;line-height:1.8}@media(max-width:550px){.guide-hero,.guide-chapter{padding:18px}.guide-hero h2{font-size:19px}.guide-chapter-head{align-items:flex-start;flex-direction:column;gap:12px}.guide-flow{gap:10px}.guide-instructions>li{gap:10px}}
.guide-screenshot{margin:16px 0 6px;max-width:760px;padding:14px;border:1px solid #e4e9e1;border-radius:8px;background:white}.guide-shot-frame{position:relative}.guide-shot-frame img{display:block;width:100%;height:auto}.guide-red-box{position:absolute;box-sizing:border-box;border:2px solid #d63c35;pointer-events:none}.guide-red-box>b{position:absolute;left:-10px;top:-10px;background:#d63c35;color:#fff;border-radius:50%;width:20px;height:20px;display:grid;place-items:center;font:600 12px sans-serif}.guide-screenshot figcaption{display:flex;gap:8px 18px;flex-wrap:wrap;margin-top:16px;font-size:12px;color:#606d5c}.guide-screenshot figcaption>span{display:flex;align-items:center;gap:6px}.guide-screenshot figcaption b{color:#c73630}.guide-screenshot-date{max-width:300px}.guide-screenshot-import{max-width:680px}@media(max-width:550px){.guide-screenshot{padding:10px}.guide-red-box{border-width:1.5px}.guide-red-box>b{width:16px;height:16px;font-size:10px;left:-8px;top:-8px}}
/* Readable manual text and full-size annotated screenshots. */
.visual-manual{max-width:1120px}.guide-hero h2{font-size:26px}.guide-hero>p,.guide-instruction-text p{font-size:18px;line-height:1.9;color:#344638}.guide-chapter-head h2{font-size:24px}.guide-chapter-head p{font-size:17px;color:#4f6052;line-height:1.8}.guide-instruction-text{flex:1}.guide-instruction-text h3{font-size:21px;margin-bottom:10px}.guide-chapter-head button,#manual-help{font-size:16px}.guide-flow strong{font-size:16px}.guide-number,.guide-instructions>li:before{font-size:15px;width:28px;height:28px}.guide-cue,.guide-file-example{font-size:16px;color:#495c4c}.guide-cue-arrow{font-size:16px}.guide-note{font-size:16px;color:#52634e;line-height:1.9}.guide-faq>summary,.guide-faq details{font-size:17px}.guide-screenshot,.guide-screenshot-import{max-width:100%;margin-top:20px}.guide-screenshot-date{max-width:380px}.guide-screenshot figcaption{font-size:17px;color:#344638;line-height:1.8}.guide-screenshot figcaption b{font-size:18px}.guide-shot-frame[role=button]{cursor:zoom-in}.guide-shot-frame:focus-visible{outline:3px solid #39764e;outline-offset:5px}.guide-instruction-text .guide-zoom-hint{font-size:15px;margin:10px 0 0;color:#50694f}.guide-image-dialog{width:min(1220px,96vw);max-width:96vw;max-height:94vh;padding:24px;border:1px solid #d9e1d4;border-radius:12px;box-sizing:border-box;overflow:auto}.guide-image-dialog::backdrop{background:#18251bd0}.guide-image-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;position:sticky;top:-24px;background:white;z-index:2;padding:12px 0}.guide-image-toolbar h2{font-size:20px;margin:0}.guide-image-toolbar button{font-size:17px;flex-shrink:0}.guide-image-dialog .guide-screenshot{margin:0;max-width:none}.guide-image-dialog .guide-screenshot-date{max-width:480px;margin:auto}.guide-image-dialog .guide-shot-frame{min-width:700px}.guide-image-dialog .guide-screenshot-date .guide-shot-frame{min-width:0}.guide-image-dialog .guide-screenshot{overflow:auto}.guide-image-dialog .guide-screenshot figcaption{min-width:0}.guide-image-dialog .guide-red-box>b{width:24px;height:24px;font-size:16px}@media(max-width:550px){.guide-hero h2{font-size:23px}.guide-chapter-head h2{font-size:22px}.guide-instruction-text h3{font-size:20px}.guide-instruction-text p{font-size:17px}.guide-image-dialog{padding:12px}.guide-image-toolbar{top:-12px}.guide-image-toolbar h2{font-size:17px}.guide-image-toolbar button{font-size:15px}}
.guide-screenshot figcaption{margin:0 0 20px;gap:8px 20px}.guide-screenshot-start figcaption{flex-direction:column;align-items:flex-start}
.import-account-picker{border:0;padding:0;margin:0 0 22px;min-width:0}.import-account-picker legend{font-size:16px;font-weight:600;margin-bottom:12px}.import-account-options{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.import-account-picker .import-account-option{display:flex;align-items:center;gap:8px;width:auto;max-width:100%;margin:0;padding:12px 16px;border:1px solid #d9e2d6;border-radius:8px;background:white;cursor:pointer;font-size:15px}.import-account-option:has(input:checked){background:#e9f2e5;border-color:#759775;color:#244f35}.import-account-option:has(input:focus-visible){outline:2px solid #39764e;outline-offset:2px}.import-account-option input[type=radio]{width:16px;height:16px;margin:0;flex-shrink:0;accent-color:#315f45}.import-account-option span{overflow-wrap:anywhere}.import-account-add{width:46px;height:46px;padding:0;font-size:26px;border-style:dashed}.import-account-add[aria-pressed=true]{background:#e9f2e5;border-color:#759775;color:#244f35}.import-account-hint{font-size:14px;color:#536c55;margin:12px 0 0}.import-account-hint[hidden]{display:none}
.import-account-options .import-account-add{background:#245b47;color:#fff;border:1px solid #245b47}.import-account-options .import-account-add:hover{background:#194936;border-color:#194936}.import-account-options .import-account-add[aria-pressed=true]{background:#245b47;color:#fff;border-color:#245b47;box-shadow:0 0 0 2px #c5dcca}

.account-result-grid{column-count:2;column-gap:18px;margin:18px 0}.account-result-card{display:inline-block;vertical-align:top;width:100%;break-inside:avoid;margin:0 0 18px;min-width:0;background:#fff;border:1px solid #dce5de;border-radius:12px;padding:20px}.account-result-card>h3{margin:0 0 14px;color:#18543b;font-size:17px}.account-result-entry+.account-result-entry{border-top:1px solid #e4eae5;margin-top:18px;padding-top:16px}.account-result-choice{display:flex;align-items:flex-start;gap:8px;margin:0 0 8px}.account-result-choice input{width:auto;margin:4px 0 0}.account-result-copy{white-space:pre-wrap;overflow-wrap:anywhere;max-height:260px;overflow:auto;line-height:1.8;font-size:14px}.account-result-entry details{font-size:13px}.account-result-entry summary{cursor:pointer;color:#426451}.account-import-actions{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}@media(max-width:700px){.account-result-grid{column-count:1}}

.account-import-dropzone{padding:20px;border:2px dashed #91b5a0;border-radius:12px;background:#f4f9f5;transition:background .15s,border-color .15s}.account-import-dropzone.is-dragging{background:#dcefe3;border-color:#18543b}.account-card-editor[hidden]{display:none}.account-card-editor{margin-top:14px;padding-top:12px;border-top:1px solid #dce5de}.account-result-card,.account-result-entry{cursor:text}.account-result-card:focus-visible,.account-result-entry:focus-visible{outline:2px solid #286647;outline-offset:3px}

.import-file-panel{margin:20px 0;padding:20px;background:#edf7f0;border:1px solid #8bb69a;border-radius:12px}.import-file-panel[hidden]{display:none}.import-file-header{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:center;margin-bottom:16px;color:#18543b}.import-file-header>strong{font-size:18px}.import-file-total{font-size:13px}.import-file-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.import-file-card{display:flex;gap:14px;align-items:center;padding:16px;background:#fff;border:1px solid #cbded1;border-radius:10px;box-shadow:0 2px 5px #173f3108}.import-file-type{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:54px;min-height:62px;border-radius:8px;background:#e2efe7;color:#18543b;font-size:12px;font-weight:700;overflow-wrap:anywhere}.import-file-info{min-width:0;flex:1;display:flex;flex-direction:column;gap:5px}.import-file-name{font-size:15px;overflow-wrap:anywhere;line-height:1.5}.import-file-meta{color:#6b7b72;font-size:12px}.import-file-ready{font-size:12px;font-weight:600;color:#216c42}.import-file-remove{padding:7px 10px;font-size:12px;flex-shrink:0}.import-file-next{margin:14px 0 0;color:#18543b;font-size:13px}.import-file-reading{color:#18543b}.import-file-error{padding:10px 12px;background:#fff1ee;border:1px solid #e5b5ad;border-radius:8px;color:#8b3227;overflow-wrap:anywhere;font-size:13px}@media(max-width:700px){.import-file-grid{grid-template-columns:1fr}.import-file-panel{padding:14px}.import-file-card{padding:12px;gap:10px}}

.account-direct-copy{white-space:pre-wrap;overflow-wrap:anywhere;max-height:420px;overflow:auto;font:inherit;line-height:1.7}.account-import-preview>.account-result-card{margin-bottom:16px}

.account-import-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:24px;align-items:start}.account-import-main{min-width:0}.account-import-sidebar{position:sticky;top:24px;min-width:0;margin:0;max-height:calc(100vh - 48px);overflow-y:auto}.account-import-sidebar>h3{margin:0 0 16px;color:#18543b;font-size:17px}.account-import-recent-task{display:block;width:100%;margin:0 0 10px;text-align:left;overflow-wrap:anywhere;line-height:1.6}.account-import-recent-task[aria-current=page]{background:#e2efe7;border-color:#51826a;color:#18543b}@media(max-width:1000px){.account-import-layout{grid-template-columns:minmax(0,1fr)}.account-import-sidebar{position:static;max-height:none}}

.account-import-recent-row{display:flex;gap:8px;align-items:start;margin-bottom:10px}.account-import-recent-row .account-import-recent-task{flex:1;min-width:0;margin:0}.account-import-remove{flex-shrink:0;padding:10px 8px;font-size:12px}.import-allocation{padding:10px 14px;border-radius:8px;background:#e2efe7;color:#18543b;overflow-wrap:anywhere}.production-page-copy{margin:20px 0}.production-page-copy h4{color:#18543b;margin:0 0 8px}.production-page-copy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.production-page-copy-card{padding:16px;background:#f5f9f6;border:1px solid #dce5de;border-radius:10px;min-width:0}.production-page-copy-card>strong{color:#18543b;font-size:13px}.production-page-copy-card .production-copy{margin-bottom:0;white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:700px){.production-page-copy-grid{grid-template-columns:1fr}}

.production-mode-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:16px}

.import-flow-steps{display:flex;gap:24px;flex-wrap:wrap;padding:16px 24px;list-style-position:inside;background:#e9f2ec;border-radius:10px;color:#18543b}.import-split-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start;margin:18px 0}.import-split-grid>.account-result-card{display:block}.import-pending{padding:18px;margin:16px 0;border:1px solid #d7bd80;border-radius:10px;background:#fffbef}.import-pending[hidden]{display:none}.import-pending h3{margin-top:0}.import-split-grid select,.import-pending select{max-width:100%;padding:8px;border:1px solid #b8cdbf;border-radius:7px;background:white;color:#18543b}@media(max-width:750px){.import-split-grid{grid-template-columns:1fr}}

.account-result-copy.is-editing,.production-copy.is-editing{outline:2px solid #51826a;outline-offset:5px;background:#f5fbf7;max-height:none;min-height:60px;white-space:pre-wrap}.account-result-entry [contenteditable=plaintext-only]{cursor:text}.account-result-entry strong[contenteditable=plaintext-only]{outline:1px solid #51826a}


/* Import cards flow independently, instead of grouping a whole region into one tall column. */
.import-split-grid{display:block;column-count:2;column-gap:18px}.import-masonry-cell{break-inside:avoid;display:inline-block;width:100%;vertical-align:top}.import-masonry-cell>.account-result-card{display:block;margin:0 0 18px}.import-split-grid.is-masonry{display:grid;column-count:auto;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1px;column-gap:18px;row-gap:0;align-items:start}.is-masonry>.import-masonry-cell{min-width:0}.is-masonry .account-result-card{margin:0}.import-pending>.account-result-card{display:block}@media(max-width:750px){.import-split-grid{column-count:1}.import-split-grid.is-masonry{grid-template-columns:minmax(0,1fr)}}

.import-masonry-cell[hidden]{display:none!important}

.material-card-grid{columns:2;column-gap:18px}.material-card-grid>.material-card{display:inline-block;width:100%;break-inside:avoid;margin:0 0 18px;padding:20px;border:1px solid #dce5de;border-radius:12px;background:#fff}.material-full-copy,.material-body pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:none;overflow:visible}.material-body{margin:16px 0}@media(max-width:750px){.material-card-grid{columns:1}}

.production-active-task{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0;padding:14px;border:1px solid #bed5c8;border-radius:10px;background:#f2f8f4}.production-active-task strong{margin-right:auto}

/* Room for long imported chapters and manuscript editing. */
.persona-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr))}
.persona-library-card>details .production-copy{white-space:pre-wrap;line-height:1.9;overflow-wrap:anywhere}
.persona-editor-dialog{width:min(1000px,95vw);max-height:92vh}
.persona-editor-dialog textarea{min-height:180px;resize:vertical;line-height:1.8;font-size:15px}
.account-result-copy{max-height:560px;font-size:15px;line-height:1.9}
.account-result-copy.is-editing,.production-copy.is-editing{min-height:280px;max-height:75vh;overflow:auto;resize:vertical;padding:14px}
.account-item textarea,.account-import-preview textarea,.material-import textarea{min-height:260px;resize:vertical;font-size:15px;line-height:1.8}
.debug-editor-compact .debug-edit-card textarea{min-height:130px;font-size:15px;line-height:1.8}
.debug-editor-compact .debug-edit-card .debug-image-copy{min-height:240px}
@media(max-width:700px){.persona-editor-dialog{padding:16px}.account-result-copy{max-height:65vh}}

.account-import-preview .import-split-grid{grid-template-columns:minmax(0,1fr)}
.import-split-dialog{width:min(900px,94vw);max-height:90vh;overflow:auto}.import-split-dialog .account-direct-copy{white-space:pre-wrap;overflow-wrap:anywhere;max-height:none}.import-split-instructions{padding:12px 16px;background:#edf5ef;border-radius:10px;line-height:1.8}.import-split-source{caret-color:#176958;cursor:text;line-height:1.8;resize:vertical;background:#fff}.import-split-part{padding:16px;margin:12px 0;background:#f7faf8;border:1px solid #dce4df;border-radius:12px}.import-split-dialog>.actions{position:sticky;bottom:0;background:white;padding:16px 0}.import-split-dialog textarea{width:100%}

.persona-library-card:has(details[open]){grid-column:1/-1}


.account-result-choice{flex-wrap:wrap}.import-choice-hint{color:#7b827e;font-size:12px;font-weight:400;line-height:1.8}

.production-failure{white-space:pre-wrap;line-height:1.85;padding:14px 18px;border-left:3px solid #ad7252;background:#fff5ec;color:#704a35}
.review-image-tile{min-width:0;border:2px solid transparent;border-radius:12px;padding:6px}.review-image-tile.selected{border-color:#286150;background:#edf6f0}.review-image-tile .image-preview{width:100%}.review-image-choice{display:flex;align-items:center;gap:8px;margin:0 0 8px;cursor:pointer}.review-image-choice input{width:20px;height:20px;margin:0}.review-image-choice[hidden]{display:none}.review-image-dialog{width:min(980px,94vw);max-height:90vh;overflow:auto}.review-image-dialog-row{display:grid;grid-template-columns:150px minmax(0,1fr);gap:16px;padding:18px 0;border-bottom:1px solid #dce4df}.review-image-dialog-row>img{width:100%;height:auto;max-height:220px;object-fit:contain}.review-image-dialog-row>p{grid-column:1/-1;margin:0}.review-image-dialog-row textarea{width:100%;min-height:190px}.review-image-dialog>.actions{position:sticky;bottom:0;padding:16px 0;background:#fff}.review-image-editor>.actions h4{margin-right:auto}
@media(max-width:600px){.review-image-dialog-row{grid-template-columns:minmax(0,1fr)}.review-image-dialog-row>img{width:100px;max-height:130px}.review-image-editor>.actions{flex-wrap:wrap}}
.visual-manual{max-width:1600px}.manual-layout{display:grid;grid-template-columns:minmax(0,1fr) 170px;gap:16px;align-items:start}.manual-main{min-width:0}.manual-toc{position:sticky;top:24px;padding:12px;display:grid;gap:7px;max-height:calc(100vh - 48px);overflow:auto}.manual-toc h2{font-size:20px;margin:0}.manual-toc p{font-size:13px;margin:0 0 8px}.manual-toc button{width:100%;text-align:left;font-size:14px;padding:10px 12px;white-space:normal}.manual-toc button[aria-current]{background:#e2efe9;border-color:#286150;color:#174b3d;font-weight:700}.guide-chapter{scroll-margin-top:24px}.guide-chapter h2:focus{outline:none}.guide-screenshot img{height:auto}.manual-main .guide-chapter{margin-top:24px}
@media(max-width:1050px){.manual-layout{grid-template-columns:minmax(0,1fr) 170px;gap:12px}.manual-toc{padding:12px}}
@media(max-width:800px){.manual-layout{display:flex;flex-direction:column}.manual-toc{position:static;order:-1;width:100%;max-height:none;grid-template-columns:repeat(2,minmax(0,1fr))}.manual-toc h2,.manual-toc p{grid-column:1/-1}.manual-main{width:100%}}
.reference-style>summary{font-size:1.1rem;font-weight:700;cursor:pointer}.reference-style textarea{width:100%;min-height:80px;margin:10px 0}.style-reference-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin:12px 0}.style-reference-grid img{width:100%;max-height:320px;object-fit:contain;border-radius:10px;background:#f4f4f1}.style-reference-grid article,.style-reference-grid figure{margin:0;min-width:0;padding:10px;border:1px solid #ddd;border-radius:10px}.style-reference-grid small{display:block;overflow-wrap:anywhere}.style-reference-grid button{padding:5px 8px;margin:4px}.style-template{margin-top:16px}.style-template>button{margin:8px 8px 8px 0}.style-template>small{display:block}.style-template input:not([type=radio]){width:100%;margin:8px 0}
.style-paste-zone{padding:18px;margin:12px 0;border:2px dashed #95b5a8;border-radius:12px;background:#f4faf7;color:#365a4b;cursor:text}.style-paste-zone:focus{outline:3px solid #badacb;outline-offset:2px}
.import-studio{display:flex;flex-direction:column;gap:20px;min-width:0}.import-studio>.import-account-picker{margin:0;padding:18px 20px;background:#f6f8f7;border:1px solid #e3e9e5;border-radius:16px}.import-studio .reference-style,.import-text-section{margin:0;padding:24px;border:1px solid #e0e7e2;border-radius:20px;background:#fff;box-shadow:0 4px 20px #163b2810}.import-text-section>summary,.reference-style>summary{display:list-item;font-size:19px;font-weight:650;color:#183c2b;letter-spacing:.02em;cursor:pointer}.import-text-section>summary::marker,.reference-style>summary::marker{color:#839b8c;font-size:13px}.style-upload-hint{padding:14px 16px;border-radius:12px;background:#edf5ef;color:#26553b;font-size:14px;line-height:1.8;border:1px solid #d5e6d9}.reference-style>label{display:block;padding:18px 18px 0;background:#f8faf8;border:1px dashed #b9cfc0;border-bottom:0;border-radius:14px 14px 0 0;color:#354e40}.reference-style input[type=file]{display:block;width:100%;margin:12px 0 0;padding:0;border:0;background:transparent;font-size:13px}.reference-style input[type=file]::file-selector-button,.import-text-section input[type=file]::file-selector-button{padding:9px 14px;margin-right:12px;border:1px solid #cbdcd0;border-radius:9px;background:#fff;color:#1b5136;cursor:pointer}.reference-style .style-paste-zone{margin-top:0;padding:14px 18px;background:#f8faf8;border:1px dashed #b9cfc0;border-top:0;border-radius:0 0 14px 14px;font-size:13px;color:#627568}.reference-style textarea,.reference-style input:not([type=file]):not([type=radio]){border:1px solid #dce5de;border-radius:12px;padding:12px 14px;background:#fafcfb}.reference-style .style-reference-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}.reference-style .style-reference-grid article{border-color:#e1e9e3;background:#fafcfb;border-radius:14px}.style-template>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;cursor:pointer;list-style:none}.style-template>summary:after{content:'＋';color:#6c8475}.style-template[open]>summary:after{content:'−'}.style-template>summary strong{flex:1;font-size:15px}.style-status{border-radius:20px;padding:4px 10px;background:#eef4ef;color:#477054;font-size:12px;font-weight:400;white-space:nowrap}.reference-style .style-template{border:1px solid #e2e9e4;border-radius:14px;box-shadow:none;padding:18px;margin-top:12px}.style-template>summary~*{margin-top:16px}button.style-preview-primary{background:#174d34;border:1px solid #174d34;color:#fff;border-radius:11px;padding:12px 18px;font-weight:650;box-shadow:0 3px 8px #174d3420}button.style-preview-primary:hover:not(:disabled){background:#103e29;border-color:#103e29}button.style-preview-primary:focus-visible{outline:3px solid #95bea4;outline-offset:3px}button.style-preview-primary:disabled{opacity:.5;cursor:not-allowed}.import-text-section .account-import-dropzone{border-width:1px;background:#f8faf8;border-color:#b9cfc0;border-radius:14px;margin:18px 0}.account-import-sidebar{border-radius:18px;border-color:#e0e7e2;background:#f8faf8;padding:18px}.account-import-sidebar>h3{font-size:14px;margin:4px 0 14px}.account-import-sidebar>h3:not(:first-child){margin-top:28px}.account-import-recent-task{background:#fff;border:1px solid #e0e7e2;border-radius:12px;padding:12px;font-size:13px;color:#365341}.image-import-tasks{padding-bottom:8px;border-bottom:1px solid #e0e7e2}.account-import-main>p[role=status]:empty{display:none}.reference-style>p[role=status]:empty{display:none}@media(max-width:700px){.import-studio .reference-style,.import-text-section{padding:18px;border-radius:16px}.style-template>summary{flex-wrap:wrap}.style-status{white-space:normal}}
.style-detail-cards{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin-top:20px}.style-detail-card{min-width:0;padding:18px;background:#f8faf8;border:1px solid #dce6df;border-radius:14px}.style-detail-card>h4{margin:0 0 16px;font-size:15px;color:#244e37}.style-detail-card .style-reference-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.style-detail-card .style-reference-grid img{max-height:240px}.style-detail-card details{margin:14px 0}.style-task-actions{display:flex;gap:8px;flex-shrink:0}.style-task-actions button{padding:7px 12px;border-radius:9px;font-size:12px}.style-task-actions button:last-child{background:#174d34;color:#fff;border-color:#174d34}@media(max-width:850px){.style-detail-cards{grid-template-columns:minmax(0,1fr)}.style-task-actions{width:100%}}
.reference-style .style-preview-images{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:24px 0}.reference-style .style-preview-images img{max-height:none;height:auto;width:100%;object-fit:contain;border-radius:14px}@media(max-width:700px){.reference-style .style-preview-images{grid-template-columns:minmax(0,1fr)}}
.reference-style .style-detail-cards{grid-template-columns:minmax(0,1fr)}.style-rule-field{margin:22px 0}.style-rule-field h5{margin:0 0 8px;font-size:19px;line-height:1.4;font-weight:750;color:#174d34}.style-rule-value{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85;padding:12px 14px;border:1px solid transparent;border-radius:10px;min-height:48px;background:#fff}.style-rule-value:hover{border-color:#c2d8c9}.style-rule-value:focus{outline:2px solid #779f86;border-color:transparent}.style-new-version{border-color:#6a9c7e!important;box-shadow:0 0 0 3px #e3f0e7!important}
.reference-style .style-detail-card .style-reference-grid{display:flex;flex-wrap:wrap;gap:12px}.reference-style .style-detail-card .style-reference-grid img{width:100px;height:132px;max-height:132px;object-fit:contain;background:#f1f4f1;border-radius:9px}.style-adjustment-title{font-size:19px;font-weight:750;color:#174d34;margin:24px 0 8px}
.reference-use-controls{display:grid;gap:10px;width:100%;font-size:13px}
.reference-use-controls label{margin:0;display:grid;gap:5px}
.reference-use-options{display:flex;flex-wrap:wrap;gap:6px}
.reference-use-controls .reference-use-chip{display:flex;align-items:center;gap:5px;border:1px solid #d9e4df;border-radius:18px;padding:6px 9px;background:#fff;cursor:pointer}
.reference-use-chip:has(input:checked){background:#e2f1e8;border-color:#52836a;color:#174d37}
.reference-use-chip input{width:auto;margin:0;accent-color:#215b40}
.reference-use-controls textarea{min-height:70px;font-size:13px}
.reference-style .style-detail-card .style-reference-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));align-items:start}
.reference-source-card{display:flex;flex-direction:column;gap:12px;padding:14px;border:1px solid #dbe5df;border-radius:14px;background:white;min-width:0}
.reference-source-card>strong{font-size:14px;color:#21513d}
@media(max-width:600px){.reference-style .style-detail-card .style-reference-grid{grid-template-columns:1fr}}
/* Reference sources: one row per image, image left and controls right. */
.reference-style .style-reference-grid.reference-source-list{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.reference-source-list>.reference-source-card{display:grid;grid-template-columns:120px minmax(0,1fr);gap:10px 20px;align-items:start;padding:16px}
.reference-style .reference-source-list>.reference-source-card>img{grid-column:1;grid-row:1 / span 3;width:120px;height:160px;max-height:160px;object-fit:contain}
.reference-source-card>small,.reference-source-card>strong,.reference-source-card>.reference-use-controls,.reference-source-actions{grid-column:2;min-width:0}
.reference-source-card>small,.reference-source-card>strong{overflow-wrap:anywhere;line-height:1.6}
.reference-source-actions{display:flex;gap:8px}
.reference-source-list .reference-use-controls{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:10px 14px}
.reference-source-list .reference-use-controls>label:first-child{grid-column:1;grid-row:1}
.reference-source-list .reference-use-controls>label:nth-child(3){grid-column:2;grid-row:1}
.reference-source-list .reference-use-options{grid-column:1 / -1;grid-row:2}
.reference-source-list .reference-use-controls>textarea{grid-column:1 / -1;margin:0;min-height:80px}
.reference-source-list .reference-use-chip input[type=checkbox]{width:auto;margin:0;padding:0;flex:0 0 auto}
@media(max-width:600px){.reference-source-list>.reference-source-card{grid-template-columns:80px minmax(0,1fr);gap:10px 12px;padding:12px}.reference-style .reference-source-list>.reference-source-card>img{width:80px;height:108px;max-height:108px}.reference-source-list .reference-use-controls{grid-template-columns:minmax(0,1fr)}.reference-source-list .reference-use-controls>label:nth-child(3){grid-column:1;grid-row:3}.reference-source-list .reference-use-controls select{padding:9px;font-size:12px}.reference-source-list .reference-use-chip{padding:5px 7px;font-size:12px}}
.style-regenerate-progress{margin:8px 0 12px;padding:12px 14px;border-radius:10px;background:#edf5ef;border:1px solid #d5e6d9;color:#215c48;font-size:14px;line-height:1.7}.style-regenerate-progress:empty{display:none}
.style-preset-save{display:flex;justify-content:flex-end;padding-top:18px;margin-top:18px;border-top:1px solid #dce6df}.style-preset-save button{background:#174d34;color:#fff;border-color:#174d34;padding:12px 22px;border-radius:11px}
/* Focused manual screenshots preserve source pixels and enlarge controls. */
.guide-shot-cropped{overflow:hidden;isolation:isolate;width:100%}
.guide-shot-cropped img{position:absolute;max-width:none!important;height:auto;display:block}
.guide-screenshot{padding:12px;width:100%;box-sizing:border-box}
.guide-image-dialog{width:min(1560px,98vw);max-width:98vw;padding:18px}
.guide-image-dialog .guide-shot-cropped{min-width:var(--shot-readable-width);width:100%}
.guide-image-dialog .guide-image-toolbar{top:-18px}
.guide-screenshot-date-20261015{max-width:640px}
.guide-image-dialog .guide-screenshot-date-20261015{max-width:760px;margin:auto}
.guide-shot-cropped .guide-red-box>b{left:0;top:0;border-radius:0 0 8px 0}

/* Match standalone image viewing for transparent PNGs without altering originals. */
.image-preview img,.image-viewer-viewport img,.review-image-dialog-row>img,.style-reference-grid img{background-color:#fff}
