.nav .nav-group{font-size:var(--ui-caption);color:var(--ui-muted);padding:18px 12px 3px;letter-spacing:.04em}.nav a{padding-top:12px;padding-bottom:12px}.admin-meal-photo{width:78px;height:64px;object-fit:cover;border-radius:8px;flex:none}.admin-meal-row .grow{flex:1}.crm-filter{margin-bottom:20px;align-items:end}.crm-filter label{margin:0}.incoming-row td{background:#eeefef;color:var(--ui-muted)}.crm-table td{min-width:95px}.crm-table .admin-comment-column{min-width:180px;max-width:280px;white-space:pre-wrap}.crm-table button{margin:3px 0}.recipes-next{font-family:var(--ui-font);color:#102f32;background:#fff;padding:28px;border-radius:14px}.recipes-next h1,.recipes-next h2{font-family:var(--ui-font);font-weight:700;color:#102f32}.recipes-next h1{font-size:40px}.recipes-next h2{font-size:23px}.recipes-next label{font-size:var(--ui-caption);color:#354c60}.recipes-next input,.recipes-next select,.recipes-next textarea{border:1px solid #ccd6de;border-radius:6px;min-width:0;width:100%;font:inherit;color:#112b3a;padding:10px}.recipes-next .primary,.recipes-next .selected{background:linear-gradient(130deg,#217139,#034d36);color:white;border-color:transparent}.recipes-next button,.recipes-next .button{border-radius:7px;padding:11px 16px;font-family:var(--ui-font)}.recipe-filters{display:grid;grid-template-columns:2fr 1.2fr 1.4fr 1fr 1.2fr;gap:18px;align-items:end;margin:28px 0}.recipe-filters label{margin:0}.recipe-chips{display:flex;gap:8px;flex-wrap:wrap}.recipes-next .recipe-chip{padding:9px 15px;border:0;background:#eff3f4;border-radius:16px;color:#405c70;display:inline-block;font-size:var(--ui-caption);white-space:nowrap}.recipes-next .recipe-chip.selected{background:#1c713c;color:white}.recipe-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.recipe-card{padding:12px;border:1px solid #edf0f1;border-radius:14px;box-shadow:0 3px 8px #193b3010;display:flex;flex-direction:column;min-width:0}.recipe-card>img{width:100%;aspect-ratio:1.3;object-fit:cover;border-radius:10px}.recipe-card h2{font-size:24px;line-height:1.3;margin:14px 4px;min-height:2.6em;overflow-wrap:normal}.recipe-meta{display:flex;gap:14px;color:#57718a;align-items:center;margin:0 4px 16px}.recipe-meta span+span{border-left:1px solid #d7dfe6;padding-left:14px}.recipe-tags{font-size:var(--ui-caption);color:#57718a;min-height:38px}.recipe-count{border-top:1px solid #e1e7ed;color:#57718a;padding:16px 0;margin-top:auto}.recipe-card-actions{display:flex;gap:8px}.recipe-card-actions>*{flex:1;text-align:center;margin:0}.recipe-card-actions button{background:#f1f5f6;border-color:#e4ecee;font-weight:600}.recipes-next .danger{color:#d40016;background:#fff0f3;border-color:#ffe0e5}.recipe-import{margin-top:26px}.recipe-no-photo{background:#f2f5f4;aspect-ratio:1.3;display:grid;place-items:center;border-radius:10px;color:var(--ui-muted)}.editor-nav{display:flex;justify-content:space-between}.editor-nav button{border:0;background:transparent;padding-left:0}.recipe-editor h1{font-size:32px;margin:20px 0}.recipe-top{display:grid;grid-template-columns:1fr 1.6fr 1.2fr;gap:26px;padding:18px;border:1px solid #e2e7eb;border-radius:7px}.editor-photo img{width:100%;aspect-ratio:1.45;object-fit:cover;border-radius:7px;margin-bottom:10px}.recipe-editor label{margin:0 0 14px}.recipe-editor small{display:block;color:#607185;font-size:var(--ui-caption);margin:5px 0 18px}.recipe-editor input[type=number]{max-width:240px}.recipe-middle{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:16px}.recipe-middle>section,.recipe-steps{border:1px solid #e2e7eb;padding:18px;border-radius:7px;min-width:0}.recipe-middle h2,.recipe-steps h2{font-size:22px;margin:0 0 15px}.ingredient-caption,.next-ingredient{display:grid;grid-template-columns:2fr 1fr .7fr 32px;gap:8px;align-items:center}.ingredient-caption{font-size:var(--ui-caption);margin-bottom:8px}.next-ingredient{margin:8px 0}.next-ingredient label{margin:0}.next-ingredient button{padding:4px;border:0}.ingredient-note{grid-column:1/-1;display:flex;gap:12px;align-items:end}.ingredient-note label:first-child{flex:1}.ingredient-note label{font-size:var(--ui-caption)}.ingredient-note input[type=checkbox]{width:auto}.recipe-steps{margin-top:14px}.next-step{display:grid;grid-template-columns:32px 1fr 30px 30px 30px;gap:10px;align-items:center;margin-bottom:8px}.next-step>span{border-radius:50%;background:#f1f4f6;width:32px;height:32px;display:grid;place-items:center}.next-step textarea{min-height:45px;resize:vertical}.next-step button{padding:6px;border:0}.recipe-editor .form-actions{margin-bottom:0}.editor-chain-list p{font-size:var(--ui-caption)}.editor-chain-list button{padding:2px 8px}.editor-chain-list small{display:inline;margin:0}.recipe-editor form{max-width:none}.recipe-editor input[type=file][hidden]{display:none}
@media(max-width:1200px){.recipe-filters{grid-template-columns:2fr 1fr 1fr}.recipe-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.recipe-card h2{font-size:21px}.recipes-next{padding:20px}.recipe-top{grid-template-columns:1fr 1fr}.recipe-top>div:last-child{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:12px}.recipe-top>div:last-child small{margin:0}}
@media(max-width:1100px){.recipe-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.recipe-middle{grid-template-columns:1fr}.recipe-filters{grid-template-columns:1fr 1fr}.recipe-meta{font-size:var(--ui-caption)}}
@media(max-width:620px){.recipes-next{padding:14px}.recipes-next h1{font-size:28px}.recipe-cards,.recipe-top,.recipe-filters{grid-template-columns:1fr}.recipe-top>div:last-child{display:block}.recipe-top{padding:12px}.recipe-card h2{min-height:0}.next-step{grid-template-columns:24px 1fr 24px 24px 24px;gap:4px}.ingredient-caption,.next-ingredient{grid-template-columns:minmax(90px,2fr) minmax(55px,1fr) 25px 24px;gap:5px}.ingredient-note{flex-wrap:wrap}.recipe-card .recipe-chips{flex-wrap:nowrap}.recipe-editor .form-actions{flex-wrap:wrap}.admin-meal-row{flex-wrap:wrap}}

.serving-stepper{display:flex;max-width:240px;margin-bottom:8px}.serving-stepper input{text-align:center;appearance:textfield}.serving-stepper button{flex:none}.serving-stepper input::-webkit-inner-spin-button{appearance:none}

.ingredient-note{display:block;margin:0 0 5px}.ingredient-note summary{font-size:var(--ui-caption);color:var(--ui-muted);cursor:pointer}.ingredient-note[open]{padding:8px;background:#f8faf9}.ingredient-note>label{margin-top:6px}.next-ingredient select[name=ingredient-unit]{padding:10px 2px}.recipe-editor .recipe-steps textarea{min-height:40px;height:40px}.recipe-middle{align-items:start}.recipe-middle>section{height:100%}
@media(max-width:620px){.ingredient-caption,.next-ingredient{grid-template-columns:minmax(74px,2fr) minmax(42px,1fr) 46px 24px}.next-ingredient input,.next-ingredient select{font-size:var(--ui-caption);padding:8px 4px}.recipe-editor .recipe-steps textarea{min-height:76px;height:auto;font-size:var(--ui-caption)}}
/* The navigation follows the document so every item can be reached on a long page. */
@media(min-width:761px){.sidebar,.client-sidebar{position:static;top:auto;height:auto;min-height:100vh;align-self:stretch}.sidebar footer{margin-top:28px}}
@media(max-width:760px){.sidebar,.client-sidebar{height:100dvh;overflow-y:auto;overscroll-behavior:contain}.sidebar footer{flex-shrink:0}}
.meal-workspace{display:block}.meal-selector{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}.meal-choice{grid-template-columns:84px minmax(0,1fr) 12px;min-width:0;height:100%;margin:0}.meal-preview{width:84px;height:92px}.meal-name{font-size:19px}.recipe-readonly .recipe-top{margin-top:20px}.recipe-readonly input[readonly],.recipe-readonly textarea[readonly]{background:#fafcfb;cursor:default}.recipe-readonly .readonly-recipe-heading{font-size:30px;line-height:1.2;margin:0 0 16px}.recipe-readonly .recipe-top>div>label{margin-top:12px}.readonly-ingredient{display:grid;grid-template-columns:minmax(0,2fr) minmax(70px,1fr) 70px;gap:10px;align-items:center;margin:10px 0}.readonly-ingredient label{margin:0}.readonly-ingredient .ingredient-note{grid-column:1/-1}.readonly-ingredient output{border:1px solid #ccd6de;background:#fafcfb;border-radius:6px;padding:10px;min-height:40px;color:#112b3a;overflow-wrap:anywhere}.readonly-ingredient.caption{font-size:var(--ui-caption);color:#354c60}.readonly-step{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:start;gap:14px;margin:12px 0}.readonly-step>span{display:grid;place-items:center;background:#f1f4f6;border-radius:50%;height:32px}.readonly-step p{margin:0;padding:6px 10px;border:1px solid #dce3e7;border-radius:6px;white-space:pre-wrap;overflow-wrap:anywhere}.meal-action-panel{padding:20px 0}.client-layout .recipes-next,.client-layout .recipes-next h2,.client-layout .recipes-next h3,.client-layout .recipes-next button{font-family:var(--ui-font)}.client-layout .recipes-next .recipe-chip{font-family:var(--ui-font)}.client-layout .recipes-next h2{font-weight:700;margin-bottom:14px;color:#102f32}
@media(max-width:900px){.meal-selector{grid-template-columns:1fr}.meal-choice{grid-template-columns:84px minmax(0,1fr) 12px}.recipe-readonly .recipe-top{grid-template-columns:1fr}.recipe-readonly .recipe-top>div:last-child{display:block}.recipe-readonly .recipe-middle{grid-template-columns:1fr}}
@media(max-width:620px){.readonly-ingredient{grid-template-columns:minmax(90px,2fr) minmax(58px,1fr) 42px;gap:6px}.readonly-ingredient input,.readonly-ingredient output{font-size:var(--ui-caption);padding:8px 4px}.recipe-readonly .readonly-recipe-heading{font-size:24px}.readonly-step{grid-template-columns:26px minmax(0,1fr);gap:8px;font-size:var(--ui-caption)}}

/* Compact pages and visible communication, using the existing Path palette. */
.layout>.main{margin:0 auto;align-self:start}.staff-header-tools{display:flex;align-items:center;gap:16px}.topbar>.staff-header-tools{margin-left:auto}.notification-button{position:relative;display:inline-flex;gap:6px;align-items:center;justify-content:center;min-width:42px;min-height:42px}.notification-button svg{width:24px;height:24px}.message-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:12px;background:#af2936;color:white;font:600 var(--ui-caption)/1 var(--ui-font);flex:none}.message-count[hidden]{display:none!important}.nav .message-count{margin-left:auto}.notification-button .message-count{position:absolute;top:-5px;right:-7px}.inbox-banner{display:flex;gap:15px;align-items:center;justify-content:space-between;padding:12px 16px;border:1px solid #b8cdbf;background:#edf5ef;border-radius:9px;margin:0 0 18px}.sos-alert,.inbox-item{display:flex;gap:18px;align-items:center;justify-content:space-between;padding:16px 20px;border-radius:10px;margin:0 0 12px}.sos-alert{border:1px solid #e7a7ad;border-left:5px solid #af2936;background:#fff0f1;color:#84232a}.sos-alert p,.inbox-item p{white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0}.sos-alert>div,.inbox-item>div{min-width:0}.sos-alert small,.inbox-item small{display:block}.sos-alert button,.inbox-item button{flex:none}.inbox-item{background:white;border:1px solid #dce1d8}.inbox-item.urgent{border-color:#e7a7ad}.chat-conversation{min-width:0}.chat-contact{justify-content:space-between;text-align:left}.chat-photo{width:160px;max-height:140px;object-fit:cover;border-radius:8px}.bubble.sos-bubble{border:1px solid #e7a7ad;background:#fff3f3}.message-text{white-space:pre-wrap}.sos-reply-context{padding:9px 12px;background:#fff0f1;color:#84232a;border-left:3px solid #af2936;margin-bottom:12px}.recipe-editor .next-ingredient{margin:5px 0;gap:8px}.recipe-editor .next-ingredient input,.recipe-editor .next-ingredient select{min-height:36px;padding:7px 9px;font-size:var(--ui-caption)}.recipe-editor .next-ingredient label>select{margin-top:0}.recipe-editor #next-ingredients{margin-bottom:14px}.recipe-readonly .readonly-ingredient{padding:8px 0;margin:0;border-bottom:1px solid #edf0ed;grid-template-columns:minmax(0,1fr) 80px 46px;font-size:var(--ui-caption)}.recipe-readonly .readonly-ingredient output{border:0;background:none;min-height:0;padding:0;text-align:right;font-variant-numeric:tabular-nums}.recipe-readonly .readonly-ingredient.caption{font-size:var(--ui-caption)}.recipe-readonly .readonly-ingredient .ingredient-note{font-size:var(--ui-caption);margin:0;color:#69746d}
@media(max-width:760px){.staff-header-tools{gap:10px}.inbox-banner,.sos-alert,.inbox-item{flex-wrap:wrap;padding:12px}.inbox-banner button,.sos-alert button{width:100%}.recipe-readonly .readonly-ingredient{grid-template-columns:minmax(0,1fr) 58px 30px}.recipe-editor .next-ingredient input,.recipe-editor .next-ingredient select{padding:7px 3px;font-size:var(--ui-caption)}}

.recipe-readonly .ingredient-total-caption{grid-column:2/4;text-align:right}

.crm-table .admin-comment-column{min-width:180px;max-width:280px;white-space:pre-wrap}.unified-profile .formgrid>label{min-width:0}.history table{min-width:1380px}.history .small{white-space:nowrap}
.crm-table .client-photo-cell{width:70px;min-width:70px;vertical-align:middle}.client-list-photo{width:48px;height:48px;object-fit:cover;border-radius:50%;display:block;border:1px solid #d6dfd6}.client-list-photo.placeholder{display:flex;align-items:center;justify-content:center;background:#eaf0e8;color:#315848;font:600 20px var(--ui-font)}.purchase-control{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}.purchase-control button{min-width:32px;min-height:32px;padding:4px 8px}.purchase-control span{min-width:58px;text-align:center;font-variant-numeric:tabular-nums}.purchase-control button:disabled{opacity:.45;cursor:default}
.recipe-middle>section{height:auto;align-self:start}.recipe-readonly .readonly-ingredient{padding:5px 0;line-height:1.35;min-height:0}.recipe-middle h2{margin-bottom:10px}.recipe-readonly .recipe-middle textarea{min-height:64px;height:auto;resize:none}.compact-ingredient{align-items:end;margin:4px 0;grid-template-columns:minmax(0,1fr) 110px 32px}.compact-ingredient label{margin:0;font-size:var(--ui-caption)}.compact-ingredient input,.compact-ingredient select{min-height:34px;padding:6px 8px}.compact-ingredient button{padding:6px;height:34px}.chat-media-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:8px 0}.chat-media-tools button,.emoji-picker summary{padding:7px 12px;font-size:var(--ui-caption)}.emoji-picker{position:relative}.emoji-picker summary{cursor:pointer;list-style:none;border:1px solid #d7e1d7;border-radius:7px;background:white}.emoji-panel{position:absolute;bottom:calc(100% + 8px);left:0;width:290px;max-height:300px;overflow:auto;z-index:12;padding:12px;background:white;border:1px solid #d7e1d7;border-radius:12px;box-shadow:0 8px 24px #153c3022}.emoji-panel section+section{margin-top:10px}.emoji-panel strong{font-size:var(--ui-caption);color:#647768}.emoji-panel section>div{display:grid;grid-template-columns:repeat(6,1fr);gap:3px}.emoji-panel button{font-family:var(--ui-font);font-size:22px;padding:5px;border:0;background:none}.emoji-panel button:hover{background:#edf4ee}.voice-draft{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0;padding:8px;background:#f0f5ef;border-radius:10px}.voice-draft[hidden]{display:none}.voice-draft audio,.voice-message audio{width:280px;max-width:100%;display:block}.voice-message{min-width:0;max-width:100%}.voice-message button{margin-top:5px}.voice-transcript{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}.voice-status{font-size:var(--ui-caption);color:#52685a}.voice-message audio{height:40px}.bubble{max-width:85%;overflow-wrap:anywhere}#medicine-photo-preview .thumb{width:100px;height:100px;object-fit:contain}
@media(max-width:760px){.compact-ingredient{grid-template-columns:minmax(0,1fr) 75px 28px}.emoji-panel{width:260px}.voice-message audio,.voice-draft audio{width:235px}.bubble{max-width:100%}}

/* Shared message field: compact attachment / text / emoji / microphone / send row. */
.message-composer{min-width:0;width:100%;font-family:var(--ui-font);margin:10px 0}
.compose-bar{display:flex;align-items:flex-end;gap:4px;background:#fff;border:1px solid #dce3df;border-radius:14px;padding:6px;min-height:54px}
.compose-bar:focus-within{border-color:#8aa89b;box-shadow:0 0 0 2px #285b470d}
.compose-bar textarea{flex:1;min-width:0;width:0;min-height:40px!important;height:40px;max-height:120px;padding:10px 5px;margin:0;border:0;border-radius:0;background:transparent;resize:none;font:var(--ui-body)/20px var(--ui-font);box-shadow:none;outline:none;overflow-y:auto}
.compose-bar textarea::placeholder{color:var(--ui-muted)}
.compose-bar .compose-icon,.compose-bar .emoji-picker summary{display:flex;align-items:center;justify-content:center;flex:0 0 38px;width:38px;height:40px;min-width:0;padding:7px;margin:0;border:0;border-radius:50%;color:var(--ui-muted);background:transparent;cursor:pointer}
.compose-bar .compose-icon:hover{color:#285b47;background:#f0f5f2}
.compose-bar .compose-icon.recording{color:#bc4943;background:#ffefed}
.compose-bar .compose-send{flex:0 0 40px;width:40px;height:40px;display:flex;align-items:center;justify-content:center;border:0;border-radius:50%;padding:8px;margin:0;background:#285b47;color:white}
.compose-bar svg{display:block;flex-shrink:0}
.compose-bar .emoji-picker{flex:0 0 38px;align-self:flex-end;margin:0}
.compose-bar .emoji-picker summary::-webkit-details-marker{display:none}
.compose-bar .emoji-panel{left:auto;right:0;width:280px;max-width:75vw;max-height:220px}
.message-composer .voice-status:empty{display:none}
.message-composer .voice-status{padding:5px 10px}
.message-composer .voice-draft{margin:0 0 6px}
.attachment-draft{display:flex;flex-wrap:wrap;gap:8px;padding:8px 0}
.attachment-draft[hidden],.message-composer [hidden]{display:none!important}
.attachment-draft>div{position:relative;width:76px;height:76px}
.attachment-draft img{width:100%;height:100%;object-fit:cover;border-radius:9px}
.attachment-draft button{position:absolute;top:-4px;right:-4px;border:0;border-radius:50%;width:24px;height:24px;padding:0;background:#33443de6;color:white}
.message-photos{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0;max-width:100%}
.message-photos:empty{display:none}
.message-photos img{display:block;width:180px;max-width:100%;max-height:200px;object-fit:cover;border-radius:9px}
.message-photos a{max-width:100%}
.history .message-photos img{width:110px;height:90px}
.history .voice-message{width:230px}
.chat-conversation{min-width:0}
.chat-conversation>form{margin-top:0}
@media(max-width:480px){.compose-bar{gap:0;padding:4px}.compose-bar .compose-icon,.compose-bar .emoji-picker summary,.compose-bar .emoji-picker{width:32px;flex-basis:32px}.compose-bar .compose-send{width:36px;height:36px;flex-basis:36px;margin-bottom:2px}.message-composer .voice-draft audio{width:220px;max-width:calc(100% - 50px)}}

.royal-number{object-fit:contain!important;background:transparent!important;border-radius:10px}
.completion-button{display:inline-flex;align-items:center;gap:7px;color:#167644!important;background:transparent!important;border:0!important;padding:5px 0!important}
.completion-button svg{width:18px;height:18px;border-radius:50%;color:white;background:#32a263;padding:2px;stroke-width:2.3}
.completion-button,.completion-status{font-weight:400!important;font-size:var(--ui-caption)!important;line-height:1.4;color:#167644!important;background:transparent!important}
.completion-status{display:inline-flex;align-items:center;gap:7px;padding:0!important;border:0!important}
.completion-button:not(:has(svg))::before,.completion-status::before{content:'✓';display:inline-flex;align-items:center;justify-content:center;flex:0 0 17px;width:17px;height:17px;border-radius:50%;background:#32a263;color:white;font:var(--ui-caption)/1 var(--ui-font)}
.medicine-reference{background:#f0f5ef;border-left:3px solid #7d9c83;padding:12px 15px;border-radius:6px;margin:12px 0;line-height:1.5}
.medicine-reference p{margin:5px 0}.medicine-reference small{color:#667668}
.bulk-picker{border:1px solid #d7e2da;border-radius:12px;padding:16px;background:white;margin:12px 0}
.bulk-picker-head,.bulk-tools{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap}
.bulk-picker-head h3{margin:0}.bulk-picker-head strong{color:#285b47}
.bulk-filters{display:grid;grid-template-columns:minmax(180px,1fr) minmax(150px,1fr) auto;align-items:center;gap:10px;margin:14px 0}
.bulk-filters .check{margin:0;white-space:nowrap}.bulk-tools{justify-content:flex-start;margin-bottom:10px}.bulk-tools span{margin-left:auto;color:#657a6c;font-size:var(--ui-caption)}
.bulk-client-list{max-height:250px;overflow:auto;overscroll-behavior:contain;border-top:1px solid #e1e8e2}
.bulk-client{display:flex;align-items:center;gap:12px;padding:10px 8px;margin:0;border-bottom:1px solid #edf1ec;cursor:pointer}
.bulk-client input{width:18px;height:18px;flex-shrink:0}.bulk-client small{display:block;font-size:var(--ui-caption);color:var(--ui-muted);margin-top:2px}.bulk-client:has(input:checked){background:#edf5ee}
.bulk-client[hidden],.bulk-empty[hidden]{display:none}.bulk-empty{text-align:center;padding:15px;color:var(--ui-muted)}
@media(max-width:600px){.bulk-filters{grid-template-columns:1fr}.bulk-picker{padding:10px}.bulk-client-list{max-height:210px}}
.voice-message [hidden],label[hidden]{display:none!important}
