/* Meal theme adapter. The reused milk-card document remains black and white. */
@media screen {
  body.meal-depth-ui .meal-feeding-reused .tube-feeding-page-head { display:none !important; }
  body.meal-depth-ui #tubeFeeding.meal-feeding-reused > .tube-feeding-page-panel { background:transparent !important; }
  body.meal-depth-ui #tubeFeeding .tube-feeding-workspace { color:#435967; max-width:1240px; }
  body.meal-depth-ui .tube-feeding-workspace .tf-page-heading h1 { display:none; }
  body.meal-depth-ui .tube-feeding-workspace .tf-page-heading { justify-content:flex-end; }
  body.meal-depth-ui :is(.tube-feeding-workspace,.tf-edit-dialog,.tf-detail-dialog,.tf-card-dialog,.tf-confirm-dialog) .button { border:1px solid #c4ced6; border-radius:5px; padding:8px 12px; background:linear-gradient(#fff,#eef2f5); color:#516b7b; font:inherit; cursor:pointer; box-shadow:inset 0 1px #fff,0 2px 2px #354c591a; }
  body.meal-depth-ui :is(.tube-feeding-workspace,.tf-edit-dialog,.tf-card-dialog,.tf-confirm-dialog) .button.primary { color:#684214; border-color:#d9953c; border-bottom-width:3px; background:linear-gradient(#ffe2a0,#fab157); }
  body.meal-depth-ui :is(.tf-edit-dialog,.tf-detail-dialog,.tf-card-dialog,.tf-confirm-dialog) { color:#435967; border-color:#c7d3dd; box-shadow:0 16px 55px #263d4c40; }
  body.meal-depth-ui :is(.tf-edit-dialog,.tf-detail-dialog,.tf-card-dialog,.tf-confirm-dialog)::backdrop { background:#293c4b70; }
  body.meal-depth-ui :is(.tf-edit-dialog,.tf-detail-dialog,.tf-card-dialog) .modal-header { display:flex; gap:14px; align-items:center; justify-content:space-between; padding:12px 18px; background:linear-gradient(110deg,#ffdc91,#fab157); border-bottom:1px solid #d69c4c; }
  body.meal-depth-ui :is(.tf-edit-dialog,.tf-card-dialog) .modal-actions { display:flex; gap:10px; justify-content:flex-end; padding:12px 18px; border-top:1px solid #d6e1e9; background:linear-gradient(#fff,#f0f4f7); }
  body.meal-depth-ui .tf-edit-dialog .tube-feeding-registry-dialog { padding:0; background:#fff; }
  body.meal-depth-ui .tf-edit-dialog #tubeFeedingRegistryForm { display:block; margin:0; padding:0; }
  body.meal-depth-ui .tf-edit-dialog :is(.compact-form,.tube-feeding-plan-editor) { margin:0; padding:16px 18px; border:0; border-radius:0; }
  body.meal-depth-ui .tf-edit-dialog .compact-form { display:grid; grid-template-columns:minmax(280px,2fr) minmax(150px,.8fr) minmax(220px,1fr); align-items:end; gap:3px 10px; padding:1px 12px 0; border-bottom:1px solid #dde5ec; background:#f5f8fa; }
  body.meal-depth-ui .tf-edit-dialog .compact-form .tf-profile-source { grid-column:1 / span 2; }
  body.meal-depth-ui .tf-edit-dialog .compact-form .tf-profile-notes { grid-column:1 / -1; }
  body.meal-depth-ui .tf-edit-dialog .compact-form .tf-inline-control { display:flex; gap:6px; min-width:0; }
  body.meal-depth-ui .tf-edit-dialog .compact-form .tf-inline-control > select { flex:1 1 150px; }
  body.meal-depth-ui .tf-edit-dialog .compact-form .tf-inline-control > input { flex:1 1 180px; }
  body.meal-depth-ui .tf-edit-dialog .compact-form :is(input,select,textarea) { height:36px; min-height:36px; padding-block:4px; }
  body.meal-depth-ui .tf-edit-dialog .compact-form .tf-profile-status { min-height:36px; }
  body.meal-depth-ui .tf-edit-dialog .compact-form textarea { max-height:120px; resize:vertical; }
  body.meal-depth-ui .tf-edit-dialog label { display:grid; gap:5px; min-width:0; font-size:13px; }
  body.meal-depth-ui .tf-edit-dialog :is(input,select,textarea) { width:100%; min-width:0; border:1px solid #c5d2dc; border-radius:4px; padding:6px; color:#476273; background:#fff; }
  body.meal-depth-ui .tf-edit-dialog input[type="checkbox"] { width:20px; height:20px; min-height:20px; }
  body.meal-depth-ui .tf-edit-dialog .checkbox-label { display:flex; gap:6px; align-items:center; }
  body.meal-depth-ui .tf-edit-dialog .tube-feeding-plan-editor-head { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }
  body.meal-depth-ui .tf-edit-dialog .tube-feeding-plan-defaults { border:0; border-radius:0; border-block:1px solid #dce5ec; background:#f4f7f9; }
  body.meal-depth-ui .tf-edit-dialog .tube-feeding-plan-editor-head output { font-size:14px; }
  body.meal-depth-ui .tf-edit-dialog .muted { margin:12px 18px; font-size:13px; color:#647783; }
  body.meal-depth-ui .tf-edit-dialog .hidden { display:none !important; }
  body.meal-depth-ui .tf-edit-dialog button:disabled { opacity:.55; cursor:not-allowed; }
  body.meal-depth-ui :is(.tf-filters,.tf-card-preview) { background:#f1f5f8; }
  body.meal-depth-ui #tubeFeeding .tf-table th { background:linear-gradient(#ffe3ac,#fac575) !important; color:#654b28 !important; position:sticky !important; top:0 !important; }
  body.meal-depth-ui #tubeFeeding .tf-table tbody td { color:#435967 !important; background:#fff !important; border-color:#dce4ea !important; }
  body.meal-depth-ui #tubeFeeding .tf-table tbody tr:nth-child(even) td { background:#fff9ef !important; }
  body.meal-depth-ui :is(.tf-table,.tf-detail-table) :is(th,td) { border-color:#dce4ea; }
  body.meal-depth-ui .tf-status.is-confirmed { color:#72501f; background:#ffebc4; }
  body.meal-depth-ui .tf-notice:not(.tf-error) { background:#f2f6f8; border-color:#a6bac8; color:#4d6778; }
  body.meal-depth-ui :is(.tf-table,.tf-detail-body) small { color:#637986; }
  body.meal-depth-ui .tf-edit-dialog .tf-meal-grid:nth-child(even) { background:#fff9ef; }
}
@media screen and (max-width:760px) {
  body.meal-depth-ui .tf-edit-dialog .compact-form { grid-template-columns:minmax(0,1.5fr) minmax(150px,1fr); padding:10px 8px; }
  body.meal-depth-ui .tf-edit-dialog .compact-form :is(.tf-profile-resident,.tf-profile-source,.tf-profile-notes) { grid-column:1 / -1; }
  body.meal-depth-ui .tf-edit-dialog .compact-form :is(input,select,textarea),
  body.meal-depth-ui .tf-edit-dialog .compact-form .tf-profile-status { height:auto; min-height:44px; }
  body.meal-depth-ui .tf-edit-dialog .compact-form :is(input,select,textarea) { height:44px; }
  body.meal-depth-ui .tf-edit-dialog .tube-feeding-plan-editor { padding:10px 6px; }
  body.meal-depth-ui .tf-edit-dialog .modal-header { padding:10px; }
  body.meal-depth-ui #tubeFeeding .tf-table tbody tr { border-color:#d4e0e8; }
  body.meal-depth-ui #tubeFeeding .tf-table td:first-child { background:#f0f5f8 !important; }
}
@media screen and (max-width:500px) {
  body.meal-depth-ui .tf-edit-dialog .compact-form { grid-template-columns:minmax(0,1fr); }
  body.meal-depth-ui .tf-edit-dialog .compact-form > label { grid-column:1 !important; }
}
 .tf-add-notice-dialog h2 { margin:0 0 14px; font-size:20px; line-height:1.4; font-weight:750; }
 .tf-add-notice-dialog .tf-notice-word { white-space:nowrap; }
 .tf-add-notice-dialog .tf-notice-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; }
 .tf-add-notice-dialog a.button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; text-decoration:none; }
 .tf-add-notice-dialog :is(button,a):focus-visible { outline:2px solid #b16b15; outline-offset:3px; }
