:root {
  color-scheme: light;
  --paper: #FFFFFF;
  --ink: #222222;
  --accent: #59131B;
  --sand: #E5E5E5;
  --muted: #626262;
  --rule: rgba(34, 34, 34, .2);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.75 Inter, sans-serif; -webkit-font-smoothing: antialiased; }
header, main, footer { width: min(75rem, calc(100% - 6rem)); margin-inline: auto; }
a { color: var(--accent); text-underline-offset: .25em; }
a:hover { color: var(--muted); }
p { margin: 0 0 1.25rem; }
header { min-height: 6rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.25rem; border-bottom: 1px solid var(--rule); }
.wordmark { font: 400 1.65rem/.95 'Instrument Serif', Georgia, serif; text-decoration: none; color: var(--ink); }
.wordmark span { display: block; margin-left: 1.6rem; }
.brand-logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand-logo .logo-image, .logo-image { display: block; height: 2.125rem; width: auto; max-width: 100%; object-fit: contain; }
.header-brand { display: flex; align-items: center; gap: 2rem; min-width: 0; }
.header-actions { display: flex; align-items: center; flex-shrink: 0; gap: 1.5rem; margin-left: auto; }
.header-link { font-size: .9375rem; font-weight: 500; padding-block: .75rem; }
main { min-height: calc(100vh - 14rem); padding-block: 1.5rem 3rem; animation: arrive .45s ease-out; }
.eyebrow { font-size: .8125rem; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 1.25rem; }
h1 { color: var(--accent); font: 400 2rem/1.1 'Instrument Serif', Georgia, serif; letter-spacing: -.015em; margin: 0; padding-left: 2rem; border-left: 1px solid var(--rule); }
#status { max-width: 65ch; margin-block: 1.5rem; }
#status:empty { display: none; }
form { display: flex; flex-wrap: wrap; align-items: end; gap: 1.25rem; margin: 1.5rem 0; }
label { display: grid; gap: .6rem; font-size: .9375rem; font-weight: 500; }
input, select, button { font: 400 1rem/1.5 Inter, sans-serif; border: 1px solid var(--rule); padding: .85rem 1rem; color: var(--ink); background: transparent; border-radius: 0; max-width: 100%; min-width: 0; }
input, select { min-height: 3.25rem; }
input { width: 100%; }
input:focus, select:focus { border-color: var(--accent); }
button { cursor: pointer; min-height: 3.25rem; font-weight: 500; background: var(--accent); border-color: var(--accent); color: var(--paper); transition: background .2s ease, color .2s ease, border-color .2s ease; }
button:hover { background: var(--ink); border-color: var(--ink); }
button.plain { background: transparent; color: var(--accent); border-color: var(--rule); }
button.plain:hover { background: rgba(34, 34, 34, .05); border-color: var(--accent); }
button:disabled { cursor: wait; opacity: .6; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--sand); color: var(--accent); }
#login, #password-login, #verify { max-width: 44rem; padding-block: .5rem 1.5rem; }
#login label, #verify label { flex: 1 1 20rem; }
#password-login label { flex: 1 1 17rem; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 3.25rem; }
#toggle-password { position: absolute; right: 1px; top: 1px; bottom: 1px; width: 3rem; min-height: 0; padding: 0; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink); }
#toggle-password:hover { color: var(--muted); background: rgba(34, 34, 34, .05); }
#toggle-password .eye-slash { display: none; }
#toggle-password[aria-pressed='true'] .eye-slash { display: block; }
#show-password, #show-code, #back { flex-basis: 100%; width: fit-content; justify-self: start; border: 0; padding: .5rem 0; min-height: 2.75rem; text-align: left; text-decoration: underline; text-underline-offset: .3em; }
#show-password:hover, #show-code:hover, #back:hover { background: transparent; color: var(--muted); }
.form-error { flex-basis: 100%; margin: 0; color: var(--accent); font-weight: 500; }
.form-error:empty { display: none; }
.member-row .input-error, .input-error { display: block; margin: 0; color: var(--accent); font-size: .8125rem; font-weight: 500; line-height: 1.5; }
.input-error:empty { display: none; }
input[aria-invalid='true'] { border-color: var(--accent); border-width: 2px; }
#week-start-hint { color: #75535a; font-size: .8125rem; font-weight: 400; }
#access { align-items: flex-start; }
#access > button { margin-top: 2.1rem; }
#access label { gap: .35rem; }
#management-status:empty { display: none; }
@media (max-width: 40rem) { #access > button { margin-top: 0; } }
#verify input { letter-spacing: .22em; max-width: 20rem; }
#admin { margin-block: 0 1.5rem; padding-block: 1.25rem; border-block: 1px solid var(--rule); }
#admin h2 { font: 400 clamp(2rem, 4vw, 3rem)/1.15 'Instrument Serif', Georgia, serif; margin: 0 0 1rem; }
#admin > p { max-width: 65ch; color: var(--muted); }
#access { margin-bottom: .5rem; gap: 1rem; }
#access label:first-child { flex: 1 1 17rem; }
#access label:nth-child(2) { flex: 0 1 12rem; }
#access button { font-size: .9375rem; }
#library { margin-top: 0; }
#library nav { display: flex; flex-wrap: wrap; gap: .5rem 2.5rem; }
#library nav button { background: transparent; color: var(--ink); padding: .75rem 0; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 1.125rem; }
#library nav button[aria-pressed='true'] { color: var(--accent); border-bottom-color: var(--accent); }
#library nav button:hover { color: var(--accent); }
#filters { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-block: 2rem 1.5rem; }
#filters label { flex: 0 1 17rem; }
#filters select { width: 100%; }
#count { color: var(--muted); font-size: .875rem; margin-bottom: 1rem; }
#entries > details { border-top: 1px solid var(--rule); }
#entries > details:last-child { border-bottom: 1px solid var(--rule); }
#entries summary { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding-block: 1.4rem; list-style: none; font-size: 1.125rem; line-height: 1.5; font-weight: 500; cursor: pointer; overflow-wrap: anywhere; }
#entries summary::-webkit-details-marker { display: none; }
#entries summary::after { content: '+'; font-size: 1.5rem; line-height: 1; color: var(--muted); font-weight: 400; flex: 0 0 auto; }
#entries details[open] > summary::after { content: '−'; }
#entries summary:hover { color: var(--accent); }
article { max-width: 70ch; white-space: pre-line; padding: 0 0 2rem; overflow-wrap: anywhere; }
article p { margin-bottom: 1rem; }
article h2, article h3 { font-size: 1.25rem; line-height: 1.4; margin-block: 1.5rem .75rem; }
article a { overflow-wrap: anywhere; }
article img { max-width: 100%; height: auto; }
#entries details[open] article { animation: arrive .3s ease-out; }
.recommendation-image { display: block; width: auto; max-width: 100%; max-height: 24rem; object-fit: contain; margin: .5rem 0 1.5rem; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.5rem 2rem; border-top: 1px solid var(--rule); font-size: .875rem; color: var(--muted); }
[hidden] { display: none !important; }
@keyframes arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 60rem) {
  header, main, footer { width: calc(100% - 3rem); }
  #access button { flex: 1 1 auto; }
}
@media (max-width: 40rem) {
  body { font-size: 1rem; }
  header, main, footer { width: calc(100% - 2.5rem); }
  header { min-height: 5rem; padding-block: 1rem; gap: .75rem; }
  .header-actions { gap: 1rem; }
  .header-link { font-size: .875rem; }
  .wordmark { font-size: 1.2rem; flex-shrink: 0; }
  .brand-logo .logo-image { height: 1.75rem; }
  .header-brand { gap: .75rem; }
  #logout { min-height: 2.75rem; padding: .6rem .75rem; font-size: .875rem; }
  main { padding-block: 1.25rem 2rem; }
  h1 { font-size: 1.375rem; padding-left: .75rem; }
  form label, #filters label, #access label:first-child, #access label:nth-child(2) { flex: 1 1 100%; }
  form > button { width: 100%; }
  #library nav { gap: .5rem 1.25rem; }
  #library nav button { font-size: 1rem; }
  #entries summary { font-size: 1.0625rem; padding-block: 1.25rem; }
  #admin { margin-block: 0 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  main, #entries details[open] article { animation: none; }
  button { transition: none; }
}

