@charset "utf-8";

.sg-hd { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }

.sg-card { background: rgb(255, 255, 255); border-radius: 20px; padding: 18px 20px; box-shadow: rgba(0, 0, 0, 0.06) 0px 2px 14px; border: 1px solid rgba(0, 0, 0, 0.04); margin-bottom: 14px; }

.sg-card-title { font-weight: 800; font-size: 0.88rem; color: var(--char); margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }

.sg-card-sub { font-size: 0.78rem; color: var(--brown); line-height: 1.6; margin-bottom: 10px; }

.sg-budget-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }

@media (max-width: 520px) {
  .sg-budget-grid { grid-template-columns: repeat(2, 1fr); }
}

.sg-metric { background: var(--hu-white-mist); border-radius: 13px; padding: 10px 12px; text-align: center; }

.sg-metric-n { font-family: Georgia, serif; font-size: 1.25rem; font-weight: 700; color: var(--char); line-height: 1; }

.sg-metric-n.good { color: rgb(34, 168, 88); }

.sg-metric-n.warn { color: rgb(224, 138, 32); }

.sg-metric-l { font-size: 0.62rem; color: var(--brown); margin-top: 3px; }

.sg-budget-inp-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }

.sg-budget-inp { font-family: inherit; font-size: 0.9rem; font-weight: 700; color: var(--char); background: var(--hu-white-mist); border: 1.5px solid rgba(0, 0, 0, 0.09); border-radius: 12px; padding: 8px 13px; outline: none; width: 110px; transition: border-color 0.15s; }

.sg-budget-inp:focus { border-color: var(--sage); }

.sg-status-line { font-size: 0.82rem; color: var(--brown); line-height: 1.5; }

.sg-status-line strong { color: var(--char); }

.sg-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 50px; font-size: 0.65rem; font-weight: 700; }

.sg-pill-sage { background: var(--sage-lt); color: var(--sage-dk); }

.sg-pill-yel { background: var(--yel-lt); color: rgb(122, 85, 0); }

.sg-pill-sky { background: var(--sky-lt); color: rgb(42, 106, 126); }

.sg-pill-peach { background: var(--peach-lt); color: rgb(184, 92, 48); }

.sg-pill-lav { background: var(--lav-lt); color: rgb(90, 74, 138); }

.sg-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }

.sg-filter { padding: 6px 13px; border-radius: 50px; border: 1.5px solid rgba(0, 0, 0, 0.09); background: rgb(255, 255, 255); font-family: inherit; font-size: 0.74rem; font-weight: 700; color: var(--brown); cursor: pointer; transition: 0.15s; white-space: nowrap; }

.sg-filter:hover { border-color: var(--sage); color: var(--sage-dk); }

.sg-filter.sg-on { background: var(--sage-lt); border-color: var(--sage); color: var(--sage-dk); }

.sg-item-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--hu-white-mist); border-radius: 13px; margin-bottom: 7px; transition: 0.15s; }

.sg-item-row.sg-checked { opacity: 0.5; }

.sg-item-row.sg-instore { padding: 14px 16px; border-radius: 16px; background: rgb(255, 255, 255); box-shadow: rgba(0, 0, 0, 0.06) 0px 1px 6px; }

.sg-item-cb { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, 0.15); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: 0.15s; font-size: 0.75rem; }

.sg-item-cb.ticked { background: var(--sage); border-color: var(--sage); color: rgb(255, 255, 255); }

.sg-item-name { flex: 1 1 0%; font-size: 0.86rem; font-weight: 600; color: var(--char); }

.sg-item-name.sg-checked { text-decoration: line-through; color: var(--brown); }

.sg-item-price { font-size: 0.78rem; color: var(--brown); white-space: nowrap; }

.sg-item-tags { display: flex; gap: 4px; flex-wrap: wrap; }

.sg-item-rm { background: none; border-width: medium; border-style: none; border-color: currentcolor; border-image: initial; color: rgb(204, 204, 204); cursor: pointer; font-size: 0.85rem; padding: 2px; transition: color 0.15s; flex-shrink: 0; }

.sg-item-rm:hover { color: var(--red); }

.sg-instore-wrap { display: none; }

.sg-instore-wrap.sg-show { display: block; }

.sg-progress-bar { height: 8px; background: rgba(0, 0, 0, 0.07); border-radius: 4px; overflow: hidden; margin: 10px 0px 6px; }

