.takeout-entry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem 1rem;
  padding: .85rem 1rem;
  margin: .85rem 0;
  border: 1px solid var(--line,#4a624f);
  border-radius: 16px;
  background: var(--surface,#172a20);
  color: var(--text,#f4f7ec);
}
.takeout-entry[hidden] { display: none; }
.takeout-entry-copy { display: flex; align-items: start; gap: .75rem; flex: 1 1 13rem; min-width: 0; }
.takeout-entry-copy svg { color: #f6d68a; flex: none; margin-block-start: .1rem; }
.takeout-entry-copy p { color: var(--text-soft,#bad0bf); font-size: .875rem; margin: .2rem 0 0; }
.takeout-entry button { min-height: 44px; padding: .62rem .82rem; }
.takeout-entry-compact { margin-block: -.25rem .75rem; padding: 0; border: 0; background: none; }
#takeoutToday.takeout-entry { margin-block: 16px; }
@media (max-width: 480px) {
  #takeoutToday.takeout-entry {
    flex-direction: column;
    align-items: flex-start;
  }
  #takeoutToday .takeout-entry-copy { flex: none; }
}
.nouri-v2 #app {
  --today-food-log-gap: 16px;
}
.nouri-v2 .food-log-section:not([hidden]) {
  display: grid;
  gap: var(--today-food-log-gap);
}
.nouri-v2 .food-log-section > .section-head,
.nouri-v2 .food-log-section .food-log-actions,
.nouri-v2 .food-log-section #takeoutLog,
.nouri-v2 #foodLog > .fineprint {
  margin-block: 0;
}
.nouri-v2 .food-log-section > .section-head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--today-food-log-gap);
}
.nouri-v2 .food-log-section #takeoutLog:not(.takeout-entry) {
  display: none;
}
.nouri-v2 #foodLog {
  gap: var(--today-food-log-gap);
}
.nouri-v2 .food-log-section + [data-app-panel="home"] > #rolloverSix:not([hidden]) {
  margin-block-start: var(--today-food-log-gap);
}
.takeout-total-note { color: var(--text-soft,#bad0bf); font-size: .875rem; margin: 0 0 .6rem; }
.takeout-meal-label { margin: .6rem 0; color: #f6d68a; font-weight: 800; }
.takeout-day-marker { color: #f6d68a; display: inline-flex; align-items: center; justify-content: center; }
.takeout-day-marker svg { width: 14px; height: 14px; }
.takeout-day-marker .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.guide-day-progress .takeout-day-marker { align-self: center; }

.nouri-v2 .takeout-dialog {
  position: fixed;
  inset: auto;
  top: var(--dialog-centre,50%);
  left: calc(var(--dialog-left-gap,12px) + var(--dialog-inline-space,calc(100% - 24px)) / 2);
  transform: translate(-50%,-50%);
  width: var(--dialog-inline-space,calc(100% - 24px));
  max-width: 520px;
  max-height: var(--dialog-space,calc(100dvh - 24px));
  margin: 0;
  border: 1px solid var(--line,#4a624f);
  border-radius: 20px;
  overflow: hidden auto;
  overscroll-behavior: contain;
  scroll-padding: 12px;
  background: var(--surface,#172a20);
  color: var(--text,#f4f7ec);
}
.nouri-v2 .takeout-dialog [hidden] { display: none; }
.takeout-dialog::backdrop { background: rgb(5 15 10 / .72); }
.takeout-dialog-inner { padding: clamp(14px,4vw,25px); }
.takeout-dialog header { display: flex; justify-content: space-between; align-items: start; gap: .5rem; }
.takeout-dialog header p { margin: 0 0 .35rem; }
.takeout-dialog header .eyebrow { color: #f6d68a; }
.takeout-dialog header h2 { margin: 0 0 .35rem; overflow-wrap: anywhere; }
.takeout-dialog header p:last-child { color: var(--text-soft,#bad0bf); }
.takeout-dialog .dialog-x { min-width: 44px; min-height: 44px; border-radius: 10px; }
.nouri-v2 .takeout-dialog form { padding: 0; }
.takeout-choices { margin: .8rem 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; }
.takeout-choices legend { padding: 0; }
.takeout-choices label {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  padding: .65rem;
  min-height: 44px;
  border: 1px solid var(--line,#4a624f);
  border-radius: 11px;
  background: var(--surface-soft,#20392b);
  font-weight: 800;
}
.takeout-choices input,
#takeoutLogged { width: 1.1rem; height: 1.1rem; margin: 0; flex: none; }
.takeout-nutrition-note { font-size: .875rem; color: var(--text-soft,#bad0bf); margin: .75rem 0; }
#takeoutHandling select { font-size: 1rem; }
#takeoutPreview { padding: .8rem; background: var(--surface-soft,#20392b); border-radius: 12px; margin-block: .75rem; }
#takeoutPreview :is(h3,h4,p,ul) { margin: 0; }
#takeoutPreview h4 { margin: .6rem 0 .2rem; font-size: .9rem; }
#takeoutPreview ul { padding-inline-start: 1.1rem; }
#takeoutPreview p { margin-top: .3rem; }
#takeoutStatus:empty { display: none; }
.takeout-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; margin-top: .8rem; }
.takeout-actions button, #takeoutUndo { min-height: 44px; padding: .65rem 1rem; }
#takeoutUndo { margin-top: .4rem; }
