.sync-indicator{position:fixed;bottom:0;left:0;right:0;z-index:1200;background:#263f35;color:white;padding:9px 14px;font-size:13px;text-align:center;padding-bottom:max(9px,env(safe-area-inset-bottom));}
.sync-indicator button{margin-left:8px;min-height:44px;color:#263f35;}
.language-toggle{display:flex;align-items:center;gap:3px;padding:3px;border:1px solid #b6c5ae;border-radius:10px;background:#edf1e8;}
.language-toggle button{min-height:44px;min-width:52px;padding:6px 9px;border:0;background:transparent;color:#263f35;font-weight:700;}
.language-toggle button[aria-pressed="true"]{background:#263f35;color:#fff;border-radius:7px;}
body{padding-bottom:55px;}
.login-dialog{max-width:440px;width:calc(100% - 28px);}
.login-dialog::backdrop{background:#eef0eb;}
.login-dialog input,.login-dialog button,dialog select{min-height:48px;}
body[data-account-role="user"] #admin,body[data-account-role="user"] #new-season,body[data-account-role="user"] #campaign-new,body[data-account-role="user"] #campaign-create,body[data-account-role="user"] #export{display:none!important;}
#restore-open{display:none!important;}
body[data-account-role="user"] #add-work,body[data-account-role="user"] #campaign-dashboard{display:none!important;}
body[data-account-role="user"] .main-nav [data-view="tasks"]{order:-1;flex:2;font-weight:800;}
.main-nav [data-view="tasks"]{font-weight:700;}
.feed-filters{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0;}
.feed-filters label{display:grid;gap:6px;min-width:0;}
.feed-filters select{min-height:48px;width:100%;}
.work-feed{display:grid;gap:14px;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));}
.feed-card h2{font-family:inherit;font-size:21px;margin:0;}.feed-card .task-location{font-size:18px;font-weight:600;}
.assigned-to-me{border-left:5px solid #526e55;}.work-assignment{font-weight:650;color:#263f35;}
.status-actions{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0;}
.status-actions button{min-height:52px;flex:1;min-width:130px;font-size:16px;}
.parcel-work-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch;margin-top:12px;}
.parcel-work-actions button{min-width:0;min-height:52px;margin:0;padding:10px 12px;font-size:13px;line-height:1.3;}
.parcel-work-actions [data-quick-complete]{min-width:104px;white-space:nowrap;}
.quick-complete-dialog{width:min(420px,calc(100% - 24px));}
.quick-complete-dialog h2{font-size:23px;line-height:1.25;margin:6px 0 12px;}
.quick-complete-dialog p{font-size:15px;line-height:1.5;}
.quick-complete-actions{display:flex;gap:10px;margin-top:22px;}
.quick-complete-actions button{flex:1;min-height:52px;font-size:16px;}
@media(max-width:350px){.parcel-work-actions{grid-template-columns:1fr;}.parcel-work-actions [data-quick-complete]{width:100%;}}
.field-quick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0;}
.field-quick button{width:100%;min-width:0;min-height:56px;padding:10px;font-size:16px;line-height:1.3;white-space:normal;}
.identity-notice{padding:16px;border-radius:12px;background:#f4ebce;color:#574511;}
.field-card{border:1px solid #d7ddd3;border-radius:14px;padding:16px;margin:16px 0;background:#fff;}
.field-totals{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0;}
.field-totals span{font-size:13px;display:flex;flex-direction:column;justify-content:space-between;padding:10px 6px;background:#f4f5ef;border-radius:9px;text-align:center;}
.field-totals strong{display:block;font-size:28px;margin-top:8px;font-variant-numeric:tabular-nums;}
.field-totals .remaining{background:#e5ece1;color:#263f35;}.field-card details{margin-top:14px;}
.field-card .field-edit>summary{display:flex;align-items:center;justify-content:center;gap:10px;box-sizing:border-box;width:100%;min-height:58px;padding:12px 16px;border:1px solid #6d846c;border-radius:10px;background:#edf1e8;color:#263f35;font-size:16px;font-weight:700;text-align:center;cursor:pointer;list-style:none;}
.field-card .field-edit>summary::-webkit-details-marker{display:none;}
.field-card .field-edit>summary span{font-size:21px;line-height:1;}
.field-card .field-edit[open]>summary{background:#dce8d7;border-color:#526e55;}
.field-card .field-edit>summary:focus-visible{outline:3px solid #8c713d;outline-offset:3px;}
.field-card form{margin-top:12px;}.field-card .counter input{min-width:0;width:100%;}
.parcel-fieldwork{margin:20px 0;}.official-logo{width:auto;max-width:180px;max-height:70px;object-fit:contain;}
.login-dialog .official-logo{max-width:240px;max-height:100px;}
@media(max-width:480px){.field-quick{grid-template-columns:1fr;}.field-totals span{font-size:12px;}.field-totals strong{font-size:25px;}.screen-heading{align-items:stretch;flex-direction:column;}.main-nav button{padding:12px 8px;}.feed-filters{gap:8px;}.field-card{padding:12px;}}
@media(max-width:650px){.header-right{flex-wrap:wrap;gap:5px;}.header-right button{font-size:12px;min-height:44px;}header{gap:8px;}}
@media(max-width:760px){header{height:auto;min-height:74px;flex-direction:column;align-items:stretch;padding:12px 16px;gap:12px}.header-right{width:100%;min-width:0;flex-shrink:1;flex-wrap:wrap;gap:6px}.header-right button{flex:1;min-height:44px}.brand{font-size:29px}.sync-indicator{padding-bottom:max(10px,env(safe-area-inset-bottom))}body{padding-bottom:48px}}

/* Bacchus: preserve the original drawing proportions on every screen. */
.brand .bacchus-logo{width:64px;height:50px;object-fit:contain;flex-shrink:0}
@media(max-width:760px){.brand .bacchus-logo{width:54px;height:42px}}
/* Work folders and the explicit administrator cancellation confirmation. */
#campaign-cancel-form .cancellation-check{display:flex;align-items:flex-start;gap:12px;font-size:16px;line-height:1.5;padding:12px 0}#campaign-cancel-form .cancellation-check input{width:24px;height:24px;min-height:24px;margin:0;flex:0 0 24px}
.work-folders{display:grid;grid-template-columns:1fr;gap:14px;margin-top:18px}.work-folder{background:#fff;border:1px solid #d5dccc;border-radius:14px;overflow:hidden}.work-folder>summary{display:flex;align-items:center;gap:14px;min-height:80px;padding:16px;cursor:pointer;list-style:none}.work-folder>summary::after{content:'＋';margin-left:auto;font-size:25px}.work-folder[open]>summary::after{content:'−'}.work-folder>summary strong{display:block;font-size:23px}.work-folder>summary small{display:block;margin-top:5px}.folder-icon{font-size:38px;color:#8c713d}.folder-works{display:grid;gap:12px;padding:0 14px 14px}.folder-works .work{margin:0}.folder-campaign{min-height:48px;text-align:left}.danger-action{min-height:48px;color:#892e2e;border:1px solid #a45151;background:#fff8f5;margin:8px 0}.cancellation-warning{padding:16px;background:#fff3df;border:1px solid #c6a770;border-radius:10px}.cancellation-check{display:flex;align-items:flex-start;gap:12px;padding:14px 0;line-height:1.5}.cancellation-check input{width:24px;height:24px;flex:0 0 24px}

/* Seasonal cellar records and missing-vine overview. */
#work-pane{flex:1;min-height:0;overflow:auto}#work-pane .task-screen{overflow:visible;flex:none}#cellar-tracking{padding:24px 24px 0}.cellar-tracking-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}.cellar-tracking-card{border:1px solid #d5dccc;border-radius:14px;background:#fffefb;padding:20px;min-width:0}.cellar-tracking-card h2{font-size:25px}.cellar-total{display:flex;align-items:baseline;gap:10px;padding:15px;background:#edf1e8;border-radius:10px}.cellar-total strong{font:32px Georgia,serif}.cellar-total span{font-size:13px}.cellar-tracking-card>details{margin:16px 0}.cellar-tracking-card summary{cursor:pointer;min-height:50px;padding:12px 0;font-weight:650}.cellar-appellation{display:flex;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid #e4e5dc}.cellar-appellation span{font-weight:650}.holes-card{display:block;width:100%;min-height:72px;margin-bottom:16px;background:#edf1e8;text-align:left;padding:15px}.holes-card strong{display:block;font:23px Georgia,serif}.holes-card small{display:block;margin-top:7px;color:#526451}.holes-totals{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0}.holes-totals>div{background:#edf1e8;padding:12px;border-radius:9px}.holes-totals span{display:block;font-size:12px}.holes-totals strong{display:block;font:26px Georgia,serif;margin-top:7px}.holes-group{border:1px solid #d5dccc;border-radius:10px;margin:12px 0;padding:0 12px}.holes-group summary{cursor:pointer;min-height:68px;padding:12px 0}.holes-group summary strong,.holes-group summary small{display:block}.holes-group summary strong{font-size:20px}.holes-group summary small{margin-top:5px}.holes-group button{display:block;width:100%;text-align:left;margin:8px 0;min-height:66px}.holes-group button strong,.holes-group button small,.holes-group button span{display:block}.holes-group button span{margin-top:6px}.replacement-quantity{display:block;max-width:260px;margin:10px 0}.replacement-quantity input{font-size:18px;font-weight:700}.feed-card .replacement-quantity{max-width:none}
@media(max-width:760px){#work-pane{overflow:visible}#cellar-tracking{padding:20px 14px 0}.cellar-tracking-grid{grid-template-columns:1fr}.cellar-tracking-card{padding:16px}.holes-totals{grid-template-columns:1fr 1fr}.holes-totals>div:last-child{grid-column:1/-1}.holes-totals strong{font-size:24px}}
.replacement-remaining{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;padding:13px 15px;border-radius:10px;background:#edf1e8;color:#263f35;font-weight:650}.replacement-remaining strong{font:700 27px Georgia,serif;white-space:nowrap}

/* Monthly filling subtotals sit directly below the unchanged seasonal total. */
.cellar-months{margin-top:8px;padding:2px 12px;border:1px solid #e4e5dc;border-radius:10px;background:#fafbf7}
.cellar-month{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px;padding:6px 2px;color:#365446}
.cellar-month+.cellar-month{border-top:1px solid #e4e5dc}
.cellar-month strong{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}

/* Frozen per-parcel quantities and derived distribution progress. */
.jalon-summary,.jalon-work-counts{display:grid;gap:0;padding:4px 12px;border:1px solid #d5dccc;border-radius:10px;background:#edf1e8}
.jalon-summary{margin:10px 0}.jalon-summary>div,.jalon-work-counts>div{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:37px;padding:6px 0}
.jalon-summary>div+div,.jalon-work-counts>div+div{border-top:1px solid #d5dccc}
.jalon-summary span,.jalon-work-counts span{font-size:13px;color:#365446}
.jalon-summary strong,.jalon-work-counts strong{font-size:16px;color:#263f35;white-space:nowrap;font-variant-numeric:tabular-nums}
.jalon-work-counts{margin:10px 0}.jalon-folder-campaign{padding:12px;border:1px solid #d5dccc;border-radius:10px;background:#fffefb}.jalon-folder-campaign>strong{display:block;font:18px Georgia,serif;color:#263f35}

/* A separate, touch-friendly BVS supplies space. */
.field-shortcuts{display:grid;grid-template-columns:1fr;gap:7px;min-width:190px}
.field-shortcuts button{min-height:44px;width:100%}
#bvs-open{background:#edf1e8;color:#263f35;border:1px solid #93a58d;font-weight:700}
#bvs-dialog{width:min(720px,calc(100% - 20px));max-width:720px;box-sizing:border-box}
#bvs-dialog h2{margin:5px 0 10px}#bvs-dialog h3{font-size:21px;margin:0 0 12px}
.bvs-panel,.bvs-catalog{border:1px solid #d5dccc;border-radius:14px;background:#fffefb;padding:16px;margin:14px 0}
.bvs-supply-picker{display:grid;gap:9px}.bvs-pick{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:10px 12px;border:1px solid #d9ded2;border-radius:10px;background:#fff;font-size:16px}
.bvs-pick-name{display:flex;align-items:center;gap:10px;min-width:0}.bvs-pick-name input{width:22px;height:22px;min-height:22px;flex:none;margin:0}
.bvs-quantity{display:grid;gap:2px;min-width:96px;max-width:120px;font-size:12px}.bvs-quantity input{min-height:48px;font-size:18px;font-weight:700}
.bvs-submit{width:100%;min-height:54px;font-size:16px;margin-top:12px}.bvs-catalog>summary{cursor:pointer;min-height:52px;padding:12px;font-weight:700;list-style:none}
.bvs-catalog form button,.bvs-actions button,.bvs-catalog-list button{min-height:48px}.bvs-catalog-list>div{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:8px 0;border-top:1px solid #e4e5dc}.bvs-catalog-list>div span{margin-right:auto;font-weight:650}
@media(max-width:760px){.field-shortcuts{flex:1 1 100%;width:100%}#bvs-dialog{padding:20px 14px}.bvs-pick{font-size:15px}}
.bvs-task-list{display:grid;gap:8px;margin:15px 0}.bvs-task-list>strong{font-size:17px}.bvs-task-list>small{color:#526451;font-size:13px}
.bvs-task-item{display:grid;grid-template-columns:26px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:64px;margin:0;padding:10px 12px;border:1px solid #d9ded2;border-radius:10px;background:#fff;cursor:pointer}
.bvs-task-item:has(input:checked){background:#edf1e8}.bvs-task-item input{width:24px;height:24px;min-height:24px;margin:0;accent-color:#263f35}.bvs-task-item span{font-size:16px;font-weight:650;line-height:1.25;overflow-wrap:anywhere}.bvs-task-item b{font-size:21px;color:#263f35;white-space:nowrap;font-variant-numeric:tabular-nums}

.main-nav .phyto-entry{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:80px;padding:10px 14px;border-radius:6px;color:var(--green);text-decoration:none;font-size:14px;font-weight:600;}
@media(max-width:760px){.main-nav .phyto-entry{min-width:0;padding:10px 8px;flex:.65;} .main-nav{gap:4px;}}

/* Scoped to the historical Cave title. */
#cellar-tracking .screen-heading>div{width:100%}#cellar-tracking .cellar-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}#cellar-tracking .cellar-title-row a{font-weight:700;color:#285642;padding:12px 0;min-height:44px;white-space:nowrap}

#cellar-tracking .cellar-title-row{display:grid;grid-template-columns:minmax(0,1fr) auto}#cellar-tracking .cellar-title-row h1{min-width:0;margin:0}@media(max-width:500px){#cellar-tracking .cellar-title-row h1{font-size:22px}#cellar-tracking .cellar-title-row a{font-size:12px}}

/* Bottles used per month: the current month in the counter, the previous one apart for its last days, the rest folded. */
.cellar-closing{margin-top:12px;padding:10px 12px;border:1px solid #d9cfae;border-radius:10px;background:#fbf8ee}.cellar-closing .cellar-month{min-height:30px}.cellar-closing>.muted{margin:4px 0 8px}
.cellar-operations,.cellar-moves,.cellar-corrections{list-style:none;margin:0;padding:0}
.cellar-operation{padding:8px 0;border-top:1px solid #e4e5dc;font-size:14px}.cellar-operation-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.cellar-operation small{display:block;color:#7c8374;font-size:12px}
.cellar-correct{flex:none;min-height:40px;padding:6px 12px;border:1px solid #c9d2c1;border-radius:8px;background:#fffefb;color:#263f35;font-size:13px}
.cellar-corrections li,.cellar-moves li{margin-top:4px;padding:6px 8px;border-left:3px solid #c9b77d;background:#fafbf7;color:#4f5a49;font-size:12px;line-height:1.5}
.cellar-month-history summary{display:flex;justify-content:space-between;gap:12px;min-height:44px;padding:10px 0;border-top:1px solid #e4e5dc}.cellar-month-history summary strong{font-variant-numeric:tabular-nums;white-space:nowrap}
.cellar-archive h4{margin:14px 0 2px;font-size:13px;color:#4f5a49}
.cellar-correction{display:grid;gap:4px;padding:8px 0}.cellar-correction p{margin:0;font-size:13px}.cellar-correction-actions{display:flex;flex-wrap:wrap;gap:8px}
.cellar-settings fieldset{border:0;margin:0;padding:0}.cellar-settings legend{font-weight:650;margin-bottom:4px}.cellar-choice{display:flex;align-items:center;gap:8px;min-height:40px}
@media(max-width:760px){.cellar-operation-row{align-items:flex-start}.cellar-correction .form-grid{grid-template-columns:1fr}}
.cellar-year{margin:8px 0 4px}.cellar-year-link{display:inline-flex;min-height:44px;align-items:center;cursor:pointer;color:var(--bacchus-primary-ink,#263f35);font-weight:600;text-decoration:underline;text-underline-offset:3px;list-style:none}.cellar-year-link::-webkit-details-marker{display:none}.cellar-year[open]>.cellar-year-link{margin-bottom:4px}.cellar-past-year>summary{min-height:44px;padding:10px 0;border-top:1px solid #e4e5dc;font-weight:650}.cellar-month-history .cellar-correct{margin:8px 0 4px}
