:root{font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:#17211f;background:#f3f6f3;font-synthesis:none;--green:#214f43;--muted:#74807d;--line:#dfe5e1;--gold:#b58b48}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{outline-offset:4px}button{cursor:pointer;border:1px solid #cdd5cc;border-radius:7px;background:#fff;padding:10px 15px;color:inherit;font-size:13px;font-weight:600}button:hover{background:#ebefe8}button:disabled{opacity:.45;cursor:not-allowed}button.primary{background:var(--green);color:white;border-color:var(--green)}button.danger{color:#a33d31}button.quiet{background:transparent;border:0;color:var(--muted)}input,textarea,select{width:100%;border:1px solid #d9ded4;border-radius:6px;padding:10px 12px;background:#fff;color:#263930}textarea{resize:vertical;min-height:100px;line-height:1.8}input[type=checkbox]{width:auto}label{display:block;font-size:13px;line-height:1.7;color:#4e6056}label>input,label>textarea,label>select{margin-top:5px}h1,h2,h3,p{margin-top:0}h1{font-size:28px;letter-spacing:-.5px}h2{font-size:21px}h3{font-size:16px}a{color:var(--green)}small,.muted{color:var(--muted);line-height:1.7}.eyebrow{font-size:11px;letter-spacing:2px;color:var(--gold);font-weight:700;margin-bottom:12px}.topbar{height:72px;border-bottom:1px solid var(--line);background:#fafaf6;display:flex;align-items:center;justify-content:space-between;padding:0 30px;gap:14px}.brand{display:flex;gap:12px;align-items:center;font-size:18px;font-weight:700;white-space:nowrap}.brand img{width:34px;height:34px}.brand span{border-left:1px solid #ccd3c8;padding-left:15px;font-size:12px;color:var(--muted);font-weight:400}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.home{max-width:1120px;margin:52px auto;padding:0 24px}.section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:28px}.section-head>button{white-space:nowrap;flex-shrink:0}.hero-note{max-width:650px;line-height:1.8;color:#69786e}.projects{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:20px}.project-card{border:1px solid var(--line);border-radius:12px;background:#fff;padding:25px;text-align:left;min-height:170px;display:flex;flex-direction:column;justify-content:space-between}.project-card h3{font-size:19px}.progress{height:5px;border-radius:4px;overflow:hidden;background:#e9ece4;margin:20px 0 12px}.progress progress{width:100%;height:100%;display:block;accent-color:var(--green)}.empty{padding:54px 32px;background:#fff;border:1px dashed #cad3c7;border-radius:12px;line-height:1.9}.empty .steps{display:flex;flex-wrap:wrap;gap:14px;margin:25px 0;color:var(--muted);font-size:13px}.workspace{display:grid;grid-template-columns:242px minmax(0,1fr);min-height:calc(100vh - 72px)}.sidebar{border-right:1px solid var(--line);background:#fafaf6;padding:24px 16px}.sidebar .project-title{padding:0 10px 20px;overflow-wrap:anywhere}.stage{padding:12px 10px;border-radius:7px;margin:4px 0;font-size:13px;color:#829085;display:flex;gap:10px;align-items:center}.stage.active{background:#e7eee4;color:var(--green);font-weight:700}.stage.done{color:#345f43}.stage-num{border:1px solid #cbd4c7;width:24px;height:24px;display:grid;place-items:center;border-radius:50%;font-size:11px;flex-shrink:0}.stage.active .stage-num{background:var(--green);color:white;border-color:var(--green)}.side-meta{padding:25px 10px;font-size:12px;line-height:2;color:var(--muted)}.main{padding:30px 36px;min-width:0}.heading{display:flex;justify-content:space-between;gap:20px}.heading h1{font-size:25px}.badge{display:inline-block;font-size:11px;padding:4px 9px;border-radius:30px;background:#e8eee3;color:#466039;white-space:nowrap}.badge.warn{background:#f7edda;color:#9a722f}.badge.bad{background:#f8e5e0;color:#9a4335}.work-grid{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:24px}.panel{background:#fff;border:1px solid var(--line);border-radius:10px;padding:22px;margin-bottom:20px;min-width:0}.tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);margin:20px 0}.tab{border:0;background:transparent;border-radius:0;padding:12px 2px;color:var(--muted)}.tab.active{color:var(--green);border-bottom:2px solid var(--green)}.task-list{max-height:430px;overflow:auto}.task{display:block;width:100%;padding:11px 9px;text-align:left;border:0;border-bottom:1px solid #edf0e8;border-radius:0;font-size:12px;font-weight:400;background:transparent}.task.active{background:#f0f4eb;color:var(--green);font-weight:600}.task em{display:block;font-style:normal;font-size:10px;color:var(--muted);margin-top:4px}.article{white-space:pre-wrap;line-height:1.9;font-size:14px;overflow-wrap:anywhere}.editor{min-height:300px;line-height:1.9}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-grid .full{grid-column:1/-1}.field{margin-bottom:15px}details{border-top:1px solid #e4e8df;padding:14px 0}summary{cursor:pointer;font-weight:600;font-size:13px;line-height:1.7}details>div{padding-top:16px}.callout{border-left:3px solid var(--gold);background:#f8f4e9;padding:13px 16px;font-size:13px;line-height:1.8;margin:16px 0}.error{border-left-color:#b94f3d;background:#fcf0eb}.gate{border:1px solid var(--line);border-radius:8px;padding:18px;margin-bottom:15px}.gate h3{font-size:14px;line-height:1.7}.gate .form-grid{margin-top:10px}.gate textarea{min-height:75px}.record{border:1px solid #e0e4d9;border-radius:7px;padding:16px;margin:12px 0}.record .form-grid{gap:12px}.record small{display:block;margin-bottom:8px}.bible-record{border-bottom:1px solid var(--line);padding:17px 0}.bible-record p{white-space:pre-wrap;line-height:1.8;font-size:13px;margin:8px 0}.mono{font-family:ui-monospace,monospace;font-size:12px}.footer-actions{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:20px}.login{max-width:420px;margin:13vh auto;padding:32px}.login .brand{margin-bottom:38px}.login button{width:100%;margin-top:20px}.login p{font-size:13px;line-height:1.8;color:var(--muted)}dialog{width:min(700px,calc(100% - 32px));max-height:90vh;border:1px solid var(--line);border-radius:12px;padding:28px;box-shadow:0 20px 90px #142a2426}dialog::backdrop{background:#162d2560}dialog header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}dialog h2{margin:0}dialog textarea{min-height:150px}#notice{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:min(650px,90vw);padding:12px 20px;background:#183f37;color:#fff;border-radius:8px;z-index:20;display:none;line-height:1.7;font-size:13px}#notice.show{display:block}pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:550px;overflow:auto;font-size:12px;line-height:1.7}button.link{border:0;background:transparent;padding:0;text-decoration:underline;color:var(--green)}.locked{background:#eaf1e6;padding:22px;border-radius:8px;margin-bottom:20px;line-height:1.8}@media(max-width:1150px){.work-grid{grid-template-columns:1fr}.right{display:grid;grid-template-columns:1fr 1fr;gap:16px}.task-list{max-height:240px}}@media(max-width:720px){.topbar{padding:0 15px;height:auto;min-height:65px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px}.brand span{display:none}.topbar .actions button{padding:7px 9px;font-size:11px}.workspace{display:block}.sidebar{padding:12px;border-right:0;border-bottom:1px solid var(--line)}.sidebar .project-title,.side-meta{display:none}.stage-list{display:flex;overflow-x:auto}.stage{flex-shrink:0;font-size:11px;padding:8px}.stage-num{width:20px;height:20px}.main{padding:22px 15px}.heading{display:block}.heading h1{font-size:22px}.right{display:block}.form-grid{grid-template-columns:1fr}.home{margin:30px auto}.section-head{align-items:flex-start}.section-head h1{font-size:24px}.panel{padding:17px}.tabs{gap:19px}.tab{font-size:12px}.login{margin:8vh auto;padding:25px}.gate{padding:13px}}
#prompt-text{min-height:320px}.table-wrap{overflow-x:auto;margin:8px 0}.table-wrap table{border-collapse:collapse;width:100%;font-size:12px}.table-wrap th,.table-wrap td{border:1px solid var(--line);padding:6px 8px;text-align:left;vertical-align:top;line-height:1.6}.table-wrap th{background:#f3f5ef;white-space:nowrap}label.check{display:block;margin:10px 0;line-height:1.7}#contract-prompt-text{min-height:220px}.contract-options{display:grid;gap:12px}.contract-options ul{margin:4px 0 8px;padding-left:20px}.doc-body textarea{min-height:65vh;line-height:1.7;font-family:inherit}
[hidden]{display:none!important}

.story-sections{display:flex;gap:12px;padding-bottom:20px;margin-bottom:26px;border-bottom:1px solid var(--line,#d7dfd7)}.story-sections a{padding:9px 17px;border-radius:7px;color:inherit;text-decoration:none;font-size:14px}.story-sections a[aria-current=page]{background:#213d31;color:#fff}.story-sections a:not([aria-current]):hover{background:#cbdcbb;color:#213d31}

.story-sections{flex-wrap:wrap}.story-sections a{white-space:nowrap}@media (max-width:640px){.story-sections{gap:6px}.story-sections a{padding:7px 11px;font-size:13px}}

/* 案例项目（只读）：story/static/case_view.js */
body.case-view,body.case-view *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
#case-watermark{position:fixed;inset:0;z-index:9999;pointer-events:none;background-repeat:repeat}
.case-banner{margin:0 0 16px;border-left:4px solid var(--accent,#7a9a3a)}.case-banner p{margin:6px 0 0}
.case-hide{margin-left:8px;font-size:12px;opacity:.7;text-decoration:underline;cursor:pointer}
@media print{body.case-view *{visibility:hidden!important}}
body.case-view [hidden]{display:none!important}
/* 案例统一配色：琥珀橙 */
.project-card.case-card{border:2px solid #f08c00!important;background:linear-gradient(180deg,#fff4e0 0%,#fffaf2 100%)!important;box-shadow:0 0 0 4px rgba(240,140,0,.12)}
.project-card.case-card .badge{background:#f08c00!important;color:#fff!important;border-color:#f08c00!important;font-weight:700}
.case-banner{background:#fff4e0!important;border:2px solid #f08c00!important;border-left-width:6px!important;color:#5c3600}
.case-banner strong:first-child{background:#f08c00;color:#fff;padding:1px 8px;border-radius:6px}

/* 封面与剧本预览：封面是 16:9 剧照，卡片上铺满，文字描边压在图上 */
.cover-box{margin:12px 0 4px}.story-cover{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:10px;border:1px solid var(--line,#ddd);margin-bottom:8px}
.cover-actions{display:flex;gap:6px;flex-wrap:wrap}.cover-actions button{font-size:12px;padding:4px 8px}
.project-card.has-cover{position:relative;overflow:hidden;aspect-ratio:16/10;min-height:0;padding:0;border:0;background:#111;color:#fff;isolation:isolate;justify-content:flex-end}
.project-card.has-cover .card-cover{position:absolute;inset:0;width:100%;height:100%;margin:0;object-fit:cover;z-index:-1}
.project-card .card-panel{position:absolute;left:0;right:0;bottom:0;background:rgba(14,20,18,.68);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);padding:10px 16px 12px;display:flex;flex-direction:column;gap:6px}
.project-card .card-panel>div:first-child{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.project-card.has-cover h3,.project-card.has-cover small{color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.55);margin:0}
.project-card.has-cover h3{font-size:17px;font-weight:800;flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.project-card.has-cover .badge{background:rgba(255,255,255,.92);color:#1f3a33;font-size:11px}
.project-card.has-cover .progress{margin:0}.project-card.has-cover progress{opacity:.9;height:4px}
.project-card.has-cover.case-card{border:3px solid #f08c00!important;background:#111!important}
.project-card.has-cover.case-card .badge{background:#f08c00!important;color:#fff!important}
.project-card.has-cover .case-hide{color:#fff;text-shadow:0 1px 2px #000}
#modal.reading{width:min(860px,96vw);max-height:92vh}
.script-read{max-height:72vh;overflow:auto;padding:8px 18px 24px;background:#fffdf8;border:1px solid var(--line,#e5e2da);border-radius:10px;font-size:15px;line-height:1.85}
.script-read h3{margin:26px 0 8px;font-size:20px;border-bottom:2px solid #1f3a33;padding-bottom:6px}
.script-read h4{margin:20px 0 6px;font-size:15px;background:#eef3ec;padding:4px 10px;border-radius:6px}
.script-read .cast{color:#6b6b6b;font-size:13px;margin:2px 0 8px}.script-read .action{margin:6px 0;color:#333}
.script-read .line{margin:6px 0 6px 2em}.script-read .line b{margin-right:4px}.script-read .line i{color:#888;font-style:normal;margin-right:4px}.script-read .line span::before{content:"："}
.rename-btn{font-size:12px;padding:0 4px;margin-left:4px;opacity:.75}