/* The entrance reads like a cookbook spread. The library stays compact. */
.portal-welcome {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  margin-block: clamp(.5rem, 2vw, 2rem);
  border: 1px solid var(--rule);
  background: var(--paper);
}
.portal-welcome:has(#status:empty):not(:has(form:not([hidden]))) { display: none; }
html.has-session:not(.session-verified) .portal-welcome { display: none; }
.welcome-copy { min-width: 0; padding: clamp(1.5rem, 5vw, 4.5rem); }
.welcome-copy .eyebrow { margin-bottom: 1rem; }
.welcome-copy h2 {
  color: var(--accent);
  margin: 0 0 1rem;
  font: 400 clamp(2.75rem, 6vw, 5rem)/.98 'Instrument Serif', Georgia, serif;
  letter-spacing: -.025em;
}
.welcome-description { max-width: 32ch; color: var(--muted); }
.welcome-copy #status { margin-block: 1.5rem 0; font-size: .9375rem; }
.welcome-copy form { display: grid; max-width: 25rem; gap: 1rem; margin: 1rem 0 0; padding: 0; }
.welcome-copy form input { background: var(--paper); }
.welcome-copy #verify input { max-width: none; }
.welcome-copy form > button:not(.plain) { width: 100%; }
.welcome-copy .plain { font-size: .875rem; }
.welcome-photo { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
#library nav { gap: .5rem clamp(1rem, 4vw, 3rem); }
#library .library-navigation nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .45rem;
}
#library nav button[data-section] {
  min-height: 2.5rem;
  padding: .4rem .65rem;
  margin: 0;
  border: 1px solid transparent;
  text-align: start;
  font-size: .875rem;
  white-space: nowrap;
}
#library nav button[data-section]:hover:not([aria-pressed='true']) { background: var(--sand); }
#library nav button[data-section][aria-pressed='true'] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}
.library-toolbar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .75rem 1.5rem; margin-block: 1.5rem 1rem; }
.library-toolbar #filters { flex: 0 1 27rem; min-width: 0; gap: .5rem; margin: 0; }
.library-toolbar #filters:empty { display: none; }
.library-view-summary {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-inline-start: auto;
}
.library-toolbar #count { margin: 0; }
#entries details[open] > summary { color: var(--accent); }
#entries details[open] article { padding-inline-start: 1rem; border-inline-start: 2px solid var(--sand); margin-block-end: 1.5rem; padding-bottom: .25rem; }

@media (max-width: 47rem) {
  .portal-welcome { grid-template-columns: minmax(0, 1fr); }
  .welcome-photo { display: none; }
}

