.reminders-boards{display:flex;align-items:center;gap:8px;min-width:0;margin-right:auto}
.reminders-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:7px 10px;border:1px solid #d7ddce;background:#f2f5eb;color:#425033;border-radius:10px;font-size:12px;font-weight:600;letter-spacing:0;white-space:nowrap;flex:none;transition:background .15s,border-color .15s}
.reminders-button:hover{border-color:#9ca88f;background:#eaf0e3}
.reminders-button:focus-visible{outline:2px solid #61764b;outline-offset:2px}
.reminders-button.has-reminders{background:#fff4bc;border-color:#e4cf60;color:#51430b}
.reminders-staff.has-reminders{background:#e9f1e2;border-color:#bdcfae;color:#3c5130}
.reminders-button.is-stale{border-style:dashed}
.reminders-button b{display:grid;place-items:center;min-width:23px;height:23px;padding:0 5px;border-radius:7px;background:#e4eadb;font-size:12px;font-variant-numeric:tabular-nums}
.reminders-button.has-reminders b{background:#ead04d;color:#29270d}
.reminders-staff.has-reminders b{background:#cedfbf;color:#2f4325}
.reminders-bell{width:17px;height:17px;flex:none}
.drag-titlebar{gap:12px;min-height:56px}.drag-titlebar .journal-home{margin-right:0}
.reminders-staff .reminder-card:not(.is-done){background:#f0f6e9;border-color:#c9d8bd;box-shadow:0 3px 0 #c9d8bd30}
.reminders-staff .reminder-card:not(.is-done) .reminder-toggle{background:#fbfdf8;border-color:#c9d8bd}
.reminders-modal.work-form .modal-content{display:flex;flex-direction:column;overflow:hidden;padding:16px 20px;gap:12px}
.reminders-modal .reminder-intro{margin:0;color:#6c755e;font-size:13px}
.reminder-tabs{display:flex;gap:8px;flex:none}
.reminder-tabs button{min-height:42px;padding:10px 16px;background:#edf0e6;color:#5a644d;border-radius:8px;font-size:13px}
.reminder-tabs button[aria-pressed=true]{background:#303a27;color:white}
.reminder-list{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:12px;padding:2px 3px 8px}
.reminder-card{display:flex;flex-direction:column;gap:12px;align-items:start;border:1px solid #e5db9f;background:#fff9dc;border-radius:12px;padding:18px;min-width:0;box-shadow:0 3px 0 #e5db9f30}
.reminders-modal .reminder-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.5;color:#353e2c;margin:0;flex:1}
.reminder-meta{display:flex;gap:5px 12px;flex-wrap:wrap;font-size:12px;line-height:1.5;color:#746e4e}.reminder-meta strong{font-weight:600}
.reminder-completed{font-size:12px;line-height:1.5;color:#697462}
.reminder-toggle{align-self:flex-end;background:#fffdf2;border:1px solid #d4c98d;color:#43542e;border-radius:7px;min-height:40px;padding:8px 14px;font-size:13px}
.reminder-card.is-done{background:#f0f3eb;border-color:#dce2d3;box-shadow:none}.is-done .reminder-toggle{background:#fff;border-color:#dce2d3}
.reminder-empty{grid-column:1/-1;padding:40px 10px;text-align:center;align-self:center;color:#69765b}
.reminder-empty>span{display:inline-grid;place-items:center;width:48px;height:48px;border:1px solid #dce2d3;border-radius:50%;font-size:25px;color:#7c896c;background:#f4f7ee}
.reminder-empty h3{font-size:20px!important;margin:16px 0 8px!important}.reminder-empty p{margin:0}
.reminder-pages{display:flex;justify-content:space-between;gap:8px;flex:none}.reminder-pages:has(button:not([hidden])){padding-top:4px}.reminder-pages button{min-height:40px;font-size:12px}.reminder-pages button[hidden]{display:none}
.reminders-modal .modal-actions{display:block}
#reminderForm{width:100%;margin:0}
#reminderForm>label{display:block;font-size:13px;font-weight:600;margin-bottom:7px;color:#455239}
#reminderText{width:100%;min-height:66px;max-height:145px;resize:vertical;font-size:15px}
.reminder-compose-bottom{display:flex;align-items:center;gap:12px;margin-top:8px}
#reminderNotice{flex:1;min-width:0;margin:0;max-height:54px;overflow:auto;font-size:12px;line-height:1.4;color:#526847}
#reminderNotice.error{color:#a03d32}#reminderChars{font-size:11px;white-space:nowrap;color:#7b836f}
#reminderSubmit{min-height:42px;font-size:13px;min-width:110px}
.reminders-modal button:disabled{opacity:.55;cursor:wait}
@media(max-width:1100px){
 .drag-titlebar,.journal-mode .drag-titlebar{flex-wrap:wrap;justify-content:flex-start;gap:4px 10px;padding:5px 12px 8px;height:auto;min-height:56px}
 .drag-titlebar .mobile-menu{flex:none;margin-right:0;min-height:32px}
 .drag-titlebar .journal-home{flex:none;min-height:32px;padding:6px 0;font-size:12px;margin-right:0}
 .drag-titlebar .save-indicator,.journal-mode .save-indicator{margin-left:auto;max-width:150px;flex:0 1 150px;font-size:10px;line-height:1.3;letter-spacing:0;justify-content:flex-end}
 .reminders-boards{order:4;flex:1 0 100%;margin:0;gap:8px}
 .reminders-button{flex:1;min-width:0;min-height:42px}
}
@media(max-width:600px){
 .drag-titlebar,.journal-mode .drag-titlebar{padding:4px 10px 8px}
 .drag-titlebar .mobile-menu{font-size:12px}
 .drag-titlebar .journal-home{font-size:11px}
 .drag-titlebar .save-indicator,.journal-mode .save-indicator{font-size:9px;flex:0 1 110px;max-width:110px;gap:4px}
 .save-indicator::before{flex:none}
 .reminders-button{font-size:12px;padding:7px 8px;gap:6px;min-height:42px}
 .reminders-boards{gap:6px}
 .reminders-modal.work-form .modal-content{padding:12px;gap:10px}
 .reminder-list{grid-template-columns:1fr;gap:10px}.reminder-card{padding:14px;gap:10px}
 .reminders-modal .reminder-body{font-size:15px}.reminder-tabs{gap:6px}.reminder-tabs button{flex:1;padding:10px 8px;font-size:12px}
 .reminder-intro{font-size:12px!important}
 .reminder-compose-bottom{gap:8px}#reminderChars{display:none}#reminderText{font-size:16px;min-height:62px;max-height:100px}#reminderSubmit{min-width:100px}
 #reminderNotice{font-size:11px}.reminder-empty{padding:20px 8px}
}
@media(max-width:359px){
 .reminders-button{font-size:11px;gap:4px;padding:7px 5px}.reminders-bell{width:15px;height:15px}
 .drag-titlebar .save-indicator,.journal-mode .save-indicator{max-width:85px;flex-basis:85px}
}
@media(max-height:500px){.reminders-modal .reminder-intro{display:none}.reminders-modal #reminderForm>label{display:none}.reminders-modal .modal-content{gap:6px;padding-top:8px;padding-bottom:8px}.reminder-tabs button{min-height:36px;padding:6px 10px}#reminderText{min-height:44px;max-height:65px}.reminder-compose-bottom{margin-top:4px}#reminderNotice{max-height:28px}.reminders-modal .modal-actions{padding-top:7px;padding-bottom:7px}}

.reminder-card-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;margin-top:auto;flex-wrap:wrap}.reminder-edit{min-height:44px;background:transparent;color:#586748;padding:8px 0;font-size:13px;text-decoration:underline;text-underline-offset:3px}.reminder-edited{font-size:11px;line-height:1.5;color:#737c68}.reminder-compose-head{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:7px}.reminder-compose-head label{font-size:13px;font-weight:600;color:#455239}.reminder-compose-head button{min-height:40px;font-size:12px}#reminderCancelEdit[hidden],#reminderEditConflict[hidden]{display:none}#reminderEditConflict{padding:10px;border:1px solid #ddc779;background:#fff7da;border-radius:8px;margin-bottom:8px}#reminderEditConflict p{margin:0 0 8px;font-size:12px;line-height:1.4}#reminderColleagueText{white-space:pre-wrap;overflow-wrap:anywhere;max-height:90px;overflow:auto}#reminderEditConflict>div{display:flex;gap:6px;flex-wrap:wrap}#reminderEditConflict button{font-size:12px;min-height:40px;white-space:normal}.reminders-modal .modal-actions{max-height:60%;overflow-y:auto}@media(max-height:500px){.reminder-compose-head{margin-bottom:3px}.reminder-compose-head label{font-size:11px}}

/* Compact order tasks: no second task manager and no horizontal overflow. */
.order-task-bell{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:52px;min-height:42px;padding:8px;background:#edf2e6;color:#415333;border:1px solid #cdd9c0;border-radius:10px;flex-shrink:0}
.order-task-bell b{font-size:12px}.order-task-bell.has-tasks{background:#f6e78b;border-color:#d6c252;color:#403913}
.order-task-heading{display:flex;gap:8px;flex-wrap:wrap;align-items:center;width:100%;min-width:0}.order-task-link{padding:0;background:transparent;color:#33492b;text-align:left;font-size:15px;font-weight:650;line-height:1.45;white-space:normal;overflow-wrap:anywhere;min-height:42px;flex:1 1 170px}
.task-state{display:inline-flex;font-size:11px;line-height:1.4;padding:4px 8px;border-radius:7px;background:#e7ecdf;color:#566349;white-space:nowrap;flex:none}.task-working{background:#dbe9f3;color:#365469}.task-done{background:#e1ecd9;color:#46633b}
.order-task-equipment{font-size:13px;line-height:1.5;color:#66765b;margin:0;overflow-wrap:anywhere}.order-task-owner{font-size:12px;color:#526449}.task-claim{font-size:12px;min-height:42px;white-space:normal}.reminder-body:empty{display:none}
.order-tasks-modal{max-width:620px;width:calc(100vw - 24px)}.task-intro{color:#6a755f;line-height:1.5;font-size:14px}.task-options{display:grid;gap:8px}.task-option{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:6px;border:1px solid #cddabe;background:#f2f6eb;color:#35472a;padding:15px;border-radius:10px;white-space:normal;min-height:65px}.task-option small{font-size:12px;color:#68785b}.task-option:disabled{opacity:.55;cursor:default}.task-comment{margin:16px 0;font-size:13px;color:#5b6a50}.task-comment summary{cursor:pointer;min-height:36px}.task-comment textarea{width:100%;font-size:16px}.task-order-list{display:grid;gap:12px;margin-top:12px}.task-order-list article{padding:12px;border:1px solid #d5ddca;border-radius:10px;display:grid;gap:8px}.task-order-list .reminder-body{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;font-size:14px}#taskNotice{font-size:13px;color:#6b755e}
.order-task-panel{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f1f6e9;border:1px solid #cbd9bb;border-radius:12px;padding:14px;margin:0 0 14px;min-width:0}.order-task-panel>div:first-child{min-width:0;flex:1}.order-task-panel strong{font-size:14px;margin-right:8px}.order-task-panel p{margin:7px 0;font-size:13px;line-height:1.4;overflow-wrap:anywhere}.order-task-panel small{font-size:12px;line-height:1.4;color:#657259}.order-task-panel-actions{display:flex;gap:8px;flex-wrap:wrap}.order-task-panel-actions button{font-size:12px;min-height:42px}
@media(max-width:600px){.order-task-panel{flex-direction:column;align-items:stretch;padding:12px}.order-task-panel-actions{justify-content:flex-end}.order-task-bell{min-width:48px;padding:8px 6px}.header-title{flex-wrap:wrap;gap:6px}.header-title h1{min-width:0;overflow-wrap:anywhere}.order-task-link{font-size:14px}.order-tasks-modal .modal-content{padding:14px}.task-option{padding:12px}}

#stageContent:has(#orderTaskPanel .order-task-panel) .filling-unassigned{display:none}

.task-result-prompt{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:10px 12px;margin-top:10px;background:#f2f6e9;border:1px solid #cbd9bb;border-radius:9px;font-size:12px;color:#526646}.task-result-prompt button{font-size:12px;min-height:42px;white-space:normal;flex-shrink:0}@media(max-width:600px){.task-result-prompt{align-items:stretch;flex-direction:column;gap:8px}.task-result-prompt button{align-self:flex-start}}
