/* 易派遣：延續舊版綠色、暖色邊框與卡片語彙，統一桌面及行動版。 */
:root{--brand:#3e8d7a;--brand-deep:#215e50;--brand-soft:#edf6f2;--legacy-border:#d8bfb1;--login-tint:#fbffe3;--ink:#20332f;--muted:#6b7e76;--line:#e1e9e4;--canvas:#f5f7f5;--surface:#fff;--radius:14px;--shadow:0 4px 20px #193b2b05;font-family:"Noto Sans TC","Microsoft JhengHei",sans-serif;color:var(--ink);background:var(--canvas);font-size:14px;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}a{color:var(--brand-deep);text-decoration:none}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button[hidden],[hidden]{display:none!important}.icon{width:20px;height:20px;flex:none;vertical-align:middle}h1,h2,h3,p{margin:0}h1{font-size:30px;line-height:1.4;letter-spacing:-.6px;font-weight:750}h2{font-size:17px;line-height:1.5}h3{font-size:15px;line-height:1.5}small{font-size:12px}input,select,textarea{width:100%;max-width:100%;min-height:44px;border:1px solid #d4dfd8;border-radius:8px;padding:11px 12px;color:var(--ink);background:#fff;line-height:1.5;transition:border-color .15s,box-shadow .15s}input::placeholder,textarea::placeholder{color:#93a199}select{padding-right:24px}textarea{min-height:120px;resize:vertical}input:read-only{background:#f5f7f5;color:#687c72}input:focus,select:focus,textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px #3e8d7a13;outline:0}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #b97a1a;outline-offset:4px}label{display:grid;gap:8px;font-weight:550;font-size:13px;min-width:0}button{border:0}summary{cursor:pointer}.muted,.field-hint{color:var(--muted)}.field-hint{font-size:12px;line-height:1.9;margin:12px 0}.eyebrow{font-size:11px;letter-spacing:1.5px;font-weight:700;color:var(--brand-deep);margin-bottom:8px}.required-mark{color:#ab4d36}.preserve-lines{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9}.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;left:16px;top:-70px;z-index:100;background:var(--brand-deep);color:white;padding:14px}.skip-link:focus{top:10px}
.button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 18px;border-radius:8px;border:1px solid transparent;font-weight:650;line-height:1.5;white-space:nowrap;transition:background .15s,transform .15s}.button.primary{background:var(--brand-deep);color:#fff}.button.primary:hover{background:#174c40}.button.secondary{background:#fff;border-color:#d8e2db;color:#425d50}.button.secondary:hover{background:var(--brand-soft)}.text-button{background:transparent;color:var(--brand-deep);font-weight:650;padding:8px 0;min-height:40px}.icon-button{display:grid;place-items:center;min-width:40px;min-height:40px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--muted)}.icon-button:hover{background:var(--brand-soft);color:var(--brand-deep)}
/* 共用工作空間 */
.sidebar{position:fixed;inset:0 auto 0 0;width:232px;background:var(--surface);border-right:1px solid var(--line);padding:28px 20px 20px;display:flex;flex-direction:column;z-index:30}.brand{display:flex;align-items:center;gap:10px;color:var(--ink)}.brand-logo{width:46px;height:46px;border:1px solid #e4ece7;background:white;border-radius:12px;display:grid;place-items:center;overflow:hidden;flex:none}.brand-logo img{object-fit:contain;width:44px;height:44px}.brand-wordmark{font-size:25px;font-weight:800;letter-spacing:3px;line-height:1.2}.brand-wordmark small{display:block;letter-spacing:.5px;font-size:9px;font-weight:500;color:var(--muted);margin-top:7px}.nav-label{font-size:10px;letter-spacing:1.5px;color:#85968c;margin:42px 14px 14px;font-weight:600}.sidebar nav{display:grid;gap:7px}.nav-link{display:flex;align-items:center;gap:12px;padding:13px 14px;min-height:46px;border-radius:9px;color:#62776b;font-size:13px;font-weight:600}.nav-link:hover{background:#f4f8f5}.nav-link.active{color:var(--brand-deep);background:var(--brand-soft)}.sidebar-guide{margin-top:auto;background:#f6f8f4;border:1px solid #e6ece1;border-radius:12px;padding:18px 15px}.guide-symbol{display:block;color:var(--brand);margin-bottom:12px}.sidebar-guide strong{font-size:12px}.sidebar-guide p{font-size:11px;color:var(--muted);line-height:1.9;margin-top:8px}.sidebar-bottom{font-size:10px;color:#83918a;margin-top:22px;display:flex;flex-wrap:wrap;align-items:center;gap:6px}.connection-dot{width:5px;height:5px;border-radius:50%;background:var(--brand)}.version-label{margin-left:auto;color:#637a6c}.app-main{margin-left:232px;min-width:0}.topbar{height:80px;padding:0 36px;display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line);background:#ffffffd9}.breadcrumb{display:flex;gap:13px;align-items:center;font-size:12px;color:#84928a}.breadcrumb strong{font-weight:550;color:#486052}.breadcrumb>span{color:#c4cec7}.topbar-actions{display:flex;align-items:center;gap:14px}.today{display:flex;align-items:center;gap:7px;font-size:11px;color:#7f9086;margin-right:12px}.today .icon{width:16px}.mode-label{font-size:10px;color:#527461;border:1px solid #dce7df;border-radius:5px;padding:4px 7px}.user-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#ecf2e9;color:var(--brand-deep)}.user-avatar .icon{width:17px;height:17px}.user-meta{display:grid;gap:3px;max-width:140px}.user-meta strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-meta small{font-size:10px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar form{margin:0}.mobile-brand,.mobile-nav{display:none}.workspace{max-width:1440px;margin:0 auto;padding:34px 36px 48px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:28px}.page-heading>div{min-width:0}.page-heading h1{overflow-wrap:anywhere}.page-heading p:not(.eyebrow){font-size:13px;line-height:1.8;color:var(--muted);margin-top:10px}.heading-actions{display:flex;align-items:center;gap:16px;flex:none}.heading-company{display:inline-block;margin-left:12px;font-size:10px;letter-spacing:0;color:#6c7c70;background:#eaf0e9;padding:3px 7px;border-radius:4px}.inline-divider{margin:0 10px;color:#bdc9c0}.workspace-footer{display:flex;justify-content:space-between;padding:0 36px 25px;font-size:10px;color:#91a094}.workspace-footer a{color:#71887a}.workspace-footer .icon{width:13px;height:13px;margin-left:3px}.back-link{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:#768d7e;margin-bottom:23px;min-height:30px}.back-link .icon{width:16px;height:16px}
/* 工單總覽 */
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:25px}.stat-card{display:flex;align-items:flex-start;gap:15px;background:white;border:1px solid var(--line);border-radius:var(--radius);padding:21px 18px;box-shadow:var(--shadow)}.stat-icon{display:grid;place-items:center;width:42px;height:42px;background:#edf5f1;color:var(--brand);border-radius:11px;flex:none}.stat-icon.amber{background:#fff6e6;color:#b18028}.stat-icon.green{background:#edf7ef;color:#4c845b}.stat-icon.gray{background:#f1f3f2;color:#8c9b92}.stat-card p{font-size:12px;color:#7c8b82;margin-bottom:6px}.stat-card strong{font-size:28px;line-height:1.2;font-weight:700;font-variant-numeric:tabular-nums}.stat-card small{display:block;font-size:10px;color:#99a49d;margin-top:8px}.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow);margin-bottom:22px;scroll-margin-top:25px}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:23px}.panel-heading h2{display:flex;align-items:center;gap:9px;font-size:15px}.panel-heading h2>.icon{width:18px;height:18px;color:var(--brand)}.panel-heading p{font-size:11px;line-height:1.8;color:var(--muted);margin-top:5px}.search-panel{padding:22px 24px}.search-panel .panel-heading{margin-bottom:20px}.search-primary{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(0,.8fr) auto;gap:16px;align-items:end}.search-primary .button{height:44px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 24px}.advanced-filters{border-top:1px solid #edf1ed;margin-top:20px;padding-top:15px}.advanced-filters summary{font-size:11px;font-weight:600;color:#728a7a;min-height:26px}.advanced-filters .form-grid{margin-top:18px;grid-template-columns:repeat(3,minmax(0,1fr))}.results-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:29px 0 17px}.results-toolbar h2{font-size:17px;display:flex;gap:9px;align-items:center}.count-badge{display:inline-flex;align-items:center;justify-content:center;background:#e8efea;color:#597763;min-width:25px;height:23px;border-radius:6px;font-size:10px;font-weight:650;padding:0 6px}.results-toolbar p{font-size:11px;color:var(--muted);margin-top:7px;min-height:18px}.sort-label{display:flex;align-items:center;gap:10px;font-size:11px;color:#819087;flex:none}.sort-label select{width:auto;min-height:36px;font-size:11px;padding:7px 24px 7px 11px;background:transparent}.work-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.work-card{display:flex;flex-direction:column;gap:0;min-width:0;border-radius:var(--radius);border:1px solid var(--line);background:white;padding:23px 23px 0;color:var(--ink);box-shadow:var(--shadow);transition:border-color .15s,transform .15s,box-shadow .15s}.work-card:hover{transform:translateY(-2px);border-color:#93b7a6;box-shadow:0 8px 24px #215e500c}.card-top{display:flex;justify-content:space-between;gap:12px;align-items:center}.card-customer{font-size:11px;color:#82958a;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.status-pill{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:5px;font-size:10px;font-weight:600;line-height:1.2;white-space:nowrap;flex:none}.status-pill>span{width:5px;height:5px;border-radius:50%;background:currentColor}.status-pill.pending{background:#fff4df;color:#92671b}.status-pill.done{background:#e9f5ed;color:#447955}.status-pill.void{background:#f0f2f1;color:#78877e}.work-card h3{font-size:18px;letter-spacing:.2px;margin:16px 0 10px;overflow-wrap:anywhere}.card-tag{display:inline-block;align-self:flex-start;font-size:10px;color:#63836f;background:#f3f7f3;padding:4px 8px;border-radius:4px}.card-metadata{display:grid;grid-template-columns:1fr 1fr;gap:12px 10px;margin:21px 0;color:#7e9084;font-size:11px}.card-metadata span{display:flex;align-items:center;gap:6px;min-width:0;overflow-wrap:anywhere}.card-metadata .icon{width:14px;height:14px;color:#9cae9f}.card-bottom{margin-top:auto;padding:14px 0;border-top:1px solid #eef2ee;display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#a0aca3}.card-bottom b{display:flex;gap:6px;align-items:center;font-size:11px;font-weight:600;color:var(--brand-deep)}.card-bottom .icon{width:15px;height:15px}.empty-state{padding:52px 20px;text-align:center;background:white;border:1px dashed #d9e3db;border-radius:var(--radius)}.empty-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:15px;background:var(--brand-soft);color:var(--brand);margin:0 auto 18px}.empty-icon .icon{width:25px;height:25px}.empty-state h3{margin-bottom:9px}.empty-state p{font-size:12px;color:var(--muted);line-height:1.9}.loading-card{height:224px;border-radius:var(--radius);border:1px solid var(--line);background:linear-gradient(110deg,#fff 10%,#f0f4ef 40%,#fff 70%);background-size:200% 100%;animation:shimmer 1.6s linear infinite}.pagination{margin:25px 0;display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted)}.pagination>div{display:flex;gap:8px}.pagination .button{font-size:11px;min-height:36px;padding:8px 12px}@keyframes shimmer{to{background-position:-200% 0}}
/* 明細與作業 */
.section-nav{display:flex;align-items:center;gap:25px;overflow:auto;border-bottom:1px solid var(--line);margin-bottom:25px}.section-nav a{display:flex;align-items:center;gap:8px;color:#6b8273;font-size:12px;white-space:nowrap;padding:14px 0;border-bottom:2px solid transparent}.section-nav a:hover{color:var(--brand-deep);border-bottom-color:var(--brand)}.section-nav span{background:#e7ede7;border-radius:4px;padding:2px 5px;font-size:10px}.detail-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr);gap:22px;align-items:start}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 20px;margin:0}.detail-grid>div{min-width:0}.detail-grid dt{font-size:11px;color:#8a9b8e;margin-bottom:8px}.detail-grid dd{margin:0;font-size:13px;line-height:1.8;overflow-wrap:anywhere;white-space:pre-wrap}.cost-panel{border-top:3px solid var(--legacy-border)}.cost-panel>.eyebrow{margin-bottom:16px}.total-number{display:block;font-size:38px;font-weight:750;letter-spacing:-1px;color:var(--brand-deep);overflow-wrap:anywhere}.cost-panel>.muted{font-size:11px;margin-top:6px}.cost-formula{display:flex;align-items:center;justify-content:space-between;background:#f6f8f3;padding:17px 20px;border-radius:9px;margin:25px 0}.cost-formula small{display:block;color:#859582;font-size:10px;margin-bottom:8px}.cost-formula b{font-size:17px;font-weight:650}.cost-panel .detail-grid{gap:19px}.memo-panel h2{display:flex;align-items:center;gap:8px;font-size:14px;margin-bottom:12px}.memo-panel h2 .icon{color:var(--brand);width:17px}.memo-panel p{font-size:13px;color:#6a8070}.people-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.person-card{display:flex;align-items:center;gap:12px;background:#f9faf7;border:1px solid #e9eee5;border-radius:10px;padding:17px;min-width:0}.person-avatar{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;color:#5b7962;background:#e8eee1;font-weight:600;flex:none}.person-card h3{font-size:13px;overflow-wrap:anywhere}.person-card p{font-size:11px;margin:4px 0;color:#87977f}.person-card small{font-size:10px;color:#9aa68f}.section-empty{color:#8d9c90;font-size:12px;line-height:1.9;padding:16px 0;grid-column:1/-1;list-style:none}.action-disclosure{border-top:1px solid #ecf0e9;margin-top:22px;padding-top:18px}.action-disclosure summary{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:600;color:var(--brand-deep);min-height:32px;list-style:none}.action-disclosure summary:after{content:"展開";font-size:10px;font-weight:400;color:#94a18f;margin-left:auto}.action-disclosure[open] summary:after{content:"收合"}.employee-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0 20px}.employee-option{display:flex;align-items:center;gap:10px;padding:14px;border:1px solid var(--line);border-radius:8px;font-size:12px;font-weight:450;line-height:1.7}.employee-option:has(input:checked){background:var(--brand-soft);border-color:#94b4a2}.employee-option.assigned{background:#f6f7f4;color:#9aa594}.employee-option input{width:16px;min-height:16px;accent-color:var(--brand-deep);flex:none}.employee-option small{margin-left:auto;white-space:nowrap;font-size:10px}.timeline{list-style:none;margin:0;padding:0}.timeline-item{position:relative;border-left:1px solid #dce7de;padding:0 0 25px 24px;margin-left:5px}.timeline-item:last-child{padding-bottom:3px}.timeline-dot{position:absolute;left:-5px;top:4px;width:9px;height:9px;border-radius:50%;background:#88ab91;border:2px solid white;box-shadow:0 0 0 1px #b3cdb7}.timeline-meta{display:flex;align-items:center;gap:12px;margin-bottom:10px}.timeline-meta strong{font-size:12px;font-weight:600}.timeline-meta time{font-size:10px;color:#95a18f}.timeline-item p{font-size:13px;color:#6c806f}.note-compose{border-top:1px solid #edf1e9;margin-top:26px;padding-top:22px}.compose-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:14px}.compose-footer small{color:#91a087;font-size:10px}.form-message{min-height:20px;font-size:12px;line-height:1.8;overflow-wrap:anywhere}.form-message.error{color:#a74f3c}.form-message.success{color:var(--brand-deep)}.photo-records{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.photo-record{display:flex;align-items:center;gap:15px;padding:16px;border:1px solid var(--line);border-radius:10px;min-width:0}.photo-record>div{min-width:0}.photo-record h3{font-size:12px;overflow-wrap:anywhere}.photo-record p{font-size:10px;color:var(--muted);margin:7px 0}.photo-record small{font-size:10px;color:#8c9d90}.photo-placeholder{display:grid;place-items:center;width:48px;height:48px;background:#f1f5ee;border-radius:8px;color:#94ad96;flex:none}
/* 分組工單表單 */
.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:24px;align-items:start}.editor-sections{min-width:0}.editor-sections .panel{padding:25px}.section-number{font-size:10px;color:var(--brand);background:var(--brand-soft);width:27px;height:27px;border-radius:7px;display:inline-grid;place-items:center;margin-right:2px}.editor-summary{position:sticky;top:24px;border-top:3px solid var(--legacy-border)}.editor-summary label{margin-top:22px}.editor-summary .field-hint{margin:0}.editor-summary .total-input{font-size:27px;font-weight:750;color:var(--brand-deep);min-height:66px;letter-spacing:-.5px;background:var(--brand-soft);border-color:#dce8dd}.summary-note{display:flex;align-items:flex-start;gap:8px;margin-top:22px;padding-top:18px;border-top:1px solid #edf0e8;color:#8d9d87}.summary-note .icon{width:14px;height:14px;margin-top:3px}.summary-note p{font-size:10px;line-height:1.9}.save-bar{position:sticky;bottom:16px;border:1px solid #d9e4d9;border-radius:12px;padding:16px 21px;background:#ffffffed;backdrop-filter:blur(12px);box-shadow:0 -3px 20px #214f3210;display:flex;align-items:center;justify-content:space-between;gap:18px;z-index:10}.save-bar>div{display:flex;gap:10px}.save-bar .form-message{color:#81917e;font-size:11px}.save-bar .form-message.error{color:#a74f3c}.inline-alert{padding:13px 15px;border-radius:8px;font-size:12px;line-height:1.8;margin:20px 0}.inline-alert.error{background:#fff1ec;color:#a24e39;border:1px solid #f3d7ca}
/* 登入：沿用盾牌 Logo，將舊版左右結構轉為品牌故事與工作入口 */
.login-layout{min-height:100dvh;display:grid;grid-template-columns:1.05fr 1fr;background:#fff}.login-story{position:relative;display:flex;flex-direction:column;overflow:hidden;background:#205f50;color:white;padding:42px 60px}.login-story:before{content:"";position:absolute;width:570px;height:570px;border:1px solid #ffffff09;border-radius:50%;left:-170px;bottom:-250px;pointer-events:none}.login-story:after{content:"";position:absolute;width:720px;height:720px;border:1px solid #ffffff09;border-radius:50%;left:-245px;bottom:-325px;pointer-events:none}.login-story .brand{color:#fff}.login-story .brand-wordmark small{color:#bed6c9}.login-story .brand-logo{background:white;border:0}.story-content{max-width:480px;margin:auto 0;padding:70px 0 45px;position:relative;z-index:1}.story-content .eyebrow{font-size:11px;color:#b4d2be;font-weight:500;letter-spacing:2px}.story-content h1{font-size:43px;line-height:1.65;letter-spacing:1px;margin:20px 0}.story-content h1>span{color:#d8c6a2}.story-description{font-size:13px;color:#bdd4c6;line-height:2.1}.workflow-illustration{margin-top:40px;border-radius:14px;background:#ffffff08;border:1px solid #ffffff15;padding:5px 24px}.workflow-item{display:flex;align-items:center;gap:17px;padding:20px 0;border-bottom:1px solid #ffffff12}.workflow-item:last-child{border-bottom:0}.workflow-item>.icon{width:25px;height:25px;color:#b4d3b9}.workflow-item>span{font-size:13px;font-weight:500}.workflow-item small{display:block;color:#a5c2ae;font-size:10px;font-weight:400;margin-top:6px}.workflow-item b{margin-left:auto;font-size:10px;color:#719e84;font-weight:400}.story-footer{position:relative;font-size:10px;color:#93b8a0;z-index:1}.login-form-side{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:50px 40px;position:relative;background:linear-gradient(140deg,#fff 60%,#f7faf3)}.login-card{width:100%;max-width:360px}.login-welcome{color:var(--brand);font-size:12px;letter-spacing:1px}.login-card h2{font-size:26px;letter-spacing:-.4px;margin:12px 0}.login-card>.muted{font-size:12px;line-height:1.8;margin:0 0 37px}.login-card form>label{font-size:12px;margin:21px 0 9px}.input-with-icon{position:relative}.input-with-icon>.icon{position:absolute;top:15px;left:14px;width:18px;height:18px;color:#94a797}.input-with-icon input{padding:13px 14px 13px 43px;min-height:49px;background:#fbfcfa}.password-field input{padding-right:65px}.password-toggle{position:absolute;right:9px;top:7px;height:35px;min-width:45px;border-radius:5px;background:transparent;color:#7c9583;font-size:11px}.password-toggle:hover{background:#edf4e9}.login-submit{width:100%;margin-top:28px;min-height:49px}.login-submit .icon{margin-left:auto}.login-submit{padding-left:22px;padding-right:20px}.login-help{border-top:1px solid #e9efe6;margin-top:30px;padding-top:23px;display:flex;align-items:flex-start;gap:10px;color:#8da18e}.login-help>.icon{width:16px;height:16px;margin-top:2px}.login-help p{font-size:11px;line-height:1.9}.login-help span{font-size:10px;color:#a3ae9b}.login-copyright{position:absolute;bottom:32px;font-size:10px;color:#a5b19e}
/* 響應式：保留行動版底部導覽，內容自然捲動，不鎖住 viewport */
@media(min-width:1600px){.workspace{padding-top:42px}.work-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.login-story{padding-left:90px;padding-right:90px}}
@media(max-width:1200px){.sidebar{width:205px;padding-left:15px;padding-right:15px}.app-main{margin-left:205px}.workspace{padding:27px 25px 40px}.topbar{padding:0 25px}.stats-grid{gap:12px}.stat-card{padding:18px 14px;gap:12px}.stat-icon{width:34px;height:34px;border-radius:9px}.stat-card strong{font-size:25px}.today{display:none}.editor-layout{grid-template-columns:minmax(0,1fr) 250px;gap:18px}.editor-sections .form-grid{gap:18px 15px}.detail-layout{grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr)}.people-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.login-story{padding:35px 40px}.story-content h1{font-size:36px}.login-form-side{padding:40px 35px}}
@media(max-width:1000px){.search-primary{grid-template-columns:repeat(3,minmax(0,1fr))}.search-primary>.button{grid-column:1/-1;justify-self:end}.editor-layout{grid-template-columns:1fr}.editor-summary{position:static}.editor-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 20px}.editor-summary .panel-heading,.editor-summary>.field-hint,.summary-note{grid-column:1/-1}.editor-summary .panel-heading{margin-bottom:9px}.detail-layout{grid-template-columns:1fr}.cost-panel .detail-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.cost-formula{max-width:330px}.advanced-filters .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-card{gap:8px}.stat-icon{width:30px;height:30px}.stat-icon .icon{width:17px}.stat-card small{font-size:9px}.stat-card strong{font-size:22px}.work-card{padding:20px 18px 0}.brand-wordmark{font-size:23px}}
@media(max-width:760px){.sidebar{display:none}.app-main{margin-left:0}.topbar{height:65px;padding:0 20px;gap:10px}.mobile-brand{display:block;font-weight:800;letter-spacing:2px;font-size:20px;color:var(--brand-deep)}.breadcrumb{display:none}.topbar-actions{gap:10px}.mode-label{font-size:9px}.user-avatar{display:none}.user-meta{max-width:115px}.user-meta strong{font-size:11px}.user-meta small{font-size:9px}.icon-button{min-width:35px;min-height:35px}.icon-button .icon{width:17px}.workspace{padding:26px 20px 32px}.page-heading{align-items:flex-start;gap:14px;margin-bottom:23px}h1{font-size:26px}.page-heading p:not(.eyebrow){font-size:12px;margin-top:7px}.page-heading .eyebrow{font-size:10px}.heading-actions{gap:9px}.heading-actions .button{font-size:11px;padding:10px 13px;min-height:40px}.heading-actions .icon{width:16px}.stats-grid{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:20px}.stat-card{gap:15px;padding:18px}.stat-icon{width:35px;height:35px}.stat-card strong{font-size:26px}.stat-card small{font-size:9px;margin-top:6px}.panel{padding:20px;border-radius:12px;margin-bottom:18px}.search-primary{grid-template-columns:1fr 1fr;gap:16px 12px}.search-primary>.button{grid-column:auto;justify-self:stretch}.search-primary label{font-size:11px}.panel-heading h2{font-size:14px}.panel-heading p{font-size:10px}.results-toolbar{margin-top:25px}.sort-label{font-size:10px;gap:5px}.sort-label select{font-size:10px;max-width:120px}.work-grid{gap:14px}.work-card h3{font-size:16px}.card-metadata{grid-template-columns:1fr;gap:10px;margin:18px 0}.card-customer{font-size:10px}.card-bottom{font-size:9px}.card-bottom b{font-size:10px}.workspace-footer{padding:0 20px 90px;font-size:9px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;padding:9px 20px calc(9px + env(safe-area-inset-bottom));background:#ffffffef;border-top:1px solid #e0e9df;backdrop-filter:blur(15px);z-index:35;justify-content:space-around;gap:30px}.mobile-nav a{display:flex;align-items:center;gap:8px;font-size:11px;min-height:36px;color:var(--brand-deep);font-weight:600}.mobile-nav .icon{width:18px;height:18px}.save-bar{bottom:76px;padding:13px 15px;gap:10px}.save-bar .form-message{font-size:10px}.save-bar .button{font-size:11px;min-height:40px;padding:9px 13px}.editor-summary{padding:20px}.editor-sections .panel{padding:20px}.form-grid{gap:19px 16px}.cost-panel .detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.section-nav{gap:21px}.section-nav a{font-size:11px}.people-grid{gap:10px}.person-card{padding:13px;gap:10px}.person-avatar{width:32px;height:32px;font-size:12px}.photo-records{grid-template-columns:1fr}.login-layout{grid-template-columns:1fr}.login-story{padding:26px 25px 28px;min-height:0}.login-story .brand-logo{width:38px;height:38px;border-radius:9px}.login-story .brand-logo img{width:36px;height:36px}.login-story .brand-wordmark{font-size:22px}.login-story .brand-wordmark small{font-size:8px;margin-top:6px}.story-content{padding:30px 0 0;max-width:none;margin:0}.story-content .eyebrow{display:none}.story-content h1{font-size:28px;line-height:1.65;margin:0 0 12px;letter-spacing:1px}.story-content h1 br{display:none}.story-description{font-size:11px;line-height:1.9}.story-description br{display:none}.workflow-illustration,.story-footer{display:none}.login-form-side{padding:36px 25px 65px;justify-content:flex-start}.login-card{max-width:420px}.login-card h2{font-size:23px}.login-card>.muted{margin-bottom:26px;font-size:11px}.login-copyright{position:static;margin-top:35px;font-size:9px}.login-card form>label{margin-top:18px}.login-help{margin-top:25px;padding-top:19px}.login-submit{margin-top:24px}}
@media(max-width:480px){.workspace{padding-left:16px;padding-right:16px}.topbar{padding-left:16px;padding-right:16px}.mode-label{display:none}.page-heading{flex-wrap:wrap}.page-heading:has(.heading-actions .status-pill) .heading-actions{width:100%;justify-content:space-between}.stats-grid{gap:10px}.stat-card{padding:16px 13px;gap:11px}.stat-card p{font-size:11px}.stat-card strong{font-size:24px}.work-grid{grid-template-columns:1fr}.work-card{padding:21px 20px 0}.work-card h3{font-size:18px}.card-metadata{grid-template-columns:1fr 1fr}.search-primary{grid-template-columns:1fr}.search-primary>.button{margin-top:2px}.advanced-filters .form-grid,.form-grid{grid-template-columns:1fr}.panel{padding:18px}.results-toolbar{gap:12px}.results-toolbar h2{font-size:16px}.results-toolbar p{font-size:10px}.sort-label{gap:5px}.sort-label select{max-width:105px;padding-right:15px}.sort-label{font-size:0}.sort-label select{font-size:10px}.detail-grid{gap:22px 15px}.detail-grid dd{font-size:12px}.people-grid,.employee-options{grid-template-columns:1fr}.person-card{padding:15px}.compose-footer{align-items:flex-start;flex-direction:column;gap:12px}.compose-footer .button{align-self:flex-end}.editor-summary{grid-template-columns:1fr}.editor-summary label{margin-top:18px}.save-bar{align-items:stretch;flex-direction:column;gap:10px}.save-bar>div{justify-content:flex-end}.save-bar .button{flex:1}.save-bar .form-message{line-height:1.6;min-height:14px}.summary-note{margin-top:18px}.pagination{font-size:10px;gap:10px}.pagination .button{padding:7px 10px;font-size:10px}.login-story{padding-bottom:25px}.story-content h1{font-size:25px}.workspace-footer{gap:10px}.workspace-footer>span{max-width:180px}.heading-company{margin-left:7px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.stats-caption{font-size:10px;color:#89998d;margin:-10px 0 12px}.results-toolbar .error{color:#a74f3c}

/* 重要次要文字提高對比，避免以淡灰小字承載必要資訊。 */
.field-hint,.stat-card p,.stat-card small,.card-customer,.card-metadata,.card-bottom,.panel-heading p,.results-toolbar p,.sort-label,.detail-grid dt,.person-card p,.person-card small,.timeline-meta time,.photo-record p,.photo-record small,.compose-footer small,.summary-note,.stats-caption,.workspace-footer,.sidebar-bottom,.version-label,.save-bar .form-message,.breadcrumb,.today,.user-meta small{color:#64766a}
.login-welcome{color:var(--brand-deep)}.login-help,.login-help span,.login-copyright{color:#64766a}.story-footer{color:#bed6c7}.section-empty{color:#6c7d70}.login-card input::placeholder,input::placeholder,textarea::placeholder{color:#6d7d72}

/* 桌面工作台減少首屏留白，讓工單卡片更早進入視野。 */
@media(min-width:761px){.topbar{height:68px}.workspace{padding-top:26px}.page-heading{margin-bottom:20px}.page-heading h1{font-size:28px;line-height:1.35}.page-heading .eyebrow{margin-bottom:6px}.page-heading p:not(.eyebrow){margin-top:6px}.stats-grid{margin-bottom:20px}.stat-card{padding-top:14px;padding-bottom:14px}.stat-card strong{font-size:26px}.stat-card small{margin-top:6px}.stat-icon{width:38px;height:38px}.search-panel{padding:18px 22px}.search-panel .panel-heading{margin-bottom:14px}.search-panel .panel-heading p{display:none}.search-primary label{gap:6px}.advanced-filters{margin-top:14px;padding-top:10px}.advanced-filters summary{min-height:22px}.results-toolbar{margin-top:22px}}
/* 避免 iOS 在較小的表單字級下自動縮放。 */
@media(max-width:760px){input,select,textarea{font-size:16px}}

.filter-actions{display:flex;align-items:center;gap:18px}.filter-toggle{display:none}
@media(max-width:760px){.filter-toggle{display:inline-flex}.search-panel.mobile-collapsed #search{display:none}.search-panel.mobile-collapsed .panel-heading{margin-bottom:0}.search-panel .panel-heading p{display:none}.filter-actions{gap:14px}.filter-actions .text-button{font-size:11px}.search-panel .panel-heading{gap:10px}.search-panel .panel-heading h2{font-size:13px}.search-panel .panel-heading h2>.icon{width:16px}}

.demo-login-note{padding:15px 17px;margin:0 0 22px;background:#f1f7f3;border:1px solid #ccded2;border-radius:10px;color:#385e49;font-size:12px;line-height:1.9}.demo-login-note strong{font-size:12px}.demo-login-note p{margin-top:8px}.demo-login-note code{font-family:Consolas,monospace;font-size:13px;font-weight:650;color:#214f38;user-select:all}

.account-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px;margin:18px 0}.account-card{border:1px solid #dce7df;border-radius:12px;padding:18px;overflow-wrap:anywhere}.account-card p{margin:10px 0}.account-pagination{display:flex;align-items:center;justify-content:center;gap:18px}#account-editor{margin-top:24px;scroll-margin-top:85px}#account-editor .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}#account-editor label{display:flex;flex-direction:column;gap:8px}#account-form-message{margin:16px 0;color:#a03333}@media(max-width:760px){#account-editor .form-grid{grid-template-columns:1fr}.mobile-nav a{font-size:12px}}

.workspace-mode-note{font-size:12px;line-height:1.8;color:#486655;background:#edf4ef;padding:12px 16px;border-radius:10px;margin-bottom:24px}.mobile-nav{gap:8px}.mobile-nav a{white-space:nowrap}

.person-card>.danger-text{margin-left:auto;flex-shrink:0}.danger-text{color:#a03333}.note-maintenance{display:flex;align-items:flex-start;gap:20px;margin-top:14px}.note-edit-disclosure{flex:1;min-width:0}.note-edit-disclosure summary{cursor:pointer;display:list-item;list-style-position:inside}.note-edit-form{margin-top:14px}.note-edit-form label{display:flex;flex-direction:column;gap:10px}.note-edit-form textarea{min-height:120px}.note-edit-form .button{margin-top:12px}.note-updated{display:block;margin-top:8px;color:#68776e}.child-message{margin-top:12px;color:#a03333}.note-maintenance>.danger-text{flex-shrink:0}@media(max-width:480px){.note-maintenance{gap:12px}.person-card{flex-wrap:wrap}}

.person-card{flex-wrap:wrap}.child-delete-message{flex-basis:100%;color:#a03333;font-size:12px}.child-delete-message:empty{display:none}

.photo-records{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:18px}.photo-record.photo-card{display:flex;flex-direction:column;align-items:stretch;padding:0;overflow:hidden;gap:0;border:1px solid #dce7df;border-radius:12px}.photo-preview{display:block;aspect-ratio:4/3;background:#eef3ee;overflow:hidden}.photo-image{display:block;width:100%;height:100%;object-fit:cover}.photo-missing{object-fit:contain;font-size:12px;padding:15px}.photo-caption{padding:16px;overflow-wrap:anywhere}.photo-caption .danger-text{margin-top:12px}.photo-upload{margin-top:24px;padding-top:24px;border-top:1px solid #e4ebe4;display:grid;gap:14px}.photo-upload label{display:flex;flex-direction:column;gap:9px}.photo-upload input[type=file]{padding:12px;max-width:100%;font-size:14px}.photo-upload .button{justify-self:start}#photo-message{font-size:13px;line-height:1.8;margin-top:16px;color:#486655}

.photo-caption .danger-text{display:block}

.error-layout{min-height:100vh;display:grid;place-items:center;padding:24px}.error-panel{width:min(100%,650px);padding:42px}.error-code{font-size:80px;line-height:1.2;font-weight:750;color:var(--brand);margin-top:32px}.error-panel h1{font-size:25px;margin:16px 0}.error-panel>.muted{line-height:1.9;margin-bottom:28px}.error-panel>.button{display:inline-flex;align-items:center;gap:10px}@media(max-width:480px){.error-panel{padding:26px}.error-panel h1{font-size:22px}}