.recipe-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}
.recipe-tools label { flex: 0 1 27rem; }
.view-switch { display: flex; flex-wrap: wrap; gap: .25rem; }
.view-switch button { background: transparent; color: var(--ink); font-size: .875rem; }
.view-switch button[aria-pressed='true'] { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.view-switch button:hover:not([aria-pressed='true']) { background: var(--sand); }
.view-switch-icons { flex: 0 0 auto; }
.view-switch-icons button {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
}
.view-switch-icons svg { width: 1.25rem; height: 1.25rem; }
.recipe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.recipe-card {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  min-width: 0;
  min-height: 8rem;
  padding: 1rem 1.25rem;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
}
.recipe-card:hover { background: var(--paper); border-color: var(--accent); }
.recipe-card img { flex: 0 0 auto; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: .875rem; }
.recipe-card-category { color: var(--muted); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.recipe-card-title { font: 400 1.75rem/1.15 'Instrument Serif', Georgia, serif; overflow-wrap: anywhere; }
.recipe-group + .recipe-group { margin-top: 2.5rem; }
.recipe-group h2, #recipe-title { font: 400 2.25rem/1.1 'Instrument Serif', Georgia, serif; margin: 0 0 1rem; }
#recipe-detail {
  width: min(42rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: clamp(1rem, 4vw, 2rem);
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  overscroll-behavior: contain;
}
#recipe-detail::backdrop { background: rgba(63, 28, 33, .55); }
.detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.detail-heading #recipe-title { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.detail-heading-actions { display: flex; align-items: center; gap: .25rem; flex: 0 0 auto; margin: 0; }
.detail-heading form { flex: 0 0 auto; margin: 0; }
.detail-heading .detail-close,
.detail-heading .detail-share-trigger,
.detail-heading .detail-edit-trigger { display: grid; place-items: center; width: 2.75rem; min-height: 2.75rem; padding: 0; border-color: transparent; border-radius: 4px; transition: background .15s ease; position: relative; }
.detail-heading .detail-share-trigger:hover,
.detail-heading .detail-edit-trigger:hover,
.detail-heading .detail-close:hover { background: rgba(0, 0, 0, .05); }
.detail-close svg,
.detail-share-trigger svg,
.detail-edit-trigger svg { width: 1.25rem; height: 1.25rem; }
.detail-heading .detail-share-trigger.copied { color: #2e7d32; }

@media (max-width: 60rem) {
  .recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .recipe-grid { grid-template-columns: minmax(0, 1fr); }
  .recipe-tools label { flex-basis: 100%; }
}

.library-navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--rule);
}
.library-search {
  display: flex;
  flex: 0 1 24rem;
  align-items: center;
  gap: .5rem;
}
.library-search input { flex: 1; min-height: 2.75rem; background: var(--paper); }
.library-search button { flex-shrink: 0; min-height: 2.75rem; padding-inline: .65rem; font-size: .8125rem; }
@media (max-width: 56rem) {
  .library-search { flex-basis: 100%; }
}
.search-group > details { border-top: 1px solid var(--rule); }
#recipe-content article { max-width: 62ch; font-size: 1rem; line-height: 1.6; }
.edited-recipe-text { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Inline item editing in detail dialog */
.recipe-inline-edit-form { display: grid; gap: 1.25rem; max-width: 65ch; }
.recipe-edit-header h3 { margin: 0; font: 400 1.75rem/1.2 'Instrument Serif', Georgia, serif; color: var(--accent); }
.edit-field-label { display: grid; gap: .35rem; }
.edit-field-label > span { font-size: .875rem; font-weight: 500; }
.edit-field-label input { width: 100%; font: inherit; padding: .65rem .75rem; border: 1px solid var(--rule); background: var(--paper); }
.edit-field-label textarea { width: 100%; font: inherit; padding: .65rem .75rem; border: 1px solid var(--rule); background: var(--paper); resize: vertical; line-height: 1.5; }
.edit-media-section { display: grid; gap: 1rem; padding: 1rem; border: 1px solid var(--rule); border-radius: 4px; background: rgba(0, 0, 0, .015); }
.edit-media-section legend { font-weight: 600; font-size: .875rem; padding-inline: .5rem; }
.edit-media-group { display: grid; gap: .5rem; padding-bottom: .75rem; border-bottom: 1px dashed var(--rule); }
.edit-media-group:last-child { padding-bottom: 0; border-bottom: 0; }
.edit-media-group-title { font-size: .875rem; font-weight: 600; color: var(--accent); }
.edit-media-status { margin: 0; font-size: .8125rem; color: #555; }
.edit-media-remove-btn { justify-self: start; font-size: .8125rem; color: #a22; text-decoration: underline; padding: 0; }
.edit-media-remove-btn:hover { color: #d00; }
.file-upload-label { display: grid; gap: .35rem; font-size: .8125rem; }
.file-upload-label input[type='file'] { font-size: .8125rem; }
.edit-status-message { margin: 0; font-size: .875rem; min-height: 1.25rem; }
.edit-status-message:empty { display: none; }
.edit-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: .5rem; }
.edit-form-actions .danger-link { margin-left: auto; color: #c00; font-size: .875rem; }
.edit-form-actions .danger-link:hover { text-decoration: underline; }

/* Delete confirmation modal */
.delete-confirm-dialog { width: min(28rem, calc(100% - 2rem)); padding: 1.5rem; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); }
.delete-confirm-dialog::backdrop { background: rgba(63, 28, 33, .55); }
.delete-confirm-dialog h2 { margin: 0; font: 400 1.75rem/1.2 'Instrument Serif', Georgia, serif; color: var(--accent); }
.delete-confirm-dialog p { margin: 1rem 0 1.5rem; line-height: 1.5; font-size: .9375rem; }
.delete-confirm-actions { display: flex; justify-content: flex-end; gap: .75rem; }
.danger-button { background: #b01b2a; color: #fff !important; border: 1px solid #b01b2a; padding: .55rem 1rem; cursor: pointer; font-size: .875rem; font-weight: 500; transition: background .15s ease; }
.danger-button:hover { background: #8e1420; border-color: #8e1420; }

/* Admin Add Entry Button & Modal */
.admin-add-entry-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--accent);
  color: var(--paper) !important;
  font-size: .8125rem;
  font-weight: 500;
  padding: .5rem .85rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  cursor: pointer;
  transition: background .15s ease, opacity .15s ease;
}
.admin-add-entry-btn:hover { background: var(--ink); border-color: var(--ink); }
.admin-add-entry-btn svg { width: 1rem; height: 1rem; }
.create-recipe-dialog { width: min(34rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; padding: 1.5rem; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); }
.create-recipe-dialog::backdrop { background: rgba(63, 28, 33, .55); }
.create-recipe-dialog h2 { margin: 0; font: 400 1.85rem/1.2 'Instrument Serif', Georgia, serif; color: var(--accent); }
.create-recipe-dialog select { width: 100%; font: inherit; padding: .65rem .75rem; border: 1px solid var(--rule); background: var(--paper); }
article:has(p, ul, ol) { white-space: normal; }
article :is(ul, ol) {
  margin-block: .5rem 1rem;
  padding-inline-start: 1.4em;
}
article li + li { margin-top: .35em; }
article li > p:last-child { margin-bottom: 0; }
.recipe-ingredients {
  list-style: disc;
  margin-block: .5rem 1.25rem;
  padding-inline-start: 1.4em;
}
.recipe-ingredients li {
  line-height: 1.5;
}
#recipe-content .recipe-part-label {
  display: block;
  margin-block: 1rem .375rem;
  color: var(--accent);
  font: 400 1.5rem/1.2 'Instrument Serif', Georgia, serif;
}

.library-card-copy { display: grid; gap: .3rem; min-width: 0; }
.recommendation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.recommendation-card { flex-direction: row; align-items: start; justify-content: start; gap: 1rem; }
.recommendation-card img {
  flex: 0 0 auto;
  width: clamp(3.5rem, 10vw, 6rem);
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0;
  background: var(--paper);
}
.recommendation-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: .875rem;
  font-weight: 400;
}
.recommendation-action {
  color: var(--accent);
  font-size: .8125rem;
  text-decoration: underline;
  text-underline-offset: .2em;
}
@media (max-width: 47rem) {
  .recommendation-grid { grid-template-columns: minmax(0, 1fr); }
}

:is(.recommendation-list, .recipe-list) { list-style: none; padding: 0; margin: 0; }
:is(.recommendation-list, .recipe-list) li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem 1.25rem;
  padding-block: .5rem;
  border-top: 1px solid var(--rule);
}
:is(.recommendation-list, .recipe-list) li:last-child { border-bottom: 1px solid var(--rule); }
:is(.recommendation-list, .recipe-list) .recipe-card {
  flex: 1 1 16rem;
  min-height: 0;
  padding: .5rem;
  background: transparent;
  border-color: transparent;
}
:is(.recommendation-list, .recipe-list) .recipe-card:hover { background: var(--paper); border-color: var(--rule); }
:is(.recommendation-list, .recipe-list) .recipe-card-title { font-size: 1.375rem; }
:is(.recipe-list, .recommendation-list) .recipe-card {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: .75rem;
}
:is(.recipe-list, .recommendation-list) .recipe-card img {
  flex: 0 0 auto;
  width: clamp(3.5rem, 12vw, 5rem);
  aspect-ratio: 4 / 3;
  margin: 0;
}
.recommendation-list li > a { padding: .5rem; font-size: .875rem; }
.recipe-card img.card-image-placeholder {
  padding: clamp(.75rem, 3vw, 2.4rem);
  background: var(--sand);
  object-fit: contain;
}
.recommendation-card img.card-image-placeholder,
:is(.recipe-list, .recommendation-list) .recipe-card img.card-image-placeholder {
  padding: .7rem;
}
.library-toolbar #filters label { flex: 1 1 0; min-width: 0; gap: .25rem; font-size: .8125rem; }
.library-toolbar #filters select { min-height: 2.75rem; padding: .5rem .625rem; font-size: .875rem; text-overflow: ellipsis; }
.dietary-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  min-inline-size: 0;
  margin: 0;
  padding: .4rem .65rem .65rem;
  border: 1px solid var(--rule);
  background: var(--paper);
}
.dietary-filters legend { padding-inline: .25rem; font-size: .8125rem; font-weight: 600; }
.dietary-filters label {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.75rem;
  padding-inline: .5rem;
  font-size: .9375rem;
  cursor: pointer;
}
.dietary-filters label:has(input:checked) { background: var(--sand); }
.dietary-filters input[type='checkbox'] {
  width: 1.125rem;
  height: 1.125rem;
  min-height: 0;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.library-toolbar .view-switch-icons button { width: 2.75rem; height: 2.75rem; }
.library-results:has(#library-categories:not([hidden])) {
  display: grid;
  grid-template-columns: minmax(9rem, 12rem) minmax(0, 1fr);
  align-items: start;
  gap: 1.25rem;
}
#library #library-categories {
  display: grid;
  gap: .25rem;
  position: sticky;
  top: 1rem;
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  padding: .65rem;
  background: var(--sand);
}
#library #library-categories h2 { margin: 0 0 .25rem; font-size: .875rem; font-weight: 600; }
.category-choices { display: grid; gap: .25rem; }
#library #library-categories button {
  margin: 0;
  padding: .5rem .75rem;
  min-height: 2.75rem;
  font-size: .9375rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  text-align: start;
  border: 1px solid transparent;
}
.category-count { font-size: .8125rem; font-variant-numeric: tabular-nums; }
#library #library-categories button[aria-pressed='true'] {
  background: var(--accent);
  color: var(--paper);
}
@media (max-width: 48rem) {
  .library-results:has(#library-categories:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
  #library #library-categories {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .category-choices { display: flex; flex-wrap: nowrap; overflow-x: auto; }
  #library #library-categories button { flex: 0 0 auto; }
}

.instagram-preview {
  max-width: 34rem;
  margin-block: 1rem;
  border: 1px solid var(--rule);
}
.library-video {
  display: block;
  width: 100%;
  max-width: 34rem;
  max-height: 65vh;
  margin-block: 1rem;
  background: var(--ink);
}
.instagram-preview summary { padding: .75rem 1rem; cursor: pointer; color: var(--accent); }
.instagram-preview iframe {
  display: block;
  width: 100%;
  height: clamp(28rem, 120vw, 39rem);
  border: 0;
  background: #fff;
}

.tip-collection { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.tip-card { justify-content: start; }
.tip-collection-visual { grid-template-columns: repeat(auto-fit, minmax(min(100%, 23rem), 1fr)); }
.tip-collection-visual .tip-card { flex-direction: row; align-items: center; gap: 1rem; }
.tip-media {
  position: relative;
  display: grid;
  flex: 0 0 6.25rem;
  place-items: center;
  min-height: 4.5rem;
  background: var(--muted);
  color: var(--paper);
  font-size: .75rem;
}
.tip-media img { width: 100%; height: 100%; position: absolute; inset: 0; margin: 0; object-fit: cover; }
.tip-media span { position: relative; padding: .15rem .35rem; background: var(--muted); }

/* Shared member navigation: library and personal diary. */
.portal-sections { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; padding-left: 2rem; border-left: 1px solid var(--rule); }
.portal-sections h1 { margin: 0; padding: 0; border: 0; font: inherit; }
.portal-sections a, .portal-sections > h1 { color: var(--accent); font: 400 1.65rem/1.2 'Instrument Serif', Georgia, serif; letter-spacing: -.015em; color: #75535a; text-decoration: none; }
.portal-sections a { display: block; padding-block: .45rem; border-bottom: 2px solid transparent; }
.portal-sections a[aria-current='page'] { color: var(--accent); border-bottom-color: var(--accent); }
.portal-sections a:hover { color: var(--accent); }

/* Highlighted top navigation link for Porodični meal prep */
.portal-sections a.nav-meal-prep-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.22rem 0.85rem;
  margin-block: auto;
  background: #fbf6f0;
  border: 1px solid #dfd2c4;
  border-bottom: 1px solid #dfd2c4;
  border-radius: 9999px;
  color: #6a2228;
  font: 400 1.5rem/1.1 'Instrument Serif', Georgia, serif;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(106, 34, 40, 0.05);
}

.portal-sections a.nav-meal-prep-link:hover {
  background: #f4eae0;
  border-color: #6a2228;
  color: #6a2228;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(106, 34, 40, 0.1);
}

.portal-sections a.nav-meal-prep-link[aria-current='page'],
.portal-sections a.nav-meal-prep-link.active {
  background: #6a2228;
  border-color: #6a2228;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(106, 34, 40, 0.22);
}

.portal-sections a.nav-meal-prep-link .nav-meal-prep-badge {
  font-family: Inter, -apple-system, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #6a2228;
  color: #ffffff;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  line-height: 1;
  transition: all 0.2s ease;
}

.portal-sections a.nav-meal-prep-link[aria-current='page'] .nav-meal-prep-badge,
.portal-sections a.nav-meal-prep-link.active .nav-meal-prep-badge {
  background: #ffffff;
  color: #6a2228;
}
@media (max-width: 40rem) {
  .header-brand:has(.portal-sections) { flex-wrap: wrap; }
  .portal-sections { padding-left: .75rem; gap: .5rem 1rem; }
  .portal-sections a, .portal-sections > h1 { font-size: 1.35rem; }
}

/* Member management uses the same quiet typography and rules as the library. */
.member-search { display: grid; gap: .4rem; max-width: 28rem; margin-block: 1rem; }
.member-list { border-top: 1px solid var(--rule); }
.member-row { max-width: none; white-space: normal; display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(9rem, .6fr) minmax(15rem, 1fr); gap: 1rem; padding-block: 1.25rem; border-bottom: 1px solid var(--rule); }
.member-row strong, .member-row span { display: block; overflow-wrap: anywhere; }
.member-row span { color: #75535a; font-size: .875rem; margin-top: .25rem; }
.member-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.member-actions button, .member-actions select { font-size: .875rem; padding: .55rem .7rem; }
/* .member-actions a flex-basis removed for inline display */
.member-invite { display: grid; width: 100%; gap: .65rem; margin: .5rem 0; padding: 1rem; border: 1px solid var(--rule); }
.member-invite p { margin: 0; font-size: .875rem; }
.member-invite p:empty { display: none; }
.member-invite-link { display: inline-block; padding: .25rem 0; margin-top: .25rem; min-height: 2.5rem; border: 0; background: transparent; color: var(--accent); text-decoration: underline; text-underline-offset: .2em; font-size: .875rem; text-align: left; }
.member-invite-link:hover { background: transparent; color: var(--leaf); }
.member-contact { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; }
.member-row .member-contact span { margin: 0; }
.member-invite-dialog { width: min(32rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; padding: 1.5rem; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); }
.member-invite-dialog::backdrop { background: rgb(63 28 33 / .45); }
.member-invite-dialog h2 { margin: 0 0 1rem; font: 400 2rem/1.2 'Instrument Serif', Georgia, serif; }
.member-invite-dialog .member-invite { padding: 0; border: 0; }
#access label { flex: 1 1 13rem; }
@media (max-width: 48rem) { .member-row { grid-template-columns: 1fr; } }

/* Mobile: brand/actions first, readable section navigation on its own row. */
@media (max-width: 40rem) {
  .portal-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .85rem 1rem; padding-block: 1rem .5rem; }
  .portal-header .header-brand { display: contents; }
  .portal-header .wordmark { grid-column: 1; grid-row: 1; font-size: 1.4rem; }
  .portal-header .brand-logo { grid-column: 1; grid-row: 1; }
  .portal-header .brand-logo .logo-image { height: 1.625rem; }
  .portal-header .header-actions { grid-column: 2; grid-row: 1; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; max-width: 12rem; }
  .portal-header .header-link { font-size: .75rem; padding-block: .35rem; }
  .portal-header #logout { border: 0; min-height: 2.5rem; padding: .35rem .5rem; font-size: .8125rem; }
  .portal-header .portal-sections { grid-column: 1 / -1; grid-row: 2; padding: 0; border-left: 0; gap: 0.75rem 1rem; align-items: center; }
  .portal-header .portal-sections a { font: 500 0.95rem/1.4 Inter, sans-serif; padding-block: .45rem; }
  .portal-sections a.nav-meal-prep-link {
    font-size: 0.95rem !important;
    padding: 0.25rem 0.65rem !important;
    gap: 0.35rem !important;
  }
  .portal-sections a.nav-meal-prep-link .nav-meal-prep-badge {
    font-size: 0.6rem !important;
    padding: 0.1rem 0.35rem !important;
  }
  #library .library-navigation nav {
    gap: 0.35rem;
    padding-bottom: 0.25rem;
  }
  #library nav button[data-section] {
    min-height: 2.25rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.8125rem;
  }
  .portal-header .header-brand > h1 { grid-column: 1 / -1; grid-row: 2; border: 0; padding: 0; }
  .portal-header .mentor-back-link { grid-column: 1 / -1; font-size: .875rem; }
}