.sg-progress-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg,var(--sage),var(--sage-dk)); transition: width 0.4s; }

.sg-progress-label { font-size: 0.72rem; color: var(--brown); }

.sg-aisle-hd { display: flex; align-items: center; gap: 8px; margin: 16px 0px 8px; }

.sg-aisle-hd-line { flex: 1 1 0%; height: 1px; background: linear-gradient(90deg, rgba(0, 0, 0, 0.07), transparent); }

.sg-aisle-label { font-size: 0.63rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); }

.sg-score-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; }

.sg-score-tile { background: var(--hu-white-mist); border-radius: 13px; padding: 11px 8px; text-align: center; }

.sg-score-label { font-size: 0.65rem; font-weight: 700; color: var(--brown); margin-bottom: 5px; }

.sg-score-dots { display: flex; gap: 3px; justify-content: center; }

.sg-dot { width: 8px; height: 8px; border-radius: 50%; }

.sg-dot-fill { background: var(--sage); }

.sg-dot-empty { background: rgb(224, 219, 212); }

.sg-modal-bg { display: none; position: fixed; inset: 0px; background: rgba(20, 20, 20, 0.5); z-index: 6500; align-items: flex-end; justify-content: center; }

.sg-modal-bg.sg-open { display: flex; }

.sg-modal-sheet { background: rgb(255, 255, 255); border-radius: 28px 28px 0px 0px; width: 100%; max-width: 540px; max-height: 85vh; overflow-y: auto; padding: 24px 20px 44px; animation: 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0s 1 normal none running sgSlideUp; }

@keyframes sgSlideUp { 
  0% { transform: translateY(100%); }
  100% { transform: translateY(0px); }
}

.sg-modal-handle { width: 36px; height: 4px; border-radius: 2px; background: rgb(212, 212, 208); margin: 0px auto 18px; }

.sg-meal-idea { background: var(--hu-white-mist); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; }

.sg-meal-idea-title { font-weight: 800; font-size: 0.86rem; color: var(--char); margin-bottom: 4px; }

.sg-meal-idea-desc { font-size: 0.78rem; color: var(--brown); line-height: 1.55; margin-bottom: 10px; }

.sg-meal-idea-btns { display: flex; gap: 7px; flex-wrap: wrap; }

.sg-tiny-btn { padding: 6px 13px; border-radius: 50px; font-size: 0.72rem; font-weight: 700; border: 1.5px solid var(--sage); background: rgb(255, 255, 255); color: var(--sage); cursor: pointer; font-family: inherit; transition: 0.15s; white-space: nowrap; }

.sg-tiny-btn:hover { background: var(--sage); color: rgb(255, 255, 255); }

.sg-tiny-btn-fill { background: var(--sage); color: rgb(255, 255, 255); border-color: var(--sage); }

.sg-tiny-btn-fill:hover { background: var(--sage-dk); }

.sg-warn-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 13px; margin-bottom: 7px; }

.sg-warn-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; }

.sg-warn-text { flex: 1 1 0%; font-size: 0.8rem; color: var(--char); line-height: 1.5; }

.sg-warn-sub { font-size: 0.72rem; color: var(--brown); }

.sg-forgotten-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 13px; background: var(--hu-white-mist); margin-bottom: 7px; }

.sg-forgotten-text { flex: 1 1 0%; font-size: 0.81rem; color: var(--char); line-height: 1.45; }

.sg-forgotten-btns { display: flex; gap: 5px; flex-shrink: 0; }

.sg-micro { font-size: 0.74rem; color: rgb(154, 170, 158); font-style: italic; line-height: 1.5; padding: 6px 2px; margin: 0px; }

.sg-store-compact { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--hu-white-mist); border-radius: 13px; margin-bottom: 12px; flex-wrap: wrap; }

.sg-store-pill { padding: 5px 12px; border-radius: 50px; font-size: 0.72rem; font-weight: 700; color: rgb(255, 255, 255); cursor: pointer; border-width: medium; border-style: none; border-color: currentcolor; border-image: initial; font-family: inherit; }

@media (max-width: 480px) {
  .sg-budget-grid { grid-template-columns: 1fr 1fr; }
  .sg-score-grid { grid-template-columns: repeat(3, 1fr); }
}