/* 新版島嶼（小島畫師 v5 底圖）：疊在原本小島首頁上的樣式。 */
.strategy-lodge{display:none!important}

/* 招牌：沿用新畫面的木牌風格 */
.scene .island-place{transform:translate(-50%,-50%);background:#fff3d6;color:#5a3a22;border:.22cqw solid #7a5230;border-radius:.6cqw;padding:.25cqw .9cqw;font-weight:800;font-size:clamp(9px,1.2cqw,17px);line-height:1.3;white-space:nowrap;box-shadow:0 .25cqw 0 #b98a52,0 .5cqw .8cqw rgba(0,0,0,.2);letter-spacing:.05em;z-index:12}
.scene .island-place:hover,.scene .island-place:focus-visible{background:#fff8c9;outline:2px solid #67845b;outline-offset:3px}
.scene .island-place[data-place="strategy"]{z-index:12}

/* 食碗：已經畫在底圖上，這裡只保留可點的區域 */
.pet-bowl .bowl-food,.pet-bowl .bowl-caption{opacity:0}
.pet-bowl:hover .bowl-caption,.pet-bowl:focus-visible .bowl-caption{opacity:1}

/* 燈塔的燈與徽章 */
.lighthouse-lamp{position:absolute;width:0;height:0;pointer-events:none;z-index:14;--c:#5fd38d}
.lighthouse-lamp.red{--c:#ff5a4f}.lighthouse-lamp.yellow{--c:#ffc93c}.lighthouse-lamp.blue{--c:#4aa8ff}.lighthouse-lamp.gray{--c:#b9b3a3}
.lighthouse-lamp .glow{position:absolute;left:-2.4cqw;top:-2.4cqw;width:4.8cqw;height:4.8cqw;border-radius:50%;background:radial-gradient(circle,var(--c) 0,color-mix(in srgb,var(--c) 55%,transparent) 28%,transparent 68%);opacity:.7;animation:lamp-breathe 3s ease-in-out infinite}
.lighthouse-lamp .sweep{position:absolute;left:-13cqw;top:-13cqw;width:26cqw;height:26cqw;border-radius:50%;background:conic-gradient(from 0deg,transparent 0 80%,rgba(255,244,190,.95) 88%,transparent 100%);-webkit-mask:radial-gradient(circle,#000 0,#000 8%,transparent 70%);mask:radial-gradient(circle,#000 0,#000 8%,transparent 70%);opacity:0;animation:lamp-spin 7s linear infinite}
body[data-phase="dusk"] .lighthouse-lamp .sweep{opacity:.7}
body[data-phase="night"] .lighthouse-lamp .sweep{opacity:1}
body[data-phase="night"] .lighthouse-lamp .glow{width:10cqw;height:10cqw;left:-5cqw;top:-5cqw;opacity:1}
.lighthouse-lamp.gray .glow{opacity:.35;animation:none}
.lighthouse-badge{position:absolute;transform:translate(-50%,-50%);min-width:2.4cqw;height:2.4cqw;padding:0 .5cqw;border-radius:999px;background:#fff;border:.35cqw solid #5fd38d;color:#4a3a2a;font-weight:900;font-size:clamp(10px,1.2cqw,17px);line-height:1;display:flex;align-items:center;justify-content:center;pointer-events:none;box-shadow:0 .2cqw .5cqw rgba(0,0,0,.3);z-index:14}
.lighthouse-badge.red{border-color:#ff5a4f}.lighthouse-badge.yellow{border-color:#ffc93c}.lighthouse-badge.blue{border-color:#4aa8ff}
@keyframes lamp-breathe{0%,100%{transform:scale(.92);opacity:.55}50%{transform:scale(1.12);opacity:.9}}
@keyframes lamp-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.lighthouse-lamp .glow,.lighthouse-lamp .sweep{animation:none}}

/* 燈塔房間（地點視窗內） */
.lamp-line{display:flex;align-items:center;gap:10px;background:#fff;border-radius:16px;padding:10px 14px;margin:6px 0 16px;border:2px solid #f2e6c6;font-weight:800}
.lamp-dot{width:16px;height:16px;border-radius:50%;background:#5fd38d;color:#5fd38d;box-shadow:0 0 0 4px rgba(0,0,0,.05),0 0 12px currentColor}
.lamp-dot.red{background:#ff5a4f;color:#ff5a4f}.lamp-dot.yellow{background:#ffc93c;color:#ffc93c}.lamp-dot.blue{background:#4aa8ff;color:#4aa8ff}
.lamp-sec{margin:16px 0 6px;font-size:15px;font-weight:900;color:#7a5a2a}
.lamp-item{background:#fff;border-radius:14px;padding:9px 12px;margin:6px 0;border:2px solid #f2e6c6;font-size:14px;line-height:1.5}
.lamp-item b{font-weight:800}.lamp-item .d{display:block;color:#8a7a68;font-size:13px}
.lamp-item.red{border-left:8px solid #ff5a4f}.lamp-item.yellow{border-left:8px solid #ffc93c}.lamp-item.blue{border-left:8px solid #4aa8ff}.lamp-item.gray{border-left:8px solid #cfc9bd}
.lamp-note{color:#8a7a68;font-size:13px;margin-top:14px}

/* 手機：角色縮小、不顯示名字，避免遮住招牌 */
@media (max-width:640px){
  .scene .island-place{font-size:clamp(8px,2.5cqw,11px);padding:.15cqw 1.2cqw}
  .lighthouse-badge{min-width:5.2cqw;height:5.2cqw;font-size:clamp(8px,2.6cqw,12px)}
}

/* 小人偶：平常只留名字（無框、不加職稱）；狀態泡泡滑過才出現；有待辦只掛一個小數字 */
.scene .actor-label{background:none;border:0;box-shadow:none;padding:0;font-weight:800;color:#4a3a22;font-size:clamp(9px,1.15cqw,14px);text-shadow:-1px -1px 0 #fffbe9,1px -1px 0 #fffbe9,-1px 1px 0 #fffbe9,1px 1px 0 #fffbe9,0 0 4px #fffbe9;top:88%}
.scene .actor-label::before{display:none}
.scene .actor-bubble{display:none;z-index:5}
.scene .actor:hover .actor-bubble,.scene .actor:focus-visible .actor-bubble{display:block}
.actor-count{position:absolute;top:4%;right:14%;min-width:1.9cqw;height:1.9cqw;padding:0 .4cqw;border-radius:999px;background:#fff;border:.28cqw solid #cc8a4b;color:#4a3a2a;font-weight:900;font-size:clamp(8px,1cqw,13px);line-height:1;display:flex;align-items:center;justify-content:center;box-shadow:0 .15cqw .4cqw rgba(0,0,0,.3);pointer-events:none}
.actor.has-review .actor-count{border-color:#ff5a4f}
@media (max-width:640px){.scene .actor-label{font-size:8px}.actor-count{min-width:4.2cqw;height:4.2cqw;font-size:8px}}

/* ───────── 階段 A：手帳側欄（取代置中彈窗），地圖一直看得到 ───────── */
dialog.dialog, dialog.island-bridge-dialog{
  position:fixed;inset:0 0 0 auto;margin:0;width:min(560px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;
  border:0;border-left:8px solid #e9c98a;border-radius:20px 0 0 20px;
  background:#fff9ec repeating-linear-gradient(transparent,transparent 31px,#f1e6c8 32px);
  box-shadow:-10px 0 34px rgba(80,60,20,.28);padding:30px 26px max(28px,env(safe-area-inset-bottom));
}
dialog#team-dialog{width:min(720px,100vw)}
dialog#commander-dialog{width:min(640px,100vw)}
dialog.dialog[open], dialog.island-bridge-dialog[open]{animation:drawer-in .22s ease-out}
@keyframes drawer-in{from{transform:translateX(36px);opacity:0}to{transform:none;opacity:1}}
dialog.dialog::backdrop, dialog.island-bridge-dialog::backdrop{background:rgba(60,50,30,.14);backdrop-filter:none}
@media (max-width:640px){dialog.dialog, dialog.island-bridge-dialog{border-radius:0;border-left:0;border-top:8px solid #e9c98a}}
@media (prefers-reduced-motion:reduce){dialog.dialog[open], dialog.island-bridge-dialog[open]{animation:none}}

/* ───────── 階段 A：「今天先做什麼」升為主角 ───────── */
@media (min-width:900px){.workspace{grid-template-columns:minmax(0,1fr) clamp(320px,27vw,460px)}}
@media (max-width:899px){.workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}}
.today-panel{display:flex;flex-direction:column}
.today-panel>.today-heading{order:0}.today-panel>.today-intro{order:1}
.today-panel>#today-work{order:2}
.today-panel>.priority-heading{order:3}.today-panel>#priority-list{order:4}
.today-panel>.today-footer{order:5}
.today-panel>.ad-morning-entry{order:6}.today-panel>.attention-counts{order:7}.today-panel>#exposure-home{order:8}
.today-panel .today-heading h2{font-size:clamp(20px,1.9vw,28px)}
.today-panel .today-heading .eyebrow{display:none}
.priority-card{position:relative}
.priority-card::after{content:"處理";position:absolute;right:12px;top:12px;font-size:12px;font-weight:800;color:#6b4a14;background:#ffd98a;border-radius:999px;padding:2px 10px}
.priority-card{padding-right:64px}

/* ───────── 階段 A：減少框框 ───────── */
.map-note{display:none}
.map-hint{background:none;box-shadow:none;border:0;padding:0;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.65),0 0 2px rgba(0,0,0,.5);font-weight:700}
.motion-toggle{background:rgba(255,251,233,.85);border:0;border-radius:999px;box-shadow:none}
@media (min-width:900px){.village-footer .daily-route{display:none}}

/* ───────── 小人偶：放大並加亮邊，不再被背景和建築吃掉 ───────── */
.scene .actor{width:clamp(64px,9.2cqw,132px);height:clamp(64px,9.2cqw,132px)}
.scene .pet{width:clamp(56px,8cqw,118px);height:clamp(56px,8cqw,118px)}
.scene .actor .sprite,.scene .pet .sprite{filter:drop-shadow(1.6px 0 0 #fffdf0) drop-shadow(-1.6px 0 0 #fffdf0) drop-shadow(0 1.6px 0 #fffdf0) drop-shadow(0 -1.6px 0 #fffdf0) drop-shadow(0 .5cqw .25cqw rgba(60,70,40,.4))}
@media (max-width:640px){.scene .actor{width:clamp(34px,10cqw,52px);height:clamp(34px,10cqw,52px)}.scene .pet{width:clamp(34px,10cqw,52px);height:clamp(34px,10cqw,52px)}}

/* ───────── 下雨時地圖上的雨滴 ───────── */
.weather-fx{position:absolute;inset:0;pointer-events:none;z-index:20;background:linear-gradient(rgba(70,90,110,.12),rgba(70,90,110,.12)),repeating-linear-gradient(105deg,transparent 0 9px,rgba(255,255,255,.5) 9px 10px,transparent 10px 20px);background-size:auto,22px 38px;animation:rain-fall .45s linear infinite}
.weather-fx[hidden]{display:none}
@keyframes rain-fall{to{background-position:0 0,-8px 38px}}
@media (prefers-reduced-motion:reduce){.weather-fx{animation:none}}

/* ───────── 階段 B：交辦範本（外觀先用基本樣式，等畫師的素材再換皮） ───────── */
.request-templates{margin:12px 0 4px}
.tpl-title{font-size:15px;font-weight:900;color:#7a5a2a;margin:6px 0}
.tpl-group{margin:8px 0 12px}
.tpl-group-title{font-size:13px;font-weight:800;color:#8a7a68;margin-bottom:6px}
.tpl-chips{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:8px}
.tpl-chip{text-align:left;border:0;border-radius:12px;padding:10px 12px;background:#fff6c9;box-shadow:0 2px 0 #e3cf8a;display:flex;flex-direction:column;gap:2px;cursor:pointer;line-height:1.35}
.tpl-chip:nth-child(3n+2){background:#ffe1ea;box-shadow:0 2px 0 #eab3c2}
.tpl-chip:nth-child(3n){background:#dff1ff;box-shadow:0 2px 0 #aacde8}
.tpl-chip:hover,.tpl-chip:focus-visible{transform:translateY(-1px);outline:2px solid #67845b;outline-offset:2px}
.tpl-chip b{font-size:14px;color:#4a3a22}.tpl-chip small{font-size:12px;color:#7a6a58}
.tpl-others summary{cursor:pointer;font-size:13px;font-weight:800;color:#8a7a68;margin:6px 0}
.tpl-form-head .tpl-hint{margin:2px 0 8px;color:#8a7a68;font-size:13px}
.tpl-form{display:grid;gap:10px}
.tpl-field{display:grid;gap:4px;font-size:14px}
.tpl-label{font-weight:800;color:#5a4a32}.tpl-label em{font-style:normal;font-size:11px;margin-left:6px;color:#b3463d}
.tpl-field input,.tpl-field select,.tpl-field textarea{border:0;border-bottom:2px solid #d9c9a0;background:rgba(255,255,255,.7);border-radius:6px;padding:8px 10px;font:inherit}
.tpl-field.has-error input,.tpl-field.has-error select,.tpl-field.has-error textarea{border-bottom-color:#ff5a4f}
.tpl-error{color:#b3463d;font-size:12px;font-weight:700}
.tpl-steps{font-size:13px;color:#6a5a42;background:rgba(255,246,201,.6);border-radius:10px;padding:8px 12px}
.tpl-steps ol{margin:4px 0 0;padding-left:20px}
.tpl-actions{display:flex;justify-content:flex-end}
.templates-or{margin:14px 0 6px;font-size:13px;color:#8a7a68}
.lamp-ask{margin-top:6px;font-size:12px;padding:4px 10px;min-height:0}

/* ───────── 任務板：地圖入口那塊木牌 ───────── */
.board-spot{position:absolute;left:49.9%;top:79.2%;width:10.4%;height:14.6%;transform:translate(-50%,-50%);border:0;border-radius:12px;background:transparent;cursor:pointer;z-index:9;padding:0}
.board-spot:hover,.board-spot:focus-visible{outline:none;background:rgba(255,255,255,.14);box-shadow:0 0 0 .3cqw rgba(255,255,255,.85),0 0 1.6cqw rgba(255,244,190,.9)}
.board-count{position:absolute;right:-.6cqw;top:-.6cqw;min-width:2.4cqw;height:2.4cqw;padding:0 .5cqw;border-radius:999px;background:#fff;border:.35cqw solid #ff8a4f;color:#4a3a2a;font-weight:900;font-size:clamp(10px,1.2cqw,17px);display:flex;align-items:center;justify-content:center;box-shadow:0 .2cqw .5cqw rgba(0,0,0,.3);line-height:1}
.board-count[hidden]{display:none}
.board-head h2{margin:0 0 2px;font-size:26px}.board-head p{margin:0 0 12px;color:#8a7a68;font-weight:700}
.board-tiles{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.board-tile{font-size:13px;font-weight:800;color:#6a5a42;background:rgba(255,255,255,.7);border-radius:999px;padding:3px 12px}.board-tile b{font-size:15px;margin-left:4px}
.board-tile.urgent b{color:#c8503f}.board-tile.review b{color:#3f8a55}.board-tile.waiting b{color:#3d7fb8}
.board-alert{display:block;width:100%;text-align:left;border:0;border-radius:14px;padding:10px 14px;margin-bottom:14px;background:#fff;box-shadow:0 2px 0 #e9dcb5;font-weight:700;cursor:pointer;line-height:1.5}
.board-alert b{margin-right:8px}.board-alert span{display:block;font-size:12px;color:#8a7a68;font-weight:600}
.board-alert.red{border-left:8px solid #ff5a4f}.board-alert.blue{border-left:8px solid #4aa8ff}
.sticky-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px 14px;padding-top:8px}
.sticky{position:relative;text-align:left;border:0;padding:20px 14px 12px;border-radius:3px;min-height:112px;display:flex;flex-direction:column;gap:6px;cursor:pointer;transform:rotate(var(--tilt,0deg));box-shadow:0 5px 8px rgba(80,60,20,.22);transition:transform .15s}
.sticky::before{content:"";position:absolute;top:-8px;left:50%;width:62px;height:18px;transform:translateX(-50%) rotate(-2deg);background:rgba(255,236,170,.8);border-radius:2px}
.sticky:hover,.sticky:focus-visible{transform:rotate(0) translateY(-3px);outline:none;box-shadow:0 9px 14px rgba(80,60,20,.28)}
.sticky.yellow{background:#fff3a8}.sticky.pink{background:#ffd3de}.sticky.green{background:#d6f2c8}.sticky.blue{background:#cfe6fb}
.sticky-reason{font-size:11px;font-weight:800;color:#7a5a2a;letter-spacing:.05em}
.sticky strong{font-size:15px;line-height:1.4;color:#3d3022}
.sticky small{margin-top:auto;color:#6a5a42;font-size:12px}
.board-empty{text-align:center;padding:30px 0;color:#8a7a68}
@media (max-width:640px){.board-spot{width:14%}.board-count{min-width:5.2cqw;height:5.2cqw;font-size:8px}}

/* 研究員小研：獨立一張圖，不在原本的 3x2 精靈表裡 */
.sprite.sprite-researcher{background-image:url('assets/character-researcher.png');background-size:auto 100%;background-position:center bottom}
.team-grid{grid-template-columns:repeat(5,1fr)}

/* ===== 畫師 UI 套件 v1（dist/assets/ui/）：紙張、便利貼、徽章、關閉鈕、按鈕 ===== */
dialog.dialog, dialog.island-bridge-dialog{background:#fbefd2 url('assets/ui/paper-texture.png') top left/256px 256px repeat;image-rendering:auto}
dialog.dialog .close-dialog{background:url('assets/ui/btn-close.png') center/contain no-repeat;color:transparent;font-size:0;border:0;box-shadow:none;image-rendering:pixelated;width:40px;min-height:40px;height:40px}
dialog.dialog .close-dialog:hover{filter:brightness(1.1)}
.sticky{background-color:transparent!important;background-repeat:no-repeat;background-size:100% 100%;box-shadow:none;filter:drop-shadow(0 4px 5px rgba(80,60,20,.25));image-rendering:pixelated;padding:26px 20px 18px}
.sticky::before{display:none}
.sticky.yellow{background-image:url('assets/ui/sticky-note-yellow.png')}
.sticky.pink{background-image:url('assets/ui/sticky-note-pink.png')}
.sticky.green{background-image:url('assets/ui/sticky-note-green.png')}
.sticky.blue{background-image:url('assets/ui/sticky-note-blue.png')}
.sticky:hover,.sticky:focus-visible{box-shadow:none;filter:drop-shadow(0 8px 8px rgba(80,60,20,.3))}
.board-count{background:url('assets/ui/badge-red.png') center/100% 100% no-repeat;border:0;color:#fff;text-shadow:0 1px 0 rgba(90,20,10,.6);image-rendering:pixelated}
.actor-count{background:url('assets/ui/badge-yellow.png') center/100% 100% no-repeat;border:0;color:#4a3a2a;image-rendering:pixelated}
.actor.has-review .actor-count{background-image:url('assets/ui/badge-red.png');border:0;color:#fff}
dialog.dialog .primary{background:transparent url('assets/ui/btn-primary-normal.png') center/100% 100% no-repeat;border:0;box-shadow:none;color:#fff;text-shadow:0 1px 0 rgba(30,60,10,.55);min-height:44px;padding:10px 22px;image-rendering:pixelated}
dialog.dialog .primary:hover{background-image:url('assets/ui/btn-primary-hover.png')}
dialog.dialog .primary:active{background-image:url('assets/ui/btn-primary-pressed.png')}
dialog.dialog .secondary{background:transparent url('assets/ui/btn-secondary-normal.png') center/100% 100% no-repeat;border:0;box-shadow:none;color:#6b4a22;min-height:44px;image-rendering:pixelated}
dialog.dialog .secondary:hover{background-image:url('assets/ui/btn-secondary-hover.png')}
dialog.dialog .secondary:active{background-image:url('assets/ui/btn-secondary-pressed.png')}

/* ===== 任務便利貼頁 ===== */
.note-head{display:flex;align-items:center;justify-content:space-between;min-height:56px;padding-right:48px}
.note-kind{font-size:12px;font-weight:800;letter-spacing:.06em;color:#8a6a3a}
.note-stamp{image-rendering:pixelated;transform:rotate(-8deg);filter:drop-shadow(0 2px 2px rgba(90,40,20,.3))}
#task-content h2#task-detail-title{margin:2px 0 8px;font-size:23px;line-height:1.45}
.note-say{margin:10px 0 14px;padding:10px 14px;border-radius:14px;background:#fffdf4;border:2px solid #e3c98f;font-size:14px;color:#4a3a2a;position:relative}
.note-say b{margin-right:8px;color:#8a5a22}
.note-facts{display:grid;grid-template-columns:1fr 1fr;gap:8px 14px;margin:0 0 14px;padding:12px 14px;background:rgba(255,255,255,.55);border-radius:10px}
.note-facts div{min-width:0}.note-facts dt{font-size:11px;font-weight:800;color:#8a7a62}.note-facts dd{margin:2px 0 0;font-size:14px;color:#3d3022;overflow-wrap:anywhere}
.note-missing{margin:0 0 14px;padding:16px 18px 14px;background:url('assets/ui/sticky-note-pink.png') center/100% 100% no-repeat;image-rendering:pixelated;display:flex;flex-direction:column;gap:3px;filter:drop-shadow(0 4px 5px rgba(80,60,20,.22))}
.note-missing b{font-size:12px;color:#9a3a4a}.note-missing span{font-size:15px;font-weight:800;color:#3d3022}.note-missing small{color:#7a5a52}
.note-text{margin:0 0 14px;padding:12px 14px;border-left:4px solid #e3c98f;background:rgba(255,255,255,.5);border-radius:0 10px 10px 0;font-size:14px;line-height:1.75;color:#3d3022}
.note-text p{margin:0 0 6px;overflow-wrap:anywhere}.note-text p:last-child{margin:0}
.note-steps{list-style:none;margin:0 0 16px;padding:0;display:grid;gap:8px}
.note-steps li{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.55;color:#3d3022}
.note-steps li span{flex:none;width:24px;height:24px;border-radius:50%;background:url('assets/ui/badge-blue.png') center/100% 100% no-repeat;color:#fff;font-size:12px;font-weight:900;display:grid;place-items:center;image-rendering:pixelated}
@media (max-width:640px){.note-facts{grid-template-columns:1fr}}
dialog.dialog .task-actions{gap:12px;margin-top:6px}
dialog.dialog .task-actions button{font-size:15px;font-weight:800;min-width:132px;min-height:50px;padding:12px 28px}
dialog.dialog .task-actions .primary{color:#fff}

/* ===== 客戶護照（登島貴賓錄）===== */
.pp-title{margin:18px 0 8px;font-size:20px}
.pp-search input{width:100%;padding:11px 14px;border:2px solid #e3c98f;border-radius:12px;background:#fffdf4;font-size:15px}
.pp-list{display:grid;gap:8px;margin-top:10px}
.pp-row{display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;padding:11px 14px;border:0;border-radius:12px;background:rgba(255,255,255,.6);box-shadow:inset 0 0 0 2px #ecd9aa;cursor:pointer;color:#3d3022}
.pp-row:hover,.pp-row:focus-visible{background:#fff;outline:none;box-shadow:inset 0 0 0 2px #d9a74e}
.pp-name{font-weight:800;font-size:15px;overflow-wrap:anywhere}.pp-tags{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.pp-tag{font-style:normal;font-size:11px;font-weight:800;padding:2px 8px;border-radius:999px;background:#eee4cc;color:#6a5a42;white-space:nowrap}
.pp-tag.red{background:#ffd7d2;color:#a22a1f}.pp-tag.renew{background:#ffe9b8;color:#8a5a10}.pp-tag.yellow{background:#fff3a8;color:#6e5a10}.pp-tag.task{background:#d9ecff;color:#245a8a}.pp-tag.ok{background:#e3f2d4;color:#4a7a30}
.pp-more,.pp-empty{margin:8px 0;color:#8a7a62;font-size:13px}
.pp-head{display:flex;align-items:center;gap:12px;margin:14px 0 8px;flex-wrap:wrap}.pp-head h3{margin:0;font-size:22px}
.pp-back{border:0;background:none;color:#8a5a22;font-weight:800;cursor:pointer;padding:6px 0}
#passport-host h4{margin:16px 0 6px;font-size:14px;color:#8a6a3a}
.pp-renew{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 14px;border-radius:12px;background:#fff1c9;border:2px solid #efc96a}.pp-renew.urgent{background:#ffe0da;border-color:#f08a7a}.pp-renew span{color:#6a5a42;font-size:13px}.pp-renew button{margin-left:auto}
.pp-alerts{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.pp-alert{display:flex;gap:10px;padding:9px 12px;border-radius:10px;background:rgba(255,255,255,.6);font-size:14px}.pp-alert b{flex:none;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:11px;color:#fff;background:#999}
.pp-alert.red b{background:#e0483a}.pp-alert.yellow b{background:#d9a21b}.pp-alert.blue b{background:#3a82d0}.pp-alert small{display:block;color:#8a7a62;margin-top:2px}
.pp-notes{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px}
.pp-note{display:flex;flex-direction:column;gap:4px;text-align:left;border:0;padding:20px 14px 12px;min-height:84px;background:url('assets/ui/sticky-note-yellow.png') center/100% 100% no-repeat;image-rendering:pixelated;cursor:pointer;color:#3d3022;filter:drop-shadow(0 3px 4px rgba(80,60,20,.22))}.pp-note small{color:#6a5a42}
.pp-actions{margin-top:18px}
.island-clock .sun[data-sprite]{display:inline-block;width:44px;height:44px;font-size:0;background:url('assets/ui/weather-atlas.png') no-repeat;background-size:264px 44px;image-rendering:pixelated}
.island-clock .sun[data-sprite="0"]{background-position:0 0}.island-clock .sun[data-sprite="1"]{background-position:-44px 0}.island-clock .sun[data-sprite="2"]{background-position:-88px 0}
.island-clock .sun[data-sprite="3"]{background-position:-132px 0}.island-clock .sun[data-sprite="4"]{background-position:-176px 0}.island-clock .sun[data-sprite="5"]{background-position:-220px 0}

/* ===== 第二輪調整（使用者試用回饋）===== */
/* 主要按鈕：綠底白字太難讀 → 暖黃底深棕字 */
dialog.dialog .primary,dialog.dialog .task-actions .primary{background:linear-gradient(#ffdf7e,#f2b73d);border:3px solid #9a6a1c;border-radius:12px;box-shadow:0 3px 0 #7a5214,inset 0 2px 0 rgba(255,255,255,.55);color:#3b2810;text-shadow:none;font-weight:800;image-rendering:auto}
dialog.dialog .primary:hover{background:linear-gradient(#ffe99a,#f7c24f)}
dialog.dialog .primary:active{transform:translateY(2px);box-shadow:0 1px 0 #7a5214,inset 0 2px 0 rgba(255,255,255,.35)}
dialog.dialog .secondary{color:#4a2f12;font-weight:800}
/* 貓狗：去掉白色描邊，只留腳下淡影 */
.scene .pet .sprite{filter:drop-shadow(0 .4cqw .2cqw rgba(60,70,40,.35))}
/* 底圖淡一點，讓角色與招牌比較突出 */
.scene .map{filter:saturate(.8) contrast(.93) brightness(1.04)}
/* 任務板木牌上的字 */
.board-label{position:absolute;inset:0;padding-bottom:2.4cqw;display:grid;place-items:center;font-family:'Noto Serif TC',serif;font-weight:900;font-size:clamp(9px,1.55cqw,24px);letter-spacing:.12em;color:#5a3a22;text-shadow:0 1px 0 rgba(255,240,200,.75);pointer-events:none}
@media (max-width:640px){.board-label{font-size:8px;letter-spacing:0}}
/* 點建築本體就能進去 */
.scene .bldg{position:absolute;z-index:2;padding:0;border:0;border-radius:1.2cqw;background:transparent;cursor:pointer;transition:box-shadow .15s,background .15s}
.scene .bldg:hover{background:rgba(255,255,255,.12);box-shadow:0 0 0 .25cqw rgba(255,255,255,.85),0 0 1.4cqw rgba(255,244,190,.85)}
.scene:has(.bldg[data-place="strategy"]:hover) .island-place[data-place="strategy"],.scene:has(.bldg[data-place="report"]:hover) .island-place[data-place="report"],.scene:has(.bldg[data-place="bank"]:hover) .island-place[data-place="bank"],.scene:has(.bldg[data-place="am"]:hover) .island-place[data-place="am"],.scene:has(.bldg[data-place="creative"]:hover) .island-place[data-place="creative"]{background:#fff8c9;outline:2px solid #67845b;outline-offset:3px}
/* 抽屜的「返回」 */
dialog.dialog .back-dialog{float:left;position:sticky;top:0;z-index:5;margin:-2px 12px 8px 0;padding:6px 14px;border:2px solid #d9b46a;border-radius:999px;background:#fff3d6;color:#6a4a1c;font-weight:800;font-size:14px;cursor:pointer}
dialog.dialog .back-dialog:hover{background:#fff8c9}
/* 舊版示範工具收起來 */
details.old-tools{margin-top:20px;padding:10px 14px;border:2px dashed #e3c98f;border-radius:12px}
details.old-tools summary{cursor:pointer;font-weight:800;color:#8a6a3a}
details.old-tools p{color:#6a5a42;font-size:13px}
/* 右側「今天先做什麼」：不要內部捲軸，只放最前面 3 件 */
.today-panel{max-height:none;overflow:visible}
.priority-list{overflow:visible!important;max-height:none!important}
/* 任務板最下面的最近動態 */
.board-activity{margin-top:22px;padding-top:12px;border-top:2px dashed #e3c98f}
.board-activity h3{margin:0 0 8px;font-size:15px;color:#8a6a3a}
.board-activity .activity-list{display:grid;gap:8px}

/* ===== 頁首：細一條、圖示按鈕、日期天氣併進來（取代原本的問候列）===== */
.topbar,.topbar:has(.island-bridge-entry){min-height:0;height:60px;padding:0 20px;gap:14px;flex-wrap:nowrap;background:#fbefd2 url('assets/ui/paper-texture.png') 0 0/256px 256px;border-bottom:3px solid #d9b46a}
.topbar .official-logo{height:26px;width:auto}
.topbar .brand-title{font-size:15px}
.topbar .demo-badge{display:none}
.topbar .island-clock{margin-left:auto;display:flex;align-items:center;gap:8px;--sk:38px}
.topbar .island-clock strong{display:block;font-size:13px;font-weight:800;color:#5a3a22;line-height:1.2}
.topbar .island-clock small{display:block;margin:0;font-size:11px;color:#7a6a52}
.island-clock .sun[data-sprite]{width:var(--sk,44px);height:var(--sk,44px);background-size:calc(var(--sk,44px)*6) var(--sk,44px)}
.island-clock .sun[data-sprite="0"]{background-position:0 0}
.island-clock .sun[data-sprite="1"]{background-position:calc(var(--sk,44px)*-1) 0}
.island-clock .sun[data-sprite="2"]{background-position:calc(var(--sk,44px)*-2) 0}
.island-clock .sun[data-sprite="3"]{background-position:calc(var(--sk,44px)*-3) 0}
.island-clock .sun[data-sprite="4"]{background-position:calc(var(--sk,44px)*-4) 0}
.island-clock .sun[data-sprite="5"]{background-position:calc(var(--sk,44px)*-5) 0}
.topbar .header-actions{gap:4px}
.topbar .header-actions>button.ic{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:4px 10px;border-radius:12px;background:transparent;border:0;box-shadow:none;color:#5a3a22;font-weight:800;font-size:13px}
.topbar .header-actions>button.ic:hover{background:rgba(255,255,255,.55)}
.topbar .header-actions>button.ic::before{content:"";width:28px;height:28px;flex:none;background:url('assets/ui/icons-workbench.png') no-repeat;background-size:224px 84px;background-position:calc(var(--c)*-28px) calc(var(--r)*-28px);image-rendering:pixelated}
.ic-chat{--c:5;--r:2}.ic-scope{--c:1;--r:1}.ic-clip{--c:6;--r:2}.ic-pencil{--c:1;--r:0}
.topbar .header-actions>button.primary.ic{background:linear-gradient(#ffdf7e,#f2b73d);border:3px solid #9a6a1c;border-radius:12px;box-shadow:0 3px 0 #7a5214,inset 0 2px 0 rgba(255,255,255,.55);color:#3b2810;margin-left:6px;padding-inline:14px}
.topbar .header-actions>button.primary.ic:hover{background:linear-gradient(#ffe99a,#f7c24f)}
@media (max-width:900px){.topbar .header-actions>button.ic:not(.primary){font-size:0;gap:0;padding:4px 8px}.topbar .brand-title{display:none}}
@media (max-width:620px){.topbar,.topbar:has(.island-bridge-entry){height:auto;min-height:56px;padding:8px 10px;flex-wrap:wrap;gap:6px}.topbar .island-clock{margin-left:0}.topbar .island-clock strong{display:none}.topbar .header-actions>button.primary.ic{font-size:0;padding-inline:8px}.topbar .header-actions>button.primary.ic::before{margin:0}}
@media (max-width:620px){
 .topbar,.topbar:has(.island-bridge-entry){display:flex;flex-wrap:wrap;align-items:center;row-gap:4px}
 .topbar .brand{order:0}
 .topbar .island-clock{order:1;margin-left:auto}
 .topbar .island-bridge-entry{order:2}
 .topbar .header-actions{order:3;width:100%;justify-content:space-around;flex-wrap:nowrap}
 .topbar .island-clock small{font-size:10px;white-space:nowrap}
 .topbar .header-actions>button.primary.ic{margin-left:0}
}
@media (max-width:620px){
 .topbar .header-actions{display:flex!important;flex-direction:row!important;gap:4px}
 .topbar .header-actions>button{width:auto!important;flex:1 1 0;justify-content:center;margin:0!important}
 .topbar .header-actions>button.primary.ic{flex:0 0 auto;padding-inline:14px}
}

/* ===== 第三輪（暫時版，等畫師的新素材再換）===== */
/* 按鈕：全部改成同一套「奶油底＋木色邊」畫出來的樣式，不再硬拉木框圖（字不會被裝飾蓋住） */
dialog.dialog .secondary,.today-panel .secondary{background:#fff6dc;border:3px solid #b98a44;border-radius:12px;box-shadow:0 3px 0 #8a6428;color:#4a2f12;font-weight:800;text-shadow:none;image-rendering:auto;min-height:44px}
dialog.dialog .secondary:hover,.today-panel .secondary:hover{background:#fffbe9}
dialog.dialog .secondary:active,.today-panel .secondary:active{background:#f6e6b8;transform:translateY(2px);box-shadow:0 1px 0 #8a6428}
.today-panel .secondary.wide{width:100%}
/* 頁首：不要底線；「找小森」圖示不再露出鄰近圖示的邊；「怎麼用」併入同一排風格 */
.topbar,.topbar:has(.island-bridge-entry){border-bottom:0;box-shadow:0 2px 10px rgba(120,90,40,.14)}
.topbar .header-actions>button.ic::before{width:24px;height:28px;background-position:calc(var(--c)*-28px - 4px) calc(var(--r)*-28px)}
.topbar .island-bridge-entry-btn:not(.account-avatar){display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:4px 10px;border:0;border-radius:12px;background:transparent;box-shadow:none;color:#5a3a22;font-weight:800;font-size:13px}
.topbar .island-bridge-entry-btn:not(.account-avatar):hover{background:rgba(255,255,255,.55)}
.topbar .island-bridge-entry-btn:not(.account-avatar)::before{content:"?";display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#fff6dc;border:2px solid #b98a44;color:#8a5a22;font-weight:900;font-size:14px}
/* 點建築：不顯示框，只有游標變手形；招牌輕輕亮一下 */
.scene .bldg:hover{background:transparent;box-shadow:none}
.scene:has(.bldg[data-place="strategy"]:hover) .island-place[data-place="strategy"],.scene:has(.bldg[data-place="report"]:hover) .island-place[data-place="report"],.scene:has(.bldg[data-place="bank"]:hover) .island-place[data-place="bank"],.scene:has(.bldg[data-place="am"]:hover) .island-place[data-place="am"],.scene:has(.bldg[data-place="creative"]:hover) .island-place[data-place="creative"]{background:#fff8c9;outline:0}
/* 右側面板：先收斂成「三個數字＋最前面兩件＋一顆按鈕」，不用往下拉 */
.today-panel .ad-morning-entry,.today-panel .today-flower,.today-panel .today-heading .eyebrow,.today-panel .priority-heading,.today-panel #home-task-note{display:none}
.today-panel{padding:18px 18px 16px}
.today-panel .today-heading{margin-bottom:6px}
.today-panel .attention-counts{order:2;margin:6px 0 10px}
.today-panel>.today-heading{order:0}
.today-panel>#priority-list{order:3}
.today-panel>.today-footer{order:4;margin-top:10px}
.priority-card::after{display:none}.priority-card{padding-right:0}
/* 貓狗只有中間一半可點，走過建築前面時不會擋住建築 */
.scene .pet{pointer-events:none}
.scene .pet .sprite,.scene .pet .pet-name,.scene .pet .pet-heart{pointer-events:none}
.scene .pet::after{content:"";position:absolute;left:28%;top:32%;width:44%;height:46%;pointer-events:auto;cursor:pointer}
/* 圖示視窗恢復完整 28px；只有鉛筆要避開隔壁圖示露出的邊 */
.topbar .header-actions>button.ic::before{width:28px;height:28px;background-position:calc(var(--c)*-28px) calc(var(--r)*-28px)}
.topbar .header-actions>button.ic.ic-pencil::before{width:24px;background-position:calc(var(--c)*-28px - 4px) calc(var(--r)*-28px)}

/* ===== 第四輪：套用畫師 v2 素材（assets/ui2）與右側「手帳頁」面板（方案 B）===== */
/* 按鈕：九宮格（切線 20/20/36/36，元素高 ≥48px 時比例正確） */
dialog.dialog .primary,dialog.dialog .task-actions .primary,.next-step{background:none;border:solid transparent;border-width:9px 17px;border-image:url('assets/ui2/btn-primary-normal.png') 20 36 fill/9px 17px stretch;border-radius:0;box-shadow:none;color:#3b2810;text-shadow:none;font-weight:800;min-height:48px;padding:0 6px;image-rendering:auto;transform:none}
dialog.dialog .primary:hover,.next-step:hover{background:none;border-image-source:url('assets/ui2/btn-primary-hover.png')}
dialog.dialog .primary:active,.next-step:active{background:none;transform:none;box-shadow:none;border-image-source:url('assets/ui2/btn-primary-pressed.png')}
dialog.dialog .primary:disabled{border-image-source:url('assets/ui2/btn-primary-disabled.png');color:#7a6a50}
dialog.dialog .secondary,.today-panel .secondary{background:none;border:solid transparent;border-width:9px 17px;border-image:url('assets/ui2/btn-secondary-normal.png') 20 36 fill/9px 17px stretch;border-radius:0;box-shadow:none;color:#4a2f12;font-weight:800;min-height:48px;padding:0 6px;transform:none}
dialog.dialog .secondary:hover,.today-panel .secondary:hover{background:none;border-image-source:url('assets/ui2/btn-secondary-hover.png')}
dialog.dialog .secondary:active,.today-panel .secondary:active{background:none;transform:none;box-shadow:none;border-image-source:url('assets/ui2/btn-secondary-pressed.png')}
dialog.dialog .secondary:disabled{border-image-source:url('assets/ui2/btn-secondary-disabled.png');color:#8a7a60}
/* 招牌：畫師的木牌（兩端花葉不拉伸，高度固定 2.4em） */
.scene .island-place{box-sizing:border-box;height:2.4em;display:inline-flex;align-items:center;line-height:1;padding:0 .15em;background:none;border:solid transparent;border-width:.35em 1em;border-image:url('assets/ui2/plaque-name-normal.png') 28 80 fill/.35em 1em stretch;border-radius:0;box-shadow:none;color:#4a2f12;outline:0}
.scene .island-place:hover,.scene .island-place:focus-visible{background:none;border-image-source:url('assets/ui2/plaque-name-hover.png');outline:0}
.scene:has(.bldg[data-place="strategy"]:hover) .island-place[data-place="strategy"],.scene:has(.bldg[data-place="report"]:hover) .island-place[data-place="report"],.scene:has(.bldg[data-place="bank"]:hover) .island-place[data-place="bank"],.scene:has(.bldg[data-place="am"]:hover) .island-place[data-place="am"],.scene:has(.bldg[data-place="creative"]:hover) .island-place[data-place="creative"],.scene:has(.bldg[data-place="observer"]:hover) .island-place[data-place="observer"]{background:none;border-image-source:url('assets/ui2/plaque-name-hover.png');outline:0}
/* 便利貼 v2（切線 48/20/18/18） */
.sticky,.pp-note,.note-missing{background:none!important;border:solid transparent;border-width:28px 11px 12px;border-image:var(--note,url('assets/ui2/sticky-yellow.png')) 48 18 20 18 fill/28px 11px 12px 11px stretch;box-shadow:none;image-rendering:auto;filter:drop-shadow(0 3px 3px rgba(80,60,20,.22));padding:2px 4px}
.sticky.yellow{--note:url('assets/ui2/sticky-yellow.png')}.sticky.pink,.note-missing{--note:url('assets/ui2/sticky-pink.png')}.sticky.green{--note:url('assets/ui2/sticky-green.png')}.sticky.blue{--note:url('assets/ui2/sticky-blue.png')}
.sticky:hover,.sticky:focus-visible{filter:drop-shadow(0 6px 6px rgba(80,60,20,.3))}
/* 頁首圖示：畫師的獨立圖示 */
.topbar .header-actions>button.ic::before,.topbar .header-actions>button.ic.ic-pencil::before{width:28px;height:28px;background:var(--ic) center/contain no-repeat;image-rendering:pixelated}
.ic-chat{--ic:url('assets/ui2/icon-speech-board.png')}.ic-scope{--ic:url('assets/ui2/icon-telescope-guide.png')}.ic-clip{--ic:url('assets/ui2/icon-clipboard-notebook.png')}.ic-pencil{--ic:url('assets/ui2/icon-pencil-find-mori.png')}
.topbar .header-actions>button.primary.ic{background:none;border:solid transparent;border-width:6px 13px;border-image:url('assets/ui2/btn-pill-primary.png') 12 26 fill/6px 13px stretch;border-radius:0;box-shadow:none;padding:0 4px;min-height:44px;color:#3b2810}
.topbar .header-actions>button.primary.ic:hover{background:none;border-image-source:url('assets/ui2/btn-primary-hover.png');border-image-slice:20 36;border-image-width:6px 13px}
.topbar .island-bridge-entry-btn:not(.account-avatar)::before{content:"";width:28px;height:28px;border:0;border-radius:0;background:url('assets/ui2/icon-help.png') center/contain no-repeat;image-rendering:pixelated;font-size:0}
/* 右側面板：手帳頁（左側木脊＋緞帶標題） */
.today-panel{position:relative;background:#fff6dc url('assets/ui/paper-texture.png') 0 0/256px 256px;border:2px solid #d9b46a;border-radius:14px;padding:14px 16px 16px 46px;box-shadow:0 4px 0 rgba(150,110,50,.18)}
.today-panel::before{content:"";position:absolute;left:0;top:0;bottom:0;width:26px;border-radius:12px 0 0 12px;background:linear-gradient(90deg,#c58b4a,#a8712f 62%,#8f5d25);box-shadow:inset -3px 0 0 rgba(255,235,190,.35)}
.today-panel::after{content:"";position:absolute;left:-5px;top:0;bottom:0;width:36px;pointer-events:none;background:radial-gradient(circle at 50% 16%,#ffe9a8 0 4px,#8a5a28 5px 7px,transparent 8px),radial-gradient(circle at 50% 50%,#ffe9a8 0 4px,#8a5a28 5px 7px,transparent 8px),radial-gradient(circle at 50% 84%,#ffe9a8 0 4px,#8a5a28 5px 7px,transparent 8px)}
.today-panel .today-heading{display:flex;justify-content:center;margin:0 0 8px}
.today-panel .today-heading h2{margin:0;text-align:center;font-size:20px;color:#5a3a22;border:solid transparent;border-width:8px 24px;border-image:url('assets/ui2/ribbon-title.png') 30 88 fill/8px 24px stretch;padding:2px 8px;min-width:68%}
.today-panel .attention-counts{display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin:2px 0 8px;background:none}
.today-panel .attention-counts button{display:flex;flex-direction:column;align-items:center;gap:2px;background:none;border:0;border-radius:10px;padding:4px 2px;box-shadow:none}
.today-panel .attention-counts button+button{border-left:2px dashed #e3c98f;border-radius:0 10px 10px 0}
.today-panel .attention-counts button strong{width:46px;height:46px;display:grid;place-items:center;font-size:20px;font-weight:900;color:#fff;text-shadow:0 1px 0 rgba(60,30,10,.6);background:url('assets/ui2/badge-urgent.png') center/100% 100% no-repeat;image-rendering:pixelated}
.today-panel .attention-counts button:nth-child(2) strong{background-image:url('assets/ui2/badge-review.png')}
.today-panel .attention-counts button:nth-child(3) strong{background-image:url('assets/ui2/badge-material.png')}
.today-panel .attention-counts button span{font-size:12px;font-weight:800;color:#6a4a22}
.today-panel .attention-counts button[aria-pressed="true"]{background:rgba(255,255,255,.55)}
.today-panel .attention-counts button strong:is(:empty){opacity:.4}
.next-step{display:flex;align-items:center;gap:8px;width:100%;text-align:left;cursor:pointer;margin:6px 0 10px}
.next-step::before{content:"";flex:none;width:28px;height:28px;background:url('assets/ui2/icon-pencil-find-mori.png') center/contain no-repeat;image-rendering:pixelated}
.next-step .ns-text{display:flex;flex-direction:column;min-width:0}.next-step small{font-size:11px;font-weight:800;color:#7a4a10}.next-step b{font-size:15px;line-height:1.3;color:#3b2810;overflow-wrap:anywhere}
.home-notes{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:10px}
.home-notes .priority-card{display:flex;flex-direction:column;gap:4px;text-align:left;min-height:84px;cursor:pointer;width:auto;padding:2px 4px;color:#3d3022}
.home-notes .priority-card strong{font-size:13px;line-height:1.35;-webkit-line-clamp:3}
.home-notes .priority-card small{margin-top:auto;font-size:11px;color:#6a5a42}
.today-panel .priority-card::after{display:none}
.today-panel .today-footer{margin-top:6px}.today-panel .today-footer .secondary{width:100%}

/* ===== 第四輪修正 ===== */
/* 頁首圖示：畫師的 28px 圖示被裁切，暫時改回上一版完整的圖示（等畫師重新輸出 64px 版） */
.topbar .header-actions>button.ic::before{width:28px;height:28px;background:url('assets/ui/icons-workbench.png') no-repeat;background-size:224px 84px;background-position:calc(var(--c)*-28px) calc(var(--r)*-28px);image-rendering:pixelated}
.topbar .header-actions>button.ic.ic-pencil::before{width:24px;background-position:calc(var(--c)*-28px - 4px) calc(var(--r)*-28px)}
/* 招牌：文字避開兩端花葉 */
.scene .island-place{padding:0 .55em;white-space:nowrap}
/* 緞帶標題：高度要夠，不然會被壓扁 */
.today-panel .today-heading h2{box-sizing:border-box;min-height:52px;display:flex;align-items:center;justify-content:center;border-width:8px 24px;padding:0 6px}
/* 下一步按鈕、便利貼：給足高度 */
.next-step{min-height:58px;border-width:10px 18px;border-image-width:10px 18px}
.home-notes .priority-card{min-height:104px}
.home-notes .priority-card strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.home-notes .priority-card{min-height:112px;justify-content:flex-start;padding:0 2px 4px}
.home-notes .priority-card strong{font-size:13px;line-height:1.35;margin:0}
.home-notes .priority-card small{margin-top:4px}
.topbar .header-actions>button.ic.ic-pencil::before{background:url('assets/ui/icons-workbench.png') no-repeat;background-size:224px 84px;background-position:calc(var(--c)*-28px - 4px) calc(var(--r)*-28px);width:24px;height:28px}
.topbar .header-actions>button.primary.ic{border-width:8px 18px;border-image-width:8px 18px;gap:6px;justify-content:center;padding:0 2px}

/* 畫師 64px 頁首圖示（完整、不再從大圖裁切） */
.topbar .header-actions>button.ic::before,.topbar .header-actions>button.ic.ic-pencil::before{width:28px;height:28px;background:var(--ic) center/contain no-repeat;image-rendering:pixelated}
.ic-chat{--ic:url('assets/ui3/icon-speech-board-64.png')}.ic-scope{--ic:url('assets/ui3/icon-telescope-guide-64.png')}.ic-clip{--ic:url('assets/ui3/icon-clipboard-notebook-64.png')}.ic-pencil{--ic:url('assets/ui3/icon-pencil-find-mori-64.png')}
.topbar .island-bridge-entry-btn:not(.account-avatar)::before{background-image:url('assets/ui3/icon-help-64.png')}
.next-step::before{background-image:url('assets/ui3/icon-pencil-find-mori-64.png')}

/* ===== 第六輪：招牌對齊、右側面板與地圖等高 ===== */
/* 招牌：高度固定 3.1em；左右花葉的寬度照原圖比例（80/193 × 高度），文字落在畫師標示的安全區內 */
.scene .island-place{height:3.1em;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;padding:0 .2em;border:solid transparent;border-width:.45em 1.28em;border-image:url('assets/ui2/plaque-name-normal.png') 28 80 fill/.45em 1.28em stretch;font-size:clamp(10px,1.3cqw,19px);letter-spacing:.04em;line-height:1;white-space:nowrap;text-shadow:0 1px 0 rgba(255,244,214,.7)}
.scene .island-place:hover,.scene .island-place:focus-visible{border-image-source:url('assets/ui2/plaque-name-hover.png')}
/* 面板與地圖卡片等高；按鈕固定貼底，中間內容平均分配 */
.workspace{align-items:stretch}
.today-panel{display:flex;flex-direction:column;box-sizing:border-box}
.today-panel>#priority-list{flex:1 1 auto;display:flex;flex-direction:column;justify-content:center}
.today-panel>.today-footer{margin-top:auto}
.today-panel .attention-counts{margin-bottom:12px}
.next-step{margin:4px 0 14px}
.home-notes{margin-bottom:6px}
.home-notes .priority-card{padding:0 6px 4px 8px}
.home-notes .priority-card strong{margin-top:2px}
@media (max-width:899px){.workspace{align-items:start}.today-panel>#priority-list{justify-content:flex-start}}

/* ===== 第六輪（續）：招牌留白、面板填滿、徽章一致 ===== */
.scene .island-place{padding:0 .75em;border-width:.45em 1.28em}
/* 面板：由上往下排，空間給便利貼與最近動態，不再留一大塊空白 */
.today-panel>#priority-list{justify-content:flex-start}
.home-notes{grid-template-columns:1fr 1fr;gap:14px 12px}
.home-notes .priority-card{min-height:104px}
.home-activity{margin:8px 0 12px;padding-top:10px;border-top:2px dashed #e3c98f}
.home-activity h4{margin:0 0 6px;font-size:13px;color:#8a6a3a}
.home-activity .activity-list{display:grid;gap:6px}
.home-activity .activity-card{display:grid;grid-template-columns:8px minmax(0,1fr) auto;gap:8px;align-items:center;text-align:left;padding:6px 8px;border:0;border-radius:10px;background:rgba(255,255,255,.55);cursor:pointer;color:#3d3022}
.home-activity .activity-card strong{font-size:12px;display:block}.home-activity .activity-card small{font-size:11px;color:#7a6a52;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.home-activity .activity-card time{font-size:10px;color:#8a7a62}
.home-activity .activity-dot{width:8px;height:8px;border-radius:50%;background:#e0a23a}
.home-activity .activity-empty{font-size:12px;color:#8a7a62;margin:0}
.today-panel>.today-footer{margin-top:auto}
/* 地圖上所有數字徽章：同一套畫師徽章、同大小、白字 */
.lighthouse-badge,.board-count,.actor-count{border:0;border-radius:0;box-shadow:none;color:#fff;text-shadow:0 1px 0 rgba(60,25,10,.65);font-weight:900;image-rendering:pixelated;background:url('assets/ui2/badge-sage-extra.png') center/100% 100% no-repeat;min-width:2.9cqw;height:2.9cqw;padding:0 .35cqw;font-size:clamp(9px,1.25cqw,17px)}
.lighthouse-badge.red,.board-count{background-image:url('assets/ui2/badge-urgent.png')}
.lighthouse-badge.yellow,.actor-count{background-image:url('assets/ui2/badge-review.png')}
.lighthouse-badge.blue{background-image:url('assets/ui2/badge-material.png')}
.lighthouse-badge.gray{background-image:url('assets/ui2/badge-material.png');filter:grayscale(1)}
.actor.has-review .actor-count{background-image:url('assets/ui2/badge-urgent.png');border:0;color:#fff}
.actor-count{min-width:2.5cqw;height:2.5cqw}
@media (max-width:640px){.lighthouse-badge,.board-count,.actor-count{min-width:6cqw;height:6cqw;font-size:8px}}
.today-panel>.home-activity{order:4}.today-panel>.today-footer{order:5}
.today-panel>.today-heading{order:0}.today-panel>.attention-counts{order:1}.today-panel>#priority-list{order:2;flex:0 0 auto}
.today-panel>.home-activity{margin-top:14px}

/* ===== 第六輪（續）：層次與貓狗大小 ===== */
.scene .pet{width:clamp(48px,7cqw,100px);height:clamp(48px,7cqw,100px)}
.scene .island-place{z-index:130}
.today-panel{justify-content:space-between}
.today-panel>.today-footer{margin-top:0}
.today-panel>.home-activity{margin-top:0}
@media (max-width:899px){.today-panel{justify-content:flex-start}.today-panel>.today-footer{margin-top:12px}}

/* ===== 第七輪：緞帶／書籤／招牌／任務板字置中／面板鎖高 ===== */
/* 緞帶：固定比例（960:200），不再九宮格拉伸，左右尾巴不會被切 */
.today-panel .today-heading h2{box-sizing:border-box;border:0;border-image:none;width:min(100%,292px);min-width:0;height:61px;min-height:0;margin:0 auto;padding:0 11%;display:flex;align-items:center;justify-content:center;background:url('assets/ui2/ribbon-title.png') center/100% 100% no-repeat;image-rendering:pixelated;font-size:20px;line-height:1;white-space:nowrap;color:#5a3a22}
/* 左側書籤（木脊）縮細 */
.today-panel{padding-left:32px}
.today-panel::before{width:12px;border-radius:12px 0 0 12px;box-shadow:inset -2px 0 0 rgba(255,235,190,.35)}
.today-panel::after{left:-12px;width:36px;background:radial-gradient(circle at 50% 16%,#ffe9a8 0 2.5px,#8a5a28 3px 4.5px,transparent 5px),radial-gradient(circle at 50% 50%,#ffe9a8 0 2.5px,#8a5a28 3px 4.5px,transparent 5px),radial-gradient(circle at 50% 84%,#ffe9a8 0 2.5px,#8a5a28 3px 4.5px,transparent 5px)}
/* 招牌：字小一點、板子高一點，奶油色底板留出上下空間；字略往上移（中文字形本來就偏低） */
.scene .island-place{height:3.5em;border-width:.51em 1.45em;border-image:url('assets/ui2/plaque-name-normal.png') 28 80 fill/.51em 1.45em stretch;font-size:clamp(9px,1.12cqw,16px);padding:0 .7em .14em;letter-spacing:.06em}
.scene .island-place:hover,.scene .island-place:focus-visible,.scene:has(.bldg:hover) .island-place{border-image-source:url('assets/ui2/plaque-name-normal.png')}
.scene .island-place:hover,.scene .island-place:focus-visible{border-image-source:url('assets/ui2/plaque-name-hover.png')}
/* 任務板的字：正中央（去掉上移，補償字距讓視覺置中） */
.board-label{padding:0 0 .6cqw .12em}
/* 右側面板：高度鎖定地圖卡片，多出來的區塊由程式依空間收起 */
@media (min-width:900px){.today-panel{contain:size;overflow:hidden}}
.today-panel [data-fit-hidden]{display:none!important}
.today-panel .today-heading,.today-panel .today-heading>div{width:100%;display:flex;justify-content:center}
.today-panel .today-heading h2{width:292px;max-width:100%;flex:0 0 auto}
.board-label{padding:0 0 0 .12em}
.today-panel .today-heading h2{padding-bottom:9px}

/* ===== 第七輪（續）：便利貼文字留邊、最近動態單欄 ===== */
.sticky{padding:6px 12px 8px 14px}
.pp-note,.note-missing{padding:4px 12px 6px 14px}
.board-activity .activity-list{grid-template-columns:1fr!important}
.board-activity .activity-card{display:grid;grid-template-columns:10px minmax(0,1fr) auto;gap:10px;align-items:center;text-align:left;padding:8px 10px;border:0;border-radius:10px;background:rgba(255,255,255,.55);color:#3d3022}
.board-activity .activity-card small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#7a6a52}
.board-activity .activity-card time{font-size:11px;color:#8a7a62;white-space:nowrap}
dialog.dialog .primary,dialog.dialog .secondary{font-size:15px;min-height:50px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;line-height:1.2}
@media (max-width:899px){
 .today-panel{padding:14px 14px 16px 30px}
 .today-panel .today-heading h2{width:min(260px,100%);height:54px;font-size:18px}
 .home-notes{grid-template-columns:1fr 1fr}
}

/* ===== 第七輪（續）：視覺檢查回報的修正 ===== */
/* 便利貼標題：平衡換行、不讓「｜」跑到行首、右側留白 */
.sticky strong,.home-notes .priority-card strong,.pp-note b,.next-step b{text-wrap:balance;line-break:strict;word-break:normal;overflow-wrap:anywhere}
.sticky{padding-right:18px}.home-notes .priority-card{padding-right:12px}
/* 最近動態：單欄，副標不被截斷成一個字 */
.home-activity .activity-list{grid-template-columns:1fr}
.home-activity .activity-card small{white-space:normal}
.board-activity .activity-dot{background:#e0a23a}
/* 小字放大一點 */
.today-panel .attention-counts button span{font-size:13px}
.topbar .island-clock small{font-size:12px}
.sticky small,.home-notes .priority-card small{font-size:12px}
.next-step small{font-size:12px}
/* 夜晚與黃昏：任務板的字改亮色 */
body[data-phase="night"] .board-label{color:#fff3cf;text-shadow:0 1px 0 #3b2810,0 0 6px rgba(255,220,140,.5)}
body[data-phase="dusk"] .board-label{color:#4a2a10;text-shadow:0 1px 0 rgba(255,235,190,.8)}
/* 護照頁兩顆按鈕同寬 */
.pp-actions{display:grid;gap:10px}.pp-actions .primary,.pp-actions .secondary{width:100%}
dialog.dialog .pp-actions+*{margin-top:10px}
/* 地點晶片：只在手機顯示（地圖太小時，招牌文字看不清） */
.place-chips{display:none}
@media (max-width:640px){
 .scene .island-place{display:none}
 .place-chips{display:flex;flex-wrap:wrap;gap:8px;padding:10px 12px;background:#fffdf3}
 .place-chip{min-height:44px;padding:0 14px;border:solid transparent;border-width:6px 18px;border-image:url('assets/ui2/btn-secondary-normal.png') 20 36 fill/6px 18px stretch;background:none;color:#4a2f12;font-size:14px;font-weight:800}
}

/* ===== 第八輪：緞帶用對稱修復版圖檔、任務板與其他招牌同字體、拿掉任務板的外框 ===== */
.today-panel .today-heading h2{background-image:url('assets/ui2/ribbon-title-sym.png');width:292px;height:auto;aspect-ratio:972/212;padding:0 11% 2%}
.board-spot:hover,.board-spot:focus-visible{background:transparent;box-shadow:none;outline:none}
.board-label{font-family:'Noto Sans TC',sans-serif;font-weight:800;letter-spacing:.06em;font-size:clamp(10px,1.35cqw,19px);color:#4a2f12;text-shadow:0 1px 0 rgba(255,244,214,.7)}
@media (max-width:899px){.today-panel .today-heading h2{width:min(260px,100%)}}

/* 返回鍵獨占一行，不壓到標籤；步驟編號改畫師徽章；表單字更清楚 */
dialog.dialog .back-dialog{float:none;display:inline-flex;position:static;margin:0 0 10px;min-height:36px;padding:4px 14px}
dialog.dialog .back-dialog+*{clear:both}

/* ===== 第八輪（續）：第二位檢查者回報的修正 ===== */
dialog.dialog p,dialog.dialog .lamp-item,dialog.dialog .lamp-item b,dialog.dialog h2,dialog.dialog h3,.example-row button,.template-card b,.template-card span{text-wrap:pretty;line-break:strict;overflow-wrap:break-word}
dialog.dialog .lamp-item{text-wrap:balance}
/* 關閉鈕：所有抽屜同一顆、同大小、同位置 */
dialog.dialog .close-dialog{position:absolute;top:14px;right:16px;float:none;margin:0;width:40px;height:40px;min-height:40px;z-index:6}
dialog.dialog{border-top:0}
dialog.dialog::before{display:none}
/* 返回鍵與標籤同一行對齊 */
dialog.dialog .back-dialog{display:inline-flex;align-items:center;vertical-align:middle;margin:0 10px 10px 0}
dialog.dialog .back-dialog+.note-head,dialog.dialog .note-head{display:inline-flex;vertical-align:middle;min-height:0;padding-right:0}
/* 步驟編號：暖色圓章，不用預設藍 */
.note-steps li span{background:#c98a2b;border:2px solid #7a4e12;color:#fff;image-rendering:auto;box-shadow:0 1px 0 rgba(255,235,190,.6) inset;width:26px;height:26px}
/* 小字至少 12px、字色加深 */
dialog.dialog small,dialog.dialog .note-facts dt,.status,.detail-note,.sticky-reason,.home-activity time,.home-activity small,.board-activity small,.board-activity time{font-size:max(12px,1em);color:#5f4f38}
dialog.dialog .status{font-size:12px}
dialog.dialog details>summary{font-size:14px;font-weight:800;color:#6a4a22;padding:8px 0}
dialog.dialog details{margin-top:6px}
/* 抽屜內容右緣一致、底部留白 */
dialog.dialog{padding-right:24px;padding-bottom:34px}
dialog.dialog hr,dialog.dialog .rule{margin-right:0}
/* 護照／任務資料格：最後一項不單獨留空 */
.note-facts div:last-child:nth-child(odd){grid-column:1/-1}

/* ===== 手機版檢查後的修正 ===== */
.sticky strong,.home-notes .priority-card strong,.pp-note b,.next-step b{overflow-wrap:break-word}
@media (max-width:640px){
 .village-footer .daily-route{display:none}
 .village-footer{justify-content:flex-end}
 .topbar .brand{flex:0 1 auto;min-width:0}
 .topbar .brand-title{display:none}
 .topbar .island-clock{margin-left:auto;flex:0 0 auto;--sk:30px}
 .topbar .island-clock small{white-space:nowrap}
 .place-chips{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 .place-chip{width:100%;justify-content:center}
}

/* ===== 底板、抽屜同寬、常見交辦只留標題 ===== */
/* 夥伴名字：淡底板 */
.scene .actor-label{background:rgba(255,249,230,.88);border:1.5px solid rgba(150,110,60,.55);border-radius:999px;padding:.12em .7em;box-shadow:0 1px 0 rgba(120,80,30,.25);text-shadow:none;color:#4a3a22;top:96%}
/* 所有抽屜同寬（原本找小森 640/700、夥伴 720，各自寫死，跟字體大小無關） */
dialog.dialog,dialog.dialog#commander-dialog,dialog.dialog#team-dialog{width:min(580px,100vw)}
dialog.dialog#commander-dialog,dialog#commander-dialog{border-top:0}
/* 常見交辦：一排小標籤，滑過顯示用途 */
.tpl-chips{display:flex;flex-wrap:wrap;gap:8px;grid-template-columns:none}
.tpl-chip{position:relative;flex:0 0 auto;display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border:solid transparent;border-width:5px 14px;border-image:url('assets/ui2/btn-secondary-normal.png') 20 36 fill/5px 14px stretch;background:none;box-shadow:none;border-radius:0;font-size:14px;font-weight:800;color:#4a2f12}
.tpl-chip:nth-child(n){background:none;box-shadow:none}
.tpl-chip:hover,.tpl-chip:focus-visible{transform:none;outline:0;border-image-source:url('assets/ui2/btn-secondary-hover.png')}
.tpl-chip::after{content:attr(data-tip);position:absolute;left:50%;bottom:calc(100% + 6px);transform:translateX(-50%);width:max-content;max-width:240px;padding:8px 10px;border-radius:10px;background:#4a2f12;color:#fff6dc;font-size:12px;font-weight:600;line-height:1.5;text-align:left;white-space:normal;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .12s;z-index:20;box-shadow:0 3px 8px rgba(60,40,10,.3)}
.tpl-chip:hover::after,.tpl-chip:focus-visible::after{opacity:1;visibility:visible}
.tpl-chip:first-child::after{left:0;transform:none}
/* 找小森下方的字級與其他抽屜一致 */
#commander-dialog .commander-intro h2{font-size:22px}
#commander-dialog p,#commander-dialog .example-row button,#commander-dialog .templates-or,#commander-dialog [data-open-quick-task],#commander-dialog .workflow-step,#commander-dialog .intake-privacy,#commander-dialog .commander-footnote,#commander-dialog .commander-footnote summary{font-size:13px;color:#5f4f38}
#commander-dialog .example-row button{border:2px dashed #d9b46a;border-radius:999px;background:rgba(255,255,255,.6);min-height:36px}
dialog.dialog{overflow-x:hidden}
#commander-dialog .workflow-steps,#commander-dialog .workflow-steps>*{max-width:100%;flex-wrap:wrap}
#commander-dialog .intake-privacy,#commander-dialog #intake-message+*{margin-top:10px}

/* ===== 修正：對話泡泡不被招牌蓋住、交辦標籤文字置中 ===== */
.scene .actor:hover,.scene .actor:focus-visible,.scene .actor:focus-within{z-index:300!important}
.scene .actor .actor-bubble{z-index:310;white-space:nowrap}
.tpl-chip{border:2.5px solid #a9793a;border-image:none;border-radius:10px;background:#fff6dc;box-shadow:0 2px 0 #8a6428;padding:0 14px;min-height:40px;justify-content:center;text-align:center;line-height:1}
.tpl-chip:hover,.tpl-chip:focus-visible{border-image:none;background:#fffbe9;box-shadow:0 2px 0 #8a6428}
.tpl-chip:active{transform:translateY(2px);box-shadow:0 0 0 #8a6428}

/* ===== 任務手帳：改成跟其他抽屜同一個樣子 ===== */
.journal{position:fixed;top:0!important;right:0!important;bottom:0!important;left:auto!important;width:min(580px,100vw)!important;max-height:none!important;height:100dvh;border:0!important;border-left:8px solid #e9c98a!important;border-radius:20px 0 0 20px!important;background:#fbefd2 url('assets/ui/paper-texture.png') 0 0/256px!important;padding:26px 24px 34px!important;box-shadow:-10px 0 34px rgba(80,60,20,.28)!important;overflow-x:hidden;overflow-y:auto!important;z-index:60;color:#3d3022}
.journal .journal-heading h2{font-size:22px}.journal .journal-flower{display:none}
.journal .journal-close{position:absolute;top:14px;right:16px;width:40px;height:40px;border:0;border-radius:50%;background:#e9c98a;color:#4a2f12;font-size:24px}
.journal .summary{border:0;background:rgba(255,255,255,.5);border-radius:12px;padding:10px 14px;margin:8px 0 12px}
.journal .filters button{border-radius:999px;font-size:13px;padding:6px 12px;color:#5f4f38}.journal .filters button.active{background:#f6c75c;color:#4a2f12}
.journal input,.journal select{border:2px solid #e3c98f;border-radius:10px;background:#fffdf4}
.journal .journal-search{display:grid;gap:8px}.journal .search-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.journal .task-list{display:grid!important;grid-template-columns:1fr!important;gap:10px;max-height:none!important;overflow:visible!important}
.journal .task-board-column{background:rgba(255,255,255,.45)!important;border:2px dashed #e3c98f!important;border-radius:12px!important;padding:10px}
.journal .task-card{background:rgba(255,255,255,.7);border-radius:10px;border:0;padding:10px 12px;margin:6px 0;box-shadow:0 2px 0 rgba(150,110,50,.18)}
.journal .add-task{background:linear-gradient(#ffdf7e,#f2b73d);border:2.5px solid #9a6a1c;border-radius:10px;box-shadow:0 3px 0 #7a5214;color:#3b2810;font-weight:800;min-height:46px}
.journal .journal-note{display:none}
.journal{display:flex!important;flex-direction:column;overflow:hidden!important}
.journal .task-list{flex:1 1 auto;min-height:0;overflow-y:auto!important}
.journal .add-task{flex:0 0 auto;margin-top:10px}
.journal>.summary,.journal>.filters,.journal>.journal-search,.journal>.journal-heading{flex:0 0 auto}

/* ===== 全面一致：所有視窗內的按鈕、標題、字體（各功能自己寫的專用樣式一併蓋掉）===== */
dialog.dialog .fb-brief-submit,dialog.dialog .creative-workshop__btn.primary,dialog.dialog button[type="submit"],dialog.dialog .ops-tabs button[aria-pressed="true"],.island-bridge-primary{background:linear-gradient(#ffdf7e,#f2b73d)!important;border:3px solid #9a6a1c!important;border-image:none!important;border-radius:12px!important;box-shadow:0 3px 0 #7a5214,inset 0 2px 0 rgba(255,255,255,.55)!important;color:#3b2810!important;font-weight:800;min-height:48px;padding:0 20px;text-shadow:none;max-width:100%}
dialog.dialog .fb-brief-submit:hover,dialog.dialog button[type="submit"]:hover,.island-bridge-primary:hover{background:linear-gradient(#ffe99a,#f7c24f)!important}
dialog.dialog .fb-brief-submit:active,dialog.dialog button[type="submit"]:active{transform:translateY(2px);box-shadow:0 1px 0 #7a5214!important}
dialog.dialog .fb-brief-submit,dialog.dialog button[type="submit"]{justify-self:stretch;width:100%}
dialog.dialog .compose-actions button[type="submit"],dialog.dialog .actions button[type="submit"]{width:auto}
/* 標題一律同一種字（黑體），大小階層一致 */
dialog.dialog h2,dialog.dialog h3,dialog.dialog legend,.journal h2,.journal h3{font-family:'Noto Sans TC',sans-serif;font-weight:900;color:#4a2f12}
dialog.dialog h2{font-size:22px}dialog.dialog h3{font-size:17px}
dialog.dialog .eyebrow{font-size:12px;letter-spacing:.06em;color:#8a6a3a;font-weight:800}
/* 視窗內的白色大框拿掉（框中框）：統一半透明紙面 */
dialog.dialog form,dialog.dialog fieldset,dialog.dialog .fb-brief,dialog.dialog .google-brief,dialog.dialog .brief-form{background:transparent;border-color:rgba(200,160,90,.5);box-shadow:none}
dialog.dialog input:not([type=checkbox]):not([type=radio]),dialog.dialog textarea,dialog.dialog select{border:2px solid #e3c98f;border-radius:10px;background:#fffdf4;font-size:14px}
dialog.dialog label,dialog.dialog legend{font-size:14px;color:#4a2f12}
dialog.dialog small,dialog.dialog .hint{font-size:12.5px}
dialog.dialog details>summary{font-size:14px;font-weight:800;color:#6a4a22}

/* 登入後才有的「今日巡檢待辦／曝光巡檢明細」放在任務板裡，不佔首頁右側面板 */
.board-patrol{margin-top:18px}
.board-patrol:not(:has(:not([hidden]))){display:none}
.board-patrol #today-work,.board-patrol #exposure-home{margin:0 0 14px;padding:12px 14px;border:2px dashed #e3c98f;border-radius:12px;background:rgba(255,255,255,.45)}
.board-patrol #exposure-home summary{font-size:14px;font-weight:800;color:#6a4a22;cursor:pointer}
.board-patrol h3{margin:0 0 8px;font-size:15px;color:#8a6a3a}

/* 客戶護照：客戶資料（Notion 連結） */
.pp-data{margin:14px 0 4px}
.pp-data h4{margin:0 0 6px}
.pp-notion{padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.6);margin-bottom:8px}
.pp-notion-name{margin:0 0 6px;font-weight:800;font-size:14px;color:#4a2f12}
.pp-link-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:4px 0;font-size:14px}
.pp-link-row b{flex:0 0 auto;min-width:7.5em;color:#8a6a3a;font-size:13px}
.pp-link-row a{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border:2px solid #a9793a;border-radius:999px;background:#fff6dc;color:#4a2f12;font-weight:800;font-size:13px;text-decoration:none}
.pp-link-row a:hover{background:#fffbe9}
.pp-kv{display:flex;gap:10px;margin:3px 0;font-size:14px}.pp-kv b{flex:0 0 auto;min-width:7.5em;color:#8a6a3a;font-size:13px}.pp-kv span{overflow-wrap:anywhere}
.pp-data h4+.pp-notion{margin-top:2px}.pp-data h4:not(:first-child){margin-top:14px}

/* 客戶護照（第二版）：報表一列、設定小標籤、巡檢收合、返回按鈕 */
.pp-reports{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 2px}
.pp-reports a{display:inline-flex;align-items:center;min-height:38px;padding:0 14px;border:2px solid #a9793a;border-radius:999px;background:#fff6dc;color:#4a2f12;font-weight:800;font-size:14px;text-decoration:none}
.pp-reports a.main{background:linear-gradient(#ffdf7e,#f2b73d);border-color:#9a6a1c;box-shadow:0 2px 0 #7a5214;min-height:42px;padding:0 18px;font-size:15px}
.pp-reports a:hover{background:#fffbe9}.pp-reports a.main:hover{background:linear-gradient(#ffe99a,#f7c24f)}
.pp-settings{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:4px 0}
.pp-tag.set{background:#efe2bf;color:#5f4a22;font-size:13px;padding:3px 10px}
.pp-patrol{margin:14px 0;padding:8px 12px;border:2px dashed #e3c98f;border-radius:12px;background:rgba(255,255,255,.4)}
.pp-patrol summary{cursor:pointer;font-weight:800;color:#6a4a22;font-size:14px;display:flex;align-items:center;gap:10px}
.pp-count{font-weight:800;font-size:12px;padding:2px 10px;border-radius:999px;background:#eee4cc;color:#6a5a42}.pp-count.red{background:#ffd7d2;color:#a22a1f}
.pp-patrol[open] summary{margin-bottom:8px}
.pp-actions{display:grid;gap:10px}.pp-actions .primary,.pp-actions .secondary{width:100%}
#journal-back{position:static;margin:0 0 10px;padding:6px 14px;border:2px solid #d9b46a;border-radius:999px;background:#fff3d6;color:#6a4a1c;font-weight:800;font-size:14px}
/* 手機：小按鈕的可點範圍補到約 36px（外觀不變） */
@media (max-width:640px){
  .motion-toggle,#show-team{min-height:36px;padding-block:8px}
  .pet-bowl::after{content:"";position:absolute;inset:-8px}
  .creative-workshop__link{display:inline-block;padding-block:8px}
}
/* 成效報告所：本週報表進度 */
.rp-summary{display:flex;flex-direction:column;gap:2px;margin:0 0 8px;font-size:14px;color:#4a3a2a}
.rp-summary span{font-size:12px;color:#6a5a42}
.rp-stale{margin:0 0 8px;padding:6px 10px;border-radius:8px;background:#fff0c9;color:#7a4a00;font-size:12px}
.rp-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.rp-card{padding:9px 11px;border-radius:10px;border:2px solid #e3d5b0;background:#fffaf0}
.rp-card.rp-red{border-color:#e08a7a;background:#fff3f0}
.rp-card.rp-yellow{border-color:#e6c46a;background:#fffbe9}
.rp-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.rp-level{font-size:11px;font-weight:800;padding:1px 8px;border-radius:999px;background:#e8f2e0;color:#2f5a2a}
.rp-red .rp-level{background:#ffd7d2;color:#a22a1f}
.rp-yellow .rp-level{background:#fff0b8;color:#7a5a00}
.rp-note{margin:4px 0;font-size:13px;color:#4a3a2a}
.rp-chips{display:flex;flex-wrap:wrap;gap:4px}
.rp-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:6px;font-size:12px;color:#6a5a42}
.rp-link{padding:9px 12px;border-radius:8px;background:#e8f2e0;color:#2f5a2a;font-weight:700;text-decoration:none;min-height:20px}
.rp-hint{margin:10px 0 4px;font-size:12px;color:#6a5a42}
.rp-tools{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 0}
.rp-fine{margin-top:10px}
.rp-fine>summary{cursor:pointer;font-weight:800;font-size:13px;color:#2f5a2a;padding:8px 4px;min-height:24px}
.rp-fine[open]>summary{margin-bottom:6px}
.rp-allgood{margin:0 0 8px;padding:8px 10px;border-radius:8px;background:#e8f2e0;color:#2f5a2a;font-weight:700;font-size:13px}
/* 小森交辦視窗：方式 A（常見交辦／填表）與方式 B（一句話／AI）分區標示 */
.commander-section{display:flex;flex-direction:column;gap:2px;margin:14px 0 8px;font-size:15px;line-height:1.35;color:#4a2f12}
.commander-section small{font-size:12px;font-weight:600;color:#6a5a42}
.commander-section__tag{align-self:flex-start;font-size:11px;font-weight:800;padding:1px 8px;border-radius:999px;background:#e8f2e0;color:#2f5a2a;margin-bottom:2px}
.commander-section.templates-or{margin-top:18px;padding-top:12px;border-top:2px dashed #e3d5b0}
/* ===== 圓滑按鈕（2026-11-24）：全站按鈕統一成圓滑的實色按鈕，不再用點陣邊框圖。地圖上的建築名牌是畫面的一部分，不在此列。 ===== */
:root{--btn-gold:#f2b73d;--btn-gold-hover:#f7c24f;--btn-gold-active:#e3a62b;--btn-gold-line:#c98f1c;--btn-cream:#fff6dc;--btn-cream-hover:#fffbe9;--btn-cream-active:#f6e6b8;--btn-cream-line:#d9b46a;--btn-ink:#3b2810;--btn-focus:#325936}
dialog.dialog .primary,dialog.dialog .task-actions .primary,dialog.dialog .fb-brief-submit,dialog.dialog .creative-workshop__btn.primary,dialog.dialog button[type="submit"],.topbar .header-actions>button.primary.ic,.island-bridge-primary,.today-panel .primary,
dialog.dialog .secondary,dialog.dialog .task-actions .secondary,.today-panel .secondary,dialog.dialog .creative-workshop__btn.secondary,.tpl-chip,.place-chip{background-image:none!important;border-image:none!important;border-style:solid!important;border-width:2px!important;border-radius:12px!important;box-shadow:none!important;text-shadow:none!important;min-height:44px;font-weight:800;line-height:1.25;image-rendering:auto;transform:none;transition:background-color .15s ease,border-color .15s ease}
dialog.dialog .primary,dialog.dialog .task-actions .primary,dialog.dialog .fb-brief-submit,dialog.dialog .creative-workshop__btn.primary,dialog.dialog button[type="submit"],.topbar .header-actions>button.primary.ic,.island-bridge-primary,.today-panel .primary{background-color:var(--btn-gold)!important;border-color:var(--btn-gold-line)!important;color:var(--btn-ink)!important;padding:0 18px;text-align:center}
dialog.dialog .primary:hover,dialog.dialog .task-actions .primary:hover,dialog.dialog .fb-brief-submit:hover,dialog.dialog .creative-workshop__btn.primary:hover,dialog.dialog button[type="submit"]:hover,.topbar .header-actions>button.primary.ic:hover,.island-bridge-primary:hover,.today-panel .primary:hover{background-color:var(--btn-gold-hover)!important}
dialog.dialog .primary:active,dialog.dialog .task-actions .primary:active,dialog.dialog .fb-brief-submit:active,dialog.dialog .creative-workshop__btn.primary:active,dialog.dialog button[type="submit"]:active,.topbar .header-actions>button.primary.ic:active,.island-bridge-primary:active,.today-panel .primary:active{background-color:var(--btn-gold-active)!important}
dialog.dialog .secondary,dialog.dialog .task-actions .secondary,.today-panel .secondary,dialog.dialog .creative-workshop__btn.secondary,.tpl-chip,.place-chip{background-color:var(--btn-cream)!important;border-color:var(--btn-cream-line)!important;color:#4a2f12!important}
dialog.dialog .secondary:hover,dialog.dialog .task-actions .secondary:hover,.today-panel .secondary:hover,dialog.dialog .creative-workshop__btn.secondary:hover,.tpl-chip:hover,.place-chip:hover{background-color:var(--btn-cream-hover)!important}
dialog.dialog .secondary:active,dialog.dialog .task-actions .secondary:active,.today-panel .secondary:active,dialog.dialog .creative-workshop__btn.secondary:active,.tpl-chip:active,.place-chip:active{background-color:var(--btn-cream-active)!important}
dialog.dialog .primary:disabled,dialog.dialog .fb-brief-submit:disabled,dialog.dialog button[type="submit"]:disabled,dialog.dialog .secondary:disabled{opacity:.55;cursor:not-allowed}
dialog.dialog .primary:focus-visible,dialog.dialog .secondary:focus-visible,dialog.dialog .fb-brief-submit:focus-visible,dialog.dialog button[type="submit"]:focus-visible,.topbar .header-actions>button:focus-visible,.today-panel button:focus-visible,.tpl-chip:focus-visible,.place-chip:focus-visible{outline:3px solid var(--btn-focus)!important;outline-offset:2px}
dialog.dialog .creative-workshop__btn{text-align:center}
/* 首頁右側：三個數字改成乾淨的標籤（不再是點陣郵票），顏色只用在數字上 */
.today-panel .attention-counts{gap:8px!important}
.today-panel .attention-counts button,.today-panel .attention-counts button+button{background:#fffaf0!important;border:2px solid #e3d5b0!important;border-radius:12px!important;padding:8px 4px!important;box-shadow:none!important}
.today-panel .attention-counts button strong{background:none!important;width:auto!important;height:auto!important;font-size:24px;line-height:1.1;color:#4a2f12;text-shadow:none!important}
.today-panel .attention-counts button:nth-child(1) strong{color:#b3392a}
.today-panel .attention-counts button:nth-child(2) strong{color:#a66b00}
.today-panel .attention-counts button:nth-child(3) strong{color:#2f5f8a}
.today-panel .attention-counts button[aria-pressed="true"]{background:#fff0c9!important;border-color:var(--btn-gold-line)!important}
/* 首頁右側：任務改成一件一列的清單（取代四張便利貼） */
.today-rows{list-style:none;margin:0 0 8px;padding:0;display:grid;gap:6px}
.today-row{display:flex;gap:10px;align-items:flex-start;width:100%;min-height:48px;padding:10px 12px;border:2px solid #e3d5b0;border-radius:12px;background:#fffaf0;color:#3b2810;font:inherit;text-align:left;cursor:pointer;transition:background-color .15s ease,border-color .15s ease}
.today-row:hover{background:#fffdf5;border-color:#d9b46a}
.today-row.first{border-color:#e0b23b;background:#fff6dc}
.tr-dot{flex:0 0 10px;height:10px;margin-top:6px;border-radius:50%;background:#e0b23b}
.today-row.pink .tr-dot{background:#d9534f}
.today-row.green .tr-dot{background:#5a9a4a}
.today-row.blue .tr-dot{background:#4b86b8}
.tr-main{display:flex;flex-direction:column;gap:3px;min-width:0}
.tr-title{font-size:14px;font-weight:800;line-height:1.35;overflow-wrap:anywhere}
.tr-first{font-style:normal;font-size:11px;font-weight:800;padding:1px 8px;border-radius:999px;background:var(--btn-gold);color:var(--btn-ink);margin-right:6px;vertical-align:1px}
.tr-meta{font-size:12px;color:#6a5a42;line-height:1.4}
.today-row.overdue .tr-meta{color:#a22a1f;font-weight:700}
.tr-demo{font-style:normal;font-size:11px;font-weight:800;padding:0 7px;border-radius:999px;background:#ece6d6;color:#6a5a42;margin-right:6px}
/* 小森視窗：選項清單上方那行「常見交辦」和方式 A 的標題重複，隱藏；右上角關閉鈕改圓滑 */
.request-templates>.tpl-title:has(+ .tpl-chips){display:none}
dialog.dialog .close-dialog{background:#fff6dc!important;border:2px solid #d9b46a!important;border-radius:50%!important;color:#4a2f12!important;font-size:22px!important;line-height:1;image-rendering:auto;box-shadow:none!important;display:inline-flex;align-items:center;justify-content:center;padding:0}
dialog.dialog .close-dialog:hover{background:#fffbe9!important;filter:none}
dialog.dialog .close-dialog:focus-visible{outline:3px solid #325936;outline-offset:2px}
/* 任務板視窗：列表取代便利貼 */
.board-rows{margin-top:10px}
.fb-brief-specs ul{margin:4px 0 8px;padding-left:18px;display:grid;gap:3px}
.fb-brief-specs a{font-weight:700}
.fb-brief-specs a{display:inline-block;padding:8px 0}
/* 鍵盤焦點：地圖上的任務板熱點與建築名牌用鍵盤選到時要看得出來（原本被 outline:none 清掉） */
.board-spot:focus-visible,.scene .island-place:focus-visible{outline:3px solid #325936!important;outline-offset:3px}
.board-hidden-note{margin:10px 2px 0;font-size:12px;color:#6a5a42}
.today-panel #home-toggle-tests{align-self:center;margin:0 0 6px;font-size:12px;font-weight:700;color:#6a5a42;text-decoration:underline;background:none;border:0;min-height:32px;cursor:pointer}
/* 地圖上的建築名牌：點陣木牌圖會隨螢幕寬度變形、字壓到兩邊的小花，改成圓滑標籤（字永遠置中、不破圖） */
.scene .island-place,.scene .island-place:hover,.scene .island-place:focus-visible,.scene:has(.bldg:hover) .island-place{box-sizing:border-box!important;height:auto!important;min-height:2em;display:inline-flex!important;align-items:center;justify-content:center;text-align:center;padding:.35em 1em!important;background:#fff6dc!important;background-image:none!important;border:2px solid #7a5230!important;border-image:none!important;border-radius:999px!important;box-shadow:0 2px 0 rgba(90,58,34,.35)!important;color:#4a2f12!important;font-weight:800;line-height:1.2!important;white-space:nowrap}
.scene .island-place:hover,.scene .island-place:focus-visible,.scene:has(.bldg[data-place="strategy"]:hover) .island-place[data-place="strategy"],.scene:has(.bldg[data-place="report"]:hover) .island-place[data-place="report"],.scene:has(.bldg[data-place="bank"]:hover) .island-place[data-place="bank"],.scene:has(.bldg[data-place="am"]:hover) .island-place[data-place="am"],.scene:has(.bldg[data-place="creative"]:hover) .island-place[data-place="creative"],.scene:has(.bldg[data-place="observer"]:hover) .island-place[data-place="observer"]{background:#fffbe9!important;border-color:#c98f1c!important}
/* 頁首圖示：64px 的圖縮到 28px，用平滑縮放，不要最近鄰（會出現鋸齒、看起來破碎） */
.topbar .header-actions>button.ic::before,.topbar .island-bridge-entry-btn::before,.next-step::before{image-rendering:auto!important}
/* 首頁右側面板：內容靠上排、間距固定，「打開任務板」固定在最下面（原本用 space-between 把各區塊平均拉開，中間出現大片空白） */
@media (min-width:900px){.today-panel{justify-content:flex-start!important;gap:12px}.today-panel>.today-footer{margin-top:auto!important}}
/* 燈塔房間：卡片減輕份量（左邊色條 8px→5px、字距收緊），續約說明只講一次 */
.lamp-item{padding:8px 12px;margin:6px 0;border-radius:12px}
.lamp-item.red{border-left-width:5px}.lamp-item.yellow{border-left-width:5px}.lamp-item.blue{border-left-width:5px}.lamp-item.gray{border-left-width:5px}
.lamp-hint{margin:0 0 6px;font-size:13px;line-height:1.5;color:#6a5a42}
/* 小島導覽：最上面三張卡寬度一致（按鈕會縮成內容寬，連結卻是滿版，看起來參差） */
#workbench-content>.workbench-card{display:grid;gap:4px;width:100%;box-sizing:border-box;margin:0 0 8px;text-align:left}
/* 夥伴介紹：小字對比不足，加深一點 */
.team-card small,.team-card .worker-current-task{color:#6a5a42}
.team-card .worker-current-task{font-size:12px}
/* 合約排程：從進度表帶入的清單 */
.cs-section{margin:0 0 14px;padding:10px 12px;border-radius:12px;background:#fff6dc;border:2px solid #e3d5b0}
.cs-title{margin:0 0 4px;font-size:15px}
.cs-note{margin:0 0 8px;font-size:13px;color:#6a5a42;line-height:1.5}
.cs-list{list-style:none;margin:0;padding:0;display:grid;gap:6px;max-height:260px;overflow:auto}
.cs-row{display:flex;flex-direction:column;gap:2px;width:100%;min-height:48px;padding:8px 12px;border:2px solid #e3d5b0;border-radius:12px;background:#fffaf0;color:#3b2810;font:inherit;text-align:left;cursor:pointer}
.cs-row:hover{background:#fffdf5;border-color:#d9b46a}
.cs-row:focus-visible{outline:3px solid #325936;outline-offset:2px}
.cs-main{display:flex;gap:6px;align-items:center;flex-wrap:wrap;font-size:14px}
.cs-meta{font-size:12px;color:#6a5a42}
.cs-row.upcoming .cs-meta strong{color:#2f5a2a}
.cs-row.ending .cs-meta strong{color:#a66b00}
.lamp-actions{margin:14px 0 4px}
.cs-manual{margin:8px 0}
.cs-manual>summary{cursor:pointer;font-weight:800;font-size:13px;color:#6a5a42;padding:8px 2px;min-height:24px}
.cs-manual[open]>summary{margin-bottom:6px}
/* 案子總覽（營運工作台第一頁）：每客戶一張卡；案子一列一行 */
.lamp-actions{display:flex;flex-wrap:wrap;gap:8px}
.co-next{display:inline-block;margin-right:6px;padding:0 7px;border-radius:999px;background:#fff0c9;border:1px solid #d9b46a;color:#6a4a00;font-size:11px;font-weight:800}
.co-card .rp-note{margin:6px 0 4px;font-weight:700;color:#3b2810}
.co-more{list-style:none;margin:2px 0 6px;padding:0;display:grid;gap:2px;font-size:13px;color:#5a4528}
.co-more li::before{content:"・"}
.co-more .d{margin-left:6px;color:#8a7658;font-size:12px}
.co-cases{list-style:none;margin:6px 0;padding:0;display:grid;gap:4px}
.co-case{display:flex;align-items:center;gap:8px;min-height:30px;padding:3px 8px;border-radius:8px;background:rgba(255,255,255,.65);font-size:13px}
.co-case .co-m{font-weight:800;min-width:54px}
.co-case .co-d{color:#6a5a42;white-space:nowrap}
.co-case .pp-tag{margin-left:auto;white-space:nowrap}
/* 營運工作台加寬；案子總覽卡片分區（左邊小標、右邊內容） */
dialog.dialog#ops-dialog{width:min(780px,100vw)}
.co-sec{display:grid;grid-template-columns:78px 1fr;gap:10px;align-items:start;padding:8px 0;border-top:1px dashed #e3d5b0}
.co-label{font-size:12px;font-weight:800;color:#7a5a1f;padding-top:3px}
.co-body{min-width:0}
.co-list{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.co-i{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;font-size:14px;color:#3b2810}
.co-i::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:#7aa66a;align-self:center}
.co-i.red::before{background:#d6513f}
.co-i.yellow::before{background:#e0a31c}
.co-i .d{color:#8a7658;font-size:12.5px}
.co-i .rp-link{margin-left:auto}
.co-m em{font-style:normal;color:#8a6a2a;font-weight:800}
.co-cases{margin:0}
@media (max-width:480px){.co-sec{grid-template-columns:1fr;gap:2px}.co-label{padding-top:0}}
/* 任務板：之後的任務收起來，排程任務依案子一組 */
.board-later{margin:14px 0 0;border-top:1px dashed #e3d5b0;padding-top:8px}
.board-later>summary,.board-group>summary{cursor:pointer;font-weight:800;color:#5a4528;min-height:36px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.board-later>summary{font-size:14px}
.board-group{margin:6px 0 0;padding:4px 10px;border:2px solid #e3d5b0;border-radius:10px;background:#fffaf0}
.board-group>summary span{font-weight:600;font-size:12.5px;color:#8a7658;margin-left:auto}
.board-group[open]>summary{margin-bottom:6px}
/* 整理任務（任務板裡的結案清單） */
.board-tools{margin:14px 0 0}
.cu-warn{margin:8px 0 12px;padding:8px 12px;border-radius:10px;background:#fff3e0;border:1px solid #e6c46a;font-size:13px;color:#5a4528}
.cu-sec{margin:12px 0}
.cu-sec h4{margin:0 0 2px;font-size:14px;color:#3b2810}
.cu-hint{margin:0 0 6px;font-size:12.5px;color:#8a7658}
.cu-list{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.cu-row label{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;align-items:center;min-height:44px;padding:4px 10px;border:2px solid #e3d5b0;border-radius:10px;background:#fffaf0;cursor:pointer}
.cu-row.off label{opacity:.55;cursor:not-allowed}
.cu-row input,.cu-case summary input{width:20px;height:20px}
.cu-t{font-weight:700;font-size:14px}
.cu-m{grid-column:2;font-size:12px;color:#8a7658}
.cu-case{margin:6px 0;border:2px solid #e3d5b0;border-radius:10px;background:#fffdf7;padding:2px 8px}
.cu-case>summary{cursor:pointer;min-height:44px;display:flex;align-items:center}
.cu-case>summary label{display:flex;align-items:center;gap:10px;flex:1;cursor:pointer}
.cu-case>summary .cu-m{margin-left:auto}
.cu-other>summary{cursor:pointer;min-height:36px;display:flex;align-items:center;font-weight:700;color:#5a4528}
.cu-bar{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 6px;position:sticky;bottom:0;padding:8px 0;background:linear-gradient(transparent,#fffdf7 30%)}
.cu-progress{margin:4px 0 0;font-size:13px;color:#5a4528;min-height:1.4em}
/* 營運工作台：依事情分類的看板（續約一區、成效目標一區…），版面再拉寬 */
dialog.dialog#ops-dialog{width:min(1040px,100vw)}
.cb-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:12px;margin:10px 0 14px;align-items:start}
.cb-sec{padding:10px 12px;border:2px solid #e3d5b0;border-radius:12px;background:#fffaf0}
.cb-sec h4{display:flex;align-items:center;gap:8px;margin:0 0 6px;font-size:15px;color:#3b2810}
.cb-sec h4 em{margin-left:auto;font-style:normal;font-size:12px;font-weight:700;color:#8a7658}
.cb-dot{width:10px;height:10px;border-radius:50%;background:#7aa66a;flex:none}
.cb-dot.red{background:#d6513f}.cb-dot.yellow{background:#e0a31c}
.cb-list{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.cb-row{display:grid;grid-template-columns:minmax(84px,32%) 1fr auto;gap:2px 10px;align-items:baseline;padding:6px 4px;border-top:1px dashed #eadfc2;font-size:14px}
.cb-row:first-child{border-top:0}
.cb-row .cb-c{color:#3b2810}
.cb-row.red .cb-c::before,.cb-row.yellow .cb-c::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;vertical-align:1px}
.cb-row.red .cb-c::before{background:#d6513f}.cb-row.yellow .cb-c::before{background:#e0a31c}
.cb-w{color:#4a3720;min-width:0}
.cb-w .d{display:block;margin-top:1px;font-size:12.5px;color:#8a7658}
.cb-row .rp-link{align-self:center}
.cb-more>summary{cursor:pointer;min-height:32px;display:flex;align-items:center;font-size:13px;font-weight:700;color:#5a4528}
.co-all{margin:6px 0 10px;border-top:1px dashed #e3d5b0;padding-top:8px}
.co-all>summary{cursor:pointer;min-height:36px;display:flex;align-items:center;font-weight:800;color:#5a4528}
@media (max-width:520px){.cb-row{grid-template-columns:1fr}.cb-row .rp-link{justify-self:start}}
/* 知道了／延後：每一行的小按鈕放在文字下面；已知情的收在最下面 */
.cb-act{grid-column:2 / -1;display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.cb-btn{min-height:40px;padding:4px 14px;border:2px solid #d9b46a;border-radius:999px;background:linear-gradient(#fffdf5,#fff0c9);color:#4a3720;font:inherit;font-size:13px;font-weight:800;cursor:pointer}
.cb-btn:hover{background:linear-gradient(#fffdf5,#ffe7a6)}
.cb-btn:focus-visible{outline:3px solid #325936;outline-offset:2px}
.cb-btn:disabled{opacity:.5;cursor:wait}
.cb-muted{margin:6px 0 12px;padding:8px 12px;border:2px dashed #e3d5b0;border-radius:12px;background:rgba(255,250,240,.6)}
.cb-muted>summary{cursor:pointer;min-height:36px;display:flex;align-items:center;font-weight:800;font-size:14px;color:#5a4528}
.cb-muted .cb-row{opacity:.85}
/* 知道了／延後：縮小成一行右邊的小按鈕（原本太大） */
.cb-row{grid-template-columns:minmax(84px,30%) 1fr auto}
.cb-act{grid-column:3;grid-row:1;margin:0;gap:4px;align-self:center;flex-wrap:nowrap}
.cb-btn{min-height:26px;padding:1px 9px;border:1px solid #d9b46a;border-radius:8px;background:#fffaf0;font-size:12px;font-weight:700;color:#6a5a42;white-space:nowrap}
.cb-btn:hover{background:#fff0c9}
.cb-muted .cb-btn{min-height:26px}
@media (max-width:520px){.cb-row{grid-template-columns:1fr}.cb-act{grid-column:1;grid-row:auto;margin-top:2px}}
/* 對話框內所有按鈕的通用樣式比較大，這裡用更高的優先順序把「知道了／延後／取消」縮成小標籤 */
dialog.dialog .cb-act .cb-btn{min-height:24px!important;min-width:0!important;height:auto!important;padding:1px 8px!important;font-size:12px!important;line-height:1.4!important;border:1px solid #d9b46a!important;border-image:none!important;border-radius:7px!important;background:#fffaf0!important;color:#6a5a42!important;box-shadow:none!important;font-weight:700!important}
dialog.dialog .cb-act .cb-btn:hover{background:#fff0c9!important}
/* 貓狗的遠近感：越靠後面（y 越小）越小；--ps 由 island-stroll.mjs 設定 */
.scene .pet{width:calc(clamp(56px,8cqw,118px)*var(--ps,1));height:calc(clamp(56px,8cqw,118px)*var(--ps,1));min-width:0;min-height:0}
@media (max-width:640px){.scene .pet{width:calc(clamp(34px,10cqw,52px)*var(--ps,1));height:calc(clamp(34px,10cqw,52px)*var(--ps,1))}}
/* 交辦卡（找小森）拉寬：需求草稿、要確認的問題、丟資料的預覽都比較好讀 */
dialog.dialog#commander-dialog{width:min(860px,100vw)}
/* 丟資料給小森（交辦卡裡的方式 C） */
.drop-intake{margin:14px 0}
.di-box{border:2px solid #e3d5b0;border-radius:12px;background:#fffaf0;padding:6px 14px}
.di-box>summary{cursor:pointer;min-height:44px;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font-weight:800;color:#3b2810;font-size:15px}
.di-box>summary small{flex-basis:100%;font-weight:600;font-size:12px;color:#8a7658;margin:-4px 0 6px}
.di-body label{display:block;margin:10px 0;font-weight:700;font-size:13.5px;color:#4a3720}
.di-body textarea,.di-body input[type=file]{display:block;width:100%;margin-top:6px;box-sizing:border-box;font-weight:400}
.di-privacy,.di-hint{font-size:12.5px;color:#7a6548;margin:8px 0}
.di-preview h4,.di-brief h4{margin:8px 0 4px;font-size:15px;color:#3b2810}
.di-brief h5{margin:12px 0 4px;font-size:14px;color:#3b2810}
.di-list{list-style:none;margin:0 0 8px;padding:0;display:grid;gap:8px}
.di-src{padding:8px 10px;border:2px solid #e3d5b0;border-radius:10px;background:#fffdf7}
.di-src.bad{background:#fff3f0;border-color:#e0a99e}
.di-src label{display:flex;gap:8px;align-items:center;font-weight:800;margin:0}
.di-m,.di-warn,.di-err{display:block;font-size:12.5px;margin:3px 0 0 26px}
.di-m{color:#8a7658}.di-warn{color:#a66b00;font-weight:700}.di-err{color:#a22a1f}
.di-pre{white-space:pre-wrap;word-break:break-word;max-height:220px;overflow:auto;margin:6px 0 0 0;padding:8px;background:#fff;border:1px solid #eadfc2;border-radius:8px;font:inherit;font-size:13px}
.di-src details{margin:4px 0 0 26px}.di-src summary{cursor:pointer;font-size:12.5px;color:#5a4528}
.di-ack{display:flex;gap:8px;align-items:flex-start;margin:8px 0;font-weight:700;color:#a66b00}
.di-sum{margin:0 0 8px;line-height:1.7;white-space:pre-wrap}
.di-facts{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.di-facts li{padding:6px 10px;border-left:4px solid #d9b46a;background:#fffdf7;border-radius:6px}
.di-facts q{display:block;margin:2px 0;color:#6a5a42;font-size:13px}.di-facts small{color:#8a7658}
.di-files{list-style:none;margin:4px 0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.di-files li{display:inline-flex;align-items:center;gap:4px;background:#fffdf7;border:2px solid #e3d5b0;border-radius:999px;padding:2px 4px 2px 10px;font-size:13px}
.di-rm{min-width:28px;min-height:28px;border:0;border-radius:999px;background:#f1e6c8;color:#5a4528;font-size:16px;line-height:1;cursor:pointer}
.di-rm:hover{background:#e6d3a2}
.di-drop{font-size:12.5px;color:#8a7658;margin:4px 0}
/* 全站的 input{width:100%;display:block;padding…} 會把勾選框撐成整列寬：丟資料面板裡的勾選框固定大小 */
.di-box input[type=checkbox]{width:18px;height:18px;min-width:18px;flex:none;display:inline-block;margin:0;padding:0}
.di-src label .di-t{flex:1;text-align:left;overflow-wrap:anywhere}
.di-ack{align-items:flex-start}.di-ack input[type=checkbox]{margin-top:2px}
.di-next{margin:14px 0 6px;padding:10px 12px;border:2px solid #d9b46a;border-radius:12px;background:#fff6dc}
.di-next h5{margin:0 0 4px}
.di-topic{display:block;margin:8px 0;font-weight:700;font-size:13.5px;color:#4a3720}
.di-topic select{display:block;width:100%;margin-top:6px;box-sizing:border-box}
.di-copy-actions{flex-wrap:wrap;gap:8px}
.di-kw{margin:14px 0 6px}
.di-kwlist{list-style:none;margin:0 0 6px;padding:0;display:grid;gap:8px}
.di-kwlist li{padding:8px 10px;border-left:4px solid #8fb47a;background:#f6fbf0;border-radius:6px}
.di-kwlist span{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.di-kwlist em{font-style:normal;font-size:13px;background:#fff;border:1px solid #cfe0c2;border-radius:999px;padding:2px 9px}
.di-fold{margin:8px 0;border:2px solid #eadfc2;border-radius:10px;background:#fffdf7;padding:2px 12px}
.di-fold>summary{cursor:pointer;min-height:40px;display:flex;align-items:center;font-weight:800;font-size:14px;color:#3b2810}
.di-fold ol,.di-fold ul{margin:4px 0 10px}
.other-ways{margin:14px 0;border:2px solid #e3d5b0;border-radius:12px;background:#fffaf0;padding:2px 14px}
.other-ways>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:800;font-size:14px;color:#5a4528}
.di-topics{border:2px solid #eadfc2;border-radius:10px;margin:8px 0;padding:6px 12px;background:#fffdf7}
.di-topics legend{font-weight:800;font-size:13px;color:#4a3720;padding:0 6px}
.di-topics label{display:flex;gap:8px;align-items:center;margin:4px 0;font-size:14px;font-weight:700}
.di-more{margin:8px 0}.di-more>summary{cursor:pointer;font-size:13px;color:#7a6548}
.di-qlist{list-style:none;margin:6px 0;padding:0;display:grid;gap:8px}
.di-q{display:grid;gap:2px;padding:8px 12px;border:2px solid #e3d5b0;border-radius:10px;background:#fffdf7}
.di-q span{font-size:13.5px}.di-q small{color:#a22a1f}
.di-q-done{border-color:#8fb47a;background:#f6fbf0}.di-q-failed{border-color:#e0a99e;background:#fff3f0}.di-q-running{border-color:#d9b46a;background:#fff6dc}
.text-button.di-use,.di-brief .text-button{background:none;border:0;color:#7a6548;text-decoration:underline;cursor:pointer;font-size:13px;min-height:36px}
#drop-intake[data-step="queue"]~#intake-workflow{display:none}
.di-assign{margin:14px 0 6px;padding:10px 12px;border:2px solid #8fb47a;border-radius:12px;background:#f6fbf0}
.di-assign h5{margin:0 0 6px}
.di-aslist{list-style:none;margin:0 0 6px;padding:0;display:grid;gap:8px}
.di-as{padding:8px 10px;border:2px solid #cfe0c2;border-radius:10px;background:#fff}
.di-as label{display:flex;gap:8px;align-items:flex-start;font-weight:800;font-size:14px;margin:0}
.di-as small{display:block;margin:3px 0 0 26px;color:#6a5a42;font-size:12.5px}
.di-as details{margin:4px 0 0 26px}.di-as details summary{cursor:pointer;font-size:12.5px;color:#5a4528}
.di-as q{display:block;margin:4px 0;color:#6a5a42;font-size:13px}
.di-as-copy{border-style:dashed;background:#fbfaf3}.di-as-copy span{font-weight:800;font-size:14px}.di-as-copy small{margin-left:0}
.di-ok{color:#2f6b2a;font-weight:800;font-size:13.5px;margin:6px 0}
.ai-usage{margin:6px 0 0;font-size:12px;color:#8a7658}.ai-usage:empty{display:none}.ai-usage.low{color:#a22a1f;font-weight:700}
.di-supp-label{display:block;font-size:13px;font-weight:700;color:#4a3720;margin:6px 0}
.di-supp textarea{display:block;width:100%;box-sizing:border-box;margin-top:6px;font-weight:400}
/* 舊的「一句話交給小森」入口（方式 B）：丟資料面板已經能處理一句話而且會拆件，所以藏起來；元素還在，因為「改建立一般任務」還會用到同一份草稿與確認表單 */
#other-ways .templates-or,#other-ways .example-row,#other-ways #intake-form{display:none}
/* 「整理需求／確認派工／交給小桃」步驟條只在進入確認派工表單時才有意義 */
#commander-dialog:not(:has(#task-form:not([hidden]))) #intake-workflow{display:none}
/* 「還缺」便利貼：圖片（sticky-pink.png，320×224）四周有透明邊（左 22、右 8、上 14、下 20 像素），原本只切 18 像素，真正的邊框線落進內容區蓋住文字。依圖片實際尺寸改切：上 48、右 28、下 36、左 36 */
.note-missing{border-width:30px 14px 20px 20px;border-image-slice:48 28 36 36 fill;border-image-width:30px 14px 20px 20px;padding:6px 12px 8px 12px;box-sizing:border-box;overflow-wrap:anywhere}
.di-rs{margin:6px 0 0 26px}.di-rs-res{margin:8px 0;padding:8px 10px;border:2px dashed #8fb47a;border-radius:10px;background:#f9fdf5}
.di-rs-list{margin:6px 0;padding-left:18px}.di-rs-list li{margin:4px 0}.di-rs-list small{display:block;color:#6a5a42;font-size:12.5px}
.di-rs-list a{color:#2d5f8a;word-break:break-all}.di-rs-cav{margin:6px 0;padding-left:18px;color:#8a7658;font-size:12.5px}
.rp-box{margin:12px 0;padding:10px 14px;border:2px solid #e3d5b0;border-radius:12px;background:#fffaf0}
.rp-box h3{margin:0 0 6px;font-size:16px}.rp-label{display:block;font-weight:700;font-size:13.5px;color:#4a3720;margin:8px 0}
.rp-box textarea{display:block;width:100%;box-sizing:border-box;margin-top:6px;font-weight:400}
/* 視窗內容很長、往下捲時，右上角關閉鈕要一直看得到（原本是 absolute，會跟著內容捲走） */
dialog.dialog .close-dialog{position:sticky;top:-16px;float:right;margin:-14px -34px -34px 8px;z-index:8}
/* 客戶資料卡（小桃文案表單上方） */
.cp-box{margin:0 0 14px;padding:10px 14px;border:2px solid #e3d5b0;border-radius:12px;background:#fffaf0}
.cp-pick{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-weight:700;color:#4a3720}
.cp-pick select{min-height:36px;font-weight:400;max-width:100%}
.cp-hint,.cp-sub,.cp-meta{margin:6px 0 0;font-size:12.5px;color:#6a5a42}
.cp-card h3{margin:10px 0 2px;font-size:16px}.cp-card h4{margin:10px 0 4px;font-size:14px}
.cp-warn{margin:6px 0;padding:6px 10px;border-radius:8px;background:#fdf1e0;color:#7a4b12;font-size:13px}
.cp-list{margin:8px 0;display:grid;grid-template-columns:auto 1fr;gap:4px 12px;font-size:14px}
.cp-list dt{font-weight:700;color:#4a3720}.cp-list dd{margin:0;overflow-wrap:anywhere}
.cp-internal{margin:8px 0;padding:8px 12px;border-radius:10px;background:#f3f7ef;border:1px solid #cddcc4}
.cp-internal ul{margin:0;padding-left:18px}.cp-internal li{margin:6px 0}
.cp-text{margin:4px 0;font-size:13.5px}.cp-text span{display:block;font-size:12px;color:#6a5a42}
.cp-links a{color:#2d5f8a}
.cp-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 4px}
.cp-link{background:none;border:0;padding:0;color:#2d5f8a;text-decoration:underline;cursor:pointer;font:inherit;min-height:0}
.cp-status{min-height:1em;margin:4px 0 0;font-size:13px;color:#325936}
.cp-unmatched{margin:6px 0;font-size:13px}.cp-unmatched ul{margin:4px 0;padding-left:18px}
.cp-fold{margin:6px 0;border-top:1px solid #eadfc2;padding-top:4px}
.cp-fold>summary{cursor:pointer;font-weight:700;font-size:13.5px;color:#4a3720;padding:4px 0}
.cp-fold-body{max-height:240px;overflow:auto;padding:4px 2px 6px;font-size:13.5px;overflow-wrap:anywhere}
.cp-fold-body ul{margin:0;padding-left:18px}
.cp-internal{background:none;border:0;border-top:1px solid #eadfc2;padding:4px 0 0}
/* 草稿最上方的禁用字詞比對橫幅 */
.cp-banner{display:grid;gap:2px;margin:8px 0;padding:8px 12px;border-radius:10px;border:2px solid;font-size:13.5px;line-height:1.5}
.cp-banner strong{font-size:14.5px}.cp-banner small{color:inherit;opacity:.8}
.cp-banner-hit{background:#fdeaea;border-color:#d98c8c;color:#7a1f1f}
.cp-banner-unset{background:#fff6dc;border-color:#e3c46f;color:#6b4e0a}
.cp-banner-clear{background:#eef7ea;border-color:#b3cfa6;color:#2f5a2a}
/* 客戶列（小桃文案表單最上面，只佔一行）與資料卡 */
.cp-strip{padding:8px 12px}
.cp-row{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center}
.cp-chips{display:flex;flex-wrap:wrap;gap:6px}
.cp-chip{padding:2px 10px;border-radius:999px;background:#f1ead6;color:#4a3720;font-size:12.5px}
.cp-chip-warn{background:#fdeaea;color:#7a1f1f}.cp-chip-mute{background:#efefe8;color:#6a6a5a}
.cp-more{margin-top:6px}.cp-more>summary{cursor:pointer;font-weight:700;font-size:13.5px;color:#2d5f8a}
.cp-points{margin:0 0 8px;padding-left:0;list-style:none}.cp-points li{margin:4px 0}
.cp-points label{display:flex;gap:8px;align-items:flex-start;font-weight:400}
.cp-points input{margin-top:3px}
.pp-profile .cp-fold-body{max-height:none}
/* 對話框統一成三種寬度（原本散在 580／560／860／1040／1060 好幾條互相覆蓋的規則；手機上 min(…,100vw) 自然變滿版）
   標準＝文字為主、單欄；寬＝要填表、看草稿、卡片牆；全寬＝看板與多欄比較。 */
:root{--dialog-w-standard:min(680px,100vw);--dialog-w-wide:min(860px,100vw);--dialog-w-full:min(1080px,100vw)}
dialog.dialog,dialog.island-bridge-dialog,dialog.dialog#team-dialog{width:var(--dialog-w-standard)}
dialog.dialog#commander-dialog,dialog.dialog#workbench-dialog,dialog.dialog#facebook-dialog,dialog.dialog#google-dialog,dialog.dialog#pmax-dialog{width:var(--dialog-w-wide)}
dialog.dialog#ops-dialog{width:var(--dialog-w-full)}
dialog#task-dialog.creative-task{width:var(--dialog-w-full)}
/* 客戶列與賣點勾選：蓋掉視窗裡一般表單標籤（會把標籤排成直的、把勾選框和文字拆開）的樣式 */
dialog.dialog .cp-pick{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;margin:0;text-align:left}
dialog.dialog .cp-pick select{width:auto!important;min-width:180px;max-width:100%;height:38px;min-height:38px!important;padding:4px 10px;margin:0}
dialog.dialog .cp-points{margin:0 0 8px;padding:0;list-style:none}
dialog.dialog .cp-points li{margin:6px 0;padding:0}
dialog.dialog .cp-points label{display:grid!important;grid-template-columns:20px 1fr;gap:8px;align-items:start;margin:0;font-weight:400;text-align:left;cursor:pointer}
dialog.dialog .cp-points input[type="checkbox"]{width:18px!important;height:18px!important;min-height:0!important;margin:2px 0 0!important;padding:0!important}
dialog.dialog .cp-fold .cp-fold-body{max-height:320px}
dialog.dialog .cp-row .cp-link{margin:0;padding:0;text-align:left}
/* 社群貼文長度：選「廣告文案」時不顯示 */
.fb-brief-form:has(input[name="format"][value="ad"]:checked) .fb-brief-length{display:none}
dialog.dialog .fb-brief-length select{width:auto;min-width:200px}
.cp-chip-note{background:#e8f0fb;color:#1f4a7a}
.cp-ext{color:#2d5f8a;text-decoration:underline;font-size:13px;white-space:nowrap}
dialog.dialog .fb-brief-length select{width:auto!important;min-width:220px}
.cp-status:empty{display:none}