.admin-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.admin-header h2 { margin: 0; }
.admin-header button { white-space: nowrap; }
.admin-modal-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.admin-modal-heading h2 { margin: 0; }
.admin-modal-form { display: grid; gap: 1.25rem; margin: 0; }
.admin-modal-form label { display: grid; gap: .4rem; }
.admin-modal-form button[type='submit'] { width: 100%; margin-top: .5rem; }
.member-cta-button { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--paper) !important; font-size: .875rem; font-weight: 500; padding: .55rem 1rem; border: 1px solid var(--accent); text-decoration: none; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.member-cta-button:hover { background: var(--ink); border-color: var(--ink); color: var(--paper) !important; }
.member-actions-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.member-edit-dialog { width: min(32rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; padding: 1.5rem; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); }
.member-edit-dialog::backdrop { background: rgb(63 28 33 / .45); }
.member-edit-dialog h2 { margin: 0; font: 400 2rem/1.2 'Instrument Serif', Georgia, serif; }
.member-edit-dialog form { margin: 0; }

/* Floating quick scroll buttons to effortlessly navigate to bottom/top of page */
.scroll-shortcuts {
  position: fixed;
  right: clamp(1rem, 3vw, 2.5rem);
  bottom: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: .5rem;
  z-index: 90;
}
.scroll-button {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  min-height: 3.25rem;
  padding: 0;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--accent);
  box-shadow: 0 4px 14px rgba(34, 34, 34, .12);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}
.scroll-button:hover {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(34, 34, 34, .18);
}
.scroll-button:active {
  transform: translateY(0);
}
.scroll-button svg {
  width: 1.25rem;
  height: 1.25rem;
}
@media (max-width: 40rem) {
  .scroll-shortcuts {
    right: 1rem;
    bottom: 1.25rem;
  }
  .scroll-button {
    width: 2.75rem;
    height: 2.75rem;
    min-height: 2.75rem;
  }
  .scroll-button svg {
    width: 1.1rem;
    height: 1.1rem;
  }
}

