﻿  :root {
    --bg: #11151c;
    --surface: #1b212c;
    --surface-2: #232b38;
    --surface-3: #2c3646;
    --text: #e7edf7;
    --muted: #a7b1c1;
    --border: #3c485c;
    --danger: #d26a6a;

    --accent: #4f7fb8;
    --accent-2: #6998d0;
    --accent-3: #86b0e0;
    --accent-soft: #2a3b53;
    --accent-soft-2: #344967;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
    background: #f5f0eb;
    color: #333;
    min-height: 100vh;
  }

  input,
  button,
  select,
  textarea {
    font-family: inherit;
  }

  /* ── Top bar ── */
  .topbar {
    display: flex; justify-content: center; gap: 12px;
    padding: 10px; background: #4a6741; color: #fff;
  }
  .topbar button {
    background: #6b8f5e; border: none; color: #fff; padding: 8px 16px;
    border-radius: 6px; cursor: pointer; font-size: 14px;
  }
  .topbar button:hover { background: #8ab07a; }
  #authStatus {
    font-size: 13px;
    color: #fff;
    align-self: center;
  }
  .sync-status {
    font-size: 12px;
    color: #dce9d7;
    align-self: center;
  }

  /* ── Month header ── */
  .month-header {
    display: flex; align-items: center; justify-content: center;
    padding: 18px 0 10px; gap: 24px; user-select: none;
  }
  .month-header .arrow {
    font-size: 28px; cursor: pointer; color: #4a6741;
    background: none; border: none; line-height: 1;
  }
  .month-header .arrow:hover { color: #6b8f5e; }
  .month-header .label {
    font-size: 26px; font-weight: 800; color: #4a6741;
    min-width: 280px; text-align: center;
  }

  /* ── Tabs ── */
  .tabs {
    display: flex; justify-content: center; gap: 6px; margin: 6px 0 12px;
  }
  .tabs button {
    padding: 7px 18px; border: 2px solid #4a6741; background: #fff;
    color: #4a6741; border-radius: 20px; cursor: pointer; font-size: 14px;
    font-weight: 700;
  }
  .tabs button.active { background: #4a6741; color: #fff; }

  /* ── Calendar grid ── */
  .calendar-grid {
    display: grid; grid-template-columns: repeat(7, 1fr);
    gap: 4px; padding: 0 12px 12px; max-width: 1200px; margin: 0 auto;
  }
  .cal-day-name {
    text-align: center; font-weight: 700; font-size: 13px;
    color: #4a6741; padding: 4px 0;
  }
  .cal-cell {
    background: #fff; border-radius: 8px; min-height: 110px;
    padding: 4px 6px; cursor: pointer; transition: box-shadow .15s;
    position: relative;
  }
  .cal-cell:hover { box-shadow: 0 2px 8px rgba(0,0,0,.12); }
  .cal-cell.selected { box-shadow: 0 0 0 3px #4a6741; }
  .cal-cell.outside-month { opacity: 0.4; }
  .cal-cell.empty { background: transparent; cursor: default; box-shadow: none; }
  .cal-cell .day-num {
    font-size: 13px; font-weight: 700; color: #4a6741; margin-bottom: 2px;
  }
  .cal-cell .mini-grid {
    display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
    gap: 2px; font-size: 10px; color: #555;
  }
  .cal-cell .mini-grid span {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    padding: 1px 2px; border-radius: 3px; background: #f0f7ed; font-weight: 700;
  }
  .cal-cell .mini-grid span.has-text { background: #d4e8cd; }

  /* ── Day Detail panel ── */
  .day-detail {
    max-width: 1200px; margin: 0 auto 20px; padding: 0 12px;
  }
  .day-detail h2 {
    color: #4a6741; margin-bottom: 12px; font-size: 20px; font-weight: 700;
  }
  .dishes-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  }
  .dish-card {
    background: #fff; border-radius: 10px; padding: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
    position: relative;
  }
  .dish-card .dish-label {
    font-size: 12px; font-weight: 700; color: #4a6741; text-transform: uppercase;
    margin-bottom: 4px;
  }
  .dish-name-wrapper {
    position: relative;
  }
  .dish-card input.dish-name {
    width: 100%; border: none; border-bottom: 2px solid #d4e8cd;
    font-size: 16px; padding: 6px 2px; outline: none; background: transparent;
  }
  .dish-card input.dish-name:focus { border-color: #4a6741; }
  .delete-planned-dish-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--accent-2);
    border-radius: 0;
    padding: 0;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    font-weight: 400;
  }
  .delete-planned-dish-btn:hover {
    background: none;
    color: var(--accent-3);
  }
  
  .double-portion-label {
    display: inline-block;
    font-size: 12px;
    color: #666;
    margin-top: 6px;
    cursor: pointer;
    user-select: none;
  }
  .double-portion-label input[type="checkbox"] {
    margin-right: 4px;
    cursor: pointer;
  }
  .portion-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eaf4e6;
    color: #4a6741;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .extras-panel {
    margin-top: 16px;
    background: #fff;
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
  }
  .extras-panel h3 {
    color: #4a6741;
    margin-bottom: 8px;
    font-size: 16px;
  }
  .extras-panel .add-ingr-btn {
    display: block;
    width: calc(100% - 30px);
    margin: 8px 30px 0 0;
  }
  .extras-panel .ingr-row .remove-ingr {
    flex: 0 0 24px;
    width: 24px;
    text-align: center;
  }

  /* Ingredients inside dish card */
  .ingr-section { margin-top: 10px; }
  .ingr-section .ingr-title {
    font-size: 11px; font-weight: 600; color: #999; margin-bottom: 4px;
  }
  .ingr-row {
    display: flex; gap: 6px; align-items: center; margin-bottom: 4px;
    position: relative;
  }
  .ingr-row input.ingr-name {
    flex: 3; padding: 4px 6px; border: 1px solid #ddd; border-radius: 4px;
    font-size: 13px;
  }
  .ingr-row input.ingr-qty {
    flex: 1; padding: 4px 6px; border: 1px solid #ddd; border-radius: 4px;
    font-size: 13px; max-width: 70px;
  }
  .ingr-row select.ingr-unit {
    flex: 0 0 auto; padding: 4px 6px; border: 1px solid #ddd; border-radius: 4px;
    font-size: 13px; width: 85px;
  }
  .ingr-row .remove-ingr {
    background: none; border: none; cursor: pointer; color: #c44; font-size: 16px;
  }
  .add-ingr-btn {
    background: none; border: 1px dashed #aaa; border-radius: 4px;
    padding: 3px 10px; cursor: pointer; font-size: 12px; color: #777;
    margin-top: 2px;
  }
  .add-ingr-btn:hover { border-color: #4a6741; color: #4a6741; }

  /* Autocomplete dropdown */
  .autocomplete-list {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 100;
    background: #fff; border: 1px solid #ccc; border-radius: 4px;
    max-height: 180px; overflow-y: auto; box-shadow: 0 4px 12px rgba(0,0,0,.15);
  }
  .ingr-row .autocomplete-list {
    right: 170px;
  }
  .autocomplete-list div {
    padding: 6px 10px; cursor: pointer; font-size: 13px;
  }
  .autocomplete-list div:hover,
  .autocomplete-list div.highlighted { background: #d4e8cd; }
  .autocomplete-list .cat-label {
    font-size: 10px; color: #999; float: right;
  }

  /* ── Grocery list ── */
  .grocery-section {
    max-width: 1200px; margin: 0 auto 40px; padding: 0 12px;
  }
  .grocery-section h2 {
    color: #4a6741; margin-bottom: 12px; font-size: 20px; font-weight: 700;
  }
  .grocery-filter-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
  }
  .grocery-filter-btn {
    background: #fff; color: #4a6741; border: 1px solid #4a6741;
    padding: 8px 14px; border-radius: 6px; cursor: pointer; font-size: 13px;
    font-weight: 700;
  }
  .grocery-filter-summary {
    font-size: 13px;
    color: #666;
    font-weight: 700;
  }
  .grocery-filter-panel {
    background: #fff; border: 1px solid #d4e8cd; border-radius: 10px;
    padding: 10px 12px; margin-bottom: 12px;
    display: flex; flex-direction: column; gap: 6px;
  }
  .grocery-week-option {
    display: flex; align-items: center; gap: 8px; font-size: 13px;
  }
  .grocery-cat {
    margin-bottom: 14px;
  }
  .grocery-cat h3 {
    font-size: 15px;
    color: var(--cat-color, #4a6741);
    border-bottom: 2px solid var(--cat-color, #d4e8cd);
    padding-bottom: 4px; margin-bottom: 6px;
  }
  .grocery-cat ul { list-style: none; }
  .grocery-cat li {
    padding: 3px 0; font-size: 14px; display: flex; align-items: center;
    gap: 8px; border-bottom: 1px dotted #eee;
  }
  .grocery-cat li .grocery-item-check {
    cursor: pointer; flex-shrink: 0;
    accent-color: var(--cat-color, var(--accent));
    filter: none;
  }
  .grocery-cat .grocery-item-check {
    accent-color: var(--cat-color) !important;
  }
  .grocery-cat li .g-content {
    display: flex; justify-content: space-between; flex: 1;
  }
  .grocery-cat li.checked .g-content {
    opacity: 0.7; text-decoration: line-through;
  }
  .grocery-cat li .g-qty { color: #888; font-size: 13px; }

  /* ── Modal ── */
  .modal-backdrop {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.4); display: flex;
    justify-content: center; align-items: center; z-index: 500;
  }
  .modal {
    background: #fff; border-radius: 12px; padding: 28px 32px;
    max-width: 420px; width: 90%; box-shadow: 0 8px 30px rgba(0,0,0,.2);
    text-align: center;
  }
  .modal p { margin-bottom: 18px; font-size: 16px; }
  .modal .modal-btns { display: flex; gap: 12px; justify-content: center; }
  .modal button {
    padding: 8px 24px; border: none; border-radius: 6px;
    cursor: pointer; font-size: 15px;
  }
  .modal .btn-yes { background: #4a6741; color: #fff; }
  .modal .btn-no  { background: #ccc; color: #333; }
  .modal .auth-field {
    width: 100%;
    padding: 8px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 14px;
  }
  .modal .auth-error {
    font-size: 12px;
    color: #c44;
    margin-bottom: 10px;
    min-height: 16px;
  }
  .planned-delete-modal {
    max-width: 460px;
  }
  .delete-warning-gif {
    width: 100%;
    max-height: 240px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 12px;
    opacity: 0;
    animation: warningGifFadeIn 1.2s ease forwards;
  }
  .delete-warning-text {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 18px;
    opacity: 0;
    animation: warningTextAppear 1.6s ease 2s forwards;
  }
  @keyframes warningGifFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes warningTextAppear {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Category select in modal */
  .modal select {
    display: block; margin: 0 auto 16px; padding: 6px 10px;
    font-size: 14px; border-radius: 6px; border: 1px solid #ccc;
  }

  /* ── Manage ingredients panel ── */
  .manage-panel {
    max-width: 1200px; margin: 0 auto 40px; padding: 0 12px;
  }
  .manage-panel h2 { color: #4a6741; margin-bottom: 12px; font-size: 20px; font-weight: 700; }
  .manage-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
  .manage-cat-card {
    background: #fff; border-radius: 10px; padding: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
    border-top: 3px solid var(--cat-color, transparent);
  }
  .manage-cat-card h3 {
    font-size: 14px;
    color: var(--cat-color, #4a6741);
    margin-bottom: 8px;
  }
  .manage-cat-card ul { list-style: none; font-size: 13px; margin-bottom: 8px; }
  .manage-cat-card li {
    padding: 4px 0; display: flex; justify-content: space-between; align-items: center;
    gap: 8px;
  }
  .manage-cat-card li .ingr-info {
    display: flex; align-items: center; gap: 8px; flex: 1;
  }
  .manage-cat-card li .ingr-name {
    flex: 1;
  }
  .manage-cat-card li select {
    padding: 2px 4px; border: 1px solid #ddd; border-radius: 4px;
    font-size: 12px; width: 60px;
  }
  .manage-cat-card li .del-ingr {
    background: none; border: none; color: #c44; cursor: pointer; font-size: 14px;
    flex-shrink: 0;
  }
  .manage-cat-card li.non-persistent { color: #aaa; font-style: italic; }
  .manage-cat-card .add-cat-ingr-btn {
    width: 100%; background: none; border: 1px dashed #aaa; border-radius: 4px;
    padding: 4px 10px; cursor: pointer; font-size: 12px; color: #777;
    margin-top: 4px;
  }
  .manage-cat-card .add-cat-ingr-btn:hover {
    border-color: #4a6741; color: #4a6741;
  }

  /* ── Dishes management ── */
  .dishes-manage-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px;
  }
  .dishes-manage-header h2 {
    font-weight: 700;
  }
  .add-dish-btn {
    background: #4a6741; color: #fff; border: none; padding: 10px 20px;
    border-radius: 6px; cursor: pointer; font-size: 14px;
  }
  .add-dish-btn:hover { background: #6b8f5e; }
  .dish-list {
    display: grid;
    gap: 16px;
    align-items: start;
  }
  .dish-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .dish-mgmt-card {
    background: #fff; border-radius: 10px; padding: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
    cursor: pointer;
    margin: 0;
    width: 100%;
    display: block;
  }
  .dish-mgmt-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,.12);
  }
  .dish-pagination {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  .dish-pagination button {
    background: #fff;
    border: 1px solid #4a6741;
    color: #4a6741;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
  }
  .dish-pagination button[disabled] {
    opacity: 0.45;
    cursor: default;
  }
  .dish-pagination span {
    font-size: 13px;
    font-weight: 700;
    color: #666;
  }
  .dish-mgmt-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 12px;
  }
  .dish-mgmt-info { flex: 1; }
  .dish-mgmt-info .dish-title {
    font-size: 16px; font-weight: 700; color: #4a6741; margin-bottom: 4px;
    display: flex; align-items: center; gap: 6px;
  }
  .dish-mgmt-info .dish-title a {
    color: #4a6741; font-size: 14px; text-decoration: none;
  }
  .dish-mgmt-info .dish-title a:hover {
    color: #6b8f5e;
  }
  .dish-mgmt-info .dish-category {
    font-size: 12px; color: #888; text-transform: uppercase;
  }
  .dish-mgmt-actions {
    display: flex; gap: 6px;
  }
  .dish-mgmt-actions button {
    background: none; border: none; cursor: pointer; font-size: 18px;
    padding: 4px;
  }
  .dish-mgmt-actions .edit-btn { color: #4a6741; }
  .dish-mgmt-actions .delete-btn { color: #c44; }
  .dish-ingredients-preview {
    margin-bottom: 10px; font-size: 13px;
  }
  .dish-ingredients-preview .preview-label {
    font-weight: 600; color: #7c8798; margin-bottom: 4px;
  }
  .dish-ingredients-preview ul {
    list-style: none; padding-left: 10px; color: #8a95a5;
  }
  .dish-instructions-preview {
    font-size: 13px;
  }
  .dish-instructions-preview .preview-label {
    font-weight: 600; color: #7c8798; margin-bottom: 4px;
  }
  .dish-instructions-preview ol {
    padding-left: 20px; color: #8a95a5;
  }

  /* Dish modal */
  .dish-modal {
    max-width: 600px; width: 95%; max-height: 90vh; overflow-y: auto;
    text-align: left; padding: 24px;
  }
  .dish-modal h3 { color: #4a6741; margin-bottom: 16px; }
  .dish-modal .form-group {
    margin-bottom: 16px;
  }
  .dish-modal .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .dish-modal .form-group label {
    display: block; font-weight: 600; margin-bottom: 4px; font-size: 13px;
    color: #555;
  }
  .dish-modal .form-group input,
  .dish-modal .form-group select {
    width: 100%; padding: 8px 10px; border: 1px solid #ddd;
    border-radius: 6px; font-size: 14px;
  }
  .dish-modal .section-header {
    margin: 20px 0 10px;
  }
  .dish-modal .section-header h4 {
    color: #4a6741; font-size: 15px;
  }
  .dish-modal .add-row-btn {
    background: none; border: 1px dashed #aaa; color: #777;
    padding: 4px 12px; border-radius: 4px; cursor: pointer; font-size: 12px;
    display: block; width: calc(100% - 32px); margin: 8px 32px 0 0;
  }
  .dish-modal .add-row-btn:hover {
    border-color: #4a6741; color: #4a6741;
  }
  .dish-ingr-row {
    display: grid; grid-template-columns: 2fr 1.65fr 0.8fr 20px; gap: 8px;
    margin-bottom: 8px; align-items: start;
    position: relative;
  }
  .dish-ingr-row input,
  .dish-ingr-row select {
    padding: 6px 8px; border: 1px solid #ddd; border-radius: 4px;
    font-size: 13px; height: 34px; margin: 0;
  }
  .dish-ingr-row .remove-row-btn {
    background: none; border: none; color: #c44; cursor: pointer;
    font-size: 16px; width: 20px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    justify-self: center;
  }
  .dish-step-row {
    display: grid; grid-template-columns: 2fr 1.65fr 0.8fr 20px; gap: 8px;
    margin-bottom: 8px; align-items: start;
  }
  .dish-step-row .step-num {
    display: none;
  }
  .dish-step-row textarea {
    grid-column: 1 / 4;
    padding: 6px 8px; border: 1px solid #ddd; border-radius: 4px;
    font-size: 13px; resize: vertical; min-height: 60px;
    font-family: inherit;
  }
  .dish-step-row .remove-row-btn {
    background: none; border: none; color: #c44; cursor: pointer;
    font-size: 16px; width: 20px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    justify-self: center;
    align-self: center;
  }
  .dish-modal-btns {
    display: flex; gap: 12px; justify-content: flex-end;
    margin-top: 24px; padding-top: 16px; border-top: 1px solid #eee;
  }
  .dish-modal-btns button {
    padding: 8px 20px; border: none; border-radius: 6px;
    cursor: pointer; font-size: 14px;
  }
  .dish-modal-btns .btn-save { background: #4a6741; color: #fff; }
  .dish-modal-btns .btn-cancel { background: #ccc; color: #333; }
  .dish-filter-btn {
    background: #fff; color: #4a6741; border: 1px solid #4a6741;
    padding: 10px 16px; border-radius: 6px; cursor: pointer; font-size: 14px;
  }
  .dish-filter-panel {
    background: #fff; border: 1px solid #d4e8cd; border-radius: 10px;
    padding: 12px; margin-bottom: 16px;
  }
  .dish-filter-grid {
    display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 10px;
  }
  .dish-filter-grid select,
  .dish-filter-grid input {
    width: 100%; padding: 8px 10px; border: 1px solid #ddd; border-radius: 6px;
    font-size: 13px;
  }
  .dish-active-filters {
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px;
  }
  .dish-active-filters .chip {
    background: #eaf4e6; color: #4a6741; border-radius: 999px;
    padding: 3px 10px; font-size: 12px; font-weight: 600;
  }

  /* ── Dark mode + seasonal accent overrides ── */
  body {
    background: var(--bg);
    color: var(--text);
  }

  .topbar { background: var(--accent); }
  .topbar button { background: var(--accent-2); }
  .topbar button:hover { background: var(--accent-3); }

  .month-header .arrow,
  .month-header .label,
  .cal-day-name,
  .cal-cell .day-num,
  .day-detail h2,
  .grocery-section h2,
  .manage-panel h2,
  .dish-mgmt-info .dish-title,
  .dish-modal h3,
  .dish-modal .section-header h4,
  .extras-panel h3,
  .dish-card .dish-label {
    color: var(--accent);
  }

  .month-header .arrow:hover { color: var(--accent-2); }

  .tabs button {
    border-color: var(--accent);
    background: var(--surface);
    color: var(--accent);
  }
  .tabs button.active {
    background: var(--accent);
    color: #fff;
  }

  .cal-cell,
  .dish-card,
  .extras-panel,
  .grocery-cat,
  .manage-cat-card,
  .dish-mgmt-card,
  .dish-filter-panel,
  .modal,
  .dish-modal {
    background: var(--surface);
    color: var(--text);
  }

  .cal-cell .mini-grid span { background: var(--accent-soft); color: var(--text); }
  .cal-cell .mini-grid span.has-text { background: var(--accent-soft-2); }
  .cal-cell.selected { box-shadow: 0 0 0 3px var(--accent); }

  .dish-card input.dish-name {
    border-bottom-color: var(--accent-soft-2);
    color: var(--text);
  }
  .dish-card input.dish-name:focus { border-color: var(--accent); }

  input,
  select,
  textarea,
  .dish-modal .form-group input,
  .dish-modal .form-group select,
  .dish-ingr-row input,
  .dish-ingr-row select,
  .ingr-row input,
  .ingr-row select,
  .dish-step-row textarea,
  .manage-cat-card li select,
  .dish-filter-grid select,
  .dish-filter-grid input {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text);
  }
  input::placeholder,
  textarea::placeholder { color: var(--muted); }

  .autocomplete-list {
    background: var(--surface-2);
    border-color: var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,.35);
  }
  .autocomplete-list div { color: var(--text); }
  .autocomplete-list div:hover,
  .autocomplete-list div.highlighted { background: var(--accent-soft-2); }
  .autocomplete-list .cat-label { color: var(--muted); }

  .add-ingr-btn,
  .dish-modal .add-row-btn,
  .manage-cat-card .add-cat-ingr-btn {
    border-color: var(--border);
    color: var(--muted);
  }
  .add-ingr-btn:hover,
  .dish-modal .add-row-btn:hover,
  .manage-cat-card .add-cat-ingr-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
  }

  .dish-modal-btns .btn-save,
  .modal .btn-yes,
  .add-dish-btn {
    background: var(--accent);
    color: #fff;
  }
  .add-dish-btn:hover { background: var(--accent-2); }

  .dish-filter-btn {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--surface);
  }

  .grocery-filter-btn {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--surface);
  }
  .dish-pagination button {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--surface);
  }
  .dish-pagination span {
    color: var(--accent-3);
  }
  .grocery-filter-summary {
    color: var(--accent-3);
  }
  .grocery-filter-panel {
    background: var(--surface);
    border-color: var(--accent-soft-2);
  }
  .grocery-week-option {
    color: var(--text);
  }

  .dish-mgmt-actions .edit-btn {
    color: var(--accent-2);
  }
  .dish-mgmt-actions .edit-btn:hover {
    color: var(--accent-3);
  }
  .dish-ingredients-preview ul,
  .dish-instructions-preview ol {
    color: var(--muted);
  }
  .dish-ingredients-preview .preview-label,
  .dish-instructions-preview .preview-label {
    color: var(--muted);
  }

  .portion-badge,
  .dish-active-filters .chip {
    background: var(--accent-soft);
    color: var(--accent-3);
  }

  .grocery-cat h3,
  .manage-cat-card h3 {
    color: var(--cat-color, var(--accent));
  }
  .grocery-cat h3 {
    border-bottom-color: var(--cat-color, var(--accent-soft-2));
  }
  .grocery-cat li {
    border-bottom-color: #2f3948;
  }
  .grocery-cat li .g-qty,
  .dish-mgmt-info .dish-category,
  .ingr-section .ingr-title {
    color: var(--muted);
  }

  .dish-modal-btns {
    border-top-color: #2f3948;
  }
  .modal .btn-no,
  .dish-modal-btns .btn-cancel {
    background: #4b5566;
    color: var(--text);
  }
  .dish-mgmt-actions .delete-btn,
  .dish-ingr-row .remove-row-btn,
  .dish-step-row .remove-row-btn,
  .ingr-row .remove-ingr,
  .manage-cat-card li .del-ingr {
    color: var(--danger);
  }

  /* hidden helper */
  .hidden { display: none !important; }


