*{box-sizing:border-box}html{color:#33292b;background:#faf7f7;font-family:-apple-system,BlinkMacSystemFont,"Microsoft YaHei","PingFang SC","Segoe UI",sans-serif;font-size:16px}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;touch-action:manipulation;border:0;border-radius:13px;min-height:46px;padding:12px 17px;font-weight:650;background:#9d2235;color:white}button:hover{background:#7c1929}button:disabled{cursor:not-allowed;opacity:.45}button.secondary{background:#f7e8eb;color:#8d2537}button.danger{background:#fbe8e4;color:#a42e26}button.ghost{background:transparent;color:#716367;padding:10px}button.small{font-size:.84rem;min-height:44px;padding:10px 13px}a{color:#9d2235;text-underline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:1.65rem;letter-spacing:-.04em;line-height:1.35;margin-bottom:10px}h2{font-size:1.18rem;margin-bottom:14px}h3{font-size:1.02rem;margin-bottom:7px}p{line-height:1.65}small,.muted{color:#776b6e;font-size:.86rem;line-height:1.5}.eyebrow{text-transform:uppercase;letter-spacing:.13em;font-size:.72rem;color:#89616b;font-weight:700;margin-bottom:10px}.brand{width:44px;height:44px;border-radius:14px;background:#9d2235;display:grid;place-items:center;color:white;font-size:24px;flex-shrink:0}.top{background:#faf7f7eF;backdrop-filter:blur(12px);position:sticky;top:0;z-index:5;border-bottom:1px solid #eee3e6}.top-inner{max-width:840px;margin:auto;padding:16px 20px;display:flex;align-items:center;gap:12px}.top-title{font-weight:750;font-size:.98rem}.top-sub{font-size:.75rem;color:#776b6e;margin-top:3px}.top .spacer{flex:1}main{max-width:840px;margin:auto;padding:26px 20px 115px}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.grow{flex:1;min-width:0}.card{background:#fff;border:1px solid #eee3e6;border-radius:20px;padding:21px;margin-bottom:14px;box-shadow:0 5px 18px #5e182004}.card.hero{background:#9d2235;color:white;border:0;position:relative;overflow:hidden;padding:26px}.hero .muted,.hero .eyebrow{color:#ffe1e7}.hero h1{font-size:1.6rem}.stats{display:flex;gap:25px;margin-top:24px}.stat b{display:block;font-size:2.1rem;font-weight:550;font-variant-numeric:tabular-nums}.stat span{font-size:.77rem;color:#ffe1e7}.ring{width:92px;height:92px;border:8px solid #f3bdc7;border-radius:50%;display:grid;place-items:center;flex-shrink:0;font-size:1.4rem;font-weight:700}.section{margin:25px 0 13px}.badge{display:inline-flex;align-items:center;gap:6px;border-radius:30px;padding:5px 9px;font-size:.75rem;font-weight:650;white-space:nowrap;background:#f2eced;color:#77686c}.badge.green{background:#dfefe4;color:#2c6b43}.badge.red{background:#fae8e5;color:#ab4940}.badge.amber{background:#fff1d7;color:#8f6419}.dot{width:8px;height:8px;border-radius:50%;background:currentColor;display:inline-block}.task-button{background:white;color:#392b2f;width:100%;text-align:left;display:flex;gap:14px;align-items:center;padding:0;min-height:52px}.task-button:hover{background:white}.avatar{width:42px;height:42px;background:#f8e9ec;border-radius:50%;display:grid;place-items:center;color:#9d2235;font-size:1rem;font-weight:700;flex-shrink:0}.arrow{color:#a0878e;font-size:24px}.progress{height:7px;background:#f0e5e8;border-radius:10px;overflow:hidden;margin:16px 0 8px}.progress>span{display:block;height:100%;background:#9d2235;border-radius:10px}.item-number{background:#f7eff1;color:#82606a;border-radius:12px;width:40px;height:40px;display:grid;place-items:center;font-weight:650;flex-shrink:0}.item-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:16px}.item-head .badge{margin-top:3px}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.actions>*{flex:1}.notice{border-radius:12px;background:#fff4df;color:#886120;padding:13px 15px;font-size:.86rem;line-height:1.65;margin:14px 0}.notice.info{background:#f9ecef;color:#8a3749}.notice.error{background:#fcece7;color:#9e4339}.empty{text-align:center;padding:38px 16px;color:#776b6e}.empty .symbol{font-size:2.5rem;margin-bottom:15px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;padding:9px 12px calc(9px + env(safe-area-inset-bottom));border-top:1px solid #eee3e6;background:#fffffff5;display:flex;justify-content:center;gap:6px;z-index:10}.bottom-nav button{max-width:170px;flex:1;padding:8px 3px;background:transparent;color:#837278;border-radius:12px;font-size:.72rem;font-weight:500;display:flex;flex-direction:column;align-items:center;gap:5px}.bottom-nav button.active{background:#f8e8ec;color:#9d2235}.nav-icon{font-size:1.25rem;line-height:1}.login{min-height:100dvh;display:grid;align-content:center;max-width:470px;padding-bottom:40px}.login .brand{width:58px;height:58px;margin-bottom:28px}.login h1{font-size:2rem}.login .intro{margin-bottom:28px;color:#78676d}.login .card{padding:27px}.login-footer{text-align:center;margin-top:22px;font-size:.76rem;color:#927e85}.field{display:block;margin-bottom:17px;font-size:.84rem;font-weight:600}.field input,.field select,.field textarea{display:block;width:100%;margin-top:7px;min-height:48px;padding:12px;background:#fdfafa;border:1px solid #e7d8dd;border-radius:10px;color:#49343b;font-weight:400;max-width:100%}.field textarea{min-height:94px;resize:vertical}input:focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible{outline:3px solid #d89ba8;outline-offset:2px}.full{width:100%}.filters{display:grid;grid-template-columns:1fr 1fr;gap:10px}.filters .field{margin-bottom:5px}.checks{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 20px}.check{border:1px solid #e9dce0;padding:11px 12px;border-radius:10px;font-size:.85rem;display:flex;align-items:center;gap:7px}.check input{accent-color:#9d2235;width:18px;height:18px}.calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;margin:15px 0}.calendar .weekday{text-align:center;color:#8f7b82;font-size:.74rem;padding:6px}.calendar button{aspect-ratio:1;min-height:38px;padding:4px;background:#f7eff1;color:#806f75;font-size:.88rem}.calendar button.green{background:#deefdf;color:#2b6b3f}.calendar button.red{background:#fae7e1;color:#a54336}.calendar button.selected{outline:2px solid #9d2235;outline-offset:1px}.gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.photo{border:1px solid #eee3e6;border-radius:12px;padding:8px;overflow:hidden}.photo img{width:100%;height:130px;object-fit:cover;display:block;border-radius:8px;margin-bottom:8px}.photo small{display:block;overflow-wrap:anywhere}.photo a{font-size:.79rem;display:inline-block;padding:8px 0}.photo .actions{margin-top:0}.reference{max-width:100%;max-height:200px;object-fit:contain;border-radius:10px;display:block;margin:12px 0}.list-row{border-bottom:1px solid #f2e9ec;padding:12px 0}.list-row:last-child{border:0}dialog{width:min(100% - 24px,600px);max-height:92dvh;border:0;border-radius:20px;padding:22px;color:#33292b;background:#fff;box-shadow:0 30px 100px #0004}dialog::backdrop{background:#26151bcc;backdrop-filter:blur(3px)}dialog header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}dialog header h2{margin:0}video{display:block;width:100%;max-height:52dvh;object-fit:contain;background:#25191d;border-radius:12px}.capture-controls{display:flex;justify-content:center;gap:10px;margin-top:15px}.capture-controls button{min-width:140px}.camera-status{min-height:50px;padding-top:10px;font-size:.86rem;line-height:1.5;color:#7f6971}#toast{position:fixed;left:50%;bottom:95px;transform:translateX(-50%);background:#46212c;color:#fff;padding:13px 20px;border-radius:12px;max-width:calc(100% - 32px);width:max-content;z-index:100;box-shadow:0 5px 30px #0002;display:none;font-size:.9rem}#toast.show{display:block}.audit-event{font-size:.8rem;border-left:2px solid #ebd6dd;padding:0 0 15px 12px;margin-left:3px;overflow-wrap:anywhere}.audit-event time{color:#917a83;display:block;font-size:.72rem;margin-bottom:4px}.upload-status{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0;color:#675b60;font-size:.88rem}.error-text{color:#9e4339;width:100%;margin:0}.task-status{font-size:.82rem;color:#776b6e;margin:10px 0;line-height:1.5}.install-note{font-size:.8rem;color:#7f6a72;line-height:1.7}.menu-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.menu-grid button{padding:20px 12px;background:white;color:#662e3e;border:1px solid #eadbe0;min-height:90px}.menu-grid button span{display:block;color:#907a82;font-size:.76rem;margin-top:8px;font-weight:400}.back{margin-bottom:18px}.inline-link{font-size:.84rem}.log-detail{white-space:pre-wrap;word-break:break-word;color:#89727b;font-size:.75rem}.summary-text{overflow-wrap:anywhere}.divider{border:0;border-top:1px solid #eddee3;margin:22px 0}@media(min-width:700px){main{padding-top:34px}.login{padding-top:40px}.task-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.task-grid .card{margin:0}.stats{gap:45px}.filters{grid-template-columns:repeat(3,1fr)}.photo img{height:210px}.hero{min-height:190px}}@media(prefers-reduced-motion:no-preference){button{transition:background .15s,opacity .15s}.card{animation:appear .18s ease-out}@keyframes appear{from{opacity:.6;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}}

progress.progress{display:block;width:100%;border:0;appearance:none}progress.progress::-webkit-progress-bar{background:#f0e5e8;border-radius:10px}progress.progress::-webkit-progress-value{background:#9d2235;border-radius:10px}progress.progress::-moz-progress-bar{background:#9d2235;border-radius:10px}

.calendar{grid-template-columns:repeat(7,minmax(0,1fr))}.calendar button{min-width:0;width:100%;aspect-ratio:auto;min-height:38px}.filters>*{min-width:0}.task-button .muted{overflow-wrap:anywhere}

.hero h2{text-wrap:balance}

.install-icon{width:46px;height:46px;display:grid;place-items:center;flex-shrink:0;color:#9d2235!important}
.install-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.notice-card{border-top:4px solid #9d2235;padding:22px}
.notice-heading{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:20px}
.notice-badge{background:#f8e8ec;color:#9d2235}.notice-card h2{font-size:1.3rem;overflow-wrap:anywhere}
.notice-copy{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85;font-size:.96rem;color:#49343b}
.notice-pictures{display:grid;gap:14px;margin-top:18px}.notice-pictures:empty{display:none}
.notice-pictures img{display:block;width:100%;height:auto;border-radius:12px}
.notice-edit-images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}
.notice-edit-images img{display:block;width:100%;height:120px;object-fit:contain;background:#faf7f7;border-radius:10px}
.notice-edit-image span{display:block;font-size:.82rem;margin-top:8px}.notice-edit-image input{accent-color:#9d2235}
.install-illustration{width:58px;height:68px;display:grid;place-items:center;background:#f8e8ec;color:#9d2235;border:2px solid #9d2235;border-radius:13px;font-size:32px;margin:12px auto 22px}
.install-guide p{font-size:.9rem}.bottom-nav button{min-width:0}.top-inner>div:nth-child(2){min-width:0}.top-title{overflow-wrap:anywhere}

/* Compact mobile header; independent 44px installation/account touch targets. */
.top-inner{gap:8px;padding:12px 14px;align-items:flex-start}.top-inner>.brand{width:36px;height:36px;font-size:21px}.top-inner>div:nth-child(2){flex:1}.top .spacer{display:none}.top-title{font-size:.9rem}.top .install-icon{width:44px;height:44px;padding:8px}.board-tools{justify-content:flex-end;margin-bottom:12px}.notice-card{min-height:180px}.hero .stats{margin-top:0}.card.hero{min-height:0}.learning-title{font-size:1.25rem;overflow-wrap:anywhere}.learning-block{margin:20px 0;overflow-wrap:anywhere}.learning-block p{white-space:pre-wrap}.learning-block img{max-width:100%;height:auto;border-radius:12px}.learning-block h2{white-space:pre-wrap}.learning-block figcaption{white-space:pre-wrap;color:#776b6e;font-size:.85rem;margin-top:8px}.learning-block figure{margin:0}.learning-row{display:block;text-align:left;width:100%;background:white;color:#49343b;padding:0}.learning-row:hover{background:#fdfafa}.learning-row .row{margin-top:12px}.editor-block{border:1px solid #eadbe0;border-radius:14px;padding:14px;margin:14px 0}.editor-block .actions button{flex:0 1 auto}.learning-summary{margin-top:16px}.learning-record{padding:14px 0;border-bottom:1px solid #eee3e6;overflow-wrap:anywhere}.learning-record:last-child{border:0}.learning-filter{margin-bottom:16px}.article-actions{position:sticky;bottom:85px;padding:12px;background:#faf7f7f5;border-top:1px solid #eee3e6}.article-actions .notice{margin:0 0 10px}.learning-block video{max-height:60dvh}.learning-block textarea{width:100%}@media(max-width:360px){.top-inner{gap:5px;padding:10px}.top-inner>.brand{display:none}main{padding-left:14px;padding-right:14px}.card{padding:16px}.stats{gap:18px}.stat b{font-size:1.7rem}.filters{grid-template-columns:1fr}.top-title{font-size:.86rem}}

.nav-icon svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* Stable compact header and one-line audit actions, including 320px screens. */
.top-inner{align-items:center;min-height:72px;height:72px;padding:10px 12px;gap:7px}
.top-inner>.logo-install{display:grid;width:44px;height:44px;min-width:44px;padding:0}
.brand-copy{flex:1;min-width:0}.top-title{font-size:.85rem;white-space:nowrap}
.top-sub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.employee-name{max-width:5em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.82rem;flex-shrink:0}
.top .install-icon{width:44px;min-width:44px}
.audit-content{padding-top:0}.audit-progress{position:sticky;top:73px;z-index:4;background:#faf7f7;padding:10px 0 8px;margin-bottom:8px}
.audit-progress .progress{margin:6px 0 0}.audit-progress strong{font-size:1rem;font-variant-numeric:tabular-nums}
.audit-context{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.card.audit-item{padding:5px 10px;margin-bottom:6px;border-radius:12px}
.audit-item-row{display:flex;align-items:center;gap:6px;min-height:48px}
.audit-item-row h3{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.84rem;margin:0}
.item-count{font-size:.72rem;white-space:nowrap;color:#537460}
.audit-item-row button{flex-shrink:0;padding:8px;min-width:64px}
.item-details summary{font-size:.75rem;color:#776b6e;padding:6px 0;cursor:pointer}
.item-details .gallery{margin:8px 0}.employee-actions{display:flex;flex-direction:column;gap:4px}
.assignment-checks{display:grid;gap:6px;margin:14px 0}.assignment-checks .check{min-height:44px}
.capture-controls{flex-wrap:wrap}.capture-controls button{min-width:0;flex:1}
dialog.screen-fill{background:white;box-shadow:0 0 0 100vmax white;border-radius:0}
dialog.screen-fill video{max-height:38dvh;width:75%;margin:auto}
.task-index{display:inline-block;margin-right:5px;font-variant-numeric:tabular-nums;color:#776b6e}
.permission-actions{display:grid;gap:10px;margin-top:12px}#permission-status:empty{display:none}#permission-status{margin:12px 0 0}
.calendar-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.calendar-toolbar>.filters{flex:1;min-width:0}
.calendar-toolbar>.filters{display:block;min-width:145px}
.reference[hidden]{display:none}
button.feedback-row{display:block;width:100%;text-align:left;background:white;color:#49343b}
.feedback-row strong,.feedback-row small{display:block;overflow-wrap:anywhere}.feedback-row small{margin-top:7px}
.feedback-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.feedback-image{display:block;max-width:100%;height:auto;margin-top:16px}
#backup-status{font-size:.85rem;overflow-wrap:anywhere}#backup-status:empty{display:none}
@media(max-width:360px){.top-inner{gap:4px;padding:8px}.top-title{font-size:.79rem}.employee-name{max-width:4em;font-size:.76rem}.card.audit-item{padding:5px 8px}.audit-item-row{gap:4px}.audit-item-row h3{font-size:.78rem}}

/* Weekly rows include adjacent-month dates, with one status for all seven days. */
.history-bottom{margin-top:22px;margin-bottom:12px}.weekly-deadline{font-size:12px;line-height:1.7;color:var(--muted,#6c6265);margin:10px 0 15px;overflow-wrap:anywhere}
.weekly-calendar{min-width:0}.week-head,.week-dates{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center;gap:0}.week-head{font-size:12px;color:#796e71;margin:10px 0}.week-row{display:block;width:100%;border:0;background:#f3f0f1;color:#786d70;padding:9px 0 5px;margin:6px 0;border-radius:10px}.week-dates span{font-size:13px;line-height:26px;min-width:0}.week-status{display:block;text-align:right;font-size:10px;font-weight:500;margin:0 10px}.week-row.green{background:#e3f3e8;color:#17633a}.week-row.red{background:#fbe5e6;color:#a62635}.weekly-progress{background:#e7effb!important;color:#335d91!important}.weekly-exempt{background:#eeecef!important;color:#6a6470!important}.adjacent-month{font-size:10px!important}.week-row:hover{filter:brightness(.97)}.week-row:focus-visible{outline:3px solid #376bae;outline-offset:2px}

.bottom-nav button{position:relative}.nav-dot{position:absolute;top:7px;left:calc(50% + 9px);width:9px;height:9px;background:#e32935;border:2px solid white;border-radius:50%}.nav-dot[hidden]{display:none}#capture-preview{width:100%;max-height:55vh;object-fit:contain;background:#111;border-radius:12px}.camera-status.captured{background:#e3f6e9;color:#155d32;font-weight:700;padding:12px;border-radius:10px}

#camera[hidden],#capture-preview[hidden]{display:none}

.unread-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#e32935;margin-right:8px;vertical-align:middle}

.management-group{margin:24px 0}.management-group h2{margin-bottom:12px}.employee-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}

.photo-view{display:block;width:100%;max-height:72dvh;object-fit:contain;border-radius:10px;background:#f5f1f2}

.status-legend{font-size:.86rem;line-height:1.7}.legend-green{color:#17633a}.legend-red{color:#a62635}.legend-blue{color:#335d91}.legend-gray{color:#6a6470}
.history-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}
.management-menu{grid-template-columns:repeat(2,minmax(0,1fr))}.management-menu button{position:relative;min-width:0;overflow-wrap:anywhere}
.feedback-dot{position:absolute;top:10px;right:10px;width:12px;height:12px;background:#e32935;border:2px solid white;border-radius:50%;box-shadow:0 0 0 1px #e32935}.feedback-dot[hidden]{display:none}
.employee-stats .stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.employee-stats .stat b{overflow-wrap:anywhere}
#light-note:empty{display:none}

.preview-banner{background:#fff2cc;color:#664b00;text-align:center;padding:8px 12px;font-size:12px;position:sticky;top:64px;z-index:9}
.notice-media{margin:16px 0}.notice-media img,.notice-media video{display:block;width:100%;max-height:65vh;object-fit:contain;border-radius:12px;background:#f4f1ee}.notice-media figcaption{margin-top:10px}.notice-media video{background:#171717}.notice-media .media-error[hidden]{display:none}
#notice-media-editor .actions{flex-wrap:wrap}#notice-media-editor .actions button{flex:1}#startup-recovery{margin:20px}.admin-name{flex-shrink:0;padding:8px}.top-inner .employee-name{min-width:0;max-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.employee-card .employee-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;flex:0 0 178px}.employee-card .employee-actions button{width:100%;min-height:44px;padding:9px 5px;border:1px solid #eadbe0;font-size:.81rem;white-space:nowrap}.employee-card .grow{overflow-wrap:anywhere}.employee-card .row{align-items:flex-start}.account-identity p{margin-bottom:8px;overflow-wrap:anywhere}.account-identity p:last-child{margin-bottom:0}
#employee-message .message-copy{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;margin:16px 0}#message-image{display:block;width:100%;height:auto;max-height:48dvh;object-fit:contain;border-radius:12px;margin:12px 0}#employee-message .check{margin:18px 0 12px}#employee-message h2:focus{outline:none}#message-compose textarea{min-height:130px}
@media(max-width:380px){.employee-card>.row{gap:9px}.employee-card .employee-actions{flex-basis:160px;gap:5px}.employee-card .employee-actions button{font-size:.75rem;padding:8px 3px}.employee-card .grow{font-size:.82rem}.top-inner .brand-copy{min-width:0}.top-title{overflow:hidden;text-overflow:ellipsis}}
@media(max-width:300px){.employee-card>.row{flex-direction:column}.employee-card .employee-actions{flex-basis:auto;width:100%}}
#message-history .message-copy{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.message-history-item{border-bottom:1px solid #eee3e6;padding:18px 0}.message-history-item:first-child{padding-top:0}.message-history-item .message-ack{font-size:.85rem;margin:12px 0 0}.message-ack.confirmed{color:#2c6b43}.message-ack.pending{color:#94621d}#message-compose{margin-top:20px}

/* Keep the camera larger while leaving controls visible on short and narrow screens. */
.top-inner .brand-copy{flex:1;min-width:0}.top-sub{overflow-wrap:anywhere}.admin-name{white-space:nowrap}.assignment-help{margin:12px 0 20px}.assignment-help p{margin:10px 0}
#modal.camera-dialog{width:min(calc(100% - 12px),760px);max-width:calc(100% - 12px);max-height:96dvh;padding:16px;overflow-y:auto;scroll-padding-bottom:84px}
#modal.camera-dialog #camera,#modal.camera-dialog #capture-preview{width:100%;max-height:58dvh;object-fit:contain}
#modal.camera-dialog .capture-controls{position:sticky;bottom:-16px;background:#fff;padding:12px 0 calc(12px + env(safe-area-inset-bottom));margin-top:8px;z-index:2;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
#modal.camera-dialog.screen-fill .capture-controls{background:#fff}
#modal.camera-dialog .capture-controls button{min-width:0;width:100%;padding:12px 6px;overflow-wrap:anywhere}
@media(max-height:600px){#modal.camera-dialog #camera,#modal.camera-dialog #capture-preview{max-height:42dvh}#modal.camera-dialog{padding:12px}#modal.camera-dialog .capture-controls{bottom:-12px}}

.logo-install{padding:0;overflow:hidden}.logo-install img{display:block;width:44px;height:44px}#reject-task{margin-top:10px}.app-confirm p{white-space:pre-wrap;overflow-wrap:anywhere}

/* Unified touch navigation and compact audit timeline. */
.bottom-nav button{min-height:60px;min-width:0;gap:5px;font-size:11px;position:relative}
.nav-icon{display:flex;align-items:center;justify-content:center;width:32px;height:28px;border-radius:9px}
.nav-icon svg{width:24px;height:24px;fill:none;stroke:currentColor}
.bottom-nav button.active .nav-icon{background:#f7e5e8;color:#9d2235}
.nav-dot{box-shadow:0 0 0 2px #fff;width:8px;height:8px}
.task-settings{margin-top:0}.task-settings>h2{margin-top:0}
.item-window{font-size:12px;line-height:1.5;margin:7px 0 0;overflow-wrap:anywhere}
.event-timeline .audit-event{border-left:2px solid #ead5da;padding:10px 12px;margin-left:3px}
.event-timeline p{margin:5px 0;line-height:1.7;overflow-wrap:anywhere}
.event-timeline time{font-variant-numeric:tabular-nums;color:#76535c}

.employee-stats.all-submitted{background:#18794e;color:#fff}

/* Separate mobile notification/install touch targets, including large text. */
.device-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.device-actions>button{display:block;min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.45}

.work-status-name{background:transparent;border:0;box-shadow:none;min-height:44px;min-width:44px;padding:6px 8px;margin:-6px -8px;display:inline-flex;gap:8px;align-items:center;text-align:left;font:inherit;cursor:pointer}.work-status-name{color:inherit}.work-status-name.work-active small{color:#14703c}.work-status-name.work-paused small{color:#b42332}.work-status-name small{font-size:12px;border:1px solid currentColor;border-radius:5px;padding:2px 5px;white-space:nowrap}.work-status-name:focus-visible{outline:3px solid #2463ab;outline-offset:3px}.work-status-name:hover{background:#f4f4f4}

.employee-duty-name{color:#14703c}.employee-rest-name{color:#b42332}.task-button h3 small{font-size:12px;font-weight:normal}

.device-report{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}#location-status{font-size:14px;line-height:1.5}#location-retry{min-height:44px}

.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;text-align:center}.stats .stat{min-width:0;align-items:center}.reopen-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.warning-reason{color:#9d2235;font-size:12px;flex:1;min-width:120px}.admin-top{position:relative;min-height:68px;padding-right:0}.admin-top .brand-copy{max-width:calc(50% - 78px);margin-right:auto}.admin-back{position:absolute;left:50%;transform:translateX(-50%);background:transparent;color:inherit;padding:2px 6px;display:flex;flex-direction:column;align-items:center;gap:0}.admin-back span{font-size:25px;line-height:28px}.admin-back small{font-size:10px;white-space:nowrap}.roster-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:20px 0;text-align:center}.roster-grid strong{font-size:12px}.roster-day{display:flex;flex-direction:column;gap:5px;padding:10px 2px;color:#33292b}.roster-work{background:#e6f4e9}.roster-off{background:#ffe5e6}.roster-day small{font-size:11px}.roster-day:disabled{background:#eee;color:#999}.management-menu{grid-template-columns:repeat(2,minmax(0,1fr))}

.employee-stats.no-obligations{background:#62666a;color:#fff}.roster-counts{line-height:1.8}.roster-counts strong{font-size:22px;margin:0 4px}
/* Daily work uses the existing five-column mobile navigation. */
.bottom-nav .nav-dot{width:11px;height:11px;border:2px solid #fff;top:3px;right:calc(50% - 22px);box-shadow:0 0 0 1px #ad1738}
.feedback-dot{width:11px;height:11px;border:2px solid #fff;box-shadow:0 0 0 1px #ad1738}
.work-row{display:flex;flex-direction:column;gap:10px;width:100%;text-align:left;color:var(--text);background:#fff;font-weight:400}
.work-row strong{font-size:17px}.work-row small{font-size:13px}.work-media{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px;margin:16px 0}.work-media img,.work-media video{width:100%;max-height:320px;object-fit:contain;border-radius:12px;background:#f4f1f2}.work-media small{display:block;overflow-wrap:anywhere}.work-media a{min-width:0}.work-recipients{max-height:260px;overflow:auto}.work-notification{max-width:440px}.account-identity{position:relative;padding-right:114px}.performance-badge{position:absolute;right:20px;top:22px;width:76px;height:82px;border-radius:20px 20px 24px 24px;border:2px solid currentColor;background:#fff;box-shadow:0 5px 12px #33292b12}.performance-badge strong{font-size:44px;line-height:1}.performance-badge small{position:absolute;left:7px;bottom:5px;font-size:10px}.performance-badge.grade-A{color:#be2440;background:#fff0f3}.performance-badge.grade-B{color:#245ec2;background:#eef4ff}.performance-badge.grade-C{color:#28734c;background:#edf8f0}.performance-badge.grade-D,.performance-badge.grade-none{color:#62656d;background:#f2f3f5}.performance-badge.grade-none span{font-size:15px}.performance-table{width:100%;border-collapse:collapse;margin:16px 0}.performance-table th,.performance-table td{padding:10px 6px;border-bottom:1px solid #ddd;text-align:left}.roster-counts{font-size:16px}.roster-counts strong{font-size:25px;margin:0 5px}
@media(max-width:360px){.bottom-nav button{font-size:11px;padding-left:2px;padding-right:2px}.performance-badge{right:12px}.account-identity{padding-right:102px}}
@media(forced-colors:active){.nav-dot,.feedback-dot{forced-color-adjust:none;background:Highlight;border-color:Canvas}}

.work-deadline{display:flex;justify-content:space-between;align-items:baseline;gap:.4rem;width:100%;flex-wrap:wrap}.work-deadline strong{color:#c92828;white-space:nowrap;margin-left:auto}.employee-card h3{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}.employee-grade{font-size:.78em;padding:.1rem .25rem;background:transparent;border:0;font-weight:700;flex-shrink:0;min-height:32px}.employee-grade.grade-A{color:#d42f3c}.employee-grade.grade-B{color:#2463ce}.employee-grade.grade-C{color:#27864b}.employee-grade.grade-D,.employee-grade.grade-none{color:#727885}

.employee-grade{font-size:12px}.performance-badge.grade-none strong{font-size:23px}.work-row .work-deadline strong{font-size:12px}.work-deadline span{font-size:12px}@media(max-width:480px){.employee-card>.row{flex-direction:column;gap:12px}.employee-card .grow{width:100%;font-size:1rem}.employee-card .employee-actions{flex-basis:auto;width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}.employee-card h3{margin-bottom:8px}}

.work-row,.work-row:hover{color:#33292b;background:#fff}.work-row:focus-visible{outline:3px solid #2463ab;outline-offset:2px}

/* v41 touch spacing and persistent, measured upload progress */
#camera-report .actions{margin:20px 0 24px;gap:16px}
#camera-report button,#report-return,.work-delete{min-height:48px}
#camera-report [type=submit]{margin:20px 0 0}
#report-return,#work-return{margin-top:24px}
.work-delete{margin-top:24px}
.transfer-status{position:sticky;bottom:76px;z-index:20;background:var(--card,#fff);color:var(--text,#17212b);border:1px solid #ccd6de;border-radius:12px;padding:12px;margin:12px 0;box-shadow:0 2px 8px #0002}
dialog .transfer-status{position:sticky;bottom:0}
.transfer-status progress{display:block;width:100%;height:12px;margin:6px 0 10px}
.transfer-status small{overflow-wrap:anywhere}

.work-header{flex-wrap:wrap;gap:12px}.work-header .actions{display:flex;flex-wrap:nowrap;gap:8px}.work-header .actions button{white-space:nowrap}.review-copy{line-height:1.6;margin:12px 0;background:none}.review-copy.error{color:#b42318}
@media(max-width:600px){.work-header h1{flex-basis:100%;margin-bottom:0}.work-header .actions{width:100%}.work-header .actions button{flex:1;font-size:14px;padding:12px 8px}}