/* ==========================================================================
   Porodični Meal Prep — Interaktivni planer i asistent
   ========================================================================== */
.meal-prep-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 72rem;
  margin: 1rem auto 3rem;
  color: var(--ink);
}

.meal-prep-hero {
  background: linear-gradient(135deg, #faf7f2 0%, #f4ede3 100%);
  border: 1px solid #e8decb;
  border-radius: 14px;
  padding: 2.25rem 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.meal-prep-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #6a2228;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.meal-prep-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2.35rem;
  line-height: 1.2;
  font-weight: 400;
  color: #2c1810;
  margin: 0 0 0.75rem 0;
}

.meal-prep-lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #55443c;
  max-width: 62ch;
  margin: 0 0 1.5rem 0;
}

.meal-prep-actions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.copy-feedback-msg {
  font-size: 0.875rem;
  color: #2b6134;
  font-weight: 600;
}

.meal-prep-card-section {
  background: #ffffff;
  border: 1px solid #ede5d8;
  border-radius: 12px;
  padding: 1.75rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.meal-prep-section-heading {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.85rem;
  line-height: 1.25;
  color: #2c1810;
  margin: 0 0 0.35rem 0;
  font-weight: 400;
}

.meal-prep-sub {
  font-size: 0.95rem;
  color: #6e5f58;
  margin: 0 0 1.5rem 0;
  max-width: 70ch;
  line-height: 1.5;
}

.meal-prep-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #eadecd;
  color: #5c3822;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.35rem;
}

/* Plate Principles & Visual Guide */
.meal-prep-plate-visual-card {
  background: #faf7f2;
  border: 1px solid #eadecd;
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  margin-bottom: 1.75rem;
}

.meal-prep-plate-img {
  max-width: 100%;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.meal-prep-simplified-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr));
  gap: 1.15rem;
  margin-bottom: 1.5rem;
}

.plate-summary-col {
  background: #faf8f5;
  border: 1px solid #ebe2d5;
  border-radius: 8px;
  padding: 1rem 1.15rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.plate-summary-num {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: #6a2228;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.plate-summary-col strong {
  display: block;
  font-size: 0.95rem;
  color: #2c1810;
  margin-bottom: 0.25rem;
}

.plate-summary-col p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #55443c;
}

.meal-prep-kids-note {
  background: #fdfcf9;
  border: 1px solid #ede5db;
  border-left: 3px solid #6a2228;
  border-radius: 0 6px 6px 0;
  padding: 0.85rem 1.15rem;
  font-size: 0.875rem;
  color: #4a3b32;
  line-height: 1.55;
}

.meal-prep-kids-note strong {
  color: #2c1810;
}

/* ==========================================================================
   Porodični Meal Prep — Sklopivi vodič (Collapsible Guide)
   ========================================================================== */
.meal-prep-collapsible-guide {
  background: #ffffff;
  border: 1.5px solid #ebd9c8;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.meal-prep-collapsible-guide summary {
  list-style: none;
  cursor: pointer;
}

.meal-prep-collapsible-guide summary::-webkit-details-marker {
  display: none;
}

#entries .meal-prep-collapsible-guide summary::after,
.meal-prep-collapsible-guide summary::after {
  content: none !important;
  display: none !important;
}

.collapsible-guide-summary {
  display: block;
  padding: 1rem 1.35rem;
  background: #faf8f5;
  transition: background 0.18s ease;
}

.collapsible-guide-summary:hover {
  background: #f4ede3;
}

.summary-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.guide-summary-icon {
  font-size: 1.45rem;
  flex-shrink: 0;
}

.guide-summary-title {
  display: block;
  font-size: 0.95rem;
  color: #2c1810;
  margin-bottom: 0.15rem;
}

.guide-summary-sub {
  margin: 0;
  font-size: 0.8rem;
  color: #6b5c54;
}

.summary-toggle-pill {
  font-size: 0.775rem;
  font-weight: 600;
  color: #6a2228;
  background: #fdf5e8;
  border: 1px solid #e8d5be;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.meal-prep-collapsible-guide[open] .summary-toggle-pill {
  background: #6a2228;
  color: #ffffff;
  border-color: #6a2228;
}

.collapsible-guide-content {
  padding: 1.25rem 1.5rem 1.75rem;
  border-top: 1px solid #ebd9c8;
  background: #ffffff;
}

/* ==========================================================================
   Wizard Stepper Navigation (Uklonjeno po zahtevu korisnika)
   ========================================================================== */
.meal-prep-wizard-stepper {
  display: none !important;
}

.wizard-step-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.875rem;
  color: #7a6b63;
  cursor: pointer;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  transition: all 0.18s ease;
}

.wizard-step-btn:hover {
  color: #2c1810;
  background: #faf8f5;
}

.wizard-step-btn.active {
  color: #6a2228;
  font-weight: 700;
  background: #faf4ef;
}

.wizard-step-btn .step-num {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #ebd9c8;
  color: #55443c;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.wizard-step-btn.active .step-num {
  background: #6a2228;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(106, 34, 40, 0.25);
}

.wizard-step-btn.completed .step-num {
  background: #2b6134;
  color: #ffffff;
}

.stepper-line {
  flex: 1;
  height: 2px;
  background: #ebd9c8;
  margin: 0 0.85rem;
}

/* ==========================================================================
   Wizard Step Panes
   ========================================================================== */
.wizard-step-pane {
  display: none !important;
  background: #ffffff;
  border: 1px solid #ede5d8;
  border-radius: 12px;
  padding: 1.75rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  animation: fadeInPane 0.22s ease forwards;
}

.wizard-step-pane.active {
  display: flex !important;
  flex-direction: column;
  gap: 1.75rem;
}

@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-pane-header {
  border-bottom: 1px solid #ebd9c8;
  padding-bottom: 0.95rem;
}

/* ==========================================================================
   Minimalist List for Step 1
   ========================================================================== */
.minimal-builder-sections {
  display: flex;
  flex-direction: column;
  gap: 1.85rem;
}

.minimal-builder-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.group-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.group-header-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2c1810;
  margin: 0;
}

.group-header-hint {
  font-size: 0.8rem;
  color: #7a6b63;
  font-style: italic;
}

.minimal-options-list {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: none;
  border-radius: 0;
  overflow: hidden;
}

.meal-option-row {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border-bottom: 1px solid #f2eae0;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  background: #ffffff;
}

.meal-option-row:last-child {
  border-bottom: none;
}

.meal-option-row:hover {
  background: #faf7f2;
}

.meal-option-row.is-selected {
  background: #fdfaf6;
}

.row-main-bar {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  padding: 0.95rem 1.15rem;
  width: 100%;
  box-sizing: border-box;
}

.row-checkbox {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.check-circle {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: 1.5px solid #c9b9a8;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  transition: all 0.15s ease;
}

.meal-option-row.is-selected .check-circle {
  background: #6a2228;
  border-color: #6a2228;
  box-shadow: 0 1px 4px rgba(106, 34, 40, 0.2);
}

.row-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.row-title-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.row-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: #2c1810;
  margin: 0;
  line-height: 1.25;
}

.meal-option-row.is-selected .row-title {
  color: #6a2228;
  font-weight: 600;
}

.row-badges-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.pdf-nutrient-pill {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  line-height: 1.2;
}

.pill-vlakna {
  background: #2e5b27;
  color: #ffffff;
}

.pill-proteini {
  background: #205487;
  color: #ffffff;
}

.pill-masti {
  background: #8e501b;
  color: #ffffff;
}

.pill-seceri {
  background: #6f3b73;
  color: #ffffff;
}

.pill-omega3 {
  background: #146b73;
  color: #ffffff;
}

.pill-skrob {
  background: #73593b;
  color: #ffffff;
}

