:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#253b39;background:#f4f5ef;--green:#173d35;--muted:#77837c;--line:#dfe5dc}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #d4aa55;outline-offset:3px}button{border:0;background:none;color:inherit}a{color:var(--green)}[hidden]{display:none!important}aside{position:fixed;inset:0 auto 0 0;width:230px;background:#142a29;color:#e9f0e6;padding:36px 23px;display:flex;flex-direction:column}.brand{text-decoration:none;color:inherit;font-size:23px;font-weight:700;letter-spacing:1px}.brand em{font:italic 15px Georgia;color:#d7bd7a}.brand img{display:block;width:174px;height:auto;filter:invert(1);margin-bottom:12px}.brand span{display:block;font-size:11px;letter-spacing:4px;color:#9dada4;margin:12px 0 45px}aside nav{display:grid;gap:10px}aside nav button{text-align:left;padding:16px;border-radius:10px;color:#bbc9c0}aside nav button.active{background:#29463f;color:#f4efd8}.side-foot{margin-top:auto;font-size:12px;line-height:2;color:#99afa4}.side-foot span{color:#788f86}main{margin-left:230px;max-width:1550px;padding:42px 48px}header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:30px}.eyebrow{font-size:10px;letter-spacing:2px;color:#8b937d;font-weight:600}.header-logo{display:inline-block;width:112px;height:auto;max-height:24px;object-fit:contain;vertical-align:middle;margin-left:4px;filter:grayscale(1);opacity:.72}h1{font-size:34px;letter-spacing:-1px;margin:13px 0}h1 span{color:#b6a16a}header p{color:var(--muted);font-size:14px;margin:0}.outline{padding:10px 16px;background:transparent;border:1px solid #cbd5cb;border-radius:8px;font-size:13px}.primary{background:var(--green);color:white;border-radius:8px;padding:13px 20px;font-weight:600}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:28px}.metric{padding:20px;background:#fff;border:1px solid var(--line);border-radius:12px;text-align:left}.metric span{display:block;font-size:12px;color:var(--muted)}.metric strong{font-size:34px;font-weight:500;display:block;margin:10px 0 0}.metric small{display:block;font-size:11px;color:#939b8a;margin-top:7px}.metric:first-child{background:#dfe9dd;border-color:#dfe9dd}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:20px;border-bottom:1px solid var(--line)}.tabs{display:flex;gap:5px}.tabs button{padding:9px 15px;color:#79867e;border-radius:20px;font-size:13px}.tabs button.active{background:#193d35;color:white}input,textarea,select{border:1px solid #d8ded4;background:white;border-radius:8px;padding:11px;outline:none;width:100%;color:inherit}input:focus,textarea:focus,select:focus{border-color:#78998a;box-shadow:0 0 0 3px #e6eee5}#search{max-width:310px;background:transparent}.section-title{display:flex;align-items:center;gap:12px;margin:22px 0 16px}.section-title h2{font-size:17px;margin:0}.section-title span{color:#859184;font-size:12px}.text-button{margin-left:auto;font-size:12px;text-decoration:underline}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px;min-width:0;display:flex;flex-direction:column}.card-top{display:flex;justify-content:space-between;gap:10px}.tag{font-size:10px;padding:5px 8px;border-radius:5px;background:#edf2e9;color:#63806a}.tag.urgent{background:#fff0dc;color:#ad7732}.tag.done{background:#e1f0e6;color:#327455}.card h3{font-size:15px;margin:15px 0 10px;line-height:1.6}.card p{color:#6d7d74;font-size:13px;line-height:1.7;margin:0 0 12px}.card .next{border-left:2px solid #c4d4bf;padding-left:10px;color:#426452}.card-meta{display:flex;gap:9px;flex-wrap:wrap;font-size:11px;color:#7a887c;margin-top:auto;margin-bottom:15px}.card-footer{border-top:1px solid #edf0e8;padding-top:12px;display:flex;justify-content:space-between;align-items:center}.card-footer button{font-size:12px;background:#e8eee5;color:#335b43;border-radius:6px;padding:8px 12px}.complete-check{font-size:12px;display:flex;gap:7px;align-items:center;cursor:pointer}.complete-check input{width:17px;height:17px;accent-color:var(--green)}footer{font-size:11px;color:#899485;margin-top:24px;line-height:1.8}.empty{text-align:center;padding:45px;background:#fff;border:1px dashed #ccd7c7;border-radius:12px;grid-column:1/-1;color:#78887a}.mobile-nav{display:none}dialog{border:0;border-radius:16px;padding:28px;max-width:650px;width:calc(100% - 32px);max-height:90vh;overflow:auto;box-shadow:0 20px 80px #112d2c33}dialog::backdrop{background:#142a2966}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.dialog-head h2{font-size:20px;margin:8px 0}.close{font-size:28px;color:#8b9387}.action{line-height:1.8;color:#526c5d}.source-box{border-radius:10px;background:#f0f4eb;padding:15px;margin-bottom:20px;font-size:12px}.source-box p{line-height:1.7}.source-box small{display:block;color:#8b937f;margin-top:8px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}label{font-size:12px;line-height:1.8;display:block}label input,label textarea,label select{margin-top:5px}.wide{grid-column:1/-1}.dialog-foot{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.dialog-foot .primary{flex:1;max-width:300px}details{margin-top:20px;color:#73836e;font-size:12px}#history p{padding:8px;border-bottom:1px solid #eee;line-height:1.7}#save-error,#login-error{color:#b25c46;font-size:13px}.access-url{word-break:break-all;background:#f0f4eb;border-radius:8px;padding:16px;font-size:20px}#access p{line-height:1.8}#access small{color:#82907d}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);padding:13px 22px;border-radius:8px;background:#173d35;color:white;z-index:10;max-width:90vw;font-size:13px}.auth{min-height:100vh;display:grid;place-items:center;background:radial-gradient(ellipse at top right,#d8e1c9,transparent),#eff2e8}.login{width:calc(100% - 40px);max-width:390px;padding:32px;background:#ffffffdd;border:1px solid #dae3d2;border-radius:16px}.auth-logo{display:block;width:min(285px,100%);height:auto;max-height:86px;object-fit:contain;margin:15px auto 24px}.login h1{font-size:32px}.login p{color:#788572;line-height:1.8;font-size:13px}.login .primary{width:100%;margin-top:18px}.login small{display:block;text-align:center;color:#8c9684;margin-top:18px;font-size:11px}
@media(min-width:1450px){.cards{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:1050px){aside{width:190px;padding:28px 18px}.brand{font-size:19px}main{margin-left:190px;padding:32px 24px}.toolbar{flex-wrap:wrap}#search{max-width:none}.metrics{gap:10px}.metric{padding:15px}}@media(max-width:700px){aside{display:none}main{margin:0;padding:24px 18px 94px}header{align-items:flex-start;margin-bottom:24px}header h1{font-size:25px}header p{font-size:12px}.eyebrow{font-size:9px}header .outline{font-size:11px;padding:9px;margin-top:8px;white-space:nowrap}.metrics{grid-template-columns:repeat(2,1fr);gap:10px}.metric{padding:15px}.metric strong{font-size:27px}.cards{grid-template-columns:1fr}.tabs{width:100%;justify-content:space-between}.tabs button{padding:8px 12px}.toolbar{gap:13px}#search{width:100%;max-width:none}.card{padding:18px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:#fbfcf7;border-top:1px solid #dbe3d5;justify-content:space-around;padding:10px 0 max(10px,env(safe-area-inset-bottom));z-index:2}.mobile-nav button{font-size:19px;min-width:65px;color:#8a9780}.mobile-nav span{display:block;font-size:10px;margin-top:4px}.mobile-nav .active{color:#1b5742}dialog{padding:20px;max-height:92vh}.form-grid{gap:13px}#toast{bottom:90px}footer{font-size:10px}.auth-logo{width:min(245px,100%);max-height:72px;margin:12px auto 20px}.login h1{font-size:28px}}

html{scroll-padding-bottom:105px;scroll-padding-top:24px}.card{scroll-margin-bottom:105px}
/* Unified work, recording review, and evidence-led follow-up. */
[hidden]{display:none!important}.focus-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 28px}.focus-item{border:1px solid #ccd9c4;background:#eef3e8;border-radius:12px;padding:18px;text-align:left;min-width:0}.focus-item small{color:#819076;font-size:11px;display:block;margin-bottom:10px}.focus-item strong{font-size:13px;line-height:1.8;display:block}.focus-item>button{margin-top:15px;font-size:11px;color:#456d4b;text-decoration:underline}.focus-item.chosen{background:#dfebda}.gap{color:#a57142!important;font-size:12px!important}.hint{color:#7b8878;font-size:12px;line-height:1.8}.hint .text-button{margin-left:12px}.source-entry{padding:10px 0;border-bottom:1px solid #dce4d6;overflow-wrap:anywhere;line-height:1.8}.source-entry small{display:block;font-size:11px;color:#849179}.source-entry a{font-size:12px}.source-tag{margin-left:5px}.filters{display:flex;gap:18px;margin-bottom:18px}.filters label{flex:1;max-width:270px}.focus-check{display:flex;gap:8px;align-items:center}.focus-check input{width:18px}.card h3,.card p,.card-meta{overflow-wrap:anywhere}#candidate-error{color:#b25c46;font-size:13px}.section-title{flex-wrap:wrap}.card-footer{gap:12px}.card-footer button{flex-shrink:0}#view-help{margin-bottom:16px}#candidate-dialog label{margin-top:15px}
@media(max-width:700px){.focus-grid{grid-template-columns:1fr}.focus-item{padding:15px}.tabs{flex-wrap:wrap;justify-content:flex-start;gap:2px}.tabs button{padding:8px 10px;font-size:12px}.mobile-nav button{min-width:50px}.filters{gap:10px}.card-footer{align-items:flex-start}.source-tag{font-size:9px}.section-title h2{font-size:16px}.focus-check{font-size:11px}header h1{font-size:23px}.source-entry{font-size:12px}}

/* Complete context and evidence timeline. */
.card .conversation{font-size:11px;color:#829080;margin:14px 0 0}.card h3{margin-top:8px}.requirements-preview{font-size:12px;line-height:1.8;color:#526c5d;padding-left:18px;margin:0 0 12px}.card .snapshot{font-size:11px;color:#8b927d}.detail-button{align-self:flex-start;text-align:left;font-size:12px;color:#245b46;padding:10px 0;margin:0 0 10px;text-decoration:underline}.item-detail{margin:16px 0 22px;overflow-wrap:anywhere}.item-detail h3{font-size:14px;color:#2b5141;margin:22px 0 9px}.item-detail p,.item-detail li{font-size:13px;line-height:1.9;color:#526c5d}.item-detail ul{padding-left:20px}.timeline{padding-left:22px;border-left:2px solid #dce5d6;margin-left:4px;list-style:none}.timeline li{margin:0 0 16px}.timeline time{font-size:11px;color:#89947c}.timeline p{margin:4px 0}.item-detail .coverage-note{font-size:11px;color:#89917e;border-top:1px solid #e1e7dc;padding-top:12px}.current-progress{background:#f1f5ec;padding:0 16px 12px;border-radius:10px}.preserve-lines{white-space:pre-wrap}.editor-context{margin-bottom:18px}.related-detail{padding:10px;background:#f2f5ee;border-radius:8px}#detail-dialog{max-width:760px}#supplement{margin-bottom:18px}#detail-context{overflow-wrap:anywhere}#knowledge-summary{white-space:pre-wrap}

.image-gallery{margin:12px 0 20px;border-top:1px solid #e3e9df;padding-top:14px;min-width:0}.gallery-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;font-size:12px}.gallery-title button{font-size:12px;color:#285e45;text-decoration:underline}.image-thumbnails{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.image-thumbnails button{min-width:0;text-align:left;padding:0;background:#f0f4ec;border:1px solid #dfe6d9;border-radius:8px;overflow:hidden}.image-thumbnails img{width:100%;height:110px;object-fit:contain;background:#edf1e8;display:block}.image-thumbnails span{display:block;font-size:11px;line-height:1.6;padding:7px;color:#5f775e;overflow-wrap:anywhere}.image-missing{padding:10px 12px;border:1px dashed #d4ddca;border-radius:8px;font-size:12px!important;line-height:1.8;color:#827d55!important;background:#fafaf3}.image-missing small{display:block;color:#8b947b;font-size:11px}#image-preview{display:block;width:100%;max-height:240px;object-fit:contain;border-radius:8px;margin-bottom:15px;background:#f0f4eb}#image-upload label{margin-top:12px}#image-error{color:#b25c46;font-size:13px}#image-viewer{width:min(760px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto}#image-large{display:block;width:100%;height:auto;max-height:min(58dvh,540px);object-fit:contain;background:#f1f3ed;border-radius:8px}#image-view-caption{font-size:12px;color:#728169;line-height:1.8;overflow-wrap:anywhere}.image-view-controls{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;font-size:12px}#image-remove{display:block;margin:20px auto 0;color:#7e8779}#image-save{width:100%}
@media(max-width:700px){.image-thumbnails{grid-template-columns:repeat(2,minmax(0,1fr))}.image-thumbnails img{height:120px}.gallery-title{gap:8px}.image-view-controls{gap:9px}.image-view-controls .outline{padding:8px 12px}#image-large{max-height:60vh}}

.point-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.point-heading h2{font-size:26px;margin:10px 0}.point-heading p{color:var(--muted);font-size:14px}.point-notice{background:#e9eee2;border-radius:10px;padding:14px;font-size:12px;line-height:1.8;color:#64775d}.point-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0}.point-tabs button{padding:10px 14px;border:1px solid var(--line);border-radius:20px;font-size:12px}.point-tabs .active{background:var(--green);color:white}.point-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.point-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.point-surface{padding:22px;border:1px solid var(--line);border-radius:12px;background:white;margin:20px 0;overflow-wrap:anywhere}.point-surface p{font-size:13px;line-height:1.9;color:#64775d}.point-ranking{list-style:none;padding:0;margin:10px 0}.point-ranking li{display:flex;justify-content:space-between;gap:12px;padding:14px;border-bottom:1px solid var(--line);font-size:13px}.point-ranking strong{text-align:right}.point-ranking small{display:block;color:var(--muted);font-weight:400;font-size:11px;margin-top:6px}.point-grid .card{overflow-wrap:anywhere}#point-error{color:#ad4c3b;font-size:13px}#point-form .dialog-foot{margin-top:18px}@media(max-width:700px){.point-grid{grid-template-columns:1fr}.point-heading h2{font-size:22px}.point-tabs{gap:6px}.point-tabs button{padding:9px 10px}.mobile-nav button{min-width:0;flex:1;padding:9px 2px}.point-surface{padding:15px}}

.header-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.header-actions a{text-decoration:none;white-space:nowrap}@media(max-width:700px){.header-actions{max-width:116px;flex-shrink:0}.header-actions .outline{padding:8px 10px;font-size:12px}}
.workbench-release-badge{align-self:center;padding:4px 8px;border-radius:999px;background:#e8f0e6;color:#315b46;font-size:11px;font-weight:700;white-space:nowrap}.workbench-update-notice{position:fixed;right:18px;bottom:18px;z-index:12000;display:flex;align-items:center;gap:12px;max-width:min(520px,calc(100vw - 36px));padding:12px 14px;border:1px solid #8ca88e;border-radius:12px;background:#fff;box-shadow:0 8px 28px rgba(29,57,42,.22);color:#244638}.workbench-update-notice[hidden]{display:none}.workbench-update-notice span{line-height:1.5}.workbench-update-notice button{flex:0 0 auto;min-height:40px;padding:8px 13px}@media(max-width:700px){.workbench-update-notice{left:10px;right:10px;bottom:82px;max-width:none;align-items:flex-start}.workbench-update-notice button{min-height:44px}.workbench-release-badge{font-size:10px}}

.module-panel{margin:4px 0 28px}.module-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.module-tile{min-height:150px;text-align:left;padding:18px;border:1px solid var(--line);border-radius:14px;background:#fff;display:flex;flex-direction:column;align-items:flex-start;transition:transform .15s,box-shadow .15s}.module-tile:hover{transform:translateY(-2px);box-shadow:0 8px 24px #173d3514}.module-tile strong{font-size:16px;margin:9px 0 6px}.module-tile small{font-size:12px;line-height:1.7;color:var(--muted);min-height:40px}.module-tile em{font-size:11px;font-style:normal;color:#35624d;margin-top:auto}.module-icon{font-size:22px;color:#6c886d}.module-main{background:#e7efe3;border-color:#d7e5d1}.module-points{background:#f3eddb;border-color:#eadfb9}.module-soon{background:#f5f6f1}@media(max-width:900px){.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.module-panel{margin-bottom:20px}.module-grid{grid-template-columns:1fr 1fr;gap:8px}.module-tile{min-height:145px;padding:14px}.module-tile strong{font-size:14px}.module-tile small{font-size:11px}}

.module-tile .module-quote{font-family:"Songti SC","STSong",serif;font-size:14px;line-height:1.9;color:#526b52;min-height:44px}@media(max-width:700px){.module-tile .module-quote{font-size:13px}}

.point-ranking-head,.point-ranking li{display:grid;grid-template-columns:minmax(0,2fr) .7fr .7fr 1fr;align-items:center;gap:10px}.point-ranking-head{padding:8px 14px;color:var(--muted);font-size:11px}.point-ranking li{display:grid}.point-ranking li>strong{text-align:right}.point-ranking-head span:nth-child(n+2){text-align:right}@media(max-width:700px){.point-ranking-head,.point-ranking li{grid-template-columns:minmax(0,1.7fr) .6fr .6fr .9fr;gap:5px}.point-ranking li{padding:12px 8px}}
.domain-section{grid-column:1/-1;margin:4px 0 22px}.domain-heading{display:flex;align-items:center;gap:12px;padding:12px 4px;border-bottom:1px solid var(--line);margin-bottom:14px}.domain-heading h3{font-size:17px;margin:0}.domain-heading span{font-size:12px;color:var(--muted)}.domain-picker{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:11px}.domain-picker select{width:auto;max-width:95px;padding:4px 20px 4px 6px;border:0;background:#f2f5ef;font-size:11px}
.chat-image-picker{margin-top:12px}.chat-image-picker>strong{display:block;font-size:12px;margin-bottom:8px}.chat-image-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.chat-image-option{padding:4px;border:2px solid #dfe6d9;border-radius:9px;background:#f4f7f1;text-align:left}.chat-image-option.selected{border-color:#2f8058;box-shadow:0 0 0 2px #cfe5d4}.chat-image-option img{display:block;width:100%;height:110px;object-fit:cover;border-radius:5px;background:#e8eee5}.chat-image-option span{display:block;padding:5px 2px 2px;font-size:10px;color:#637568}.chat-image-option:focus-visible{outline:3px solid #d4aa55}@media(max-width:700px){.chat-image-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.chat-image-option img{height:88px}}
.subcategory-group{margin:0 0 18px}.subcategory-heading{display:flex;gap:9px;align-items:center;color:#526d5b;font-size:13px;padding:8px 4px}.subcategory-heading span{font-size:11px;color:var(--muted)}
.home-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:24px}.home-category-tile{text-align:left;min-width:0;padding:20px;border:1px solid var(--line);border-radius:12px;background:white;display:flex;flex-direction:column;gap:9px}.home-category-tile strong{font-size:16px}.home-category-tile b{font-size:29px;font-weight:500}.home-category-tile small,.home-category-tile span{color:var(--muted);font-size:12px}.home-category-tile:nth-child(1){background:#e7efe3}.home-category-tile:nth-child(2){background:#f5efe1}.home-category-tile:nth-child(3){background:#eaf0f4}@media(max-width:700px){.home-category-grid{gap:7px}.home-category-tile{padding:12px 9px}.home-category-tile strong{font-size:13px}.home-category-tile small,.home-category-tile span{font-size:10px}.home-category-tile b{font-size:24px}}
.department-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:24px}.department-grid button{white-space:normal;text-align:left;min-height:64px;background:#fff}#accounts-error{font-size:12px;color:#64775d}#invite-url{word-break:break-all}#accounts-dialog .point-surface{padding:14px}.domain-picker{flex-wrap:wrap;min-width:0;overflow-wrap:anywhere}.domain-picker>span{min-width:0}@media(max-width:700px){.department-grid{grid-template-columns:1fr}.header-actions{max-width:145px}.header-actions .outline{margin:0;font-size:11px}}

/* Monthly calendar and agenda */
.calendar-workspace{grid-column:1/-1;min-width:0;width:100%}.calendar-controls,.calendar-controls>div,.calendar-summary{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.calendar-controls{justify-content:space-between;margin-bottom:16px}.calendar-controls input{width:auto;min-width:0;padding:9px}.calendar-controls button,.calendar-summary button{padding:8px 12px}.calendar-summary{background:#e8eee4;padding:14px;border-radius:12px;margin-bottom:18px}.calendar-summary b{font-size:22px;margin-left:8px}.calendar-summary>span{flex:1;white-space:nowrap}.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;background:#d9e1d6;border:1px solid #d9e1d6;border-radius:12px;overflow:hidden}.calendar-weekdays{display:contents}.calendar-weekdays>span{text-align:center;background:#edf1e9;padding:10px}.calendar-cell{min-width:0;min-height:120px;border:0!important;border-radius:0!important;padding:9px!important;background:#fff;text-align:left;display:flex;flex-direction:column;align-items:stretch;gap:4px;color:inherit}.calendar-cell.outside{background:#f3f4ef;color:#869181}.calendar-cell.is-today .calendar-number{color:#226348;font-weight:800}.calendar-cell.is-selected{box-shadow:inset 0 0 0 2px #365b47;background:#f0f5ea}.calendar-number{display:flex;justify-content:space-between;gap:3px}.calendar-number small,.calendar-cell-count{font-size:11px}.calendar-cell-items{display:flex;flex-direction:column;gap:3px;min-width:0}.calendar-chip{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:3px;background:#e2eddf;border-radius:4px}.calendar-chip.task,.calendar-task-tag{background:#e2edf7;color:#315d82}.calendar-muted{opacity:.6;text-decoration:line-through}.calendar-dots{display:none}.calendar-agenda,.calendar-month-list,#calendar-undated-list{margin-top:20px;background:#fff;border:1px solid #dde3d9;border-radius:12px;padding:18px}.calendar-entry{display:flex;gap:12px;justify-content:space-between;align-items:flex-start;padding:14px 0;border-bottom:1px solid #edf0e9;min-width:0}.calendar-entry>div:first-child{flex:1;min-width:0;overflow-wrap:anywhere}.calendar-entry strong{display:block;margin-top:8px}.calendar-entry p{margin:5px 0;color:#6b7c6c;font-size:13px;white-space:pre-wrap}.calendar-entry button{font-size:13px;white-space:nowrap}.calendar-workspace summary{cursor:pointer;font-weight:700}.calendar-month-row{display:flex;gap:16px;align-items:flex-start}.calendar-month-row>button{margin-top:18px;font-size:12px;white-space:nowrap}.calendar-month-row>.calendar-entry{flex:1}.calendar-undated-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #edf0e9}.calendar-undated-row span{min-width:0;overflow-wrap:anywhere}.calendar-undated-row button{white-space:nowrap}
@media(max-width:600px){.calendar-controls{gap:8px}.calendar-controls>div{gap:4px;width:100%;justify-content:space-between}.calendar-controls input{font-size:14px;width:130px}.calendar-controls button{font-size:13px;padding:7px}.calendar-summary{display:grid;grid-template-columns:1fr 1fr;font-size:12px;gap:9px;padding:12px}.calendar-summary b{font-size:18px}.calendar-summary button{font-size:12px}.calendar-cell{min-height:67px;padding:5px!important;gap:4px}.calendar-number{font-size:13px}.calendar-number small{font-size:9px}.calendar-cell-items{display:none}.calendar-cell-count{font-size:10px}.calendar-dots{display:flex;gap:3px;flex-wrap:wrap}.calendar-dots i{width:5px;height:5px;border-radius:50%;background:#52784b}.calendar-dots i.task{background:#4d88b7}.calendar-agenda,.calendar-month-list,#calendar-undated-list{padding:12px}.calendar-entry{flex-direction:column;gap:4px}.calendar-month-row{gap:8px}.calendar-month-row>button{padding:6px;font-size:11px}.calendar-undated-row{font-size:13px}.calendar-undated-row button{font-size:12px;padding:6px}}

/* Execution first: compact navigation and bounded lists. */
main>header{padding-bottom:12px;margin-bottom:14px}main>header h1{font-size:24px;margin:8px 0}main>header>div>p{font-size:12px;margin:4px 0;line-height:1.6}#focus-panel{margin:0 0 14px}.focus-item{padding:12px;min-height:0}.focus-item strong{font-size:13px;line-height:1.5}.focus-item small{font-size:11px}#metrics{margin:10px 0 14px}#metrics .metric{padding:12px;min-height:0}#metrics .metric strong{font-size:25px;margin:4px 0}#metrics .metric small{font-size:10px}.toolbar{margin:12px 0;padding:10px 0}.workspace-tools{margin:22px 0;background:#f0f3ec;border:1px solid var(--line);border-radius:12px;padding:14px}.workspace-tools>summary{cursor:pointer;font-size:14px;font-weight:600}.workspace-tools[open]>section{margin-top:18px}.inbox-tools,.inbox-pages{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.inbox-tools label{font-size:12px;min-width:120px}.inbox-tools input,.inbox-tools select{padding:8px}.inbox-tools span{font-size:12px}.inbox-pages{grid-column:1/-1;justify-content:center;align-items:center;padding:18px}.inbox-pages button{padding:10px 16px;border:1px solid var(--line);border-radius:8px}.inbox-pages button:disabled{opacity:.35}.cards>.card>p:not(.next):not(.gap):not(.conversation){display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.cards .requirements-preview,.cards .snapshot{display:none!important}.cards .card{padding:18px;gap:0}.cards .card .conversation{margin:6px 0;font-size:10px}.cards .card h3{font-size:16px;margin:6px 0 10px}.cards .card .card-footer{flex-wrap:wrap;gap:10px}.cards .card .image-thumbnails img{height:65px}.cards .card .image-thumbnails span{font-size:10px;max-height:38px;overflow:hidden}.cards .card .gallery-title{margin-bottom:6px}.cards .card .image-gallery{margin:8px 0}.cards .card .detail-button{margin:0;padding:7px 0}.cards .card .image-missing{font-size:10px!important;padding:5px}.more-actions{display:grid;gap:10px}.more-actions button{padding:14px;text-align:left;background:#edf2e8;border-radius:8px}#quick-dialog{max-width:540px}#quick-fields label{display:block;margin:12px 0}#quick-error{color:#a34432;font-size:13px}.hint.wide{font-size:12px;line-height:1.7}#sync-info{max-height:70px;overflow:auto;font-size:10px}
@media(max-width:700px){main>header{display:block;margin-bottom:8px}main>header h1{font-size:21px;margin:7px 0}main>header>div>p{display:none}.header-actions{max-width:none;justify-content:flex-start;margin-top:8px}.header-actions .outline{padding:5px 8px;font-size:10px}.focus-grid{grid-template-columns:1fr;gap:6px}.focus-item{display:grid;grid-template-columns:1fr auto;align-items:center;padding:9px 10px;gap:3px}.focus-item small{grid-column:1}.focus-item strong{grid-column:1;font-size:12px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.focus-item button{grid-column:2;grid-row:1/3;font-size:11px;padding:6px}.focus-item.chosen{display:block;text-align:left}.focus-item.chosen strong{display:block}.focus-item.chosen small{display:block}#focus-panel .section-title{margin:8px 0}#metrics{gap:6px;grid-template-columns:repeat(4,minmax(0,1fr))}#metrics .metric{padding:8px 5px;border-radius:8px}#metrics .metric span{font-size:10px}#metrics .metric strong{font-size:22px}#metrics .metric small{display:none}.toolbar{display:block}.toolbar input#search{width:100%;margin-top:9px}.tabs{gap:2px;flex-wrap:wrap}.tabs button{font-size:11px;padding:6px 8px}.mobile-nav{justify-content:space-around}.mobile-nav button{flex:1;min-width:0}.inbox-tools{gap:8px;align-items:center}.inbox-tools label{flex:1;min-width:110px}.cards .card{padding:14px}.cards .card .card-footer button{font-size:12px}.cards .card h3{font-size:15px}.header-logo{height:21px}#quick-dialog .dialog-foot{gap:10px;flex-wrap:wrap}}
@media(max-width:700px){.workspace-tools{margin:8px 0;padding:9px 12px}body[data-current-view="home"] #view-help p{margin:4px 0;font-size:11px}body[data-current-view="home"] main>.section-title{margin:10px 0}}

/* Inbox triage: show the smallest useful decision first. */
.inbox-priority-guide{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 16px;padding:10px 12px;background:#f0f4eb;border:1px solid #dce5d6;border-radius:9px;font-size:11px;color:#667663}.inbox-priority-guide strong{color:#275640}.inbox-priority-guide span{padding-left:8px;border-left:1px solid #d5dfd1}.inbox-group{grid-column:1/-1;margin:4px 0 10px}.inbox-group-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0 9px;padding:10px 12px;border-left:3px solid #527a5d;background:#f0f4eb;border-radius:7px}.inbox-group-heading h3{font-size:14px;margin:0;color:#315b45}.inbox-group-heading h3 small{display:block;font-size:10px;font-weight:400;color:#7b8878;margin-top:3px}.inbox-group-heading>span{font-size:11px;color:#74846e}.inbox-group-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.inbox-card{min-width:0}.inbox-group-waiting .inbox-group-heading{border-left-color:#b48745;background:#faf5e9}.inbox-group-waiting .inbox-group-heading h3{color:#795d2f}.inbox-group-补资料 .inbox-group-heading{border-left-color:#9aa59a;background:#f2f3ef}.inbox-group-补资料 .inbox-group-heading h3{color:#687266}.inbox-card h3{margin-top:11px}.inbox-card-actions{display:flex;gap:8px;align-items:center}.inbox-card-actions .danger-text{color:#a44d3e;background:#fff1ed}
@media(max-width:700px){.inbox-priority-guide{display:grid;gap:5px;margin:8px 0 12px;padding:9px 10px}.inbox-priority-guide span{padding-left:0;border-left:0}.inbox-group-cards{grid-template-columns:1fr;gap:9px}.inbox-group-heading{margin:8px 0 6px;padding:9px 10px}.inbox-group-heading h3{font-size:13px}.inbox-group-heading h3 small{font-size:9px}.inbox-card{padding:14px!important}}

/* Date calendar stays inside the viewport instead of invoking Android UI. */
.workbench-date-field{display:block;position:relative;min-width:0;width:100%}
.workbench-date-field input[type=date]{position:absolute!important;opacity:0;width:1px!important;height:1px!important;padding:0!important;border:0!important;pointer-events:none}
.workbench-date-trigger{display:block;width:100%;min-height:44px;text-align:left;border:1px solid #cbd5cb;border-radius:8px;padding:12px;background:#fff;font-variant-numeric:tabular-nums}
.workbench-date-trigger::after{content:'▦';float:right;color:var(--green)}
dialog.workbench-date-picker{width:calc(100% - 24px);max-width:360px;max-height:calc(100dvh - 24px);margin:auto;padding:16px;border:0;border-radius:16px;overflow:auto;background:#fff;color:#253b39;box-shadow:0 16px 64px #0003}
.workbench-date-picker::backdrop{background:#142a2980}
.date-picker-heading,.date-picker-month{display:flex;align-items:center;justify-content:space-between;gap:8px}
.date-picker-heading h2{font-size:18px;margin:0}.date-picker-heading button{font-size:28px;min-width:44px;min-height:44px}
.date-picker-month{margin:8px 0}.date-picker-month button{font-size:28px;min-width:44px;min-height:44px}.date-picker-month strong{white-space:nowrap;font-size:17px}
.date-picker-weekdays,.date-picker-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;text-align:center}
.date-picker-weekdays{font-size:13px;color:#77837c;margin-bottom:4px}.date-picker-weekdays span{padding:6px 0}
.date-picker-days button{min-width:0;width:100%;height:42px;padding:0;border-radius:8px;font-size:16px}
.date-picker-days button.is-today{box-shadow:inset 0 0 0 1px #a6bcb0}.date-picker-days button.is-selected{background:var(--green);color:#fff;font-weight:700}
.date-picker-days button:disabled{cursor:default;color:#aab3ac;opacity:.5}
#date-picker-selected{font-size:13px;color:#77837c;min-height:20px;margin:10px 0}
.date-picker-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.date-picker-actions button{min-height:44px;padding:10px 14px;border-radius:8px}.date-picker-actions .primary{margin-left:auto}

/* Keep reported and closed work available without occupying execution cards. */
.execution-summary{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap}.execution-summary>span{flex-basis:100%}.review-queue{grid-column:1/-1;border:1px solid var(--line);border-radius:12px;background:#f0f3ec;padding:12px 16px;min-width:0;scroll-margin-top:16px}.review-queue>summary{cursor:pointer;font-size:14px;font-weight:600}.review-queue>summary>span{font-size:12px;font-weight:400;color:var(--muted);margin-left:10px}.review-rows{margin-top:10px}.review-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border-top:1px solid var(--line)}.review-row-main{min-width:0;flex:1}.review-row-main strong{display:block;font-size:14px;line-height:1.6;overflow-wrap:anywhere}.review-row-main small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--muted);font-size:12px;overflow-wrap:anywhere}.review-row-main .tag{margin-bottom:5px}.review-row-actions{display:flex;gap:8px;flex-wrap:wrap}.review-row-actions button{font-size:12px;padding:7px 9px}.review-queue[open]>summary>span{font-size:0}.review-queue[open]>summary>span:after{content:'点击收起';font-size:12px}
@media(max-width:700px){.review-queue{padding:12px}.review-row{align-items:stretch;flex-direction:column;gap:6px}.review-row-actions{justify-content:flex-end}.execution-summary{gap:6px 10px}}

.quick-workflow{border:1px solid var(--line);background:#f3f6f0;border-radius:12px;padding:12px;margin-bottom:14px}.workflow-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px}.workflow-controls>*{min-width:0}.workflow-controls input,.workflow-controls select{width:100%;min-width:0}.workflow-steps{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0;font-size:11px;line-height:1.6}.workflow-steps button{padding:7px 10px;min-height:36px;background:#e5ebe0;border-radius:5px;font-size:inherit;line-height:1.6}.workflow-steps button:hover{box-shadow:inset 0 0 0 1px #1b5742}.workflow-steps .current{background:#1b5742;color:white}.workflow-optional{font-size:12px;margin-top:10px}.workflow-optional summary{cursor:pointer}.workflow-badge{font-size:12px;color:#1b5742;background:#eef4e9;padding:7px;border-radius:6px}.workflow-record{font-size:12px;border-left:3px solid #b7cbb3;padding:7px 10px;margin:8px 0;overflow-wrap:anywhere}.workflow-record small{display:block;color:var(--muted);margin-top:4px}#quick-fields .quick-workflow label{margin:8px 0}.quick-workflow .hint{font-size:11px;margin:0 0 8px}
@media(max-width:430px){.workflow-controls{grid-template-columns:1fr}.workflow-steps{font-size:10px}.quick-workflow{padding:10px}}

.image-pool-empty{grid-column:1/-1;font-size:12px;line-height:1.7;color:var(--muted);background:#f0f3ec;border-radius:9px;padding:10px 12px}.image-pool-empty p{margin:4px 0}#attach-chat-image:disabled{opacity:.45;cursor:not-allowed}
.image-thumbnails,.chat-image-grid{grid-template-columns:repeat(auto-fill,88px);gap:7px}.image-thumbnails img{height:64px}.cards .card .image-thumbnails img{height:56px}.image-thumbnails span{padding:4px 5px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.chat-image-option img{height:64px;object-fit:contain}.chat-image-grid>.hint{grid-column:1/-1}.chat-image-option span{padding:3px 1px 1px}#image-preview{max-height:160px}
@media(max-width:700px){.image-thumbnails,.chat-image-grid{grid-template-columns:repeat(auto-fill,72px)}.image-thumbnails img,.chat-image-option img{height:56px}.cards .card .image-thumbnails img{height:52px}}

.cards .card .next-action{color:#174f87;background:#eef5fc;border-left:3px solid #3b82bb;padding:10px 12px;border-radius:0 7px 7px 0;font-weight:600;line-height:1.75;overflow-wrap:anywhere}

/* Pending opportunity review: show the business-event context before one-click linking. */
.sales-review-lead{align-items:flex-start}
.sales-review-lead>div:first-child{min-width:0;flex:1}
.sales-review-lead>div:last-child{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.sales-review-context{margin:10px 0 0;padding:8px 10px;background:#f4f7f1;border:1px solid #dce6d8;border-radius:8px;color:#566b5d}
.sales-review-context summary{cursor:pointer;font-size:12px;font-weight:600;color:#315d43}
.sales-review-context-range{margin:6px 0;color:#829080;font-size:11px}
.sales-review-context-row{display:grid;grid-template-columns:72px 120px minmax(0,1fr);gap:8px;padding:6px 0;border-top:1px solid #e2e9df;font-size:11px;line-height:1.6}
.sales-review-context-row time{color:#829080;white-space:nowrap}
.sales-review-context-row strong{overflow-wrap:anywhere}
.sales-review-context-row span{overflow-wrap:anywhere;white-space:pre-wrap}
.sales-review-matches{margin-top:7px;color:#6b7d6d;font-size:11px;line-height:1.6}
.sales-review-match{display:inline-block;margin:3px 5px 0 0;padding:2px 6px;border-radius:4px;background:#e8f0e4;color:#315d43}
@media(max-width:700px){.sales-review-context-row{grid-template-columns:62px 90px minmax(0,1fr);gap:5px}.sales-review-lead>div:last-child{justify-content:flex-start}}

.importance-badge{padding:2px 7px;border-radius:5px;font-weight:600}.importance-badge.high{color:#8b3c19;background:#fff0df}.importance-badge.low{color:#647260;background:#edf1e9}.task-sort-hint{font-size:11px;line-height:1.7}
/* Company owner management overview. */
:is(#management-panel,.dashboard-standard){margin:2px 0 22px;min-width:0}.mg-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:4px 0 16px}.mg-heading h2{font-size:26px;letter-spacing:-.5px;margin:6px 0}.mg-heading p{font-size:12px;color:var(--muted);margin:8px 0}.mg-heading label{font-size:11px;max-width:170px;flex-shrink:0}.mg-heading input{margin-top:6px;padding:8px;min-width:0;width:100%}.mg-direction{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;background:#e7eee2;border:1px solid #d1ddca;border-left:4px solid #456c4e;border-radius:10px}.mg-direction strong{font-size:16px;line-height:1.6}.mg-direction p{font-size:12px;line-height:1.7;color:#60705e;margin:5px 0;white-space:pre-wrap;overflow-wrap:anywhere}.mg-direction button{flex-shrink:0;font-size:12px}.mg-nav{display:flex;flex-wrap:wrap;gap:6px;margin:15px 0}.mg-nav button{border:1px solid #d9e2d3;border-radius:18px;padding:8px 12px;font-size:12px;background:#fff}.mg-nav button.active{background:#244a3c;color:white;border-color:#244a3c}.mg-summary{display:flex;gap:12px 24px;flex-wrap:wrap;padding:12px 0 16px;border-bottom:1px solid var(--line);font-size:12px;color:#6c7a67}.mg-summary b{font-size:18px;color:#244a3c;margin-left:6px}.mg-section{margin:18px 0}.mg-section>.section-title{margin-bottom:8px}.mg-section h3{margin:4px 0;font-size:17px}.mg-section>.hint{margin:5px 0 12px}.mg-buttons{display:flex;gap:12px;flex-wrap:wrap}.mg-buttons button{font-size:12px}.mg-goals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.mg-goal{padding:16px;background:#fff;border:1px solid #dce4d6;border-radius:12px;min-width:0}.mg-card-title{display:flex;justify-content:space-between;gap:9px;color:#6d7e67;font-size:11px}.mg-card-title button{color:#315d43;flex-shrink:0;text-decoration:underline}.mg-goal h3,.mg-item h3{font-size:15px;line-height:1.6;margin:10px 0 7px;overflow-wrap:anywhere}.mg-data-status{font-size:10px;color:#7b816a}.mg-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:15px 0}.mg-values small{display:block;color:#7a8573;font-size:10px;line-height:1.6}.mg-values strong{display:block;font-size:18px;line-height:1.6;overflow-wrap:anywhere}.mg-gap{font-size:12px;line-height:1.7;background:#edf3e7;border-radius:6px;padding:8px;color:#496240}.mg-goal details,.mg-item details,.mg-review{font-size:12px;line-height:1.8;color:#60715c}.mg-goal details p,.mg-item p{white-space:pre-wrap;overflow-wrap:anywhere}.mg-goal>button{font-size:12px;margin-top:10px}.mg-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mg-item{border:1px solid #dde4d8;background:#fff;border-radius:12px;padding:16px;min-width:0}.mg-item>p{font-size:12px;line-height:1.7;color:#687661;margin:7px 0}.mg-item>small{font-size:11px;line-height:1.7;color:#7a8673}.mg-item .mg-next{color:#174f87;background:#eef5fc;padding:8px;border-radius:5px}.mg-links{display:flex;flex-direction:column;gap:8px}.mg-links button{text-align:left;padding:8px;border:1px solid #dfe6d9;border-radius:6px;color:#315d43;overflow-wrap:anywhere}.mg-empty{grid-column:1/-1;padding:18px;border:1px dashed #ccd8c3;background:#f6f8f2;border-radius:10px;font-size:12px;color:#718169;line-height:1.8}.mg-review,.mg-extra{border-top:1px solid var(--line);padding-top:12px;margin:14px 0}.mg-review summary,.mg-extra summary{cursor:pointer;font-size:12px;line-height:1.9}.mg-extra[open]>.mg-goals,.mg-extra[open]>.mg-items,.mg-review>.mg-items{margin-top:12px}.mg-history p{overflow-wrap:anywhere;white-space:pre-wrap;font-size:11px}.mg-footnote{font-size:10px;line-height:1.7;color:#85907c;margin-top:12px}#management-dialog{max-width:780px}#management-fields label{min-width:0}#management-fields select[multiple]{min-height:150px;max-width:100%;font-size:12px}#management-fields select[multiple] option{white-space:normal;padding:5px}#management-error{color:#a34432;font-size:12px;line-height:1.8}.mg-loading{padding:20px;background:#fff;border:1px solid var(--line);border-radius:12px}
@media(max-width:1100px){.mg-goals{grid-template-columns:repeat(2,minmax(0,1fr))}.mg-heading h2{font-size:23px}}
@media(max-width:700px){.mg-heading{align-items:flex-start;gap:10px;flex-wrap:wrap}.mg-heading h2{font-size:22px}.mg-heading label{width:150px;max-width:100%;flex-shrink:1}.mg-direction{align-items:flex-start;flex-direction:column;padding:14px;gap:10px}.mg-goals,.mg-items{grid-template-columns:1fr}.mg-nav{gap:5px}.mg-nav button{font-size:11px;padding:8px 10px}.mg-summary{gap:10px 18px}.mg-summary span{font-size:11px}.mg-goal,.mg-item{padding:14px}.mg-buttons{gap:10px}.mg-values strong{font-size:20px}#management-dialog .form-grid{grid-template-columns:1fr}.mg-heading p{font-size:11px}.mg-review{margin-bottom:15px}}

/* Company first: operating results and manually confirmed risk precede personal execution. */
.mg-health{margin:12px 0 18px}.mg-health>.section-title span{font-size:11px;color:var(--muted)}.mg-health-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.mg-health-card{background:#fff;border:1px solid #dce4d6;border-top:3px solid #466a50;border-radius:10px;padding:12px;min-width:0}.mg-health-card h3{font-size:14px;margin:0 0 9px}.mg-health-row{display:block;width:100%;text-align:left;padding:9px 0;border-top:1px solid #edf0e9;overflow-wrap:anywhere;white-space:normal}.mg-health-row b,.mg-health-row span,.mg-health-row small{display:block;line-height:1.6}.mg-health-row b{font-size:13px}.mg-health-row span{font-size:12px;color:#275540;margin:4px 0}.mg-health-row small{font-size:10px;color:#66765e}.mg-unset span{color:#7c8572}.mg-risk{border:1px solid #dce4d6;border-radius:10px;padding:10px 14px;margin:10px 0;background:#f3f5ee}.mg-risk .section-title{margin:0}.mg-risk h3{font-size:14px;margin:0}.mg-risk .hint{font-size:11px;margin:6px 0 0}.mg-risk.has-risk{background:#fff3ed;border-color:#d99579;border-left:4px solid #b15332}.mg-risk-row{display:flex;flex-direction:column;gap:5px;text-align:left;width:100%;padding:10px 0;color:#873c23;white-space:normal;overflow-wrap:anywhere}.mg-risk-row span,.mg-risk-row small{font-size:12px}.mg-problems,.mg-owner-decisions,.mg-support{margin:20px 0}.mg-problems h3,.mg-owner-decisions h3,.mg-support h3{font-size:17px}.mg-support{border-top:1px solid var(--line);padding-top:12px}.mg-support table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:12px}.mg-support th,.mg-support td{padding:10px 6px;text-align:left;border-bottom:1px solid #dde4d6;overflow-wrap:anywhere}.mg-support td button{color:#315d43;text-align:left;white-space:normal}.mg-support-row{display:block;width:100%;text-align:left;padding:12px;background:#fff;border:1px solid #dce4d6;border-radius:8px;margin:8px 0;white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.7}
@media(max-width:1100px){.mg-health-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.mg-health-grid{gap:7px}.mg-health-card{padding:9px}.mg-health-card h3{font-size:12px}.mg-health-row b{font-size:12px}.mg-health-row span{font-size:11px}.mg-health .section-title{flex-wrap:wrap;gap:5px}.mg-risk .section-title{flex-wrap:wrap;gap:6px}.mg-health>.hint{font-size:10px}.mg-support th,.mg-support td{font-size:11px;padding:8px 4px}.mg-problems .section-title{flex-wrap:wrap}.mg-problems>.hint{font-size:11px}}
/* Amoeba overview: reviewed actuals, comparable periods, and visible data gaps. */
aside .brand img{width:192px;max-width:100%;filter:brightness(0) invert(1);opacity:1}.brand{padding-top:4px}.brand span{color:#c5d8c8;letter-spacing:.12em}
.mg-heading{margin-bottom:18px}.mg-heading h2{letter-spacing:-.04em}.mg-heading p{color:#527060;font-size:13px}.mg-dashboard{padding:22px;background:#ebefe8;border:1px solid #dce3d8;border-radius:18px;margin:18px 0 24px}.mg-dashboard-title{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 18px}.mg-dashboard-title .eyebrow{font-size:9px;letter-spacing:.17em;color:#74836f}.mg-dashboard-title h3{font-size:21px;margin:7px 0 0;letter-spacing:-.03em}.mg-dashboard-title h3 span{font-size:12px;font-weight:400;margin-left:10px;color:#6c7d65}.mg-coverage{font-size:10px;white-space:nowrap;padding:7px 11px;border:1px solid #d0dacc;border-radius:30px;color:#536b4c;background:#f4f6f0}.mg-kpi-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.mg-kpi{--kpi:#426d52;display:flex;flex-direction:column;text-align:left;width:100%;min-width:0;padding:20px;border:1px solid #dde4d8;border-radius:13px;background:#fff;color:#243d31;white-space:normal;box-shadow:0 3px 12px #1b332604;transition:border-color .15s,transform .15s}.mg-kpi:hover{border-color:#9bb095;transform:translateY(-2px)}.mg-kpi:focus-visible{outline:3px solid #8bb3d3;outline-offset:3px}.mg-kpi-top{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:600}.mg-kpi-icon{width:34px;height:34px;flex-shrink:0;border-radius:10px;background:#edf3e8;color:var(--kpi);display:grid;place-items:center}.mg-kpi-icon svg{width:23px;height:23px}.mg-kpi-edit{margin-left:auto;font-size:10px;color:#74856d;font-weight:400}.mg-kpi-number{display:flex;align-items:baseline;gap:8px;margin:18px 0 5px;font-size:36px;line-height:1.1;font-weight:650;font-variant-numeric:tabular-nums;letter-spacing:-.04em;overflow-wrap:anywhere;flex-wrap:wrap}.mg-kpi-number small{font-size:11px;letter-spacing:0;font-weight:400;color:#7d8977}.mg-kpi-caption{display:block;font-size:10px;color:#778571;line-height:1.6;min-height:16px;overflow-wrap:anywhere}.mg-kpi-mom{display:flex;align-items:baseline;gap:5px;flex-wrap:wrap;font-size:10px;color:#7b8874;margin:13px 0}.mg-kpi-mom b{font-size:13px;color:#65745f;font-variant-numeric:tabular-nums}.mg-kpi-mom small{font-size:10px;margin-left:auto}.mg-kpi-mom.is-good b{color:#2b7555}.mg-kpi-mom.is-alert b{color:#ae5c36}.mg-kpi-divider{height:1px;background:#edf0e8;width:100%;margin:0 0 13px}.mg-kpi-target{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:10px;color:#7b8874}.mg-kpi-target b{font-weight:500;color:#384f31}.mg-chart{display:grid;gap:6px;margin:12px 0}.mg-chart>span{display:flex;align-items:center;gap:8px}.mg-chart i{font-style:normal;font-size:9px;color:#829079;flex-shrink:0}.mg-bar-track{height:5px;flex:1;border-radius:3px;background:#f0f3ed;overflow:hidden}.mg-bar-track em{height:100%;display:block;background:var(--kpi);border-radius:3px}.mg-bar-plan em{background:#becbb5}.mg-kpi-bottom,.mg-kpi-note{display:block;font-size:9px;line-height:1.6;color:#83907c;overflow-wrap:anywhere}.mg-kpi-note{margin-top:6px;color:#5b7152}.mg-kpi-empty .mg-kpi-number{color:#aab6a4}.mg-kpi-feature{--kpi:#adc994;color:#fff;background:radial-gradient(ellipse at top right,#345c47,transparent 70%),#1e3e31;border-color:#1e3e31}.mg-kpi-feature .mg-kpi-icon{background:#ffffff12;color:#c8dfb9}.mg-kpi-feature .mg-kpi-number{color:#fff}.mg-kpi-feature .mg-kpi-edit,.mg-kpi-feature .mg-kpi-number small,.mg-kpi-feature .mg-kpi-caption,.mg-kpi-feature .mg-kpi-mom,.mg-kpi-feature .mg-kpi-mom b,.mg-kpi-feature .mg-kpi-target,.mg-kpi-feature .mg-kpi-target b,.mg-kpi-feature .mg-kpi-bottom,.mg-kpi-feature .mg-kpi-note,.mg-kpi-feature .mg-chart i{color:#d0dec8}.mg-kpi-feature .mg-kpi-mom.is-alert b{color:#ffbf9a}.mg-kpi-feature .mg-kpi-divider{background:#ffffff20}.mg-kpi-feature .mg-bar-track{background:#ffffff12}.mg-kpi-feature .mg-bar-plan em{background:#6b8a70}.mg-more-metrics{margin-top:18px}.mg-more-metrics summary,.mg-unmapped summary{cursor:pointer;font-size:12px;color:#45623b;line-height:1.7}.mg-more-metrics summary span{font-size:10px;color:#839078;margin-left:8px}.mg-more-metrics[open] .mg-kpi-grid{margin-top:12px}.mg-dashboard-footnote{font-size:10px;color:#7a8871;line-height:1.8;margin:16px 0 0}.mg-dashboard-footnote>span{margin-right:4px}.mg-risk:not(.has-risk){background:transparent;border-style:dashed}.mg-risk:not(.has-risk) .hint{font-size:10px}
@media(min-width:1600px){.mg-kpi-number{font-size:42px}.mg-kpi{padding:24px}}
@media(max-width:1100px){.mg-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mg-dashboard-title{align-items:flex-start;flex-wrap:wrap}.mg-dashboard{padding:16px}.mg-kpi{padding:16px}}
@media(max-width:700px){.mg-dashboard{padding:12px;border-radius:13px;margin:14px 0 20px}.mg-dashboard-title{gap:9px;margin-bottom:12px}.mg-dashboard-title h3{font-size:19px}.mg-dashboard-title h3 span{display:block;margin:5px 0 0;font-size:11px}.mg-kpi-grid{grid-template-columns:1fr;gap:10px}.mg-kpi{padding:17px}.mg-kpi-number{font-size:36px;margin-top:14px}.mg-coverage{font-size:9px;padding:5px 8px}.mg-more-metrics summary span{display:block;margin:4px 0 0}.mg-heading p{font-size:12px;line-height:1.8}.mg-kpi-caption{font-size:11px}}

/* Keep the company motto centered independently of the action buttons. */
main>header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 16px}
main>header>div:first-child{display:contents}
main>header #day{grid-column:1;grid-row:1;min-width:0}
main>header h1{grid-column:1/-1;grid-row:2;text-align:center;margin:8px 0;min-width:0;overflow-wrap:anywhere}
main>header>div>p{grid-column:1/-1;grid-row:3;text-align:center}
main>header .header-actions{grid-column:2;grid-row:1;min-width:0}
@media(max-width:700px){main>header{grid-template-columns:minmax(0,1fr);gap:4px}main>header #day{grid-column:1;grid-row:1;text-align:center}main>header h1{grid-row:2}main>header .header-actions{grid-column:1;grid-row:3;justify-content:center;margin-top:4px}}

/* Enlarge the centered motto a further 30% from 36px / 31.5px. */
main>header h1{font-size:46.8px;line-height:1.35}
@media(max-width:700px){main>header h1{font-size:40.95px}}

/* Date follows the company brand on desktop; the same node returns to the mobile header. */
aside .brand span{margin-bottom:14px}
aside>#day{display:block;margin:0 0 26px;font-size:11px;letter-spacing:1px;line-height:1.7;color:#bbc9c0}

/* Keep MP and monthly estimate separate, with readable completion ratios. */
.mg-kpi-mom{margin:9px 0}.mg-kpi-mp{padding:0 0 12px;margin-bottom:10px;border-bottom:1px solid #edf0e8;align-items:baseline}.mg-kpi-mp>span:first-child{font-size:12px}.mg-kpi-mp b{font-size:14px;font-weight:650}.mg-kpi-feature .mg-kpi-mp{border-color:#ffffff20}

/* Match the company heading/subtitle hierarchy while keeping the enlarged motto. */
main>header>div>p.motto-subtitle{display:block;font-size:23.4px;line-height:1.65;font-weight:400;color:#6e8178;margin:5px auto 12px;max-width:100%;letter-spacing:.02em;text-wrap:balance;overflow-wrap:anywhere}
@media(max-width:700px){main>header>div>p.motto-subtitle{font-size:22.34px;line-height:1.65;margin:4px auto 10px;padding:0 4px}main>header .header-actions{grid-row:4}}

.mg-kpi-mom small.mg-kpi-baseline{flex-basis:100%;margin-left:0;line-height:1.6}

/* The group heading names the category; cards emphasize the party and project. */
.card-top>.tag{align-self:flex-start;flex-shrink:0}.task-card-context{flex:1;min-width:0;display:grid;gap:5px}.task-category{color:var(--muted);font-size:11px;overflow-wrap:anywhere}.task-party,.task-project{display:flex;gap:3px;align-items:baseline;font-size:15px;line-height:1.65;color:#294c3d;overflow-wrap:anywhere}.task-party>span,.task-project>span{flex-shrink:0;font-weight:600}.task-party strong,.task-project strong{font-weight:650;min-width:0;overflow-wrap:anywhere}.task-project{color:#385b49}@media(max-width:700px){.task-party,.task-project{font-size:15px}.task-card-context{gap:4px}}

/* Customer grades come only from a verified ERP snapshot. */
.task-party{flex-wrap:wrap;column-gap:6px}.customer-level{display:inline-flex;align-items:center;gap:5px;padding:2px 7px;border-radius:5px;font-size:12px;line-height:1.6;font-weight:650;color:#365d4a;background:#eaf2e7;max-width:100%;flex-wrap:wrap}.customer-level small{font-size:10px;font-weight:400;white-space:nowrap}.customer-level.level-A{background:#f6edcf;color:#795d18}.customer-level.level-B{background:#dceee2;color:#285e42}.customer-level.level-pending{background:#f2f1e9;color:#84794f}

/* Paste entry points share a preview dialog and the existing image upload. */
.card-image-actions{display:flex;margin:10px 0;gap:8px}.card-image-actions button{font-size:13px;padding:7px 12px;color:#265b48}.image-input-actions{display:flex;align-items:end;gap:12px;margin-top:14px}.image-input-actions label{flex:1;min-width:0;margin:0}.image-input-actions input{max-width:100%;box-sizing:border-box}.image-input-actions>button{flex-shrink:0;margin-bottom:0;min-height:44px}#image-paste-dialog{width:560px;max-width:calc(100vw - 28px);box-sizing:border-box}#image-paste-target{overflow-wrap:anywhere}.image-paste-zone{display:block;min-height:110px;border:2px dashed #8fa99b;border-radius:12px;padding:20px;box-sizing:border-box;background:#f3f7f1;color:#456151;text-align:center;cursor:text;outline:none}.image-paste-zone:empty::before{content:'点击这里，粘贴已复制的图片';pointer-events:none}.image-paste-zone:focus{border-color:#235a47;box-shadow:0 0 0 3px #e1ece3}#image-paste-preview{display:block;max-width:100%;max-height:280px;object-fit:contain;margin:14px auto;border-radius:8px}#image-paste-preview[hidden]{display:none}#image-paste-error{font-size:13px;color:#806027;line-height:1.7}#image-paste-dialog .dialog-foot{display:flex;gap:10px;flex-wrap:wrap}#image-paste-dialog button{white-space:normal}@media(max-width:700px){.image-input-actions{flex-wrap:wrap}.image-input-actions label{flex-basis:100%}.image-input-actions>button{width:100%}#image-paste-dialog{padding:18px}.image-paste-zone{padding:18px 12px;min-height:96px}#image-paste-dialog .dialog-foot button{flex:1;min-width:90px}}

#image-paste-dialog .dialog-foot button{font-size:14px;padding:12px 10px;line-height:1.5}

.image-drop-hint{padding:16px;border:2px dashed #9db3a3;border-radius:10px;background:#f3f7f1;color:#446653;font-size:13px;text-align:center;margin:12px 0}.image-drag-over{outline:3px dashed #347b58!important;outline-offset:-5px;background-color:#e9f3e9!important}.image-drag-over .image-drop-hint{border-color:#347b58;background:#e0efdf}

/* Graphic company dashboard: one actual, target ring, and comparable period bars. */
.mg-kpi{padding:18px;gap:0;align-self:start}.mg-kpi:hover{transform:none}.mg-kpi-open{display:block;width:100%;padding:0;border:0;background:none;color:inherit;text-align:left;white-space:normal;border-radius:8px}.mg-kpi-open:hover{background:none}.mg-kpi-open:focus-visible{outline:3px solid #8bb3d3;outline-offset:4px}.mg-kpi-main{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:16px 0}.mg-actual{min-width:0;flex:1}.mg-kpi-number{font-size:clamp(24px,2.3vw,34px);margin:0 0 7px;line-height:1.15;letter-spacing:-.045em}.mg-actual-unit{display:block;font-size:10px;line-height:1.6;color:#6c7d71}.mg-gauge{position:relative;display:block;width:88px;height:88px;flex:0 0 88px}.mg-gauge svg{width:100%;height:100%;overflow:visible}.mg-gauge circle{fill:none;stroke-width:7}.mg-gauge-track{stroke:#edf1ea}.mg-gauge-fill{stroke:var(--kpi);stroke-linecap:round}.mg-gauge>span{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}.mg-gauge b{font-size:14px;letter-spacing:-.03em;font-variant-numeric:tabular-nums}.mg-gauge small{font-size:9px;color:#738374}.mg-periods{display:grid;gap:10px;padding:13px 0;border-top:1px solid #edf0e8;border-bottom:1px solid #edf0e8}.mg-period-row{display:grid;grid-template-columns:54px minmax(20px,1fr) auto;align-items:center;gap:8px;font-size:10px;color:#7e8b7b}.mg-period-row>b{font-variant-numeric:tabular-nums;font-size:11px;font-weight:500;max-width:130px;overflow-wrap:anywhere}.mg-period-track{position:relative;display:block;height:8px;border-radius:3px;background:#f0f3ed}.mg-period-track>em{position:absolute;height:100%;border-radius:3px;background:#b9caba}.mg-period-track>i{position:absolute;height:12px;top:-2px;border-left:1px solid #bdc8b9}.mg-period-row.is-current{color:#355541}.mg-period-row.is-current em{background:var(--kpi)}.mg-change-chips{display:flex;gap:14px;flex-wrap:wrap;margin:12px 0 7px}.mg-change-chips .mg-kpi-mom{margin:0;gap:4px;display:inline-flex;font-size:10px}.mg-change-chips .mg-kpi-mom b{font-size:12px}.mg-change-chips .mg-kpi-mom small{display:none}.mg-kpi-details{margin-top:11px;border-top:1px solid #edf0e8;padding-top:10px}.mg-kpi-details summary{font-size:10px;color:#70826c;cursor:pointer;list-style-position:inside}.mg-kpi-details[open] summary{margin-bottom:12px}.mg-kpi-details .mg-kpi-mp{margin-top:10px}.mg-kpi-details .mg-kpi-caption{margin:7px 0}.mg-kpi-feature .mg-actual-unit,.mg-kpi-feature .mg-gauge small,.mg-kpi-feature .mg-kpi-details summary,.mg-kpi-feature .mg-period-row{color:#ccdccb}.mg-kpi-feature .mg-periods,.mg-kpi-feature .mg-kpi-details{border-color:#ffffff20}.mg-kpi-feature .mg-gauge-track{stroke:#ffffff15}.mg-kpi-feature .mg-period-track{background:#ffffff10}.mg-kpi-feature .mg-period-track>em{background:#6b8a70}.mg-kpi-feature .mg-period-row.is-current{color:#fff}.mg-kpi-feature .mg-period-row.is-current em{background:#adc994}.mg-kpi-feature .mg-kpi-mom.is-good b{color:#c5e5ae}.mg-kpi-empty .mg-gauge-fill{stroke:transparent}.mg-dashboard-footnote{max-width:1100px}
@media(max-width:700px){.mg-kpi{padding:15px}.mg-kpi-number{font-size:30px}.mg-gauge{width:82px;height:82px;flex-basis:82px}.mg-period-row{grid-template-columns:52px minmax(20px,1fr) auto;gap:7px}.mg-period-row>b{max-width:115px}.mg-kpi-main{margin:13px 0}.mg-kpi-caption{font-size:10px}}
@media(max-width:380px){.mg-kpi-number{font-size:22px;letter-spacing:-.04em}.mg-gauge{width:64px;height:64px;flex-basis:64px}.mg-gauge b{font-size:11px}.mg-gauge small{font-size:8px}.mg-gauge>span{gap:3px}.mg-kpi-main{gap:7px}}

.customer-followup{font-size:13px;line-height:1.7;color:#245e46;margin:2px 0;overflow-wrap:anywhere}.customer-followup small{font-size:10px;font-weight:400;color:#718274;margin-left:8px}.customer-followup.pending{color:#88652f}.customer-sales-tools{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:12px 0;padding:12px;background:#eef4eb;border-radius:10px}.customer-sales-tools label{margin:0;min-width:200px;font-size:12px}.customer-sales-tools span{font-size:11px;color:#6a7b65}.customer-sales-tools select{margin-top:5px;max-width:100%}.customer-sales-group{grid-column:1/-1;min-width:0}.customer-sales-heading{display:flex;justify-content:space-between;gap:10px;margin:8px 0 10px;padding:8px 12px;border-left:3px solid #5e8b68;background:#f0f5ed;font-size:13px;color:#376144}.customer-sales-heading span{font-size:11px}@media(max-width:700px){.customer-sales-tools label{width:100%;min-width:0}.customer-sales-tools{gap:8px}.customer-followup{font-size:13px}}

/* Plans precede actuals; change rates follow their historical amounts. */
.mg-kpi-plans{display:grid;gap:9px;margin-top:16px;padding:11px 0;border-top:1px solid #edf0e8;border-bottom:1px solid #edf0e8}.mg-kpi-plans .mg-kpi-target{align-items:baseline;font-size:10px;gap:5px}.mg-kpi-plans .mg-kpi-mp{padding:0;margin:0;border:0}.mg-kpi-plans .mg-kpi-mp>span:first-child{font-size:10px}.mg-kpi-plans .mg-kpi-target b{font-size:12px;font-weight:600}.mg-kpi-plans .mg-kpi-target>span{display:inline-flex;align-items:baseline;gap:4px;flex-wrap:wrap}.mg-period-value{display:flex;align-items:baseline;justify-content:flex-end;flex-wrap:wrap;gap:4px 8px;max-width:190px}.mg-period-value>b{font-variant-numeric:tabular-nums;font-size:11px;font-weight:500;overflow-wrap:anywhere}.mg-period-value .mg-kpi-mom{margin:0;display:inline-flex;gap:3px;font-size:9px}.mg-period-value .mg-kpi-mom b{font-size:10px}.mg-period-value .mg-kpi-mom small{display:none}.mg-kpi-bottom{margin-top:10px}.mg-kpi-feature .mg-kpi-plans{border-color:#ffffff20}
@media(max-width:700px){.mg-period-value{max-width:145px}.mg-kpi-plans{margin-top:13px}.mg-kpi-plans .mg-kpi-target b{font-size:11px}}
@media(max-width:380px){.mg-period-value{max-width:112px}.mg-kpi-plans .mg-kpi-target{font-size:9px}.mg-kpi-plans .mg-kpi-mp>span:first-child{font-size:9px}.mg-kpi-plans .mg-kpi-target b{font-size:10px}}

/* Clear reading order: plan table, primary actual, then full-width period bars. */
.mg-dashboard{background:#f0f3ed;padding:20px}.mg-kpi-grid{gap:16px;align-items:start}.mg-kpi{padding:20px;border-radius:16px;box-shadow:none}.mg-kpi-top{font-size:14px;gap:9px}.mg-kpi-icon{width:30px;height:30px;border-radius:9px}.mg-kpi-icon svg{width:20px;height:20px}.mg-kpi-edit{font-size:15px}.mg-plan-heading{display:flex;justify-content:space-between;font-size:10px;color:#7a897c;margin-bottom:3px}.mg-plan-heading small{font-size:9px;font-weight:400;margin-left:5px}.mg-kpi-plans{margin-top:14px;gap:8px;padding:10px 0 12px}.mg-kpi-plans .mg-kpi-target,.mg-kpi-plans .mg-kpi-mp>span:first-child{font-size:11px}.mg-kpi-plans .mg-kpi-target b{font-size:13px}.mg-kpi-plans .mg-kpi-target{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.mg-kpi-plans .mg-kpi-target>span:last-child{justify-content:flex-end}.mg-kpi-main{margin:20px 0}.mg-kpi-number{font-size:clamp(26px,2.6vw,37px);letter-spacing:-.045em;line-height:1.2}.mg-actual-unit{font-size:11px}.mg-gauge{width:76px;height:76px;flex-basis:76px}.mg-gauge b{font-size:12px}.mg-gauge small{font-size:8px}.mg-periods{gap:13px;padding:15px 0}.mg-period-row{grid-template-columns:auto minmax(0,1fr);gap:7px 10px;font-size:11px}.mg-period-row>span:first-child{grid-column:1;grid-row:1}.mg-period-value{grid-column:2;grid-row:1;max-width:none;gap:5px 8px;align-items:baseline}.mg-period-value>b{font-size:12px;font-weight:600}.mg-period-track{grid-column:1/-1;grid-row:2;height:7px;border-radius:4px}.mg-period-track>em{border-radius:4px}.mg-period-value .mg-kpi-mom{font-size:9px}.mg-period-value .mg-kpi-mom b{font-size:11px}.mg-kpi-details{margin-top:9px;padding-top:9px}.mg-kpi-bottom{font-size:9px;margin-top:9px}.mg-kpi-details summary{font-size:10px}.mg-kpi-feature .mg-plan-heading{color:#bccfbc}.mg-kpi-feature .mg-period-value>b{color:#e0ebda}.mg-dashboard-footnote{font-size:10px;max-width:1000px}
@media(max-width:700px){.mg-dashboard{padding:10px}.mg-kpi-grid{gap:12px}.mg-kpi{padding:16px}.mg-kpi-number{font-size:31px}.mg-kpi-main{margin:17px 0}.mg-gauge{width:72px;height:72px;flex-basis:72px}.mg-period-value{max-width:none}.mg-kpi-plans .mg-kpi-target b{font-size:12px}.mg-period-value>b{font-size:12px}.mg-dashboard-title h3 span{display:none}}
@media(max-width:380px){.mg-kpi-number{font-size:24px}.mg-gauge{width:62px;height:62px;flex-basis:62px}.mg-gauge b{font-size:10px}.mg-gauge small{font-size:7px}.mg-plan-heading{font-size:9px}.mg-plan-heading small{font-size:8px}.mg-kpi-plans .mg-kpi-target,.mg-kpi-plans .mg-kpi-mp>span:first-child{font-size:10px}.mg-kpi-plans .mg-kpi-target b{font-size:11px}.mg-period-value>b{font-size:11px}.mg-period-value .mg-kpi-mom b{font-size:10px}}

.mg-ratio-heading{display:flex;justify-content:space-between;gap:8px;font-size:11px;font-weight:600;margin:0 0 7px;color:#45634f}.mg-ratio-heading small{font-size:9px;font-weight:400;color:#81917d}.mg-kpi-feature .mg-ratio-heading{color:#d0dec8}

/* Budget alerts are based on verified expense amounts, independently of the income ratio. */
.mg-kpi .mg-kpi-target.mg-budget-over b,.mg-kpi .mg-kpi-target.mg-budget-over small,.mg-kpi .mg-gauge.mg-budget-over b{color:#bd3737}.mg-gauge.mg-budget-over .mg-gauge-fill{stroke:#bd3737}.mg-kpi-target.mg-budget-over small{font-size:9px;font-weight:500}.mg-gauge.mg-budget-over .mg-gauge-track{stroke:#f5dddd}

/* Three comparable periods share a zero baseline and a vertical scale. */
.mg-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:36px 0 13px;align-items:start}.mg-columns .mg-period-row{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:130px auto minmax(28px,auto);gap:10px;min-width:0;text-align:center}.mg-columns .mg-period-track{grid-column:1;grid-row:1;position:relative;height:130px;border-radius:0;background:repeating-linear-gradient(to top,#80947715 0,#80947715 1px,transparent 1px,transparent 32.5px);overflow:visible}.mg-columns .mg-period-track>i{left:0;right:0;bottom:var(--column-zero);top:auto;height:0;border:0;border-top:1px solid #bac8b7}.mg-columns .mg-period-track>em{width:46%;max-width:46px;left:27%;bottom:var(--column-bottom);height:var(--column-height);border-radius:5px 5px 0 0;background:#b9caba}.mg-columns .is-current .mg-period-track>em{background:var(--kpi)}.mg-columns .mg-period-value{position:absolute;left:-3px;right:-3px;bottom:calc(var(--column-top) + 6px);display:block;max-width:none;text-align:center;line-height:1.3;overflow-wrap:anywhere}.mg-columns .mg-period-value>b{font-size:11px;font-weight:600;letter-spacing:-.025em}.mg-columns .mg-column-label{grid-column:1;grid-row:2;font-size:10px;line-height:1.5}.mg-columns .mg-column-change{grid-column:1;grid-row:3;font-size:9px;color:#83917f;min-width:0}.mg-column-change .mg-kpi-mom{display:flex;justify-content:center;flex-wrap:wrap;gap:3px;margin:0;font-size:9px;line-height:1.5}.mg-column-change .mg-kpi-mom b{font-size:10px}.mg-column-change .mg-kpi-mom small{display:none}.mg-kpi-feature .mg-columns .mg-period-track{background:repeating-linear-gradient(to top,#ffffff13 0,#ffffff13 1px,transparent 1px,transparent 32.5px)}.mg-kpi-feature .mg-columns .mg-period-track>em{background:#6b8a70}.mg-kpi-feature .mg-columns .is-current .mg-period-track>em{background:#adc994}.mg-kpi-feature .mg-column-change{color:#c8d9bf}
@media(max-width:700px){.mg-columns{gap:7px}.mg-columns .mg-period-value>b{font-size:11px}.mg-columns .mg-column-change .mg-kpi-mom b{font-size:10px}}
@media(max-width:380px){.mg-columns{gap:5px}.mg-columns .mg-period-value>b{font-size:9px}.mg-columns .mg-column-change .mg-kpi-mom b{font-size:9px}.mg-columns .mg-column-label{font-size:9px}}

.mg-column-change .mg-change-points b{flex-basis:100%}.mg-column-change .mg-change-unit{font-size:8px;white-space:nowrap}.mg-columns .mg-period-row{grid-template-rows:130px auto minmax(34px,auto)}

/* All items: filter, identify the action, then open its evidence. */
body[data-current-view="all"] #cards{gap:20px}body[data-current-view="all"] .domain-section{min-width:0}body[data-current-view="all"] .domain-heading{margin-top:10px;padding-bottom:9px}body[data-current-view="all"] .subcategory-heading{margin:12px 0 8px}body[data-current-view="all"] .subcategory-group>.cards,body[data-current-view="all"] .customer-sales-group>.cards{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px}body[data-current-view="all"] .customer-sales-heading{background:none;border-left:2px solid #9eb39b;padding:5px 10px;margin:4px 0 8px;font-size:12px}body[data-current-view="all"] .subcategory-group{margin-bottom:16px}.all-board-tools{padding:16px;border:1px solid #dbe3d5;border-radius:14px;background:#fff;margin:12px 0}.all-domain-tabs{display:flex;gap:8px;flex-wrap:wrap;padding-bottom:12px;border-bottom:1px solid #edf0e8}.all-domain-tabs button{border:1px solid #dfe7d8;border-radius:8px;padding:8px 14px;font-size:13px}.all-domain-tabs button.selected{background:#244d3c;color:white;border-color:#244d3c}.all-domain-tabs b,.all-time-chips b{font-variant-numeric:tabular-nums;margin-left:5px}.all-filter-row{display:flex;align-items:end;gap:12px;margin:12px 0;flex-wrap:wrap}.all-filter-row label{flex:1;min-width:140px;margin:0;font-size:11px;color:#62745d}.all-filter-row select{display:block;width:100%;margin-top:5px;padding:9px 10px;border:1px solid #dbe3d5;border-radius:7px;font-size:13px;min-height:40px}.all-filter-row>button{font-size:12px;color:#55704f;min-height:40px;text-decoration:underline}.all-time-chips{display:flex;gap:7px;flex-wrap:wrap}.all-time-chips button{padding:7px 10px;font-size:12px;background:#f1f4ed;border:1px solid transparent;border-radius:7px}.all-time-chips button.selected{border-color:#47734b;background:#e8f0df;color:#254c2f}.all-time-chips .has-late{color:#a84532}.all-board-note{font-size:11px!important;color:#7e8b75!important;margin:12px 0 0!important;line-height:1.8}.all-task-card{padding:17px;min-width:0;box-shadow:none!important;border-radius:12px;display:flex;flex-direction:column;gap:0}.all-task-card.followup-late{border-top:3px solid #be7258}.all-task-card.followup-today{border-top:3px solid #51896a}.all-task-top{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:10px}.all-task-top .tag{font-size:11px}.all-due{font-size:12px;color:#61715b;margin-left:auto}.all-due.late{color:#a04431;font-weight:600}.all-due.today{color:#256746;font-weight:600}.all-due.unplanned{color:#997539}.all-important{color:#94651e;background:#f9f0d9;border-radius:4px;padding:3px 6px;font-size:10px}.all-task-card .task-card-context{flex:none;gap:4px}.all-task-card h3{font-size:16px;line-height:1.6;margin:11px 0 9px;overflow-wrap:anywhere}.all-task-card .task-party,.all-task-card .task-project{font-size:15px}.all-task-card .customer-followup{font-size:11px;margin:0}.all-assignee{display:flex;gap:6px 14px;flex-wrap:wrap;justify-content:space-between;font-size:11px;color:#7d8975;margin:0 0 10px;line-height:1.8}.all-assignee strong{font-size:13px;color:#365741;margin-left:5px}.all-task-card .workflow-badge{font-size:11px;margin:0 0 8px}.all-task-card .next-action{font-size:13px;line-height:1.8;margin:0 0 10px;padding:10px 12px;white-space:pre-wrap;overflow-wrap:anywhere}.all-task-card .next-action small{display:block;color:#6384a0;font-size:10px;margin-bottom:3px}.all-missing-next{font-size:12px!important;color:#99733b!important;background:#fbf6e9;border-radius:6px;padding:10px 12px;margin:0 0 10px!important;display:flex;flex-wrap:wrap;align-items:center;gap:6px;justify-content:space-between}.all-missing-next button{font-size:12px;text-decoration:underline;color:#856124}.all-context{border-top:1px solid #edf0e8;padding-top:9px;margin:0 0 5px}.all-context summary,.all-image-gaps summary{cursor:pointer;font-size:11px;color:#7b8873;line-height:1.8}.all-context summary span{float:right;font-size:10px}.all-context p,.all-context li{font-size:12px;line-height:1.8;overflow-wrap:anywhere}.all-context .conversation,.all-context .snapshot{font-size:10px}.all-task-card .image-gallery{margin:8px 0;padding-top:8px}.all-task-card .image-missing{font-size:11px}.all-task-card .card-image-actions{margin:7px 0;align-items:center;flex-wrap:wrap}.all-task-card .card-image-actions button{padding:5px 8px;font-size:11px}.all-task-card .card-image-actions small{font-size:10px;color:#94a08b}.all-task-actions{margin-top:9px;padding-top:12px;display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:space-between}.all-task-actions>div{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.all-task-actions button{font-size:11px;padding:7px 8px;line-height:1.5}.all-task-actions .all-progress{background:#24563e;color:white;border-radius:6px;padding:8px 12px}.all-task-actions .complete-check{font-size:11px;white-space:nowrap;margin:0}.all-task-actions input{width:16px;height:16px;accent-color:#2f6546}.all-task-card .image-thumbnails{grid-template-columns:repeat(3,minmax(0,1fr))}.all-task-card .image-thumbnails img{height:72px}body[data-current-view="all"] .execution-summary{font-size:12px;margin:9px 0 14px}body[data-current-view="all"] .review-queue{margin-top:10px}body[data-current-view="all"] #sync-info{max-height:82px;overflow:auto;font-size:10px;line-height:1.8}
@media(min-width:1600px){body[data-current-view="all"] .customer-sales-group>.cards{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:1000px){body[data-current-view="all"] .subcategory-group>.cards,body[data-current-view="all"] .customer-sales-group>.cards{grid-template-columns:minmax(0,1fr)}}@media(max-width:700px){.all-board-tools{padding:12px}.all-domain-tabs{gap:6px}.all-domain-tabs button{padding:7px 9px;font-size:12px}.all-filter-row{gap:9px}.all-filter-row label{min-width:calc(50% - 9px)}.all-filter-row label:has(#customer-sales-filter){flex-basis:100%}.all-time-chips{gap:6px}.all-time-chips button{font-size:11px;padding:7px 8px}.all-task-card{padding:14px}.all-task-card h3{font-size:16px}.all-due{font-size:11px}.all-task-actions{gap:7px}.all-task-actions button{font-size:11px}.all-task-actions .all-progress{padding:8px 10px}.all-task-card .next-action{font-size:13px}.all-task-card .image-thumbnails img{height:64px}}

.all-expand-filters{display:none}body[data-current-view="all"] .execution-summary>span{display:none}body[data-current-view="all"] .domain-heading{margin-top:6px}body[data-current-view="all"] .domain-section{margin-top:0}.all-board-tools .all-time-chips{margin-top:10px}@media(max-width:700px){.all-expand-filters{display:block;padding:10px 0 0;font-size:11px;text-decoration:underline;color:#5a7150;line-height:1.7}.all-filter-row:not(.expanded){display:none}.all-board-tools{margin:8px 0;padding:11px}.all-board-tools .all-domain-tabs{padding-bottom:9px}.all-board-note{display:none}.all-time-chips button{padding:6px 8px}.all-domain-tabs button{padding:6px 8px}.all-task-card .all-assignee{gap:4px 8px}.all-task-card .all-assignee>span:last-child{font-size:10px}body[data-current-view="all"] .execution-summary{margin:8px 0 10px}body[data-current-view="all"] .domain-heading{margin-top:0}body[data-current-view="all"] .subcategory-heading{margin-top:8px}}

.mg-comparison-caption{font-size:9px;color:#81917a;line-height:1.6;margin:0 0 7px}.mg-columns .mg-period-row{grid-template-rows:130px auto minmax(34px,auto) auto}.mg-whole-month{grid-column:1;grid-row:4;display:flex;flex-direction:column;gap:5px;border-top:1px solid #e6ece1;padding-top:10px;min-width:0}.mg-whole-month small{font-size:9px;font-weight:400;color:#81917a}.mg-whole-month b{font-size:11px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;font-weight:600}.mg-kpi-feature .mg-comparison-caption,.mg-kpi-feature .mg-whole-month small{color:#bdd0b8}.mg-kpi-feature .mg-whole-month{border-color:#ffffff20}
@media(max-width:380px){.mg-whole-month b{font-size:9px}.mg-whole-month small{font-size:8px}}
/* Sales department shares opportunities; cards retain readable mobile fields. */
.sales-entry{padding:20px;margin:16px 0;border:1px solid #d9e2e8;border-radius:16px;background:#f3f7fa}.sales-entry p{margin:8px 0 12px}.sales-heading{display:flex;justify-content:space-between;gap:16px;align-items:center}.sales-heading h2{margin:4px 0 12px}.sales-filters{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0}.sales-filters label{flex:1;min-width:140px}.sales-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.sales-card{border:1px solid #dce3e8;border-radius:16px;padding:20px;background:white;min-width:0;overflow-wrap:anywhere}.sales-card-top{display:flex;justify-content:space-between;gap:10px;color:#4a6073;font-size:13px}.sales-card h3{font-size:21px;margin:15px 0 5px}.sales-project{font-weight:600;margin:0 0 8px}.sales-quantity{display:flex;flex-wrap:wrap;gap:14px;font-size:12px;color:#5b6878;margin:18px 0}.sales-quantity b{display:block;font-size:18px;color:#283d51;margin-top:5px}.sales-next{color:#185b89;font-weight:600;white-space:pre-wrap}.sales-due{font-size:13px;color:#526171}.sales-due.overdue{color:#a54127}.sales-card details{margin:14px 0}.sales-card details p{white-space:pre-wrap}.sales-card>button{width:100%}#sales-dialog fieldset{padding:0;border:0;min-width:0}#sales-panel{padding-bottom:35px}.sales-summary{font-weight:600}@media(max-width:760px){.sales-grid{grid-template-columns:1fr}.sales-heading{display:block}.sales-heading>div:last-child{display:flex;flex-wrap:wrap;gap:8px}.sales-card{padding:16px}.sales-filters label:first-child{flex-basis:100%}.sales-filters label{min-width:110px}.sales-quantity{gap:12px}.sales-quantity b{font-size:16px}}

/* Historical full-month bars share their own scale; current month stays cumulative. */
.mg-columns .mg-period-row{grid-template-rows:130px auto minmax(34px,auto)}
.mg-full-caption{display:block;border-top:1px solid #e6ece1;padding-top:14px;margin-top:8px}
.mg-whole-columns .mg-column-label small{display:block;font-size:9px;margin-top:4px;color:#81917a}
.mg-whole-columns .mg-full-share{line-height:1.6;font-size:9px}
.mg-whole-columns .mg-full-share b{display:block;color:#315d49;font-size:12px}
.mg-kpi-feature .mg-full-caption{border-color:#ffffff20}
.mg-kpi-feature .mg-whole-columns .mg-column-label small{color:#bdd0b8}
.mg-kpi-feature .mg-whole-columns .mg-full-share b{color:#d1e6c6}
@media(max-width:380px){.mg-whole-columns .mg-column-label small{font-size:8px}.mg-whole-columns .mg-full-share b{font-size:10px}}

/* Five comparisons share one row within the card width. */
.mg-five-scroll{width:100%;max-width:100%;min-width:0;overflow:visible}
.mg-five-columns{grid-template-columns:repeat(5,minmax(0,1fr));width:100%;min-width:0;gap:4px}
.mg-five-columns .mg-column-label small{display:block;font-size:9px;line-height:1.6;margin-top:4px;color:#81917a}
.mg-five-columns .is-full-month .mg-period-track>em{background:#91ad96}
.mg-five-columns .mg-full-share{line-height:1.6;font-size:9px}
.mg-five-columns .mg-full-share b{display:block;color:#315d49;font-size:11px}
.mg-kpi-feature .mg-five-columns .is-full-month .mg-period-track>em{background:#82a07b}
.mg-kpi-feature .mg-five-columns .mg-column-label small{color:#bdd0b8}
.mg-kpi-feature .mg-five-columns .mg-full-share b{color:#d1e6c6}
.mg-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1100px){.mg-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.mg-kpi-grid{grid-template-columns:minmax(0,1fr)}}

/* Compact five-bar comparison: retain all labels and values. */
.mg-five-columns{padding:24px 0 6px;gap:6px}
.mg-five-columns .mg-period-row{grid-template-rows:84px auto minmax(28px,auto);gap:6px}
.mg-five-columns .mg-period-track{height:84px;background-size:auto;background-image:repeating-linear-gradient(to top,#80947715 0,#80947715 1px,transparent 1px,transparent 21px)}
.mg-five-columns .mg-column-label{line-height:1.35}
.mg-five-columns .mg-column-label small{margin-top:2px;line-height:1.4}
.mg-five-columns .mg-full-share{line-height:1.4}
.mg-five-columns .mg-column-change .mg-kpi-mom{line-height:1.4;gap:2px}
.mg-kpi-feature .mg-five-columns .mg-period-track{background-image:repeating-linear-gradient(to top,#ffffff13 0,#ffffff13 1px,transparent 1px,transparent 21px)}

.sales-card .sales-delete{margin-top:8px;color:#a23f32;border-color:#ddc9c3;background:transparent}

/* Structured source messages and touch-friendly saved choices. */
.chat-day h4{font-size:13px;color:#587267;margin:12px 0 8px;border-bottom:1px solid #e4e9e4;padding-bottom:6px}
.chat-row{display:grid;grid-template-columns:46px minmax(0,1fr);gap:9px;padding:7px 0;border-bottom:1px solid #f0f2ee;font-size:14px;line-height:1.6}
.chat-row time{font-size:12px;color:#7a827d;padding-top:2px}.chat-row strong{color:#355d4a;font-size:13px}.chat-row p{margin:2px 0!important;white-space:pre-wrap;overflow-wrap:anywhere}.source-prose{white-space:pre-wrap;overflow-wrap:anywhere}
#link-fields{display:block;margin:12px 0}#link-task-list{max-height:240px;overflow:auto;display:grid;gap:6px;margin:8px 0}#link-task-list button{text-align:left;white-space:normal;overflow-wrap:anywhere;padding:10px;min-height:44px;background:#f5f7f3;color:#314b3e;border:1px solid #dde5dd;border-radius:8px}#link-task-list button[aria-pressed="true"]{background:#e2efe6;border-color:#44775a;font-weight:700}#link-task{max-width:100%}#link-search{width:100%;margin-top:8px}
.saved-choice-field{display:flex;min-width:0;gap:4px;align-items:stretch}.saved-choice-field input{min-width:0;flex:1}.saved-choice-toggle{flex:0 0 38px;padding:6px;background:#eff4ed;color:#315b42;border:1px solid #d9e2d8;border-radius:9px}.saved-choice-list{display:grid;gap:4px;max-height:180px;overflow:auto;margin-top:4px}.saved-choice-list[hidden]{display:none}.saved-choice-list button{text-align:left;background:#f3f6ef;color:#315b42;padding:9px;border:1px solid #e0e6dc;border-radius:6px;white-space:normal;overflow-wrap:anywhere}

/* 2026-10-16: increase the workbench screen text and controls by 20%. */
body{zoom:1.2}
@media(max-width:700px){body{zoom:1.2}}

/* Sales opportunity summary and compact detail tables. */
.sales-overview{margin:16px 0;padding:16px;background:#fff;border:1px solid #dce3e8;border-radius:12px;min-width:0}.sales-overview h3{margin:0 0 10px;font-size:16px;color:#2e4b5f}.sales-overview h3 small{font-size:11px;font-weight:400;color:#7a8994;margin-left:8px}.sales-table-scroll{overflow-x:auto}.sales-table{width:100%;border-collapse:collapse;min-width:620px;font-size:12px}.sales-table th,.sales-table td{padding:10px 9px;border-bottom:1px solid #e7edf0;text-align:left;vertical-align:top;white-space:nowrap}.sales-table thead th{background:#f3f7fa;color:#506274;font-weight:600}.sales-table tbody th{color:#304c5d}.sales-summary-table td,.sales-owner-table td{font-variant-numeric:tabular-nums}.sales-detail-table{min-width:1250px}.sales-detail-table td:nth-child(4),.sales-detail-table td:nth-child(11){white-space:normal;min-width:170px}.sales-detail-table button{display:block;margin-top:5px;padding:6px 9px;font-size:11px}.sales-source-cell{display:block;color:#72808b;font-size:10px;line-height:1.5}.sales-overview .hint{margin:10px 0 0}
@media(max-width:700px){.sales-overview{padding:12px;margin:10px 0}.sales-overview h3{font-size:14px}.sales-overview h3 small{display:block;margin:4px 0 0}.sales-table{font-size:11px}.sales-table th,.sales-table td{padding:8px 7px}.sales-summary-table,.sales-owner-table{min-width:560px}.sales-detail-table{min-width:1250px}}

/* Source-card text follows the logistics review's 12px body / 11px metadata. */
.cards .inbox-card > p,
.cards .inbox-card .chat-row p,
.cards .inbox-card .recording-detail p{font-size:12px;line-height:1.5;margin-bottom:6px}
.cards .inbox-card .customer-match-line small{font-size:11px}
.cards .inbox-card .chat-day h4{font-size:12px;margin:6px 0 4px;padding-bottom:3px}
.cards .inbox-card .chat-row{font-size:12px;line-height:1.5;grid-template-columns:42px minmax(0,1fr);gap:6px;padding:3.5px 0}
.cards .inbox-card .chat-row time{font-size:11px;padding-top:1px}
.cards .inbox-card .chat-row strong{font-size:12px}
.cards .inbox-card .chat-row p{display:inline;margin:0!important}
.cards .inbox-card .chat-row strong{margin-right:.5em}
.cards .inbox-card .card-meta{font-size:11px;gap:4.5px;margin-bottom:7.5px}
.cards .inbox-card .card-footer{padding-top:6px}
.cards .inbox-card .card-footer > .hint{font-size:11px;line-height:1.5}
.cards .inbox-card .recording-detail{font-size:12px}
.cards .inbox-card .recording-detail h4{font-size:13px;margin:6px 0 4px}
.cards .inbox-card .recording-detail small{font-size:11px}
.cards .inbox-card .recording-detail details{font-size:12px;margin-top:10px}
.cards .inbox-card .recording-detail ul{margin:5px 0;padding-left:15px}
.cards .inbox-card .recording-detail .recording-excerpt{padding-left:5px!important;margin:5px 0!important}

/* Evidence-labelled suggestions remain unselected until reviewed. */
.link-choice-heading{font-size:12px;font-weight:600;color:#315b42;padding:8px 2px 3px}
.link-quick-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:7px 0 4px;padding:7px 9px;background:#f2f6f1;border:1px solid #dbe5da;border-radius:7px}.link-quick-filters label{display:flex;align-items:center;gap:5px;font-size:12px;color:#496252}.link-quick-filters select{min-height:32px;padding:4px 26px 4px 7px;font-size:12px}.link-customer-group{display:grid;gap:5px;margin:3px 0 8px;padding:5px 0 2px;border-top:1px solid #e0e8df}.link-customer-group>strong{font-size:12px;color:#55705b;padding:3px 4px}.link-project-group{display:grid;gap:5px;margin:2px 4px 7px;padding:4px 0 0 8px;border-left:2px solid #d5e3d4}.link-project-group>span{font-size:12px;color:#607462}
.link-choice-reason{display:block;margin-top:4px;font-size:11px;line-height:1.5;color:#74816f}
/* Compact workbench: prioritize operating figures and actions in the first viewport. */
/* Dense editors: reduce empty space while keeping labels and typed text legible. */
dialog:not(.workbench-date-picker):not(#image-viewer){padding:12px;border-radius:10px}
dialog .dialog-head{gap:8px;margin-bottom:8px}
dialog .dialog-head h2{font-size:17px;line-height:1.3;margin:0}
dialog .dialog-head .close{font-size:24px;min-width:30px;min-height:30px}
dialog .form-grid{gap:6px 10px;align-items:start}
dialog label{font-size:12px;line-height:1.35;min-width:0;overflow-wrap:anywhere}
dialog label input,dialog label textarea,dialog label select{margin-top:3px}
dialog input:not([type="checkbox"]):not([type="radio"]):not([data-workbench-date]),dialog select{padding:5px 7px;font-size:13px;line-height:1.35;min-height:30px;border-radius:5px}
dialog textarea{padding:5px 7px;font-size:13px;line-height:1.4;min-height:42px;height:48px;resize:vertical;border-radius:5px}
dialog .workbench-date-trigger{min-height:30px;padding:5px 7px;font-size:13px;line-height:1.35;border-radius:5px}
dialog .workbench-date-field{min-width:0}
dialog .form-grid .wide{min-width:0}
dialog .hint{margin:5px 0;font-size:11px;line-height:1.5}
dialog .source-box{padding:8px;margin:8px 0;font-size:11px}
dialog details{margin-top:8px}
dialog .dialog-foot{gap:8px;margin-top:10px}
dialog .dialog-foot button{padding:7px 12px;font-size:13px;min-height:32px}
dialog:not(#quick-dialog) form>.dialog-foot:last-child{bottom:-12px;padding:8px 0;margin-bottom:0}
#candidate-dialog label{margin-top:7px}
#sales-dialog{max-width:1000px;width:calc(100% - 24px)}
#sales-dialog fieldset{margin:0;padding:0;min-width:0}
#sales-dialog #sales-image-editor{margin-top:8px}
#sales-dialog #sales-image-editor h3{font-size:13px;margin:5px 0}
#sales-dialog #sales-image-editor p{font-size:11px;margin:4px 0;line-height:1.5}
#sales-dialog #sales-image-editor .sales-thumbs{margin:4px 0}
#sales-dialog #sales-save-error:empty{margin:0}
#sales-dialog #sales-form>.dialog-foot{position:sticky;bottom:-12px;background:white;z-index:2}
@media(min-width:1000px){
 #sales-dialog #sales-form .form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 #sales-dialog #sales-form .form-grid>.sales-note-field{grid-column:span 1}
 #sales-dialog #sales-form .form-grid>label{font-size:11px}
 #sales-dialog #sales-form .form-grid textarea{height:44px;min-height:44px}
 #task-create,#editor{max-width:900px}
 #task-create .form-grid,#editor .form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 #management-dialog .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Full-lifecycle main stage: kept visually separate from the legacy sales sub-stage. */
.sales-lifecycle-summary strong{color:#174f43}
.sales-lifecycle-select{display:inline-block;width:auto;max-width:100%;min-height:0;border:0;border-radius:3px;padding:1px 3px;background:transparent;color:#174f43;font-family:inherit;font-size:12px;font-weight:700;line-height:1.45;cursor:pointer}
.sales-lifecycle-select:hover{background:#e5eee5}
.sales-lifecycle-select:focus-visible{outline:2px solid #4f9071;outline-offset:1px}
.sales-lifecycle-source{display:block;margin-top:.25rem;font-size:.72rem;font-style:normal;color:#2f6f61}
.sales-lifecycle-source.is-suggested{color:#8a5a12}
.sales-lifecycle-current{display:flex;align-items:baseline;gap:.6rem;flex-wrap:wrap;margin:0 0 1rem;padding:.8rem 1rem;border-radius:.75rem;background:#f0f7f4}
.sales-lifecycle-current strong{font-size:1.1rem;color:#174f43}
.sales-lifecycle-current em{width:100%;font-size:.82rem;color:#8a5a12}
.sales-lifecycle-gates{margin:1rem 0;padding:1rem;border:1px solid #c9ddd7;border-radius:.75rem;background:#fbfdfc}
.sales-lifecycle-gates h3{margin:0 0 .25rem;font-size:1rem}
.sales-lifecycle-gates p{margin:.25rem 0 .75rem;color:#586862}
.sales-lifecycle-gates label{margin:.55rem 0}
.sales-lifecycle-gates input[type="checkbox"]{flex:0 0 auto!important;width:auto!important;margin:.18rem 0 0!important}
.sales-lifecycle-gate{display:grid;gap:.7rem;margin:.8rem 0;padding:.85rem;border:1px solid #d3e1dc;border-radius:.65rem;background:#fff}
.sales-lifecycle-gate-check{display:flex!important;flex-direction:row!important;align-items:flex-start!important;justify-content:flex-start!important;gap:.55rem;margin:0!important;color:#173f35}
.sales-lifecycle-gate-proof{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;padding-left:1.6rem}
.sales-lifecycle-gate-proof label{display:grid!important;gap:.3rem;margin:0!important;font-size:.82rem;color:#536860}
.sales-lifecycle-gate-proof textarea{box-sizing:border-box;width:100%;min-height:4.4rem;padding:.55rem .65rem;resize:vertical;background:#fbfdfc}
.sales-lifecycle-gate-media{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.45rem .7rem;align-items:center;padding-left:1.6rem}
.sales-lifecycle-gate-media>[data-gate-images]{display:flex;flex-wrap:wrap;gap:.45rem;min-width:0}
.sales-lifecycle-gate-media>[data-gate-images]>small{color:#7b877f}
.sales-lifecycle-proof-image{position:relative;display:inline-flex;width:76px;height:58px;border:1px solid #c9d8d0;border-radius:.45rem;background:#f5f8f6;overflow:visible}
.sales-lifecycle-proof-image a,.sales-lifecycle-proof-image img{display:block;width:100%;height:100%;border-radius:.4rem}
.sales-lifecycle-proof-image img{object-fit:cover}
.sales-lifecycle-proof-image.pending img{opacity:.52}
.sales-lifecycle-proof-image.pending::after{content:'处理中';position:absolute;inset:auto .2rem .2rem;display:block;padding:.12rem .2rem;border-radius:.25rem;background:rgba(18,65,53,.84);color:#fff;font-size:.68rem;text-align:center}
.sales-lifecycle-proof-image>button{position:absolute;top:-7px;right:-7px;display:grid;place-items:center;width:22px;height:22px;min-width:0;padding:0;border-radius:50%;background:#fff;color:#9c3e35;font-size:16px;line-height:1}
.sales-lifecycle-image-picker{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:max-content;margin:0!important;padding:.45rem .7rem;cursor:pointer;white-space:nowrap}
.sales-lifecycle-image-picker input{position:absolute;width:1px!important;height:1px!important;opacity:0;pointer-events:none}
.sales-lifecycle-gate-media>small{grid-column:1/-1;color:#6d7b74}
.sales-lifecycle-gate-media>[data-gate-image-status]{grid-column:1/-1;margin:0;color:#8a5a12}
.sales-lifecycle-history-images{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.35rem}
.sales-lifecycle-history-images a{display:block;width:68px;height:52px;border:1px solid #d4dfd9;border-radius:.4rem;overflow:hidden}
.sales-lifecycle-history-images img{display:block;width:100%;height:100%;object-fit:cover}
.sales-lifecycle-history-item{margin:.75rem 0;padding:.7rem;border-left:3px solid #9bb9a9;background:#f7faf8}
.sales-lifecycle-history-item>small{display:block;margin:.35rem 0;color:#61736a}
.sales-lifecycle-history-item ul{display:grid;gap:.45rem;margin:.5rem 0 0;padding:0;list-style:none}
.sales-lifecycle-history-item li{display:grid;gap:.15rem;padding:.45rem .55rem;border:1px solid #d8e3dd;border-radius:.45rem;background:#fff;font-size:.8rem}
.sales-lifecycle-history-item li span{color:#5c6c64}
.sales-lifecycle-history p{display:grid;grid-template-columns:minmax(8rem,auto) minmax(10rem,auto) 1fr;gap:.6rem;margin:.5rem 0;font-size:.82rem}
.sales-lifecycle-history time{color:#69766f}
@media(max-width:700px){.sales-lifecycle-history p{grid-template-columns:1fr}.sales-lifecycle-current{align-items:flex-start}.sales-lifecycle-gate-proof{grid-template-columns:1fr;padding-left:0}.sales-lifecycle-gate-media{grid-template-columns:1fr;padding-left:0}.sales-lifecycle-image-picker{width:100%}}
@media(min-width:701px) and (max-width:999px){
 #sales-dialog #sales-form .form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 #sales-dialog #sales-form .form-grid>.wide{grid-column:span 3}
}
@media(max-width:700px){
 dialog:not(.workbench-date-picker):not(#image-viewer){padding:10px;width:calc(100% - 16px);max-height:calc(100dvh - 16px)}
 dialog .form-grid,#management-dialog .form-grid{grid-template-columns:minmax(0,1fr);gap:7px}
 dialog .form-grid>.wide{grid-column:1/-1}
 dialog input:not([type="checkbox"]):not([type="radio"]):not([data-workbench-date]),dialog select,dialog textarea{font-size:16px}
 dialog .workbench-date-trigger{font-size:16px;min-height:36px}
 dialog input:not([type="checkbox"]):not([type="radio"]):not([data-workbench-date]),dialog select{min-height:36px}
 dialog .dialog-foot button{min-height:40px}
 dialog:not(#quick-dialog) form>.dialog-foot:last-child{bottom:-10px;padding:7px 0}
 #sales-dialog{width:calc(100% - 16px)}
}
.interface-result-count{display:block;font-size:12px;color:var(--muted);margin:4px 0}
.mg-goal-reference>summary{cursor:pointer;font-size:14px;font-weight:600;padding:12px 0}
.mg-goal-reference>.section-title{justify-content:flex-end}
@media(min-width:701px){.interface-points-shortcut{display:none}}
body{zoom:1}
@media(min-width:701px){
 aside{width:196px;padding:22px 16px;overflow-y:auto}
 aside .brand img{width:164px;margin-bottom:8px}
 aside .brand span{margin:8px 0}
 aside>#day{margin-bottom:14px}
 aside nav{gap:4px}
 aside nav button{padding:11px 12px;font-size:13px;border-radius:7px}
 .side-foot{padding-top:16px;font-size:11px}
 main{margin-left:196px;max-width:1920px;padding:22px 24px}
 main>header{grid-template-columns:minmax(0,1fr) auto;gap:3px 12px;margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid var(--line)}
 main>header h1{grid-column:1;grid-row:1;font-size:26px;line-height:1.3;text-align:left;margin:0;letter-spacing:0}
 main>header>div>p.motto-subtitle{grid-column:1;grid-row:2;font-size:13px;line-height:1.5;text-align:left;margin:2px 0 0}
 main>header .header-actions{grid-column:2;grid-row:1/3;max-width:none;margin:0;gap:6px;align-self:center}
 .header-actions .outline{padding:7px 10px;font-size:12px}
 .cards{gap:10px}
}
#workspace .section-title{margin:12px 0 9px;gap:8px}
#workspace .section-title h2{font-size:16px}
#workspace .metrics{gap:9px;margin-bottom:14px}
#workspace .metric{padding:11px 13px;border-radius:9px}
#workspace #metrics .metric strong{font-size:24px;margin:3px 0}
#workspace .metric small{margin-top:4px}
#workspace .toolbar{gap:10px;margin:8px 0;padding:8px 0}
#workspace .toolbar #search{padding:8px 10px;font-size:13px}
#workspace .tabs button{padding:7px 11px}
#workspace .workspace-tools{margin:10px 0;padding:10px 12px}
#workspace .workspace-tools[open]>section{margin-top:10px}
#workspace .home-category-grid{gap:8px;margin-bottom:12px}
#workspace .home-category-tile{padding:12px;gap:5px}
#workspace .home-category-tile b{font-size:24px}
#today-workbench{margin:10px 0 16px;padding:16px;border:1px solid #dce5d9;border-radius:14px;background:#f8faf6}
.tw-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.tw-heading h2{margin:2px 0;font-size:21px;color:#173d35}.tw-heading p{margin:3px 0 0;color:#6a7d68;font-size:12px}.tw-heading .eyebrow{font-size:9px;letter-spacing:.12em;color:#799078}
.tw-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tw-card{min-width:0;padding:13px 14px;border:1px solid #e1e8df;border-radius:11px;background:#fff}.tw-card-primary{border-left:3px solid #4d8059}.tw-card-risk{border-left:3px solid #bd765d}.tw-card-head{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#365642;font-size:13px;font-weight:650}.tw-card-head strong{font-size:21px;font-variant-numeric:tabular-nums}.tw-note{margin:2px 0 7px;color:#849084;font-size:11px}.tw-item{display:block;width:100%;min-width:0;text-align:left;padding:7px 0;border:0;border-top:1px solid #edf0eb;border-radius:0;background:transparent;color:#233c2d}.tw-item span,.tw-item small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tw-item span{font-size:12px;font-weight:650}.tw-item small{margin-top:3px;color:#738173;font-size:10px}.tw-empty{margin:8px 0 2px;color:#9aa398;font-size:11px}.tw-action{min-height:36px;padding:7px 11px;border:1px solid #d9e5d8;border-radius:7px;background:#f2f7ef;color:#315e40;font-size:12px}
#workspace .focus-grid{grid-template-columns:minmax(0,1fr);gap:8px;margin-bottom:14px}
#workspace .focus-item{padding:11px 12px}
#workspace .focus-item small{margin-bottom:5px}
#workspace .focus-item>button{margin-top:8px}
:is(#management-panel,.dashboard-standard){margin-bottom:14px}
:is(#management-panel,.dashboard-standard) .mg-heading{gap:10px;margin:2px 0 10px}
:is(#management-panel,.dashboard-standard) .mg-heading h2{font-size:21px;margin:3px 0}
:is(#management-panel,.dashboard-standard) .mg-heading p{margin:4px 0;font-size:12px;line-height:1.5}
:is(#management-panel,.dashboard-standard) .mg-dashboard{padding:12px;border-radius:12px;margin:10px 0 14px}
:is(#management-panel,.dashboard-standard) .mg-dashboard-title{gap:10px;margin-bottom:10px}
:is(#management-panel,.dashboard-standard) .mg-dashboard-title h3{font-size:18px;margin-top:3px}
:is(#management-panel,.dashboard-standard) .mg-kpi-grid{gap:10px}
:is(#management-panel,.dashboard-standard) .mg-kpi{padding:13px;border-radius:10px}
:is(#management-panel,.dashboard-standard) .mg-kpi-plans{margin-top:9px;gap:5px;padding:7px 0}
:is(#management-panel,.dashboard-standard) .mg-kpi-main{margin:10px 0}
:is(#management-panel,.dashboard-standard) .mg-kpi-number{font-size:29px;margin-bottom:4px}
:is(#management-panel,.dashboard-standard) .mg-gauge{width:62px;height:62px;flex-basis:62px}
:is(#management-panel,.dashboard-standard) .mg-kpi-bottom{margin-top:6px}
:is(#management-panel,.dashboard-standard) .mg-kpi-details{margin-top:6px;padding-top:6px}
:is(#management-panel,.dashboard-standard) .mg-dashboard-footnote{margin-top:9px;line-height:1.5}
#workspace .cards .card{padding:12px}
#workspace .cards .card h3{font-size:15px;line-height:1.5;margin:6px 0 8px}
#workspace .cards .card .card-footer{padding-top:8px;gap:7px}
#workspace .all-board-tools{padding:11px;margin:8px 0}
#workspace .all-filter-row{gap:8px;margin:8px 0}
#workspace .all-filter-row select{padding:7px 9px;min-height:36px}
#workspace .all-task-top{margin-bottom:6px;gap:6px}
#workspace .all-task-card .next-action{padding:7px 9px;margin-bottom:7px;line-height:1.65}
#workspace .all-task-actions{margin-top:6px;padding-top:8px;gap:6px}
#workspace .domain-heading{padding:8px 2px;margin-bottom:9px}
#workspace .domain-section{margin-bottom:14px}
@media(min-width:701px) and (max-width:1100px){
 main>header h1{font-size:24px}
 main>header .header-actions{max-width:230px}
}
@media(max-width:700px){
 main{padding:12px 12px 94px}
 main>header{gap:2px;margin-bottom:10px;padding-bottom:8px}
 main>header h1{font-size:23px;line-height:1.3;margin:4px 0;letter-spacing:0}
 main>header>div>p.motto-subtitle{font-size:12px;line-height:1.5;margin:2px 0 5px;padding:0}
 main>header .header-actions{gap:5px;margin-top:3px}
 main>header .header-actions .outline{min-height:34px;padding:6px 9px;font-size:11px}
 #workspace .section-title{margin:10px 0 7px}
 #workspace .metrics{gap:6px;margin-bottom:10px}
 #workspace #metrics .metric{padding:7px 5px}
 #workspace #metrics .metric strong{font-size:21px}
 #workspace .toolbar .tabs button{min-height:34px;padding:6px 8px}
 #workspace .toolbar input#search{margin-top:6px;max-width:none;min-height:38px}
 :is(#management-panel,.dashboard-standard) .mg-heading h2{font-size:20px}
 :is(#management-panel,.dashboard-standard) .mg-dashboard{padding:9px}
 :is(#management-panel,.dashboard-standard) .mg-kpi{padding:12px}
 :is(#management-panel,.dashboard-standard) .mg-kpi-number{font-size:27px}
 #workspace .cards{gap:9px}
 #today-workbench{margin:6px 0 12px;padding:12px;border-radius:11px}.tw-heading{align-items:flex-start}.tw-heading h2{font-size:18px}.tw-heading p{max-width:210px;line-height:1.5}.tw-heading>.outline{flex:0 0 auto;padding:7px 8px;font-size:11px}.tw-grid{grid-template-columns:minmax(0,1fr);gap:7px}.tw-card{padding:10px 12px}.tw-card-head strong{font-size:19px}.tw-note{margin-bottom:4px}.tw-item{padding:6px 0}
 #workspace .all-task-actions button{min-height:36px}
}

/* Association choices: project/action, then source, then owner. */
#link-task-list .link-choice-main{font-size:15px;line-height:1.55;color:#173e32;font-weight:600}
#link-task-list .link-choice-project{font-size:16px;font-weight:800}
#link-task-list .link-choice-source,#link-task-list .link-choice-owner{font-size:12px;line-height:1.55;font-weight:400;color:#53665b}
#link-task-list button[aria-pressed="true"] .link-choice-project{color:#123c2a}
#link-task{font-weight:600}

/* Consistent project-first identity across task lists and selectors. */
.task-identity{display:block;min-width:0;max-width:100%;margin:4px 0 9px;line-height:1.55;text-align:left;overflow-wrap:anywhere;white-space:normal;font-weight:400}
.task-identity .task-identity-main{display:block;font-size:15px;color:#173e32;font-weight:600}
.task-identity .task-identity-project{display:inline;font-size:16px;font-weight:800;color:#173e32}
.task-identity .task-identity-source,.task-identity .task-identity-owner{display:inline;font-size:12px;font-weight:400;color:#53665b}
.task-identity .task-identity-owner::before{content:" · ";white-space:pre}
.inbox-card .task-identity .task-identity-main,.inbox-card .task-identity .task-identity-project{font-size:16px;line-height:1.55}
.focus-item .task-identity strong{display:inline;font-size:16px}
.focus-item .task-identity{margin-top:0}
.role-table .task-identity{min-width:190px}
#candidate-action .task-identity{margin-bottom:0}
#link-task-list{max-height:320px}

/* Same-chat image selection: show the full picture and an explicit selected state. */
#chat-image-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}.chat-image-option{position:relative;min-width:0}.chat-image-option img{height:100px;object-fit:contain}.chat-image-option .chat-image-choice{font-weight:700;color:#276646;padding:6px}.chat-image-option.selected{background:#e8f3e9}.chat-image-option.selected .chat-image-choice{background:#276646;color:#fff;border-radius:5px}.chat-image-grid .image-pool-empty{grid-column:1/-1}@media(max-width:520px){#chat-image-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.chat-image-option img{height:90px}}

/* Five periods fit within each card on phones and desktop. */
.mg-five-columns{column-gap:4px}
.mg-five-columns .mg-period-value{left:0;right:0}
.mg-five-columns .mg-period-value>b{font-family:Arial,sans-serif;font-size:10px;letter-spacing:-.035em;white-space:nowrap}
.mg-five-columns .mg-column-label{font-size:10px;overflow-wrap:normal}
.mg-five-columns .mg-column-label small{font-size:9px}
.mg-five-columns .mg-column-change{font-size:9px;line-height:1.4;overflow-wrap:anywhere}
.mg-five-columns .mg-column-change .mg-kpi-mom{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:9px}
.mg-five-columns .mg-column-change .mg-kpi-mom b,.mg-five-columns .mg-full-share b{font-family:Arial,sans-serif;font-size:10px;white-space:nowrap;letter-spacing:-.035em}
.mg-five-columns .mg-column-change .mg-kpi-mom>span{font-size:9px}
.mg-five-exact{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px 10px;margin:8px 0;font-size:11px;line-height:1.5}
.mg-five-exact b{text-align:right;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
@media(max-width:380px){.mg-five-columns{column-gap:2px}.mg-five-columns .mg-period-value>b,.mg-five-columns .mg-column-change .mg-kpi-mom b,.mg-five-columns .mg-full-share b{font-size:9px}}
.mg-five-scroll{container-type:inline-size}
@container(max-width:300px){.mg-five-columns{column-gap:2px}.mg-five-columns .mg-period-value>b,.mg-five-columns .mg-column-change .mg-kpi-mom b,.mg-five-columns .mg-full-share b{font-size:clamp(9px,3.5cqw,10px)}}

/* Project names remain distinct in the opportunity/task picker. */
.project-link-dialog .link-task-picker{border:0;padding:0;margin:14px 0;min-width:0}
.project-link-dialog .link-task-picker legend{font-size:14px;font-weight:700;margin-bottom:8px}
.project-link-dialog .link-task-search{display:block;font-size:12px}
.project-link-dialog .link-task-list{max-height:340px;overflow-y:auto;overscroll-behavior:contain;display:grid;gap:8px;padding:4px 2px;margin-top:8px}
.project-link-dialog .link-task-option{display:flex;align-items:flex-start;gap:10px;border:1px solid #d6dfd5;border-radius:9px;padding:12px;background:#fff;cursor:pointer;min-width:0;margin:0}
.project-link-dialog .link-task-option.is-selected{border-color:#2b6c50;background:#edf5ee;box-shadow:inset 0 0 0 1px #2b6c50}
.project-link-dialog .link-task-option:focus-within{outline:2px solid #b49348;outline-offset:1px}
.project-link-dialog .link-task-option input{width:18px;height:18px;flex:0 0 18px;margin:4px 0 0;accent-color:#2b6c50}
.project-link-dialog .link-task-copy{display:grid;gap:5px;flex:1;min-width:0;overflow-wrap:anywhere}
.project-link-dialog .link-task-project{font-size:18px;line-height:1.45;font-weight:750;color:#173d35}
.project-link-dialog .link-task-customer{font-size:15px;line-height:1.45;color:#264f40}
.project-link-dialog .link-task-customer strong{font-weight:750}
.project-link-dialog .link-task-action{font-size:13px;line-height:1.5;color:#40594e;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.project-link-dialog .link-task-copy small{font-size:11px;line-height:1.5;color:#748275}
.project-link-dialog .link-task-choice{font-size:12px;font-weight:700;color:#2b6c50;flex:0 0 auto;padding-top:3px}
.project-link-dialog .link-task-selected{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#edf5ee;padding:10px;border-radius:8px;margin-bottom:10px;font-size:13px;overflow-wrap:anywhere}
.project-link-dialog .link-task-selected strong{font-size:16px;color:#173d35}
.project-link-dialog .link-task-selected button{flex-shrink:0}
@media(max-width:520px){.project-link-dialog .link-task-option{padding:10px;gap:8px}.project-link-dialog .link-task-project{font-size:16px}.project-link-dialog .link-task-list{max-height:300px}.project-link-dialog .link-task-choice{font-size:11px}}

/* Account and system controls live under 管理与个人 → 账号与系统设置. */
main>header .header-actions{display:none}
.system-actions{margin:14px 0 22px;padding:16px 18px;border:1px solid var(--line);border-radius:12px;background:#f3f6ef}.system-actions h3{margin:0 0 6px;font-size:16px}.system-actions .company-note{margin:0 0 12px}

.account-permissions{margin-top:18px;padding:14px;border:1px solid var(--line);border-radius:10px;background:#fafbf8}.account-permissions h4{margin:0 0 5px;font-size:15px}.account-permissions fieldset{margin:10px 0;padding:9px;border:1px solid #e0e7dc;border-radius:8px}.account-permissions legend{padding:0 5px;font-size:12px;font-weight:700}.account-permissions legend label{font-weight:400;margin-left:12px}.permission-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 12px}.permission-grid label{font-size:12px;display:flex;align-items:center;gap:5px}.permission-status{font-size:12px;margin-left:10px}.permission-status.saved{color:#2b6c50}.permission-status.error{color:#b34d40}@media(max-width:700px){.permission-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.account-permissions{padding:11px 9px}}

/* Center the motto across the full top banner, including the desktop layout override. */
@media(min-width:701px){
  main>header h1,
  main>header>div>p.motto-subtitle{grid-column:1/-1;text-align:center}
  main>header h1{grid-row:1}
  main>header>div>p.motto-subtitle{grid-row:2;margin-left:auto;margin-right:auto}
}

/* Password visibility toggle on the login form. */
.password-field{display:block;position:relative;margin-top:5px}
.password-field input{margin-top:0;padding-right:48px}
.password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:34px;height:34px;border-radius:50%;color:#557167;font-size:18px;line-height:1}
.password-toggle:hover{background:#edf3ed}
.password-toggle:focus-visible{outline:3px solid #d4aa55;outline-offset:2px}

.account-list-hint{padding:10px 2px;color:var(--muted);font-size:12px}.account-row{border:1px solid var(--line);border-radius:10px;background:#fff;margin:10px 0;overflow:hidden}.account-summary{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;padding:15px 16px;background:#fff;border:0;cursor:pointer}.account-summary:hover{background:#f5f8f2}.account-summary strong{display:block;font-size:16px}.account-summary small{display:block;color:var(--muted);font-size:12px;margin-top:5px}.account-summary-arrow{color:#2b6c50;font-size:12px;white-space:nowrap}.account-detail{padding:0 16px 18px;border-top:1px solid var(--line);background:#fbfcf9}.account-detail-actions{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 12px}.account-detail label{display:block}.account-detail[hidden]{display:none}.account-row:has(.account-detail:not([hidden])){border-color:#8eb49d;box-shadow:0 0 0 1px #dceee1}.account-summary-arrow::after{content:'展开';margin-left:4px}.account-detail:not([hidden])~.account-summary-arrow::after{content:'收起'}@media(max-width:700px){.account-summary{padding:13px 12px}.account-summary strong{font-size:15px}.account-summary-arrow{font-size:11px}.account-detail{padding:0 12px 14px}}
.account-reset{margin-top:14px;padding-top:14px;border-top:1px solid var(--line);display:grid;gap:8px}.account-reset h4{margin:0}.account-reset label{display:grid;gap:4px}.account-reset input{width:100%;box-sizing:border-box}
.role-next-button{display:block;width:100%;padding:6px 8px;border:1px solid transparent;border-radius:6px;background:transparent;color:inherit;text-align:left;white-space:normal;overflow-wrap:anywhere;cursor:pointer}.role-next-button:hover,.role-next-button:focus-visible{background:#edf4e7;border-color:#b9ceb9;color:#244a3c}.role-next-button span{float:right;margin-left:6px;color:#557b61}
.next-action-update{display:flex;gap:8px;align-items:end;flex-wrap:wrap;margin:8px 0 10px;padding:9px 10px;border:1px solid #dce8df;border-radius:8px;background:#f8fbf7}.next-action-update label{flex:1;min-width:180px;margin:0;font-size:11px;color:#5b725f}.next-action-update textarea{display:block;width:100%;margin-top:4px;min-height:42px;border:1px solid #cad9cd;border-radius:6px;padding:7px;font:inherit;font-size:12px;resize:vertical}.next-action-update button{white-space:nowrap;background:#2f6546;color:#fff;border:0;border-radius:6px;padding:8px 11px;font-size:12px}.next-action-history{font-size:11px;color:#6a786b;border-left:2px solid #b4c8b6;padding-left:9px;margin:0 0 10px}.next-action-history small{display:block;font-weight:600;margin-bottom:3px}.next-action-history p{margin:3px 0;line-height:1.6;overflow-wrap:anywhere}@media(max-width:700px){.next-action-update{display:block}.next-action-update button{margin-top:6px;width:100%}}

/* Empty next-step items can be removed directly by the owner. */
.task-delete-inline{color:#a44d3e!important;background:#fff1ed!important;border:1px solid #edc8bf!important;border-radius:6px;padding:5px 9px;font-size:12px;line-height:1.4;cursor:pointer}
.task-delete-inline:hover,.task-delete-inline:focus-visible{background:#fbe2dc!important;border-color:#cf8f81!important}
.task-delete-inline:disabled{opacity:.6;cursor:wait}
.task-missing-next .task-delete-inline{margin-left:4px}

/* Team execution is a compact control surface; complete source context stays in 全部事项. */
.team-execution-dashboard{grid-column:1/-1;display:grid;gap:16px;min-width:0}
.team-execution-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:12px;border:1px solid #dbe4d8;border-radius:12px;background:#f5f8f2}
.team-execution-metric{min-width:0;padding:10px 12px;border-radius:9px;background:#fff;border:1px solid #e3e9e0}
.team-execution-metric span{display:block;font-size:11px;color:#718073}
.team-execution-metric strong{display:block;margin-top:4px;font-size:24px;font-weight:650;color:#1e4b3a;font-variant-numeric:tabular-nums}
.team-execution-metric small{display:block;margin-top:3px;font-size:10px;color:#89968a;line-height:1.5}
.team-execution-group{min-width:0;border:1px solid #dce5d9;border-radius:12px;background:#fff;overflow:hidden}
.team-execution-group-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:#f1f5ed;border-bottom:1px solid #e1e9df}
.team-execution-group-heading h3{margin:0;font-size:15px;color:#214b3b}
.team-execution-group-heading small{display:block;margin-top:3px;font-size:11px;color:#778579}
.team-execution-group-heading>span{flex:0 0 auto;font-size:11px;color:#6f806f}
.team-execution-rows{display:grid}
.team-execution-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;padding:13px 14px;border-bottom:1px solid #edf1eb;min-width:0}
.team-execution-row:last-child{border-bottom:0}
.team-execution-main{min-width:0}
.team-execution-heading{display:flex;align-items:center;gap:8px;margin-bottom:5px}
.team-execution-heading .tag{font-size:10px;flex:0 0 auto}
.team-execution-due{font-size:11px;color:#627365;overflow-wrap:anywhere}
.team-execution-time{color:#47734b;font-weight:600}
.team-execution-due.late{color:#a34939;font-weight:650}
.team-execution-due.today{color:#2d724d;font-weight:650}
.team-execution-due.unplanned{color:#987539}
.team-execution-row .task-identity{display:block;margin:0 0 5px}
.team-execution-row .task-identity-main{font-size:14px}
.team-execution-row .task-identity-project{font-size:15px}
.team-execution-row .task-identity-source,.team-execution-row .task-identity-owner{font-size:11px}
.team-execution-party{margin:3px 0 5px;font-size:11px;color:#53685c;overflow-wrap:anywhere}
.team-execution-party strong{font-size:12px;color:#315744}
.team-execution-party .customer-followup{display:inline;margin-left:7px;font-size:10px}
.team-execution-next{margin:5px 0 0;padding:6px 9px;border-left:3px solid #8fb89e;border-radius:0 6px 6px 0;background:#f3f8f3;color:#315b45;font-size:12px;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap}
.team-execution-next small{display:inline-block;margin-right:6px;color:#63816c;font-size:10px}
.team-execution-next.missing{border-left-color:#c7a56a;background:#fbf7ec;color:#896a32}
.team-execution-next .task-delete-inline{margin-left:6px;padding:3px 7px;font-size:10px}
.team-execution-blocked{margin:5px 0 0;padding:5px 8px;border-radius:5px;background:#fff2ed;color:#9b4b3c;font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.team-execution-blocked.waiting{background:#fbf6e8;color:#87682c}
.team-execution-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap;max-width:280px}
.team-execution-actions button{padding:7px 9px;border-radius:6px;background:#e8efe6;color:#315d45;font-size:11px;white-space:nowrap}
.team-execution-actions button.primary-lite{background:#275b43;color:#fff}
.team-execution-actions button.outline{background:#fff;border:1px solid #cbd9cb}
.team-complete-check{display:flex;align-items:center;gap:4px;font-size:11px;color:#506257;white-space:nowrap}
.team-complete-check input{width:16px;height:16px;margin:0;accent-color:#2d6848}
.team-execution-empty{grid-column:1/-1}
.team-review-queue{margin-top:0}
@media(max-width:700px){
 .team-execution-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:9px}
 .team-execution-metric{padding:8px 9px}
 .team-execution-metric strong{font-size:21px}
 .team-execution-metric small{font-size:9px}
 .team-execution-group-heading{padding:10px 11px}
 .team-execution-group-heading h3{font-size:13px}
 .team-execution-group-heading small,.team-execution-group-heading>span{font-size:10px}
 .team-execution-row{grid-template-columns:1fr;gap:9px;padding:11px}
 .team-execution-row .task-identity-main,.team-execution-row .task-identity-project{font-size:14px}
 .team-execution-actions{justify-content:flex-start;max-width:none;gap:5px}
 .team-execution-actions button{padding:6px 8px;font-size:10px}
 .team-complete-check{font-size:10px}
}
@media(max-width:360px){.team-execution-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.team-execution-metric span{font-size:10px}.team-execution-metric strong{font-size:19px}.team-execution-group-heading{align-items:flex-start;flex-direction:column;gap:3px}.team-execution-actions button{font-size:10px;padding:6px 7px}}

/* Append-only action history, shared by progress entry points. */
.action-history{margin:12px 0;padding:12px;border:1px solid #d5dfd8;border-radius:8px;background:#f7faf7;min-width:0}.action-history>label{display:block;margin:8px 0}.action-history-list{max-height:230px;overflow:auto;overflow-wrap:anywhere}.action-history-list article{padding:8px 0;border-bottom:1px solid #dce5df}.action-history-list p{margin:4px 0;white-space:pre-wrap}.action-history small{color:#62736b}.action-history .action-current{margin:10px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.action-history [hidden]{display:none!important}

/* Compact all-items cards; wrap metadata naturally on phones. */
.all-task-card .compact-task-identity{margin-bottom:8px}
.all-task-card .compact-task-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;margin-top:6px;font-size:12px;color:#65786b;line-height:1.7}
.all-task-card .compact-task-meta>span{min-width:0;overflow-wrap:anywhere}
.all-task-card .compact-task-meta .tag{font-size:11px;padding:2px 7px;margin:0;line-height:1.7}
.shipment-card-summary{display:flex;align-items:flex-start;gap:8px 18px;flex-wrap:wrap;margin:7px 0 9px;padding:9px 11px;border-left:3px solid #2f765b;border-radius:0 8px 8px 0;background:#edf5ef;color:#234c3c}
.shipment-card-summary span{display:grid;gap:1px;min-width:110px}
.shipment-card-summary small{font-size:10px;color:#678075;line-height:1.35}
.shipment-card-summary strong{font-size:12px;line-height:1.55;overflow-wrap:anywhere}
.all-task-card .compact-task-due{margin-left:auto;font-variant-numeric:tabular-nums}
.all-task-card .compact-party-row{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;margin:0 0 9px}
.all-task-card .compact-party-row .task-party{display:flex;align-items:center;flex-wrap:wrap;gap:4px;font-size:13px}
.all-task-card .compact-party-row .customer-followup{margin:0}
.all-task-card .compact-next-actions{white-space:normal;padding:9px 12px;margin:0 0 10px;border-left:3px solid #4886b6;background:#f0f6fc;border-radius:0 9px 9px 0}
.compact-next-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:#5a7a97}
.compact-next-heading button{font-size:11px;padding:3px 6px;text-decoration:underline}
.compact-next-actions ol{list-style:none;margin:4px 0 0;padding:0}
.compact-next-actions li{padding:5px 0;overflow-wrap:anywhere}
.compact-next-actions li+li{border-top:1px solid #dae5f0}
.all-task-card .compact-next-actions li p{margin:0;font-size:13px;line-height:1.6;white-space:pre-wrap;color:#254d70}
.all-task-card .compact-next-actions li small{display:block;margin:2px 0 0;font-size:10px;color:#6d8195;line-height:1.5}
@media(max-width:700px){.all-task-card .compact-task-meta{gap:3px 8px;font-size:11px}.all-task-card .compact-task-due{margin-left:0}.all-task-card .compact-party-row{gap:3px 8px}}

/* Consistent compact spacing across the existing workbench. Full text and bottom actions stay available. */
#workspace main .section-title{margin:12px 0 9px;gap:8px;flex-wrap:wrap}
#workspace main .toolbar{gap:8px;padding-bottom:10px;flex-wrap:wrap}
#workspace main .tabs{flex-wrap:wrap;gap:4px}
#workspace main .cards{gap:10px}
#workspace main .card{padding:14px}
#workspace .task-identity-meta{display:flex;align-items:center;flex-wrap:wrap;gap:2px 10px;margin-top:4px;min-width:0}
#workspace .task-identity-meta .task-identity-source,#workspace .task-identity-meta .task-identity-owner{display:inline;margin:0;line-height:1.6;overflow-wrap:anywhere}
#workspace .task-identity-main{line-height:1.5}
#workspace .task-card-summary-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px 12px;margin:7px 0 9px;padding:7px 9px;background:#f5f8f3;border:1px solid #e2e9df;border-radius:7px;min-width:0}
#workspace .task-card-summary-row span{display:flex;align-items:baseline;gap:4px;min-width:0;overflow-wrap:anywhere}
#workspace .task-card-summary-row small{flex:0 0 auto;color:#7a8a7a;font-size:10px}
#workspace .task-card-summary-row strong{min-width:0;color:#31533d;font-size:12px;font-weight:600;overflow-wrap:anywhere}
#workspace .all-task-card .task-card-summary-row{margin:4px 0 8px;font-size:11px}
#workspace .all-task-card .task-card-summary-row strong{font-size:11px}
#workspace .image-drop-note{margin:4px 0 7px!important;font-size:10px!important;color:#738575!important}
@media(max-width:620px){#workspace .task-card-summary-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px;padding:6px 8px}}
@media(max-width:360px){#workspace .task-card-summary-row{gap:4px 6px}#workspace .task-card-summary-row small{font-size:9px}#workspace .task-card-summary-row strong{font-size:11px}}
#workspace .card .card-top,#workspace .card .card-meta{gap:5px 10px;margin-bottom:7px;flex-wrap:wrap}
#workspace .card .task-card-context{display:flex;align-items:center;flex-wrap:wrap;gap:3px 10px}
#workspace .card .task-party{display:flex;align-items:center;flex-wrap:wrap;gap:4px}
#workspace .card p{margin-bottom:7px}
#workspace .card .card-footer{gap:6px;flex-wrap:wrap;padding-top:8px}
#workspace .card .card-footer button{padding:7px 10px}
#workspace .card-image-actions{gap:6px;margin:6px 0;flex-wrap:wrap}
#workspace .all-task-card .compact-task-meta{gap:3px 9px}
#workspace .team-execution-row{padding:10px 12px;gap:8px}
#workspace .team-execution-group-heading{padding:9px 12px}
#workspace .team-execution-facts{gap:4px 10px;margin:4px 0}
#workspace .review-row{padding:9px 10px;gap:8px}
#workspace .review-row-actions{gap:5px;flex-wrap:wrap}
#workspace .metrics{gap:9px;margin-bottom:14px}
#workspace .metric{padding:12px}
#workspace .metric strong{margin-top:4px}
#workspace .metric small{margin-top:4px}
#workspace .role-board{padding:15px}
#workspace .role-heading h2{margin:3px 0 5px}
#workspace .role-heading p{margin:3px 0}
#workspace .role-stats{gap:8px;margin:12px 0}
#workspace .role-stats button{flex-direction:row;align-items:center;justify-content:space-between;gap:8px;padding:9px 11px}
#workspace .role-stats b{font-size:23px}
#workspace .role-categories{gap:5px;margin:9px 0}
#workspace .role-categories button,#workspace .role-list-head button{padding:6px 9px}
#workspace .role-list-head{margin-top:12px}
#workspace .role-table th,#workspace .role-table td{padding:9px 8px}
#workspace .role-table small{margin-top:3px}
#workspace .role-row-actions{gap:4px}
#workspace .role-templates{margin-top:14px;padding:10px}
#workspace #company-panel .company-heading{margin-bottom:11px;gap:9px}
#workspace #company-panel .company-heading h2{margin-bottom:4px}
#workspace #company-panel .founder-commitment-heading{justify-content:center;text-align:center}
#workspace #company-panel .founder-commitment-heading>div{width:100%}
#workspace .company-grid{gap:9px}
#workspace .company-card{padding:12px}
#workspace .company-card h3{margin-bottom:5px}
#workspace .company-card p{margin:4px 0 7px;line-height:1.6}
#workspace .company-card small{margin:5px 0}
#workspace .company-tabs{gap:4px;margin-bottom:10px}
#workspace .company-note{margin:8px 0 11px}
#workspace .company-task{margin-bottom:10px;padding:13px 14px 10px}
#workspace .company-task .compact-task-identity{display:block;margin:0 0 7px}
#workspace .company-task .compact-task-meta{display:flex;align-items:center;flex-wrap:wrap;gap:3px 10px;margin-top:5px;font-size:12px;line-height:1.6;color:#65786b}
#workspace .company-task .compact-task-meta>span{min-width:0;overflow-wrap:anywhere}
#workspace .company-task .compact-task-meta .tag{padding:2px 7px;font-size:11px;line-height:1.7}
#workspace .company-task .compact-task-due{margin-left:auto}
#workspace .company-task .task-identity-main{font-size:16px;line-height:1.5}
#workspace .company-task .bar-task-party{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px;margin:3px 10px 6px 0;font-size:13px}
#workspace .company-task .bar-task-party strong{font-size:15px;margin:0 3px}
#workspace .company-task>.customer-followup{display:inline-block;margin:3px 0 6px;font-size:11px}
#workspace .company-task .bar-task-next{padding:9px 11px;border-left-width:3px;font-size:14px}
#workspace .company-task .bar-task-next small{font-size:11px;margin-bottom:3px}
#workspace .company-task .bar-task-context{margin:8px 0;padding:7px 0}
#workspace .company-task .bar-task-context summary{font-size:12px}
#workspace .company-task .bar-task-actions{gap:6px;margin-top:8px}
#workspace .company-task .bar-task-actions button{padding:7px 10px}
#workspace .company-task .company-work-actions{gap:7px;margin:6px 0;display:flex;flex-wrap:wrap}
#workspace .company-task .company-work-next{padding:8px 10px;margin:5px 0 8px}
#workspace .company-task .company-work-next small{display:inline;margin:0 8px 0 0;font-size:11px}
#workspace .company-task .company-work-next span{display:inline;font-size:14px}
#workspace .company-task .company-work-check{font-size:13px}
#workspace .company-task>button{margin:3px 4px 3px 0;padding:7px 10px}
#workspace .company-task>p{margin:5px 0}
#workspace .company-task .compact-next-actions{padding:8px 10px;background:#eef5fb;border-left:3px solid #4886b6;margin:5px 0 8px;border-radius:0 8px 8px 0}
#workspace .company-task .compact-next-actions li p{margin:0;font-size:13px;line-height:1.6;white-space:pre-wrap}
#workspace .company-task .compact-next-actions small{font-size:10px}
#workspace .compact-progress-editor,#workspace .card-action-editor{margin:7px 0;border:1px solid #dce5dc;border-radius:7px;padding:7px 10px}
#workspace .compact-progress-editor>summary,#workspace .card-action-editor>summary{cursor:pointer;font-size:12px;color:#456456;line-height:1.7}
#workspace .company-progress-update{margin:8px 0;padding:8px 10px}
#workspace .company-work-form{margin:8px 0;max-width:100%}
#workspace .company-work-form label{margin-bottom:7px}
#workspace .company-work-grid{gap:8px}
#workspace .mg-heading,#workspace .sales-heading{gap:10px;margin-bottom:10px}
#workspace .mg-heading h2,#workspace .sales-heading h2{margin:4px 0}
#workspace .mg-direction{padding:12px;margin:10px 0;gap:8px}
#workspace .mg-dashboard{padding:15px;margin:12px 0 16px}
#workspace .mg-dashboard-title{margin-bottom:10px;gap:10px}
#workspace .mg-kpi-grid,#workspace .mg-health-grid,#workspace .mg-items,#workspace .mg-goals{gap:9px}
#workspace .mg-kpi{padding:13px}
#workspace .mg-kpi-number{margin:11px 0 4px}
#workspace .mg-kpi-mom{margin:8px 0}
#workspace .mg-kpi-divider{margin-bottom:8px}
#workspace .mg-goal,#workspace .mg-item{padding:12px}
#workspace .mg-nav{gap:5px;margin:9px 0}
#workspace .mg-nav button{padding:7px 10px}
#workspace .mg-buttons{gap:6px;flex-wrap:wrap}
#workspace .sales-summary,#workspace .sales-opportunity-list{padding:12px;margin:10px 0}
#workspace .sales-key-facts{gap:4px 9px;margin:6px 0}
#workspace .sales-row-actions{gap:5px;margin-top:7px}
#workspace .sales-message-item{margin-bottom:6px}
#workspace .sales-followup{padding:6px 9px;margin-bottom:7px}
#workspace .sales-compact-table th,#workspace .sales-compact-table td{padding:8px}
#workspace .action-history,dialog .action-history{margin:8px 0;padding:9px}
#workspace .action-history>label,dialog .action-history>label{margin:5px 0}
#workspace .action-history-list article,dialog .action-history-list article{padding:6px 0}
#workspace .action-history .action-current,dialog .action-history .action-current{margin-top:6px}
body dialog .form-grid{gap:9px 12px}
body dialog .form-grid>label{min-width:0;margin:0}
body dialog input:not([type=checkbox]):not([type=radio]),body dialog select{padding:8px 10px;min-height:36px}
body dialog textarea{padding:8px 10px;line-height:1.5}
body dialog .dialog-head{margin-bottom:10px}
body dialog .dialog-foot{gap:7px;padding-top:9px;padding-bottom:9px}
body dialog .dialog-foot button{padding:9px 13px;min-height:38px}
body dialog .source-box{padding:10px;margin:9px 0}
body dialog .item-detail{margin:9px 0;padding:10px}
body dialog .item-detail h3{margin:6px 0}
body dialog .item-detail p,body dialog .item-detail li{line-height:1.65}
body dialog [id$='-coassignment']{padding:8px 0}
body dialog [id$='-coassignment']>div{gap:5px!important;margin-top:5px!important}
body dialog [id$='-coassignment'] label{padding:6px 8px!important}
@media(min-width:1000px){
 body #editor .editor-basic,body #task-create .form-grid,body #candidate-dialog #accept-fields{grid-template-columns:repeat(3,minmax(0,1fr))}
 body #editor .editor-basic>.wide,body #task-create .form-grid>.wide{grid-column:1/-1}
 body #editor .editor-basic>label:has(textarea),body #task-create .form-grid>label:has(textarea){grid-column:1/-1}
}
@media(max-width:700px){
 #workspace main .card,#workspace .company-task{padding:11px 12px}
 #workspace .role-board{padding:11px}
 #workspace .role-stats{gap:6px;margin:9px 0}
 #workspace .role-stats button{padding:8px;gap:5px}
 #workspace .role-stats b{font-size:21px}
 #workspace .role-categories button,#workspace .role-list-head button{min-height:36px}
 #workspace .company-task .compact-task-meta{font-size:11px;gap:3px 8px}
 #workspace .company-task .compact-task-due{margin-left:0}
 #workspace .company-task .task-identity-main{font-size:15px}
 #workspace .company-task button,#workspace .card-footer button,#workspace .team-execution-actions button,#workspace .sales-row-actions button{min-height:36px}
 #workspace .mg-dashboard{padding:11px;margin:9px 0 12px}
 #workspace .mg-kpi{padding:12px}
 #workspace .mg-kpi-grid{gap:8px}
 #workspace .company-heading,#workspace .mg-heading,#workspace .sales-heading{gap:7px}
 body dialog .form-grid{gap:8px}
 body dialog input:not([type=checkbox]):not([type=radio]),body dialog select,body dialog textarea{font-size:16px}
 body dialog .dialog-foot button{min-height:40px}
}
/* Pair short fields on phones; long descriptions keep the full row. */
@media(max-width:700px){
 body #editor .editor-basic,body #task-create .form-grid,body #candidate-dialog #accept-fields,body #sales-dialog .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body #editor .editor-basic>.wide,body #task-create .form-grid>.wide,body #candidate-dialog #accept-fields>.wide,body #sales-dialog .form-grid>.wide,body #sales-dialog .form-grid>.action-history{grid-column:1/-1}
 body #editor .editor-basic>label:has(textarea),body #task-create .form-grid>label:has(textarea),body #candidate-dialog #accept-fields>label:has(textarea),body #sales-dialog .form-grid>label:has(textarea){grid-column:1/-1}
 body #sales-dialog .form-grid>label:has(input[name=customer]),body #sales-dialog .form-grid>label:has(input[name=project]),body #sales-dialog .form-grid>label:has(input[name=source_label]){grid-column:1/-1}
 body #editor .editor-basic>label:has(#task-project),body #editor .editor-basic>label:has(#task-name-input),body #editor .editor-basic>label:has(#task-title-input),body #task-create .form-grid>label:has(#create-name),body #task-create .form-grid>label:has(#create-project),body #task-create .form-grid>label:has(#create-title){grid-column:1/-1}
 body #sales-dialog .form-grid>label:has(input[name=due]),body #task-create .form-grid>label:has(input[type=date]),body #editor .editor-basic>label:has(input[type=date]){grid-column:1/-1}
}

@media(max-width:700px){body #candidate-dialog #accept-fields>label:has(#candidate-project),body #candidate-dialog #accept-fields>label:has(input[type=date]){grid-column:1/-1}}

/* Management actions: emphasize the actual next step and keep context secondary. */
#workspace .mg-item .mg-card-title{font-size:10px;line-height:1.5;align-items:center;color:#788477}
#workspace .mg-item .mg-card-title button{font-size:11px}
#workspace .mg-item>h3{font-size:15px;margin:7px 0;line-height:1.5}
#workspace .mg-item>.mg-item-impact{font-size:11px;line-height:1.5;margin:4px 0 7px;color:#788477}
#workspace .mg-item .mg-next{display:block;width:100%;text-align:left;white-space:normal;padding:10px 12px;margin:7px 0;border:1px solid #d7e5f2;border-radius:8px;background:#eef5fc;color:#174f87}
#workspace .mg-item .mg-next-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:5px}
#workspace .mg-item .mg-next-label{font-size:10px;line-height:1.5;font-weight:400;color:#71869a}
#workspace .mg-item .mg-next-cta{display:block;text-align:right;margin-top:7px;font-size:11px;line-height:1.5;font-weight:600;text-decoration:underline;text-underline-offset:3px}
#workspace .mg-item .mg-next-content{display:block;font-size:17px;font-weight:700;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
#workspace .mg-item>small{display:block;font-size:10px;line-height:1.6;color:#788477}
#workspace .mg-item>details{margin-top:8px}
#workspace .mg-item>details>summary{font-size:11px;color:#788477}
#workspace .mg-item .mg-next:focus-visible{outline:2px solid #174f87;outline-offset:2px}

/* Compact operating cards; subtitles use verified company philosophy headings. */
#workspace .mg-kpi{padding:10px}
:is(#management-panel,.dashboard-standard) .mg-kpi-top{gap:7px;align-items:center}
:is(#management-panel,.dashboard-standard) .mg-kpi-heading{display:flex;flex:1;min-width:0;align-items:baseline;flex-wrap:wrap;gap:2px 8px;line-height:1.4}
:is(#management-panel,.dashboard-standard) .mg-kpi-title{font-size:14px;font-weight:700;color:#234334}
:is(#management-panel,.dashboard-standard) .mg-kpi-philosophy{font-size:10px;font-weight:400;color:#71836e;overflow-wrap:anywhere}
:is(#management-panel,.dashboard-standard) .mg-kpi-icon{width:26px;height:26px;border-radius:7px}
:is(#management-panel,.dashboard-standard) .mg-kpi-icon svg{width:18px;height:18px}
:is(#management-panel,.dashboard-standard) .mg-kpi-edit{flex-shrink:0;margin-left:auto}
:is(#management-panel,.dashboard-standard) .mg-kpi-plans{margin-top:5px;padding:4px 0;gap:3px}
:is(#management-panel,.dashboard-standard) .mg-plan-heading{justify-content:flex-end;line-height:1.2;margin-bottom:0}
:is(#management-panel,.dashboard-standard) .mg-payable-heading{justify-content:space-between}
:is(#management-panel,.dashboard-standard) .mg-kpi-main{margin:6px 0;gap:8px}
#workspace .mg-kpi-number{margin:0 0 2px;font-size:27px}
:is(#management-panel,.dashboard-standard) .mg-gauge{width:56px;height:56px;flex-basis:56px}
:is(#management-panel,.dashboard-standard) .mg-gauge>span{gap:2px}
:is(#management-panel,.dashboard-standard) .mg-gauge b{font-size:11px}
:is(#management-panel,.dashboard-standard) .mg-gauge small{font-size:8px}
:is(#management-panel,.dashboard-standard) .mg-five-columns{padding:20px 0 4px;gap:4px}
:is(#management-panel,.dashboard-standard) .mg-five-columns .mg-period-row{grid-template-rows:64px auto minmax(26px,auto);gap:4px}
:is(#management-panel,.dashboard-standard) .mg-five-columns .mg-period-track{height:64px;background-image:repeating-linear-gradient(to top,#80947715 0,#80947715 1px,transparent 1px,transparent 16px)}
:is(#management-panel,.dashboard-standard) .mg-five-columns .mg-column-label small{margin-top:1px}
:is(#management-panel,.dashboard-standard) .mg-five-columns .mg-column-change .mg-kpi-mom{margin:0}
:is(#management-panel,.dashboard-standard) .mg-quality-report .mg-kpi-top{padding-bottom:7px}
:is(#management-panel,.dashboard-standard) .mg-quality-rate{margin:10px 0 5px}
:is(#management-panel,.dashboard-standard) .mg-quality-rate strong{font-size:30px}
:is(#management-panel,.dashboard-standard) .mg-quality-report h4{margin:12px 0 7px}
@media(max-width:380px){#workspace .mg-kpi{padding:9px}:is(#management-panel,.dashboard-standard) .mg-kpi-top{gap:5px}:is(#management-panel,.dashboard-standard) .mg-kpi-heading{gap:2px 6px}#workspace .mg-kpi-number{font-size:25px}}

:is(#management-panel,.dashboard-standard) .mg-five-columns .mg-period-value>b{white-space:normal;line-height:1.15}
:is(#management-panel,.dashboard-standard) .mg-period-digits,:is(#management-panel,.dashboard-standard) .mg-period-unit{display:inline-block;white-space:nowrap}

:is(#management-panel,.dashboard-standard) .mg-kpi-feature .mg-kpi-title{color:#fff}
:is(#management-panel,.dashboard-standard) .mg-kpi-feature .mg-kpi-philosophy{color:#c7d9c4}
:is(#management-panel,.dashboard-standard) .mg-kpi-feature .mg-five-columns .mg-period-track{background-image:repeating-linear-gradient(to top,#ffffff13 0,#ffffff13 1px,transparent 1px,transparent 16px)}

/* Closed archive: numbered titles first; canonical contents expand in place. */
body[data-current-view="已验收"] #cards{display:block}
#closed-history{display:grid;gap:6px;width:100%;min-width:0}
.closed-history-row{min-width:0;border:1px solid #d9e2d5;border-radius:7px;background:#fff}
.closed-history-row>summary{display:flex;align-items:baseline;gap:6px;cursor:pointer;list-style:none;padding:10px 12px;line-height:1.5;color:#1d4035;font-size:14px;font-weight:600;overflow-wrap:anywhere}
.closed-history-row>summary::-webkit-details-marker{display:none}
.closed-history-row>summary:focus-visible{outline:2px solid #51896a;outline-offset:2px;border-radius:7px}
.closed-history-number{flex:0 0 24px;font-variant-numeric:tabular-nums;color:#73836e;font-size:12px}
.closed-history-title{flex:1;min-width:0}
.closed-history-row[open]>summary{background:#edf3e9;border-bottom:1px solid #d9e2d5;border-radius:7px 7px 0 0}
.closed-history-content{padding:8px;min-width:0}
#workspace .closed-history-content>.company-task{margin:0;min-width:0}
.closed-history-filters{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin:8px 0}
.closed-history-filters label{display:block;flex:1;min-width:130px;font-size:11px;color:#687b67;margin:0}
.closed-history-filters select{display:block;width:100%;max-width:100%;min-height:36px;margin-top:3px;padding:6px 8px;font-size:12px;border:1px solid #d8e1d3;border-radius:6px;background:#fff}
.closed-history-filters>button{min-height:36px;font-size:12px}
@media(max-width:700px){.closed-history-filters label{flex-basis:calc(50% - 8px);min-width:0}.closed-history-filters label:last-of-type{flex-basis:70%}.closed-history-row>summary{padding:9px;font-size:13px}.closed-history-content{padding:5px}}

/* Management cards: make the subject the primary reading anchor. */
#workspace :is(#management-panel,.dashboard-standard) .mg-item>h3{font-size:23px;font-weight:800;line-height:1.4;color:#183e35;margin:11px 0 12px;letter-spacing:0;overflow-wrap:anywhere}
#workspace :is(#management-panel,.dashboard-standard) .mg-item .mg-next-content{font-size:16px;font-weight:600;line-height:1.6}
@media(max-width:700px){#workspace :is(#management-panel,.dashboard-standard) .mg-item>h3{font-size:21px;margin:9px 0 11px}#workspace :is(#management-panel,.dashboard-standard) .mg-item .mg-next-content{font-size:15px}}
.chat-source-candidates{margin:12px 0;padding:12px;border:1px solid #dfe6d9;border-radius:9px;background:#fafcf8}.chat-source-candidates>strong{display:block;font-size:12px;margin-bottom:5px}.chat-source-candidates .hint{margin:4px 0 10px}
.candidate-sales-sync{margin:14px 0;padding:12px;border:1px solid #dfe6d9;border-radius:9px;background:#f8fbf6}.candidate-sales-sync h3{margin:0 0 6px;font-size:14px}.candidate-sales-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0}.candidate-sales-fields label{font-size:12px}.candidate-sales-fields input{display:block;width:100%;margin-top:4px;padding:8px;border:1px solid #ccd8ca;border-radius:6px;background:#fff}@media(max-width:700px){.candidate-sales-fields{grid-template-columns:1fr}}

/* Sales project directions stay side by side, including in the sticky dialog footer. */
dialog.project-link-dialog[data-bottom-actions][data-bottom-actions]:not(#quick-dialog) .dialog-foot{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:6px}
.project-link-dialog .mg-buttons button[data-link-direction]{min-width:0;width:100%;margin:0;padding:9px 6px;font-size:12px;white-space:nowrap}
#sales-dialog #sales-save-error:not(:empty){flex:1 0 100%;margin:0 0 4px;color:#a52c25;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;outline:none}
#image-upload{max-width:560px;width:calc(100% - 20px);max-height:calc(100vh - 24px);overflow:auto}#image-upload .dialog-head{padding:10px 14px}#image-upload>.hint,#image-upload form>.hint{margin:5px 0;font-size:11px}#image-upload .chat-image-picker{margin:8px 0;padding:8px}#image-upload .image-input-actions{margin:8px 0}#image-upload .image-drop-hint{padding:12px;margin:8px 0}#image-upload #image-context{min-height:54px}#image-upload label{margin:7px 0}#image-upload .image-pool-empty p:nth-child(2){display:none}#image-upload .image-pool-empty{padding:8px;margin:4px 0}

/* Each task gets a full-width row so project information remains readable. */
#workspace .cards:has(>.unified-task-card){grid-template-columns:minmax(0,1fr)}

/* Shared task action panel and compact controls, approved reference 2026-10-22. */
#workspace .company-task .task-action-panel{display:block;width:100%;text-align:left;padding:12px 14px;margin:8px 0;border:1px solid #d3e3f5;border-radius:10px;background:#eef5fc;color:#174f87;white-space:normal}
#workspace .company-task .task-action-label{display:block;margin-bottom:7px;font-size:12px;line-height:1.5;font-weight:400;color:#71869a}
#workspace .company-task .task-action-content{display:block;font-size:18px;font-weight:700;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
#workspace .company-task .task-action-cta{display:block;text-align:right;margin-top:10px;font-size:14px;font-weight:600;text-decoration:underline;text-underline-offset:3px}
#workspace .company-task .task-action-panel:focus-visible{outline:2px solid #174f87;outline-offset:2px}
#workspace .company-task .task-action-history{margin:4px 0 8px;font-size:12px;color:#61766c}
#workspace .company-task .task-action-history summary{cursor:pointer;font-size:11px}
#workspace .company-task .task-action-history ol{margin:8px 0;padding-left:20px}
#workspace .company-task .task-action-history li p{margin:3px 0;white-space:pre-wrap;overflow-wrap:anywhere}
#workspace .company-task .task-action-history small{font-size:10px}
#workspace .company-task .task-card-actions{display:flex;align-items:center;flex-wrap:wrap;gap:5px;padding-top:8px;margin-top:8px;border-top:1px solid #e4ebe4}
#workspace .company-task .task-card-actions>button,#workspace .company-task .task-card-actions>.bar-task-check{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:34px;margin:0;padding:6px 9px;border:1px solid #cbd8ce;border-radius:7px;font-size:12px;line-height:1.4;white-space:nowrap;flex:0 0 auto}
#workspace .company-task .task-card-actions>.bar-task-check{margin-right:0;background:#f5f7f3;cursor:pointer}
#workspace .company-task .task-card-actions>.bar-task-check input{width:16px;height:16px;margin:0}
#workspace .company-task .task-card-actions>.bar-task-primary{background:#216148;border-color:#216148;color:white}
@media(max-width:440px){#workspace .company-task .task-action-panel{padding:11px 12px}#workspace .company-task .task-action-content{font-size:17px}#workspace .company-task .task-card-actions{gap:5px}#workspace .company-task .task-card-actions>button,#workspace .company-task .task-card-actions>.bar-task-check{font-size:11px;padding:6px 7px;min-height:34px}}

/* Shared dashboard presentation: company and every bar use the same card standard. */
/* Compact operating cards; subtitles use verified company philosophy headings. */
#workspace .mg-kpi{padding:10px}
:is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-kpi-top{gap:7px;align-items:center}
:is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-kpi-heading{display:flex;flex:1;min-width:0;align-items:baseline;flex-wrap:wrap;gap:2px 8px;line-height:1.4}
:is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-kpi-title{font-size:14px;font-weight:700;color:#234334}
:is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-kpi-philosophy{font-size:10px;font-weight:400;color:#71836e;overflow-wrap:anywhere}
:is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-kpi-icon{width:26px;height:26px;border-radius:7px}
:is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-kpi-icon svg{width:18px;height:18px}
:is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-kpi-edit{flex-shrink:0;margin-left:auto}
:is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-kpi-plans{margin-top:5px;padding:4px 0;gap:3px}
:is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-plan-heading{justify-content:flex-end;line-height:1.2;margin-bottom:0}
:is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-payable-heading{justify-content:space-between}
:is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-kpi-main{margin:6px 0;gap:8px}
#workspace .mg-kpi-number{margin:0 0 2px;font-size:27px}
:is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-gauge{width:56px;height:56px;flex-basis:56px}
:is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-gauge>span{gap:2px}
:is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-gauge b{font-size:11px}
:is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-gauge small{font-size:8px}
:is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-five-columns{padding:20px 0 4px;gap:4px}
:is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-five-columns .mg-period-row{grid-template-rows:64px auto minmax(26px,auto);gap:4px}
:is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-five-columns .mg-period-track{height:64px;background-image:repeating-linear-gradient(to top,#80947715 0,#80947715 1px,transparent 1px,transparent 16px)}
:is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-five-columns .mg-column-label small{margin-top:1px}
:is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-five-columns .mg-column-change .mg-kpi-mom{margin:0}
:is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-quality-report .mg-kpi-top{padding-bottom:7px}
:is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-quality-rate{margin:10px 0 5px}
:is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-quality-rate strong{font-size:30px}
:is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-quality-report h4{margin:12px 0 7px}
@media(max-width:380px){#workspace .mg-kpi{padding:9px}:is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-kpi-top{gap:5px}:is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-kpi-heading{gap:2px 6px}#workspace .mg-kpi-number{font-size:25px}}

:is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-five-columns .mg-period-value>b{white-space:normal;line-height:1.15}
:is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-period-digits,:is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-period-unit{display:inline-block;white-space:nowrap}

:is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-kpi-feature .mg-kpi-title{color:#fff}
:is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-kpi-feature .mg-kpi-philosophy{color:#c7d9c4}
:is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-kpi-feature .mg-five-columns .mg-period-track{background-image:repeating-linear-gradient(to top,#ffffff13 0,#ffffff13 1px,transparent 1px,transparent 16px)}


#workspace :is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-heading{display:flex;align-items:center;justify-content:flex-start;gap:10px;flex-wrap:wrap;margin:2px 0 12px}
#workspace :is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-heading h2{font-size:21px;margin:3px 0}
#workspace :is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-month-control{display:block;flex:0 1 150px;max-width:170px;margin:0}
#workspace :is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-month-control input{width:100%;min-width:0;margin:0;padding:9px;font-size:13px}
#workspace :is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-dashboard-actions{display:flex;align-items:center;gap:10px;margin-left:auto;flex-wrap:wrap}
#workspace :is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#workspace :is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-kpi-top{padding-bottom:6px;border-bottom:1px solid #dfe5dc}
#workspace .bar-dashboard .mg-health{margin:0}
#workspace .bar-dashboard .mg-kpi-bottom{display:none}
#workspace .bar-dashboard .bar-dashboard-source{margin-top:12px}
@media(max-width:700px){#workspace :is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-kpi-grid{grid-template-columns:minmax(0,1fr)}#workspace :is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-heading h2{font-size:20px}#workspace :is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-month-control{flex-basis:145px}#workspace :is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-dashboard-actions{gap:6px}}

/* Narrow the all-items filter rail and move the task list left. */
@media(min-width:721px){
 body.all-compact #workspace main{grid-template-columns:120px minmax(0,1fr);column-gap:10px}
 body.all-compact #workspace .all-board-tools{padding:8px}
 body.all-compact #workspace .all-domain-tabs button,body.all-compact #workspace .all-time-chips button{padding:6px;font-size:11px}
 body.all-compact #workspace .all-filter-row select{padding:6px 3px;font-size:11px;min-width:0;max-width:100%}
}
/* Company calendar: keep the month picker at the right edge and tighten the summary stack. */
.calendar-controls{justify-content:space-between;gap:8px;margin-bottom:8px}
.calendar-month-navigation{display:flex;align-items:center;gap:6px}
.calendar-month-navigation button{padding:6px 9px}
.calendar-controls>#calendar-month{margin-left:auto;width:150px;padding:6px 8px}
.calendar-summary{gap:8px;padding:9px 12px;margin-bottom:8px}
.calendar-summary b{font-size:20px;margin-left:5px}
@media(max-width:600px){.calendar-controls{gap:6px;margin-bottom:6px}.calendar-month-navigation{gap:3px}.calendar-month-navigation button{padding:5px 7px}.calendar-controls>#calendar-month{width:138px;font-size:13px;padding:5px 6px}.calendar-summary{gap:6px;padding:8px 10px;margin-bottom:6px}.calendar-summary b{font-size:17px}}

/* Attached task pictures lead the content, matching the opportunity list. */
#workspace .company-task .task-media-layout{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:start;gap:12px;min-width:0}
#workspace .company-task .task-leading-images,#workspace .company-task .task-main-content{min-width:0;max-width:100%;overflow-wrap:anywhere}
#workspace .company-task .task-leading-images .image-gallery{padding:0;margin:0;border:0}
#workspace .company-task .task-leading-images .image-thumbnails{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;margin:0}
#workspace .company-task .task-leading-images .image-thumbnails button{display:block;width:100%;min-width:0;margin:0;padding:2px;background:#f7f8f4;border:1px solid #dce2da;border-radius:6px}
#workspace .company-task .task-leading-images .image-thumbnails img{display:block;width:64px;max-width:100%;height:64px;object-fit:contain;margin:auto}
#workspace .company-task .task-leading-images .image-thumbnails span{display:block;white-space:normal;font-size:10px;line-height:1.4;overflow-wrap:anywhere}
#workspace .company-task .task-leading-images .gallery-title{display:flex;flex-wrap:wrap;gap:0;margin:0 0 5px}
#workspace .company-task .task-leading-images .gallery-title strong{display:none}
#workspace .company-task .task-leading-images .gallery-title button{padding:0;font-size:10px;white-space:normal;line-height:1.5}
#workspace .company-task .task-leading-images>.image-gallery>.hint{display:none}
#workspace .company-task .task-leading-images .image-missing{font-size:10px;line-height:1.4}
@media(max-width:440px){#workspace .company-task .task-media-layout{grid-template-columns:62px minmax(0,1fr);gap:9px}#workspace .company-task .task-leading-images .image-thumbnails img{width:54px;height:54px}}

/* Ordinary and all-task cards use the same left image rail as bar cards. */
#workspace .card:has(>.image-gallery){display:grid;grid-template-columns:72px minmax(0,1fr);align-items:start;column-gap:12px}
#workspace .card:has(>.image-gallery)>:not(.image-gallery){grid-column:2}
#workspace .card:has(>.image-gallery)>.image-gallery{grid-column:1;grid-row:1 / span 30;margin:0;padding:0;border:0}
#workspace .card:has(>.image-gallery)>.image-gallery .gallery-title{margin:0 0 5px}
#workspace .card:has(>.image-gallery)>.image-gallery .gallery-title strong{display:none}
#workspace .card:has(>.image-gallery)>.image-gallery .gallery-title button{padding:0;font-size:10px;line-height:1.5}
@media(max-width:440px){#workspace .card:has(>.image-gallery){grid-template-columns:62px minmax(0,1fr);column-gap:9px}}
@media(max-width:600px){.calendar-controls{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:4px}.calendar-month-navigation{width:auto!important;flex:0 0 auto;gap:2px}.calendar-controls>#calendar-month{flex:0 0 126px;width:126px;margin-left:0}.calendar-controls button{font-size:12px;padding:5px 6px}}
@media(max-width:340px){.calendar-controls>#calendar-month{flex-basis:112px;width:112px}.calendar-month-navigation button{padding:4px 5px}}

/* Sales scope shares the dashboard header with month and refresh. */
#workspace .bar-scope-control{display:block;margin:0;max-width:220px;min-width:0;flex:1 1 180px}
#workspace .bar-scope-control select{display:block;width:100%;min-width:0;max-width:100%;margin:0;padding:9px;font-size:13px}
#workspace :is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-dashboard-actions:has(.bar-scope-control){flex:0 1 290px;flex-wrap:nowrap;min-width:0}
@media(max-width:700px){#workspace :is(:is(#management-panel,.dashboard-standard),.bar-dashboard) .mg-dashboard-actions:has(.bar-scope-control){flex:1 1 100%;margin-left:0}#workspace .bar-scope-control{max-width:none}}

/* 2026-10-22: compact spacing without reducing text or interactive hit areas. */
#workspace main{padding-top:20px;padding-bottom:24px}
#workspace main>header{margin-bottom:14px}
#workspace main :is(.company-grid,.company-task-list,.role-list,.cards,.mg-items,.mg-goals,.workspace-grid){gap:8px}
#workspace main :is(.section-title,.company-heading,.role-list-head,.mg-dashboard-title){margin-top:8px;margin-bottom:8px}
#workspace main :is(.company-card,.role-board,.sales-overview,.workspace-tools){padding:10px;margin-top:8px;margin-bottom:8px}
#workspace main :is(.company-card,.role-board,.company-task,.mg-item,.mg-goal) :is(h3,h4){margin-top:3px;margin-bottom:5px}
#workspace main :is(.company-task,.mg-item,.mg-goal) p{margin-top:5px;margin-bottom:5px}
#workspace main :is(.company-nav,.company-actions,.role-stats,.closed-history-filters){gap:6px;margin-top:6px;margin-bottom:6px}
#workspace main .toolbar{gap:8px;padding-bottom:10px}
#workspace .sales-heading{margin:0 0 4px;gap:8px;flex-wrap:wrap}
#workspace .sales-title-line{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
#workspace .sales-heading h2{margin:0;font-size:24px}
#workspace .sales-title-principle{font-size:13px;color:#557568}
#workspace .sales-heading>div:last-child{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
#workspace .sales-heading button{padding:8px 12px;min-height:36px;margin:0}
#workspace .sales-help{margin:3px 0 6px;font-size:12px;color:#65786c}
#workspace .sales-help p{margin:4px 0}
#workspace .sales-summary-overview{padding:8px;margin:6px 0 8px}
#workspace .sales-unit-note{font-size:11px;color:#63796b;margin:0 0 4px}
#workspace .sales-owner-table{min-width:0;width:100%;font-size:12px;table-layout:fixed}
#workspace .sales-owner-table :is(th,td){padding:7px 5px;overflow-wrap:anywhere;white-space:normal}
#workspace .sales-owner-table th:last-child,#workspace .sales-owner-table td:last-child{width:118px}
#workspace .sales-owner-table .sales-rate{font-size:10px;margin-top:3px}
#workspace .sales-owner-table button{padding:6px 8px;min-height:34px;font-size:12px;white-space:normal}
#workspace .sales-owner-table .sales-redundant-total{display:none}
#workspace .sales-filters{gap:8px;margin:8px 0}
#workspace .sales-filters label{font-size:12px}
#workspace .sales-filters :is(input,select){margin-top:3px;padding:8px;min-width:0;width:100%}
#workspace .sales-summary{padding:4px 0;margin:6px 0;font-size:12px}
body dialog :is(.dialog-head,.form-grid,.item-detail){margin-bottom:7px}
body dialog .form-grid{gap:7px 10px}
body dialog :is(.item-detail,.action-history,.source-box){padding:8px;margin-top:7px;margin-bottom:7px}
body dialog .dialog-foot{gap:6px;padding-top:8px;padding-bottom:8px}
@media(max-width:700px){
 #workspace main{padding:10px 8px 82px}
 #workspace main :is(.company-heading,.mg-heading,.sales-heading){gap:6px;margin-bottom:6px}
 #workspace main :is(.company-card,.role-board,.sales-overview,.workspace-tools){padding:8px;margin:6px 0}
 #workspace .sales-heading h2{font-size:21px}
 #workspace .sales-title-principle{font-size:12px}
 #workspace .sales-heading>div:last-child{margin-left:auto;gap:4px}
 #workspace .sales-heading button{font-size:12px;padding:7px 9px;min-height:36px}
 #workspace .sales-summary-overview{padding:6px}
 #workspace .sales-owner-table{display:block;table-layout:auto;font-size:13px}
 #workspace .sales-owner-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 #workspace .sales-owner-table tbody{display:grid;gap:5px}
 #workspace .sales-owner-table tbody tr{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border:1px solid #dce5df;border-radius:7px;overflow:hidden}
 #workspace .sales-owner-table tbody :is(th,td){display:block;width:auto!important;min-width:0;padding:5px 3px;border:0;line-height:1.4;background:transparent;min-height:0}
 #workspace .sales-owner-table td[data-label]:not([data-label=""]):before{content:attr(data-label);display:block;font-size:10px;font-weight:400;color:#62756a;margin-bottom:2px;white-space:normal}
 #workspace .sales-owner-table tbody tr>th:first-child{grid-column:1/-1;padding:5px 7px;background:#e4ede7}
 #workspace .sales-owner-table tbody tr>td:last-child{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:3px 6px 5px}
 #workspace .sales-owner-table tbody tr>td:last-child .sales-rate{margin:0}
 #workspace .sales-owner-table .sales-money-unit{display:none}
 #workspace .sales-owner-table .sales-rate{font-size:10px;line-height:1.3}
 #workspace .sales-owner-table tbody .sales-bar-summary-row{display:block;border:0;border-radius:0}
 #workspace .sales-owner-table .sales-bar-summary-row>th:first-child{padding:4px 6px;background:#dce8de}
 #workspace .sales-owner-table .sales-redundant-total{display:none}
 #workspace .sales-owner-table .sales-bars-grand-total-row{background:#174b3d;color:#fff}
 #workspace .sales-owner-table .sales-bars-grand-total-row>th:first-child{background:#174b3d;color:#fff}
 #workspace .sales-owner-table .sales-bars-grand-total-row td[data-label]:not([data-label=""]):before,#workspace .sales-owner-table .sales-bars-grand-total-row .sales-rate{color:#e0eee7}
 #workspace .sales-owner-table .sales-bars-grand-total-row>td:last-child,#workspace .sales-owner-table .sales-bar-total-row>td:last-child{display:none}
 #workspace .sales-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px;margin:7px 0}
 #workspace .sales-filters label{min-width:0}
 #workspace .sales-filters label:first-child{grid-column:1/-1}
 #workspace .sales-filters :is(input,select){font-size:16px;min-height:36px;padding:6px}
 body dialog{max-width:calc(100% - 12px)}
 body dialog .dialog-foot button{min-height:40px}
}

@media(max-width:700px){#workspace .sales-owner-table td .sales-rate{padding:0;min-height:0}#workspace .sales-owner-table tbody tr{align-content:start;grid-auto-rows:auto}}
.candidate-sales-sync{margin:12px 0;padding:12px;border:1px solid #d8e2d2;border-radius:8px;background:#f7faf5}
.candidate-sales-sync h3{margin:0 0 4px;font-size:16px}.candidate-sales-sync h3 small{font-size:11px;font-weight:500;color:#6b7c70}
.candidate-sales-sync input[type="search"]{width:100%;margin:7px 0;padding:9px 10px}
.candidate-opportunity-list{display:grid;gap:6px;max-height:250px;overflow:auto}
.candidate-opportunity-list button{display:grid;gap:2px;text-align:left;padding:9px 10px;border:1px solid #dce5dc;border-radius:7px;background:#fff;color:#183e35}
.candidate-opportunity-list button[aria-pressed="true"]{border-color:#397454;background:#eaf4ec;box-shadow:0 0 0 1px #397454 inset}
.candidate-opportunity-list button strong{font-size:14px}.candidate-opportunity-list button span{font-size:12px}.candidate-opportunity-list button small{font-size:11px;color:#6b7c70}
.candidate-opportunity-number{display:inline;color:#397454;font-size:12px;font-weight:800;margin-right:2px}

@media(max-width:700px){
 #workspace .sales-owner-table .sales-owner-summary-row>th:first-child{grid-row:1;display:flex;align-items:center;min-height:38px;padding-right:180px}
 #workspace .sales-owner-table .sales-owner-summary-row>td:last-child{grid-row:1;grid-column:2/-1;padding:2px 6px;gap:6px}
 #workspace .sales-owner-table .sales-owner-summary-row>td:last-child button{padding:5px 7px;min-height:34px}
}

/* Company and all bars share the same dashboard standard and Management.dashboard renderer. */
.dashboard-standard{min-width:0}.mg-dashboard-stamp{display:flex;flex-wrap:wrap;gap:4px 18px;margin:0 0 12px;color:#627363;font-size:12px;line-height:1.5}.mg-dashboard-stamp strong{color:#9b6119;font-weight:600}.bar-dashboard-source{font-size:12px;margin-top:10px;overflow-wrap:anywhere}

/* New/edit task forms: keep assignment context together and fit related choices in one row. */
.assignment-workspace-field{display:none!important}
.assignment-compact-panel{grid-column:1/-1;display:grid;grid-template-columns:1fr;gap:8px;align-items:start;padding:10px 12px;border:1px solid #d8e2d2;border-radius:10px;background:#f7faf5}
.assignment-panel-title{grid-column:1/-1;display:flex;align-items:baseline;gap:10px;border-bottom:1px solid #dfe8da;padding-bottom:6px}.assignment-panel-title span{font-size:12px;color:#71806e}.assignment-department-field{margin:0}.assignment-department-field select{margin-top:4px}.assignment-people-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:6px}.assignment-person{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:6px;align-items:center;padding:6px 8px;border:1px solid #d5ddd3;border-radius:8px;background:#fff;min-width:0}.assignment-person input{grid-row:1/3;width:16px;height:16px;margin:0}.assignment-person span{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.assignment-person small{font-size:10px;color:#71806e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.assignment-shared-note{grid-column:1/-1;margin:0}.assignment-shared-note textarea{min-height:42px}.assignment-hint{grid-column:1/-1;margin:0}.assignment-compact-panel~label{min-width:0}
.assignment-choice-row{display:grid;grid-template-columns:minmax(180px,220px) minmax(0,1fr);gap:10px;align-items:start}.assignment-choice-row>.assignment-department-field{grid-column:1;min-width:0}.assignment-choice-row>.assignment-people-grid{grid-column:2;width:100%;min-width:0}.assignment-person{min-width:0;overflow:visible}.assignment-person-name{display:block!important;visibility:visible!important;opacity:1!important;width:auto!important;min-width:0;color:#183e35!important;font-size:13px!important;font-weight:650!important;line-height:1.35!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.assignment-person small{display:block;visibility:visible;line-height:1.25}.assignment-compact-panel~label{min-width:0}
#task-create .form-grid,#editor .editor-basic{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 10px}#task-create .form-grid>label,#editor .editor-basic>label{min-width:0}#task-create .form-grid>label.wide,#editor .editor-basic>label.wide{grid-column:1/-1}
@media(max-width:900px){.assignment-choice-row{grid-template-columns:minmax(150px,200px) minmax(0,1fr)}.assignment-department-field{max-width:320px}.assignment-people-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){#task-create .form-grid,#editor .editor-basic{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 8px}.assignment-compact-panel{padding:8px}.assignment-choice-row{grid-template-columns:1fr}.assignment-choice-row>.assignment-department-field,.assignment-choice-row>.assignment-people-grid{grid-column:1}.assignment-people-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.assignment-person{padding:6px}.assignment-panel-title{display:block}.assignment-panel-title span{display:block;margin-top:2px}.assignment-shared-note{display:none!important}}

/* Opportunity action card: reference-aligned content and bottom-right entry. */
#workspace .sales-followup{padding:0;background:transparent;border:0}
#workspace .sales-followup-date{display:block;margin:0 0 6px;color:#657c6d;font-size:12px}
#workspace .sales-next-message{display:flex;flex-direction:column;align-items:stretch;background:#eef5fc;border:1px solid #d4e4f5;border-radius:12px;padding:12px 14px;margin:0 0 8px}
#workspace .sales-next-message>b{font-size:12px;font-weight:400;color:#70899f}
#workspace .sales-next-message>p{font-size:17px;font-weight:650;line-height:1.6;color:#205b91;margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere}
#workspace .sales-next-message>.sales-next-entry{align-self:flex-end;display:block;min-height:36px;margin:3px 0 0;padding:5px 2px;border:0;border-radius:0;background:transparent;color:#205b91;text-decoration:underline;text-underline-offset:4px;font-size:14px}
#workspace .sales-next-entry:focus-visible{outline:2px solid #205b91;outline-offset:3px}
@media(max-width:700px){#workspace .sales-next-message{padding:10px 12px}#workspace .sales-next-message>p{font-size:16px}}

.project-link-dialog .link-sync-compare{width:100%;table-layout:fixed;border-collapse:collapse;font-size:13px}
.project-link-dialog .link-sync-compare th,.project-link-dialog .link-sync-compare td{padding:7px 5px;white-space:pre-wrap;overflow-wrap:anywhere;text-align:left;border-bottom:1px solid #e4ebe3}
.project-link-dialog .link-sync-compare th:first-child{width:80px}
.project-link-dialog .link-sync-compare label{display:flex;align-items:center;gap:5px;margin:0;font-size:12px}
.project-link-dialog .link-sync-compare input{width:18px;height:18px;flex:0 0 auto;accent-color:#245d47}
.project-link-dialog .link-sync-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:10px 0}
.project-link-dialog .link-sync-controls label{flex:1;min-width:130px;font-size:12px}
.project-link-dialog .link-sync-controls select{width:100%;min-height:40px;margin-top:4px}
.project-link-dialog [data-link-error]:not(:empty){padding:9px 11px;background:#eef5ee;border:1px solid #ccdccc;border-radius:8px;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}
.project-link-dialog [data-link-error][data-error="true"]{background:#fff2ee;border-color:#e4bbb0;color:#973b2d}
.project-link-dialog .link-sync-controls button{min-height:40px}

/* Customer is already present in the task summary; avoid duplicate card rows. */
.unified-task-card:has(.task-card-summary-row) .bar-task-party,
.unified-task-card:has(.task-card-summary-row) .customer-followup{display:none!important}

/* Budget and conditions are two compact rows; source text expands on demand. */
#workspace .sales-project-messages .sales-brief-row{display:grid;grid-template-columns:88px minmax(0,1fr);gap:8px;align-items:baseline;margin:5px 0}
#workspace .sales-project-messages .sales-brief-row>b{font-size:12px;line-height:1.6;margin:0}
#workspace .sales-project-messages .sales-brief-row>p{margin:0;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
#workspace .sales-source-details{margin:7px 0 0;padding:5px 0;border-top:1px solid #e2e9e1}
#workspace .sales-source-details>summary{cursor:pointer;color:#718375;font-size:12px;line-height:1.7;min-height:28px}
#workspace .sales-source-details>p{margin:5px 0;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:700px){#workspace .sales-project-messages .sales-brief-row{grid-template-columns:76px minmax(0,1fr);gap:6px}}

/* Project link actions remain visible while only the content scrolls. */
body dialog.project-link-dialog[data-link-floating][open]{display:flex;flex-direction:column;overflow:hidden;max-height:90dvh;padding-bottom:0}
.project-link-dialog[data-link-floating]>.dialog-head{flex:0 0 auto}
.project-link-dialog[data-link-floating]>[data-link-body]{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 2px 12px}
.project-link-dialog[data-link-floating]>.link-floating-footer{flex:0 0 auto;background:#fff;border-top:1px solid #dfe5dc;padding:8px 0 calc(8px + env(safe-area-inset-bottom));z-index:3;box-shadow:0 -4px 12px #173d350c}
.project-link-dialog[data-link-floating] .link-sync-controls{display:grid;grid-template-columns:minmax(0,1fr) auto 40px;align-items:end;gap:8px;margin:0}
.project-link-dialog[data-link-floating] .link-sync-controls label{min-width:0;margin:0}
.project-link-dialog[data-link-floating] .link-sync-controls select{min-width:0;font-size:13px}
.project-link-dialog[data-link-floating] [data-link-bottom-close]{width:40px;height:40px;padding:0;font-size:26px;border:1px solid #cbd5cb;border-radius:8px}
.project-link-dialog[data-link-floating] [data-link-error]{margin:0 0 6px}
.project-link-dialog[data-link-floating] [data-link-error]:empty{display:none}
@media(max-width:520px){.project-link-dialog[data-link-floating] .link-sync-controls{gap:5px;grid-template-columns:minmax(0,1fr) auto 36px}.project-link-dialog[data-link-floating] [data-link-submit]{padding:10px 8px;font-size:12px}.project-link-dialog[data-link-floating] [data-link-bottom-close]{width:36px}.project-link-dialog[data-link-floating] .link-sync-controls select{font-size:11px;padding:9px 4px}}

/* Message review: align commands and filters, then use the saved space for records. */
body[data-current-view="inbox"] #workspace main>.toolbar,
body[data-current-view="deferred"] #workspace main>.toolbar{margin:4px 0 6px;padding:4px 0 8px}
body[data-current-view="inbox"] #workspace main>.toolbar #search,
body[data-current-view="deferred"] #workspace main>.toolbar #search{min-height:38px;padding:7px 10px}
body[data-current-view="inbox"] #workspace main>.inbox-heading,
body[data-current-view="deferred"] #workspace main>.inbox-heading{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;align-items:center;gap:6px 10px;margin:6px 0;padding:0}
.inbox-heading>h2{grid-column:1}.inbox-heading>#result-count{grid-column:2}.inbox-heading>#refresh{grid-column:4;grid-row:1;margin:0;padding:5px 7px}
.inbox-heading>.inbox-quick-links{grid-column:3;grid-row:1;justify-self:end;display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0;margin:0}
.inbox-heading>.inbox-quick-links .text-button{margin:0;padding:5px 7px}.inbox-heading>.inbox-quick-links details{margin:0}
body[data-current-view="inbox"] #view-help,body[data-current-view="deferred"] #view-help{margin:0 0 7px}
body[data-current-view="inbox"] .inbox-tools,body[data-current-view="deferred"] .inbox-tools{display:grid;grid-template-columns:repeat(3,minmax(150px,190px)) auto;align-items:end;justify-content:start;gap:8px 10px;margin:0;padding:0}
.inbox-tools label{display:grid;grid-template-rows:auto 38px;align-items:end;min-width:0;margin:0}.inbox-tools label select,.inbox-tools label input{height:38px;min-height:38px;margin-top:3px;padding:6px 9px}.inbox-tools label .workbench-date-field{height:38px;margin-top:3px}.inbox-tools label .workbench-date-trigger{height:38px;min-height:38px;padding:6px 9px}.inbox-tools>#inbox-clear{height:38px;min-height:38px;margin:0;padding:6px 12px}
body[data-current-view="inbox"] .inbox-group-heading,body[data-current-view="deferred"] .inbox-group-heading{margin:7px 0 6px;padding:8px 12px}
body[data-current-view="inbox"] .inbox-group-heading h3,body[data-current-view="deferred"] .inbox-group-heading h3{margin:0}
@media(max-width:720px){
 body[data-current-view="inbox"] #workspace main>.inbox-heading,body[data-current-view="deferred"] #workspace main>.inbox-heading{grid-template-columns:auto auto 1fr auto;gap:4px 7px;margin:3px 0 4px}
 .inbox-heading>.inbox-quick-links{gap:2px}.inbox-heading>.inbox-quick-links .text-button{padding:4px;font-size:11px}.inbox-heading>.inbox-quick-links .inbox-explanation{display:none}
 body[data-current-view="inbox"] .inbox-tools,body[data-current-view="deferred"] .inbox-tools{display:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:7px;margin-bottom:5px}
 body[data-current-view="inbox"] .inbox-tools.is-open,body[data-current-view="deferred"] .inbox-tools.is-open{display:grid}
 .inbox-tools label:last-of-type{grid-column:1/-1}.inbox-tools>#inbox-clear{width:100%}
}

/* Task card cleanup: a single responsibility row, folded evidence, final progress action. */
#workspace .task-card-summary-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.8fr) minmax(0,1.1fr);margin-top:3px}
#workspace .task-card-summary-row strong{font-size:13px}
#workspace .task-card-summary-row>span:first-child strong{font-size:17px;color:#173f35}
#workspace .task-card-background section{margin:9px 0;padding:0}
#workspace .task-card-background section p{font-size:12px;line-height:1.6;margin:5px 0;overflow-wrap:anywhere}
#workspace .task-card-background .preserve-lines{white-space:pre-wrap}
#workspace .task-card-actions>:is(.bar-task-primary,.all-progress,[data-mode="progress"]),#workspace .card-footer [data-mode="progress"]{order:99}
#workspace .task-image-item{min-width:0;max-width:100%}
#workspace .task-image-item>[data-remove-card-image]{display:block;width:auto!important;margin:3px 0!important;padding:2px 5px!important;font-size:11px!important;color:#944b40;background:transparent!important;border:0!important;text-decoration:underline}
@media(max-width:620px){#workspace .task-card-summary-row{grid-template-columns:repeat(2,minmax(0,1fr))}#workspace .task-card-summary-row>span:nth-child(3){grid-column:1/-1}#workspace .task-card-summary-row strong{font-size:12px}}

/* Internal account and permission management page. */
#account-management-panel{min-width:0;padding-bottom:90px}.account-page-head,.account-subhead,.account-editor-head,.account-permission-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}.account-page-head h2{font-size:26px;margin:3px 0}.account-page-head p,.account-subhead p,.account-editor-head p,.account-security>p,.account-permissions p{font-size:12px;color:var(--muted);line-height:1.55;margin:3px 0}.account-page-actions,.account-security-actions,.account-permission-actions{display:flex;gap:7px;flex-wrap:wrap}.account-page-summary{display:flex;gap:10px 22px;flex-wrap:wrap;padding:9px 0;margin:8px 0;border-block:1px solid var(--line);font-size:12px;color:var(--muted)}.account-page-summary b{font-size:17px;color:var(--green);margin-left:4px}.account-list-tools{display:flex;align-items:end;gap:9px;flex-wrap:wrap;margin:8px 0}.account-list-tools>label{font-size:12px;color:var(--muted)}.account-list-tools select{width:auto;min-width:116px;margin-left:5px}.account-list-tools .account-search{display:grid;grid-template-columns:minmax(210px,1fr) auto;flex:1;min-width:280px}.account-list-tools .account-search input{border-radius:8px 0 0 8px}.account-list-tools .account-search button{border-radius:0 8px 8px 0}.account-table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:10px;background:#fff}.account-table{width:100%;min-width:820px;border-collapse:collapse;font-size:13px}.account-table th,.account-table td{padding:9px 10px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);text-align:left;vertical-align:middle;white-space:nowrap}.account-table th:last-child,.account-table td:last-child{border-right:0}.account-table tbody tr:last-child td{border-bottom:0}.account-table th{background:#f6f8f5;font-size:12px;color:#405148}.account-table tbody tr:hover{background:#f6faf3}.account-code{padding:5px 8px!important;background:#49b7d2!important;color:#fff!important;border:1px solid #32a6c2!important;border-radius:5px!important;font-size:13px!important}.account-owner-star{color:#e65522;font-size:14px;margin-left:1px}.account-table .muted{color:var(--muted)}.account-list-empty{font-size:12px;color:var(--muted);text-align:center;padding:20px}.account-state{font-size:10px;font-style:normal;white-space:nowrap;padding:3px 7px;border-radius:10px}.account-state.enabled{color:#2f6844;background:#e2f1e5}.account-state.disabled{color:#8a5f43;background:#f8eadf}.account-create,.account-editor{border:1px solid var(--line);border-radius:12px;background:#fff;min-width:0}.account-create{padding:14px;margin:10px 0;background:#f8faf6}.account-back{margin:3px 0 9px}.account-editor{padding:16px}.account-editor h3{font-size:22px;margin:4px 0}.account-editor h4,.account-create h4{font-size:14px;margin:14px 0 6px}.account-detail-grid{display:grid;grid-template-columns:86px minmax(0,1fr);gap:0;margin-top:12px;border:1px solid var(--line);border-radius:9px;overflow:hidden}.account-detail-label,.account-detail-value{padding:9px 11px;border-bottom:1px solid var(--line)}.account-detail-label{font-weight:700;background:#f5f7f4}.account-detail-value:nth-last-child(-n+2),.account-detail-label:nth-last-child(-n+2){border-bottom:0}.account-permission-chips{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin:10px 0}.account-permission-chips b{font-size:12px;margin-right:3px}.account-permission-chips span{background:#49b7d2;color:#fff;border-radius:5px;padding:4px 7px;font-size:11px}.account-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:10px 0}.account-form-grid label,.account-password-form label{font-size:11px;color:var(--muted);min-width:0}.account-form-grid input,.account-form-grid select,.account-password-form input{width:100%;margin-top:3px}.account-security,.account-permissions,.account-owner-note{border-top:1px solid var(--line);margin-top:14px;padding-top:5px}.account-password-form{display:grid;grid-template-columns:1fr 1fr auto;gap:7px;align-items:end;margin-top:8px}.account-permission-heading{align-items:end}.account-permission-actions button{padding:5px 9px;font-size:11px}.account-permissions fieldset{border:1px solid var(--line);border-radius:8px;margin:7px 0;padding:8px 10px}.account-permissions legend{font-size:12px;font-weight:700;padding:0 4px}.account-permissions legend label{display:flex;align-items:center;gap:5px}.account-permission-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px 9px;padding-left:18px}.account-permission-grid label{display:flex;align-items:center;gap:5px;font-size:11px;color:#3e5042}.account-permission-grid input,.account-permissions legend input{width:auto;margin:0}.account-permissions-readonly input{opacity:.8}.account-invite-output{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end;margin-top:10px}.account-invite-output label{font-size:11px;color:var(--muted)}.account-invite-output input{margin-top:3px}.account-page-status{font-size:12px;color:#9a4435;min-height:18px}.account-page-status.saved{color:#326647}.account-audit{font-size:10px;color:var(--muted);margin-top:12px}.account-empty{font-size:12px;color:var(--muted);padding:28px;text-align:center}.account-owner-note{padding:12px;background:#f3f6f0;border-radius:8px;border-top:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:760px){#account-management-panel{padding-bottom:110px}.account-page-head,.account-subhead,.account-permission-heading{flex-direction:column}.account-page-actions{width:100%}.account-list-tools{display:grid;grid-template-columns:1fr 1fr}.account-list-tools>label select{display:block;width:100%;margin:3px 0 0}.account-list-tools .account-search{grid-column:1/-1;min-width:0}.account-table{min-width:720px;font-size:12px}.account-table th,.account-table td{padding:8px}.account-editor{padding:12px}.account-form-grid,.account-permission-grid{grid-template-columns:1fr 1fr}.account-password-form{grid-template-columns:1fr}.account-invite-output{grid-template-columns:1fr}.account-page-head h2{font-size:22px}.account-detail-grid{grid-template-columns:70px minmax(0,1fr)}}
@media(max-width:380px){.account-form-grid,.account-permission-grid{grid-template-columns:1fr}.account-page-actions button{flex:1}.account-table{min-width:680px}}

/* System task standard: every account uses the same media and content columns. */
#workspace .unified-task-card .task-main-content>.task-card-summary-row{display:flex;flex-wrap:wrap;gap:6px 14px}
#workspace .unified-task-card .task-card-summary-row>span{flex:1 1 125px;min-width:0}
#workspace .unified-task-card .task-card-summary-row>span:first-child{flex:1.3 1 150px}
#workspace .unified-task-card .task-card-actions button:disabled,#workspace .unified-task-card .image-gallery button:disabled{opacity:.6;cursor:not-allowed}

/* Shared task card: two-row identity and compact operations. */
#workspace .company-task .compact-task-identity{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:8px}
#workspace .task-heading-action{font-size:14px;color:#31533d;overflow-wrap:anywhere}
#workspace .unified-task-card .task-main-content>.task-card-summary-row,#workspace .company-task .task-card-summary-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 14px}
#workspace .unified-task-card .task-card-summary-row>span{grid-column:auto;min-width:0}
#workspace .company-task .task-more-actions{position:relative;margin:0;flex:none}
#workspace .task-more-actions>summary{cursor:pointer;list-style:none;border:1px solid #cbd8ce;border-radius:7px;padding:6px 9px;font-size:12px;min-height:34px;display:flex;align-items:center;gap:5px}
#workspace .task-more-actions>summary:after{content:'▾'}
#workspace .task-more-menu{position:absolute;bottom:calc(100% + 5px);left:0;z-index:12;display:grid;gap:4px;width:190px;max-width:70vw;padding:7px;border:1px solid #cbd8ce;border-radius:8px;background:white;box-shadow:0 4px 16px #153d2520}
#workspace .task-more-menu>button{width:100%;margin:0;padding:8px;text-align:left;white-space:normal;border:0;border-radius:5px;background:#f5f8f3;color:#263e33;font-size:12px}
#workspace .task-more-menu>[data-task-delete]{color:#a34235;border-top:1px solid #dfdbd5}
#workspace .task-action-history li{margin-bottom:7px}

#workspace .task-more-actions:not([open])>.task-more-menu{display:none!important}
/* All tasks: search in navigation, compact filters and content. */
body.all-compact #workspace main>.toolbar{display:none!important}
body.all-compact #workspace main>.section-title{display:grid;grid-template-columns:auto auto minmax(140px,1fr) auto auto;align-items:center;gap:6px 10px;margin:4px 0 8px;padding:7px 0;border-bottom:1px solid var(--line)}
body.all-compact #workspace main>.section-title #search{max-width:450px;width:100%;justify-self:end;min-width:0;padding:7px 10px;font-size:12px}
body.all-compact #workspace main>.section-title .text-button{margin:0;white-space:nowrap;font-size:12px;padding:6px}
body.all-compact [data-all-nav-summary]{grid-column:1/-1;min-width:0}
body.all-compact #workspace [data-all-nav-summary] .execution-summary{margin:0!important;gap:12px;font-size:11px}
body.all-compact #workspace main{grid-template-columns:120px minmax(0,1fr);gap:0 8px}
body.all-compact #workspace .all-board-tools{padding:6px}
body.all-compact #workspace .all-filter-row{gap:5px;margin:7px 0}
body.all-compact #workspace .all-filter-row label{font-size:10px}
body.all-compact #workspace .all-filter-row select{padding:5px;min-height:30px;font-size:11px}
body.all-compact #workspace .all-domain-tabs{margin-bottom:6px;padding-bottom:5px}
body.all-compact #workspace .all-domain-tabs button,body.all-compact #workspace .all-time-chips button{padding:5px;min-height:30px;font-size:11px}
body.all-compact #workspace #cards .domain-heading h3{font-size:15px;margin:0}
body.all-compact #workspace #cards .subcategory-heading{font-size:13px;margin:2px 0;padding:2px 0}
body.all-compact #workspace #cards .customer-sales-heading{margin:3px 0;padding:4px 6px;font-size:12px}
body.all-compact #workspace #cards .company-task{padding:10px;margin:0 0 8px}
body.all-compact #workspace .company-task .task-action-panel{padding:10px 12px;margin:6px 0}
body.all-compact #workspace .company-task .task-action-content{font-size:16px;line-height:1.55}
body.all-compact #workspace .company-task .task-action-label{font-size:11px}
body.all-compact #workspace .company-task .task-action-cta{font-size:13px}
body.all-compact #workspace .company-task .task-action-history{margin:4px 0;font-size:12px}
body.all-compact #workspace .company-task .task-action-history ol{margin:5px 0;padding-left:18px}
body.all-compact #workspace .company-task .task-action-history li{margin-bottom:5px}
#workspace .company-task .compact-task-identity{flex-wrap:nowrap;align-items:baseline}
#workspace .compact-task-identity>.tag{flex:0 0 auto}
#workspace .compact-task-identity>.task-heading-action{flex:1;min-width:0}
@media(max-width:720px){
 body.all-compact #workspace main{display:block}
 body.all-compact #workspace main>.section-title{grid-template-columns:auto 1fr auto auto;gap:5px;margin:0 0 7px}
 body.all-compact #workspace main>.section-title #search{grid-column:1/-1;grid-row:2;max-width:none}
 body.all-compact #workspace main>.section-title #new-task{grid-column:3;grid-row:1}
 body.all-compact #workspace main>.section-title #refresh{grid-column:4;grid-row:1}
 body.all-compact #workspace main>.section-title h2{font-size:17px}
 body.all-compact #workspace main>.section-title #result-count{font-size:11px}
 body.all-compact #workspace [data-all-nav-summary]{grid-row:3}
 body.all-compact #workspace .ac-mobile-controls{margin:0 0 6px}
 body.all-compact #workspace .ac-mobile-controls button{min-height:32px;padding:5px 8px;font-size:11px}
}
body.all-compact #workspace [data-all-nav-summary] .execution-summary>span{display:none}
body.all-compact #workspace #sync-info{display:none}
/* Action and history start below the image/summary row. */
#workspace .unified-task-card .task-followup-content{clear:both;width:100%;min-width:0;margin-top:8px}
#workspace .unified-task-card .task-card-summary-row>span:nth-child(2){flex-wrap:wrap}
#workspace .unified-task-card .task-card-summary-row .compact-task-identity{display:inline-flex;margin:0 0 0 auto;flex:0 0 auto}
#workspace .unified-task-card .task-card-summary-row .compact-task-identity .tag{white-space:nowrap}
#workspace .task-card-summary-row .task-review-controls{display:inline-flex;align-items:center;gap:5px;margin-left:auto;flex:0 0 auto}
#workspace .task-card-summary-row .task-review-controls .compact-task-identity{margin:0}
#workspace .task-card-summary-row .task-quick-return{min-height:28px;padding:3px 8px;border-color:#d66a61;color:#b83b34;background:#fff;font-size:12px;line-height:1.3;white-space:nowrap}
#workspace .task-card-background .card-source-day{margin:10px 0 4px;font-size:12px;font-weight:700;color:#31533d}
#workspace .task-card-background time{font-size:11px;color:#64796d;margin-right:6px;white-space:nowrap}
#workspace .task-followup-content>.task-action-panel{display:block;width:100%;text-align:left}
#workspace .task-action-panel .task-action-label,#workspace .task-action-panel .task-action-content{display:block;white-space:pre-wrap}
/* Top filters, one image column, compact action, bottom-right operations. */
@media(min-width:721px){
 body.all-compact #workspace main{display:block}
 body.all-compact #workspace #view-help{position:static;width:100%;margin:0 0 8px}
 body.all-compact #workspace .all-board-tools{display:grid;gap:6px;padding:8px}
 body.all-compact #workspace .all-domain-tabs,body.all-compact #workspace .all-time-chips{display:flex;flex-wrap:wrap;gap:5px;padding:0;margin:0;border:0}
 body.all-compact #workspace .all-domain-tabs button,body.all-compact #workspace .all-time-chips button{gap:8px;min-height:28px;padding:4px 8px}
 body.all-compact #workspace .all-filter-row{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:6px;align-items:end;margin:0}
 body.all-compact #workspace .all-filter-row label{line-height:1.3}
 body.all-compact #workspace .all-filter-row select{margin-top:3px}
 body.all-compact #workspace #cards{width:100%}
}
#workspace .company-task .task-media-layout{align-items:start}
#workspace .company-task .task-leading-images .image-thumbnails{display:grid;grid-template-columns:minmax(0,1fr);gap:6px}
#workspace .company-task .task-followup-content{margin-top:4px}
#workspace .company-task .task-main-content .task-card-summary-row{margin-top:0;margin-bottom:4px}
#workspace .company-task .task-followup-content>.task-action-panel{padding:7px 9px;margin:4px 0 6px;border-radius:7px}
#workspace .company-task .task-action-panel .task-action-label{font-size:10px;line-height:1.3;margin-bottom:3px}
#workspace .company-task .task-action-panel .task-action-content{font-size:14px;line-height:1.5}
#workspace .company-task .task-action-panel .task-action-cta{font-size:12px;margin-top:4px}
#workspace .company-task .task-card-actions{justify-content:flex-end;width:100%;margin-top:8px}
#workspace .company-task .task-more-menu{left:auto;right:0}

@media(min-width:721px){body.all-compact #workspace #cards{padding-left:24px}body.all-compact #workspace #cards .domain-heading,body.all-compact #workspace #cards .subcategory-heading{margin-left:0}}

/* Approved A: two full-month columns, two same-period columns, current accumulation. */
#workspace .mg-kpi.mg-design-a{padding:18px;border-radius:16px;background:#fff;color:#284535;--kpi:#3c6b4e}
#workspace .mg-design-a .mg-kpi-open{display:flex;flex-direction:column}
#workspace .mg-design-a .mg-kpi-top{order:0;width:100%;padding-bottom:12px;border-bottom:1px solid #e4eadd}
#workspace .mg-design-a .mg-kpi-title{font-size:18px;color:#284535}
#workspace .mg-design-a .mg-kpi-main{order:1;width:100%;margin:18px 0 14px}
#workspace .mg-design-a .mg-kpi-number{font-size:38px;font-weight:700;color:#284535}
#workspace .mg-design-a .mg-actual-unit{color:#73816f}
#workspace .mg-design-a .mg-gauge{display:none}
#workspace .mg-design-a .mg-kpi-plans{order:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;margin:0;padding:0 0 14px;border-bottom:1px solid #e4eadd}
#workspace .mg-design-a .mg-plan-heading{display:none}
#workspace .mg-design-a .mg-kpi-plans>.mg-kpi-target{display:flex;flex-direction:column;align-items:flex-start;gap:4px;font-size:11px;color:#7d8975}
#workspace .mg-design-a .mg-kpi-plans>.mg-kpi-target>span:last-child{color:#41684a;font-size:12px}
#workspace .mg-design-a .mg-kpi-plans b{color:#38583c;font-size:13px}
#workspace .mg-design-a .mg-kpi-plans>.mg-kpi-target>span:last-child:before{content:'达成率 ';font-size:10px}
#workspace .mg-design-a .mg-period-groups{display:grid;grid-template-columns:2fr 2fr 1fr;gap:8px;margin:17px 0 0;color:#687e61;font-size:11px;text-align:center}
#workspace .mg-design-a .mg-period-groups>span{padding-bottom:6px;border-bottom:2px solid #c0cfb9}
#workspace .mg-design-a .mg-period-groups>span:last-child{border-color:#466e4e}
#workspace .mg-design-a .mg-five-columns{padding:29px 0 8px;column-gap:8px;border-top:0}
#workspace .mg-design-a .mg-five-columns .mg-period-row{grid-template-rows:120px auto minmax(28px,auto);gap:7px;color:#718368}
#workspace .mg-design-a .mg-five-columns .mg-period-track{height:120px;background:repeating-linear-gradient(to top,transparent 0,transparent 29px,#e9eee4 29px,#e9eee4 30px)}
#workspace .mg-design-a .mg-period-track>em{width:78%;max-width:62px;left:11%;border-radius:7px 7px 0 0;background:#bdcdb7}
#workspace .mg-design-a .is-full-month .mg-period-track>em{background:#94ae94}
#workspace .mg-design-a .is-current .mg-period-track>em{background:#3c6b4e}
#workspace .mg-design-a .mg-period-value>b{font-size:11px;color:#476345;white-space:nowrap}
#workspace .mg-design-a .mg-period-unit{display:none}
#workspace .mg-design-a .mg-column-label{font-size:11px;color:#74836a}
#workspace .mg-design-a .mg-column-change{font-size:10px;color:#7d8a72}
#workspace .mg-design-a .mg-column-change b{color:#41664a}
#workspace .mg-design-a .mg-kpi-details{color:#6b7e61;border-color:#e4eadd}
#workspace .mg-design-a .mg-kpi-comparison{width:100%;padding:14px 12px 0;box-sizing:border-box;border-top:1px solid #e4eadd}
#workspace .mg-design-a .mg-kpi-comparison .mg-ratio-heading{margin:0 0 8px}
#workspace .mg-design-a .mg-expense-top{margin:10px 0 2px;padding:10px 0 0;border-top:1px solid #e4eadd;color:#425d48}
#workspace .mg-design-a .mg-expense-top h4{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0 0 6px;font-size:12px}
#workspace .mg-design-a .mg-expense-top h4 small{color:#81907d;font-size:9px;font-weight:400}
#workspace .mg-design-a .mg-expense-top ol{display:grid;gap:0;margin:0;padding:0;list-style:none;counter-reset:expense-rank}
#workspace .mg-design-a .mg-expense-top li{counter-increment:expense-rank;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:8px;padding:5px 0;border-top:1px solid #edf1e9;font-size:11px;line-height:1.35}
#workspace .mg-design-a .mg-expense-top li>span{min-width:0;overflow-wrap:anywhere}
#workspace .mg-design-a .mg-expense-top li>span:before{content:counter(expense-rank) '. ';color:#8b9987}
#workspace .mg-design-a .mg-expense-top li>strong{white-space:nowrap;font-variant-numeric:tabular-nums;font-size:11px}
#workspace .mg-design-a .mg-expense-top li>strong>small{margin-left:5px;color:#73866f;font-size:9px;font-weight:500}
@media(max-width:700px){#workspace .mg-design-a .mg-kpi-comparison{padding:10px 8px 0}#workspace .mg-design-a .mg-expense-top{margin-top:7px;padding-top:7px}#workspace .mg-design-a .mg-expense-top li{padding:4px 0;gap:6px;font-size:10px}#workspace .mg-design-a .mg-expense-top li>strong{font-size:10px}#workspace .mg-design-a .mg-expense-top li>strong>small{margin-left:3px;font-size:8px}}
@media(max-width:380px){#workspace .mg-kpi.mg-design-a{padding:12px}#workspace .mg-design-a .mg-kpi-number{font-size:34px}#workspace .mg-design-a .mg-five-columns{column-gap:4px}#workspace .mg-design-a .mg-period-value>b{font-size:9px}}

/* Approved red subtitles for time and employee happiness metrics. */
#workspace .mg-kpi .mg-kpi-philosophy.mg-subtitle-red{color:#d0443d}

/* Owner recommendation is evidence for review; the saved selection is authoritative. */
.owner-confirmation{display:grid;grid-template-columns:auto 1fr;align-items:start;gap:3px 10px;padding:9px 11px;border:1px solid #d7e3dc;border-left:4px solid #397454;border-radius:7px;background:#f3f8f4;color:#29483a}
.owner-confirmation strong{font-size:14px;line-height:1.55}
.owner-confirmation span{font-size:13px;line-height:1.65}
.owner-confirmation small{grid-column:1/-1;color:#68776f;font-size:12px;line-height:1.55}
.owner-confirmation[data-status="needs-review"]{border-left-color:#ad7a2e;background:#fff8eb;color:#60471e}
@media(max-width:700px){.owner-confirmation{grid-template-columns:1fr;gap:2px}.owner-confirmation small{grid-column:1}}

/* Direct next-step entry: keep the action field visible on every task card. */
.card-action-editor,.task-action-inline-editor{margin:10px 0;padding:10px 12px;border:1px solid #cfe0d2;border-radius:10px;background:#f4f8f3}.card-action-editor form,.task-action-inline-editor{display:flex;align-items:end;gap:10px}.card-action-editor label,.task-action-inline-editor label{flex:1;margin:0;color:#4e6958;font-size:12px}.card-action-editor label span,.task-action-inline-editor label span{display:block;margin-bottom:5px;font-weight:650}.card-action-editor textarea,.task-action-inline-editor textarea{display:block;width:100%;min-height:42px;box-sizing:border-box;resize:vertical;border:1px solid #b9cdbc;border-radius:7px;background:#fff;padding:8px 10px;font:inherit;color:#294c3d}.card-action-editor form button,.task-action-inline-editor button{flex:0 0 auto;min-height:40px;padding:8px 16px;border:1px solid #1f684e;border-radius:7px;background:#1f684e;color:#fff;font-weight:650;cursor:pointer}.card-action-editor form button:disabled,.task-action-inline-editor button:disabled{opacity:.55;cursor:wait}.card-action-editor .action-history{margin-top:10px}.task-action-inline-editor{margin:9px 0;padding:9px 10px}.task-action-inline-editor button{min-height:36px;padding:7px 13px;font-size:12px}@media(max-width:600px){.card-action-editor form,.task-action-inline-editor{align-items:stretch;flex-direction:column}.card-action-editor form button,.task-action-inline-editor button{width:100%}}

.card-action-editor .next-action-date,.task-action-inline-editor .next-action-date{flex:0 0 145px}.card-action-editor .next-action-date input,.task-action-inline-editor .next-action-date input{display:block;width:100%;box-sizing:border-box;min-height:40px;padding:8px;border:1px solid #b9cdbc;border-radius:7px;background:#fff;color:#294c3d;font:inherit}@media(max-width:600px){.card-action-editor .next-action-date,.task-action-inline-editor .next-action-date{flex:1;width:100%}}
/* Keep follow-up text and registration time on one flowing line with adaptive spacing. */
#workspace .task-action-history li p,#workspace .action-history-list article p{display:flex;align-items:baseline;gap:8px;white-space:normal;overflow-wrap:anywhere}
#workspace .task-action-history li p small,#workspace .action-history-list article p small{flex:0 0 auto;white-space:nowrap;font-size:10px;color:#718178}
@media(max-width:520px){#workspace .task-action-history li p,#workspace .action-history-list article p{gap:5px}}

/* Compact date selector and floating action row. */
#workspace .card-action-editor form,#workspace .task-action-inline-editor{align-items:end;gap:8px}
#workspace .card-action-editor .next-action-date,#workspace .task-action-inline-editor .next-action-date{display:flex;align-items:center;gap:6px;flex:0 0 auto;width:auto}
#workspace .card-action-editor .next-action-date span,#workspace .task-action-inline-editor .next-action-date span{display:inline;white-space:nowrap;margin:0}
#workspace .card-action-editor .next-action-date input,#workspace .task-action-inline-editor .next-action-date input{width:118px;min-height:36px;margin:0;padding:6px 8px;font-size:12px}
#workspace .task-context-actions-row{display:flex;align-items:center;gap:12px;width:100%;border-top:1px solid #e5ebe6;margin-top:8px;padding-top:8px}
#workspace .task-context-actions-row>.bar-task-context{flex:1;min-width:0;margin:0;border:0;padding:0}
#workspace .task-context-actions-row>.task-actions-floating{flex:0 0 auto;position:static;bottom:auto;z-index:3;background:#ffffffeb;border:1px solid #d7e2d5;border-radius:10px;padding:4px;box-shadow:0 5px 18px #173d3526}
#workspace .task-context-actions-row>.task-actions-floating .task-card-actions{border:0;margin:0;padding:0;gap:5px}
#workspace .task-context-actions-row>.task-actions-floating .task-card-actions button,#workspace .task-context-actions-row>.task-actions-floating .task-card-actions label{font-size:11px;padding:6px 8px}
@media(max-width:700px){#workspace .task-context-actions-row{align-items:flex-start;gap:7px}#workspace .task-context-actions-row>.task-actions-floating{position:static;bottom:auto}#workspace .task-context-actions-row>.task-actions-floating .task-card-actions{flex-wrap:wrap;justify-content:flex-end}}
#workspace .card-action-editor .next-action-date>span.workbench-date-field,#workspace .task-action-inline-editor .next-action-date>span.workbench-date-field{display:block;width:118px;flex:0 0 118px}
#workspace .card-action-editor .next-action-date .workbench-date-trigger,#workspace .task-action-inline-editor .next-action-date .workbench-date-trigger{min-height:34px;padding:5px 7px;font-size:12px;white-space:nowrap}

/* Follow-up entry: the date label, date control, and next-step action form a
   clear three-row control stack beside the larger text area. */
#workspace .card-action-editor form,
#workspace .task-action-inline-editor{
  display:grid;
  grid-template-columns:minmax(0,1fr) 150px;
  grid-template-rows:auto auto auto;
  align-items:end;
  gap:6px 10px;
}
#workspace .card-action-editor form .next-action-text,
#workspace .task-action-inline-editor .next-action-text{
  grid-column:1;
  grid-row:1 / span 3;
  min-width:0;
}
#workspace .card-action-editor form .next-action-date,
#workspace .task-action-inline-editor .next-action-date{
  grid-column:2;
  grid-row:1 / span 2;
  display:grid;
  grid-template-rows:auto auto;
  gap:4px;
  width:150px;
  min-width:0;
}
#workspace .card-action-editor form .next-action-date > span:first-child,
#workspace .task-action-inline-editor .next-action-date > span:first-child{
  display:block;
}
#workspace .card-action-editor form .next-action-date > .workbench-date-field,
#workspace .task-action-inline-editor .next-action-date > .workbench-date-field{
  display:block;
  width:150px;
  flex:0 0 150px;
}
#workspace .card-action-editor form > button,
#workspace .task-action-inline-editor > button{
  grid-column:2;
  grid-row:3;
  width:100%;
  min-height:36px;
}

/* Keep the calendar compact even when the browser applies dialog defaults. */
#workbench-date-picker{
  width:min(360px,calc(100vw - 24px)) !important;
  max-width:360px !important;
  min-width:0 !important;
  max-height:calc(100dvh - 24px) !important;
  margin:auto !important;
  box-sizing:border-box !important;
  padding:16px !important;
}
#workbench-date-picker .date-picker-days{max-height:300px;overflow:auto}

@media(max-width:600px){
  #workspace .card-action-editor form,
  #workspace .task-action-inline-editor{
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto;
  }
  #workspace .card-action-editor form .next-action-text,
  #workspace .task-action-inline-editor .next-action-text,
  #workspace .card-action-editor form .next-action-date,
  #workspace .task-action-inline-editor .next-action-date,
  #workspace .card-action-editor form > button,
  #workspace .task-action-inline-editor > button{
    grid-column:1;
    grid-row:auto;
    width:100%;
  }
  #workspace .card-action-editor form .next-action-date,
  #workspace .task-action-inline-editor .next-action-date{
    display:grid;
    width:100%;
  }
  #workspace .card-action-editor form .next-action-date > .workbench-date-field,
  #workspace .task-action-inline-editor .next-action-date > .workbench-date-field{
    width:100%;
    flex-basis:auto;
  }
}

/* 2026-10-25 compact execution baseline: keep every record, reveal long
   background/history/editors only when requested. Desktop keeps its sizing. */
#workspace :is(.task-action-editor-shell,.compact-action-editor,.task-card-background,.project-source-background,.project-source-history,.project-messages,.progress-updates,.detail-source-evidence){margin:5px 0;min-width:0}
#workspace :is(.task-action-editor-shell,.compact-action-editor)>summary,
body dialog :is(.project-source-background,.project-source-history,.project-messages,.progress-updates,.detail-source-evidence,.editor-source-evidence)>summary{
 cursor:pointer;list-style:none;min-height:30px;padding:5px 8px;border:1px solid #d8e3d7;border-radius:7px;background:#f5f8f3;color:#416052;font-size:12px;line-height:1.5
}
#workspace :is(.task-action-editor-shell,.compact-action-editor)>summary::-webkit-details-marker,
body dialog :is(.project-source-background,.project-source-history,.project-messages,.progress-updates,.detail-source-evidence,.editor-source-evidence)>summary::-webkit-details-marker{display:none}
#workspace .task-action-editor-shell[open]>summary,#workspace .compact-action-editor[open]>summary{margin-bottom:5px}
#workspace .compact-action-editor:not([open])>:not(summary),
#workspace .action-history:not([open])>:not(summary),
#workspace .task-action-history:not([open])>:not(summary),
#workspace .mg-kpi-details:not([open])>:not(summary),
body dialog :is(.project-source-background,.project-source-history,.project-messages,.progress-updates,.detail-source-evidence,.editor-source-evidence):not([open])>:not(summary){display:none!important}
#workspace .task-action-editor-shell .task-action-inline-editor{margin:0}
#workspace .compact-action-editor{padding:0;background:transparent;border:0}
#workspace .compact-action-editor>form{margin-top:5px}
#workspace .action-history>summary,#workspace .task-action-history>summary{cursor:pointer;min-height:28px;padding:4px 0;color:#61766c;font-size:11px}
#workspace .team-execution-group{border:1px solid #dbe4da;border-radius:9px;background:#fff;margin:6px 0;overflow:hidden}
#workspace .team-execution-group>.team-execution-group-heading{cursor:pointer;list-style:none;margin:0;padding:9px 11px}
#workspace .team-execution-group>.team-execution-group-heading::-webkit-details-marker{display:none}
#workspace .team-execution-group[open]>.team-execution-group-heading{background:#f1f5ee;border-bottom:1px solid #dbe4da}
#workspace .team-execution-group>.team-execution-rows{padding:7px}
#workspace .mg-kpi-details{margin:5px 10px 10px;border-top:1px solid #e2e8e0}
#workspace .mg-kpi-details>summary{cursor:pointer;min-height:32px;padding:7px 2px;color:#5b7061;font-size:11px}
#workspace .mg-kpi-details .mg-kpi-source{padding:5px 2px;margin:4px 0;overflow-wrap:anywhere}
body dialog .detail-source-evidence{margin:0}
body dialog .detail-source-evidence>summary{margin-bottom:4px}

@media(max-width:700px){
 #workspace main{padding:8px 8px 82px}
 #workspace main>header{margin-bottom:8px}
 #workspace main :is(.company-grid,.company-task-list,.role-list,.cards,.mg-items,.mg-goals,.workspace-grid){gap:6px}
 #workspace main :is(.company-card,.role-board,.company-task,.mg-item,.mg-goal,.card,.sales-overview,.workspace-tools){padding:8px;margin-top:5px;margin-bottom:5px}
 #workspace main :is(.section-title,.company-heading,.role-list-head,.mg-dashboard-title){margin-top:5px;margin-bottom:5px}
 #workspace .company-heading{display:flex;align-items:center;min-height:36px;margin:0 0 5px;padding:2px 0}
 #workspace .company-heading h2{font-size:18px;line-height:1.35;margin:0}
 #workspace .company-heading p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:10px;line-height:1.35;margin:1px 0 0}
 #workspace .company-actions{gap:4px;margin:4px 0}
 #workspace .company-actions button,#workspace .company-card button{min-height:32px;padding:5px 8px;font-size:11px}
 #workspace .team-execution-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin-bottom:6px}
 #workspace .team-execution-metric{padding:6px 4px;min-width:0}
 #workspace .team-execution-metric span,#workspace .team-execution-metric small{font-size:9px;line-height:1.25}
 #workspace .team-execution-metric strong{font-size:19px;margin:2px 0}
 #workspace .team-execution-group>.team-execution-group-heading{padding:7px 8px;gap:5px}
 #workspace .team-execution-group>.team-execution-group-heading h3{font-size:14px;margin:0}
 #workspace .team-execution-group>.team-execution-group-heading small,#workspace .team-execution-group>.team-execution-group-heading>span{font-size:9px;line-height:1.35}
 #workspace .team-execution-group>.team-execution-rows{padding:5px}
 #workspace .calendar-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;padding:6px}
 #workspace .calendar-summary>*{min-width:0;padding:3px;text-align:center;font-size:9px;line-height:1.25}
 #workspace .calendar-summary b{display:block;font-size:16px;margin:1px 0}
 #workspace .calendar-agenda{margin-top:6px;padding:7px}
 #workspace .calendar-agenda h3{font-size:14px;margin:0 0 5px}
 #workspace .calendar-entry{padding:6px;margin:3px 0}
 #workspace :is(.calendar-month-list,#calendar-undated-list)>summary{min-height:32px;padding:6px 4px;font-size:11px}
 #workspace .task-action-editor-shell>summary{min-height:30px;padding:5px 7px}
 #workspace .company-task .task-card-summary-row{gap:4px 7px;margin-bottom:3px}
 #workspace .company-task .task-card-summary-row small{font-size:9px}
 #workspace .company-task .task-card-summary-row strong{font-size:11px;line-height:1.35}
 #workspace .company-task .task-card-actions{gap:4px;margin-top:5px;padding-top:5px;flex-wrap:nowrap;overflow-x:auto}
 #workspace .company-task .task-card-actions>button,#workspace .company-task .task-card-actions>.bar-task-check{min-height:32px;padding:5px 7px;font-size:10px}
 body dialog{width:calc(100% - 16px);padding:10px;max-height:88dvh}
 body dialog .dialog-head h2{font-size:17px;margin:4px 0}
 body dialog .form-grid{gap:6px}
 body dialog :is(input,textarea,select){padding:7px}
 body dialog .dialog-foot{gap:5px;margin-top:8px}
 body dialog .dialog-foot button{min-height:34px;padding:6px 9px}
}

/* 机会清单沿用事项清单卡片结构：项目/负责人/客户/跟进摘要，行动与历史保持突出。 */
#workspace .sales-opportunity-list-body{display:grid;gap:12px;min-width:0}
#workspace .sales-opportunity-group{display:grid;gap:8px;min-width:0}
#workspace .sales-opportunity-group>h4{margin:0;padding:7px 10px;border-left:3px solid #7ea98e;background:#edf4ed;color:#315c48;font-size:13px;line-height:1.5}
#workspace .sales-opportunity-card{padding:10px 12px;border:1px solid #d6e2d8;border-top:3px solid #4f9071;background:#fff;border-radius:12px;box-shadow:none;min-width:0}
#workspace .sales-opportunity-main{display:grid;grid-template-columns:86px minmax(0,1fr);gap:10px;min-width:0}
#workspace .sales-opportunity-media{min-width:0;color:#315c48}
#workspace .sales-opportunity-id{display:block;margin-bottom:4px;font-size:13px;line-height:1.4}
#workspace .sales-opportunity-number{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:20px;margin-right:8px;padding:0 5px;border-radius:5px;background:#315c48;color:#fff;font-size:12px;font-weight:700;vertical-align:middle}
#workspace .sales-opportunity-media .sales-thumbs{display:grid;grid-template-columns:1fr;gap:5px}
#workspace .sales-opportunity-media .sales-thumb{width:72px;height:56px;object-fit:cover;border:1px solid #d8e1d8;border-radius:7px}
#workspace .sales-opportunity-content{min-width:0}
#workspace .sales-opportunity-summary{margin:0 0 6px;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1.2fr) minmax(0,.8fr);padding:7px 9px}
#workspace .sales-opportunity-summary>span{min-width:0;display:flex;align-items:baseline;gap:4px;overflow-wrap:anywhere}
#workspace .sales-opportunity-summary small{color:#7a8a7a;font-size:10px;flex:0 0 auto}
#workspace .sales-opportunity-summary strong{font-size:12px;min-width:0;overflow-wrap:anywhere}
#workspace .sales-opportunity-meta{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin:0 0 6px;color:#6b7c70;font-size:11px}
#workspace .sales-opportunity-meta .tag{padding:2px 7px;border-radius:5px;background:#edf4ed;color:#3d6c52}
#workspace .sales-opportunity-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px 10px;margin:5px 0 8px;padding:6px 8px;border:1px solid #e2e9df;border-radius:7px;background:#f8faf6}
#workspace .sales-opportunity-facts div{min-width:0}
#workspace .sales-opportunity-facts dt{font-size:10px;color:#7b8873}
#workspace .sales-opportunity-facts dd{margin:1px 0 0;font-size:12px;font-weight:650;color:#31533d;overflow-wrap:anywhere}
#workspace .sales-message-item{min-width:0}
#workspace .sales-previous-action{margin:7px 0;padding:6px 9px;border-left:3px solid #b9c8bb;background:#f7faf6;border-radius:0 7px 7px 0}
#workspace .sales-previous-action>b{display:block;color:#66786b;font-size:11px;font-weight:600}
#workspace .sales-previous-action>p{margin:3px 0;font-size:12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
#workspace .sales-previous-action>small{display:block;color:#87948a;font-size:10px}
#workspace .sales-opportunity-current{margin:7px 0 8px}
#workspace .sales-opportunity-current>p{font-size:15px}
#workspace .sales-progress-message{padding:6px 9px;border-left:3px solid #a9c6b4;background:#f7faf7;border-radius:0 7px 7px 0;margin:6px 0;font-size:12px}
#workspace .sales-progress-message>b{font-size:11px;color:#65786b}
#workspace .sales-progress-message>p{margin:3px 0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}
#workspace .sales-opportunity-background{margin:7px 0 0;padding-top:6px;border-top:1px solid #edf0e8}
#workspace .sales-opportunity-background>summary{cursor:pointer;color:#718375;font-size:11px;line-height:1.7}
#workspace .sales-opportunity-background>summary span{float:right;font-size:10px}
#workspace .sales-opportunity-background .sales-project-messages{margin-top:5px}
#workspace .sales-opportunity-background p{margin:4px 0;font-size:11px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
#workspace .sales-chat-records{margin:8px 0;padding:8px 10px!important;border:1px solid #dce7dc;border-radius:8px;background:#fbfcf9}
#workspace .sales-chat-records>h5{margin:0 0 7px;color:#315c48;font-size:12px}
#workspace .sales-chat-record-group{margin:0!important;padding:0!important}
#workspace .sales-chat-record-group+section{margin-top:10px!important;padding-top:10px!important;border-top:1px solid #dfe7de}
#workspace .sales-chat-record-group>header{display:flex;justify-content:space-between;gap:10px;align-items:baseline;margin-bottom:5px;color:#466654;font-size:11px}
#workspace .sales-chat-record-group>header span{white-space:nowrap;color:#7b8c80}
#workspace .sales-chat-record-day h6{margin:7px 0 3px;color:#31533d;font-size:11px}
#workspace .sales-chat-record-day p{display:grid;grid-template-columns:42px 108px minmax(0,1fr);gap:7px;align-items:baseline;margin:0!important;padding:4px 0;border-bottom:1px solid #edf1eb;font-size:11px!important}
#workspace .sales-chat-record-day time{margin:0;color:#718077;font-size:10px}
#workspace .sales-chat-record-day b{min-width:0;color:#315c48;font-size:11px;overflow-wrap:anywhere}
#workspace .sales-chat-record-day span{min-width:0;white-space:pre-wrap;overflow-wrap:anywhere}
#workspace .sales-chat-message{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px}
#workspace .sales-chat-classify{display:inline-flex;flex-wrap:wrap;gap:4px;margin-left:6px}
#workspace .sales-chat-classify button{min-height:28px;padding:2px 8px;font-size:11px;line-height:1.2}
#workspace .sales-chat-source-image{min-height:28px;margin:0;padding:3px 8px;border:1px solid #b87b16;border-radius:6px;background:#fff;color:#7b5415;font-size:10px;line-height:1.3;white-space:nowrap}
#workspace .sales-chat-source-image:hover{background:#fff8e8}
#workspace .sales-chat-image-missing{color:#8b7560;font-size:10px}
#workspace .sales-opportunity-actions{margin-top:7px;padding-top:8px;border-top:1px solid #edf0e8;justify-content:flex-end}
#workspace .sales-opportunity-actions>div{justify-content:flex-end}
@media(max-width:700px){
 #workspace .sales-opportunity-card{padding:9px}
 #workspace .sales-opportunity-main{grid-template-columns:64px minmax(0,1fr);gap:8px}
 #workspace .sales-opportunity-media .sales-thumb{width:58px;height:48px}
 #workspace .sales-opportunity-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px}
 #workspace .sales-opportunity-summary>span:nth-child(3){grid-column:1/-1}
 #workspace .sales-opportunity-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px}
 #workspace .sales-opportunity-actions{justify-content:flex-start}
 #workspace .sales-opportunity-actions>div{justify-content:flex-start}
 #workspace .sales-chat-records{padding:7px!important}
 #workspace .sales-chat-record-day p{grid-template-columns:38px 72px minmax(0,1fr);gap:5px}
 #workspace .sales-chat-source-image{min-height:44px;padding-inline:10px}
}


/* Match the desktop “下一步” action to the visible date control length. */
@media(min-width:601px){
  #workspace .card-action-editor form > button,
  #workspace .task-action-inline-editor > button{
    width:118px;
    justify-self:start;
  }
}

/* Sales bar dashboards show their opportunity list in place. */
#workspace .company-sales-opportunities{margin:12px 0;padding:14px;border:1px solid #d5e2d5;border-radius:12px;background:#fff;min-width:0}
#workspace .sales-bar-opportunity-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:10px}
#workspace .sales-bar-opportunity-heading h3{margin:0 0 3px;color:#315c48}
#workspace .sales-bar-opportunity-heading p{margin:0;color:#718375;font-size:12px}
#workspace .sales-bar-opportunity-heading>div:last-child{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
#workspace .sales-bar-opportunity-groups{display:grid;gap:12px;min-width:0}
#workspace .sales-bar-opportunity-group{display:grid;gap:7px;min-width:0}
#workspace .sales-bar-opportunity-group>h4{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0;padding:7px 10px;border-left:3px solid #6f9f7e;background:#edf4ed;color:#315c48;font-size:13px}
#workspace .sales-bar-opportunity-group>h4 small{font-weight:500;color:#6c8171}
#workspace .sales-bar-opportunity-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0}
#workspace .sales-bar-opportunity-card{display:grid;gap:7px;padding:10px 11px;border:1px solid #dce7dc;border-radius:9px;background:#fbfcf9;min-width:0}
#workspace .sales-bar-opportunity-title{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.2fr);gap:8px;padding-bottom:7px;border-bottom:1px solid #e4ebe2;min-width:0}
#workspace .sales-bar-opportunity-title span{display:grid;gap:2px;min-width:0}
#workspace .sales-bar-opportunity-title small,#workspace .sales-bar-opportunity-next small{font-size:10px;color:#7a8a7a}
#workspace .sales-bar-opportunity-title strong{font-size:14px;overflow-wrap:anywhere}
#workspace .sales-bar-opportunity-card dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px 8px;margin:0}
#workspace .sales-bar-opportunity-card dl div{min-width:0}
#workspace .sales-bar-opportunity-card dt{font-size:10px;color:#7a8a7a}
#workspace .sales-bar-opportunity-card dd{margin:2px 0 0;font-size:11px;color:#365443;overflow-wrap:anywhere}
#workspace .sales-bar-opportunity-next{padding:6px 8px;border-left:3px solid #a8c3af;background:#f3f7f1}
#workspace .sales-bar-opportunity-next p{margin:2px 0 0;font-size:12px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
#workspace .sales-bar-opportunity-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#718375;font-size:11px}
#workspace .sales-bar-opportunity-actions button{min-height:34px;padding:6px 10px}
@media(max-width:800px){
 #workspace .sales-bar-opportunity-rows{grid-template-columns:1fr}
}
@media(max-width:600px){
 #workspace .company-sales-opportunities{padding:9px;margin:8px 0}
 #workspace .sales-bar-opportunity-heading{align-items:stretch;flex-direction:column;gap:7px}
 #workspace .sales-bar-opportunity-heading>div:last-child{justify-content:flex-start}
 #workspace .sales-bar-opportunity-heading button{min-height:34px;padding:6px 8px;font-size:11px}
 #workspace .sales-bar-opportunity-group>h4{align-items:flex-start;flex-direction:column;gap:2px;padding:6px 8px}
 #workspace .sales-bar-opportunity-card{padding:8px}
 #workspace .sales-bar-opportunity-card dl{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* 机会清单沿用事项清单卡片结构：项目/负责人/客户/跟进摘要，行动与历史保持突出。 */
#workspace .sales-opportunity-list-body{display:grid;gap:12px;min-width:0}
#workspace .sales-opportunity-group{display:grid;gap:8px;min-width:0}
#workspace .sales-opportunity-group>h4{margin:0;padding:7px 10px;border-left:3px solid #7ea98e;background:#edf4ed;color:#315c48;font-size:13px;line-height:1.5}
#workspace .sales-opportunity-card{padding:10px 12px;border:1px solid #d6e2d8;border-top:3px solid #4f9071;background:#fff;border-radius:12px;box-shadow:none;min-width:0}
#workspace .sales-opportunity-main{display:grid;grid-template-columns:86px minmax(0,1fr);gap:10px;min-width:0}
#workspace .sales-opportunity-media{min-width:0;color:#315c48}
#workspace .sales-opportunity-id{display:block;margin-bottom:4px;font-size:13px;line-height:1.4}
#workspace .sales-opportunity-media .sales-thumbs{display:grid;grid-template-columns:1fr;gap:5px}
#workspace .sales-opportunity-media .sales-thumb{width:72px;height:56px;object-fit:cover;border:1px solid #d8e1d8;border-radius:7px}
#workspace .sales-opportunity-content{min-width:0}
#workspace .sales-opportunity-summary{margin:0 0 6px;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1.2fr) minmax(0,.8fr);padding:7px 9px}
#workspace .sales-opportunity-summary>span{min-width:0;display:flex;align-items:baseline;gap:4px;overflow-wrap:anywhere}
#workspace .sales-opportunity-summary small{color:#7a8a7a;font-size:10px;flex:0 0 auto}
#workspace .sales-opportunity-summary strong{font-size:12px;min-width:0;overflow-wrap:anywhere}
#workspace .sales-opportunity-meta{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin:0 0 6px;color:#6b7c70;font-size:11px}
#workspace .sales-opportunity-meta .tag{padding:2px 7px;border-radius:5px;background:#edf4ed;color:#3d6c52}
#workspace .sales-opportunity-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px 10px;margin:5px 0 8px;padding:6px 8px;border:1px solid #e2e9df;border-radius:7px;background:#f8faf6}
#workspace .sales-opportunity-facts div{min-width:0}
#workspace .sales-opportunity-facts dt{font-size:10px;color:#7b8873}
#workspace .sales-opportunity-facts dd{margin:1px 0 0;font-size:12px;font-weight:650;color:#31533d;overflow-wrap:anywhere}
#workspace .sales-message-item{min-width:0}
#workspace .sales-previous-action{margin:7px 0;padding:6px 9px;border-left:3px solid #b9c8bb;background:#f7faf6;border-radius:0 7px 7px 0}
#workspace .sales-previous-action>b{display:block;color:#66786b;font-size:11px;font-weight:600}
#workspace .sales-previous-action>p{margin:3px 0;font-size:12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
#workspace .sales-previous-action>small{display:block;color:#87948a;font-size:10px}
#workspace .sales-opportunity-current{margin:7px 0 8px}
#workspace .sales-opportunity-current>p{font-size:15px}
#workspace .sales-progress-message{padding:6px 9px;border-left:3px solid #a9c6b4;background:#f7faf7;border-radius:0 7px 7px 0;margin:6px 0;font-size:12px}
#workspace .sales-progress-message>b{font-size:11px;color:#65786b}
#workspace .sales-progress-message>p{margin:3px 0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}
#workspace .sales-opportunity-background{margin:7px 0 0;padding-top:6px;border-top:1px solid #edf0e8}
#workspace .sales-opportunity-background>summary{cursor:pointer;color:#718375;font-size:11px;line-height:1.7}
#workspace .sales-opportunity-background>summary span{float:right;font-size:10px}
#workspace .sales-opportunity-background .sales-project-messages{margin-top:5px}
#workspace .sales-opportunity-background p{margin:4px 0;font-size:11px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
#workspace .sales-opportunity-actions{margin-top:7px;padding-top:8px;border-top:1px solid #edf0e8;justify-content:flex-end}
#workspace .sales-opportunity-actions>div{justify-content:flex-end}
@media(max-width:700px){
 #workspace .sales-opportunity-card{padding:9px}
 #workspace .sales-opportunity-main{grid-template-columns:64px minmax(0,1fr);gap:8px}
 #workspace .sales-opportunity-media .sales-thumb{width:58px;height:48px}
 #workspace .sales-opportunity-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px}
 #workspace .sales-opportunity-summary>span:nth-child(3){grid-column:1/-1}
 #workspace .sales-opportunity-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px}
 #workspace .sales-opportunity-actions{justify-content:flex-start}
 #workspace .sales-opportunity-actions>div{justify-content:flex-start}
}
#workspace .sales-opportunity-group>h4{display:grid;grid-template-columns:auto auto minmax(280px,1fr);align-items:center;gap:10px 18px}
#workspace .sales-opportunity-group .sales-group-identity{white-space:nowrap}
#workspace .sales-opportunity-group .sales-group-total{color:#315c48;font-size:14px;font-variant-numeric:tabular-nums;white-space:nowrap}
#workspace .sales-opportunity-group .sales-group-sort{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:11px;font-weight:400;color:#35566a}
#workspace .sales-opportunity-group .sales-group-sort label{display:inline-flex;align-items:center;gap:4px;margin:0;white-space:nowrap}
#workspace .sales-opportunity-group .sales-group-sort input{width:16px;height:16px;margin:0;accent-color:#24563e}
#workspace .sales-next-action-update{margin:8px 0 9px}
#workspace .sales-next-action-update .next-action-date{min-width:170px}
#workspace .sales-next-action-update .next-action-date input{min-height:36px}
@media(max-width:700px){#workspace .sales-opportunity-group>h4{grid-template-columns:minmax(0,1fr) auto;gap:5px 8px}#workspace .sales-opportunity-group .sales-group-identity{min-width:0;white-space:normal}#workspace .sales-opportunity-group .sales-group-total{font-size:12px}#workspace .sales-opportunity-group .sales-group-sort{grid-column:1/-1;margin-top:1px;gap:6px}#workspace .sales-next-action-update .next-action-date{min-width:0}}

/* Public control-sizing baseline: action labels determine the button box.
   Calendar cells, navigation rows, image tiles and text-entry areas keep their
   layout width because their content is not a fixed action name. */
#workspace .card-action-editor form > button,
#workspace .task-action-inline-editor > button,
#workspace .next-action-update button,
#workspace .image-input-actions > button{
  width:max-content;
  max-width:100%;
  min-width:0;
  flex:0 0 auto;
  justify-self:start;
  white-space:normal;
  overflow-wrap:anywhere;
}
#image-save,
.sales-card > button,
.account-page-actions > button{
  width:max-content;
  max-width:100%;
  min-width:0;
  flex:0 0 auto;
  justify-self:start;
  white-space:normal;
  overflow-wrap:anywhere;
}
#image-save{margin-left:auto;margin-right:auto}
#image-paste-dialog .dialog-foot button{
  flex:0 0 auto;
  min-width:0;
  width:max-content;
  max-width:100%;
}
#workspace input:is([type="button"],[type="submit"],[type="reset"]){
  width:max-content;
  max-width:100%;
}
.login .primary{
  width:max-content;
  max-width:100%;
  min-width:44px;
  display:block;
  margin-left:auto;
  margin-right:auto;
}
dialog .dialog-foot :is(button,input[type="button"],input[type="submit"]),
dialog .dialog-foot .primary{
  width:max-content;
  max-width:100%;
  flex:0 0 auto;
}

/* 机会卡操作按钮高度随文字，避免固定高度和网格拉伸。 */
#workspace .sales-next-action-update > button,
#workspace .sales-next-action-update .next-action-date .workbench-date-trigger,
#workspace .sales-opportunity-actions button{
  height:auto;
  min-height:0;
  padding:4px 8px;
  line-height:1.4;
  align-self:start;
}

/* Mobile card controls: keep the three follow-up controls on one line below
   the text area, and give context and actions their own full-width rows. */
@media(max-width:600px){
  #workspace .card-action-editor form,
  #workspace .task-action-inline-editor{
    grid-template-columns:auto minmax(0,1fr) 118px;
    grid-template-rows:auto auto;
    align-items:center;
    gap:6px;
  }
  #workspace .card-action-editor form .next-action-text,
  #workspace .task-action-inline-editor .next-action-text{
    grid-column:1 / -1;
    grid-row:1;
  }
  #workspace .card-action-editor form .next-action-date,
  #workspace .task-action-inline-editor .next-action-date{
    grid-column:1 / span 2;
    grid-row:2;
    display:flex;
    align-items:center;
    gap:5px;
    width:auto;
  }
  #workspace .card-action-editor form .next-action-date > .workbench-date-field,
  #workspace .task-action-inline-editor .next-action-date > .workbench-date-field{
    width:118px;
    flex:0 0 118px;
  }
  #workspace .card-action-editor form > button,
  #workspace .task-action-inline-editor > button{
    grid-column:3;
    grid-row:2;
    width:118px;
    justify-self:end;
  }
  #workspace .task-context-actions-row{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:7px;
  }
  #workspace .task-context-actions-row > .bar-task-context,
  #workspace .task-context-actions-row > .task-actions-floating{
    width:100%;
    flex:0 0 auto;
    box-sizing:border-box;
  }
  #workspace .task-context-actions-row > .task-actions-floating{
    position:sticky;
    bottom:6px;
  }
  #workspace .task-context-actions-row > .task-actions-floating .task-card-actions{
    display:flex;
    flex-wrap:nowrap;
    justify-content:stretch;
    gap:4px;
    width:100%;
  }
  #workspace .task-context-actions-row > .task-actions-floating .task-card-actions > button,
  #workspace .task-context-actions-row > .task-actions-floating .task-card-actions > label,
  #workspace .task-context-actions-row > .task-actions-floating .task-card-actions > details{
    flex:1 1 0;
    min-width:0;
  }
  #workspace .task-context-actions-row > .task-actions-floating .task-card-actions > button,
  #workspace .task-context-actions-row > .task-actions-floating .task-card-actions > label,
  #workspace .task-context-actions-row > .task-actions-floating .task-card-actions > details > summary{
    box-sizing:border-box;
    width:100%;
    min-height:34px;
    padding:6px 3px;
    font-size:10px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    text-align:center;
  }
}
@media(max-width:340px){
  #workspace .card-action-editor form,
  #workspace .task-action-inline-editor{grid-template-columns:auto minmax(0,1fr) 100px}
  #workspace .card-action-editor form .next-action-date > .workbench-date-field,
  #workspace .task-action-inline-editor .next-action-date > .workbench-date-field,
  #workspace .card-action-editor form > button,
  #workspace .task-action-inline-editor > button{width:100px;flex-basis:100px}
}

/* 机会清单沿用事项清单卡片结构：项目/负责人/客户/跟进摘要，行动与历史保持突出。 */
#workspace .sales-opportunity-list-body{display:grid;gap:12px;min-width:0}
#workspace .sales-opportunity-group{display:grid;gap:8px;min-width:0}
#workspace .sales-opportunity-group>h4{margin:0;padding:7px 10px;border-left:3px solid #7ea98e;background:#edf4ed;color:#315c48;font-size:13px;line-height:1.5}
#workspace .sales-opportunity-card{padding:10px 12px;border:1px solid #d6e2d8;border-top:3px solid #4f9071;background:#fff;border-radius:12px;box-shadow:none;min-width:0}
#workspace .sales-opportunity-main{display:grid;grid-template-columns:86px minmax(0,1fr);gap:10px;min-width:0}
#workspace .sales-opportunity-media{min-width:0;color:#315c48}
#workspace .sales-opportunity-id{display:block;margin-bottom:4px;font-size:13px;line-height:1.4}
#workspace .sales-opportunity-media .sales-thumbs{display:grid;grid-template-columns:1fr;gap:5px}
#workspace .sales-opportunity-media .sales-thumb{width:72px;height:56px;object-fit:cover;border:1px solid #d8e1d8;border-radius:7px}
#workspace .sales-opportunity-content{min-width:0}
#workspace .sales-opportunity-summary{margin:0 0 6px;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1.2fr) minmax(0,.8fr);padding:7px 9px}
#workspace .sales-opportunity-summary>span{min-width:0;display:flex;align-items:baseline;gap:4px;overflow-wrap:anywhere}
#workspace .sales-opportunity-summary small{color:#7a8a7a;font-size:10px;flex:0 0 auto}
#workspace .sales-opportunity-summary strong{font-size:12px;min-width:0;overflow-wrap:anywhere}
#workspace .sales-opportunity-meta{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin:0 0 6px;color:#6b7c70;font-size:11px}
#workspace .sales-opportunity-meta .tag{padding:2px 7px;border-radius:5px;background:#edf4ed;color:#3d6c52}
#workspace .sales-opportunity-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px 10px;margin:5px 0 8px;padding:6px 8px;border:1px solid #e2e9df;border-radius:7px;background:#f8faf6}
#workspace .sales-opportunity-facts div{min-width:0}
#workspace .sales-opportunity-facts dt{font-size:10px;color:#7b8873}
#workspace .sales-opportunity-facts dd{margin:1px 0 0;font-size:12px;font-weight:650;color:#31533d;overflow-wrap:anywhere}
#workspace .sales-message-item{min-width:0}
#workspace .sales-previous-action{margin:7px 0;padding:6px 9px;border-left:3px solid #b9c8bb;background:#f7faf6;border-radius:0 7px 7px 0}
#workspace .sales-previous-action>b{display:block;color:#66786b;font-size:11px;font-weight:600}
#workspace .sales-previous-action>p{margin:3px 0;font-size:12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
#workspace .sales-previous-action>small{display:block;color:#87948a;font-size:10px}
#workspace .sales-opportunity-current{margin:7px 0 8px}
#workspace .sales-opportunity-current>p{font-size:15px}
#workspace .sales-progress-message{padding:6px 9px;border-left:3px solid #a9c6b4;background:#f7faf7;border-radius:0 7px 7px 0;margin:6px 0;font-size:12px}
#workspace .sales-progress-message>b{font-size:11px;color:#65786b}
#workspace .sales-progress-message>p{margin:3px 0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}
#workspace .sales-opportunity-background{margin:7px 0 0;padding-top:6px;border-top:1px solid #edf0e8}
#workspace .sales-opportunity-background>summary{cursor:pointer;color:#718375;font-size:11px;line-height:1.7}
#workspace .sales-opportunity-background>summary span{float:right;font-size:10px}
#workspace .sales-opportunity-background .sales-project-messages{margin-top:5px}
#workspace .sales-opportunity-background p{margin:4px 0;font-size:11px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
#workspace .sales-opportunity-actions{margin-top:7px;padding-top:8px;border-top:1px solid #edf0e8;justify-content:flex-end}
#workspace .sales-opportunity-actions>div{justify-content:flex-end}
@media(max-width:700px){
 #workspace .sales-opportunity-card{padding:9px}
 #workspace .sales-opportunity-main{grid-template-columns:64px minmax(0,1fr);gap:8px}
 #workspace .sales-opportunity-media .sales-thumb{width:58px;height:48px}
 #workspace .sales-opportunity-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px}
 #workspace .sales-opportunity-summary>span:nth-child(3){grid-column:1/-1}
 #workspace .sales-opportunity-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px}
 #workspace .sales-opportunity-actions{justify-content:flex-start}
 #workspace .sales-opportunity-actions>div{justify-content:flex-start}
}
#workspace .sales-opportunity-group>h4{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
#workspace .sales-opportunity-group .sales-group-sort{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:11px;font-weight:400;color:#35566a}
#workspace .sales-opportunity-group .sales-group-sort label{display:inline-flex;align-items:center;gap:4px;margin:0;white-space:nowrap}
#workspace .sales-opportunity-group .sales-group-sort input{width:16px;height:16px;margin:0;accent-color:#24563e}
#workspace .sales-next-action-update{margin:8px 0 9px}
#workspace .sales-next-action-update .next-action-date{min-width:170px}
#workspace .sales-next-action-update .next-action-date input{min-height:36px}
@media(max-width:700px){#workspace .sales-opportunity-group>h4{display:block}#workspace .sales-opportunity-group .sales-group-sort{margin-top:5px;gap:6px}#workspace .sales-next-action-update .next-action-date{min-width:0}}

/* Public control-sizing baseline: action labels determine the button box.
   Calendar cells, navigation rows, image tiles and text-entry areas keep their
   layout width because their content is not a fixed action name. */
#workspace .card-action-editor form > button,
#workspace .task-action-inline-editor > button,
#workspace .next-action-update button,
#workspace .image-input-actions > button{
  width:max-content;
  max-width:100%;
  min-width:0;
  flex:0 0 auto;
  justify-self:start;
  white-space:normal;
  overflow-wrap:anywhere;
}
#image-save,
.sales-card > button,
.account-page-actions > button{
  width:max-content;
  max-width:100%;
  min-width:0;
  flex:0 0 auto;
  justify-self:start;
  white-space:normal;
  overflow-wrap:anywhere;
}
#image-save{margin-left:auto;margin-right:auto}
#image-paste-dialog .dialog-foot button{
  flex:0 0 auto;
  min-width:0;
  width:max-content;
  max-width:100%;
}
#workspace input:is([type="button"],[type="submit"],[type="reset"]){
  width:max-content;
  max-width:100%;
}
.login .primary{
  width:max-content;
  max-width:100%;
  min-width:44px;
  display:block;
  margin-left:auto;
  margin-right:auto;
}
dialog .dialog-foot :is(button,input[type="button"],input[type="submit"]),
dialog .dialog-foot .primary{
  width:max-content;
  max-width:100%;
  flex:0 0 auto;
}

/* 机会卡操作按钮高度随文字，避免固定高度和网格拉伸。 */
#workspace .sales-next-action-update > button,
#workspace .sales-next-action-update .next-action-date .workbench-date-trigger,
#workspace .sales-opportunity-actions button{
  height:auto;
  min-height:0;
  padding:4px 8px;
  line-height:1.4;
  align-self:start;
}

/* Final mobile overrides follow the shared button-sizing baseline above. */
@media(max-width:600px){
  #workspace .card-action-editor form > button,
  #workspace .task-action-inline-editor > button{
    width:100%;
    max-width:100%;
    min-width:0;
    justify-self:stretch;
  }
}
/* Opportunity summary: two fixed information rows.  Follow-up date is kept
   in the right-hand action column below, so the header stays about identity
   and stage only. */
#workspace .sales-opportunity-summary{
  display:grid;
  gap:5px;
  padding:7px 9px;
  margin:0 0 6px;
  background:#f4f8f2;
  border:1px solid #dce7dc;
  border-radius:8px;
}
#workspace .sales-summary-row{display:grid;gap:8px;min-width:0}
#workspace .sales-summary-primary{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}
#workspace .sales-summary-secondary{grid-template-columns:minmax(0,1.25fr) minmax(0,.8fr) minmax(0,1fr)}
#workspace .sales-summary-row>span{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:baseline;gap:5px;min-width:0}
#workspace .sales-summary-row small{color:#7a8a7a;font-size:10px;white-space:nowrap}
#workspace .sales-summary-row strong{font-size:12px;min-width:0;overflow-wrap:anywhere;color:#244b3a}
#workspace .sales-summary-row em{grid-column:2;color:#708070;font-size:10px;font-style:normal;line-height:1.3;overflow-wrap:anywhere}
#workspace .sales-next-action-update{grid-template-columns:minmax(0,1fr) 150px;grid-template-rows:auto auto auto;align-items:end;gap:6px 10px}
#workspace .sales-next-action-update .next-action-text{grid-column:1;grid-row:1 / span 3;min-width:0}
#workspace .sales-next-action-update .next-action-date{grid-column:2;grid-row:1 / span 2;width:150px;min-width:0}
#workspace .sales-next-action-update>button{grid-column:2;grid-row:3;width:100%;justify-self:stretch}
#workspace .sales-opportunity-actions{align-items:center;justify-content:flex-end}
#workspace .sales-opportunity-actions>div{justify-content:flex-end;align-items:center}
@media(max-width:600px){
  #workspace .sales-summary-primary{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}
  #workspace .sales-summary-secondary{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  #workspace .sales-summary-row>span{display:block}
  #workspace .sales-summary-row small,#workspace .sales-summary-row strong,#workspace .sales-summary-row em{display:block}
  #workspace .sales-summary-row em{margin-top:1px}
  #workspace .sales-next-action-update{grid-template-columns:1fr;grid-template-rows:auto;gap:6px}
  #workspace .sales-next-action-update .next-action-text,
  #workspace .sales-next-action-update .next-action-date,
  #workspace .sales-next-action-update>button{grid-column:1;grid-row:auto;width:100%}
  #workspace .sales-opportunity-actions{justify-content:flex-start}
  #workspace .sales-opportunity-actions>div{justify-content:flex-start}
}

/* Opportunity cards: flow complete fields across available space, not nested narrow grids. */
#workspace .sales-opportunity-card{padding:7px 9px}
#workspace .sales-opportunity-main{grid-template-columns:64px minmax(0,1fr);gap:7px}
#workspace .sales-opportunity-media .sales-thumb{width:58px;height:48px}
#workspace .sales-opportunity-content{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;align-content:start}
#workspace .sales-opportunity-content>*{grid-column:1/-1;min-width:0}
#workspace .sales-opportunity-summary{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 14px;margin:0;padding:5px 7px}
#workspace .sales-opportunity-summary .sales-summary-row{display:contents}
#workspace .sales-opportunity-summary .sales-summary-row>span{display:inline-flex;align-items:baseline;gap:4px;flex:0 1 auto;width:max-content;max-width:100%;min-width:0}
#workspace .sales-opportunity-summary .sales-summary-row small{display:inline;flex:none;white-space:nowrap}
#workspace .sales-opportunity-summary .sales-summary-row strong{display:inline;line-height:1.45;word-break:normal;overflow-wrap:anywhere}
#workspace .sales-opportunity-summary .sales-summary-row em{display:inline;grid-column:auto;flex:none;margin:0;line-height:1.45}
#workspace .sales-opportunity-facts{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 18px;margin:0;padding:4px 7px}
#workspace .sales-opportunity-facts>div{display:flex;align-items:baseline;gap:5px}
#workspace .sales-opportunity-facts dd{margin:0;line-height:1.45}
#workspace .sales-opportunity-content :is(.sales-previous-action,.sales-internal-action,.sales-progress-message){margin:0;padding:4px 7px;font-size:12px;line-height:1.45}
#workspace .sales-opportunity-content :is(.sales-previous-action,.sales-internal-action,.sales-progress-message)>b{display:inline;margin-right:6px;font-size:11px}
#workspace .sales-opportunity-content :is(.sales-previous-action,.sales-internal-action,.sales-progress-message)>p{display:inline;margin:0;font-size:12px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
#workspace .sales-opportunity-content :is(.sales-previous-action,.sales-internal-action)>small{display:inline;margin-left:6px}
#workspace .sales-next-action-update{display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:auto;align-items:end;gap:5px 8px;margin:0;padding:5px 7px}
#workspace .sales-next-action-update .next-action-text{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px;grid-column:1;grid-row:1}
#workspace .sales-next-action-update .next-action-text>span{margin:0;white-space:nowrap}
#workspace .sales-next-action-update textarea{height:34px;min-height:34px;padding:5px 7px;line-height:1.45;resize:vertical}
#workspace .sales-next-action-update .next-action-date{display:flex;align-items:center;gap:5px;grid-column:2;grid-row:1;width:auto;min-width:0}
#workspace .sales-next-action-update .next-action-date>span:first-child{margin:0;white-space:nowrap}
#workspace .sales-next-action-update .next-action-date>.workbench-date-field{width:max-content;flex:0 0 auto;margin:0}
#workspace .sales-next-action-update>button{grid-column:3;grid-row:1;align-self:center;justify-self:start;width:max-content;max-width:100%;min-height:0;padding:4px 8px;line-height:1.4}
#workspace .sales-next-action-update .next-action-date .workbench-date-trigger{height:auto;min-height:0;padding:4px 8px;line-height:1.4}
#workspace .sales-opportunity-content>.sales-opportunity-background{grid-column:1;margin:0;padding:0;border-top:0;align-self:center}
#workspace .sales-opportunity-background>summary span{float:none;margin-left:8px}
#workspace .sales-opportunity-content>.sales-opportunity-background[open]{grid-column:1/-1}
#workspace .sales-opportunity-content>.sales-opportunity-actions{grid-column:2;margin:0;padding:0;border-top:0;align-self:center}
#workspace .sales-opportunity-actions>div{gap:5px;align-items:center}
#workspace .sales-opportunity-actions button{height:auto;min-height:0;padding:4px 8px;line-height:1.4;align-self:center}
@media(max-width:900px){
 #workspace .sales-next-action-update{grid-template-columns:auto minmax(0,1fr) auto}
 #workspace .sales-next-action-update .next-action-text{grid-column:1/-1;grid-row:1}
 #workspace .sales-next-action-update .next-action-date{display:contents}
 #workspace .sales-next-action-update .next-action-date>span:first-child{grid-column:1;grid-row:2;align-self:center}
 #workspace .sales-next-action-update .next-action-date>.workbench-date-field{grid-column:2;grid-row:2;width:max-content;max-width:100%}
 #workspace .sales-next-action-update>button{grid-column:3;grid-row:2}
}
@media(max-width:600px){
 #workspace .sales-opportunity-main{grid-template-columns:44px minmax(0,1fr);gap:6px}
 #workspace .sales-opportunity-media .sales-thumb{width:42px;height:38px}
 #workspace .sales-opportunity-summary{gap:3px 10px;padding:4px 6px}
 #workspace .sales-opportunity-facts{gap:3px 10px;padding:4px 6px}
 #workspace .sales-next-action-update .next-action-text{grid-template-columns:minmax(0,1fr);gap:3px}
 #workspace .sales-opportunity-content>.sales-opportunity-background,
 #workspace .sales-opportunity-content>.sales-opportunity-actions{grid-column:1/-1}
 #workspace .sales-opportunity-actions>div{justify-content:flex-start;flex-wrap:wrap}
}

/* Knowledge base bar classification tabs. */
.knowledge-bar-tools{margin:0 0 14px;padding:10px 12px;border:1px solid #d9e5d8;border-radius:10px;background:#f7faf5}
.knowledge-bar-tabs{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.knowledge-bar-tabs button{padding:6px 9px;border:1px solid #cbdacb;border-radius:7px;background:#fff;color:#47634f;font-size:12px;white-space:nowrap}
.knowledge-bar-tabs button.selected{background:#2f6546;color:#fff;border-color:#2f6546}
.knowledge-bar-tabs button b{margin-left:3px;font-weight:700}
.knowledge-bar-tools>.hint{margin:7px 0 0;font-size:11px}
.knowledge-card .knowledge-bar-tag{background:#e3efe4;color:#2f6546}
@media(max-width:600px){.knowledge-bar-tools{padding:8px}.knowledge-bar-tabs{gap:5px}.knowledge-bar-tabs button{padding:6px 7px;font-size:11px}.knowledge-bar-tools>.hint{font-size:10px}}
.internal-source-groups{margin:0 0 14px;padding:12px;border:1px solid #d9e5d8;border-radius:10px;background:#fff}.internal-source-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:9px}.internal-source-heading h3{margin:0 0 3px;font-size:15px;color:#294c3d}.internal-source-heading p{margin:0;color:var(--muted);font-size:11px;line-height:1.5}.internal-source-heading>span{flex:none;padding:4px 7px;border-radius:999px;background:#f7eadf;color:#8c552d;font-size:11px}.internal-source-table-wrap{overflow-x:auto}.internal-source-groups table{width:100%;min-width:820px;border-collapse:collapse}.internal-source-groups th,.internal-source-groups td{padding:7px 6px;border-bottom:1px solid #e5ebe5;text-align:left;vertical-align:middle;font-size:11px}.internal-source-groups th{color:#587766;font-weight:600}.internal-source-groups td:first-child{min-width:170px}.internal-source-groups td strong,.internal-source-groups td small{display:block}.internal-source-groups td small{margin-top:2px;color:var(--muted);font-size:10px}.internal-source-groups select,.internal-source-groups input{width:100%;min-width:118px;margin:0;padding:6px 7px;font-size:11px}.internal-source-groups input{min-width:150px}.internal-source-groups button{white-space:nowrap;padding:6px 9px}.internal-source-groups .tag.pending{background:#f7eadf;color:#8c552d}
@media(max-width:600px){.internal-source-groups{padding:9px}.internal-source-heading{align-items:center}.internal-source-heading p{font-size:10px}.internal-source-table-wrap{overflow:visible}.internal-source-groups table,.internal-source-groups tbody,.internal-source-groups tr,.internal-source-groups td{display:block;min-width:0;width:100%}.internal-source-groups thead{display:none}.internal-source-groups tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 8px;padding:9px 0;border-bottom:1px solid #dfe8df}.internal-source-groups td{padding:0;border:0;min-width:0!important}.internal-source-groups td:first-child,.internal-source-groups td:nth-child(4){grid-column:1/-1}.internal-source-groups td:last-child{align-self:end;text-align:right}.internal-source-groups td[data-label]:before{content:attr(data-label);display:block;margin-bottom:3px;color:#6d7f74;font-size:9px}.internal-source-groups select,.internal-source-groups input{min-width:0;width:100%}}

/* Final mobile overrides follow the shared button-sizing baseline above. */
@media(max-width:600px){
  #workspace .card-action-editor form > button,
  #workspace .task-action-inline-editor > button{
    width:100%;
    max-width:100%;
    min-width:0;
    justify-self:stretch;
  }
}
body[data-current-view="knowledge"] main{min-width:0;overflow-x:hidden}

/* Opportunity summary: two fixed information rows.  Follow-up date is kept
   in the right-hand action column below, so the header stays about identity
   and stage only. */
#workspace .sales-opportunity-summary{
  display:grid;
  gap:5px;
  padding:7px 9px;
  margin:0 0 6px;
  background:#f4f8f2;
  border:1px solid #dce7dc;
  border-radius:8px;
}
#workspace .sales-summary-row{display:grid;gap:8px;min-width:0}
#workspace .sales-summary-primary{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}
#workspace .sales-summary-secondary{grid-template-columns:minmax(0,1.25fr) minmax(0,.8fr) minmax(0,1fr)}
#workspace .sales-summary-row>span{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:baseline;gap:5px;min-width:0}
#workspace .sales-summary-row small{color:#7a8a7a;font-size:10px;white-space:nowrap}
#workspace .sales-summary-row strong{font-size:12px;min-width:0;overflow-wrap:anywhere;color:#244b3a}
#workspace .sales-summary-row em{grid-column:2;color:#708070;font-size:10px;font-style:normal;line-height:1.3;overflow-wrap:anywhere}
#workspace .sales-next-action-update{grid-template-columns:minmax(0,1fr) 150px;grid-template-rows:auto auto auto;align-items:end;gap:6px 10px}
#workspace .sales-next-action-update .next-action-text{grid-column:1;grid-row:1 / span 3;min-width:0}
#workspace .sales-next-action-update .next-action-date{grid-column:2;grid-row:1 / span 2;width:150px;min-width:0}
#workspace .sales-next-action-update>button{grid-column:2;grid-row:3;width:100%;justify-self:stretch}
#workspace .sales-opportunity-actions{align-items:center;justify-content:flex-end}
#workspace .sales-opportunity-actions>div{justify-content:flex-end;align-items:center}
@media(max-width:600px){
  #workspace .sales-summary-primary{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}
  #workspace .sales-summary-secondary{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  #workspace .sales-summary-row>span{display:block}
  #workspace .sales-summary-row small,#workspace .sales-summary-row strong,#workspace .sales-summary-row em{display:block}
  #workspace .sales-summary-row em{margin-top:1px}
  #workspace .sales-next-action-update{grid-template-columns:1fr;grid-template-rows:auto;gap:6px}
  #workspace .sales-next-action-update .next-action-text,
  #workspace .sales-next-action-update .next-action-date,
  #workspace .sales-next-action-update>button{grid-column:1;grid-row:auto;width:100%}
  #workspace .sales-opportunity-actions{justify-content:flex-start}
  #workspace .sales-opportunity-actions>div{justify-content:flex-start}
}

/* Opportunity cards: flow complete fields across available space, not nested narrow grids. */
#workspace .sales-opportunity-card{padding:7px 9px}
#workspace .sales-opportunity-main{grid-template-columns:64px minmax(0,1fr);gap:7px}
#workspace .sales-opportunity-media .sales-thumb{width:58px;height:48px}
#workspace .sales-opportunity-content{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;align-content:start}
#workspace .sales-opportunity-content>*{grid-column:1/-1;min-width:0}
#workspace .sales-opportunity-summary{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 14px;margin:0;padding:5px 7px}
#workspace .sales-opportunity-summary .sales-summary-row{display:contents}
#workspace .sales-opportunity-summary .sales-summary-row>span{display:inline-flex;align-items:baseline;gap:4px;flex:0 1 auto;width:max-content;max-width:100%;min-width:0}
#workspace .sales-opportunity-summary .sales-summary-row small{display:inline;flex:none;white-space:nowrap}
#workspace .sales-opportunity-summary .sales-summary-row strong{display:inline;line-height:1.45;word-break:normal;overflow-wrap:anywhere}
#workspace .sales-opportunity-summary .sales-summary-row em{display:inline;grid-column:auto;flex:none;margin:0;line-height:1.45}
#workspace .sales-opportunity-facts{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 18px;margin:0;padding:4px 7px}
#workspace .sales-opportunity-facts>div{display:flex;align-items:baseline;gap:5px}
#workspace .sales-opportunity-facts dd{margin:0;line-height:1.45}
#workspace .sales-opportunity-content :is(.sales-previous-action,.sales-internal-action,.sales-progress-message){margin:0;padding:4px 7px;font-size:12px;line-height:1.45}
#workspace .sales-opportunity-content :is(.sales-previous-action,.sales-internal-action,.sales-progress-message)>b{display:inline;margin-right:6px;font-size:11px}
#workspace .sales-opportunity-content :is(.sales-previous-action,.sales-internal-action,.sales-progress-message)>p{display:inline;margin:0;font-size:12px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
#workspace .sales-opportunity-content :is(.sales-previous-action,.sales-internal-action)>small{display:inline;margin-left:6px}
#workspace .sales-next-action-update{display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:auto;align-items:end;gap:5px 8px;margin:0;padding:5px 7px}
#workspace .sales-next-action-update .next-action-text{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px;grid-column:1;grid-row:1}
#workspace .sales-next-action-update .next-action-text>span{margin:0;white-space:nowrap}
#workspace .sales-next-action-update textarea{height:34px;min-height:34px;padding:5px 7px;line-height:1.45;resize:vertical}
#workspace .sales-next-action-update .next-action-date{display:flex;align-items:center;gap:5px;grid-column:2;grid-row:1;width:auto;min-width:0}
#workspace .sales-next-action-update .next-action-date>span:first-child{margin:0;white-space:nowrap}
#workspace .sales-next-action-update .next-action-date>.workbench-date-field{width:max-content;flex:0 0 auto;margin:0}
#workspace .sales-next-action-update>button{grid-column:3;grid-row:1;align-self:center;justify-self:start;width:max-content;max-width:100%;min-height:0;padding:4px 8px;line-height:1.4}
#workspace .sales-next-action-update .next-action-date .workbench-date-trigger{height:auto;min-height:0;padding:4px 8px;line-height:1.4}
#workspace .sales-opportunity-content>.sales-opportunity-background{grid-column:1;margin:0;padding:0;border-top:0;align-self:center}
#workspace .sales-opportunity-background>summary span{float:none;margin-left:8px}
#workspace .sales-opportunity-content>.sales-opportunity-background[open]{grid-column:1/-1}
#workspace .sales-opportunity-content>.sales-opportunity-actions{grid-column:2;margin:0;padding:0;border-top:0;align-self:center}
#workspace .sales-opportunity-actions>div{gap:5px;align-items:center}
#workspace .sales-opportunity-actions button{height:auto;min-height:0;padding:4px 8px;line-height:1.4;align-self:center}
@media(max-width:900px){
 #workspace .sales-next-action-update{grid-template-columns:auto minmax(0,1fr) auto}
 #workspace .sales-next-action-update .next-action-text{grid-column:1/-1;grid-row:1}
 #workspace .sales-next-action-update .next-action-date{display:contents}
 #workspace .sales-next-action-update .next-action-date>span:first-child{grid-column:1;grid-row:2;align-self:center}
 #workspace .sales-next-action-update .next-action-date>.workbench-date-field{grid-column:2;grid-row:2;width:max-content;max-width:100%}
 #workspace .sales-next-action-update>button{grid-column:3;grid-row:2}
}
@media(max-width:600px){
 #workspace .sales-opportunity-main{grid-template-columns:44px minmax(0,1fr);gap:6px}
 #workspace .sales-opportunity-media .sales-thumb{width:42px;height:38px}
 #workspace .sales-opportunity-summary{gap:3px 10px;padding:4px 6px}
 #workspace .sales-opportunity-facts{gap:3px 10px;padding:4px 6px}
 #workspace .sales-next-action-update .next-action-text{grid-template-columns:minmax(0,1fr);gap:3px}
 #workspace .sales-opportunity-content>.sales-opportunity-background,
 #workspace .sales-opportunity-content>.sales-opportunity-actions{grid-column:1/-1}
 #workspace .sales-opportunity-actions>div{justify-content:flex-start;flex-wrap:wrap}
}

/* Opportunity detail controls and per-image removal, 2026-10-24. */
#workspace .sales-detail-toolbar{display:flex;align-items:center;justify-content:space-between;gap:6px 12px;flex-wrap:wrap;margin-bottom:8px;min-width:0}
#workspace .sales-detail-toolbar>h3{margin:0}
#workspace .sales-detail-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap;margin-left:auto}
#workspace .sales-detail-actions button{font-size:12px;padding:5px 8px;min-height:0;white-space:nowrap}
#workspace .sales-card-image{display:grid;justify-items:start;gap:2px;min-width:0}
#workspace .sales-card-image>button{font-size:11px;padding:2px 0;min-height:0;line-height:1.3}
@media(max-width:600px){#workspace .sales-detail-toolbar{gap:5px}#workspace .sales-detail-actions{gap:4px}#workspace .sales-detail-actions button{font-size:11px;padding:4px 6px}}

#workspace .sales-heading>.sales-title-line{margin-left:0}

/* 2026-10-24: follow-up content is primary; label and timestamp are secondary. */
#workspace .sales-opportunity-content .sales-previous-action>b{font-size:10px;font-weight:400;color:#7b887e}
#workspace .sales-opportunity-content .sales-previous-action>p{font-size:13px;font-weight:600;color:#243d36;line-height:1.5}
#workspace .sales-opportunity-content .sales-previous-action>small{font-size:10px;font-weight:400;color:#7b887e}

/* 2026-10-24: follow-up content is primary; label and timestamp are secondary. */
#workspace .sales-opportunity-content .sales-previous-action>b{font-size:10px;font-weight:400;color:#7b887e}
#workspace .sales-opportunity-content .sales-previous-action>p{font-size:13px;font-weight:600;color:#243d36;line-height:1.5}
#workspace .sales-opportunity-content .sales-previous-action>small{font-size:10px;font-weight:400;color:#7b887e}

/* Paired add/remove controls beside each opportunity image, 2026-10-24. */
#workspace .sales-card-image-buttons{display:flex;flex-wrap:wrap;align-items:center;gap:2px 4px;max-width:100%}
#workspace .sales-card-image-buttons>button,#workspace .sales-opportunity-media [data-sales-card-add-image]{font-size:11px;line-height:1.3;padding:2px 0;min-height:0;white-space:nowrap}

/* 2026-10-24: give the follow-up editor more writing space. */
#workspace .sales-next-action-update{gap:8px 10px;padding:8px 9px;align-items:center}
#workspace .sales-next-action-update .next-action-text{display:block;min-width:0;width:100%;margin:0}
#workspace .sales-next-action-update textarea{width:100%;box-sizing:border-box;height:52px;min-height:52px;padding:8px 10px;font-size:13px;line-height:1.5}
#workspace .sales-next-action-update .next-action-date>span:first-child{font-size:11px;font-weight:400}
#workspace .sales-next-action-update .next-action-date .workbench-date-trigger{font-size:12px;padding:5px 7px}
@media(max-width:700px){
 #workspace .sales-next-action-update .next-action-text{grid-column:1/-1;grid-row:1}
 #workspace .sales-next-action-update textarea{height:64px;min-height:64px}
}

/* Inline opportunity stage selector, 2026-10-24. */
#workspace .sales-summary-row .sales-stage-select{display:inline-block;width:auto;max-width:100%;min-height:0;border:0;border-radius:3px;padding:1px 3px;background:transparent;color:#244b3a;font-family:inherit;font-size:12px;font-weight:700;line-height:1.45;cursor:pointer}
#workspace .sales-summary-row .sales-stage-select:hover{background:#e5eee5}
#workspace .sales-summary-row .sales-stage-select:focus-visible{outline:2px solid #4f9071;outline-offset:1px}
#workspace .sales-summary-row .sales-stage-select:disabled{cursor:wait;opacity:.65}
#workspace .sales-summary-row .sales-stage-loop-hint{grid-column:2;color:#587766;font-size:10px;font-style:normal;line-height:1.3;white-space:normal}

/* Upload is a compact dialog even when viewport fitting changes maxWidth. */
body #sales-card-upload{width:440px!important;max-width:calc(100vw - 24px)!important;min-width:0!important;height:auto;min-height:0;padding:14px;box-sizing:border-box}
#sales-card-upload .dialog-head h2{font-size:18px;margin:0}
#sales-card-upload .sales-upload-tools{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
#sales-card-upload .sales-upload-tools button{font-size:13px;padding:7px 12px}
#sales-card-upload .image-paste-zone{min-height:82px;padding:15px 10px;font-size:13px}
#sales-card-upload [data-upload-status]{font-size:12px;line-height:1.5;overflow-wrap:anywhere;margin:9px 0}
#sales-card-upload [data-upload-status][data-error=true]{color:#a34432}
#sales-card-upload .dialog-foot{margin-top:10px;padding-top:8px}

body #sales-card-upload{height:fit-content!important;max-height:calc(100dvh - 24px)!important;min-height:0!important;margin:auto!important;inset:0!important;overflow:auto}

/* Pointer activates the native file input directly; no scripted file dialog. */
#sales-card-upload .sales-native-file{position:relative;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;min-height:34px;margin:0;padding:7px 12px;font-size:13px;line-height:1.4;cursor:pointer}
#sales-card-upload .sales-native-file input[type=file]{display:block!important;position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0;padding:0;border:0;opacity:0.01;z-index:2;cursor:pointer;pointer-events:auto}
#sales-card-upload .sales-native-file:focus-within{outline:2px solid #4f9071;outline-offset:2px}

/* Opportunity history: latest five by default; native disclosure preserves drafts. */
#workspace .sales-followup-record{padding:3px 0}
#workspace .sales-followup-record+.sales-followup-record{border-top:1px solid #e7ece7}
#workspace .sales-followup-record>p{display:inline;margin:0;font-size:13px;font-weight:600;color:#243d36;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
#workspace .sales-followup-record>small{display:inline;margin-left:6px;font-size:10px;font-weight:400;color:#7b887e}
#workspace .sales-followup-record.followup-record-one-line{display:grid;padding:5px 48px 5px 0}
#workspace .sales-followup-record.followup-record-one-line>.followup-record-content{display:block;min-width:0;overflow:visible;text-overflow:clip;white-space:pre-wrap;overflow-wrap:anywhere;max-height:none}
#workspace .sales-followup-history>summary{cursor:pointer;width:fit-content;padding:4px 0;font-size:11px;color:#527160}
#workspace .sales-followup-history .sales-followup-collapse{display:none}
#workspace .sales-followup-history[open]>summary .sales-followup-expand{display:none}
#workspace .sales-followup-history[open]>summary .sales-followup-collapse{display:inline}

#workspace .sales-followup-delete{float:right;margin:0 0 2px 8px;padding:1px 5px;min-height:24px;font-size:10px;color:#a35d51}
#workspace .sales-followup-record:after{content:"";display:block;clear:both}

/* Sales preorder gap column, 2026-10-24. */
@media(max-width:700px){#workspace .sales-owner-table tbody tr{grid-template-columns:repeat(6,minmax(0,1fr))}}
/* Keep the six operating figures on one row on a phone. */
@media(max-width:440px){
 #workspace .sales-owner-table tbody tr:not(.sales-bar-summary-row){grid-template-columns:repeat(6,minmax(0,1fr));column-gap:0}
 #workspace .sales-owner-table .sales-owner-summary-row>th:first-child{grid-row:1;grid-column:1/4;min-height:34px;padding:4px 5px}
 #workspace .sales-owner-table .sales-owner-summary-row>td:last-child{grid-row:1;grid-column:4/-1;padding:2px 4px;gap:4px}
 #workspace .sales-owner-table .sales-owner-summary-row>td:last-child button{min-height:30px;padding:3px 5px;font-size:10px}
 #workspace .sales-owner-table tbody tr:not(.sales-bar-summary-row)>td:nth-child(n+2):nth-child(-n+7){grid-row:2;padding:4px 1px 5px;text-align:center;font-size:10px;line-height:1.25;overflow-wrap:anywhere}
 #workspace .sales-owner-table tbody tr>td[data-label]:not([data-label=""]):before{font-size:9px;letter-spacing:-.35px;white-space:nowrap;margin-bottom:1px}
 #workspace .sales-owner-table tbody tr>td .sales-rate{font-size:8px;line-height:1.15;margin-top:1px}
 #workspace .sales-owner-table .sales-bar-total-row>th:first-child,#workspace .sales-owner-table .sales-bars-grand-total-row>th:first-child{grid-column:1/-1}
}


/* Candidate confirmation: compact fields sized to their actual text. */
#candidate-dialog #accept-fields:not([hidden]){display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px 12px}
#candidate-dialog #accept-fields>label{flex:0 1 var(--candidate-field-width,180px);width:var(--candidate-field-width,180px);max-width:100%;min-width:0;margin:0}
#candidate-dialog #accept-fields>label:has(textarea){flex:1 1 var(--candidate-field-width,240px);min-width:min(240px,100%)}
#candidate-dialog #accept-fields :is(input,select,textarea){box-sizing:border-box;max-width:100%;min-width:0}
#candidate-dialog #accept-fields textarea{min-height:38px;max-height:180px;line-height:1.4;padding:7px 9px;resize:vertical}
#candidate-dialog #candidate-coassignment{display:flex;flex:0 1 auto;width:auto;max-width:100%;align-items:center;gap:8px;padding:6px 8px;margin:0}
#candidate-dialog #candidate-coassignment .assignment-panel-title{display:none}
#candidate-dialog #candidate-department-label{width:var(--candidate-field-width,220px);max-width:100%;min-width:0;margin:0}
#candidate-dialog #candidate-owner-confirmation,#candidate-dialog #candidate-share-hint{flex:1 0 100%;margin:2px 0}
#candidate-dialog #accept-fields .saved-choice,#candidate-dialog #accept-fields .saved-choice-wrap{max-width:100%;min-width:0}
@media(max-width:600px){#candidate-dialog #accept-fields:not([hidden]){gap:7px 8px}#candidate-dialog #accept-fields>label{flex-grow:1}#candidate-dialog #candidate-coassignment{flex-grow:1}#candidate-dialog #candidate-department-label{width:100%}}

/* Opportunity follow-up date and submit stacked at the right, 2026-10-24. */
#workspace .sales-next-action-update{grid-template-columns:minmax(0,1fr) 142px;grid-template-rows:auto auto;align-items:end;gap:6px 12px}
#workspace .sales-next-action-update .next-action-text{grid-column:1;grid-row:1/span 2;align-self:stretch;display:block}
#workspace .sales-next-action-update textarea{height:100%;min-height:88px}
#workspace .sales-next-action-update .next-action-date{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;grid-column:2;grid-row:1;align-items:start;gap:4px;width:142px;margin:0}
#workspace .sales-next-action-update .next-action-date>span:first-child{grid-area:auto;font-size:12px;font-weight:600;margin:0}
#workspace .sales-next-action-update .next-action-date>.workbench-date-field{grid-area:auto;width:100%;max-width:100%;margin:0}
#workspace .sales-next-action-update .next-action-date .workbench-date-trigger{width:100%;min-height:34px;padding:6px 8px}
#workspace .sales-next-action-update>button{grid-column:2;grid-row:2;justify-self:start;align-self:start;width:max-content;min-height:32px;padding:6px 12px}
@media(max-width:700px){
 #workspace .sales-next-action-update .next-action-text{grid-column:1/-1;grid-row:1}
 #workspace .sales-next-action-update textarea{height:64px;min-height:64px}
 #workspace .sales-next-action-update .next-action-date{grid-column:2;grid-row:2}
 #workspace .sales-next-action-update>button{grid-column:2;grid-row:3}
}


/* Shared action-dialog standard: keep every work form compact and centered. */
body dialog:not(#image-viewer):not(#sales-image-preview):not(.production-requirement-dialog){
 max-width:min(680px,calc(100vw - 32px))!important;
 max-height:min(82dvh,720px)!important;
 margin:auto;
 overflow:auto;
 overscroll-behavior:contain;
}
@media(max-width:700px){
 body dialog:not(#image-viewer):not(#sales-image-preview):not(.production-requirement-dialog){
  width:calc(100% - 24px);
  max-width:calc(100vw - 24px)!important;
  max-height:82dvh!important;
  padding:16px;
 }
}

/* Shared All Items actions use the opportunity action labels and content widths. */
#workspace .task-context-actions-row>.task-actions-floating [data-standard-task-actions]{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}
#workspace .task-context-actions-row>.task-actions-floating [data-standard-task-actions]>button{flex:0 0 auto;width:auto;min-width:0;white-space:nowrap;overflow:visible;text-overflow:clip;padding:6px 8px}
#workspace .task-context-actions-row>.task-actions-floating [data-standard-task-actions]>button{display:inline-flex;align-items:center;justify-content:center;min-height:36px;line-height:1.35}
.project-link-dialog .task-link-paths{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}
.project-link-dialog .task-link-paths>button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;min-height:74px;padding:12px;text-align:left;border-radius:9px}
.project-link-dialog .task-link-paths strong{font-size:15px}.project-link-dialog .task-link-paths small{font-size:11px;line-height:1.55;font-weight:400}
.project-link-dialog .task-link-existing-opportunities{margin-top:12px}.project-link-dialog .task-link-existing-opportunities>summary{cursor:pointer;font-weight:700}
@media(max-width:520px){.project-link-dialog .task-link-paths{grid-template-columns:1fr}.project-link-dialog .task-link-paths>button{min-height:62px}}

/* Each task keeps its own actions in normal flow (confirmed 2026-10-25). */
#workspace .company-task .task-context-actions-row>.task-actions-floating{
 position:static;inset:auto;z-index:auto;box-shadow:none;
}


/* Task image column enlarged to the approved reference size. */
#workspace .company-task .task-media-layout{grid-template-columns:144px minmax(0,1fr)}
#workspace .company-task .task-leading-images .image-thumbnails img{width:136px;height:136px;max-width:100%;object-fit:contain}
@media(max-width:700px){#workspace .company-task .task-media-layout{grid-template-columns:100px minmax(0,1fr);gap:10px}#workspace .company-task .task-leading-images .image-thumbnails img{width:92px;height:92px}}
@media(max-width:360px){#workspace .company-task .task-media-layout{grid-template-columns:88px minmax(0,1fr);gap:8px}#workspace .company-task .task-leading-images .image-thumbnails img{width:80px;height:80px}}

/* Shared business attachment thumbnails: tasks, opportunities, to-dos and pickers. */
:root{--workbench-image-column:144px;--workbench-image-size:136px}
@media(max-width:700px){:root{--workbench-image-column:100px;--workbench-image-size:92px}}
@media(max-width:360px){:root{--workbench-image-column:88px;--workbench-image-size:80px}}
#workspace .company-task .task-media-layout,#workspace .sales-opportunity-main{grid-template-columns:var(--workbench-image-column) minmax(0,1fr)}
body .image-thumbnails,body .chat-image-grid,body .sales-thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(0,var(--workbench-image-column)));gap:8px;min-width:0}
#workspace .company-task .task-leading-images .image-thumbnails,#workspace .sales-opportunity-media .sales-thumbs{grid-template-columns:minmax(0,1fr)}
body .image-thumbnails img,body .chat-image-option img,body .sales-thumb,
#workspace .cards .card .image-thumbnails img,
#workspace .company-task .task-leading-images .image-thumbnails img,
#workspace .sales-opportunity-media .sales-thumb,
body dialog .image-thumbnails img,body #sales-dialog .sales-thumb{display:block;width:var(--workbench-image-size);height:var(--workbench-image-size);max-width:100%;object-fit:contain;margin-inline:auto;box-sizing:border-box}
body .sales-thumbs>*,body .image-thumbnails>*,body .chat-image-grid>*{min-width:0;max-width:100%}
body .project-link-dialog [data-link-body] div:has(>[data-link-image]){width:var(--workbench-image-column)!important}
body .project-link-dialog [data-link-body] div:has(>[data-link-image]) img{width:var(--workbench-image-size)!important;height:var(--workbench-image-size)!important;max-width:100%;object-fit:contain}
/* Opportunity product rows: one order stays one card with repeatable products. */
.sales-product-lines{margin:7px 0;padding:7px 9px;border:1px solid #dce6dd;border-radius:8px;background:#fbfcfa;min-width:0}
.sales-product-head,.sales-product-row{display:grid;grid-template-columns:minmax(150px,1.7fr) minmax(76px,.65fr) minmax(88px,.75fr) minmax(88px,.75fr) minmax(76px,.65fr);gap:6px 10px;align-items:center;min-width:0}
.sales-product-head{font-size:10px;color:var(--muted);padding-bottom:4px;border-bottom:1px solid #e5ebe5}.sales-product-head>span:not(:first-child){text-align:right}
.sales-product-row{font-size:12px;padding:5px 0;border-bottom:1px dashed #e5ebe5}.sales-product-row:last-child{border-bottom:0}
.sales-product-row strong{font-size:13px;color:#24493b;overflow-wrap:anywhere}.sales-product-row span{min-width:0;text-align:right}.sales-product-row em{font-style:normal;color:#9b5a3e}.sales-product-row small{display:block;font-size:9px;color:#587766}
.sales-product-total{display:grid;grid-template-columns:minmax(150px,1.7fr) minmax(76px,.65fr) minmax(88px,.75fr) minmax(88px,.75fr) minmax(76px,.65fr);gap:6px 10px;align-items:center;font-size:12px}.sales-product-total>*{min-width:0;padding:6px 0 1px;border-top:1px solid #cad9cc}.sales-product-total strong,.sales-product-total span{text-align:right;color:#24493b}.sales-product-total small{display:block;font-size:9px;font-weight:400;color:#9b5a3e}.sales-product-total em{font-style:normal;color:#9b5a3e}
.sales-product-editor{grid-column:1/-1;margin:8px 0;padding:10px;border:1px solid #d8e3d9;border-radius:9px;background:#f8faf7;min-width:0}.sales-product-editor-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:7px}.sales-product-editor-head h3{margin:0;font-size:15px}
.sales-product-edit-row{display:grid;grid-template-columns:minmax(150px,1.5fr) minmax(78px,.55fr) minmax(64px,.45fr) minmax(88px,.6fr) minmax(92px,.65fr) minmax(140px,1fr) auto;gap:6px;align-items:end;padding:7px 0;border-top:1px solid #e0e7df;min-width:0}.sales-product-edit-row label{font-size:10px;color:var(--muted);min-width:0}.sales-product-edit-row input,.sales-product-edit-row select{width:100%;min-width:0;margin-top:3px;padding:7px;font-size:12px}.sales-product-edit-row button{margin-bottom:3px;white-space:nowrap}
@media(max-width:520px){.sales-product-head{display:none}.sales-product-row{grid-template-columns:minmax(0,1fr) auto;gap:3px 8px}.sales-product-row strong{grid-column:1/-1}.sales-product-row span{text-align:left}.sales-product-row span:nth-of-type(2),.sales-product-row span:nth-of-type(3){text-align:right}.sales-product-edit-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.sales-product-edit-row>label:first-child,.sales-product-edit-row .sales-product-basis{grid-column:1/-1}.sales-product-edit-row button{grid-column:2;justify-self:end}.sales-product-lines{padding:6px}}

/* Remove the marked explanatory blocks only in pending-candidate review. */
#candidate-dialog #candidate-note,
#candidate-dialog .chat-source-candidates,
#candidate-dialog #candidate-details,
#candidate-dialog #candidate-sources,
#candidate-dialog #candidate-owner-confirmation{
  display:none!important;
}

/* Phone-only follow-up controls: keep the date and submit actions separate in
   the narrow content column beside a task image. Desktop sizing stays intact. */
@media(max-width:600px){
 #workspace .card-action-editor form,
 #workspace .task-action-inline-editor{
  grid-template-columns:auto minmax(0,96px) auto;
  column-gap:4px;
 }
 #workspace .card-action-editor form .next-action-date,
 #workspace .task-action-inline-editor .next-action-date{
  gap:4px;
  min-width:0;
 }
 #workspace .card-action-editor form .next-action-date>span.workbench-date-field,
 #workspace .task-action-inline-editor .next-action-date>span.workbench-date-field{
  width:auto;
  max-width:96px;
  min-width:0;
  flex:1 1 0;
 }
 #workspace .card-action-editor form .next-action-date .workbench-date-trigger,
 #workspace .task-action-inline-editor .next-action-date .workbench-date-trigger{
  width:100%;
  min-width:0;
  min-height:30px;
  padding:4px 5px;
  font-size:11px;
 }
 #workspace .card-action-editor form>button,
 #workspace .task-action-inline-editor>button{
  width:max-content;
  max-width:72px;
  min-height:30px;
  padding:5px 8px;
  font-size:11px;
  line-height:1.35;
  white-space:nowrap;
  justify-self:end;
 }
}

/* Opportunity product values align under five headers; the confirmed
   follow-up controls below stay unchanged and remain on one phone row. */
@media(max-width:600px){
 #workspace .sales-product-head,
 #workspace .sales-product-row{
  display:grid;
  grid-template-columns:minmax(0,1.8fr) repeat(4,minmax(0,.8fr));
  gap:3px 4px;
 }
 #workspace .sales-product-row strong{grid-column:auto;font-size:10px;line-height:1.3}
 #workspace .sales-product-row span{
  grid-row:auto;
  min-width:0;
  font-size:9px;
  line-height:1.3;
  white-space:normal;
  overflow-wrap:anywhere;
 }
 #workspace .sales-product-head{font-size:9px}
 #workspace .sales-next-action-update{
  grid-template-columns:auto minmax(0,82px) auto;
  grid-template-rows:auto auto;
  column-gap:3px;
 }
 #workspace .sales-next-action-update .next-action-text{
  grid-column:1/-1;
  grid-row:1;
 }
 #workspace .sales-next-action-update .next-action-date{display:contents}
 #workspace .sales-next-action-update .next-action-date>span:first-child{
  grid-column:1;
  grid-row:2;
  align-self:center;
  font-size:10px;
  white-space:nowrap;
 }
 #workspace .sales-next-action-update .next-action-date>.workbench-date-field{
  grid-column:2;
  grid-row:2;
  align-self:center;
  width:82px;
  max-width:82px;
 }
 #workspace .sales-next-action-update .next-action-date .workbench-date-trigger{
  min-height:28px;
  padding:3px 4px;
  font-size:10px;
 }
 #workspace .sales-next-action-update>button{
  grid-column:3;
  grid-row:2;
  align-self:center;
  justify-self:end;
  width:max-content;
  max-width:64px;
  min-height:28px;
  padding:4px 6px;
  font-size:11px;
 }
}

/* Final phone density overrides stay last so later module rules cannot restore
   the former wide page and card spacing. */
@media(max-width:700px){
 #workspace main{padding:8px 8px 82px!important}
 body[data-current-view]:not([data-current-view="home"]) #workspace main>header{display:none!important}
 #workspace main :is(.company-grid,.company-task-list,.role-list,.cards,.mg-items,.mg-goals,.workspace-grid){gap:6px!important}
 #workspace main :is(.company-card,.role-board,.company-task,.mg-item,.mg-goal,.card,.sales-overview,.workspace-tools){padding:8px!important;margin-top:5px!important;margin-bottom:5px!important}
 #workspace main :is(.section-title,.company-heading,.role-list-head,.mg-dashboard-title){margin-top:5px!important;margin-bottom:5px!important}
 #workspace .company-heading{min-height:36px;padding:2px 0}
 #workspace .company-heading h2{font-size:18px;line-height:1.35;margin:0}
 #workspace .company-heading p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:10px;line-height:1.35;margin:1px 0 0}
 #workspace .company-actions{gap:4px;margin:4px 0}
 #workspace .company-actions button,#workspace .company-card button{min-height:32px;padding:5px 8px;font-size:11px}
 body dialog{width:calc(100% - 16px)!important;padding:10px!important;max-height:88dvh!important}
 body dialog .form-grid{gap:6px}
 body dialog .dialog-foot{gap:5px;margin-top:8px}
}

/* Confirmed next-action UI lock, 2026-10-25. Desktop and phone are separate
   contracts so a later compact-layout change cannot overwrite both. */
#workspace .confirmed-next-action{
  display:block;
  width:100%;
  min-width:0;
  box-sizing:border-box;
  margin:5px 0;
}
#workspace .confirmed-next-action.task-action-editor-shell .task-action-inline-editor,
#workspace .confirmed-next-action.card-action-editor>form{
  display:grid;
  width:100%;
  box-sizing:border-box;
  grid-template-columns:minmax(0,1fr) 150px;
  grid-template-rows:auto auto auto;
  gap:6px 10px;
  margin:0;
}
#workspace .confirmed-next-action .next-action-text{
  grid-column:1;
  grid-row:1 / span 3;
  min-width:0;
}
#workspace .confirmed-next-action .next-action-date{
  grid-column:2;
  grid-row:1 / span 2;
  display:grid;
  grid-template-rows:auto auto;
  gap:4px;
  width:150px;
  min-width:0;
  justify-self:end;
}
#workspace .confirmed-next-action .next-action-date>.workbench-date-field{
  display:block;
  width:150px;
  min-width:0;
  flex:0 0 150px;
}
#workspace .confirmed-next-action .next-action-date .workbench-date-trigger,
#workspace .confirmed-next-action form>button{
  width:150px;
  max-width:150px;
  min-width:0;
  box-sizing:border-box;
  justify-self:end;
}
#workspace .confirmed-next-action form>button{
  grid-column:2;
  grid-row:3;
}
#workspace .task-media-layout>.task-followup-content{
  grid-column:2;
  min-width:0;
}

@media(max-width:600px){
  #workspace .task-media-layout>.task-main-content{
    display:contents;
  }
  #workspace .task-media-layout>.task-main-content>.task-card-summary-row{
    grid-column:2;
  }
  #workspace .task-media-layout>.task-main-content>.task-followup-content{
    grid-column:1 / -1;
    width:100%;
    margin-top:8px;
  }
  #workspace .task-media-layout>.task-followup-content{
    grid-column:1 / -1;
    width:100%;
    margin-top:8px;
  }
  #workspace .confirmed-next-action.task-action-editor-shell .task-action-inline-editor{
    grid-template-columns:44px calc((100% - 54px)/2) calc((100% - 54px)/2);
    grid-template-rows:auto auto;
    align-items:center;
    gap:6px 5px;
  }
  #workspace .confirmed-next-action .next-action-text{
    grid-column:1 / -1;
    grid-row:1;
  }
  #workspace .confirmed-next-action .next-action-date{
    grid-column:1 / span 2;
    grid-row:2;
    display:grid;
    grid-template-columns:44px minmax(0,1fr);
    grid-template-rows:auto;
    align-items:center;
    gap:5px;
    width:100%;
    min-width:0;
    justify-self:stretch;
  }
  #workspace .confirmed-next-action .next-action-date>span:first-child{
    grid-column:1;
    white-space:nowrap;
  }
  #workspace .confirmed-next-action .task-action-inline-editor .next-action-date>span.workbench-date-field{
    grid-column:2;
    width:100%;
    max-width:none;
    min-width:0;
    flex-basis:auto;
  }
  #workspace .confirmed-next-action .next-action-date .workbench-date-trigger,
  #workspace .confirmed-next-action form>button{
    width:100%;
    max-width:none;
    min-width:0;
  }
  #workspace .confirmed-next-action form>button{
    grid-column:3;
    grid-row:2;
    justify-self:stretch;
  }
  #workspace .confirmed-next-action.card-action-editor>form{
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto auto auto;
  }
  #workspace .confirmed-next-action.card-action-editor .next-action-text{
    grid-column:1;
    grid-row:1;
  }
  #workspace .confirmed-next-action.card-action-editor .next-action-date{
    grid-column:1;
    grid-row:2;
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto auto;
    width:min(150px,100%);
    justify-self:end;
  }
  #workspace .confirmed-next-action.card-action-editor .next-action-date>span:first-child,
  #workspace .confirmed-next-action.card-action-editor .next-action-date>span.workbench-date-field{
    grid-column:1;
    width:150px;
    max-width:none;
  }
  #workspace .confirmed-next-action.card-action-editor .next-action-date .workbench-date-trigger{
    width:150px;
    max-width:none;
  }
  #workspace .confirmed-next-action.card-action-editor form>button{
    grid-column:1;
    grid-row:3;
    width:min(150px,100%);
    max-width:150px;
    justify-self:end;
  }
}
.production-track-link,.production-track-button{color:var(--green);border-color:#a9c0ab;background:#f3f7f0;font-weight:600}.production-track-link{display:inline-block;margin:8px 0;padding:6px 10px;font-size:12px}.production-track-button{margin-right:8px;padding:7px 10px;font-size:12px}

/* Production cards keep operational tracking in one readable strip. */
#workspace .production-control-strip{display:grid;grid-template-columns:max-content minmax(260px,1.35fr) minmax(140px,.65fr) minmax(220px,1fr);gap:8px;align-items:stretch;margin:8px 0 10px;min-width:0}
#workspace .production-control-strip>*{box-sizing:border-box;min-width:0;min-height:58px;margin:0;padding:8px 11px;border:1px solid #c9d8c7;border-radius:9px;background:#f7faf5;color:#294b3e;text-align:left}
#workspace .production-control-strip button{cursor:pointer}#workspace .production-control-strip button:hover{background:#edf5eb;border-color:#8fae95}
#workspace .production-order-total{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:2px;white-space:nowrap}#workspace .production-order-total small{color:#66766c;font-size:11px}#workspace .production-order-total strong{font-size:15px}
#workspace .production-process-summary,#workspace .production-material-summary,#workspace .production-shipment-summary{display:grid;align-content:center;gap:5px}
#workspace .production-process-summary>strong,#workspace .production-material-summary>strong,#workspace .production-shipment-summary>strong{font-size:13px}
#workspace .production-process-summary>span{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}#workspace .production-process-summary span span{display:grid;gap:1px;padding-right:4px;border-right:1px solid #dce6dc}#workspace .production-process-summary span span:last-child{border:0}#workspace .production-process-summary b{font-size:11px}#workspace .production-process-summary small,#workspace .production-material-summary small{font-size:10px;color:#68786e;overflow-wrap:anywhere}
#workspace .production-shipment-summary>span{display:flex;flex-wrap:wrap;gap:4px 8px}#workspace .production-shipment-summary>span span{font-size:11px;white-space:nowrap}
#workspace .production-card-actions{justify-content:flex-end!important;overflow:visible!important}#workspace .production-card-actions>button{order:initial!important}
#production-tracking-dialog,#material-tracking-dialog{width:min(920px,calc(100vw - 24px));box-sizing:border-box}#production-tracking-dialog [data-production-rows],#material-tracking-dialog [data-material-rows]{display:grid;gap:9px}
.production-release-summary{display:grid;grid-template-columns:1.4fr .7fr .7fr;gap:8px;margin:0 0 10px}.production-release-summary>div{display:grid;gap:2px;min-width:0;padding:9px 11px;border:1px solid #c9d8c7;border-radius:9px;background:#f1f6ed}.production-release-summary small{font-size:10px;color:#68766d}.production-release-summary strong{font-size:13px;overflow-wrap:anywhere}.production-master-plan{margin:0 0 12px;padding:10px;border:1px solid #c9d8c7;border-radius:9px}.production-master-plan legend{padding:0 5px;font-weight:700;color:#294b3e}.production-plan-fields{display:grid;grid-template-columns:repeat(4,minmax(110px,1fr));gap:8px}.production-plan-fields label{min-width:0;margin:0;font-size:11px;color:#64746a}.production-plan-fields :is(input,select){box-sizing:border-box;width:100%;min-width:0;margin-top:3px}.production-plan-fields .wide{grid-column:span 2}.production-product-heading{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:8px 0}.production-product-heading h3,.production-product-heading p{margin:0}.production-product-heading p{font-size:11px;color:#68766d}.production-product-heading>span{white-space:nowrap;font-weight:700;color:#315d46}.production-product-card{margin:0 0 9px;border:1px solid #c9d8c7;border-radius:10px;background:#fbfcfa;overflow:hidden}.production-product-card>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:9px 11px;cursor:pointer;list-style:none;background:#f1f6ed}.production-product-card>summary::-webkit-details-marker{display:none}.production-product-card>summary span{display:grid;gap:2px;min-width:0}.production-product-card>summary strong{overflow-wrap:anywhere}.production-product-card>summary small,.production-product-card>summary em{font-size:10px;color:#68766d;font-style:normal;overflow-wrap:anywhere}.production-product-route{display:grid;gap:8px;padding:9px}.production-product-card .production-track-row{margin:0}.production-track-row h4{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 7px}.production-applicable{display:flex;align-items:center;gap:5px;margin:0;font-size:11px;font-weight:400}.production-applicable input{width:18px;height:18px;margin:0}.production-track-row.not-applicable{opacity:.64;background:#f1f2ef}.production-track-row.not-applicable .production-track-fields{display:none}.production-exception-panel.read-only .production-exception-fields,.production-exception-panel.read-only>.hint{display:none}
.production-track-row,.material-track-row{padding:9px 10px;border:1px solid #d7e2d6;border-radius:9px;background:#fbfcfa;min-width:0}.production-track-row h3,.material-track-row h3{display:flex;justify-content:space-between;align-items:center;margin:0 0 7px;font-size:14px}.production-track-fields{display:grid;grid-template-columns:1fr repeat(4,minmax(88px,.7fr)) minmax(160px,1.2fr);gap:7px}.material-track-fields{display:grid;grid-template-columns:minmax(130px,1.25fr) minmax(100px,.8fr) repeat(3,minmax(78px,.65fr)) minmax(118px,.9fr) minmax(140px,1fr) minmax(150px,1.1fr);gap:7px}.production-track-fields label,.material-track-fields label{min-width:0;margin:0;font-size:10px;color:#64746a}.production-track-fields :is(input,select),.material-track-fields :is(input,select){box-sizing:border-box;width:100%;min-width:0;margin-top:3px;padding:7px 8px;font-size:12px}.tracking-note{min-width:0}
@media(max-width:700px){#workspace .task-media-layout>.task-main-content>.production-control-strip{grid-column:1/-1;width:100%;margin-top:8px}#workspace .production-control-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}#workspace .production-control-strip>*{min-height:54px;padding:7px 8px}#workspace .production-order-total{grid-column:1}#workspace .production-material-summary{grid-column:2}#workspace .production-process-summary,#workspace .production-shipment-summary{grid-column:1/-1}#workspace .production-process-summary>span{gap:3px}#workspace .production-process-summary b,#workspace .production-shipment-summary>span span{font-size:10px}.production-track-fields,.material-track-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.production-track-fields .tracking-note,.material-track-fields .tracking-note{grid-column:1/-1}#production-tracking-dialog,#material-tracking-dialog{width:calc(100vw - 16px)!important}}
@media(max-width:700px){.production-release-summary{grid-template-columns:1fr}.production-plan-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.production-plan-fields .wide{grid-column:1/-1}.production-product-card>summary{align-items:flex-start;flex-direction:column;gap:3px}.production-product-card>summary em{white-space:normal}.production-product-route{padding:7px}.production-track-row h4{align-items:flex-start}.production-track-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.production-track-fields label:last-child{grid-column:1/-1}}
@media(max-width:350px){.production-plan-fields,.production-track-fields{grid-template-columns:1fr}.production-plan-fields .wide,.production-track-fields label:last-child{grid-column:auto}}


/* Opportunity product columns follow their content width; frame 2 stays frozen. */
#workspace .sales-product-lines{display:grid;grid-template-columns:minmax(44px,1fr) repeat(4,minmax(0,max-content));column-gap:clamp(6px,1.5vw,18px);align-items:center}
#workspace .sales-product-head,#workspace .sales-product-row,#workspace .sales-product-total{display:contents}
#workspace .sales-product-head>*{padding-bottom:4px;border-bottom:1px solid #e5ebe5}
#workspace .sales-product-row>*{padding:5px 0;border-bottom:1px dashed #e5ebe5}
#workspace .sales-product-row:last-child>*{border-bottom:0}
#workspace .sales-product-row strong{grid-column:auto;min-width:0}
#workspace .sales-product-row span{grid-row:auto;min-width:0;white-space:normal}
#workspace .sales-product-total>*{min-width:0;padding:6px 0 1px;border-top:1px solid #cad9cc}
#workspace .sales-product-total strong,#workspace .sales-product-total span{text-align:right;color:#24493b}
#workspace .sales-product-total>span:nth-child(1),#workspace .sales-product-total>span:nth-child(2){display:none}
#workspace .sales-product-total>strong{grid-column:1/4;white-space:nowrap}
#workspace .sales-product-total>span:nth-child(4){white-space:nowrap}
#workspace .sales-product-total>span:nth-child(5){grid-column:5}
#workspace .sales-product-total small{display:block;font-size:9px;font-weight:400;color:#9b5a3e}
#workspace .sales-product-lines>.sales-message-empty{grid-column:1/-1}

/* One visible business-stage control and fully expanded product subprojects. */
#workspace .sales-lifecycle-summary .sales-lifecycle-select{max-width:min(260px,42vw)}
#workspace .sales-subproject-lines{display:grid;gap:7px;margin:7px 0;padding:8px 9px;border:1px solid #dce6dd;border-radius:8px;background:#fbfcfa;min-width:0}
#workspace .sales-subproject-lines>h5{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:0;color:#315747;font-size:12px}
#workspace .sales-subproject-lines>h5 span{color:#718177;font-size:10px;font-weight:400}
#workspace .sales-subproject-row{display:grid;grid-template-columns:minmax(92px,.72fr) 64px minmax(140px,1.25fr) minmax(280px,2fr);gap:8px;align-items:center;min-height:0;padding:6px 8px;border:1px solid #dce7de;border-radius:7px;background:#fff;min-width:0;box-sizing:border-box;line-height:1.35}
#workspace .sales-product-identity{display:grid;align-content:center;gap:1px;min-width:0}
#workspace .sales-product-identity small,#workspace .sales-product-identity span{color:#789083;font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#workspace .sales-product-identity strong{color:#24493b;font-size:12px;overflow-wrap:anywhere}
#workspace .sales-product-identity em{color:#9b5a3e;font-size:9px;font-style:normal}
#workspace .sales-product-identity button{width:max-content;max-width:100%;min-height:0;padding:1px 0;font-size:9px;white-space:normal;text-align:left}
#workspace .sales-product-image-cell{position:relative;display:grid;place-items:center;align-content:center;gap:1px;width:64px;min-width:0}
#workspace .sales-product-images{position:relative;width:52px;height:52px}
#workspace .sales-product-thumb-button{display:block;width:52px;height:52px;padding:0;border:0;border-radius:7px;overflow:hidden;background:#f3f6f2}
#workspace .sales-product-thumb{display:block;width:52px;height:52px;object-fit:contain;background:#f3f6f2}
#workspace .sales-product-image-count{position:absolute;right:-4px;bottom:-4px;min-width:18px;padding:1px 4px;border-radius:9px;background:#24493b;color:#fff;font-size:9px;text-align:center}
#workspace .sales-product-no-image{color:#87958c;font-size:9px;text-align:center}
#workspace .sales-product-image-cell>[data-sales-card-add-image]{min-height:0;padding:1px 0;font-size:9px}
#workspace .sales-subproject-row header{display:flex;flex-direction:column;justify-content:center;gap:2px;min-width:0}
#workspace .sales-subproject-row header small{color:#789083;font-size:9px}
#workspace .sales-subproject-row header strong{display:-webkit-box;overflow:hidden;color:#24493b;font-size:13px;line-height:1.35;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2}
#workspace .sales-subproject-row header .sales-inline-value{max-width:100%;text-align:left}
#workspace .sales-subproject-row dl{display:grid;grid-template-columns:repeat(4,minmax(58px,1fr));gap:7px;margin:0;min-width:0}
#workspace .sales-subproject-row dl>div{min-width:0}
#workspace .sales-subproject-row dt{color:#7a8a7a;font-size:9px}
#workspace .sales-subproject-row dd{margin:2px 0 0;color:#294a3d;font-size:11px;overflow-wrap:anywhere}
#workspace .sales-subproject-row dd em,#workspace .sales-subproject-total em{color:#9b5a3e;font-style:normal}
#workspace .sales-subproject-row dd small,#workspace .sales-subproject-total small{display:block;color:#587766;font-size:9px}
#workspace .sales-subproject-total{display:flex;justify-content:flex-end;align-items:baseline;gap:12px;padding:5px 9px 1px;border-top:1px solid #cad9cc;color:#24493b;font-size:12px}
@media(max-width:600px){
 #workspace .sales-lifecycle-summary .sales-lifecycle-select{max-width:100%}
 #workspace .sales-subproject-row{grid-template-columns:88px 56px minmax(0,1fr);gap:5px;min-height:0}
 #workspace .sales-product-image-cell{width:56px}
 #workspace .sales-subproject-row dl{grid-column:1/-1;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
 #workspace .sales-subproject-row dd{font-size:10px}
}

/* Permanent shared follow-up standard, confirmed 2026-10-25.
   History stays above; the large next-step field is left, while date and
   submit remain vertically stacked at the right on desktop and phone. */
.followup-standard-history{
 display:block;box-sizing:border-box;width:100%;min-width:0;margin:5px 0 8px;
 padding:9px 12px;border-left:4px solid #b9cfbd;border-radius:0 10px 10px 0;
 background:#f5f8f4;color:#29443b;
}
.followup-standard-history>b{display:block;margin-bottom:4px;font-size:13px;color:#60766b}
.followup-standard-record{position:relative;min-width:0;padding:5px 48px 5px 0;border-top:1px solid #dde7de}
.followup-standard-record:first-of-type{border-top:0}
.followup-standard-record p{display:inline;margin:0;font-size:14px;font-weight:650;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.followup-standard-record small{display:inline;margin-left:8px;font-size:11px;font-weight:400;color:#718078;white-space:nowrap}
.followup-record-day>h5{display:none}
.followup-standard-record.followup-record-one-line{display:grid;grid-template-columns:max-content minmax(48px,1fr) max-content minmax(42px,max-content);align-items:baseline;gap:8px;padding-right:48px}
.followup-record-one-line :is(.followup-record-date,.followup-record-time,.followup-record-person){min-width:0;color:#718078;font-size:11px;font-weight:400;line-height:1.5;white-space:nowrap}
.followup-record-one-line .followup-record-date{color:#29443b;font-weight:700;font-variant-numeric:tabular-nums}
.followup-record-one-line .followup-record-content{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.followup-record-one-line .followup-record-time{font-variant-numeric:tabular-nums}
.followup-record-one-line .followup-record-person{max-width:96px;overflow:hidden;text-overflow:ellipsis}
.followup-standard-delete{position:absolute;right:0;top:4px;min-height:26px!important;padding:2px 5px!important;color:#a8584b!important;font-size:11px!important}
.followup-standard-empty{margin:3px 0;color:#76847c;font-size:12px}
.followup-standard-history details{margin-top:3px}.followup-standard-history summary{cursor:pointer;color:#527160;font-size:11px}
.followup-standard-editor,
#workspace .followup-standard-editor,
#workspace .confirmed-next-action.task-action-editor-shell .followup-standard-editor,
#workspace .confirmed-next-action.card-action-editor>.followup-standard-editor{
 display:grid!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;
 grid-template-columns:minmax(0,1fr) 142px!important;grid-template-rows:auto auto!important;
 gap:7px 12px!important;align-items:start!important;margin:0!important;padding:9px!important;
 border:1px solid #c8dacb;border-radius:10px;background:#f8faf7;
}
.followup-standard-editor .next-action-text,
#workspace .followup-standard-editor .next-action-text{
 display:block!important;grid-column:1!important;grid-row:1 / span 2!important;align-self:stretch!important;min-width:0!important;margin:0!important;
}
.followup-standard-editor .next-action-text textarea,
#workspace .followup-standard-editor .next-action-text textarea{
 box-sizing:border-box;width:100%!important;height:100%!important;min-height:92px!important;margin:0!important;padding:10px 12px!important;
 font-size:14px;line-height:1.5;resize:vertical;background:#fff;
}
.followup-standard-editor .next-action-date,
#workspace .followup-standard-editor .next-action-date{
 display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto!important;
 grid-column:2!important;grid-row:1!important;gap:4px!important;width:142px!important;min-width:0!important;margin:0!important;justify-self:end!important;
}
.followup-standard-editor .next-action-date>span:first-child{display:block!important;margin:0!important;font-size:12px;font-weight:700;white-space:nowrap}
.followup-standard-editor .next-action-date>.workbench-date-field,
.followup-standard-editor .next-action-date>input{
 box-sizing:border-box!important;width:142px!important;max-width:142px!important;min-width:0!important;margin:0!important;
}
.followup-standard-editor .next-action-date .workbench-date-trigger,
.followup-standard-editor .next-action-date>input{
 box-sizing:border-box!important;width:100%!important;min-height:36px!important;padding:6px 8px!important;font-size:12px!important;
}
.followup-standard-editor>button,
#workspace .followup-standard-editor>button{
 grid-column:2!important;grid-row:2!important;align-self:start!important;justify-self:start!important;
 width:max-content!important;max-width:142px!important;min-height:34px!important;margin:0!important;padding:6px 12px!important;
}
.task-followup-tool{margin:5px 0}
@media(max-width:600px){
 .followup-standard-history{padding:7px 9px;margin-bottom:6px}
 .followup-standard-record{padding-right:42px}.followup-standard-record p{font-size:12px}.followup-standard-record small{font-size:9px;margin-left:5px}
 .followup-standard-record.followup-record-one-line{grid-template-columns:max-content minmax(38px,1fr) max-content minmax(34px,64px);gap:5px;padding-right:38px}
 #workspace .sales-followup-record.followup-record-one-line{padding-right:38px}
 #workspace .sales-followup-record.followup-record-one-line{grid-template-columns:max-content max-content minmax(0,1fr)}
 #workspace .sales-followup-record.followup-record-one-line>.followup-record-date{grid-column:1;grid-row:1}
 #workspace .sales-followup-record.followup-record-one-line>.followup-record-time{grid-column:2;grid-row:1}
 #workspace .sales-followup-record.followup-record-one-line>.followup-record-person{grid-column:3;grid-row:1}
 #workspace .sales-followup-record.followup-record-one-line>.followup-record-content{grid-column:1/-1;grid-row:2}
 .followup-record-one-line :is(.followup-record-date,.followup-record-time,.followup-record-person){font-size:9px}
 .followup-standard-editor,
 #workspace .followup-standard-editor,
 #workspace .confirmed-next-action.task-action-editor-shell .followup-standard-editor,
 #workspace .confirmed-next-action.card-action-editor>.followup-standard-editor{
  grid-template-columns:minmax(0,1fr) 106px!important;grid-template-rows:auto auto!important;gap:5px 7px!important;padding:7px!important;
 }
 .followup-standard-editor .next-action-text,#workspace .followup-standard-editor .next-action-text{grid-column:1!important;grid-row:1 / span 2!important}
 .followup-standard-editor .next-action-text textarea,#workspace .followup-standard-editor .next-action-text textarea{min-height:82px!important;padding:8px!important;font-size:12px}
 .followup-standard-editor .next-action-date,#workspace .followup-standard-editor .next-action-date{grid-column:2!important;grid-row:1!important;width:106px!important}
 .followup-standard-editor .next-action-date>.workbench-date-field,.followup-standard-editor .next-action-date>input{width:106px!important;max-width:106px!important}
 .followup-standard-editor>button,#workspace .followup-standard-editor>button{grid-column:2!important;grid-row:2!important;max-width:106px!important;min-height:32px!important;padding:5px 10px!important;font-size:12px!important}
}
#workspace .sales-product-lines>.sales-message-empty{grid-column:1/-1}
.task-list-standard{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:10px 0 14px}.task-completion-toggle{display:inline-flex;align-items:center;gap:7px;font-size:14px;color:#314d42;cursor:pointer}.task-completion-toggle input{width:20px;height:20px;margin:0;accent-color:var(--green)}.task-domain-category{margin:0 0 18px}.task-domain-category>.domain-heading{margin-bottom:8px}.subcategory-group[data-task-category]{margin:0 0 14px}.subcategory-group[data-task-category]>.subcategory-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 8px;padding:8px 10px;background:#edf2eb;border-radius:7px;color:#314d42}.subcategory-group[data-task-category]>.subcategory-heading strong{font-size:14px}.subcategory-group[data-task-category]>.subcategory-heading span{font-size:12px;color:#617167}.subcategory-group[data-task-category]>.company-task{margin-left:0;margin-right:0}@media(max-width:520px){.task-list-standard{align-items:flex-start}.subcategory-group[data-task-category]>.subcategory-heading{padding:7px 9px}}

/* Keep the material name visible beside type and stage in material tracking. */
.workflow-controls.material-tracking-main{grid-template-columns:minmax(0,.9fr) minmax(0,1fr) minmax(0,1.2fr)}
@media(max-width:430px){.workflow-controls.material-tracking-main{grid-template-columns:1fr}}
.chat-inline-image-line{display:inline-flex;align-items:center;gap:8px;vertical-align:middle}.chat-inline-image{display:inline-grid;place-items:center;width:72px;height:72px;min-width:72px;padding:0;border:1px solid #d7dfd8;border-radius:7px;background:#f7f9f6;overflow:hidden;cursor:zoom-in}.chat-inline-image img{display:block;width:100%;height:100%;object-fit:contain}.chat-inline-image-missing{display:inline-flex;align-items:center;gap:3px;min-height:28px;padding:0 5px;border:1px solid #d7dfd8;border-radius:5px;background:#f4f6f3;color:#667169;white-space:nowrap}.chat-inline-image-missing>span{font-size:15px;line-height:1}.chat-inline-image-missing small{font-size:9px;color:inherit}


/* Follow-up editor two-row calendar-icon baseline, confirmed 2026-10-26.
   Row 1 is the next-step text; row 2 is Follow-up + calendar icon + submit. */
.followup-standard-editor,
#workspace .followup-standard-editor,
#workspace .confirmed-next-action.task-action-editor-shell .followup-standard-editor,
#workspace .confirmed-next-action.card-action-editor>.followup-standard-editor{
 grid-template-columns:auto 30px minmax(0,1fr)!important;
 grid-template-rows:auto auto!important;
 gap:6px 7px!important;
 align-items:center!important;
}
.followup-standard-editor .next-action-text,
#workspace .followup-standard-editor .next-action-text{
 grid-column:1 / -1!important;
 grid-row:1!important;
 align-self:stretch!important;
}
.followup-standard-editor .next-action-text textarea,
#workspace .followup-standard-editor .next-action-text textarea{
 height:auto!important;
 min-height:64px!important;
}
.followup-standard-editor .next-action-date,
#workspace .followup-standard-editor .next-action-date{
 display:flex!important;
 grid-column:1 / 3!important;
 grid-row:2!important;
 align-items:center!important;
 justify-self:start!important;
 gap:5px!important;
 width:auto!important;
 min-width:0!important;
}
.followup-standard-editor .next-action-date>span:first-child{
 display:inline-block!important;
 font-size:12px!important;
 font-weight:700!important;
 line-height:30px!important;
}
.followup-standard-editor .next-action-date>.workbench-date-field{
 display:block!important;
 flex:0 0 30px!important;
 width:30px!important;
 max-width:30px!important;
 height:30px!important;
 margin:0!important;
}
.followup-standard-editor .next-action-date .workbench-date-trigger{
 display:grid!important;
 place-items:center!important;
 width:30px!important;
 min-width:30px!important;
 max-width:30px!important;
 height:30px!important;
 min-height:30px!important;
 margin:0!important;
 padding:0!important;
 overflow:hidden!important;
 color:transparent!important;
 font-size:0!important;
 line-height:1!important;
 text-align:center!important;
}
.followup-standard-editor .next-action-date .workbench-date-trigger::after{
 content:'▦'!important;
 float:none!important;
 color:var(--green)!important;
 font-size:14px!important;
 line-height:1!important;
}
.followup-standard-editor>button,
#workspace .followup-standard-editor>button{
 grid-column:3!important;
 grid-row:2!important;
 justify-self:end!important;
 align-self:center!important;
 width:max-content!important;
 max-width:100%!important;
 min-height:30px!important;
 margin:0!important;
 padding:5px 10px!important;
}
@media(max-width:600px){
 .followup-standard-editor,
 #workspace .followup-standard-editor,
 #workspace .confirmed-next-action.task-action-editor-shell .followup-standard-editor,
 #workspace .confirmed-next-action.card-action-editor>.followup-standard-editor{
  grid-template-columns:auto 28px minmax(0,1fr)!important;
  gap:5px 6px!important;
 }
 .followup-standard-editor .next-action-text textarea,
 #workspace .followup-standard-editor .next-action-text textarea{min-height:60px!important}
 .followup-standard-editor .next-action-date>span:first-child{line-height:28px!important}
 .followup-standard-editor .next-action-date>.workbench-date-field{
  flex-basis:28px!important;width:28px!important;max-width:28px!important;height:28px!important;
 }
 .followup-standard-editor .next-action-date .workbench-date-trigger{
  width:28px!important;min-width:28px!important;max-width:28px!important;height:28px!important;min-height:28px!important;
 }
 .followup-standard-editor>button,#workspace .followup-standard-editor>button{min-height:28px!important;padding:4px 9px!important}
}

/* Production delivery risk, reverse schedule and append-only exception timeline. */
#workspace .production-layer-toolbar{display:flex;align-items:center;gap:10px;margin:6px 0;padding:7px 8px;border:1px solid #c9d8c7;border-radius:10px;background:#f5f8f3}.production-layer-switch{display:grid;grid-template-columns:repeat(3,minmax(72px,1fr));gap:4px;flex:0 0 auto}.production-layer-switch button{min-height:32px;padding:5px 12px;border:1px solid #c8d5c6;border-radius:7px;background:#fff;color:#426052;font-size:12px}.production-layer-switch button[aria-pressed="true"]{border-color:#315d46;background:#315d46;color:#fff;font-weight:700}#workspace .production-layer-toolbar>small{color:#66766c;font-size:11px;line-height:1.5}
#workspace .production-overview{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:6px 0 10px;padding:8px;border:1px solid #c9d8c7;border-radius:10px;background:#f5f8f3}
#workspace .production-overview.layer-management{grid-template-columns:repeat(7,minmax(0,1fr))}
#workspace .production-overview>span{display:grid;gap:2px;padding:6px 9px;border-radius:8px;background:#fff}#workspace .production-overview small{font-size:10px;color:#68766d}#workspace .production-overview strong{font-size:18px;color:#214b3c}#workspace .production-overview .warning{background:#fff8e8}#workspace .production-overview .danger{background:#fff0ed}
#workspace .production-overview .pending{background:#f1f3ef}#workspace .production-overview .pending strong{font-size:14px;color:#68766d}
#workspace .production-reminder-strip{display:grid;grid-template-columns:max-content minmax(150px,.8fr) minmax(220px,1.4fr) minmax(190px,1fr);align-items:center;gap:5px 10px;width:100%;min-width:0;margin:7px 0 0;padding:7px 10px;border:1px solid #c9d8c7;border-radius:8px;background:#f4f8f2;color:#294b3e;text-align:left;font:inherit;cursor:pointer}#workspace .production-reminder-strip:hover{border-color:#7fa088;background:#edf5eb}#workspace .production-reminder-strip>span{padding:2px 7px;border-radius:999px;background:#e7eee4;font-size:10px;font-weight:800;white-space:nowrap}#workspace .production-reminder-strip>strong{min-width:0;font-size:12px;overflow-wrap:anywhere}#workspace .production-reminder-strip>small{min-width:0;color:#5e7065;font-size:11px;overflow-wrap:anywhere}#workspace .production-reminder-strip>em{min-width:0;color:#59695f;font-size:10px;font-style:normal;overflow-wrap:anywhere}#workspace .production-reminder-strip.warning,#workspace .production-reminder-strip.pending{border-color:#dfc47f;background:#fff9e8}#workspace .production-reminder-strip.warning>span,#workspace .production-reminder-strip.pending>span{background:#ffe9ad;color:#805500}#workspace .production-reminder-strip.danger,#workspace .production-reminder-strip.critical{border-color:#dc9d94;background:#fff0ed}#workspace .production-reminder-strip.danger>span,#workspace .production-reminder-strip.critical>span{background:#ffd8d2;color:#9e332a}#workspace .production-reminder-strip.critical{border-left-width:5px}
#workspace .production-role-view{display:grid;grid-template-columns:minmax(180px,.9fr) minmax(220px,1.15fr) minmax(220px,1.15fr);gap:7px;margin:8px 0 10px;min-width:0}.production-role-view>:is(div,button){display:grid;align-content:center;gap:3px;min-width:0;padding:9px 11px;border:1px solid #c9d8c7;border-radius:9px;background:#f7faf5;color:#294b3e;text-align:left}.production-role-view>button{width:100%;font:inherit;cursor:pointer}.production-role-view>button:hover{border-color:#7fa088;background:#eef5eb}.production-role-view>button:focus-visible{outline:3px solid rgba(49,93,70,.24);outline-offset:2px}.production-role-view small{font-size:10px;color:#68766d}.production-role-view strong{font-size:13px;overflow-wrap:anywhere}.production-role-view p{margin:0;font-size:11px;line-height:1.55;overflow-wrap:anywhere}.production-role-view em{font-size:10px;color:#7a6a45;font-style:normal}.production-management-action em{margin-top:2px;color:#315d46}.production-management-primary,.production-followup-primary{background:#f1f6ed!important}.production-decision{border-color:#d9b968!important;background:#fff9e9!important}
#workspace .production-order-total{white-space:normal}.production-risk-badge{display:inline-flex;align-items:center;width:max-content;max-width:100%;padding:2px 7px;border-radius:999px;background:#e6f2e8;color:#27613e;font-size:10px;font-weight:700}.production-risk-badge.warning,.production-risk-badge.pending{background:#fff0c9;color:#8a5a00}.production-risk-badge.danger{background:#ffe1dc;color:#a2382e}
#workspace .production-process-summary span span[class*="受阻"],#workspace .production-process-summary span span[class*="等待反馈"]{color:#a2382e}#workspace .production-process-summary span span[class*="待验收"]{color:#8a5a00}
#workspace .production-exception-alert{grid-column:1/-1!important;display:grid;gap:3px;min-height:0!important;background:#fff5e5!important;border-color:#e8c886!important}#workspace .production-exception-alert strong{font-size:12px;color:#7d5000}#workspace .production-exception-alert small{font-size:10px;color:#765f38}#workspace .production-exception-alert.closed{background:#f2f6f1!important;border-color:#c9d8c7!important}
.production-track-row h3 small{font-size:10px;font-weight:400;color:#6c7a70}.production-track-fields{grid-template-columns:repeat(5,minmax(105px,1fr))}.production-track-fields .tracking-note{grid-column:span 5}
.production-exception-panel{margin-top:10px;padding:9px 10px;border:1px solid #e1c58b;border-radius:9px;background:#fffaf0}.production-exception-panel>summary{cursor:pointer;font-weight:700;color:#6f4d0e}.production-exception-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:9px}.production-exception-fields label{min-width:0;margin:0;font-size:10px;color:#6b746d}.production-exception-fields :is(input,select){box-sizing:border-box;width:100%;min-width:0;margin-top:3px;padding:7px 8px}.production-exception-fields .wide{grid-column:1/-1}.production-exception-history{display:grid;gap:7px;max-height:250px;overflow:auto;margin:9px 0;padding:0;list-style:none}.production-exception-history li{padding:8px;border-left:4px solid #d9b868;border-radius:0 7px 7px 0;background:#fff}.production-exception-history strong,.production-exception-history small{display:block}.production-exception-history small,.production-exception-history em{font-size:10px;color:#7b756a}.production-exception-history p{margin:3px 0;font-size:11px}
@media(max-width:700px){#workspace .production-layer-toolbar{display:grid;gap:6px;padding:6px}.production-layer-switch{width:100%;grid-template-columns:repeat(3,minmax(0,1fr))}.production-layer-switch button{min-width:0;padding:5px 6px}#workspace .production-layer-toolbar>small{display:none}#workspace .production-overview,#workspace .production-overview.layer-management{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:6px;overflow:visible}#workspace .production-overview>span{padding:5px 7px}#workspace .production-overview strong{font-size:15px}#workspace .production-reminder-strip{grid-template-columns:max-content minmax(0,1fr);gap:3px 7px;padding:7px 8px}#workspace .production-reminder-strip>small,#workspace .production-reminder-strip>em{grid-column:1/-1}#workspace .production-role-view{grid-template-columns:1fr;gap:5px}#workspace .production-role-view>:is(div,button){padding:8px 9px}.production-track-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.production-track-fields .tracking-note{grid-column:1/-1}.production-exception-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.production-exception-fields .wide{grid-column:1/-1}}

/* Customer and project emphasis in every shared task card, confirmed 2026-10-27. */
#workspace .company-task .task-card-summary-row > span:nth-child(1) > strong,
#workspace .company-task .task-card-summary-row > span:nth-child(3) > strong,
#workspace .unified-task-card .task-card-summary-row > span:nth-child(1) > strong,
#workspace .unified-task-card .task-card-summary-row > span:nth-child(3) > strong{
 color:#173f35!important;
 font-size:17px!important;
 font-weight:800!important;
 line-height:1.4!important;
}
@media(max-width:620px){
 #workspace .company-task .task-card-summary-row > span:nth-child(1) > strong,
 #workspace .company-task .task-card-summary-row > span:nth-child(3) > strong,
 #workspace .unified-task-card .task-card-summary-row > span:nth-child(1) > strong,
 #workspace .unified-task-card .task-card-summary-row > span:nth-child(3) > strong{
  font-size:15px!important;
 }
}


/* Opportunity card selectors: order type is editable in place and this card's
   follow-up date uses a readable date button. Other task editors keep the
   shared compact calendar-icon standard. */
#workspace .sales-summary-row .sales-order-type-select{
 display:inline-block;width:auto;max-width:100%;min-height:34px;border:1px solid #b9cabb;border-radius:8px;
 padding:6px 9px;background:#fff;color:#244b3a;font-family:inherit;font-size:12px;
 font-weight:700;line-height:1.45;cursor:pointer;
}
#workspace .sales-summary-row .sales-order-type-select:hover{border-color:#4f9071;background:#f5faf5}
#workspace .sales-summary-row .sales-order-type-select:focus-visible{outline:2px solid #4f9071;outline-offset:1px}
#workspace .sales-summary-row .sales-order-type-select:disabled{cursor:wait;opacity:.65}
#workspace .sales-summary-row .sales-lifecycle-select{
 min-height:34px;border:1px solid #b9cabb;border-radius:8px;padding:6px 9px;background:#fff;
}
#workspace .sales-summary-row .sales-lifecycle-select:hover{border-color:#4f9071;background:#f5faf5}
#workspace .production-item-meta .production-order-type strong{
 display:inline-flex;align-items:center;min-height:25px;padding:2px 8px;border:1px solid #c4d3c5;
 border-radius:7px;background:#f7faf6;color:#1e5947;
}
#workspace .sales-next-action-update .next-action-date>.workbench-date-field{
 flex:0 0 118px!important;width:118px!important;max-width:118px!important;height:auto!important;
}
#workspace .sales-next-action-update .next-action-date .workbench-date-trigger{
 display:block!important;width:118px!important;min-width:118px!important;max-width:118px!important;
 height:auto!important;min-height:34px!important;padding:6px 8px!important;overflow:visible!important;
 border:1px solid #cbd5cb!important;border-radius:8px!important;background:#fff!important;color:#294c3d!important;
 font-size:12px!important;line-height:1.35!important;text-align:left!important;
}
#workspace .sales-next-action-update .next-action-date .workbench-date-trigger::after{
 content:'▦'!important;float:right!important;color:var(--green)!important;font-size:14px!important;line-height:1!important;
}
@media(max-width:600px){
 #workspace .sales-next-action-update{grid-template-columns:auto 100px minmax(58px,1fr)!important}
 #workspace .sales-next-action-update .next-action-date>.workbench-date-field{
  flex-basis:100px!important;width:100px!important;max-width:100px!important;height:auto!important;
 }
 #workspace .sales-next-action-update .next-action-date .workbench-date-trigger{
  width:100px!important;min-width:100px!important;max-width:100px!important;height:auto!important;
  min-height:30px!important;padding:5px 7px!important;font-size:11px!important;
 }
}


/* Customer and project emphasis in every card, confirmed 2026-10-27. */
#workspace .card-customer-emphasis,
#workspace .card-project-emphasis,
#workspace .ar-collection-card .ar-customer{
 color:#173f35!important;
 font-weight:800!important;
}
#workspace .sales-summary-primary .card-customer-emphasis,
#workspace .sales-summary-primary .card-project-emphasis{
 font-size:17px!important;
 line-height:1.4!important;
}
@media(max-width:620px){
 #workspace .sales-summary-primary .card-customer-emphasis,
 #workspace .sales-summary-primary .card-project-emphasis{
  font-size:15px!important;
 }
}

/* Public form sizing standard: controls follow their content and wrap within
   the available column.  Empty text fields remain usable; only dropdowns and
   content boxes lose the old fixed dimensions. */
body select{width:max-content;min-width:0;max-width:100%;min-height:0;height:auto;field-sizing:content}
body textarea{height:auto;min-height:0;field-sizing:content}
body dialog select{width:max-content;max-width:100%;min-width:0;min-height:0;height:auto}
body dialog textarea{height:auto;min-height:0}
body .form-grid>label{min-width:0;max-width:100%}
body .form-grid>label>select{max-width:100%}

/* Project dates stay distinct from the follow-up date and expected order date. */
#workspace .sales-milestone-summary{display:grid;grid-template-columns:92px minmax(0,1fr);gap:8px;align-items:start;margin:7px 0 9px;padding:8px 10px;border:1px solid #d8e4d9;border-radius:8px;background:#f7faf5;color:#53675b;font-size:12px}
#workspace .sales-milestone-summary>strong{padding-top:3px;color:#294b3d}
#workspace .sales-milestone-summary>div{display:flex;gap:6px;flex-wrap:wrap;min-width:0}
#workspace .sales-milestone-summary span{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:3px 7px;border-radius:6px;background:#edf4ed;color:#315d48}
#workspace .sales-milestone-summary b{white-space:nowrap}
#workspace .sales-milestone-summary time{font-variant-numeric:tabular-nums;white-space:nowrap}
#workspace .sales-milestone-summary small{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#728278}
#workspace .sales-project-contact-summary{display:grid;grid-template-columns:92px minmax(0,1fr);gap:8px;align-items:start;margin:7px 0 0;padding:8px 10px;border:1px solid #d8e4d9;border-radius:8px;background:#fbfcf9;color:#53675b;font-size:12px}
#workspace .sales-project-contact-summary>strong{padding-top:3px;color:#294b3d}
#workspace .sales-project-contact-summary>div{display:flex;gap:6px;flex-wrap:wrap;min-width:0}
#workspace .sales-project-contact-summary span{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:3px 7px;border-radius:6px;background:#f0f4ed;color:#315d48}
#workspace .sales-project-contact-summary small{white-space:nowrap;color:#6b7c70}
#workspace .sales-project-contact-summary em{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#7b877f;font-style:normal}
#sales-dialog :is(.sales-milestone-editor,.sales-project-contact-editor){margin:10px 0 12px;padding:10px;border:1px solid #d8e4d9;border-radius:9px;background:#f7faf5}
#sales-dialog :is(.sales-milestone-edit-row,.sales-project-contact-edit-row){display:grid;grid-template-columns:minmax(120px,.7fr) minmax(150px,.8fr) minmax(220px,1.5fr) auto;gap:8px;align-items:end;margin:7px 0}
#sales-dialog :is(.sales-milestone-edit-row,.sales-project-contact-edit-row) label{min-width:0;font-size:11px;color:#63756a}
#sales-dialog :is(.sales-milestone-edit-row,.sales-project-contact-edit-row) :is(input,select){width:100%;margin-top:3px}
#sales-dialog :is(.sales-milestone-edit-row,.sales-project-contact-edit-row)>button{margin-bottom:2px}
@media(max-width:700px){#workspace :is(.sales-milestone-summary,.sales-project-contact-summary){grid-template-columns:1fr}#sales-dialog :is(.sales-milestone-edit-row,.sales-project-contact-edit-row){grid-template-columns:1fr 1fr}#sales-dialog :is(.sales-milestone-edit-row,.sales-project-contact-edit-row) label:last-of-type{grid-column:1/-1}}

/* Opportunity cards edit in place: every visible commercial value returns to
   the same card, while amounts remain derived from quantity × unit price. */
#workspace .sales-inline-value{display:inline-flex;align-items:center;max-width:100%;margin:0;padding:1px 3px;border:0;border-bottom:1px dashed #b49348;border-radius:3px;background:transparent;color:inherit;font:inherit;line-height:inherit;text-align:left;overflow-wrap:anywhere;cursor:pointer}
#workspace .sales-inline-value:hover,#workspace .sales-inline-value:focus-visible{background:#f5f0e2;outline:2px solid #c2a66b55;outline-offset:1px}
#workspace .sales-inline-value strong{font:inherit;color:inherit}
#workspace .sales-summary-primary .sales-inline-value{font-size:inherit;font-weight:inherit}
#workspace .sales-subproject-lines>h5>span{display:flex;align-items:baseline;gap:6px}
#workspace .sales-subproject-lines>h5>span b{color:#315747;font-size:12px}
#workspace .sales-subproject-lines>h5>button{padding:5px 9px;font-size:11px;white-space:nowrap}
#workspace .sales-subproject-row .sales-inline-value{width:fit-content;padding:1px 2px}
#workspace .sales-subproject-row dd .sales-inline-value{justify-content:flex-start}
#workspace .sales-opportunity-card.is-inline-editing{border-color:#b49348;background:#fffdf7}
#workspace .sales-card-inline-editor{display:grid;gap:10px;padding:10px;border:1px solid #d2dfd4;border-radius:9px;background:#fbfcf8;min-width:0}
#workspace .sales-inline-editor-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:7px;border-bottom:1px solid #dfe7df}
#workspace .sales-inline-editor-head>div{display:flex;align-items:baseline;gap:8px}.sales-inline-editor-head small{color:#718177}.sales-inline-editor-head strong{color:#24493b}.sales-inline-editor-head>span{font-size:11px;color:#748177}
#workspace .sales-inline-core-fields{display:grid;grid-template-columns:repeat(4,minmax(110px,1fr));gap:8px;min-width:0}
#workspace .sales-inline-core-fields label,#workspace .sales-inline-product-row label{display:grid;gap:3px;min-width:0;color:#63756a;font-size:10px}
#workspace .sales-inline-core-fields :is(input,select),#workspace .sales-inline-product-row :is(input,select){box-sizing:border-box;width:100%;min-width:0;margin:0;padding:7px 8px;font-size:12px;background:#fff}
#workspace .sales-inline-core-fields label>strong{display:flex;align-items:center;min-height:34px;color:#294a3d;font-size:12px}
#workspace .sales-inline-products{display:grid;gap:8px;padding:9px;border:1px solid #dbe5dc;border-radius:8px;background:#fff;min-width:0}
#workspace .sales-inline-products>header{display:flex;align-items:center;justify-content:space-between;gap:10px}.sales-inline-products>header>div{display:flex;align-items:baseline;gap:8px}.sales-inline-products h5{margin:0;color:#315747}.sales-inline-products header span{font-size:10px;color:#748177}.sales-inline-products>header button{padding:6px 9px;font-size:11px;white-space:nowrap}
#workspace [data-sales-inline-product-list]{display:grid;gap:7px;min-width:0}
#workspace .sales-inline-product-row{display:grid;grid-template-columns:auto minmax(130px,1.4fr) minmax(76px,.65fr) minmax(58px,.45fr) minmax(86px,.7fr) minmax(88px,.75fr) minmax(130px,1fr) auto;gap:6px;align-items:end;padding:8px;border:1px solid #e0e7df;border-radius:7px;background:#fafcf9;min-width:0}
#workspace .sales-inline-product-row>strong{align-self:center;color:#315747;font-size:11px;white-space:nowrap}
#workspace .sales-inline-product-row output{display:flex;align-items:center;min-height:34px;color:#24493b;font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
#workspace .sales-inline-product-row>button{margin-bottom:2px;padding:6px;font-size:10px;white-space:nowrap}
#workspace .sales-inline-products>footer{display:flex;justify-content:flex-end;align-items:center;gap:14px;padding-top:7px;border-top:1px solid #dfe7df;color:#294a3d;font-size:12px}.sales-inline-products>footer output{font-weight:700;font-variant-numeric:tabular-nums}
#workspace .sales-inline-error{min-height:0;margin:0;color:#a33f31;font-size:12px}.sales-inline-error:empty{display:none}
#workspace .sales-inline-actions{display:flex;justify-content:flex-end;gap:8px}.sales-inline-actions button{padding:8px 13px}
@media(max-width:900px){#workspace .sales-inline-core-fields{grid-template-columns:repeat(2,minmax(0,1fr))}#workspace .sales-inline-product-row{grid-template-columns:repeat(4,minmax(0,1fr))}#workspace .sales-inline-product-row>strong{grid-column:1/-1}.sales-inline-product-row .sales-inline-price-basis{grid-column:1/4}.sales-inline-product-row>button{grid-column:4;justify-self:end}}
@media(max-width:600px){#workspace .sales-inline-editor-head{align-items:flex-start;flex-direction:column;gap:3px}#workspace .sales-inline-core-fields{grid-template-columns:1fr 1fr}#workspace .sales-inline-core-fields label:first-child,#workspace .sales-inline-core-fields label:nth-child(2){grid-column:1/-1}#workspace .sales-inline-products>header{align-items:flex-start}#workspace .sales-inline-products>header>div{display:grid;gap:1px}#workspace .sales-inline-product-row{grid-template-columns:1fr 1fr;padding:7px}.sales-inline-product-row>strong,.sales-inline-product-row .sales-inline-price-basis{grid-column:1/-1}.sales-inline-product-row>button{grid-column:2;justify-self:end}#workspace .sales-inline-product-row output{min-height:30px}#workspace .sales-inline-actions{position:sticky;bottom:0;padding:7px 0;background:#fbfcf8}}
body #search,body #link-search,body #candidate-opportunity-search{width:100%;max-width:100%}
body .inbox-tools input,body .inbox-tools select,body .filters select,body .all-filter-row select,body .link-quick-filters select,body .customer-sales-tools select{width:max-content;max-width:100%;min-width:0}
@media(max-width:700px){body select{max-width:100%}}

/* Date controls use the same compact, content-sized standard everywhere.
   This final block intentionally overrides legacy per-module date widths. */
body .workbench-date-field,
body #workspace .workbench-date-field,
body .next-action-date>.workbench-date-field,
body .inbox-tools label .workbench-date-field{
  display:inline-block!important;
  width:max-content!important;
  min-width:0!important;
  max-width:100%!important;
  flex:0 1 auto!important;
  height:auto!important;
  margin:0!important;
}
body .workbench-date-trigger,
body #workspace .workbench-date-trigger,
body .next-action-date .workbench-date-trigger,
body .inbox-tools label .workbench-date-trigger{
  display:inline-flex!important;
  align-items:center!important;
  width:max-content!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:0!important;
  height:auto!important;
  padding:3px 7px!important;
  border-radius:5px!important;
  font-size:12px!important;
  line-height:1.35!important;
  white-space:nowrap!important;
}
body .workbench-date-trigger::after{margin-left:6px!important;float:none!important;font-size:11px!important}

/* The calendar panel is half the former 360px CSS width, with proportional
   controls so it remains usable instead of reserving a large blank surface. */
body dialog.workbench-date-picker,
body #workbench-date-picker{
  width:min(180px,calc(100vw - 24px))!important;
  max-width:180px!important;
  min-width:0!important;
  max-height:calc(100dvh - 24px)!important;
  padding:8px!important;
  border-radius:9px!important;
}

/* ERP-aligned master identities: opportunity media moves into each product row. */
#workspace .sales-opportunity-main{display:block;min-width:0}
#workspace .sales-opportunity-content{min-width:0;width:100%}
#workspace .sales-opportunity-id{display:inline-flex;margin:0 0 6px;padding:2px 7px;border-radius:5px;background:#e8f1e9;color:#2f604a;font-size:11px;font-weight:700;letter-spacing:.03em}
#workspace .sales-master-display{display:inline-flex;align-items:center;gap:6px;max-width:100%;min-width:0;flex-wrap:wrap}
#workspace .sales-master-code{display:inline-flex;align-items:baseline;gap:5px;max-width:100%;margin:0;padding:2px 5px;border:0;border-bottom:1px dashed #b49348;border-radius:3px;background:transparent;color:#6e633f;font-size:10px;line-height:1.25;cursor:pointer}
#workspace .sales-master-code small{color:#789083;font-size:9px}
#workspace .sales-customer-mapping{flex-direction:column;align-items:flex-start;gap:2px;text-align:left;white-space:normal}
#workspace .sales-customer-mapping-name{font-size:12px;line-height:1.4;overflow-wrap:anywhere}
#workspace .sales-opportunity-summary .sales-summary-row .sales-customer-mapping small{white-space:normal;max-width:100%;overflow-wrap:anywhere;flex:initial}
#workspace .sales-subproject-row{grid-template-columns:var(--sales-product-thumb-width) minmax(92px,.72fr) minmax(150px,1.2fr) minmax(280px,1.7fr);align-items:center;gap:8px;padding:7px 8px}
#workspace .sales-product-identity{display:grid;align-content:center;gap:1px;min-width:0}
#workspace .sales-product-identity>small{color:#789083;font-size:9px}
#workspace .sales-product-erp-code{color:#24493b;font-size:12px;overflow-wrap:anywhere}
#workspace .sales-product-master-code{color:#718177;font-size:9px;overflow-wrap:anywhere}
#workspace .sales-product-identity>em{color:#9b6a20;font-size:9px;font-style:normal}
#workspace .sales-product-identity>button{justify-self:start;margin-top:2px;padding:1px 0;font-size:9px}
#workspace .sales-product-image-cell{display:grid;justify-items:start;gap:2px;width:100%;min-width:0}
#workspace .sales-product-images{width:var(--sales-product-thumb-width);height:var(--sales-product-thumb-height);max-width:100%}
#workspace .sales-product-image-count{right:3px;bottom:3px}
#workspace .sales-product-thumb-button{display:inline-flex;box-sizing:border-box;width:var(--sales-product-thumb-width);height:var(--sales-product-thumb-height);max-width:100%;margin:0;padding:0;border:1px solid #d7e2d8;border-radius:6px;background:#fff;overflow:hidden;flex:0 0 auto}
#workspace .sales-product-thumb{width:100%;height:100%;object-fit:contain;background:#f7f9f6}
#workspace .sales-product-image-cell>button{padding:1px 0;font-size:9px}
#workspace .sales-product-no-image{color:#8b978f;font-size:9px}
#workspace .sales-product-empty-image,#workspace .sales-product-empty-image-button{box-sizing:border-box;width:var(--sales-product-thumb-width);min-height:var(--sales-product-thumb-height);max-width:100%;border:1px dashed #b9cbbd;border-radius:7px;background:#f5f8f3}
#workspace .sales-product-empty-image{display:block}
body #workspace .sales-product-empty-image-button{display:grid;place-items:center;min-height:var(--sales-product-thumb-height)!important;margin:0;padding:8px!important;color:#2f604a;font-size:11px!important;font-weight:650;line-height:1.25;text-align:center;text-decoration:none;white-space:nowrap}
#workspace .sales-product-empty-image-button:hover{border-color:#6f927c;background:#edf4ed}
#workspace .sales-product-empty-image-button:focus-visible{outline:3px solid #d4aa55;outline-offset:2px}
#workspace .sales-product-add-image-link{justify-self:start;white-space:nowrap}
@media(min-width:701px){
 #workspace .sales-subproject-row{align-items:start}
 #workspace .sales-product-identity,#workspace .sales-subproject-row header,#workspace .sales-subproject-row dl{align-self:start}
 #workspace .sales-product-identity{justify-items:center;text-align:center}
 #workspace .sales-product-identity>button{justify-self:center;text-align:center}
 #workspace .sales-subproject-row header{align-items:center;text-align:center}
 #workspace .sales-subproject-row header .sales-inline-value{justify-content:center;margin-top:3px;text-align:center}
 #workspace .sales-subproject-row dl>div{text-align:center}
 #workspace .sales-subproject-row dl dd .sales-inline-value{position:relative;top:3px;justify-content:center;margin-inline:auto;text-align:center}
 #workspace .sales-product-image-cell{width:100%;justify-items:center}
 #workspace .sales-product-images{justify-content:center}
 #workspace .sales-product-image-cell{align-self:start;padding-top:14px;box-sizing:border-box}
}

/* Opportunity product rows size themselves from the actual text and thumbnail.
   Product details are open by default; the summary remains a compact toggle. */
#workspace .sales-products-disclosure{--sales-product-thumb-width:116px;--sales-product-thumb-height:96px;margin:5px 0;min-width:0}
#workspace .sales-unassigned-product-images>p{margin:0 0 4px;color:#526958;font-size:12px}
#workspace .sales-unassigned-product-images>div{display:flex;flex-wrap:wrap;gap:6px}
#workspace .sales-products-disclosure>summary{cursor:pointer;min-height:0;padding:4px 7px;color:#315747;font-size:11px;font-weight:650;line-height:1.4}
#workspace .sales-products-disclosure>summary span{color:#718177;font-size:10px;font-weight:400}
#workspace .sales-subproject-lines{gap:5px;margin:4px 0;padding:6px 8px}
#workspace .sales-subproject-row{padding-block:5px}
#workspace .sales-subproject-row dl dt{font-size:12px;color:#526958}
#workspace .sales-subproject-row dl dd{font-size:14px}
#workspace .sales-subproject-row dl dd small{font-size:11px}

/* Linked source text is searchable in place. Only already-linked evidence is
   rendered; platform filters do not create or change source relationships. */
#workspace .sales-chat-records-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:7px}
#workspace .sales-chat-records-heading h5{margin:0;color:#315c48;font-size:12px}
#workspace .sales-chat-records-heading>span{color:#718177;font-size:10px;white-space:nowrap}

/* Confirmed opportunity workbench layout: product facts stay fixed on the
   left, while execution, timeline, next action and source evidence continue
   in one reading path on the right. */
#workspace .sales-opportunity-time-layout{display:grid;grid-template-columns:clamp(360px,36%,520px) minmax(0,1fr);gap:10px;margin-top:6px;align-items:start;min-width:0}
#workspace .sales-opportunity-product-rail,#workspace .sales-opportunity-time-workflow{min-width:0}
#workspace .sales-opportunity-product-rail{display:block;width:auto;inset:auto;padding:0;background:transparent;color:inherit}
#workspace .sales-opportunity-product-rail{position:sticky;top:8px;align-self:start}
#workspace .sales-opportunity-product-rail .sales-products-disclosure{margin:0}
#workspace .sales-opportunity-product-rail .sales-subproject-lines{margin-bottom:0}
#workspace .sales-opportunity-product-rail .sales-subproject-row{grid-template-columns:minmax(150px,49%) minmax(0,1fr);grid-template-areas:"image product" "image metrics" "erp erp";gap:5px 9px;align-items:stretch}
#workspace .sales-opportunity-product-rail .sales-product-image-cell{grid-area:image;width:100%;height:100%;padding-top:0;justify-items:stretch;align-items:stretch;align-content:stretch;align-self:stretch}
#workspace .sales-opportunity-product-rail .sales-product-images,#workspace .sales-opportunity-product-rail .sales-product-thumb-button{width:100%;height:100%;min-height:84px}
#workspace .sales-opportunity-product-rail .sales-product-empty-image-button{width:100%;height:100%;min-height:84px!important}
#workspace .sales-opportunity-product-rail .sales-subproject-row>header{grid-area:product;align-items:start;text-align:left;padding-top:2px}
#workspace .sales-opportunity-product-rail .sales-subproject-row>header strong{display:block;overflow:visible;-webkit-line-clamp:unset}
#workspace .sales-opportunity-product-rail .sales-subproject-row>header .sales-inline-value{justify-content:flex-start;text-align:left}
#workspace .sales-opportunity-product-rail .sales-product-identity{grid-area:erp;display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 7px;padding:6px 8px;border-radius:6px;background:#f4f7f2;justify-items:start;text-align:left}
#workspace .sales-opportunity-product-rail .sales-product-identity>small{flex:none}
#workspace .sales-opportunity-product-rail .sales-product-identity>strong,#workspace .sales-opportunity-product-rail .sales-product-identity>span{min-width:0}
#workspace .sales-opportunity-product-rail .sales-product-identity>button{justify-self:start;margin:0 0 0 auto;text-align:left;white-space:nowrap}
#workspace .sales-opportunity-product-rail .sales-subproject-row>dl{grid-area:metrics;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 7px;margin-top:0;align-self:end}
#workspace .sales-opportunity-product-rail .sales-subproject-row>dl>div{text-align:left}
#workspace .sales-opportunity-product-rail .sales-subproject-row>dl dd .sales-inline-value{top:0;justify-content:flex-start;margin-inline:0;text-align:left}
#workspace .sales-opportunity-product-rail .sales-product-images,#workspace .sales-opportunity-product-rail .sales-product-thumb-button{max-width:none}
#workspace .sales-opportunity-product-rail .sales-product-thumb{width:100%;height:100%;object-fit:contain}
#workspace .sales-opportunity-product-rail .sales-subproject-total>span{font-weight:750;font-size:15px}
#workspace .sales-opportunity-product-rail .sales-subproject-total{grid-template-columns:1fr auto}
#workspace .sales-opportunity-product-rail .sales-subproject-total>strong{grid-column:1}
#workspace .sales-opportunity-product-rail .sales-subproject-total>span:nth-child(5){grid-column:2}
#workspace .sales-opportunity-time-workflow{display:grid;gap:7px}
#workspace .sales-opportunity-time-workflow>.sales-message-item,#workspace .sales-opportunity-time-workflow>.sales-next-action-update{margin:0}
#workspace .sales-opportunity-time-workflow>.sales-previous-action{padding:9px 10px;border:1px solid #dbe5dc;border-radius:8px;background:#fafcf9}
#workspace .sales-opportunity-time-workflow>.sales-previous-action>b{display:block;margin-bottom:4px;color:#315747;font-size:12px}
#workspace .sales-opportunity-time-workflow .sales-followup-day{position:relative;margin-left:5px;padding-left:13px;border-left:1px solid #bfd2c3}
#workspace .sales-opportunity-time-workflow .sales-followup-record{position:relative;padding-block:4px}
#workspace .sales-opportunity-time-workflow .sales-followup-record::before{content:"";position:absolute;left:-17px;top:9px;width:7px;height:7px;border:2px solid #2d7b58;border-radius:50%;background:#f8fbf7}
#workspace .sales-opportunity-actions>div{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:5px}
#workspace .sales-opportunity-actions button{display:inline-flex;align-items:center;justify-content:center;height:30px;min-height:30px;margin:0;padding:4px 9px;line-height:1;border-radius:7px;box-sizing:border-box;align-self:center}
#workspace .sales-collected-chat-records{margin:0;border:1px solid #d7e2d8;border-radius:8px;background:#fbfcf9;overflow:hidden}
#workspace .sales-collected-chat-records>summary{display:grid;grid-template-columns:minmax(180px,1fr) auto auto;align-items:center;gap:10px;min-height:44px;padding:7px 10px;cursor:pointer;list-style:none;color:#315747}
#workspace .sales-collected-chat-records>summary::-webkit-details-marker{display:none}
#workspace .sales-collected-chat-title{display:grid;grid-template-columns:auto auto;gap:1px 7px;min-width:0;align-items:baseline}
#workspace .sales-collected-chat-title>small{grid-row:1/span 2;color:#7b8b81;font-size:9px}
#workspace .sales-collected-chat-title>strong{font-size:12px}
#workspace .sales-collected-chat-title>span{grid-column:2;color:#718177;font-size:10px;overflow-wrap:anywhere}
#workspace .sales-collected-chat-toggle{display:flex;align-items:center;gap:5px;flex:none;color:#527160;font-size:10px}
#workspace .sales-collected-chat-toggle b{font-weight:500}
#workspace .sales-collected-chat-toggle i{font-style:normal;transition:transform .16s ease}
#workspace .sales-chat-type-tabs{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0}
#workspace .sales-chat-type-tabs button{min-width:68px;min-height:30px;padding:4px 8px;border:1px solid #c9d8cd;border-radius:7px;background:#f6f8f4;color:#315747;font:inherit;font-size:11px;cursor:pointer;white-space:nowrap}
#workspace .sales-chat-type-tabs button[aria-pressed=true]{border-color:#2d7456;background:#2d7456;color:#fff}
#workspace .sales-chat-close-label{display:none}
#workspace .sales-collected-chat-records[open] .sales-chat-open-label{display:none}
#workspace .sales-collected-chat-records[open] .sales-chat-close-label{display:inline}
#workspace .sales-collected-chat-records[open] .sales-collected-chat-toggle i{transform:rotate(180deg)}
#workspace .sales-collected-chat-body{padding:0 9px 9px;border-top:1px solid #e3e9e2}
#workspace .sales-collected-chat-body>.sales-chat-records{margin-bottom:0}
#workspace .sales-chat-link-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:9px 0}
#workspace .sales-chat-link-actions>button{min-width:0;min-height:42px;padding:7px 6px;white-space:normal;line-height:1.25}
@media(max-width:900px){
 #workspace .sales-opportunity-time-layout{grid-template-columns:1fr}
 #workspace .sales-opportunity-product-rail{position:static}
 #workspace .sales-opportunity-product-rail .sales-subproject-row{grid-template-columns:minmax(130px,46%) minmax(0,1fr)}
 #workspace .sales-opportunity-product-rail .sales-product-image-cell{width:100%;height:100%}
 #workspace .sales-opportunity-product-rail .sales-product-images,#workspace .sales-opportunity-product-rail .sales-product-thumb-button{width:100%;height:100%;min-height:84px}
}
@media(max-width:390px){
 #workspace .sales-opportunity-product-rail .sales-products-disclosure{--sales-product-thumb-width:96px;--sales-product-thumb-height:84px}
 #workspace .sales-opportunity-product-rail .sales-subproject-row{grid-template-columns:minmax(112px,42%) minmax(0,1fr)}
 #workspace .sales-opportunity-product-rail .sales-product-image-cell{width:100%;height:100%}
 #workspace .sales-opportunity-product-rail .sales-product-images,#workspace .sales-opportunity-product-rail .sales-product-thumb-button{width:100%;height:100%;min-height:84px}
 #workspace .sales-collected-chat-records>summary{grid-template-columns:minmax(0,1fr) auto;align-items:flex-start}
 #workspace .sales-collected-chat-title{grid-template-columns:auto minmax(0,1fr)}
 #workspace .sales-chat-type-tabs{grid-column:1/-1;grid-row:2;justify-content:stretch;width:100%}
 #workspace .sales-chat-type-tabs button{flex:1;min-width:0;min-height:44px;padding-inline:4px}
 #workspace .sales-chat-link-actions{gap:4px}
 #workspace .sales-chat-link-actions>button{font-size:12px;padding-inline:3px}
}
#workspace .sales-chat-query{display:grid;grid-template-columns:minmax(220px,1fr) auto auto;gap:6px 10px;align-items:end;margin:0 0 8px;padding:7px;border-radius:7px;background:#f1f6ef}

/* Opportunity-card density pass: master references sit below their names;
   unresolved follow-ups lead the timeline; product facts use less space. */
#workspace .sales-opportunity-summary .sales-summary-primary>span:not(.task-added-by){display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;column-gap:5px;row-gap:0}
#workspace .sales-opportunity-summary .sales-summary-primary>span:not(.task-added-by)>small{grid-column:1;grid-row:1}
#workspace .sales-opportunity-summary .sales-summary-primary>span:not(.task-added-by)>.sales-master-display{grid-column:2;grid-row:1;display:grid;grid-template-columns:minmax(0,1fr);gap:1px;width:100%;align-items:start}
#workspace .sales-opportunity-summary .sales-master-display>.sales-inline-value{grid-row:1;justify-self:start}
#workspace .sales-opportunity-summary .sales-master-display>.sales-master-code{grid-row:2;justify-self:start;margin:0;padding:0 0 1px;font-size:9px;line-height:1.2}
#workspace .sales-opportunity-summary .sales-customer-mapping-name{font-size:9px;line-height:1.25}
#workspace .sales-opportunity-time-layout{grid-template-columns:clamp(330px,32%,460px) minmax(0,1fr)}
#workspace .sales-opportunity-product-rail .sales-subproject-lines{gap:3px;padding:5px 6px}
#workspace .sales-opportunity-product-rail .sales-subproject-row{grid-template-columns:minmax(150px,49%) minmax(0,1fr);gap:3px 7px;padding:4px 6px}
#workspace .sales-opportunity-product-rail .sales-product-identity{gap:2px 5px;padding:4px 6px}
#workspace .sales-opportunity-product-rail .sales-product-identity>button{margin:0;text-align:left}
#workspace .sales-opportunity-product-rail .sales-product-image-cell[data-sales-product-drop]{border-radius:8px;transition:background .15s ease,outline-color .15s ease}
#workspace .sales-opportunity-product-rail .sales-product-image-cell.sales-product-drop-active{background:#e7f3e9;outline:3px dashed #268057;outline-offset:-3px}
#workspace .sales-opportunity-product-rail .sales-subproject-row header small{overflow-wrap:anywhere}
#workspace .sales-opportunity-time-workflow .sales-followup-record{padding-block:2px}
#workspace .sales-opportunity-time-workflow .sales-followup-record.followup-record-one-line{padding-top:2px;padding-bottom:2px}
#workspace .sales-opportunity-time-workflow .sales-followup-record>.followup-record-content{line-height:1.25}
#workspace .sales-opportunity-time-workflow .sales-followup-record::before{top:6px}
@media(max-width:900px){
 #workspace .sales-opportunity-time-layout{grid-template-columns:1fr}
 #workspace .sales-opportunity-product-rail .sales-subproject-row{grid-template-columns:minmax(130px,46%) minmax(0,1fr)}
}
@media(max-width:390px){
 #workspace .sales-opportunity-product-rail .sales-subproject-row{grid-template-columns:minmax(112px,42%) minmax(0,1fr)}
}
#workspace .sales-chat-query label{display:grid;gap:3px;min-width:0;margin:0;color:#587064;font-size:10px}
#workspace .sales-chat-query input{box-sizing:border-box;width:100%;min-width:0;margin:0;padding:6px 8px;font-size:11px}
#workspace .sales-chat-query [role="group"]{display:flex;flex-wrap:wrap;gap:4px}
#workspace .sales-chat-query button{min-height:28px;padding:4px 8px;border:1px solid #c8d8c8;border-radius:6px;background:#fff;color:#416451;font-size:10px;white-space:nowrap}
#workspace .sales-chat-query button[aria-pressed="true"]{border-color:#315b45;background:#315b45;color:#fff}
#workspace .sales-chat-query output{color:#667a6e;font-size:10px;white-space:nowrap}
#workspace .sales-chat-empty{margin:6px 0!important;padding:7px;border-radius:6px;background:#f7f9f5;color:#718177}
@media(max-width:700px){
 #workspace .sales-chat-query{grid-template-columns:1fr;align-items:stretch}
 #workspace .sales-chat-query button{min-height:44px}
 #workspace .sales-chat-query output{justify-self:start}
}
.master-mapping-dialog{width:min(760px,calc(100vw - 24px));box-sizing:border-box}
.master-mapping-dialog .dialog-head>div{min-width:0}.master-mapping-dialog .dialog-head h2{margin-bottom:2px}.master-mapping-dialog .dialog-head p{margin:0;color:#68796e}
.master-mapping-dialog [data-master-search]{display:grid;grid-template-columns:minmax(220px,1fr) max-content;gap:8px;align-items:end;margin:10px 0}
.master-mapping-dialog [data-master-search] label{display:grid;gap:3px;min-width:0}
.master-mapping-dialog [data-master-search] input{width:100%;box-sizing:border-box}
.master-catalog-cutoff{margin:4px 0 8px;color:#6e7d73;font-size:11px}
.master-catalog-result{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px solid #e0e7df}
.master-catalog-result>div{display:flex;align-items:center;gap:8px;min-width:0}.master-catalog-result img{width:54px;height:46px;border:1px solid #d9e3da;border-radius:5px;object-fit:contain}.master-catalog-result span{display:grid;min-width:0}.master-catalog-result strong{color:#24493b}.master-catalog-result b{font-size:12px}.master-catalog-result small{color:#718177;font-size:10px}.master-catalog-result>button{white-space:nowrap}
.master-redirect-note{padding:8px;border-radius:6px;background:#fff5e4;color:#805c20}.master-detail-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:10px 0}.master-detail-fields>div{min-width:0;padding:7px;border:1px solid #dce5db;border-radius:6px}.master-detail-fields dt{color:#718177;font-size:10px}.master-detail-fields dd{margin:2px 0 0;overflow-wrap:anywhere;font-size:12px}.master-detail-dialog h3{margin:12px 0 5px;font-size:13px}.master-detail-mapping{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px;border-top:1px solid #e0e7df}.master-detail-mapping span{display:grid;min-width:0}.master-detail-mapping b{font-size:11px}.master-detail-mapping small{color:#718177;font-size:9px}.master-detail-audit{max-height:180px;overflow:auto}.master-detail-audit p{display:grid;grid-template-columns:max-content max-content minmax(0,1fr);gap:7px;margin:0;padding:5px 0;border-top:1px solid #e8ece6;font-size:10px}.master-detail-audit time{color:#718177}.master-detail-audit span{overflow-wrap:anywhere}
#sales-dialog .sales-image-pending-note{padding:7px;border-radius:6px;background:#fff5e4;color:#805c20}.sales-image-unassigned{border-color:#d9b873!important;background:#fffbf2!important}.sales-image-transfer{display:grid;grid-template-columns:minmax(120px,.8fr) minmax(160px,1.4fr) max-content;gap:5px;align-items:end;grid-column:1/-1;margin-top:5px}.sales-image-transfer select,.sales-image-transfer input{width:100%!important;min-width:0!important;margin:0!important;padding:6px!important}.sales-image-transfer button{white-space:nowrap}
@media(max-width:700px){
 #workspace .sales-products-disclosure{--sales-product-thumb-width:108px;--sales-product-thumb-height:88px}
 #workspace .sales-subproject-row{grid-template-columns:var(--sales-product-thumb-width) minmax(82px,.7fr) minmax(0,1.3fr);gap:6px}
 #workspace .sales-subproject-row dl{grid-column:1/-1;grid-template-columns:repeat(4,minmax(0,1fr))}
 #workspace .sales-master-code,body #workspace .sales-product-identity [data-master-map-product],body #workspace .sales-product-image-cell>[data-sales-card-add-image]{min-height:44px!important;padding-block:8px!important}
 body #workspace .sales-product-image-cell>.sales-product-empty-image-button[data-sales-card-add-image]{min-height:var(--sales-product-thumb-height)!important}
 .master-mapping-dialog [data-master-search]{grid-template-columns:1fr}.master-mapping-dialog [data-master-search] button{justify-self:start}
 .master-detail-fields{grid-template-columns:1fr}.master-detail-mapping{align-items:flex-start;flex-direction:column}.master-detail-mapping>button{min-height:44px}.master-detail-audit p{grid-template-columns:1fr 1fr}.master-detail-audit span{grid-column:1/-1}
 .sales-image-transfer{grid-template-columns:1fr}.sales-image-transfer button{min-height:44px}
}
@media(max-width:390px){
 #workspace .sales-products-disclosure{--sales-product-thumb-width:96px;--sales-product-thumb-height:84px}
 #workspace .sales-subproject-row{grid-template-columns:var(--sales-product-thumb-width) 76px minmax(0,1fr);padding:6px}
 #workspace .sales-subproject-row dl{gap:4px}
}
body #workbench-date-picker .date-picker-heading,
body #workbench-date-picker .date-picker-month{gap:3px!important}
body #workbench-date-picker .date-picker-heading h2{font-size:12px!important}
body #workbench-date-picker .date-picker-heading button,
body #workbench-date-picker .date-picker-month button{min-width:22px!important;min-height:22px!important;font-size:17px!important;padding:0!important}
body #workbench-date-picker .date-picker-month{margin:3px 0!important}
body #workbench-date-picker .date-picker-month strong{font-size:11px!important}
body #workbench-date-picker .date-picker-weekdays{font-size:9px!important;margin-bottom:1px!important}
body #workbench-date-picker .date-picker-weekdays span{padding:2px 0!important}
body #workbench-date-picker .date-picker-days{gap:1px!important;max-height:none!important}
body #workbench-date-picker .date-picker-days button{height:22px!important;padding:0!important;border-radius:4px!important;font-size:10px!important}
body #workbench-date-picker #date-picker-selected{font-size:9px!important;min-height:12px!important;margin:4px 0!important}
body #workbench-date-picker .date-picker-actions{gap:3px!important}
body #workbench-date-picker .date-picker-actions button{min-height:22px!important;padding:3px 5px!important;border-radius:4px!important;font-size:10px!important}
body #workbench-date-picker .date-picker-actions .primary{margin-left:auto!important}

/* Override legacy module-specific fixed date slots with equal or greater
   specificity. */
body #workspace .sales-next-action-update .next-action-date>.workbench-date-field,
body #workspace .card-action-editor form .next-action-date>.workbench-date-field,
body #workspace .task-action-inline-editor .next-action-date>.workbench-date-field,
body #workspace .confirmed-next-action .next-action-date>.workbench-date-field,
body .followup-standard-editor .next-action-date>.workbench-date-field{
  width:max-content!important;min-width:0!important;max-width:100%!important;
  flex:0 1 auto!important;flex-basis:auto!important;height:auto!important;
}
body #workspace .sales-next-action-update .next-action-date .workbench-date-trigger,
body #workspace .card-action-editor form .next-action-date .workbench-date-trigger,
body #workspace .task-action-inline-editor .next-action-date .workbench-date-trigger,
body #workspace .confirmed-next-action .next-action-date .workbench-date-trigger,
body .followup-standard-editor .next-action-date .workbench-date-trigger{
  display:inline-flex!important;align-items:center!important;
  width:max-content!important;min-width:0!important;max-width:100%!important;
  height:auto!important;min-height:0!important;padding:3px 7px!important;
  border-radius:5px!important;font-size:12px!important;line-height:1.35!important;
}
body #workspace .sales-next-action-update{grid-template-columns:minmax(0,1fr) auto auto!important}
@media(max-width:900px){body #workspace .sales-next-action-update{grid-template-columns:auto auto minmax(58px,1fr)!important}}

/* Confirm the displayed candidate project without opening the association picker. */
.inbox-card .candidate-direct-confirm {
  display: inline-block;
  margin: 2px 0 2px 8px;
  padding: 4px 9px;
  min-height: 28px;
  font-size: 12px;
  line-height: 1.4;
  vertical-align: middle;
  white-space: nowrap;
  background: #e8eee5;
  color: #335b43;
  border: 1px solid #bccbb9;
  border-radius: 6px;
  font-weight: 600;
}
.tw-scope-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 12px}.tw-scope-links button{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 12px;min-width:0;padding:10px 12px;text-align:left;border:1px solid #cbd8c8;background:#f6f8f3;color:#244b3a}.tw-scope-links button strong{grid-column:2;grid-row:1/3;font-size:24px;font-variant-numeric:tabular-nums}.tw-scope-links button small{font-size:11px;color:#748377}.tw-scope-links button:hover,.tw-scope-links button:focus-visible{background:#e8f0e2;border-color:#50794d}@media(max-width:600px){.tw-scope-links{grid-template-columns:1fr}.tw-scope-links button{min-height:44px}}

/* Same-customer project choices in the existing candidate review. */
.inbox-card .candidate-project-shortcut {
  display:inline-block; margin:2px 0 2px 8px; padding:4px 9px; min-height:28px;
  font-size:12px; line-height:1.4; vertical-align:middle; white-space:nowrap;
  background:#f1f5ef; color:#335b43; border:1px solid #bccbb9; border-radius:6px;
}
.inbox-card .candidate-project-shortcut.candidate-project-inline-link {
  margin:-2px 0; padding:1px 5px; min-height:0; max-width:100%;
  font:inherit; font-weight:800; line-height:inherit; white-space:normal; overflow-wrap:anywhere;
  background:#f4f7ef; color:#173f35; border:1px dashed #8ca48f; border-radius:5px;
}
.inbox-card .candidate-project-shortcut.candidate-project-inline-link:hover,
.inbox-card .candidate-project-shortcut.candidate-project-inline-link:focus-visible {
  background:#e8f0e2; border-color:#50794d; outline:2px solid #50794d33; outline-offset:1px;
}
.link-project-shortcuts {margin:8px 0 12px; padding:10px; border:1px solid #ccd8c8; border-radius:8px; background:#f6f8f3; min-width:0;}
.link-project-shortcuts[hidden] {display:none;}
.link-project-toolbar {display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px; margin-bottom:8px;}
.link-project-toolbar strong {overflow-wrap:anywhere; min-width:0;}
.link-project-toolbar kbd {font:inherit; font-size:11px; color:#607564;}
.link-project-options {display:flex; flex-wrap:wrap; gap:6px; margin-bottom:6px;}
.link-project-options button {display:flex; flex-direction:column; align-items:flex-start; gap:2px; width:auto; max-width:100%; min-height:44px; padding:7px 10px; text-align:left; overflow-wrap:anywhere; white-space:normal; border:1px solid #c8d3c4; background:white; color:#335b43;}
.link-project-options button small {font-size:11px; font-weight:400;}
.link-project-options button[aria-pressed="true"] {border-color:#50794d; background:#e6efdf; box-shadow:inset 0 0 0 1px #50794d;}
.link-project-options button:focus-visible {outline:3px solid #50794d; outline-offset:2px;}

/* The inbox source controls share the group heading at all account widths. */
.inbox-source-tabs{display:flex;align-items:center;gap:8px;margin-left:auto;flex-shrink:0}
.inbox-source-tabs button{margin:0;padding:6px 12px;min-height:34px;border:1px solid #cbd8c8;border-radius:7px;background:transparent;color:#52735b;font:inherit;font-size:13px;line-height:1.3;white-space:nowrap}
.inbox-source-tabs button[aria-pressed="true"]{background:#315b45;border-color:#315b45;color:#fff}
.inbox-source-tabs button:focus-visible{outline:2px solid #527a5d;outline-offset:2px}
.inbox-source-empty-heading{grid-column:1/-1}
.source-health{margin-block:var(--wb-card-gap)}
.source-health-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.source-health-card{min-width:0;border:1px solid #d6e0d3;border-radius:9px;background:#f8faf6}
.source-health-card>div{display:flex;align-items:center;justify-content:space-between;gap:var(--wb-field-gap)}
.source-health-card strong{font-size:14px;color:#234d3b}
.source-health-card>div>span{font-size:11px;color:#55705f;background:#e7efe6;border-radius:999px;padding:2px 6px;white-space:nowrap}
.source-health-card p{margin:3px 0 0!important;font-size:12px!important;line-height:1.4;color:#344f41;overflow-wrap:anywhere}
.source-health-note{display:block;margin-top:var(--wb-section-gap);font-size:11px;color:#556a5d}
.logistics-review{max-inline-size:56rem;border:1px solid #cddbc9;border-radius:12px;background:#fbfcf8}
.logistics-review-head,.logistics-review-actions{
 display:flex;align-items:center;justify-content:space-between;gap:var(--wb-field-gap)
}
.logistics-review-title{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:var(--wb-field-gap)}
.logistics-review-head{position:sticky;top:0;z-index:1;flex-wrap:wrap;background:#fbfcf8}
.logistics-review-head>div{flex:1 1 12rem}
.logistics-review-head h3{margin:0;color:#173f35}
.logistics-review-head>[data-delete-logistics]{font-size:13px;white-space:nowrap}
.logistics-review-title strong{min-width:0}
.logistics-review-select{display:inline-flex;align-items:center;justify-content:center;inline-size:30px;min-height:30px;margin:0;cursor:pointer}
.logistics-review-select input{margin:0}
.logistics-review-title-actions{display:inline-flex;align-items:center;gap:var(--wb-field-gap);white-space:nowrap}
.logistics-review-title-actions button{min-height:30px;padding:4px 8px;font-size:13px}
.logistics-review-evidence{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--wb-field-gap);margin-top:var(--wb-section-gap);padding:var(--wb-section-gap);border:1px solid #dce5d8;border-radius:8px;background:#edf4eb}
.logistics-review-evidence>div{display:grid;gap:2px;min-width:0}
.logistics-review-evidence small{color:#687c70;font-size:11px}
.logistics-review-evidence strong{overflow-wrap:anywhere;font-size:13px;color:#173f35}
.logistics-review-evidence>p{grid-column:1/-1;margin:0!important;font-size:11px!important;color:#687c70}
.logistics-customer-evidence{margin-top:var(--wb-section-gap);padding:var(--wb-section-gap);border-left:3px solid #4d9271;background:#f5f8f3;border-radius:0 8px 8px 0}
.logistics-customer-evidence>strong,.logistics-customer-evidence>p{display:block;margin:0 0 3px;font-size:12px;color:#315b45}
.logistics-customer-evidence ul{display:grid;gap:4px;margin:0;padding:0;list-style:none}
.logistics-customer-evidence li{display:grid;gap:2px;padding-top:4px;border-top:1px solid #dce5d8}
.logistics-customer-evidence small{font-size:11px;color:#687c70}
.logistics-customer-evidence span{font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.logistics-review-images{grid-column:1/-1;display:flex!important;align-items:flex-start;flex-wrap:wrap;gap:var(--wb-field-gap)}
.logistics-review-images h4{flex-basis:100%;margin:0;font-size:12px;color:#315b45}
.logistics-review-images button{display:grid;gap:4px;padding:4px;background:#fff}
.logistics-review-images img{inline-size:96px;block-size:72px;object-fit:cover;border-radius:5px}
.logistics-review-images span{max-inline-size:96px;font-size:11px;overflow-wrap:anywhere}
.logistics-review-head p{margin:2px 0 0!important;font-size:12px!important;color:#66766b}
.logistics-review-head>strong,.logistics-review-title-actions span{
 white-space:nowrap;border-radius:999px;background:#e8f0e3;color:#315b45;padding:2px 7px;font-size:11px
}
.logistics-review-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:var(--wb-card-gap);min-width:0}
.logistics-review article{min-width:0;border:1px solid #dce5d8;border-radius:9px;background:#fdfefc}
.logistics-review-title strong,.logistics-review li{overflow-wrap:anywhere}
.logistics-review ul{margin:var(--wb-section-gap) 0;padding-left:18px;color:#40564a;font-size:12px;line-height:1.5}
.logistics-review-fields label{font-size:12px;color:#556a5d}
.logistics-review-fields label:has(select){max-width:min(24ch,100%)}
.logistics-review-fields label:has([data-logistics-product]){max-width:min(25ch,100%)}
.logistics-review-fields input,.logistics-review-fields select{margin:0;padding:5px 8px;font-size:13px}
.logistics-customer-field{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;max-width:min(28ch,100%)!important}
.logistics-customer-field input[type="search"]{inline-size:100%;min-height:34px}
.logistics-customer-field select{inline-size:100%}
.logistics-customer-suggestion{display:block;margin-top:2px;color:#315b45;font-size:11px;line-height:1.35}
.logistics-review-actions{margin-top:var(--wb-section-gap);align-items:flex-start}
.logistics-review li small{display:block;font-size:11px;color:#556a5d}
.logistics-review li span{display:block;white-space:pre-wrap}
.logistics-review li span b{font-weight:600;color:#315b45}
.logistics-review-blocked{font-size:12px!important;color:#825131}
.logistics-review .logistics-review-source ul{list-style:none;padding:0;display:grid;gap:var(--wb-section-gap)}
.logistics-review .logistics-review-source li{padding-inline:var(--wb-field-gap)}
.logistics-review .logistics-review-anchor{border-inline-start:2px solid #567560;background:#edf4eb}
.logistics-review-actions:has(details[open]){flex-wrap:wrap}
.logistics-review-actions details[open]{flex-basis:100%}
.logistics-review-source{min-width:0;font-size:12px;color:#556a5d}
.logistics-review-source summary{display:list-item;align-content:center;min-height:30px;cursor:pointer}
.logistics-review-source small{display:block;overflow-wrap:anywhere}
.logistics-review-actions button{margin-left:auto;padding:4px 8px;min-height:30px;font-size:13px;white-space:nowrap}
.logistics-review-empty{margin:var(--wb-card-gap) 0 0!important}
.logistics-review button:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:900px){.logistics-review-list{grid-template-columns:1fr}.logistics-review-evidence{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
 .logistics-review :is(.workbench-date-trigger,.logistics-review-source summary,.logistics-review-actions button,.inbox-pages button,.logistics-review-select,[data-delete-logistics],[data-delete-logistics-one]){min-height:44px}
}
@media(max-width:600px){
 .inbox-group-heading:has(.inbox-source-tabs){flex-wrap:wrap;gap:7px}
 .inbox-group-heading:has(.inbox-source-tabs)>div:first-child{flex:1 1 55%}
 .inbox-group-heading:has(.inbox-source-tabs)>span{margin-left:auto;order:1}
 .inbox-source-tabs{order:2;flex-basis:100%;margin:0;gap:6px}
 .inbox-source-tabs button{flex:1;min-height:36px;padding:6px 10px}
 .source-health-grid{grid-template-columns:1fr}
 .source-health-card{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px var(--wb-card-gap)}
 .source-health-card p{margin:0!important}
}
.production-order-route{margin:0 0 8px;padding:8px 10px;border-left:3px solid var(--green);background:#f0f4eb;color:#365046}
.production-order-route strong{font-weight:800}
.task-added-by{display:inline-flex;align-items:baseline;gap:5px;font-size:12px;color:#6d7d74;min-width:0;overflow-wrap:anywhere}
.task-added-by small{font-size:inherit;color:#77837c}.task-added-by strong{font-weight:500;color:#365046}
#workspace .sales-summary-primary>.task-added-by{grid-column:1/-1;justify-self:start}
.process-evidence-card{margin-top:12px;padding:12px;border:1px solid #c8d9ca;border-radius:12px;background:#f7faf6}.process-evidence-card h4{margin:0 0 8px}.process-evidence-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.process-evidence-fields label{display:grid;gap:5px}.process-evidence-fields textarea{width:100%;box-sizing:border-box}.process-evidence-picker{display:inline-flex;position:relative;overflow:hidden;margin-top:8px}.process-evidence-picker input{position:absolute;inset:0;opacity:0;cursor:pointer}.process-evidence-images{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.process-evidence-images span{position:relative;display:inline-block}.process-evidence-images img{width:84px;height:84px;object-fit:cover;border-radius:8px;border:1px solid #c8d9ca}.process-evidence-images button{position:absolute;right:-5px;top:-5px;width:24px;height:24px;padding:0;border-radius:50%;background:#fff;color:#9b3a31}.process-evidence-card details{margin-top:10px}.process-evidence-card details p{padding:8px;border-left:3px solid #7ca184;background:#fff}@media(max-width:560px){.process-evidence-fields{grid-template-columns:1fr}.process-evidence-images img{width:72px;height:72px}}
.customer-match-line{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:8px 0;color:#244b3c}.customer-match-line small{flex-basis:100%;color:#708074}.customer-match-line[data-status="ambiguous"],.customer-match-line[data-status="new_customer"],.customer-match-line[data-status="matching_pending"]{color:#9a5a2b}
.customer-first-workflow{margin:14px 0;padding:16px;border:1px solid #d7e0d2;border-radius:14px;background:#fbfcf8}.customer-first-workflow h3{margin:0 0 12px;color:#153f34}.workflow-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:0;list-style:none}.workflow-steps li{display:grid;grid-template-columns:auto 1fr;gap:6px;align-items:center;padding:8px;border-radius:10px;background:#edf4ea;color:#315b4b}.workflow-steps li>span{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#1e5a49;color:#fff}.workflow-steps li small{grid-column:2;color:#6b7a70}.workflow-steps li[data-status="blocked"]{background:#fff1e8;color:#914d28}.customer-first-workflow dl{display:grid;grid-template-columns:minmax(120px,180px) 1fr;gap:0;margin:14px 0;border:1px solid #e0e6dc;border-radius:10px;overflow:hidden}.customer-first-workflow dt,.customer-first-workflow dd{margin:0;padding:9px 12px;border-bottom:1px solid #e6ebe2}.customer-first-workflow dt{font-weight:650;background:#f1f5ee}.customer-first-workflow dd span{display:block;margin-bottom:5px}.customer-first-workflow dt:last-of-type,.customer-first-workflow dd:last-of-type{border-bottom:0}.customer-first-workflow select,.customer-first-workflow textarea{width:100%;max-width:100%}
@media(max-width:700px){.workflow-steps{grid-template-columns:1fr 1fr}.customer-first-workflow dl{grid-template-columns:1fr}.customer-first-workflow dt{border-bottom:0}.customer-first-workflow dd{padding-top:2px}}
.mobile-reminder-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 12px;border:1px solid #c7d7c4;border-radius:10px;background:#f4f8f1}.mobile-reminder-actions[hidden]{display:none}.mobile-reminder-actions a{text-decoration:none;cursor:pointer}.mobile-reminder-actions small{color:#66776b;flex:1 1 240px}.mobile-reminder-time input{min-width:0;width:100%;box-sizing:border-box}@media(max-width:560px){.mobile-reminder-actions a,.mobile-reminder-actions button{width:100%;box-sizing:border-box;text-align:center;min-height:44px}.mobile-reminder-actions small{flex-basis:100%}}
.tw-urgent{margin:8px 0;padding:10px;border:1px solid #d49348;border-left:4px solid #b45d23;border-radius:10px;background:#fff7ed;color:#593719}
.tw-urgent>strong{display:block;font-size:15px}.tw-urgent>p{margin:3px 0 7px;font-size:12px}
.tw-urgent>div{display:flex;align-items:flex-start;gap:8px;padding:5px 0;border-top:1px solid #ead8c1;font-size:13px;flex-wrap:wrap}
.tw-urgent time,.tw-urgent span{color:#795d3f}.tw-urgent b{font-weight:600;flex:1 1 220px;overflow-wrap:anywhere}

/* Opportunity-list actions stay reachable while the user reviews a long list. */
#workspace #sales-panel:not([hidden]) .sales-detail-actions{
 position:fixed;
 top:max(12px,env(safe-area-inset-top));
 right:max(16px,env(safe-area-inset-right));
 z-index:8;
 display:flex;
 align-items:center;
 flex-wrap:nowrap;
 gap:6px;
 margin:0;
 padding:6px;
 border:1px solid var(--line);
 border-radius:12px;
 background:color-mix(in srgb,var(--green) 4%,white);
 box-shadow:0 8px 24px color-mix(in srgb,var(--green) 16%,transparent);
}
#workspace #sales-panel:not([hidden]) .sales-detail-actions button{
 min-height:36px;
 white-space:nowrap;
}
@media(max-width:700px){
 #workspace #sales-panel:not([hidden]) .sales-detail-actions{
  top:auto;
  right:max(8px,env(safe-area-inset-right));
  bottom:calc(72px + env(safe-area-inset-bottom));
  max-width:calc(100vw - 16px - env(safe-area-inset-left) - env(safe-area-inset-right));
  gap:4px;
  padding:5px;
 }
 #workspace #sales-panel:not([hidden]) .sales-detail-actions button{
  min-height:44px;
  padding-inline:9px;
 }
}

/* Customer profile review stays beside the source conversation. */
.customer-profile-dialog{width:min(720px,calc(100vw - 24px));max-height:min(86vh,820px);overflow:auto;padding:24px;border:1px solid #cfdbcf;border-radius:12px;box-shadow:0 18px 60px #153b3033;background:#fff;color:#173d35}
.customer-profile-dialog::backdrop{background:#102c2899}
.customer-profile-dialog .dialog-head,.customer-profile-dialog .dialog-foot{display:flex;align-items:center;justify-content:space-between;gap:12px}
.customer-profile-dialog .dialog-head h2{margin:0;font-size:24px}
.customer-profile-dialog .dialog-head .close{font-size:28px;line-height:1;min-width:40px;min-height:40px}
.customer-profile-dialog .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}
.customer-profile-dialog .form-grid label{display:grid;gap:7px;font-weight:600;min-width:0}
.customer-profile-dialog .form-grid label:has(textarea){grid-column:1/-1}
.customer-profile-dialog input,.customer-profile-dialog textarea{width:100%;min-width:0;border:1px solid #cbd8ce;border-radius:7px;padding:10px 12px;background:#fff;color:#173d35;font-weight:400;line-height:1.5}
.customer-profile-dialog [role="alert"]{color:#b0473f;min-height:1.2em}
@media(max-width:620px){.customer-profile-dialog{padding:18px}.customer-profile-dialog .form-grid{grid-template-columns:1fr}}

.erp-customer-dialog{width:min(760px,calc(100vw - 24px));max-height:88vh;overflow:auto;padding:22px;border:1px solid #cbd8ce;border-radius:10px;background:#fff;color:#173d35}
.erp-customer-dialog::backdrop{background:#102c2899}
.erp-customer-dialog .dialog-head{display:flex;justify-content:space-between;gap:12px;align-items:start}
.erp-customer-dialog .dialog-head h2{margin:0;font-size:24px}
.erp-customer-dialog .dialog-head p{margin:4px 0 0;color:#5b7267}
.erp-customer-dialog .close{min-width:44px;min-height:44px;font-size:26px}
.erp-customer-dialog .erp-customer-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}
.erp-customer-dialog .erp-customer-fields label{display:grid;gap:4px;min-width:0}
.erp-customer-dialog input,.erp-customer-dialog select{width:100%;min-width:0;min-height:42px;border:1px solid #cbd8ce;border-radius:7px;padding:7px 10px;background:#fff;color:#173d35}
.erp-customer-dialog .erp-customer-actions{display:flex;gap:8px;flex-wrap:wrap}
.erp-customer-dialog .erp-customer-preview{margin-top:16px;border-top:1px solid #cbd8ce;padding-top:14px}
.erp-customer-dialog .erp-customer-preview dl{display:grid;grid-template-columns:max-content 1fr;gap:7px 14px}
.erp-customer-dialog .erp-customer-preview dd{margin:0;min-width:0;overflow-wrap:anywhere}
.erp-customer-dialog .erp-customer-confirm{display:flex;align-items:flex-start;gap:8px;margin:12px 0}
.erp-customer-dialog .erp-customer-confirm input{width:20px;min-width:20px;min-height:20px}
.erp-customer-dialog .erp-customer-password{display:grid;gap:4px;max-width:360px;margin:12px 0}
.erp-customer-dialog .erp-customer-blocked{color:#a44135;font-weight:650}
.erp-customer-dialog [role="alert"]{color:#a44135;min-height:1.2em}
.erp-customer-dialog .erp-customer-success{color:#186342;font-weight:650}
@media(max-width:620px){.erp-customer-dialog{padding:16px}.erp-customer-dialog .erp-customer-fields{grid-template-columns:1fr}}

/* Related chat stays within ten text lines; headings and search remain outside. */
#workspace .sales-collected-chat-body .sales-chat-records{display:flex;flex-direction:column}
#workspace .sales-collected-chat-body .sales-chat-records-scroll{height:15em;line-height:1.5;overflow-y:auto;overscroll-behavior:contain;flex:none;font-size:12px}
.sales-chat-link-dialog{width:640px;max-width:calc(100vw - 24px);box-sizing:border-box}
.sales-chat-link-dialog [data-chat-choices]{max-height:45vh;overflow-y:auto;display:grid;gap:4px;margin-top:8px}
.sales-chat-link-dialog [data-chat-choices] label{display:flex;align-items:center;gap:6px;overflow-wrap:anywhere;min-height:44px}
.sales-chat-link-dialog input[type=search]{width:100%;box-sizing:border-box}

/* Checkbox must not inherit the full-width ordinary input rule. */
.sales-chat-link-dialog [data-chat-choices]{grid-auto-rows:minmax(44px,max-content);align-content:start;min-width:0}
.sales-chat-link-dialog .sales-chat-choice-section{min-width:0}
.sales-chat-link-dialog .sales-chat-choice-section h3{margin:10px 0 4px;padding:5px 6px;background:#edf4ec;color:#315741;font-size:13px;line-height:1.5}
.sales-chat-link-dialog [data-chat-choices] label{width:100%;min-width:0;box-sizing:border-box;margin:0;padding:6px 4px;height:auto;justify-content:flex-start;align-items:flex-start;color:#19352e;font-size:14px;line-height:1.5}
.sales-chat-link-dialog [data-chat-choices] input[type=checkbox]{flex:0 0 18px;width:18px!important;min-width:18px;max-width:18px;height:18px!important;min-height:18px;max-height:18px;margin:2px 0 0;padding:0}
.sales-chat-link-dialog .sales-chat-choice-name{display:flex;flex:1 1 0;min-width:0;align-items:baseline;gap:8px;overflow-wrap:anywhere;white-space:normal}
.sales-chat-link-dialog .sales-chat-choice-name>small{flex:none;color:#60776a;font-size:12px}
.sales-chat-link-dialog .sales-chat-choice-name>span{min-width:0;overflow-wrap:anywhere;white-space:normal}
.sales-chat-link-dialog .sales-chat-choice-name em{display:inline-block;margin-left:8px;color:#6b7e70;font-size:12px;font-style:normal}

#workspace .sales-chat-record-day .sales-chat-source-image{display:inline-flex;position:relative;vertical-align:top;align-items:center;justify-content:center;flex:none;width:96px;min-width:96px;height:96px;min-height:96px;padding:0;margin:2px 6px 2px 0;overflow:hidden;border:1px solid #ccdacf;border-radius:6px;background:#f2f6f0;cursor:zoom-in}
#workspace .sales-chat-record-day .sales-chat-source-image img{display:block;width:100%;height:100%;object-fit:contain}
#workspace .sales-chat-record-day .sales-chat-source-image>span{position:absolute;right:2px;bottom:2px;font-size:10px;line-height:1.4;background:#ffffffdf;border-radius:3px;padding:1px 3px;white-space:nowrap;color:#315741}
#image-description-editor{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin:8px 0 12px}#image-description-editor[hidden]{display:none}#image-description-editor label{flex:1 1 260px}#image-description-editor textarea{display:block;width:100%;min-height:48px;max-height:130px;margin-top:3px;padding:7px;resize:vertical}#image-description-editor button{flex:0 0 auto;min-height:40px}#image-description-status{flex-basis:100%;margin:0;font-size:12px;color:#476e54}#image-description-status:empty{display:none}
.weekly-inspection{margin:12px 0;padding:12px;border:1px solid #cbdccc;border-radius:9px;background:#f7faf6}.weekly-inspection h3{margin:0 0 5px}.weekly-inspection-grid{display:grid;grid-template-columns:max-content minmax(95px,125px) minmax(180px,1fr);gap:6px;align-items:center;margin:9px 0}.weekly-inspection-grid>*{min-width:0}.weekly-inspection-grid input,.weekly-inspection-grid select{width:100%;min-height:38px;padding:5px 7px}.weekly-inspection-head{font-size:12px;color:#61776a}.weekly-inspection-photos>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:5px 0;padding:5px;border:1px solid #e2e9e0;border-radius:6px}.weekly-inspection-photos img{width:58px;height:48px;object-fit:contain}.weekly-inspection-photos span{flex:1 1 120px;overflow-wrap:anywhere}.weekly-inspection-photos label{display:flex;gap:3px;align-items:center}.weekly-inspection-photos input{width:18px;height:18px}.weekly-inspection-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}.weekly-inspection-actions button{min-height:38px;padding:6px 10px}.weekly-inspection [data-weekly-status]{color:#456c54;font-size:12px}@media(max-width:700px){.weekly-inspection-grid{grid-template-columns:minmax(0,1fr) minmax(95px,120px)}.weekly-inspection-grid .weekly-inspection-head:nth-child(3){display:none}.weekly-inspection-grid input[data-note]{grid-column:1/-1;min-height:44px}.weekly-inspection-grid select{min-height:44px}.weekly-inspection-actions button{min-height:44px}}
#weekly-inspection-reminder{display:block;text-align:left;cursor:pointer;font-family:inherit;position:fixed;z-index:100;right:18px;top:76px;left:auto;bottom:auto;width:min(340px,calc(100vw - 36px));padding:12px 15px;border:1px solid #cfaa66;border-left:4px solid #c49a4c;border-radius:8px;background:#fff9e9;color:#263f35;box-shadow:0 7px 20px #16362b29;font-size:13px;line-height:1.5}

/* Keep the editable customer picker within the task editor on narrow screens. */
#editor .editor-basic .saved-choice-field{width:100%;max-width:100%}
#editor .editor-basic .saved-choice-field input{width:0;min-width:0}
@media(max-width:360px){#editor .editor-basic>label:has(#task-customer){grid-column:1/-1}}
.production-requirement{margin:0 0 10px;padding:10px 12px;border:1px solid #d9b45e;border-radius:10px;background:#fff8e8;color:#33453d;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.production-requirement.is-effective{border-color:#8ab99e;background:#f0f8f1}
.production-requirement>div{display:flex;gap:8px;align-items:center;flex-wrap:wrap;min-width:0}.production-requirement>div>span{font-weight:600;color:#8a571b}.production-requirement>div>small{color:#66766c}
.production-requirement-dialog{box-sizing:border-box;width:min(1120px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);padding:0;border:1px solid #b8cebe;border-radius:12px;color:#263f34;background:#fff}
.production-requirement-dialog::backdrop{background:rgba(24,43,34,.56)}
.production-requirement-work{max-height:calc(100vh - 24px);overflow:auto;padding:16px;box-sizing:border-box}
.production-requirement-work>header,.production-requirement-viewer>header{display:flex;justify-content:space-between;align-items:start;gap:12px;position:sticky;top:-16px;background:#fff;z-index:2;padding:4px 0 10px;border-bottom:1px solid #d9e3da}
.production-requirement-work h2{margin:2px 0;font-size:24px}.production-requirement-work header strong{display:block;color:#956522;font-size:13px}
.production-requirement-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin-top:12px}
.production-requirement-columns>section{min-width:0;padding:12px;border:1px solid #d9e3da;border-radius:9px;background:#fafcf9}
.production-requirement-columns h3{margin:0 0 8px;font-size:17px}
.production-requirement-source{padding:9px 0;border-top:1px solid #dce6dd}.production-requirement-source p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;margin:5px 0}.production-requirement-source small{color:#61796c}
.production-requirement-thumb{display:inline-flex;width:118px;height:138px;margin:5px 6px 0 0;padding:3px;border:1px solid #cbd9cd;border-radius:6px;background:#fff;cursor:zoom-in}.production-requirement-thumb img{width:100%;height:100%;object-fit:contain}
.production-clear-pages{padding:10px;margin:9px 0;border:1px solid #91b7a0;border-radius:8px;background:#edf6ee}.production-clear-pages>div{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px}.production-clear-page{display:grid;flex:none;justify-items:center;align-content:start;gap:4px;width:124px;height:auto;min-height:174px;margin:0}.production-clear-page img{height:136px}.production-clear-page span{font-size:11px;line-height:1.3;text-align:center}.production-clear-missing{padding:9px;border:1px solid #d8af57;border-radius:6px;background:#fff8e8;color:#714d16}
.production-requirement-item{padding:9px;margin:8px 0;border:1px solid #dce6dd;border-radius:8px;background:#fff}.production-requirement-item label{display:grid;gap:3px;min-width:0}.production-requirement-item label>span{font-size:13px;font-weight:600}.production-requirement-item textarea{box-sizing:border-box;width:100%;min-height:92px;resize:vertical}.production-requirement-item>div{display:flex;gap:8px;align-items:end;flex-wrap:wrap;margin-top:6px}.production-requirement-item>div label{flex:1 1 155px}.production-requirement-item select{box-sizing:border-box;width:100%;min-height:36px}.production-requirement-editor-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;margin-top:10px}.production-requirement-summary{white-space:pre-wrap;font-weight:600;line-height:1.5}
.production-requirement-dialog .production-requirement-item textarea{display:block;width:100%!important;max-width:100%;height:100px;min-height:100px;field-sizing:fixed}
.production-requirement-viewer{height:min(88vh,920px);box-sizing:border-box;padding:14px;display:flex;flex-direction:column;gap:8px}.production-requirement-viewer[hidden],.production-requirement-work[hidden]{display:none}.production-requirement-viewer>header{top:0;align-items:center;flex-wrap:wrap}.production-requirement-viewer>header>div{display:flex;gap:6px;flex-wrap:wrap}.production-requirement-viewer-stage{flex:1;min-height:0;overflow:auto;display:flex;justify-content:center;align-items:center;background:#eff3ef}.production-requirement-viewer-stage img{display:block;width:min(100%,760px);height:100%;object-fit:contain}.production-requirement-viewer-stage img.native-size{max-width:none;max-height:none;width:auto;height:auto;object-fit:none}.production-requirement-viewer p{margin:0;font-size:13px;color:#805a27}
.production-requirement-viewer-stage:has(img.native-size){justify-content:flex-start;align-items:flex-start}
@media(max-width:720px){.production-requirement-columns{grid-template-columns:1fr}.production-requirement-work{padding:10px}.production-requirement-work>header{top:-10px}.production-requirement-dialog button,.production-requirement-dialog select{min-height:44px}.production-requirement-viewer{height:calc(100vh - 24px);padding:8px}.production-requirement-viewer>header>div{width:100%}}
.production-meta-button,.production-fact-button{border:1px solid #c8d9cb;border-radius:6px;background:#fbfdf9;color:inherit;font:inherit;font-weight:600;cursor:pointer;padding:2px 5px;text-align:left}
.production-meta-button:hover,.production-fact-button:hover{border-color:#27825b;background:#edf7ee}
.production-owner-select{max-width:170px;min-height:30px;border:1px solid #c8d9cb;border-radius:6px;background:#fbfdf9;color:inherit;font:inherit;font-weight:600;cursor:pointer;padding:2px 5px}
.production-fact-dialog{width:min(480px,calc(100vw - 24px));border:1px solid #b8cebe;border-radius:12px;padding:20px}
.production-fact-dialog>div{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}

/* Source-review dialogs: fit the task, preserve mobile touch targets. */
#party-review-dialog,#source-speaker-dialog{width:min(620px,calc(100vw - 24px));max-width:calc(100vw - 24px);box-sizing:border-box}
#party-review-dialog form,#source-speaker-dialog form{min-width:0}
#party-review-dialog input,#party-review-dialog select,#party-review-dialog textarea,#source-speaker-dialog input,#source-speaker-dialog textarea{max-width:100%;min-width:0;box-sizing:border-box}
#party-review-dialog input[type=checkbox]{width:20px;height:20px;min-height:20px;margin-right:6px}
#party-review-dialog [data-role-confirm]{grid-column:1/-1}
#party-review-dialog [data-role-confirm][hidden]{display:none}
#party-review-dialog .dialog-foot,#source-speaker-dialog .dialog-foot{display:flex;flex-wrap:wrap;gap:6px}
/* finesse · component: searchable-party-picker · register=product
 * states: default · hover · focus-visible · active · disabled · loading · error · success · tokens: inherited */
#party-review-dialog .party-picker{grid-column:1/-1;display:grid;gap:5px;min-width:0}
#party-review-dialog .party-picker-label{font-weight:700}
#party-review-dialog .party-picker-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center}
#party-review-dialog .party-picker-search input{width:100%;min-height:44px}
#party-review-dialog .party-picker-search button{min-height:44px;white-space:nowrap}
#party-review-dialog .party-picker-results{display:grid;gap:4px;max-height:min(42vh,360px);overflow:auto;padding:4px;border:1px solid var(--line);border-radius:8px;background:color-mix(in srgb,var(--green) 4%,transparent)}
#party-review-dialog .party-picker-results>button{display:grid;gap:2px;width:100%;min-height:48px;padding:7px 10px;text-align:left;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--green);outline:2px solid transparent;outline-offset:1px}
#party-review-dialog .party-picker-results>button strong,#party-review-dialog .party-picker-results>button span{min-width:0;overflow-wrap:anywhere}
#party-review-dialog .party-picker-results>button span{font-size:12px;color:var(--muted)}
@media(hover:hover){#party-review-dialog .party-picker-results>button:hover{border-color:color-mix(in srgb,var(--green) 45%,transparent);background:color-mix(in srgb,var(--green) 7%,transparent)}}
#party-review-dialog .party-picker-results>button:focus-visible,#party-review-dialog .party-picker-results>button.is-active{outline-color:var(--green);background:color-mix(in srgb,var(--green) 10%,transparent)}
#party-review-dialog .party-picker-results>button:active{transform:translateY(1px)}
#party-review-dialog .party-picker-results>button[aria-selected=true]{border-color:var(--green);background:color-mix(in srgb,var(--green) 12%,transparent)}
#party-review-dialog .party-picker-results>button:disabled,#party-review-dialog .party-picker-search button:disabled{opacity:.5;cursor:not-allowed}
#party-review-dialog [data-party-picker-status]{min-height:1.5em;color:var(--muted)}
#party-review-dialog [data-party-picker-status][data-state=success]{color:var(--green);font-weight:700}
#party-review-dialog [data-party-picker-status][data-state=error]{color:inherit;font-weight:700}
@media(max-width:700px){#party-review-dialog button,#source-speaker-dialog button,#party-review-dialog select,#source-speaker-dialog input{min-height:44px}#party-review-dialog [data-role-confirm] label{min-height:44px}#party-review-dialog .party-picker-search{grid-template-columns:1fr}#party-review-dialog .party-picker-search button{width:100%}}

/* Shared review visibility and responsibility remain independent. */
.inbox-scope-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.inbox-scope-tabs button{min-height:44px}.candidate-readonly-dialog{width:min(960px,calc(100vw - 24px));max-height:90vh;overflow:auto}.candidate-readonly-dialog .wb-card{min-width:0;overflow-wrap:anywhere}
/* 数量／单价仍使用 number 类型，隐藏浏览器上下三角，保留键盘输入、步进与校验。 */
#sales-panel input[type="number"]::-webkit-inner-spin-button,
#sales-panel input[type="number"]::-webkit-outer-spin-button,
#sales-dialog input[type="number"]::-webkit-inner-spin-button,
#sales-dialog input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#sales-panel input[type="number"],
#sales-dialog input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
/* 机会清单产品图片统一展示尺寸；原图仍由点击后的预览接口提供。 */
#workspace .sales-products-disclosure{--sales-product-thumb-width:84px;--sales-product-thumb-height:72px}
#workspace .sales-product-thumb-button,#workspace .sales-product-thumb{width:84px;height:72px;object-fit:contain}
#workspace .sales-chat-more{margin:8px 0;font-size:12px}
