@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700&family=Noto+Serif+TC:wght@600;700&display=swap');
:root{--paper:#f7f3e8;--ink:#384331;--muted:#828575;--green:#48634b;--line:#dddcc9;--cream:#fffdf6;--orange:#bf764e;--sprite:url('assets/characters-v2.png');font-family:'Noto Sans TC',sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #bb8a4c;outline-offset:4px}button{border:0}a{color:inherit;text-decoration:none}.topbar{height:94px;padding:0 4.5%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#fbf8ef}.brand{display:flex;align-items:center;gap:12px;font-family:'Noto Serif TC',serif;font-size:23px;font-weight:700}.brand small{display:block;font:9px 'Noto Sans TC',sans-serif;letter-spacing:2px;margin-top:5px;color:#7d836e}.brand-mark{font-size:45px;color:#708762}.header-actions{display:flex;align-items:center;gap:20px}.demo-badge{font-size:12px;color:#817b61;border:1px solid #ddd6b9;padding:7px 12px;border-radius:30px}.primary,.secondary{padding:12px 19px;border-radius:9px;font-weight:600;font-size:14px}.primary{background:var(--green);color:#fffdf5;box-shadow:0 3px 0 #334a37}.primary:hover{background:#38553e}.secondary{background:#ebe9dc;color:var(--ink)}main{max-width:1600px;margin:auto;padding:36px 4.5% 0}.welcome{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px;gap:20px}.eyebrow{font-size:10px;letter-spacing:2px;color:#8a8c76;font-weight:600;margin:0 0 9px}h1,h2,h3,p{margin-top:0}h1{font-family:'Noto Serif TC',serif;font-size:28px;letter-spacing:1px;margin-bottom:10px}h2{font-family:'Noto Serif TC',serif;font-size:21px;margin-bottom:0}.welcome p:not(.eyebrow){font-size:13px;color:#7c816e;margin-bottom:0}.island-clock{display:flex;align-items:center;gap:12px}.sun{font-size:32px;color:#bf995a}.island-clock strong{display:block;font-size:13px;font-weight:500}.island-clock small{display:block;margin-top:5px;font-size:11px;color:var(--muted)}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}.village{min-width:0;border-radius:15px;overflow:hidden;box-shadow:0 4px 18px #3d4f3620;border:1px solid #b4c6a7}.scene{position:relative;aspect-ratio:3/2;container-type:inline-size;background:#7dcaac;overflow:hidden}.map{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;image-rendering:pixelated;user-select:none;pointer-events:none}.place{position:absolute;transform:translate(-50%,-50%);background:#fff7deed;color:#5f503a;border:1px solid #9e8757;box-shadow:0 2px 0 #9d7a4b;font-size:clamp(9px,1.35cqw,14px);font-weight:600;white-space:nowrap;padding:3px 9px;border-radius:3px;pointer-events:none}.p-command{left:50%;top:20%}.p-creative{left:19%;top:26%}.p-observer{left:83%;top:23%}.p-reporter{left:80%;top:51%}.p-garden{left:21%;top:54%}.actor,.pet{position:absolute;padding:0;background:none;transform:translate(-50%,-85%);border-radius:50%;isolation:isolate;min-width:44px;min-height:44px}.actor{width:clamp(68px,12cqw,140px);height:clamp(68px,12cqw,140px)}.sprite{display:block;width:100%;height:100%;background-image:var(--sprite);background-size:300% 200%;background-repeat:no-repeat;image-rendering:pixelated;filter:drop-shadow(0 4px 1px #3e482638)}.sprite-commander{background-position:0 0}.sprite-creative{background-position:50% 0}.sprite-observer{background-position:100% 0}.sprite-reporter{background-position:0 100%}.sprite-cat{background-position:50% 100%}.sprite-dog{background-position:100% 100%}.actor .sprite{transition:transform .2s}.actor:hover .sprite,.actor:focus-visible .sprite{transform:translateY(-5px)}.actor-label{position:absolute;top:92%;left:50%;transform:translateX(-50%);background:#fff9e6f5;box-shadow:0 2px 0 #94765266;border:1px solid #b6a078;border-radius:5px;padding:3px 7px;white-space:nowrap;font-size:clamp(10px,1.3cqw,13px);color:#504831}.actor-label::before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:#738763;margin-right:5px}.actor-bubble{position:absolute;bottom:94%;left:50%;transform:translateX(-50%);padding:5px 9px;background:#fffdf4;border:1px solid #c5b98c;border-radius:9px;font-size:clamp(10px,1.2cqw,12px);white-space:nowrap;box-shadow:0 2px 4px #4f56321c}.actor-bubble:after{content:'';position:absolute;left:45%;top:100%;border-top:5px solid #fffdf4;border-left:4px solid transparent;border-right:4px solid transparent}.actor.has-review .actor-label::before{background:#cc8a4b}.pet{width:clamp(60px,10cqw,115px);height:clamp(60px,10cqw,115px);z-index:10}.pet .sprite{transform-origin:50% 80%}.pet.walking .sprite{animation:pet-bounce .35s steps(2,end) infinite}.pet.face-left .sprite{scale:-1 1}.pet-name{position:absolute;top:96%;left:50%;transform:translateX(-50%);font-size:11px;background:#fff9e4d9;border-radius:10px;padding:2px 7px;color:#5e573b;white-space:nowrap;opacity:0}.pet:hover .pet-name,.pet:focus-visible .pet-name{opacity:1}.pet-heart{position:absolute;top:20%;left:50%;color:#ce745c;font-size:25px;animation:heart-rise 1.2s ease-out forwards}.map-note{position:absolute;top:14px;left:14px;background:#fffbeaeb;border:1px solid #d1d5ba;padding:6px 10px;border-radius:7px;font-size:11px;color:#536249}.live-dot{width:6px;height:6px;border-radius:50%;display:inline-block;background:#7c9d67;margin-right:4px}.motion-toggle{position:absolute;right:12px;bottom:12px;background:#fffbe9ed;border:1px solid #bbbd9a;border-radius:6px;padding:7px 10px;font-size:11px;color:#536249;min-height:36px}.map-hint{position:absolute;bottom:12px;left:12px;border-radius:6px;padding:7px 10px;font-size:11px;color:#3e5b45;background:#fffbe9ed;pointer-events:none}.village-footer{display:flex;justify-content:space-between;gap:8px;align-items:center;background:#fffdf3;padding:15px 18px;font-size:12px}.muted{color:var(--muted)}.text-button{background:none;color:var(--green);font-size:11px;padding:4px 0}.journal{background:#fffdf5;border:1px solid #e0ddc9;border-radius:14px;padding:22px 20px;box-shadow:0 3px 8px #4b563106}.journal-heading{display:flex;justify-content:space-between;align-items:center}.journal-heading .eyebrow{font-size:9px}.journal-flower{font-size:30px;color:#b5a876}.summary{display:flex;justify-content:space-around;border-top:1px solid #e5e2d1;border-bottom:1px solid #e5e2d1;margin:21px 0 16px;padding:15px 0}.summary>div{text-align:center}.summary strong{display:block;font-family:'Noto Serif TC',serif;font-size:25px;font-weight:600}.summary span{display:block;color:#8b8b76;font-size:10px;margin-top:3px}.summary>div:nth-child(2) strong{color:#b3794e}.filters{display:flex;gap:2px;border-bottom:1px solid #e6e2d3;padding-bottom:8px;margin-bottom:8px}.filters button{background:none;padding:6px 9px;color:#8e907d;font-size:11px;border-radius:6px}.filters button.active{background:#eaf0df;color:#466044}.task-list{max-height:342px;overflow:auto;min-height:145px}.task-card{display:block;width:100%;background:none;text-align:left;padding:14px 0;border-bottom:1px dashed #e0decd;color:var(--ink)}.task-card:hover .task-title{color:#8b6739}.task-title{display:block;font-size:13px;line-height:1.7;font-weight:500;overflow-wrap:anywhere}.task-card-top{display:flex;align-items:center;gap:7px;margin-bottom:7px}.kind-mark{font-size:13px;color:#9b8a62}.task-card-bottom{display:flex;justify-content:space-between;gap:5px;font-size:10px;color:#959580}.status{display:inline-flex;border-radius:5px;padding:3px 6px;font-size:10px;white-space:nowrap;background:#f0ede0;color:#8a8064}.status-working{background:#e7efdf;color:#607c51}.status-waiting{background:#f3e6d4;color:#a37d43}.status-review{background:#f7e3d5;color:#b26d49}.status-done{background:#e6eeeb;color:#64867a}.empty{font-size:12px;color:#92947e;line-height:1.8;padding:28px 10px;text-align:center}.add-task{width:100%;background:#eff2e5;color:#667c51;border:1px dashed #c1cbaa;border-radius:7px;padding:11px;font-size:12px;margin-top:16px}.journal-note{display:flex;gap:8px;margin-top:17px;color:#97967d}.journal-note span{color:#b3ad83}.journal-note p{font-size:10px;line-height:1.9;margin:0}.team-section{margin-top:37px;display:grid;grid-template-columns:260px 1fr;gap:20px;align-items:center}.team-section h2{font-size:19px;line-height:1.8}.team-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.team-card{display:flex;align-items:center;gap:5px;background:transparent;text-align:left;color:var(--ink);padding:8px 0}.team-card .portrait{width:64px;height:64px;flex-shrink:0}.team-card strong{display:block;font-size:13px}.team-card small{display:block;font-size:10px;color:#92917d;margin-top:4px}.page-footer{display:flex;justify-content:space-between;gap:15px;border-top:1px solid var(--line);margin-top:29px;padding:22px 0;font-size:10px;color:#96967f}.dialog{border:1px solid #d8d5bc;padding:30px;border-radius:17px;background:var(--cream);color:var(--ink);width:min(540px,calc(100% - 28px));max-height:calc(100dvh - 40px);overflow:auto;box-shadow:0 20px 80px #293f354d}.dialog::backdrop{background:#24392e73;backdrop-filter:blur(3px)}.close-dialog{position:absolute;top:11px;right:14px;width:32px;height:32px;border-radius:50%;background:#efeddf;color:#7c8169;font-size:23px;line-height:1;z-index:2}.commander-intro{display:flex;align-items:center;gap:7px;margin-right:10px}.commander-intro .portrait{width:95px;height:95px;flex-shrink:0}.commander-intro .eyebrow{font-size:11px;letter-spacing:1px}.commander-intro h2{font-size:21px;margin-bottom:8px}.commander-intro p{font-size:12px;color:#94917b;line-height:1.8;margin-bottom:0}.example-row{display:flex;gap:7px;flex-wrap:wrap;margin:20px 0}.example-row button{background:#eff1e5;border:1px solid #dee2c9;border-radius:20px;padding:7px 10px;font-size:11px;color:#7b8563}form label{display:block;font-size:12px;font-weight:500;margin-bottom:17px}.required{float:right;font-size:10px;font-weight:400;color:#a39270}input,select,textarea{width:100%;display:block;padding:11px 12px;margin-top:8px;border:1px solid #dcdac8;border-radius:7px;background:#fffefa;color:#44553e;font-size:13px;outline:none}input::placeholder,textarea::placeholder{color:#b2af9a}textarea{resize:vertical;min-height:75px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.assignment{display:flex;align-items:center;gap:10px;background:#eff2e5;border-radius:8px;padding:12px;font-size:11px;color:#8a9278}.assignment strong{color:#5c7752;font-size:12px}.demo-label{font-size:10px;color:#a39169;margin-left:auto}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.form-note{font-size:10px;line-height:1.8;text-align:center;margin:18px 0 0;color:#96917e}.form-error{font-size:12px;color:#b66c4d;margin:12px 0 0}.profile-heading{display:flex;align-items:center;gap:13px;margin-bottom:20px}.profile-heading .portrait{width:110px;height:110px;flex-shrink:0}.profile-heading h2{margin-bottom:7px}.profile-heading p{font-size:12px;color:#8e917c;margin:0;line-height:1.7}.profile-about{font-size:13px;line-height:1.9;color:#7d846d}.worker-tasks{border-top:1px solid var(--line);margin:20px 0;padding-top:15px}.worker-tasks h3{font-size:12px;font-weight:500;color:#8c9078}.worker-tasks .task-card{padding:12px 0}.dialog .wide{width:100%;text-align:center}.detail-meta{display:flex;gap:8px;align-items:center;margin:20px 0}.task-dialog h2{font-size:22px;line-height:1.6;margin-top:20px;overflow-wrap:anywhere}.task-description{font-size:13px;white-space:pre-wrap;line-height:1.9;color:#7c846d;overflow-wrap:anywhere}.detail-fields{display:grid;grid-template-columns:1fr 1fr;border-block:1px solid var(--line);padding:17px 0;margin:20px 0;gap:15px}.detail-fields span{font-size:10px;color:#96917c}.detail-fields strong{display:block;font-size:12px;margin-top:6px;font-weight:500}.task-actions{display:flex;flex-wrap:wrap;gap:10px}.task-actions button{font-size:12px;padding:10px 13px}.detail-note{font-size:11px;color:#a08e70;margin-top:16px;line-height:1.8}.task-complete{background:#edf2e6;padding:14px;border-radius:8px;font-size:13px;color:#5e7c50}.pet-dialog{text-align:center;width:min(370px,calc(100% - 28px))}.pet-dialog .portrait{width:190px;height:190px;margin:-10px auto 8px}.pet-dialog h2{margin-bottom:10px}.pet-dialog p{font-size:13px;color:#8c917b;line-height:1.9}.toast{position:fixed;bottom:25px;left:50%;translate:-50% 10px;background:#3e5d48;color:#fffbea;padding:12px 22px;border-radius:9px;box-shadow:0 5px 22px #1f382e33;font-size:13px;z-index:100;opacity:0;pointer-events:none;transition:.2s;max-width:90%;text-align:center}.toast.visible{opacity:1;translate:-50% 0}@keyframes pet-bounce{0%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-3px) rotate(2deg)}}@keyframes heart-rise{from{opacity:1;translate:0 0}to{opacity:0;translate:0 -35px}}@media(min-width:1500px){.workspace{grid-template-columns:minmax(0,1fr) 320px}.journal{padding:25px}.task-list{max-height:420px}}@media(max-width:1100px){.workspace{grid-template-columns:1fr}.journal{display:block}.task-list{max-height:290px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 25px}.journal-note{max-width:600px}.team-section{grid-template-columns:1fr}.team-grid{max-width:700px}.summary{justify-content:flex-start;gap:50px}.journal-heading{float:left;margin-right:40px}.summary{border-top:0;margin-top:0}.filters{clear:both}.island-clock small{display:none}}@media(max-width:620px){.topbar{height:79px;padding:0 18px}.brand{font-size:19px;gap:6px}.brand-mark{font-size:34px}.brand small{font-size:7px;letter-spacing:1px}.demo-badge{display:none}.header-actions .primary{font-size:11px;padding:10px 12px}main{padding:25px 14px 0}.welcome{margin-bottom:20px}.welcome h1{font-size:22px}.welcome p:not(.eyebrow){font-size:11px}.island-clock{display:none}.workspace{gap:20px}.scene{min-height:310px;aspect-ratio:3/2}.map-hint{font-size:9px;bottom:8px;left:8px;padding:6px}.map-note{font-size:9px;top:8px;left:8px}.motion-toggle{bottom:8px;right:8px;font-size:9px;padding:6px;min-height:30px}.village-footer{padding:12px;font-size:10px}.village-footer .muted{display:none}.task-list{display:block}.team-grid{grid-template-columns:repeat(2,1fr)}.team-section{margin-top:28px}.page-footer{display:block;line-height:2}.page-footer span{display:block}.dialog{padding:26px 20px}.commander-intro .portrait{width:80px;height:80px}.commander-intro h2{font-size:18px}.commander-intro p{font-size:11px}.form-row{gap:10px}.summary{gap:25px}.journal-heading{margin-right:20px}.place{padding:2px 5px}.actor-bubble{padding:3px 5px}.actor-label{padding:2px 4px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important;transition:none!important}}
@media(max-width:620px){.journal-heading{float:none;margin:0 0 18px}.summary{justify-content:space-between;gap:10px;border-top:1px solid #e5e2d1;margin:0 0 16px}.summary span{white-space:nowrap}.scene{min-height:0}.actor{width:clamp(46px,12cqw,140px);height:clamp(46px,12cqw,140px)}.actor-label{font-size:8px}.actor-bubble{font-size:8px;bottom:100%}.place{font-size:8px}.header-actions .primary{white-space:nowrap;padding:10px 12px}.pet{width:clamp(44px,10cqw,115px);height:clamp(44px,10cqw,115px)}.map-note{font-size:8px;padding:4px 6px}.map-hint{font-size:8px;padding:4px}.motion-toggle{font-size:8px;min-height:24px}.team-grid{gap:6px}}
.brand .official-logo{display:block;width:145px;height:auto}.brand .brand-title{border-left:1px solid #d6d4c2;padding-left:17px;font-size:21px}.brand small{font-size:8px;letter-spacing:1.6px}@media(max-width:620px){.brand{gap:9px}.brand .official-logo{width:95px}.brand .brand-title{font-size:12px;padding-left:9px;white-space:nowrap}.brand small{display:none}.topbar{padding-inline:14px}.header-actions .primary{font-size:10px;padding:10px 9px}}

/* Pixel village art revision v2: smaller sprites, cottage-aligned signs. */
.actor{width:clamp(56px,9.5cqw,112px);height:clamp(56px,9.5cqw,112px)}.pet{width:clamp(44px,8cqw,95px);height:clamp(44px,8cqw,95px)}.p-command{left:58%;top:31%}.p-creative{left:25%;top:29%}.p-observer{left:81%;top:32%}.p-reporter{left:76%;top:55%}.p-garden{left:22%;top:58%}@media(max-width:620px){.actor{width:clamp(44px,10cqw,65px);height:clamp(44px,10cqw,65px)}.pet{width:44px;height:44px}}
/* Airy panorama revision: island first, journal only on demand. */ .workspace{display:block;position:relative}.scene{aspect-ratio:16/9}.map{object-fit:fill}.journal[hidden]{display:none!important}.journal{position:fixed;right:24px;top:106px;bottom:24px;width:340px;overflow:auto;z-index:90;box-shadow:0 12px 45px #2d443d33}.journal-heading{float:none;margin-right:20px}.journal .summary{justify-content:space-around;gap:10px;border-top:1px solid #e5e2d1;margin-top:21px}.journal .task-list{display:block;max-height:none;min-height:100px}.journal-close{position:absolute;right:12px;top:10px;width:28px;height:28px;border-radius:50%;background:#ececde;color:#68745e;font-size:21px}.journal .journal-flower{display:none}.journal-toggle{padding:11px 15px;font-size:12px;white-space:nowrap}.topbar{height:82px}main{padding-top:24px}.welcome{margin-bottom:21px}.welcome h1{font-size:25px}.actor{width:clamp(48px,5.8cqw,78px);height:clamp(48px,5.8cqw,78px)}.pet{width:clamp(44px,4.8cqw,64px);height:clamp(44px,4.8cqw,64px)}.actor-label{font-size:clamp(9px,.95cqw,12px)}.actor-bubble{font-size:clamp(9px,.95cqw,12px)}.p-command{left:49%;top:25%}.p-creative{left:18%;top:32%}.p-observer{left:82%;top:29%}.p-reporter{left:80%;top:58%}.p-garden{left:20%;top:59%}.place{font-size:clamp(8px,1cqw,12px);padding:2px 7px}.team-section{margin-top:26px}@media(max-width:620px){.header-actions{gap:7px}.journal-toggle{font-size:10px;padding:9px 8px}.topbar .brand-title{display:none}.topbar{height:72px}.journal{right:10px;left:10px;top:83px;bottom:12px;width:auto}.scene{aspect-ratio:4/3}.map{object-fit:cover;object-position:center}.actor{width:44px;height:44px}.pet{width:44px;height:44px}.welcome h1{font-size:21px}.actor-label{font-size:8px}.actor-bubble{font-size:8px}.map-hint{max-width:66%;font-size:8px}}
@media(max-width:620px){.scene{aspect-ratio:16/9}.map{object-fit:fill}.actor-label{display:none}.actor-bubble{padding:2px 4px;font-size:8px}.map-hint{display:none}}
.commander-dialog{width:min(700px,calc(100vw - 24px));max-height:90dvh;overflow-y:auto}
[hidden]{display:none!important}
.intake-output{background:#f1f3e7;border:1px solid #d5dfc8;border-radius:14px;padding:20px;margin:18px 0}
.intake-output h3{margin:6px 0 12px;font-size:17px;color:#3f5c40}
.intake-output p,.intake-output li{font-size:14px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}
.intake-output ul{padding-left:20px;margin-bottom:0;color:#617257}
.intake-questions{margin-top:18px;padding-top:14px;border-top:1px solid #d5dfc8}
.intake-questions ol{padding-left:22px;margin-bottom:0}
.intake-questions li+li{margin-top:9px}
#intake-form>label{display:block;font-weight:600;font-size:14px;margin:18px 0 9px}
#intake-message{width:100%;box-sizing:border-box;padding:13px;border:1px solid #d8d5c6;border-radius:9px;background:#fffdf8;color:#394936;resize:vertical;line-height:1.7}
.intake-privacy,.intake-review-note{font-size:12px;line-height:1.7;color:#797c6a}
#intake-status{font-size:13px;line-height:1.7;color:#54764b}
#task-form{border-top:1px dashed #d5d4c3;margin-top:20px;padding-top:12px}
#task-form h3{font-size:17px;margin-bottom:5px}
.commander-dialog button:disabled{opacity:.55;cursor:wait}
@media(max-width:620px){.commander-dialog .form-actions{flex-wrap:wrap;gap:9px}.commander-dialog .form-actions button{flex:1;min-width:125px}.commander-dialog .commander-intro .portrait{width:64px;height:64px;flex-shrink:0}.intake-output{padding:15px}.commander-dialog .form-row{grid-template-columns:1fr}}
.creative-panel{margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}
.creative-panel h3{font-size:18px;margin-bottom:10px;color:#4d674c}
.creative-panel p,.creative-panel li{font-size:13px;line-height:1.8;overflow-wrap:anywhere}
.creative-heading{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:14px}
.creative-brief{font-size:13px;color:#707963;margin:14px 0}
.creative-brief summary,.review-notes summary,.provenance-note summary{cursor:pointer;line-height:1.8}
.creative-brief p{font-size:13px;margin-top:10px}
.post-label,.creative-feedback label{display:block;font-size:13px;font-weight:600;margin:15px 0 9px}
#creative-post,#creative-feedback{display:block;width:100%;border:1px solid #d6dbc8;border-radius:10px;padding:14px;background:#fffef8;color:#354731;line-height:1.9;resize:vertical;font-size:14px}
#creative-post{min-height:240px}#creative-post[readonly]{background:#f5f6ec}
.copy-note{font-size:11px!important;color:#7e856f}
.creative-feedback{border-top:1px dashed #d8decc;margin-top:20px;padding-top:4px}
.creative-panel .task-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.review-notes,.provenance-note{background:#f1f3e8;border-radius:9px;padding:10px 13px;margin-top:17px;font-size:12px;color:#67765b}
.review-notes ul{padding-left:20px}.provenance-note a{text-decoration:underline;font-size:12px}
.creative-questions{padding:15px 15px 15px 34px;background:#f2f3e6;border-radius:10px}
.task-dialog.creative-task{width:min(720px,calc(100vw - 28px))}
/* Home layout: keep the complete map in the first viewport; summary is visible by default. */
main{max-width:1920px;padding:20px clamp(16px,3vw,48px) 0}
.topbar{height:72px;padding-inline:clamp(16px,3vw,48px)}
.welcome{margin-bottom:18px;min-height:77px}.welcome h1{font-size:24px;margin-bottom:7px}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) 306px;gap:22px;align-items:start}
.village{width:100%;max-width:var(--map-max-width,100%);justify-self:center;align-self:start}
.scene{aspect-ratio:16/9;min-height:0}.map{object-fit:fill}
.village-footer{min-height:38px;padding:9px 13px;font-size:11px}
.today-panel{display:flex;flex-direction:column;min-width:0;max-height:var(--workspace-room,650px);overflow:hidden;border:1px solid #dedfca;border-radius:15px;background:#fffdf6;padding:20px;box-shadow:0 4px 18px #3d4f3610}
.today-heading{display:flex;justify-content:space-between;gap:8px;flex-shrink:0}.today-heading .eyebrow{font-size:8px;letter-spacing:1.6px;margin-bottom:8px}
.today-heading h2{font-size:19px;line-height:1.5}.today-flower{font-size:29px;color:#aab78b;line-height:1.4}
.today-intro{font-size:11px;color:#7c846c;line-height:1.8;margin:8px 0 15px;flex-shrink:0}
.attention-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:19px;flex-shrink:0}
.attention-counts button{display:flex;flex-direction:column;gap:4px;align-items:center;background:#f1f3e7;border:1px solid transparent;border-radius:9px;padding:10px 3px;color:#5c6b50}
.attention-counts strong{font-size:23px;font-weight:600;line-height:1.2}.attention-counts span{font-size:10px;white-space:nowrap}
.attention-counts button:first-child{color:#a87142;background:#faf0df}.attention-counts button[aria-pressed=true]{border-color:#8d9d75;box-shadow:0 0 0 1px #8d9d75;background:#e8eddb}
.priority-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;flex-shrink:0}.priority-heading h3{font-size:12px;letter-spacing:1px;margin:0;color:#778569}.priority-heading .text-button{font-size:10px;padding:3px}
.priority-list{overflow:auto;min-height:0;overscroll-behavior:contain;scrollbar-width:thin}
.priority-card{position:relative;width:100%;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:6px;padding:13px 21px 13px 0;border-bottom:1px solid #e6e8d9;background:transparent;color:#47533b}
.priority-card:hover{background:#f5f7ed}.priority-card:last-child{border-bottom:0}.priority-card strong{font-size:12px;line-height:1.7;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.priority-card small{font-size:10px;color:#8b917d;line-height:1.5}.priority-arrow{position:absolute;right:2px;top:45%;color:#acb59d;font-size:19px}
.priority-reason{font-size:9px;padding:2px 7px;background:#edf1e2;border-radius:4px;color:#657a50}.reason-review{background:#f7e8dc;color:#a36b47}.reason-waiting{background:#f6f0d8;color:#a1893b}.reason-urgent{background:#f8e5dc;color:#ae6545}
.today-footer{flex-shrink:0;border-top:1px solid #e6e8d9;margin-top:10px;padding-top:12px}.today-footer p{font-size:10px;color:#8b917d;margin-bottom:10px;line-height:1.6}.today-footer .wide{display:block;width:100%;font-size:12px;padding:10px}.today-footer small{display:block;font-size:9px;line-height:1.8;color:#9a9e8b;margin-top:10px}
.priority-empty{padding:20px 4px;text-align:center;color:#89987b}.priority-empty>span{font-size:28px}.priority-empty p{font-size:12px;line-height:1.8;margin:8px 0}
.journal{z-index:95}.team-section{margin-top:28px}
@media(min-width:900px) and (max-width:1100px){.brand-title,.demo-badge{display:none}.workspace{grid-template-columns:minmax(0,1fr) 282px;gap:18px}.today-panel{padding:17px}.header-actions{gap:12px}.welcome h1{font-size:22px}}
@media(max-width:899px){.workspace{grid-template-columns:minmax(0,1fr);gap:18px}.today-panel{max-height:none;padding:18px}.priority-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px;overflow:visible}.attention-counts{margin-bottom:15px;gap:10px}.attention-counts button{flex-direction:row;justify-content:center;gap:9px;padding:10px}.attention-counts strong{font-size:21px}.today-intro{margin-bottom:12px}.today-footer{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px 16px}.today-footer p{margin:0}.today-footer small{grid-column:1/-1;margin-top:0}.today-footer .wide{padding:9px 16px}.brand-title,.demo-badge{display:none}.header-actions{gap:9px}}
@media(max-width:620px){.topbar{height:64px;padding-inline:14px}.brand .official-logo{width:95px}main{padding:15px 12px 0}.welcome{min-height:67px;margin-bottom:13px}.welcome .eyebrow{font-size:8px;margin-bottom:8px}.welcome h1{font-size:20px;letter-spacing:0}.welcome p:not(.eyebrow){font-size:10px}.village-footer{min-height:34px;padding:8px 10px;font-size:9px}.village-footer button{font-size:9px}.today-heading h2{font-size:18px}.today-intro{font-size:11px}.priority-list{grid-template-columns:1fr}.priority-card{padding:12px 20px 12px 0;gap:4px}.attention-counts span{font-size:10px}.attention-counts button{gap:6px}.today-footer{gap:8px}.today-footer .wide{font-size:11px;padding:9px 12px}.today-footer small{font-size:9px}.journal{top:76px}.actor{min-width:36px;min-height:36px;width:clamp(36px,10cqw,44px);height:clamp(36px,10cqw,44px)}.actor-bubble{font-size:7px}.map-note{font-size:8px;padding:4px 6px}.motion-toggle{font-size:8px;min-height:24px}.team-section{margin-top:24px}}
@media(max-height:650px) and (min-width:900px){.topbar{height:56px}.welcome{min-height:42px;margin-bottom:12px}.welcome .eyebrow,.welcome p:not(.eyebrow),.island-clock{display:none}.welcome h1{font-size:20px;margin:0}main{padding-top:12px}.today-panel{padding:14px}.today-intro{display:none}.attention-counts{margin-top:10px;margin-bottom:10px}.attention-counts button{padding:6px}.attention-counts strong{font-size:19px}.today-heading h2{font-size:16px}.today-heading .eyebrow{display:none}.today-footer small{display:none}.priority-card{padding-block:9px}}
.team-card{align-items:flex-start;min-width:0}.team-card>span:last-child{min-width:0}.worker-current-task{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:7px;font-size:10px;line-height:1.7;color:#8c927e;overflow-wrap:anywhere}
.worker-focus{display:flex;flex-direction:column;gap:8px;border:1px solid #dbe2ce;background:#f2f5e9;padding:16px;border-radius:12px;margin:18px 0}.worker-focus>span{font-size:11px;color:#78905d}.worker-focus strong{font-size:14px;line-height:1.8;overflow-wrap:anywhere}.worker-focus small{font-size:11px;line-height:1.8;color:#8b937c}
.activity-section{margin:30px 0 24px;padding:24px;border:1px solid #dce1cc;border-radius:14px;background:#fbfcf4}.activity-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.activity-heading h2{font-size:20px}.activity-heading>p{font-size:12px;color:#8d957e;margin:0}.activity-list{display:grid;grid-template-columns:1fr 1fr;gap:0 28px}.activity-card{background:transparent;display:flex;align-items:center;gap:11px;width:100%;text-align:left;padding:14px 0;color:#55684a;border-top:1px solid #e4e8da}.activity-card>span:nth-child(2){flex:1;min-width:0}.activity-card strong{display:block;font-size:12px;font-weight:600;line-height:1.8}.activity-card small{display:block;font-size:10px;color:#919a82;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;margin-top:3px}.activity-card time{font-size:10px;white-space:nowrap;color:#9ca58e}.activity-dot{width:7px;height:7px;background:#b1be91;border-radius:50%;flex-shrink:0}.activity-empty{grid-column:1/-1;color:#879775;font-size:13px;line-height:1.9;margin:0;padding:10px 0}.activity-empty small{display:block;font-size:11px;color:#a0a68f;margin-top:7px}
.task-history{border-top:1px solid #e0e5d3;margin-top:22px;padding-top:16px;color:#718262;font-size:12px}.task-history summary{cursor:pointer;font-weight:600;line-height:1.8}.task-history p{font-size:12px;line-height:1.9;margin:12px 0 0;color:#929c83}.task-history ol{padding:0;list-style:none;margin-bottom:0}.task-history li{position:relative;display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:11px 0 11px 15px;border-left:1px solid #d5dfc6;line-height:1.8}.task-history li:before{content:'';width:5px;height:5px;background:#a8bb8d;position:absolute;left:-3px;top:20px;border-radius:50%}.task-history time{font-size:10px;color:#a0a78f;white-space:nowrap}
@media(max-width:899px){.activity-list{grid-template-columns:1fr}.activity-section{padding:18px}.activity-heading{display:block}.activity-heading>p{margin-top:9px}.team-card .portrait{width:58px;height:58px;flex-shrink:0}.worker-current-task{font-size:10px}.task-history li{gap:8px}}

.planning-panel{margin-top:18px;border-top:1px solid #dedbcf;padding-top:16px}.planning-panel summary{cursor:pointer;color:#48604b;font-weight:700}.planning-panel form{display:grid;gap:14px;margin-top:16px}.planning-panel label{display:grid;gap:7px}.planning-panel input,.planning-panel select,.planning-panel textarea{width:100%;box-sizing:border-box;border:1px solid #d7d8cc;border-radius:10px;padding:11px;font:inherit;background:#fffdf7}.planning-panel textarea{resize:vertical}.planning-note{font-size:13px;color:#77796a;line-height:1.7}.planning-panel :disabled{opacity:.6;cursor:wait}

.workbench-dialog{width:min(850px,calc(100% - 28px))}.workbench-intro{color:#77796a;line-height:1.7}.local-tools,.external-tools{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:14px 0 24px}.workbench-card{display:grid;gap:10px;text-align:left;padding:17px;border:1px solid #d9ddcf;border-radius:13px;background:#fffdf7;color:#354d40;text-decoration:none;font:inherit;cursor:pointer;min-width:0}.workbench-card:hover{background:#edf1e6}.workbench-card span,.department-card p{font-size:14px;line-height:1.7}.workbench-card small,.department-card small{font-size:12px;color:#77796a;line-height:1.7}.department-directory{border-top:1px solid #dedbcf;padding-top:18px;margin-top:18px}.department-directory summary{cursor:pointer;font-weight:700;color:#48604b}.department-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}.department-card{padding:16px;background:#fffdf7;border:1px solid #e0dfd2;border-radius:12px;min-width:0}.department-card h3{margin:8px 0}.department-card p{margin:8px 0}.handoff-flow{font-size:14px;line-height:1.9;background:#eaf0e3;padding:16px;border-radius:12px}.journal-search{display:grid;gap:10px;margin:14px 0}.journal-search label{display:grid;gap:5px;font-size:12px;color:#6f796c}.journal-search input,.journal-search select{width:100%;box-sizing:border-box;min-width:0;border:1px solid #d7d8cc;border-radius:8px;background:#fffdf7;padding:9px;font:inherit;color:#354d40}.search-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px}.journal-search p{font-size:12px;color:#7c8476;margin:0}.journal-search .text-button{justify-self:start}.header-actions{flex-wrap:wrap;justify-content:flex-end}@media(max-width:520px){.header-actions [data-open-workbench]{font-size:12px;padding:8px 10px}.local-tools,.external-tools,.department-grid{grid-template-columns:1fr}}

.quick-task-form{display:grid;gap:15px}.quick-task-form label{display:grid;gap:7px}.quick-task-form input,.quick-task-form textarea,.quick-task-form select{width:100%;box-sizing:border-box;min-width:0;padding:11px;border:1px solid #d7d8cc;border-radius:10px;background:#fffdf7;font:inherit;color:#354d40}.quick-task-form textarea{resize:vertical}

.storage-warning{margin:18px 0;padding:17px 20px;border:1px solid #dcb36e;background:#fff2d7;border-radius:12px;color:#795c2f;line-height:1.7}.storage-warning[hidden]{display:none}.storage-warning p{font-size:14px;margin:8px 0}.storage-warning button{font-size:13px}

.island-place{pointer-events:auto;cursor:pointer;z-index:12;font-family:inherit;line-height:1.3}.island-place:hover,.island-place:focus-visible{background:#fff8c9;outline:2px solid #67845b;outline-offset:3px}.resident{position:absolute;transform:translate(-50%,-50%);width:clamp(48px,5.8cqw,78px);height:clamp(48px,5.8cqw,78px);padding:0;background:none;border:0;cursor:pointer}.resident-sprite{display:block;width:100%;height:100%;background-image:url('assets/residents-v2.png');background-repeat:no-repeat;background-size:200% 100%;image-rendering:pixelated;filter:drop-shadow(0 3px 1px #3e482638)}.resident-kimberly{background-position:0 0}.resident-keani{background-position:100% 0}.resident-label{position:absolute;top:96%;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:clamp(8px,.95cqw,12px);background:#f7effef2;border:1px solid #ad9bb8;color:#61516d;padding:2px 6px;border-radius:4px}.resident:hover .resident-sprite{transform:translateY(-3px)}.resident-portrait{width:110px;height:110px}.resident-greeting{line-height:1.9;margin:18px 0}.pet-bowl{position:absolute;transform:translate(-50%,-50%);z-index:25;width:44px;height:44px;background:transparent;border:0;padding:4px;cursor:pointer}.bowl-food{display:block;border:3px solid #a8754f;border-top-color:#bd916a;background:#dac4a3;color:#8e592e;border-radius:20% 20% 45% 45%;font-size:16px;line-height:12px;height:16px;text-shadow:0 1px #b27b40}.portion-full .bowl-food{background:#efd09e}.bowl-caption{position:absolute;left:50%;top:90%;transform:translateX(-50%);white-space:nowrap;font-size:9px;background:#fff5dddc;color:#6f5537;padding:1px 3px;border-radius:3px}.pet-mood{display:inline-block;padding:8px 12px;border-radius:10px;background:#e9efdf;color:#5f754c}@media(max-width:700px){.resident{width:36px;height:36px}.resident-label{display:none}.pet-bowl{width:30px;height:30px;padding:5px}.bowl-food{height:10px;font-size:12px;border-width:2px;line-height:8px}.bowl-caption{display:none}.island-place{font-size:7px;padding:2px 4px}}

.island-directory-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin:15px 0}.island-directory-grid .workbench-card{min-height:70px}@media(max-width:520px){.island-directory-grid{grid-template-columns:1fr}}

.delivery-review{margin:22px 0;padding:18px;border:1px solid #d7dfcf;border-radius:13px;background:#f0f4e9}.delivery-review-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.delivery-review-heading h3{margin:0}.delivery-review-heading>span{font-size:13px;white-space:nowrap;color:#647958}.delivery-checks{border:0;margin:15px 0;padding:0;display:grid;gap:12px}.delivery-checks label{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.7;cursor:pointer}.delivery-checks input[type=checkbox]{width:18px;height:18px;min-width:18px;flex:0 0 18px;margin:3px 0 0;accent-color:#527252}.delivery-reviewer-label{display:grid;gap:8px;font-size:14px}.delivery-reviewer-label select{font:inherit;padding:10px;border:1px solid #ccd4c3;background:#fffdf7;border-radius:9px;max-width:100%;color:#354d40}.delivery-scope{font-size:12px;color:#7a8271;line-height:1.7}.delivery-approved{color:#4b6b45;font-weight:700}.review-complete-list{list-style:none;padding:0;font-size:14px;line-height:1.9}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}

.review-desk-counts{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0}.review-desk-counts>div{display:grid;gap:5px;padding:14px 8px;text-align:center;border:1px solid #dbe0cf;background:#edf2e5;border-radius:11px}.review-desk-counts strong{font-size:24px;color:#566e4d}.review-desk-counts span{font-size:12px;color:#6a7861}.review-desk-list{display:grid;gap:12px;margin:15px 0 24px}.review-desk-card{display:grid;gap:8px;text-align:left;background:#fffdf7;border:1px solid #d8dece;border-radius:12px;padding:15px;color:#354d40;cursor:pointer;font:inherit;overflow-wrap:anywhere}.review-desk-card span{font-size:13px;color:#74816c}.review-desk-card small{color:#668057}.review-desk-card:hover{background:#edf2e5}.review-desk-card.reviewed{border-color:#c9d6bc}.review-desk-empty{padding:15px;border-radius:10px;background:#f2f1e8;font-size:14px;line-height:1.8;color:#7b8372}

/* Resident life */
.task-next-step{margin:14px 0;padding:12px 14px;background:#eef2e6;border-left:3px solid #708762;border-radius:8px;font-size:13px;line-height:1.65}.task-next-step p{margin:5px 0 0;color:#63705c}.manual-draft-entry{margin-top:18px;padding:12px;border:1px solid #d8ddcc;border-radius:10px;background:#faf9f0}.manual-draft-entry summary{cursor:pointer;font-weight:600;color:#416149}.manual-draft-entry label{display:block;font-size:13px;margin-top:10px}.manual-draft-entry textarea{box-sizing:border-box;width:100%;min-width:0;font:inherit;font-size:16px;padding:10px;border:1px solid #c8d1bf;border-radius:8px;background:#fffdf7}.usage-guide{line-height:1.75;font-size:14px}.usage-guide h3{font-size:17px}.usage-guide-item{margin:10px 0;border-top:1px solid #ddd6c4;padding-top:10px}.usage-guide-summary{cursor:pointer;font-weight:600}.usage-guide-text{margin:8px 0}.usage-guide-steps,.usage-guide-list{padding-left:22px}
/* resident-life：居民散步、心情泡泡、角色卡互動（只作用於居民相關元素） */
.resident-sprite.face-left{scale:-1 1}
@media (prefers-reduced-motion: no-preference){
 .resident-sprite.walking{animation:resident-step .45s steps(2,end) infinite}
}
@keyframes resident-step{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
.resident-mood{position:absolute;left:50%;bottom:calc(100% + 4px);translate:-50% 0;padding:2px 8px;border:2px solid #3d3a32;border-radius:999px;background:#fffdf6;color:#3d3a32;font-size:.72rem;font-weight:700;line-height:1.3;white-space:nowrap;pointer-events:none;box-shadow:0 2px 0 rgba(0,0,0,.15)}
.resident-mood::after{content:'';position:absolute;left:50%;top:100%;translate:-50% 0;border:5px solid transparent;border-top-color:#3d3a32}
.resident-mood[hidden]{display:none}
.resident-mood.mood-happy{background:#fff3c4}
.resident-mood.mood-focused{background:#dcefff}
.resident-mood.mood-tired{background:#ece6ff}
.resident-mood.mood-needHelp{background:#ffe1dc}
.resident-chat{display:grid;gap:.5rem;margin-top:1rem;padding:.75rem;border:2px dashed rgba(61,58,50,.35);border-radius:12px}
.resident-disclaimer{margin:0;font-size:.8rem;font-weight:700;color:#8a5a00}
.resident-reply{margin:0;min-height:2.5em;padding:.6rem .75rem;border-radius:10px;background:rgba(255,255,255,.75);white-space:pre-wrap;overflow-wrap:anywhere}
.resident-chat [data-greet-resident]{justify-self:start}
.resident-mood-form{margin-top:1rem}
.resident-mood-current{margin:0;font-weight:600;overflow-wrap:anywhere}
.resident-mood-form textarea{resize:vertical}
@media (prefers-reduced-motion: reduce){
 .resident-mood{transition:none}
}

/* Development progress */
/* 小島開發進度看板 */
.dev-progress {
  --dev-progress-bg: #fbf7ee;
  --dev-progress-card: #fffdf7;
  --dev-progress-ink: #2f3a2c;
  --dev-progress-muted: #5e6a57;
  --dev-progress-green: #3f6b45;
  --dev-progress-green-soft: #dfe9d6;
  --dev-progress-line: #e3dccb;
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  padding: 1rem;
  background: var(--dev-progress-bg);
  color: var(--dev-progress-ink);
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: normal;
  user-select: text;
  -webkit-user-select: text;
}
.dev-progress *,
.dev-progress *::before,
.dev-progress *::after {
  box-sizing: border-box;
  animation: none;
  transition: none;
}
.dev-progress__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
  color: var(--dev-progress-muted);
}
.dev-progress__title {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  color: var(--dev-progress-green);
}
.dev-progress__lead {
  margin: 0 0 0.25rem;
  font-weight: 600;
}
.dev-progress__caveat {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--dev-progress-muted);
}
.dev-progress__phases {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.dev-progress__phase {
  position: relative;
  min-width: 0;
  padding: 0 0 1.25rem 2.25rem;
}
.dev-progress__phase::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.3rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid var(--dev-progress-green);
  background: var(--dev-progress-card);
  z-index: 1;
}
.dev-progress__phase::after {
  content: "";
  position: absolute;
  left: calc(0.35rem + 0.5rem - 1px);
  top: 1.3rem;
  bottom: 0;
  width: 2px;
  background: var(--dev-progress-line);
}
.dev-progress__phase:last-child::after {
  display: none;
}
.dev-progress__phase--done::before {
  background: var(--dev-progress-green);
}
.dev-progress__phase--done::after {
  background: var(--dev-progress-green);
}
.dev-progress__phase--next::before {
  background: var(--dev-progress-green-soft);
  box-shadow: 0 0 0 3px var(--dev-progress-green-soft);
}
.dev-progress__phase--planned::before {
  border-style: dashed;
  border-color: var(--dev-progress-muted);
}
.dev-progress__phase-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
}
.dev-progress__phase-title {
  margin: 0;
  font-size: 1.05rem;
  min-width: 0;
}
.dev-progress__status {
  margin: 0;
  padding: 0 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  background: var(--dev-progress-green-soft);
  color: var(--dev-progress-green);
}
.dev-progress__phase--planned .dev-progress__status {
  background: var(--dev-progress-line);
  color: var(--dev-progress-muted);
}
.dev-progress__items {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}
.dev-progress__items li {
  margin: 0.15rem 0;
}
.dev-progress__box {
  min-width: 0;
  margin: 0 0 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--dev-progress-line);
  border-left: 4px solid var(--dev-progress-green);
  border-radius: 0.5rem;
  background: var(--dev-progress-card);
}
.dev-progress__box-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--dev-progress-green);
}
.dev-progress__box-list {
  margin: 0;
  padding-left: 1.1rem;
}
.dev-progress__actions {
  margin-top: 0.5rem;
}
.dev-progress__back {
  max-width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid var(--dev-progress-green);
  border-radius: 0.5rem;
  background: var(--dev-progress-green);
  color: #fffdf7;
  font: inherit;
  white-space: normal;
  cursor: pointer;
}
.dev-progress__back:focus-visible {
  outline: 3px solid var(--dev-progress-green-soft);
  outline-offset: 2px;
}
@media (min-width: 720px) {
  .dev-progress {
    padding: 1.5rem;
  }
}

/* Simplified local workflow */
.workflow-steps{margin:0 0 1rem}
.workflow-steps ol{display:flex;flex-wrap:wrap;gap:.5rem;list-style:none;margin:0;padding:0}
.workflow-step{display:flex;align-items:center;gap:.35rem;padding:.3rem .6rem;border-radius:999px;font-size:.85rem;color:#6b735e;background:#efeee2}
.workflow-step-mark{display:inline-grid;place-items:center;width:1.4em;height:1.4em;border-radius:50%;background:#ddd;font-size:.8em}
.workflow-step.is-done{color:#2f6b3a;background:#e8f4ea}
.workflow-step.is-done .workflow-step-mark{background:#2f6b3a;color:#fff}
.workflow-step.is-current{color:#405b40;background:#e5eddb;font-weight:600;outline:1px solid #9eaf86}
.workflow-step.is-current .workflow-step-mark{background:#527252;color:#fff}
.workflow-steps[aria-busy="true"] .is-current{animation:workflow-pulse 1.4s ease-in-out infinite}
@keyframes workflow-pulse{50%{opacity:.6}}
@media (prefers-reduced-motion:reduce){.workflow-steps[aria-busy="true"] .is-current{animation:none}}
.delivery-success{border-color:#2f6b3a;background:#f3faf4}
.delivery-success h3{margin:0 0 .4rem;color:#2f6b3a}
.delivery-review-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:.5rem}
.delivery-actions{display:flex;flex-wrap:wrap;gap:.5rem;padding:.6rem 0;border-top:1px solid #eee}
.delivery-actions button{min-height:44px;padding:0 1rem}
.delivery-actions button:disabled{opacity:.5;cursor:not-allowed}
.delivery-scope{font-size:.8rem;color:#666}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.creative-feedback summary,.intake-cost-note summary{cursor:pointer;font-size:13px;color:#526d48;padding:10px 0}
.intake-cost-note p{font-size:12px;line-height:1.8;color:#7a826e}
.activity-list{grid-template-columns:repeat(2,minmax(0,1fr))}
.activity-card{min-width:0}
.activity-card strong{overflow-wrap:anywhere}
@media(max-width:899px){.activity-list{grid-template-columns:minmax(0,1fr)}}

/* Creative workshop */
.creative-workshop{background:#fbf6e9;color:#2f3a2a;padding:1rem;border-radius:12px}
.creative-workshop h2{margin:0 0 .4rem;color:#2e4d2c}
.creative-workshop__intro{margin:0 0 1rem}
.creative-workshop__main,.creative-workshop__legacy{background:#fffdf6;border:1px solid #dcd3b8;border-radius:10px;padding:.9rem;margin-bottom:.8rem}
.creative-workshop__legacy{background:#f4efe0}
.creative-workshop__legacy summary{cursor:pointer;font-size:.9rem;font-weight:600;color:#66705b}
.creative-workshop h3{margin:0 0 .6rem;font-size:1rem;color:#3d5a36}
.creative-workshop__actions{display:flex;flex-wrap:wrap;gap:.5rem}
.creative-workshop__btn{flex:1 1 14rem;white-space:normal;text-align:left;padding:.6rem .8rem;border-radius:8px;font:inherit;cursor:pointer;border:1px solid #3d6b3a}
.creative-workshop__btn.primary{background:#3d6b3a;color:#fffdf6}
.creative-workshop__btn.secondary{background:#fffdf6;color:#2e4d2c}
.creative-workshop__btn:focus-visible,.creative-workshop__link:focus-visible{outline:3px solid #c98b3a;outline-offset:2px}
.creative-workshop__note,.creative-workshop__small{font-size:.85rem;color:#5a5f4c;margin:.5rem 0 0}
.creative-workshop__link{display:inline-block;color:#2e4d2c;font-weight:600;text-decoration:underline;word-break:break-word}

/* Facebook brief */
/* Facebook brief — 暖森林色 */
.fb-brief { background:#f6f1e7; color:#2f3a2c; border:1px solid #c9bfa6; border-radius:12px; padding:1rem; max-width:40rem; }
.fb-brief h2 { color:#3d5a3a; margin:0 0 .5rem; }
.fb-brief-intro, .fb-brief-privacy, .fb-brief-note, .fb-brief-hint { margin:.25rem 0; line-height:1.5; }
.fb-brief-privacy, .fb-brief-hint { color:#6b5a3e; font-size:.9rem; }
.fb-brief-form { display:grid; grid-template-columns:1fr; gap:.75rem; }
.fb-brief-format { border:1px solid #c9bfa6; border-radius:8px; padding:.5rem .75rem; display:grid; gap:.35rem; }
.fb-brief-choice { display:flex; gap:.5rem; align-items:flex-start; }
.fb-brief-choice input[type=radio] { width:18px; height:18px; flex:0 0 18px; margin:2px 0 0; accent-color:#527252; }
.fb-brief-field { display:grid; gap:.25rem; font-weight:600; }
.fb-brief-field input, .fb-brief-field textarea { font:inherit; font-weight:400; padding:.5rem; border:1px solid #a89f84; border-radius:6px; background:#fffdf8; color:#2f3a2c; width:100%; box-sizing:border-box; }
.fb-brief-field textarea { resize:vertical; min-height:6rem; }
.fb-brief-field input:focus, .fb-brief-field textarea:focus, .fb-brief-submit:focus-visible { outline:2px solid #4f7a4a; outline-offset:2px; }
.fb-brief-more summary { cursor:pointer; color:#3d5a3a; font-weight:600; }
.fb-brief-more { display:grid; gap:.5rem; }
.fb-brief-error { color:#9a3b24; min-height:1.25em; margin:0; }
.fb-brief-error:empty { min-height:0; }
.fb-brief-submit { background:#3d5a3a; color:#fffdf8; border:0; border-radius:8px; padding:.7rem 1rem; font:inherit; font-weight:600; cursor:pointer; white-space:normal; text-align:center; justify-self:start; max-width:100%; }
.fb-brief-submit:hover { background:#2f4a2d; }
.fb-brief-submit:disabled { opacity:.6; cursor:progress; }
@media (max-width:480px) { .fb-brief { padding:.75rem; } .fb-brief-submit { justify-self:stretch; } }

/* Draft insights and quick edits */
.draft-insights{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin:.75rem 0}
@media (max-width:640px){.draft-insights{grid-template-columns:1fr}}
.draft-insights-card{border:1px solid #d9dfca;border-radius:10px;padding:.85rem;background:#f5f6eb;min-width:0;font-size:13px;line-height:1.7}
.draft-insights-card h3{margin:0 0 .4rem;font-size:.95rem}
.draft-insights-topic{margin:0 0 .4rem;font-weight:600;overflow-wrap:anywhere}
.draft-insights-muted{color:#78806b;margin:.25rem 0;font-size:12px}
.draft-insights-same{color:#5f6b76;font-style:italic}
.draft-insights-stats{margin:.25rem 0;padding-left:1.1rem}
.draft-insights-details summary{cursor:pointer;color:#4c6a42;font-size:12px}
.draft-insights-brief,.draft-insights-request{overflow-wrap:anywhere;white-space:pre-wrap;font-size:12px;margin:.4rem 0}
.draft-insights-details p,.draft-insights-items dd{overflow-wrap:anywhere}
.draft-insights-full{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:12px}
.draft-insights-items dt{font-weight:600}
.draft-insights-items dd{margin:0 0 .4rem}
.draft-insights del{background:#fde8e8;color:#8a1c1c;white-space:pre-wrap;overflow-wrap:anywhere}
.draft-insights ins{background:#e6f6ea;color:#185c2c;text-decoration:none;white-space:pre-wrap;overflow-wrap:anywhere}
.quick-revision{margin:.75rem 0}
.quick-revision-buttons{display:flex;flex-wrap:wrap;gap:.5rem}
.quick-revision-button{min-height:36px;padding:.4rem .8rem;border:1px solid #cbd7bb;border-radius:999px;cursor:pointer;background:#edf2e3;color:#4a6344;font-size:12px}
.quick-revision-button:disabled{opacity:.5;cursor:not-allowed}
.quick-revision-hint{margin-top:.4rem}
.delivery-check-hint{display:block;opacity:.75;font-size:.85em}
@media (max-width:640px){.quick-revision-button{min-height:44px;min-width:44px}}

/* Single content confirmation */
.delivery-review .delivery-confirm-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.delivery-review .delivery-confirm-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  flex: 0 0 18px;
  margin: 0.15rem 0 0;
}
.delivery-review .delivery-confirm-label span {
  flex: 1 1 12rem;
  min-width: 0;
}
.google-preflight { margin: 18px 0; padding: 16px; border: 1px solid #d8ddcd; border-radius: 14px; background: #f2f4e9; overflow-wrap: anywhere; }
.google-preflight summary { cursor: pointer; font-weight: 600; color: #465e49; }
.google-preflight li { margin: 8px 0; line-height: 1.6; }
.google-preflight ul { padding-left: 22px; }
.google-preflight .fb-brief-error { color: #a34f36; }
.draft-versions { padding: 14px; margin: 14px 0; border: 1px solid #d8ddcd; border-radius: 14px; }
.draft-versions summary { cursor: pointer; color: #465e49; }
.draft-versions pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow: auto; font: inherit; padding: 12px; background: #f2f4e9; border-radius: 8px; }
.ops-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0; }
.ops-tabs button[aria-pressed="true"] { background:#465e49; color:white; }
.ops-source-badge { padding:10px; background:#fff0ce; border-radius:10px; color:#76572d; }
.ops-card { margin:16px 0; padding:16px; border:1px solid #d8ddcd; border-radius:14px; overflow-wrap:anywhere; }
.ops-stats { display:flex; flex-wrap:wrap; gap:12px; }
.ops-metric-inputs fieldset { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:10px; border:1px solid #d8ddcd; border-radius:10px; }
.ops-metric-inputs input { min-width:0; }
.ops-table-wrap { overflow-x:auto; }
.ops-table-wrap table { width:100%; border-collapse:collapse; font-size:14px; }
.ops-table-wrap th,.ops-table-wrap td { text-align:left; padding:6px 8px; border-bottom:1px solid #d8ddcd; }