.row-sub-block {
  font-size: 0.835rem;
  line-height: 1.45;
  color: #55443b;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dominant-highlight {
  color: #2c1810;
  font-weight: 600;
}

.dominant-highlight span {
  color: #6a2228;
  font-weight: 700;
}

.why-important-text {
  color: #6b5a50;
  font-size: 0.8rem;
}

.row-toggle-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.825rem;
  font-weight: 500;
  color: #6a2228;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0.2rem 0 !important;
  margin-top: 0.3rem;
  width: fit-content;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(106, 34, 40, 0.4);
  box-shadow: none !important;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.row-toggle-cta:hover {
  background: transparent !important;
  color: #431217;
  text-decoration-color: #431217;
}

.toggle-chevron {
  font-size: 0.85rem;
  line-height: 1;
  display: inline-block;
  color: #6a2228;
}

/* Expanded Recipe Details Pane */
.recipe-expand-pane {
  display: none;
  background: #fcf9f5;
  border-top: 1px dashed #ebd9c8;
  padding: 1.15rem 1.35rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #3b2c24;
}

.meal-option-row.is-expanded .recipe-expand-pane {
  display: block;
}

.recipe-expand-pane h5 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.15rem;
  color: #6a2228;
  margin: 0 0 0.4rem 0;
  font-weight: 400;
}

.recipe-steps-list {
  margin: 0 0 0.85rem 0;
  padding-left: 1.25rem;
}

.recipe-steps-list li {
  margin-bottom: 0.25rem;
}

.recipe-ingredients-tag-box {
  background: #ffffff;
  border: 1px solid #ebd9c8;
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #4a3b34;
}

.recipe-ingredients-tag-box strong {
  color: #2c1810;
}

.row-sub {
  margin: 0;
  font-size: 0.825rem;
  line-height: 1.45;
  color: #6b5c54;
}

.row-recycle-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  font-size: 0.8125rem;
  color: #4a3b34;
  margin-top: 0.15rem;
}

.recycle-part {
  line-height: 1.4;
}

.lunch-part strong {
  color: #82531a;
}

.dinner-part strong {
  color: #6a2228;
}

.recycle-arrow {
  color: #9c8a7d;
  font-size: 0.85rem;
}

/* ==========================================================================
   Wizard CTA & Navigation Bars
   ========================================================================== */
.wizard-main-cta-bar {
  background: #faf8f5;
  border: 1px solid #ebd9c8;
  border-radius: 10px;
  padding: 1.15rem 1.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  margin-top: 1rem;
}

.cta-summary-text {
  font-size: 0.9rem;
  color: #4a3b34;
}

.cta-summary-text strong {
  color: #2c1810;
}

/* Standard Buttons with Gentle Border-Radius */
.meal-prep-app .admin-btn,
.meal-prep-app button.admin-btn,
.meal-prep-app .btn-wizard-next-action,
.meal-prep-app .btn-wizard-prev-action,
.meal-prep-app .btn-download-dynamic-pdf,
.meal-prep-app .btn-print-dynamic-pdf,
.meal-prep-app .btn-copy-grocery,
.meal-prep-app .btn-add-all-seeds,
.meal-prep-app .btn-clear-selection,
.meal-prep-app .grocery-add-form button,
.meal-prep-app .reset-checked-btn,
.meal-prep-app .dropdown-more-btn,
.admin-btn,
.admin-btn-wine,
.admin-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: Inter, -apple-system, sans-serif;
  border-radius: 6px !important;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  line-height: 1.3;
}

.admin-btn-wine {
  background: #6a2228 !important;
  color: #ffffff !important;
  border: 1px solid #6a2228 !important;
}

.admin-btn-wine:hover {
  background: #541a1f !important;
  border-color: #541a1f !important;
  color: #ffffff !important;
}

.admin-btn-outline {
  background: #ffffff !important;
  border: 1px solid #ebd9c8 !important;
  color: #374151 !important;
}

.admin-btn-outline:hover {
  background: #fdfaf6 !important;
  border-color: #d1b8a5 !important;
  color: #2c1810 !important;
}

.admin-btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.8125rem;
}

.btn-wizard-next-action {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 1.45rem;
  box-shadow: 0 2px 8px rgba(106, 34, 40, 0.2);
}

.wizard-nav-split-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid #ebd9c8;
}

/* ==========================================================================
   2-Step Meal Prep Accordion Dropdowns & Recipe Cards
   ========================================================================== */
.meal-dropdown-section {
  background: #ffffff;
  border: 1px solid #ebd9c8;
  border-radius: 10px;
  margin-bottom: 0.85rem;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.meal-dropdown-section:hover {
  border-color: #d8c2ad;
}

.meal-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.35rem;
  cursor: pointer;
  background: #fdfbf7;
  user-select: none;
  transition: background 0.15s ease;
}

.meal-dropdown-header:hover {
  background: #f7f1e8;
}

.meal-dropdown-section.is-open .meal-dropdown-header {
  background: #f9f1e8;
  border-bottom: 1px solid #ebd9c8;
}

.dropdown-header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.dropdown-header-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.45rem;
  color: #2c1810;
  margin: 0;
  font-weight: 400;
  line-height: 1.2;
}

.dropdown-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dropdown-count-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  background: #ebd9c8;
  color: #5c433b;
  transition: all 0.15s ease;
}

.dropdown-count-pill.has-selection {
  background: #6a2228;
  color: #ffffff;
}

.dropdown-arrow {
  font-size: 0.85rem;
  color: #826f63;
  transition: transform 0.2s ease;
}

.meal-dropdown-section.is-open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-content-body {
  display: none;
}

.meal-dropdown-section.is-open .dropdown-content-body {
  display: block;
}

/* Subtle link at bottom of open dropdown */
.dropdown-more-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: #faf7f2;
  border-top: 1px dashed #ebd9c8;
  font-size: 0.825rem;
  color: #55443b;
  flex-wrap: wrap;
}

