@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --paper: #f5f3ed;
  --ink: #202923;
  --muted: #777c72;
  --green: #315746;
  --green-dark: #243f33;
  --orange: #e7794e;
  --line: #deded3;
  --white: #fffefa;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; color: var(--ink); background: var(--paper); }
button, input { font: inherit; }
button { cursor: pointer; }
.app-shell { width: min(100% - 48px, 1000px); margin: 0 auto; }
.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(49, 87, 70, .16); }
.wordmark { display: inline-flex; gap: 10px; align-items: center; color: var(--ink); font-size: 16px; font-weight: 700; text-decoration: none; }
.wordmark-mark { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; color: var(--white); background: var(--green); font-family: 'Manrope', 'Segoe UI', sans-serif; font-size: 21px; font-style: italic; }
.wordmark-dot { color: var(--orange); }
.connection { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; }
.connection-dot { width: 8px; height: 8px; border-radius: 50%; background: #7a9d71; }
.connection.is-offline .connection-dot { background: var(--orange); }
.intro { display: grid; grid-template-columns: 1fr .87fr; gap: 48px; align-items: center; padding: 47px 0 39px; }
.eyebrow { margin: 0; color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: 1.25px; }
h1, h2, p { margin-top: 0; }
h1, .dish-pick, .section-heading h2 { font-family: 'Manrope', 'Segoe UI', sans-serif; }
h1 { margin: 13px 0 12px; font-size: clamp(46px, 6vw, 70px); font-weight: 600; line-height: .99; letter-spacing: 0; }
h1 span { color: var(--green); }
.intro-text { max-width: 365px; margin: 0; color: #60675f; font-size: 14px; line-height: 1.65; }
.food-photo { position: relative; min-height: 225px; overflow: hidden; border-radius: 4px 44px 4px 4px; background-color: #d7d1be; background-image: linear-gradient(0deg, rgba(31, 38, 29, .39), transparent 46%), url('https://images.unsplash.com/photo-1547592180-85f173990554?auto=format&fit=crop&w=1100&q=82'); background-position: center 52%; background-size: cover; animation: appear .65s ease-out both; }
.photo-caption { position: absolute; right: 17px; bottom: 15px; color: white; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.suggestion { position: relative; overflow: hidden; padding: 25px 30px 0; color: #fffefa; background: var(--green); border-radius: 4px; }
.suggestion::after { position: absolute; top: -77px; right: 28%; width: 190px; height: 190px; border: 1px solid rgba(255, 255, 255, .11); border-radius: 50%; box-shadow: 0 0 0 22px rgba(255, 255, 255, .025), 0 0 0 45px rgba(255, 255, 255, .025); content: ''; pointer-events: none; }
.suggestion-meta, .suggestion-content, .suggestion-bottom { position: relative; z-index: 1; }
.suggestion-meta { display: flex; align-items: center; justify-content: space-between; }
.suggestion .eyebrow { color: #c4d5c6; }
.sunday-tag { padding: 7px 10px; color: #f9dfc4; background: rgba(255, 255, 255, .11); font-size: 9px; font-weight: 700; letter-spacing: .8px; }
.sunday-tag span { margin-right: 5px; color: #f6a578; }
.suggestion-content { display: flex; min-height: 142px; align-items: center; justify-content: space-between; gap: 20px; }
.suggestion-content h2 { margin: 0 0 5px; color: #d2dfd3; font-size: 12px; font-weight: 500; }
.dish-pick { min-height: 44px; margin: 0; font-size: clamp(27px, 4vw, 38px); line-height: 1.2; overflow-wrap: anywhere; }
.suggestion-note { margin: 5px 0 0; color: #c4d5c6; font-size: 11px; }
.draw-button { display: inline-flex; flex: 0 0 auto; min-height: 42px; align-items: center; gap: 9px; padding: 0 15px; border: 1px solid rgba(255, 255, 255, .48); border-radius: 2px; color: white; background: transparent; font-size: 12px; font-weight: 600; transition: background .2s ease, color .2s ease; }
.draw-button:hover:not(:disabled) { color: var(--green-dark); background: white; }
.draw-button:disabled, .add-form button:disabled { cursor: wait; opacity: .62; }
.draw-button span:first-child { font-size: 18px; }
.suggestion-bottom { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .19); color: #c4d5c6; font-size: 8px; font-weight: 600; letter-spacing: 1px; }
.collection { padding: 40px 0 35px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-heading h2 { margin: 7px 0 0; font-size: 27px; font-weight: 600; }
.section-heading h2 span { color: var(--muted); font-family: 'Manrope', 'Segoe UI', sans-serif; font-size: 14px; font-weight: 500; }
.collection-hint { margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.add-form { display: flex; gap: 8px; }
.add-form input { width: 100%; min-width: 0; height: 47px; padding: 0 14px; border: 1px solid var(--line); border-radius: 2px; outline: none; color: var(--ink); background: var(--white); font-size: 13px; }
.add-form input:focus { border-color: var(--green); box-shadow: 0 0 0 2px rgba(49, 87, 70, .12); }
.add-form input::placeholder { color: #989b91; }
.add-form button { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; padding: 0 15px; border: 0; border-radius: 2px; color: white; background: var(--orange); font-size: 12px; font-weight: 700; transition: background .2s ease; }
.add-form button:hover:not(:disabled) { background: #ca603a; }
.add-form button span { font-size: 20px; font-weight: 400; }
.form-error { min-height: 17px; margin: 5px 0 1px; color: #a3442b; font-size: 11px; }
.dish-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin: 0; padding: 0; list-style: none; }
.dish-item { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 13px; border: 1px solid var(--line); background: rgba(255, 254, 250, .72); animation: appear .25s ease-out both; }
.dish-name { overflow: hidden; color: #333c34; font-family: 'Manrope', 'Segoe UI', sans-serif; font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.remove-button { flex: 0 0 auto; padding: 5px 0 5px 8px; border: 0; color: #81857a; background: none; font-size: 10px; }
.remove-button:hover { color: #a3442b; }
.empty-list { grid-column: 1 / -1; padding: 18px; color: var(--muted); background: rgba(255, 254, 250, .65); font-size: 13px; text-align: center; }
.storage-note { margin: 17px 0 0; color: var(--muted); font-size: 10px; }
.storage-note span { margin-right: 5px; color: var(--green); }
.footer { display: flex; justify-content: space-between; padding: 17px 0 24px; border-top: 1px solid rgba(49, 87, 70, .16); color: #7d8176; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.footer span span { color: var(--orange); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@keyframes appear { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 650px) {
  .app-shell { width: min(100% - 32px, 500px); }
  .topbar { height: 68px; }
  .intro { grid-template-columns: 1fr; gap: 21px; padding: 33px 0 25px; }
  h1 { margin-top: 10px; font-size: 52px; }
  .intro-text { max-width: 330px; font-size: 13px; }
  .food-photo { min-height: 165px; background-position: center 47%; }
  .suggestion { padding: 20px 18px 0; }
  .suggestion-content { min-height: 145px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 14px; padding: 19px 0; }
  .dish-pick { min-height: auto; font-size: 30px; }
  .draw-button { min-height: 38px; }
  .suggestion-bottom { font-size: 7px; }
  .collection { padding-top: 32px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .section-heading h2 { font-size: 25px; }
  .collection-hint { margin: 0; }
  .add-form { flex-direction: column; }
  .add-form input { height: 45px; }
  .add-form button { min-height: 44px; justify-content: center; }
  .dish-list { grid-template-columns: 1fr; gap: 7px; }
  .footer { gap: 12px; font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

:root {
  --paper: #f3f5ef;
  --ink: #192b24;
  --muted: #737e75;
  --green: #264b3b;
  --green-dark: #173829;
  --orange: #d96745;
  --line: #e1e6dd;
  --white: #fff;
}

body { background-color: var(--paper); }
.app-shell { width: min(100% - 64px, 1120px); }
.topbar { height: 76px; border-bottom-color: #dce3da; }
.wordmark { gap: 11px; font-size: 15px; letter-spacing: 0; }
.wordmark-mark { width: 36px; height: 36px; border-radius: 10px 10px 10px 3px; font-size: 23px; }
.connection { padding: 8px 11px; border: 1px solid #dce3da; border-radius: 30px; background: rgba(255, 255, 255, .65); }
.intro { grid-template-columns: 1.05fr .95fr; gap: 64px; padding: 58px 0 46px; }
.eyebrow { font-size: 10px; letter-spacing: 1.45px; }
h1 { margin: 16px 0 15px; font-size: 64px; line-height: 1.02; }
.intro-text { max-width: 390px; font-size: 15px; line-height: 1.7; }
.food-photo { min-height: 275px; border-radius: 8px 52px 8px 8px; box-shadow: 0 14px 35px rgba(29, 52, 39, .12); }
.photo-caption { right: 20px; bottom: 18px; font-size: 9px; }
.suggestion { padding: 27px 32px 0; border-radius: 9px; box-shadow: 0 13px 30px rgba(28, 62, 45, .14); }
.suggestion::after { right: 23%; width: 210px; height: 210px; }
.sunday-tag { border-radius: 30px; }
.suggestion-content { min-height: 148px; }
.suggestion-content h2 { color: #d2dfd3; font-size: 13px; }
.dish-pick { font-size: 36px; }
.draw-button { border-radius: 5px; }
.draw-button span:first-child { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .13); }
.suggestion-bottom { font-size: 9px; }
.collection { padding: 49px 0 43px; }
.section-heading { margin-bottom: 23px; }
.section-heading h2 { font-size: 30px; }
.collection-hint { margin-bottom: 6px; font-size: 12px; }
.add-form { gap: 10px; }
.add-form input { height: 50px; border-color: #dfe5dc; border-radius: 6px; background: #fff; }
.add-form button { padding: 0 18px; border-radius: 6px; }
.form-error { min-height: 18px; }
.dish-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dish-item { position: relative; min-height: 106px; align-items: stretch; flex-direction: column; gap: 15px; padding: 16px 17px 13px; border-color: #e3e8e0; border-radius: 7px; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 6px rgba(29, 52, 39, .035); transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.dish-item:hover { transform: translateY(-2px); border-color: #b8c9b8; box-shadow: 0 8px 20px rgba(29, 52, 39, .08); }
.dish-card-link { position: absolute; z-index: 1; inset: 0; border-radius: inherit; }
.dish-title-link { position: relative; z-index: 2; display: block; color: inherit; text-decoration: none; }
.dish-title-link:focus-visible, .dish-card-link:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.dish-copy { display: grid; gap: 5px; min-width: 0; }
.dish-name { font-size: 17px; }
.dish-detail { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.dish-actions { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.recipe-button { padding: 7px 10px; border: 1px solid #d7e4d8; border-radius: 4px; color: var(--green); background: #f4f8f2; font-size: 11px; font-weight: 700; text-decoration: none; transition: background .18s ease, border-color .18s ease; }
.recipe-button:hover { border-color: #b7cbb8; background: #eaf2e8; }
.remove-button { padding: 7px 4px 7px 8px; font-size: 11px; }
.empty-list { border: 1px dashed #cbd5ca; border-radius: 7px; background: rgba(255, 255, 255, .55); }
.storage-note { margin-top: 19px; font-size: 11px; }
.footer { padding-top: 19px; border-top-color: #dce3da; font-size: 9px; }

.recipe-dialog { width: min(100% - 32px, 560px); max-height: min(90dvh, 760px); overflow: auto; padding: 0; border: 1px solid #e0e6dd; border-radius: 10px; color: var(--ink); background: #fbfcf9; box-shadow: 0 24px 80px rgba(15, 37, 25, .25); }
.recipe-dialog::backdrop { background: rgba(15, 30, 22, .58); backdrop-filter: blur(3px); }
.recipe-dialog form { padding: 25px; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.dialog-heading h2 { margin: 8px 0 4px; font-family: 'Manrope', 'Segoe UI', sans-serif; font-size: 30px; font-weight: 700; }
.dialog-dish-name { margin: 0; color: var(--muted); font-size: 13px; }
.dialog-close { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: white; font-size: 24px; line-height: 1; }
.field-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 18px 0 8px; font-size: 12px; font-weight: 700; }
.field-label span { color: var(--muted); font-size: 10px; font-weight: 400; }
.recipe-dialog textarea { display: block; width: 100%; min-height: 100px; resize: vertical; padding: 12px 13px; border: 1px solid #dfe5dc; border-radius: 5px; outline: none; color: var(--ink); background: white; font: 13px/1.55 'Manrope', 'Segoe UI', sans-serif; }
.recipe-dialog textarea:focus { border-color: #6c9279; box-shadow: 0 0 0 3px rgba(49, 87, 70, .12); }
.recipe-dialog textarea::placeholder { color: #9ca69d; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 23px; }
.dialog-actions button { min-height: 42px; padding: 0 15px; border-radius: 5px; font-size: 12px; font-weight: 700; }
.cancel-button { border: 1px solid var(--line); color: #536056; background: #fff; }
.save-recipe-button { border: 1px solid var(--green); color: #fff; background: var(--green); }
.save-recipe-button:hover { background: var(--green-dark); }
.is-hidden { display: none !important; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.account-button { min-height: 38px; padding: 0 15px; border: 0; border-radius: 5px; color: #fff; background: var(--green); font-size: 12px; font-weight: 700; }
.account-button:hover { background: var(--green-dark); }
.collection-actions { display: flex; align-items: center; gap: 16px; }
.import-button { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 12px; border: 1px solid #cbd9cc; border-radius: 5px; color: var(--green); background: rgba(255, 255, 255, .72); font-size: 11px; font-weight: 700; }
.import-button:hover { border-color: #9db6a0; background: white; }
.import-button span { font-size: 16px; }
.account-dialog, .import-dialog { width: min(100% - 32px, 500px); max-height: min(90dvh, 780px); overflow: auto; padding: 0; border: 1px solid #e0e6dd; border-radius: 10px; color: var(--ink); background: #fbfcf9; box-shadow: 0 24px 80px rgba(15, 37, 25, .25); }
.account-dialog::backdrop, .import-dialog::backdrop { background: rgba(15, 30, 22, .58); backdrop-filter: blur(3px); }
.account-dialog form, .import-dialog form { padding: 25px; }
.auth-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 22px; padding: 4px; border-radius: 6px; background: #eaf0e8; }
.auth-mode-button { min-height: 37px; border: 0; border-radius: 4px; color: #647169; background: transparent; font-size: 11px; font-weight: 700; }
.auth-mode-button.is-active { color: var(--green); background: white; box-shadow: 0 1px 3px rgba(29, 52, 39, .1); }
.account-input { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #dfe5dc; border-radius: 5px; outline: none; color: var(--ink); background: white; font: 13px 'DM Sans', 'Segoe UI', sans-serif; }
.account-input:focus { border-color: #6c9279; box-shadow: 0 0 0 3px rgba(49, 87, 70, .12); }
.account-dialog .field-label, .import-dialog .field-label { margin-top: 16px; }
.account-dialog .account-name-field.is-hidden { display: none; }
.dialog-error { min-height: 17px; margin: 10px 0; color: #a3442b; font-size: 11px; }
.account-submit { width: 100%; min-height: 44px; margin-top: 8px; cursor: pointer; }
.account-submit:disabled { cursor: wait; opacity: .6; }
.account-profile { padding-top: 10px; }
.account-profile p:first-child { margin-bottom: 4px; font-family: 'Manrope', 'Segoe UI', sans-serif; font-size: 22px; font-weight: 700; }
.account-profile p:nth-child(2) { margin-bottom: 22px; color: var(--muted); font-size: 12px; }
.account-profile button { min-height: 40px; padding: 0 14px; cursor: pointer; }
.import-url-row { display: flex; gap: 8px; }
.import-url-row .account-input { flex: 1 1 auto; }
.load-import-button { flex: 0 0 auto; min-height: 44px; padding: 0 14px; border: 1px solid var(--green); border-radius: 5px; color: white; background: var(--green); font-size: 11px; font-weight: 700; }
.load-import-button:disabled { cursor: wait; opacity: .6; }
.import-result textarea { display: block; width: 100%; min-height: 88px; resize: vertical; padding: 11px 12px; border: 1px solid #dfe5dc; border-radius: 5px; outline: none; color: var(--ink); background: white; font: 13px/1.55 'DM Sans', 'Segoe UI', sans-serif; }
.import-result textarea:focus { border-color: #6c9279; box-shadow: 0 0 0 3px rgba(49, 87, 70, .12); }
.import-disclaimer { margin: 13px 0 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }

@media (max-width: 650px) {
  .topbar-actions { gap: 6px; }
  .connection { padding: 7px 9px; font-size: 10px; }
  .account-button { min-height: 35px; padding: 0 11px; }
  .collection-actions { width: 100%; align-items: flex-start; flex-direction: column; gap: 12px; }
  .import-button { width: 100%; justify-content: center; }
  .account-dialog form, .import-dialog form { padding: 20px; }
  .import-url-row { align-items: stretch; flex-direction: column; }
  .load-import-button { width: 100%; }
}

.admin-entry { display: block; width: 100%; min-height: 40px; margin-bottom: 9px; border: 1px solid #cbd9cc; border-radius: 5px; color: var(--green); background: #f4f8f2; font-size: 11px; font-weight: 700; cursor: pointer; }
.admin-entry:hover { background: #eaf2e8; }
.admin-dialog { width: min(100% - 32px, 1120px); max-width: 1120px; max-height: min(92dvh, 900px); overflow: auto; padding: 0; border: 1px solid #dce5dc; border-radius: 10px; color: var(--ink); background: #f7f9f5; box-shadow: 0 24px 80px rgba(15, 37, 25, .28); }
.admin-dialog::backdrop { background: rgba(15, 30, 22, .62); backdrop-filter: blur(4px); }
.admin-layout { padding: 26px; }
.admin-header, .admin-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.admin-header { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.admin-header h2 { margin: 7px 0 4px; font-family: 'Manrope', 'Segoe UI', sans-serif; font-size: 34px; font-weight: 700; }
.admin-summary { margin: 0; color: var(--muted); font-size: 12px; }
.admin-section { padding: 24px 0; border-bottom: 1px solid var(--line); }
.admin-section:last-child { padding-bottom: 0; border-bottom: 0; }
.admin-section-heading { align-items: end; margin-bottom: 15px; }
.admin-section-heading h3 { margin: 6px 0 0; font-family: 'Manrope', 'Segoe UI', sans-serif; font-size: 23px; font-weight: 700; }
.admin-section-heading h3 span { color: var(--muted); font-family: 'Manrope', 'Segoe UI', sans-serif; font-size: 13px; }
.admin-save-button, .user-save-button { min-height: 36px; padding: 0 12px; border: 1px solid var(--green); border-radius: 4px; color: white; background: var(--green); font-size: 10px; font-weight: 700; cursor: pointer; }
.admin-save-button:hover, .user-save-button:hover:not(:disabled) { background: var(--green-dark); }
.admin-save-button:disabled, .user-save-button:disabled, .user-delete-button:disabled { cursor: wait; opacity: .55; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.setting-row { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border: 1px solid #e1e7df; border-radius: 5px; background: white; cursor: pointer; }
.setting-row span { display: grid; gap: 3px; }
.setting-row strong { font-size: 11px; }
.setting-row small { color: var(--muted); font-size: 10px; }
.setting-row input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--green); }
.setting-row input[type="number"] { width: 100px; height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: #fff; }
.admin-message { min-height: 15px; margin: 8px 0 0; color: var(--green); font-size: 11px; }
.admin-search input { width: min(100%, 250px); min-height: 37px; padding: 0 11px; border: 1px solid var(--line); border-radius: 4px; outline: none; background: white; font: 11px 'DM Sans', 'Segoe UI', sans-serif; }
.admin-search input:focus { border-color: #6c9279; box-shadow: 0 0 0 2px rgba(49, 87, 70, .12); }
.users-table-wrap { overflow-x: auto; border: 1px solid #e1e7df; border-radius: 5px; background: white; }
.users-table { width: 100%; min-width: 820px; border-collapse: collapse; text-align: left; }
.users-table th { padding: 11px 12px; color: #68756b; background: #f0f4ee; font-size: 9px; font-weight: 700; }
.users-table td { padding: 10px 12px; border-top: 1px solid #edf0ea; font-size: 10px; vertical-align: middle; }
.users-table td:first-child { min-width: 190px; }
.users-table td:first-child strong, .users-table td:first-child small { display: block; }
.users-table td:first-child strong { font-size: 11px; }
.users-table td:first-child small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.role-select { min-height: 31px; padding: 0 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: white; font: 10px 'DM Sans', 'Segoe UI', sans-serif; }
.status-toggle { display: flex; align-items: center; gap: 6px; color: #536056; white-space: nowrap; }
.status-toggle input { accent-color: var(--orange); }
.user-actions { display: flex; gap: 6px; white-space: nowrap; }
.user-save-button { min-height: 30px; padding: 0 9px; font-size: 9px; }
.user-delete-button { min-height: 30px; padding: 0 9px; border: 1px solid #e5c9be; border-radius: 4px; color: #a3442b; background: white; font-size: 9px; font-weight: 700; cursor: pointer; }
.user-delete-button:hover:not(:disabled) { background: #fff1eb; }

@media (max-width: 650px) {
  .admin-layout { padding: 19px; }
  .admin-header h2 { font-size: 29px; }
  .admin-section-heading { align-items: flex-start; flex-direction: column; }
  .admin-save-button { width: 100%; }
  .settings-grid { grid-template-columns: 1fr; }
  .number-setting input[type="number"] { width: 88px; }
  .users-heading-row { gap: 10px; }
  .admin-search, .admin-search input { width: 100%; }
}

.profile-toolbar { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; padding: 24px 0; border-bottom: 1px solid #dce3da; }
.profile-toolbar > span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 1.15px; text-align: center; }
.profile-back, .profile-edit { min-height: 38px; padding: 0 12px; border: 1px solid #d9e2d8; border-radius: 5px; color: var(--green); background: rgba(255, 255, 255, .75); font-size: 11px; font-weight: 700; }
.profile-back { justify-self: start; }
.profile-edit { justify-self: end; }
.profile-back:hover, .profile-edit:hover { background: white; }
.profile-back span { margin-right: 5px; font-size: 16px; }
.profile-hero { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: 32px 0 40px; }
.profile-gallery { position: relative; aspect-ratio: 1.28; overflow: hidden; border-radius: 8px 44px 8px 8px; background: #dfe8de; box-shadow: 0 14px 35px rgba(29, 52, 39, .11); }
.profile-main-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-image-empty { display: grid; width: 100%; height: 100%; place-items: center; color: rgba(38, 75, 59, .58); background: radial-gradient(ellipse at 54% 46%, #f5f5e9 0 23%, transparent 24%), radial-gradient(ellipse at 54% 46%, #b9cdb9 0 34%, transparent 35%), linear-gradient(140deg, #e8eee2, #d1ded1); text-align: center; }
.profile-image-empty span { padding-top: 145px; color: #54715c; font-size: 9px; font-weight: 700; line-height: 1.7; letter-spacing: 1.4px; }
.profile-image-caption { position: absolute; right: 17px; bottom: 15px; z-index: 1; padding: 7px 9px; color: white; background: rgba(24, 45, 33, .62); font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.profile-thumbnails { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; gap: 7px; max-width: calc(100% - 24px); overflow-x: auto; }
.profile-thumbnail { position: relative; flex: 0 0 58px; width: 58px; height: 58px; padding: 0; overflow: hidden; border: 2px solid white; border-radius: 5px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.profile-thumbnail-wrap { position: relative; display: block; flex: 0 0 58px; width: 58px; height: 58px; }
.profile-thumbnail-wrap .profile-thumbnail { display: block; }
.profile-thumbnail.is-active { border-color: #e7794e; }
.profile-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.profile-thumbnail-remove { position: absolute; top: 2px; right: 2px; display: grid; width: 18px; height: 18px; place-items: center; border: 0; border-radius: 50%; color: white; background: rgba(23, 56, 41, .86); font-size: 13px; line-height: 1; }
.profile-intro { padding: 10px 0; }
.profile-intro h1 { max-width: 500px; margin: 14px 0 13px; font-size: clamp(42px, 6vw, 66px); font-weight: 700; overflow-wrap: anywhere; }
.profile-intro-note { max-width: 380px; margin-bottom: 23px; color: #60675f; font-size: 14px; line-height: 1.65; }
.profile-source { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; color: var(--green); font-size: 12px; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.profile-source span { font-size: 16px; }
.profile-upload { display: flex; width: fit-content; min-height: 43px; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid #cbd9cc; border-radius: 5px; color: var(--green); background: white; font-size: 11px; font-weight: 700; cursor: pointer; }
.profile-upload:hover { background: #f4f8f2; }
.profile-upload span { font-size: 18px; }
.profile-upload-note { margin: 8px 0 0; color: var(--muted); font-size: 10px; }
.profile-recipe-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 15px; padding-bottom: 42px; }
.profile-panel { min-width: 0; padding: 24px; border: 1px solid #e1e7df; border-radius: 7px; background: rgba(255, 255, 255, .82); }
.profile-panel h2 { margin: 8px 0 17px; font-family: 'Manrope', 'Segoe UI', sans-serif; font-size: 26px; font-weight: 700; }
.profile-panel h2 span { color: var(--muted); font-family: 'Manrope', 'Segoe UI', sans-serif; font-size: 12px; font-weight: 500; }
.profile-ingredients { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.profile-ingredients li { display: flex; gap: 10px; align-items: baseline; padding: 10px 0; border-top: 1px solid #edf0ea; color: #39453c; font-size: 12px; line-height: 1.5; }
.profile-ingredients li::before { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--orange); content: ''; }
.profile-instructions { margin: 0; color: #39453c; font-size: 13px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-empty-copy { margin: 0; color: var(--muted); font-size: 12px; }
.family-poll { margin-top: 16px; padding: 23px 25px 0; border: 1px solid #dfe5dc; border-radius: 7px; background: rgba(255, 255, 255, .9); }
.poll-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.poll-heading-row h2 { margin: 6px 0 0; color: var(--ink); font-size: 21px; font-weight: 700; }
.poll-status { padding: 6px 9px; border-radius: 20px; color: #376649; background: #e8f1e7; font-size: 8px; font-weight: 800; letter-spacing: .75px; }
.poll-status.is-closed { color: #777c72; background: #eef0eb; }
.poll-main { display: grid; grid-template-columns: minmax(180px, 1fr) auto minmax(270px, 1.5fr); gap: 18px; align-items: center; padding: 20px 0 14px; }
.poll-dish { display: flex; min-width: 0; align-items: center; gap: 11px; }
.poll-spark { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 50%; color: #d96745; background: #fff0e5; font-size: 18px; }
.poll-label { margin: 0 0 3px; color: #7a857c; font-size: 8px; font-weight: 800; letter-spacing: .8px; }
.poll-dish h3 { margin: 0; overflow-wrap: anywhere; color: var(--ink); font-size: 17px; font-weight: 700; }
.poll-byline { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.poll-results { display: flex; gap: 12px; }
.poll-result { display: grid; min-width: 60px; gap: 4px; padding-left: 11px; border-left: 1px solid var(--line); }
.poll-result span { color: var(--muted); font-size: 8px; }
.poll-result strong { color: #2c5540; font-size: 17px; }
.poll-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.vote-button { min-height: 37px; padding: 0 11px; border: 1px solid #cbd9cc; border-radius: 4px; color: #315746; background: #f5f8f2; font-size: 9px; font-weight: 700; cursor: pointer; }
.vote-button:hover { background: #eaf2e8; }
.vote-button span { margin-right: 4px; font-size: 13px; }
.vote-accept { border-color: #315746; color: white; background: #315746; }
.vote-accept:hover { background: #243f33; }
.vote-decline { border-color: #e1c9c1; color: #9d4e39; background: #fff9f6; }
.vote-decline:hover { background: #fff0e9; }
.vote-button:disabled { opacity: .55; cursor: wait; }
.alternative-form { display: flex; grid-column: 1 / -1; gap: 8px; }
.alternative-form input { flex: 1 1 auto; min-width: 0; min-height: 39px; padding: 0 11px; border: 1px solid #dfe5dc; border-radius: 4px; font: 11px 'Manrope', 'Segoe UI', sans-serif; }
.alternative-form button { min-height: 39px; padding: 0 12px; border: 0; border-radius: 4px; color: white; background: var(--orange); font-size: 9px; font-weight: 700; cursor: pointer; }
.poll-message { grid-column: 1 / -1; min-height: 15px; margin: 0; color: #536e59; font-size: 9px; }
.poll-footer { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid #e6ebe4; color: #7a857c; font-size: 8px; }
.poll-footer span:last-child { text-align: right; }
@media (max-width: 900px) {
  .poll-main { grid-template-columns: 1fr auto; gap: 13px; }
  .poll-results { justify-self: end; }
  .poll-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 650px) {
  .family-poll { padding: 18px 15px 0; }
  .poll-heading-row { align-items: flex-start; }
  .poll-heading-row h2 { font-size: 18px; }
  .poll-status { flex: 0 0 auto; font-size: 7px; }
  .poll-main { grid-template-columns: 1fr; gap: 13px; padding: 17px 0 10px; }
  .poll-results { justify-self: stretch; justify-content: space-between; }
  .poll-result { min-width: 0; flex: 1; }
  .poll-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .vote-button { min-height: 40px; }
  .vote-alternative { grid-column: 1 / -1; }
  .alternative-form { grid-column: 1; flex-direction: column; }
  .alternative-form button { width: 100%; }
  .poll-footer { flex-direction: column; gap: 5px; }
  .poll-footer span:last-child { text-align: left; }
}

@media (max-width: 650px) {
  .profile-toolbar { grid-template-columns: 1fr auto; }
  .profile-toolbar > span { display: none; }
  .profile-back, .profile-edit { min-height: 36px; padding: 0 9px; font-size: 10px; }
  .profile-hero { grid-template-columns: 1fr; gap: 20px; padding: 20px 0 28px; }
  .profile-gallery { aspect-ratio: 1.12; border-radius: 7px 34px 7px 7px; }
  .profile-image-empty span { padding-top: 125px; }
  .profile-intro { padding: 0; }
  .profile-intro h1 { margin: 10px 0; font-size: 43px; }
  .profile-intro-note { margin-bottom: 15px; font-size: 13px; }
  .profile-source { margin-bottom: 17px; }
  .profile-recipe-grid { grid-template-columns: 1fr; gap: 10px; }
  .profile-panel { padding: 19px; }
  .profile-panel h2 { font-size: 23px; }
}

@media (max-width: 650px) {
  .app-shell { width: min(100% - 32px, 500px); }
  .topbar { height: 68px; }
  .intro { grid-template-columns: 1fr; gap: 22px; padding: 35px 0 27px; }
  h1 { margin-top: 12px; font-size: 52px; }
  .intro-text { font-size: 14px; }
  .food-photo { min-height: 185px; }
  .suggestion { padding: 20px 18px 0; }
  .suggestion-content { min-height: 155px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 14px; padding: 19px 0; }
  .dish-pick { min-height: auto; font-size: 30px; }
  .draw-button { min-height: 39px; }
  .suggestion-bottom { gap: 12px; font-size: 7px; }
  .collection { padding-top: 35px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .section-heading h2 { font-size: 26px; }
  .collection-hint { margin: 0; }
  .add-form { flex-direction: column; }
  .add-form input { height: 47px; }
  .add-form button { min-height: 45px; justify-content: center; }
  .dish-list { grid-template-columns: 1fr; gap: 9px; }
  .dish-item { min-height: 100px; }
  .footer { gap: 12px; font-size: 7px; }
  .recipe-dialog form { padding: 20px; }
  .dialog-heading h2 { font-size: 26px; }
}
/* Anmeldehinweis, Eckdaten, Benutzerverwaltung */
.login-gate { margin: 40px 0; padding: 42px 32px; border: 1px solid #dce3da; border-radius: 9px; background: white; text-align: center; box-shadow: 0 13px 30px rgba(28, 62, 45, .08); }
.login-gate h2 { margin: 10px 0; font-family: 'Manrope', 'Segoe UI', sans-serif; font-size: 30px; }
.login-gate p:not(.eyebrow) { max-width: 420px; margin: 0 auto 22px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.gate-button { min-height: 44px; padding: 0 22px; border-radius: 5px; font-size: 13px; font-weight: 700; cursor: pointer; }
.meta-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.meta-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.meta-grid label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 600; }
.meta-grid .account-input { min-height: 38px; padding: 6px 8px; }
.profile-facts { display: flex; flex-wrap: wrap; gap: 8px; max-width: 460px; margin: 0 0 22px; }
.profile-facts div { min-width: 92px; padding: 9px 12px; border: 1px solid #dce3da; border-radius: 6px; background: rgba(255, 255, 255, .8); }
.profile-facts dt { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.profile-facts dd { margin: 3px 0 0; color: var(--green); font-size: 15px; font-weight: 700; }
.profile-servings { margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.admin-tools { display: flex; align-items: center; gap: 10px; }
.status-hint { display: block; margin-top: 3px; color: #a3442b; font-size: 9px; }
.user-check { display: flex; align-items: center; gap: 9px; margin-top: 14px; font-size: 12px; cursor: pointer; }
.user-check input { width: 16px; height: 16px; accent-color: var(--green); }
.user-dialog select.account-input { appearance: auto; }
@media (max-width: 650px) {
  .meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-tools { width: 100%; flex-direction: column; align-items: stretch; }
  .login-gate { padding: 32px 20px; }
}
