.vc-shell{--vc-bg:var(--card);--vc-line:var(--line);--vc-ink:var(--ink);--vc-muted:var(--mut);--vc-blue:var(--navy2);--vc-green:var(--ok);--vc-amber:var(--warn);--vc-accent:var(--sea);color:var(--vc-ink);max-width:650px;margin:0 auto;padding:0 0 24px;font-size:15px;line-height:1.45;text-align:left}
.vc-shell *,.vc-dialog *{box-sizing:border-box}
.vc-shell [hidden]{display:none!important}
.vc-shell h2,.vc-shell h3,.vc-shell p{margin:0}
.vc-shell h2{font-size:25px;line-height:1.2;font-weight:800;letter-spacing:-.5px;text-transform:none}
.vc-shell h3{font-size:16px;font-weight:750;text-transform:none;letter-spacing:0;line-height:1.4}
.vc-shell button,.vc-shell input,.vc-shell select,.vc-shell textarea{font:inherit}
.vc-shell button{cursor:pointer;white-space:normal}
.vc-shell button:disabled{cursor:default;opacity:.5}
.vc-shell input:not([type=checkbox]),.vc-shell select,.vc-shell textarea{width:100%;min-height:46px;border:1px solid var(--vc-line);border-radius:9px;padding:10px 12px;color:var(--vc-ink);background:var(--vc-bg);margin:5px 0 0;box-shadow:none;font-size:16px}
.vc-shell textarea{min-height:92px;resize:vertical}
.vc-shell label:not(.vc-check){display:block;margin:16px 0 0;font-size:14px;font-weight:700;color:var(--vc-ink)}
.vc-shell small{display:block;font-size:12px;font-weight:400;color:var(--vc-muted);line-height:1.45;margin:4px 0}
.vc-shell input:focus-visible,.vc-shell select:focus-visible,.vc-shell textarea:focus-visible,.vc-shell button:focus-visible{outline:3px solid var(--sea);outline-offset:2px}
.vc-shell .vc-back{border:0;background:transparent;color:var(--sea,#28578d);font-weight:650;text-align:left;padding:10px 0;min-height:44px;border-radius:5px}
.vc-hero{display:block;color:#fff;padding:22px;border-radius:14px;margin:4px 0 10px}
.vc-hero p{font-size:13px;color:#d9e6f4;margin:4px 0 8px}
.vc-hero h2{color:#fff;margin:3px 0 9px}
.vc-hero small{color:#d9e6f4}
.vc-shell .vc-local{font-size:11px;color:var(--vc-muted);margin:8px 0 16px}
.vc-card{background:var(--vc-bg);border:1px solid var(--vc-line);border-radius:12px;padding:16px;margin:12px 0;box-shadow:0 2px 7px #142e4510}
.vc-card>label:first-child{margin-top:0!important}
.vc-card-heading{display:flex;align-items:flex-start;gap:12px;justify-content:space-between}
.vc-card-heading>div:first-child{min-width:0;flex:1}
.vc-card-heading h3{color:var(--sea,#244775);overflow-wrap:anywhere}
.vc-card-heading p{font-size:13px;color:var(--vc-muted);margin-top:3px}
.vc-badge{font-size:11px;font-weight:750;white-space:nowrap;padding:4px 7px;border-radius:6px;flex-shrink:0}
.vc-green{background:var(--okbg);color:var(--ok)}.vc-amber{background:var(--warnbg);color:var(--warn)}.vc-purple{background:var(--bluebg);color:var(--sea)}
.vc-visit-card{border-top:4px solid var(--vc-blue)}.vc-visit-card.is-closed{border-top-color:var(--vc-green)}
.vc-shell .vc-progress{display:flex;align-items:center;gap:10px;margin:14px 0 8px}
.vc-progress>span{display:block;flex:1;height:7px;background:var(--line);overflow:hidden;border-radius:9px}
.vc-progress i{display:block;height:100%;background:var(--ok);border-radius:9px}.vc-progress small{white-space:nowrap;margin:0}
.vc-shell .vc-muted{font-size:13px;color:var(--vc-muted);margin:8px 0;line-height:1.5}
.vc-shell .vc-next{font-size:14px;font-weight:750;margin-top:12px}
.vc-shell .vc-button{display:block;width:100%;min-height:48px;padding:12px 16px;background:linear-gradient(135deg,var(--navy),var(--sea));border:1px solid transparent;color:#fff;border-radius:9px;font-weight:750;line-height:1.35;margin:12px 0 0;text-align:center}
.vc-shell .vc-secondary{background:var(--vc-bg);border-color:var(--vc-line);color:var(--sea,#244775)}
.vc-shell [aria-pressed=true]{border:2px solid var(--sea);background:var(--bluebg);color:var(--sea,#244775)}
.vc-shell .vc-add{border:1px dashed var(--vc-accent);color:var(--vc-accent);background:var(--bluebg);margin-bottom:20px}
.vc-shell .vc-section-title{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;margin:24px 0 10px;color:var(--sea,#244775)}
.vc-shell .vc-done-heading{color:var(--ok,#21845e)}.vc-shell .vc-left-heading{color:var(--warn,#a96b0c)}.vc-shell .vc-extra-heading{color:var(--vc-accent)}
.vc-task-list{padding:0 14px}.vc-task-list>p{padding:10px 0}
.vc-task{padding:12px 0;border-bottom:1px solid var(--vc-line)}.vc-task:last-child{border-bottom:0}
.vc-shell .vc-check{display:flex;align-items:flex-start;gap:10px;margin:9px 0;font-size:14px;line-height:1.5;font-weight:500;color:var(--vc-ink);cursor:pointer}
.vc-shell input[type=checkbox]{appearance:auto;width:22px;height:22px;min-height:22px;min-width:22px;margin:0;flex-shrink:0;accent-color:var(--vc-green);border-radius:5px}
.vc-check span{flex:1}.vc-check small{margin:0;font-size:12px}
.vc-task-reason{margin-left:32px}.vc-shell .vc-task-reason input{font-size:14px;min-height:42px}
.vc-task-reason .vc-sr,.vc-shell label.vc-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.vc-extra{border-left:4px solid var(--vc-accent)}.vc-extra p{font-size:13px;margin-top:8px}.vc-extra .vc-card-heading{flex-wrap:wrap}
.vc-shell .vc-schedule{display:flex;flex-direction:column;gap:5px;padding:12px;border:1px solid var(--sea);border-radius:9px;margin-top:12px;font-size:14px}
.vc-shell .vc-schedule small{margin:0}.vc-schedule span{font-size:13px;color:var(--vc-muted)}
.vc-shell .vc-notice{padding:12px;background:var(--warnbg);border:1px solid var(--warn);border-radius:8px;font-size:13px;margin:12px 0;color:var(--warn,#885a11)}
.vc-shell fieldset{border:0;padding:0;margin:0;min-width:0}.vc-shell fieldset:disabled{opacity:.86}
.vc-shell .vc-two,.vc-choice-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.vc-two>div{min-width:0}
.vc-shell .vc-two label{margin-top:0}
.vc-shell .vc-dock{padding:16px 0 6px;margin-top:12px;border-top:1px solid var(--vc-line)}
.vc-dock p,.vc-shell .vc-save-status{font-size:12px;color:var(--vc-muted);text-align:center;margin:10px 0}
.vc-dock .vc-back{display:block;width:100%;text-align:center}
.vc-shell .vc-error{color:var(--bad,#a42424);border:1px solid var(--bad);background:var(--badbg);padding:12px;border-radius:8px;font-size:14px;margin:12px 0}
.vc-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:18px}.vc-stats>div{border:1px solid var(--vc-line);border-radius:10px;text-align:center;padding:12px 6px;background:var(--vc-bg)}
.vc-stats b{display:block;color:var(--ok,#21845e);font-size:23px}.vc-stats>div:nth-child(2) b{color:var(--warn,#a96b0c)}.vc-stats>div:nth-child(3) b{color:var(--vc-accent)}.vc-stats span{font-size:11px;color:var(--vc-muted)}
.vc-success{border-top:4px solid var(--vc-green)}.vc-success p{font-size:14px;margin:12px 0}.vc-success h3{color:var(--ok,#21845e)}
.vc-review-visit{display:flex;align-items:center;gap:12px;justify-content:space-between}.vc-review-visit>div{min-width:0}.vc-review-visit h3{color:var(--sea,#244775);font-size:14px}.vc-review-visit p{font-size:13px;margin:5px 0;color:var(--ok,#21845e)}.vc-review-visit button{flex-shrink:0;font-size:13px}.vc-review-visit small{font-size:11px}
.vc-dialog{padding:22px;width:min(94vw,560px);max-width:560px;border:1px solid var(--line,#d7dfeb);border-radius:16px;background:var(--card,#fff);color:var(--ink,#192b42);max-height:90dvh;overflow:auto;margin:auto}
.vc-dialog::backdrop{background:#0b192c88}.vc-dialog .vc-shell{padding:0}.vc-dialog .vc-card-heading h2{font-size:21px;margin:4px 0}
.vc-shell .vc-icon{width:40px;height:40px;border:0;background:transparent;color:var(--vc-muted);font-size:28px;flex-shrink:0}
.vc-photos{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.vc-photos img{width:76px;height:76px;object-fit:cover;border-radius:8px;border:1px solid var(--vc-line)}.vc-photos figure{margin:0;display:flex;flex-direction:column}.vc-photos .vc-back{padding:2px 0;font-size:12px}
/* Same primary and secondary button treatments as the existing Field Work tab. */
html[data-theme="dark"] .vc-shell .vc-button:not(.vc-secondary):not(.vc-add){color:#fff;background:linear-gradient(135deg,#24578c,#315f97);border-color:#4f7fb2}
html[data-theme="dark"] .vc-shell .vc-secondary{color:var(--sea);background:#132942;border-color:#4f7fb2}
@media(max-width:380px){.vc-card{padding:12px}.vc-card-heading{gap:7px}.vc-card-heading h3{font-size:15px}.vc-badge{font-size:10px;padding:4px}.vc-shell .vc-hero{padding:18px}.vc-task-reason{margin-left:0}.vc-dialog{padding:16px}}
/* Task cards inherit the same Field cards, controls and status colours. */
.tc-work h2{font-size:20px}.tc-work h3,.tc-task-card h3{color:var(--sea)}
.tc-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.tc-actions .vc-button{font-size:12px;padding:10px 4px}
.tc-work .vc-add{margin-bottom:0}.tc-work .tc-safety{padding:0;overflow:hidden;border:0}.tc-safety .vc-button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin:0;text-align:left;padding:15px 16px}.tc-safety b{font-size:16px}.tc-safety small{margin:4px 0 0;color:var(--mut);font-size:12px}.tc-safety .vc-button>span:last-child{font-size:26px}
.vc-shell .tc-task-row{display:flex;gap:12px;align-items:center;width:100%;text-align:left;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;padding:18px 0;color:var(--ink);min-height:80px;margin:0}
.tc-task-row:last-child{border-bottom:0}.tc-task-row>span:nth-child(2){flex:1;min-width:0}.tc-task-row b{display:block;font-size:14px;overflow-wrap:anywhere}.tc-task-row small{margin:3px 0;font-size:12px}.tc-task-row small:empty{display:none}
.tc-task-row>span:last-child{font-size:24px;color:var(--sea)}
.tc-state{display:flex;align-items:center;justify-content:center;border:2px solid var(--sea);border-radius:6px;width:25px;height:25px;flex:0 0 25px;font-size:18px}
.tc-task-row .tc-done{color:var(--ok)}.tc-state.tc-done{background:var(--ok);border-color:var(--ok);color:var(--card)}
.tc-task-row .tc-started{color:var(--warn)}.tc-state.tc-started{border-color:var(--warn)}
.tc-task-row .tc-blocked{color:var(--bad)}.tc-state.tc-blocked{border-color:var(--bad)}
.tc-task-row .tc-approval,.tc-task-row .tc-draft{color:var(--warn)}
.tc-work details{border-top:1px solid var(--line);padding-top:12px;font-size:13px;color:var(--mut)}.tc-work summary{cursor:pointer;min-height:32px}
.tc-task-heading{padding:8px 0 16px;border-bottom:1px solid var(--line)}.tc-task-heading h2{font-size:22px;margin:6px 0 10px}
.tc-badges{display:flex;gap:6px;flex-wrap:wrap}.tc-description{white-space:pre-wrap;font-size:14px;margin:12px 0!important}
.tc-task-card .vc-two{margin-top:14px}.tc-task-card .vc-card>h3{margin-bottom:10px}
.tc-event{display:flex;gap:12px;font-size:13px;border-bottom:1px solid var(--line);padding:10px 0}.tc-event:last-child{border:0}.tc-event time{font-size:12px;color:var(--mut);flex:0 0 42px}.tc-event span{min-width:0;overflow-wrap:anywhere}
.tc-note{white-space:pre-wrap;overflow-wrap:anywhere;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px}.tc-note:last-child{border:0}
.tc-stock-item{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px}
.tc-table-wrap{overflow-x:auto}.tc-readings-table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}.tc-readings-table th{font-size:12px;color:var(--mut);font-weight:500}.tc-readings-table td,.tc-readings-table th{padding:7px 4px;border-bottom:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere}
.tc-task-card .vc-photos{align-items:flex-start}.tc-task-card figure{width:90px;min-width:0}.tc-task-card figcaption{font-size:10px;overflow-wrap:anywhere;color:var(--mut)}
.tc-task-card figure img{width:90px;height:90px}.tc-task-card figure .vc-back{font-size:12px;min-height:30px;margin:0;text-decoration:none}
.tc-task-dock{position:sticky;bottom:0;background:var(--bg);z-index:3;padding:8px 0 24px!important}.tc-task-dock .vc-choice-row{gap:8px}
.vc-shell .tc-mark-done,html[data-theme="dark"] .vc-shell .tc-mark-done:not(.vc-secondary):not(.vc-add){background:var(--ok);border-color:var(--ok);color:var(--card)}
@media(max-width:380px){.tc-actions{grid-template-columns:1fr 1fr}.tc-actions button:last-child{grid-column:1/-1}.tc-task-heading h2{font-size:20px}.tc-work .tc-safety{flex-wrap:wrap}.tc-safety .vc-button{flex:1}}