.more-link-left {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dropdown-more-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: #6a2228;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #ebd3cb;
  border-radius: 6px;
  padding: 0.35rem 0.8rem;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.dropdown-more-btn:hover {
  background: #6a2228;
  color: #ffffff;
  border-color: #6a2228;
}

/* Step 2 Recipe Card Grid */
.selected-recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.step2-recipe-card {
  background: #ffffff;
  border: 1px solid #ebd9c8;
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.step2-recipe-card h4 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.35rem;
  color: #6a2228;
  margin: 0;
  font-weight: 400;
}

.step2-recipe-meta {
  font-size: 0.8rem;
  color: #6b5a50;
  line-height: 1.45;
}

.step2-recipe-prep {
  font-size: 0.835rem;
  line-height: 1.5;
  color: #3b2c24;
}

.step2-recipe-prep ol {
  margin: 0.35rem 0 0 0;
  padding-left: 1.2rem;
}

.step2-recipe-prep li {
  margin-bottom: 0.25rem;
}

.step2-recipe-serving {
  background: #fdfbf7;
  border: 1px solid #ebd9c8;
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  font-size: 0.8rem;
  color: #4a3b34;
}

/* Responsive adjustments */
@media (max-width: 680px) {
  .meal-prep-container {
    padding: 0 0.25rem 2.5rem;
  }

  .meal-prep-hero {
    margin-bottom: 1rem;
    padding: 0;
  }

  .meal-prep-title {
    font-size: 1.85rem;
    line-height: 1.2;
  }

  .meal-prep-lead {
    font-size: 0.925rem;
    line-height: 1.45;
  }

  /* Stepper Bar: samo brojevi 1 i 2 bez teksta na telefonu kako ne bi duplirao naslov ispod */
  .meal-prep-wizard-stepper {
    padding: 0.35rem 1rem;
    gap: 0.75rem;
    max-width: 14rem;
    margin: 0.75rem auto 1.25rem;
    border-radius: 9999px;
  }

  .wizard-step-btn {
    padding: 0.25rem 0.5rem;
    gap: 0;
  }

  .wizard-step-btn .step-num {
    width: 1.6rem;
    height: 1.6rem;
    font-size: 0.85rem;
  }

  .wizard-step-btn .step-text {
    display: none !important;
  }

  .stepper-line {
    width: 2.5rem;
    height: 2px;
  }

  /* Korak 1 i Korak 2: sklonjen spoljni border, sklonjen padding i background */
  .wizard-step-pane,
  .wizard-step-pane.active {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    gap: 1.25rem !important;
  }

  /* Collapsible Guide: Pogledaj vodič ide ispod teksta, a plus je sklonjen */
  .meal-prep-collapsible-guide {
    margin-bottom: 1.25rem;
    border-radius: 10px;
  }

  .collapsible-guide-summary {
    padding: 0.85rem 1rem;
    display: block !important;
  }

  .summary-content-stack {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .guide-summary-title {
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .guide-summary-sub {
    font-size: 0.825rem;
    margin: 0.25rem 0 0 0;
    line-height: 1.4;
    color: #6b5c54;
  }

  .summary-toggle-pill {
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
  }

  .collapsible-guide-content {
    padding: 0.95rem 0.85rem;
  }

  .meal-prep-plate-header h3 {
    font-size: 1.35rem !important;
    line-height: 1.25;
  }

  .meal-prep-plate-header .meal-prep-sub {
    font-size: 0.85rem;
    line-height: 1.45;
  }

  .meal-prep-plate-visual-card {
    padding: 0.5rem;
    border-radius: 6px;
  }

  .meal-prep-plate-img {
    border-radius: 6px;
  }

  .meal-prep-simplified-summary {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .simplified-summary-card {
    padding: 0.85rem 1rem;
  }

  .seeds-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .meal-prep-seeds-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.65rem !important;
  }

  .meal-prep-seeds-header .btn-add-all-seeds {
    width: 100%;
    justify-content: center;
    padding: 0.5rem 0.85rem !important;
  }

  /* Step Panes Headers */
  .step-pane-header {
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #ebd9c8;
    padding-bottom: 0.75rem;
  }

  .step-pane-header .meal-prep-section-heading {
    font-size: 1.6rem;
    line-height: 1.2;
  }

  .step-pane-header .meal-prep-sub {
    font-size: 0.85rem;
    line-height: 1.45;
  }

  /* Dropdown sekcije bez duplog bordera */
  .meal-dropdowns-container {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }

  .meal-dropdown-section {
    background: #ffffff;
    border: 1px solid #ebd9c8;
    border-radius: 6px;
    box-shadow: none;
    margin-bottom: 0;
  }

  .meal-dropdown-header {
    padding: 0.85rem 1rem;
  }

  .meal-dropdown-section.is-open .meal-dropdown-header {
    border-bottom: 1px solid #ebd9c8;
  }

  .dropdown-header-left {
    gap: 0.5rem;
  }

  .dropdown-header-left > span {
    font-size: 1.2rem !important;
  }

  .dropdown-header-title {
    font-size: 1.25rem;
  }

  .dropdown-header-right {
    gap: 0.5rem;
  }

  .dropdown-count-pill {
    font-size: 0.72rem;
    padding: 0.18rem 0.55rem;
  }

  .dropdown-more-link-row {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0.5rem;
    padding: 0.75rem 0.9rem;
  }

  .dropdown-more-btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    padding: 0.5rem 0.75rem;
    font-size: 0.825rem;
  }

  /* Meal Option Rows */
  .row-main-bar {
    padding: 0.85rem 0.85rem;
    gap: 0.75rem;
  }

  .check-circle {
    width: 1.45rem;
    height: 1.45rem;
    font-size: 0.8rem;
    margin-top: 0.15rem;
  }

  .row-title {
    font-size: 1.15rem;
    line-height: 1.25;
  }

  .row-sub-block {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .row-toggle-cta {
    font-size: 0.8125rem;
    padding: 0.2rem 0 !important;
    background: transparent !important;
    border: none !important;
    text-decoration: underline;
  }

  .recipe-expand-pane {
    padding: 0.85rem 0.95rem;
    font-size: 0.825rem;
  }

  .recipe-steps-list {
    padding-left: 1.15rem;
    margin: 0.35rem 0;
  }

  .recipe-steps-list li {
    margin-bottom: 0.35rem;
  }

  /* Main CTA Bar (Korak 1 dno) */
  .wizard-main-cta-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0.75rem;
    padding: 1rem 0.85rem;
    margin-top: 1.5rem;
    border-radius: 10px;
  }

  .cta-summary-text {
    font-size: 0.88rem;
    line-height: 1.4;
    width: 100%;
  }

  .btn-wizard-next-action {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.25rem;
    font-size: 0.975rem;
    border-radius: 6px;
    box-sizing: border-box;
  }

  /* Korak 2: Recepti & Nabavka - naslovi i bedževi poređani jedan ispod drugog */
  .step2-header-split {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem !important;
  }

  .step2-section-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    border-bottom: 1px solid #ebd9c8;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
  }

  .step3-primary-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    width: 100%;
  }

  .step3-primary-actions button,
  .step3-primary-actions .btn-download-dynamic-pdf {
    width: 100% !important;
    justify-content: center;
    padding: 0.8rem 1rem !important;
    font-size: 0.925rem !important;
    box-sizing: border-box;
  }

  .selected-recipes-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .step2-recipe-card {
    padding: 1rem 0.9rem;
    border-radius: 6px;
  }

  .step2-recipe-card h4 {
    font-size: 1.25rem;
  }

  .grocery-columns-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .grocery-cat-card {
    padding: 0.95rem;
  }

  .grocery-item-label {
    min-height: 2.25rem;
    font-size: 0.875rem;
  }

  .grocery-item-label input[type="checkbox"] {
    width: 1.3rem;
    height: 1.3rem;
    flex-shrink: 0;
  }

  .grocery-add-form {
    flex-direction: column;
    gap: 0.5rem;
  }

  .grocery-add-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 0.85rem;
    font-size: 0.875rem;
  }

  .grocery-add-form button {
    width: 100%;
    padding: 0.75rem 1rem;
    justify-content: center;
  }

  .wizard-nav-split-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
  }

  .wizard-nav-split-bar button {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    box-sizing: border-box;
  }
}

/* ==========================================================================
   Interactive Meal Proposal Cards (Korak 1)
   ========================================================================== */
.builder-groups {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1.25rem;
}

.builder-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.builder-group-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid #ebd9c8;
  padding-bottom: 0.45rem;
}

.builder-group-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2c1810;
  margin: 0;
}

.builder-group-hint {
  font-size: 0.8rem;
  color: #7a6b63;
  font-style: italic;
}

.builder-cards-grid {
  display: grid;
  gap: 1.15rem;
}

.lunch-cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.breakfast-cards-grid,
.sides-cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.meal-recipe-card {
  background: #ffffff;
  border: 1.5px solid #e8decb;
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.meal-recipe-card:hover {
  border-color: #6a2228;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(106, 34, 40, 0.09);
}

.meal-recipe-card.is-selected {
  border-color: #6a2228;
  background: #fffcf9;
  box-shadow: 0 4px 14px rgba(106, 34, 40, 0.12);
  outline: 2px solid rgba(106, 34, 40, 0.15);
}

.recipe-card-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.recipe-badge-type {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7a6b63;
}

.recipe-status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: #f0ebe2;
  color: #6b5c54;
  border: 1px solid #ded3c4;
  transition: all 0.18s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.recipe-status-pill.active {
  background: #6a2228;
  color: #ffffff;
  border-color: #6a2228;
}

.recipe-card-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.2;
  color: #2c1810;
  margin: 0 0 0.35rem 0;
  font-weight: 400;
}

.recipe-card-sub {
  font-size: 0.875rem;
  line-height: 1.45;
  color: #5a4b43;
  margin: 0 0 0.75rem 0;
}

/* Magic: Jednom kuvaš - dva obroka */
.recipe-card-magic {
  background: #faf7f2;
  border: 1px dashed #decbb8;
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  margin: 0.5rem 0 1rem 0;
}

.magic-head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #6a2228;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.45rem;
}

.magic-flow {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.magic-step {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.magic-tag {
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-block;
  width: fit-content;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.lunch-tag {
  background: #fdf3e2;
  color: #82531a;
  border: 1px solid #eed6ad;
}

.dinner-tag {
  background: #f5ebed;
  color: #6a2228;
  border: 1px solid #e5c3c7;
}

.magic-desc {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #3b2d26;
}

.recipe-card-footer {
  margin-top: auto;
  padding-top: 0.5rem;
}

.card-btn-action {
  display: block;
  text-align: center;
  font-family: Inter, -apple-system, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  background: #faf8f5;
  color: #55443c;
  border: 1px solid #dcd1c2;
  transition: all 0.18s ease;
}

.card-btn-action.btn-selected {
  background: #6a2228;
  color: #ffffff;
  border-color: #6a2228;
  box-shadow: 0 2px 6px rgba(106, 34, 40, 0.2);
}

.meal-recipe-card:hover .card-btn-action:not(.btn-selected) {
  border-color: #6a2228;
  color: #6a2228;
  background: #fcf8f5;
}

/* ==========================================================================
   Feedback Bridge Banner (Između Koraka 1 i Koraka 2)
   ========================================================================== */
.selection-feedback-banner {
  background: linear-gradient(135deg, #fdfaf6 0%, #f6eee3 100%);
  border: 1.5px solid #ebd9c8;
  border-radius: 10px;
  padding: 1.15rem 1.45rem;
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.feedback-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.feedback-pulse-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #6a2228;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(106, 34, 40, 0.25);
}

.feedback-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2c1810;
  margin: 0 0 0.2rem 0;
}

.feedback-text {
  font-size: 0.85rem;
  line-height: 1.45;
  color: #55443c;
  margin: 0;
}

.scroll-to-plan-btn {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Fallback chips for backwards-compat */
.builder-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.builder-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #faf8f5;
  border: 1px solid #e2d7c9;
  border-radius: 9999px;
  font-family: Inter, -apple-system, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4a3b32;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.builder-chip:hover {
  background: #f4ece2;
  border-color: #6a2228;
  color: #6a2228;
  transform: translateY(-1px);
}

.builder-chip.active {
  background: #6a2228;
  border-color: #6a2228;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(106, 34, 40, 0.16);
}

.chip-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.builder-chip.active .chip-status {
  background: #ffffff;
  color: #6a2228;
}

.empty-plan-notice {
  font-size: 0.95rem;
  color: #8c7a70;
  font-style: italic;
  padding: 1.5rem 0;
  margin: 0;
}

/* 3-Day Cycle Grid */
.meal-prep-days-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.25rem;
}

.meal-prep-day-card {
  background: #ffffff;
  border: 1px solid #eadecd;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.day-card-header {
  background: #faf8f5;
  border-bottom: 1px solid #ebe2d5;
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.day-pill {
  background: #f4ede3;
  color: #6a2228;
  border: 1px solid #ded1c1;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  flex-shrink: 0;
}

.day-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2c1810;
  margin: 0;
}

.day-meals-list {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.day-meal-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.875rem;
}

.meal-type-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #7a6b63;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.meal-name {
  color: #2c1810;
  line-height: 1.45;
}

.highlight-recycle {
  background: #faf7f2;
  border-left: 3px solid #6a2228;
  border-radius: 0 4px 4px 0;
  padding: 0.5rem 0.65rem;
}

.recycle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.recycle-tag {
  font-size: 0.7rem;
  color: #6a2228;
  font-weight: 600;
}

.day-card-footer {
  border-top: 1px solid #ebe2d5;
  padding: 0.85rem 1.15rem;
  background: #faf8f5;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.prep-tomorrow-box, .kids-note-box {
  font-size: 0.8125rem;
  line-height: 1.45;
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  background: #ffffff;
  border: 1px solid #ebe2d5;
  color: #4a3b32;
}

.prep-tomorrow-box strong, .kids-note-box strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #2c1810;
}

.prep-tomorrow-box p, .kids-note-box p {
  margin: 0;
}

/* Grocery Section */
.section-title-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.grocery-columns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.15rem;
  margin-bottom: 1.5rem;
}

.grocery-cat-card {
  background: #faf7f2;
  border: 1px solid #e7dfd1;
  border-radius: 8px;
  padding: 1.15rem;
}

.grocery-cat-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #38251e;
  margin: 0 0 0.75rem 0;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid #e6dccf;
}

.grocery-items-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.grocery-items-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.grocery-item-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.875rem;
  color: #38251e;
  cursor: pointer;
  user-select: none;
  flex: 1;
}

.grocery-item-label input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #6a2228;
  cursor: pointer;
}

.grocery-item-label.item-checked span {
  text-decoration: line-through;
  opacity: 0.5;
  color: #7a6e67;
}

.btn-remove-custom {
  background: none;
  border: none;
  color: #a33;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.25rem;
}

.grocery-add-form {
  display: flex;
  gap: 0.5rem;
  max-width: 28rem;
}

.grocery-add-form input {
  flex: 1;
  padding: 0.45rem 0.75rem;
  border: 1px solid #d9ccba;
  border-radius: 6px;
  background: #fff;
  font-size: 0.875rem;
}

/* Schedule Section */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.15rem;
  margin-bottom: 1.5rem;
}

.schedule-card {
  background: #faf7f2;
  border: 1px solid #ebe1d2;
  border-radius: 8px;
  padding: 1.25rem;
}

.schedule-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #6a2228;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.3rem;
}

.schedule-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c1810;
  margin: 0 0 0.75rem 0;
}

.schedule-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.schedule-points li {
  font-size: 0.875rem;
  line-height: 1.45;
  color: #4a3b34;
  position: relative;
  padding-left: 1.1rem;
}

.schedule-points li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #6a2228;
  font-weight: 700;
  font-size: 0.85rem;
}

.storage-callout {
  background: #faf7f2;
  border: 1px solid #eadecd;
  border-left: 3px solid #6a2228;
  border-radius: 0 8px 8px 0;
  padding: 1.15rem 1.4rem;
  color: #4a3b32;
}

.storage-callout h3 {
  font-size: 0.95rem;
  margin: 0 0 0.5rem 0;
  color: #2c1810;
}
}

.storage-callout ul {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.85rem;
  line-height: 1.55;
}

/* Print Styling - Always strictly 1 page for grocery list */
@media print {
  @page {
    size: A4 portrait;
    margin: 8mm 10mm;
  }
  header.portal-header,
  .library-navigation,
  .library-toolbar,
  .meal-prep-actions-bar,
  .grocery-add-custom,
  .btn-remove-custom,
  .meal-prep-collapsible-guide,
  .meal-prep-wizard-stepper,
  .wizard-step-1,
  .wizard-step-2,
  .step3-primary-actions,
  .wizard-nav-split-bar,
  .schedule-guidelines-box,
  footer,
  .scroll-shortcuts {
    display: none !important;
  }
  body, main, #library, #meal-prep-app-root {
    background: #fff !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .meal-prep-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
  }
  .wizard-step-3 {
    display: block !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .step-pane-header {
    border-bottom: 2px solid #6a2228 !important;
    margin-bottom: 0.75rem !important;
    padding-bottom: 0.4rem !important;
  }
  .grocery-columns-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.85rem !important;
    page-break-inside: avoid;
  }
  .grocery-cat-card {
    border: 1px solid #e0d5c8 !important;
    border-radius: 6px !important;
    padding: 0.5rem 0.75rem !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }
  .grocery-cat-title {
    font-size: 0.825rem !important;
    color: #6a2228 !important;
    margin-bottom: 0.35rem !important;
    border-bottom: 1px solid #ebd9c8 !important;
    padding-bottom: 0.25rem !important;
  }
  .grocery-items-list {
    font-size: 0.785rem !important;
    line-height: 1.35 !important;
  }
}
