.hdr-app{--green:#24975d;--ink:#202124;--muted:#777;box-sizing:border-box;width:100%;max-width:1200px;min-width:0;margin:0 auto;padding:24px 18px calc(70px + env(safe-area-inset-bottom));font-family:-apple-system,BlinkMacSystemFont,"Noto Sans KR","Segoe UI",sans-serif;color:var(--ink)}
.hdr-app [hidden]{display:none!important}
.hdr-transfer-box{margin-top:16px;padding:16px;border:1px solid #b8dfc9;border-radius:16px;background:#f2fbf5}.hdr-transfer-box h3{margin:0 0 12px}.hdr-transfer-box p{margin:8px 0;line-height:1.5;overflow-wrap:anywhere}.hdr-transfer-warning{padding:10px;border-radius:10px;background:#fff3d6;color:#805900;font-size:13px}.hdr-transfer-box button{width:100%;min-height:46px;margin-top:8px;border:0;border-radius:12px;background:#168153;color:#fff;font:inherit;font-weight:800}.hdr-transfer-box button:disabled{opacity:.6}.hdr-transfer-box .hdr-transfer-copy-account{display:inline-flex;width:auto;min-height:36px;margin:0 0 0 8px;padding:5px 11px;border:0;border-radius:9px;background:#e7f5ed;color:#176a42;font:inherit;font-size:13px;font-weight:800;cursor:pointer}.hdr-transfer-box .hdr-transfer-copy-status{min-height:1em;color:#176a42;font-size:12px}.hdr-transfer-box select{box-sizing:border-box;width:100%;min-height:44px;margin:6px 0 12px;padding:8px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;font:inherit}
.hdr-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:40px}.hdr-top strong{font-size:21px}.hdr-top>div{display:flex;align-items:center;gap:8px}.hdr-top span{font-size:12px;color:#999}.hdr-top button{border:0;border-radius:999px;padding:7px 11px;background:#e7f5ed;color:#176a42;font-size:12px;font-weight:800;cursor:pointer}
.hdr-hero{text-align:center;margin-bottom:28px}.hdr-kicker{color:var(--green)!important;font-size:13px!important;font-weight:800}.hdr-hero h1{margin:7px 0 10px;font-size:34px;letter-spacing:-1.5px}.hdr-hero>p:last-child{margin:0;color:#666;line-height:1.65}
.hdr-login-card{display:flex;align-items:center;gap:14px;padding:16px;margin-bottom:14px;border-radius:18px;background:#fff8e9;border:1px solid #f3e4bd}.hdr-login-card div{min-width:0;flex:1}.hdr-login-card strong{display:block;font-size:14px}.hdr-login-card p{margin:5px 0 0;color:#786d58;font-size:12px;line-height:1.5}.hdr-login-card a{flex:0 0 auto;border-radius:12px;padding:10px 13px;background:var(--green);color:#fff!important;text-decoration:none!important;font-size:13px;font-weight:800}
.hdr-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}.hdr-summary div{padding:14px;background:#edf8f2;border-radius:15px}.hdr-summary span,.hdr-summary strong{display:block}.hdr-summary span{font-size:12px;color:#668072}.hdr-summary strong{margin-top:4px;font-size:18px}
.hdr-card,.hdr-result,.hdr-recent,.hdr-profile{background:#fff;border:1px solid #edf0ee;border-radius:22px;padding:20px;box-shadow:0 8px 30px rgba(0,0,0,.05);margin-bottom:14px}
.hdr-insight{background:linear-gradient(135deg,#173b2b,#245c42);color:#fff;border-radius:22px;padding:20px;margin-bottom:14px;box-shadow:0 8px 30px rgba(20,80,50,.18)}.hdr-insight-head{display:flex;justify-content:space-between;gap:10px;align-items:center}.hdr-insight-head small{color:#b9dcc9;font-size:10px}.hdr-insight p{margin:12px 0 0;line-height:1.6}.hdr-insight .hdr-recommend{padding-top:11px;border-top:1px solid rgba(255,255,255,.18);color:#ddf3e7}
.hdr-profile summary{font-weight:800;cursor:pointer}.hdr-profile-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}.hdr-profile label{font-size:12px;font-weight:700}.hdr-profile select,.hdr-profile input{display:block;width:100%;box-sizing:border-box;margin-top:6px;border:1px solid #dfe3e1;border-radius:10px;padding:10px;font:inherit;background:#fff}.hdr-profile-save{width:100%;border:0;border-radius:12px;padding:12px;margin-top:12px;background:#edf8f2;color:#176a42;font-weight:800;cursor:pointer}.hdr-profile-note{font-size:11px;color:#999;margin:10px 0 0;line-height:1.5}
.hdr-preview{width:100%;max-height:320px;object-fit:cover;border-radius:15px;margin-bottom:16px}.hdr-label{display:block;font-size:13px;font-weight:800;margin:12px 2px 6px}.hdr-label small{font-weight:400;color:#999}
.hdr-card input,.hdr-card textarea{width:100%;box-sizing:border-box;border:1px solid #dfe3e1;border-radius:12px;padding:12px 13px;font:inherit}.hdr-card textarea{min-height:78px;resize:vertical}
.hdr-photo-button,.hdr-primary,.hdr-save{display:block;width:100%;box-sizing:border-box;border:0;border-radius:14px;padding:15px 16px;text-align:center;font-size:16px;font-weight:800;cursor:pointer}.hdr-photo-button{margin-top:16px;background:var(--green);color:#fff}.hdr-primary{margin-top:10px;background:#202124;color:#fff}.hdr-primary:disabled,.hdr-save:disabled{opacity:.55}
.hdr-note{font-size:12px;color:#999;text-align:center;line-height:1.5}.hdr-message{font-size:13px;text-align:center;color:#b23b2b;min-height:1.3em}
.hdr-message.is-progress{color:#2f7d5b}
.hdr-result h2,.hdr-recent h2{font-size:17px;margin:0 0 14px}.hdr-result p{display:flex;justify-content:space-between;gap:16px}.hdr-result p span{color:var(--muted)}.hdr-result p strong{text-align:right}.hdr-save{margin-top:16px;background:#111;color:#fff}
.hdr-receipt-confirm{margin-top:18px;padding-top:16px;border-top:1px solid #eee}.hdr-receipt-confirm h3{margin:0;font-size:16px}.hdr-receipt-confirm>p{display:block;font-size:12px;color:#777;line-height:1.55}.hdr-receipt-item{margin:12px 0 0;padding:13px;border:1px solid #dfe8e2;border-radius:13px}.hdr-receipt-item legend{padding:0 5px;font-size:13px;font-weight:800}.hdr-receipt-item label{display:block;font-size:12px;font-weight:700}.hdr-receipt-item input,.hdr-receipt-item select{display:block;width:100%;box-sizing:border-box;margin-top:5px;border:1px solid #dfe3e1;border-radius:9px;padding:9px;background:#fff;font:inherit}.hdr-receipt-item small{display:block;margin:5px 0;color:#2f7d5b}.hdr-receipt-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:9px}.hdr-receipt-item .hdr-receipt-check{display:flex;align-items:center;gap:7px;margin-top:11px;font-weight:500}.hdr-receipt-item .hdr-receipt-check input{width:auto;margin:0}
.hdr-recent-item{padding:14px 0;border-top:1px solid #eee9df}.hdr-recent-item:first-child{border-top:0}.hdr-recent-item.loading{opacity:.5;pointer-events:none}.hdr-recent-date{font-size:12px;color:#948e82;margin-bottom:9px}.hdr-recent-date b{color:#c0563f}.hdr-recent-line{font-size:14px;line-height:1.65}.hdr-recent-actions,.hdr-edit-actions{display:flex;gap:6px;margin-top:10px}.hdr-recent-actions button,.hdr-edit-actions button{border:0;border-radius:7px;padding:6px 11px;font-size:12px;cursor:pointer}.hdr-recent-actions button:first-child{background:#f0e5f5;color:#6b4e8f}.hdr-recent-actions button:last-child{background:#f5e5e0;color:#c0563f}.hdr-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.hdr-edit-grid label{font-size:11px;color:#777;font-weight:700}.hdr-edit-grid input,.hdr-edit-grid select,.hdr-edit-grid textarea{display:block;width:100%;box-sizing:border-box;margin-top:4px;border:1px solid #d8d2c6;border-radius:8px;padding:9px;font:inherit;background:#fff}.hdr-edit-full{grid-column:1/-1}.hdr-edit-actions{justify-content:flex-end}.hdr-edit-actions button:first-child{background:#eeeae1;color:#655f52}.hdr-edit-actions button:last-child{background:#e8f0ea;color:#2f7d5b}
body.happy-diet-page .entry-header,body.happy-diet-page .page-header,body.happy-diet-page .entry-title{display:none!important}
body.happy-diet-page .inside-article{padding-top:0}
body.happy-diet-page.happy-diet-standalone #masthead,body.happy-diet-page.happy-diet-standalone .site-header,body.happy-diet-page.happy-diet-standalone #site-navigation,body.happy-diet-page.happy-diet-standalone .main-navigation,body.happy-diet-page.happy-diet-standalone .site-footer,body.happy-diet-page.happy-diet-standalone .footer-widgets,body.happy-diet-page.happy-diet-standalone #right-sidebar{display:none!important}
body.happy-diet-page.happy-diet-standalone,body.happy-diet-page.happy-diet-standalone #page,body.happy-diet-page.happy-diet-standalone #content{background:#fff}
body.happy-diet-page.happy-diet-standalone #content,body.happy-diet-page.happy-diet-standalone #primary,body.happy-diet-page.happy-diet-standalone .content-area,body.happy-diet-page.happy-diet-standalone .site-main,body.happy-diet-page.happy-diet-standalone article,body.happy-diet-page.happy-diet-standalone .inside-article,body.happy-diet-page.happy-diet-standalone .entry-content{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
body.happy-diet-page.happy-diet-standalone .hdr-app{padding-top:calc(20px + env(safe-area-inset-top))}
@media (max-width:360px){.hdr-hero h1{font-size:29px}.hdr-summary{grid-template-columns:1fr}}

/* ===== Diet 1.6.11 Grocery Recipe Actions ===== */

.hdr-fridge-actions{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:18px;
}

.hdr-fridge-actions button{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    min-height:54px;
    box-sizing:border-box;
    border-radius:14px;
    padding:15px 18px;
    font-size:16px;
    font-weight:800;
    line-height:1.25;
    cursor:pointer;
    transition:
        transform .08s ease,
        opacity .15s ease;
}

/* 재료 직접 추가 */
#hdr-add-fridge{
    background:#edf8f2;
    color:#176a42;
    border:1px solid #d7eee1;
}

/* 이 재료로 요리 찾기 */
#hdr-find-recipes{
    background:#24975d;
    color:#fff;
    border:1px solid #24975d;
}

.hdr-fridge-actions button:active{
    transform:translateY(1px);
}

.hdr-fridge-actions button:disabled{
    opacity:.55;
    cursor:default;
}

/* 작은 화면에서도 버튼 폭 유지 */
@media (max-width:600px){
    .hdr-fridge-actions{
        gap:10px;
    }

    .hdr-fridge-actions button{
        width:100%;
        min-height:56px;
        font-size:16px;
    }
}



/* Diet recipe selection */
.hdr-recipe-item{
    position:relative;
}
.hdr-recipe-item.selected{
    outline:2px solid #249b61;
    border-radius:12px;
    padding:12px;
    background:#f2fbf6;
}
.hdr-recipe-select{
    width:100%;
    margin-top:10px;
    padding:10px 12px;
    border:0;
    border-radius:10px;
    background:#249b61;
    color:#fff;
    font-weight:800;
    cursor:pointer;
}
.hdr-recipe-select:active{
    transform:scale(.98);
}


/* Diet Biz/Local search V1 */
.hdr-local-results {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.hdr-local-group {
  display: grid;
  gap: 10px;
}

.hdr-local-group h4 {
  margin: 0;
}

.hdr-local-product {
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 14px;
  background: #f0fdfa;
}

.hdr-local-product strong {
  display: block;
  margin-bottom: 8px;
  color: #134e4a;
}

.hdr-local-product p {
  display: inline-block;
  margin: 2px 12px 2px 0;
}

.hdr-local-loading,
.hdr-local-empty {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
}


/* Diet Kakao map-first V1 */
.hdr-local-map-section,
.hdr-local-detail {
  border: 1px solid #dce7e2;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.hdr-local-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}

.hdr-local-map-head strong,
.hdr-local-map-head small {
  display: block;
}

.hdr-local-map-head strong {
  font-size: 20px;
  color: #163b31;
}

.hdr-local-map-head small {
  margin-top: 4px;
  color: #64748b;
}

.hdr-local-map-head > span {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e8f7ef;
  color: #18784b;
  font-weight: 800;
}

.hdr-local-map {
  width: 100%;
  height: 330px;
  background: #e5e7eb;
}

.hdr-local-map-note {
  margin: 0;
  padding: 10px 16px 14px;
  color: #64748b;
  font-size: 13px;
}

.hdr-store-marker {
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 230px;
  padding: 8px 11px;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(15, 23, 42, .2);
  color: #475569;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.hdr-store-marker span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.hdr-store-marker b,
.hdr-store-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  height: 25px;
  padding: 0 7px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
}

.hdr-store-marker.is-gray,
.hdr-store-score.is-gray {
  color: #64748b;
}

.hdr-store-marker.is-blue,
.hdr-store-score.is-blue {
  color: #2563eb;
}

.hdr-store-marker.is-green,
.hdr-store-score.is-green {
  color: #168153;
}

.hdr-store-marker.is-gold,
.hdr-store-score.is-gold {
  color: #b7791f;
}

.hdr-store-marker b,
.hdr-store-score {
  background: currentColor;
}

.hdr-store-marker b {
  color: #fff;
}

.hdr-current-location {
  padding: 6px 9px;
  border: 2px solid #2563eb;
  border-radius: 999px;
  background: #fff;
  color: #1d4ed8;
  box-shadow: 0 4px 10px rgba(37, 99, 235, .2);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.hdr-local-detail {
  padding: 16px;
}

.hdr-local-store-title > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hdr-local-store-title strong {
  font-size: 20px;
  color: #163b31;
}

.hdr-local-store-title p {
  margin: 7px 0 14px;
  color: #64748b;
}

.hdr-local-products {
  display: grid;
  gap: 10px;
}

.hdr-pickup-time {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.hdr-pickup-time label {
  color: #163b31;
  font-weight: 800;
}

.hdr-pickup-time input {
  width: 100%;
  min-height: 50px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
}

.hdr-pickup-time button {
  min-height: 52px;
  border: 0;
  border-radius: 13px;
  background: #249b61;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

@media (max-width: 520px) {
  .hdr-local-map {
    height: 300px;
  }

  .hdr-store-marker {
    max-width: 190px;
    font-size: 12px;
  }
}


/* Diet shop action buttons V2 */
.hdr-shop-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
  margin-top: 16px;
}

.hdr-shop-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 55px;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  box-shadow: none;
  transition:
    transform .12s ease,
    opacity .12s ease;
}

#hdr-find-local-store {
  background: #249b61;
  color: #ffffff;
}

#hdr-register-purchase {
  background: #202124;
  color: #ffffff;
}

.hdr-shop-actions button:active {
  transform: scale(.985);
}

.hdr-shop-actions button:disabled {
  opacity: .58;
  cursor: wait;
}

@media (max-width: 520px) {
  .hdr-shop-actions button {
    min-height: 56px;
    font-size: 16px;
  }
}


/* Diet transaction score visibility fix */
.hdr-store-marker.is-gray b,
.hdr-store-score.is-gray {
  background: #64748b;
  color: #ffffff;
}

.hdr-store-marker.is-blue b,
.hdr-store-score.is-blue {
  background: #2563eb;
  color: #ffffff;
}

.hdr-store-marker.is-green b,
.hdr-store-score.is-green {
  background: #168153;
  color: #ffffff;
}

.hdr-store-marker.is-gold b,
.hdr-store-score.is-gold {
  background: #b7791f;
  color: #ffffff;
}


/* Diet grocery receipt visibility V1 */
.hdr-grocery-receipt-summary {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}

.hdr-grocery-receipt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hdr-grocery-receipt-head h3 {
  margin: 0;
  color: #173f35;
  font-size: 1.15rem;
}

.hdr-grocery-receipt-head span {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: #168c5b;
  font-weight: 800;
}

.hdr-grocery-receipt-note {
  margin: 0;
  color: #64748b;
  line-height: 1.55;
}

.hdr-grocery-receipt-items {
  display: grid;
  gap: 9px;
}

.hdr-grocery-receipt-item {
  padding: 13px 14px;
  border: 1px solid rgba(22, 140, 91, 0.2);
  border-radius: 14px;
  background: #f0fdf7;
}

.hdr-grocery-receipt-item strong {
  display: block;
  color: #14543e;
  line-height: 1.4;
}

.hdr-grocery-receipt-item p {
  margin: 6px 0 0;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.45;
}


/* Diet single-open accordion V1 */
.hdr-fold-panel > summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0 14px 30px;
  margin: 0;
  color: #202124;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

.hdr-fold-panel > summary::-webkit-details-marker {
  display: none;
}

.hdr-fold-panel > summary::before {
  content: "▶";
  position: absolute;
  top: 1px;
  left: 0;
  color: #23975f;
  font-size: 0.92em;
  transition: transform 160ms ease;
}

.hdr-fold-panel[open] > summary::before {
  content: "▼";
}

.hdr-fold-panel:not([open]) > summary {
  padding-bottom: 0;
}

.hdr-fold-panel:not([open]) {
  min-height: auto;
}

.hdr-fold-panel > summary:focus-visible {
  outline: 3px solid rgba(35, 151, 95, 0.24);
  outline-offset: 5px;
  border-radius: 8px;
}

.hdr-profile.hdr-fold-panel > summary {
  padding-left: 30px;
}


/* Diet monthly report */
.hdr-summary-card{
  display:block;
  padding:14px;
  color:inherit;
  text-decoration:none;
  background:#edf8f2;
  border-radius:15px;
  transition:transform .15s ease,box-shadow .15s ease;
}
.hdr-summary-card:active{
  transform:scale(.98);
}
.hdr-summary-card span,
.hdr-summary-card strong,
.hdr-summary-card small{
  display:block;
}
.hdr-summary-card span{
  font-size:12px;
  color:#668072;
}
.hdr-summary-card strong{
  margin-top:4px;
  font-size:18px;
}
.hdr-summary-card small{
  margin-top:7px;
  color:#299e68;
  font-size:11px;
}
.hdr-report{
  margin-bottom:20px;
}
.hdr-report-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:20px;
}
.hdr-report-kicker{
  margin:0 0 5px;
  color:#299e68;
  font-size:13px;
  font-weight:800;
}
.hdr-report-heading h1{
  margin:0;
  font-size:25px;
  line-height:1.3;
}
.hdr-report-back{
  flex:none;
  padding:9px 12px;
  border-radius:12px;
  color:#2b7658;
  background:#eaf7f0;
  text-decoration:none;
  font-size:12px;
  font-weight:800;
}
.hdr-report-months{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:14px;
}
.hdr-report-months button{
  width:auto;
  min-width:0;
  padding:9px 14px;
  border:0;
  border-radius:999px;
  color:#665f54;
  background:#f2eee5;
  font:inherit;
  font-size:13px;
  cursor:pointer;
}
.hdr-report-months button.active{
  color:#fff;
  background:#18241f;
}
.hdr-report-totals{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-bottom:14px;
}
.hdr-report-totals div{
  padding:14px;
  border-radius:16px;
  background:#eef8f3;
}
.hdr-report-totals span,
.hdr-report-totals strong{
  display:block;
}
.hdr-report-totals span{
  color:#6a7d73;
  font-size:11px;
}
.hdr-report-totals strong{
  margin-top:5px;
  font-size:17px;
}
.hdr-report-box{
  padding:18px;
  margin-bottom:14px;
  border:1px solid #edf0ee;
  border-radius:20px;
  background:#fff;
  box-shadow:0 8px 28px rgba(0,0,0,.045);
}
.hdr-report-box h2{
  margin:0 0 16px;
  font-size:17px;
}
.hdr-report-bar,
.hdr-report-macro{
  display:grid;
  grid-template-columns:50px minmax(80px,1fr) 86px;
  align-items:center;
  gap:9px;
  margin:11px 0;
  font-size:12px;
}
.hdr-report-bar i,
.hdr-report-macro i{
  display:block;
  height:10px;
  overflow:hidden;
  border-radius:999px;
  background:#edf0ed;
}
.hdr-report-bar i b,
.hdr-report-macro i b{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#35b879,#1e8c5a);
}
.hdr-report-bar strong,
.hdr-report-macro strong{
  text-align:right;
  font-size:11px;
}
.hdr-report-record{
  display:grid;
  grid-template-columns:85px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:13px 0;
  border-top:1px solid #eee;
}
.hdr-report-record:first-child{
  border-top:0;
}
.hdr-report-record div strong,
.hdr-report-record div span{
  display:block;
}
.hdr-report-record div strong{
  font-size:12px;
}
.hdr-report-record div span{
  margin-top:3px;
  color:#999;
  font-size:11px;
}
.hdr-report-record p{
  margin:0;
  overflow-wrap:anywhere;
  font-size:13px;
}
.hdr-report-record>b{
  color:#276f53;
  font-size:12px;
  white-space:nowrap;
}
.hdr-report-empty{
  margin:0;
  color:#8a867e;
  font-size:13px;
  line-height:1.65;
}
@media(max-width:390px){
  .hdr-report-record{
    grid-template-columns:76px minmax(0,1fr);
  }
  .hdr-report-record>b{
    grid-column:2;
  }
}

/* Selected recipe servings and calorie registration */
.hdr-recipe-meal-entry{margin-top:16px;padding:16px;border:1px solid #cfe5d7;border-radius:14px;background:#f4fbf6}
.hdr-recipe-meal-entry h3{margin:0 0 8px;font-size:17px}
.hdr-recipe-meal-entry p{display:block;line-height:1.55}
.hdr-recipe-meal-servings{display:block;margin-top:14px;font-weight:800}
.hdr-recipe-meal-servings input{display:block;width:100%;box-sizing:border-box;margin-top:7px;padding:12px;border:1px solid #ccd9d0;border-radius:10px;font:inherit;background:#fff}
.hdr-recipe-meal-kcal{padding:12px;border-radius:10px;background:#fff}
.hdr-recipe-meal-kcal strong{color:#087443}
#hdr-recipe-meal-save,.hdr-recipe-meal-login{display:flex;align-items:center;justify-content:center;width:100%;min-height:50px;margin-top:12px;padding:12px;border:0;border-radius:11px;background:#087443;color:#fff;font:inherit;font-weight:800;text-decoration:none;cursor:pointer}
#hdr-recipe-meal-save:disabled{opacity:.55;cursor:wait}

/* 별도 최근 식단 목록은 화면에서 감추고, 저장된 식단 데이터는 보존한다. */
#hdr-recent{display:none!important}

/* 분석 결과 아래에 표시하는 간단 보유재료 목록 */
.hdr-inventory-item{display:flex;align-items:center;justify-content:space-between;gap:8px}
.hdr-inventory-item label{display:flex;align-items:center;gap:8px;min-width:0;flex:1}
.hdr-inventory-item label span{overflow-wrap:anywhere}
.hdr-inventory-item button{flex:none;border:0;border-radius:7px;padding:6px 10px;background:#f5e5e0;color:#9b3b2e;font:inherit;font-size:12px;cursor:pointer}


/* Diet Nutrition Matcher V1 member confirmation */
.hdr-grocery-nutrition-slot {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid rgba(22, 140, 91, 0.18);
}

.hdr-nutrition-note {
  margin: 0 0 9px;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.5;
}

.hdr-nutrition-choices {
  display: grid;
  gap: 8px;
}

.hdr-nutrition-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding: 10px;
  border: 1px solid #d5e4dd;
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
}

.hdr-nutrition-choice input {
  margin: 4px 0 0;
}

.hdr-nutrition-choice strong,
.hdr-nutrition-choice small {
  display: block;
  overflow-wrap: anywhere;
}

.hdr-nutrition-choice strong {
  color: #173f35;
}

.hdr-nutrition-choice small {
  margin-top: 3px;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.45;
}

.hdr-nutrition-confirm {
  min-height: 40px;
  margin-top: 9px;
  padding: 8px 12px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: #168153;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.hdr-nutrition-confirm:disabled {
  opacity: 0.6;
  cursor: wait;
}

.hdr-nutrition-status {
  display: block;
  margin-top: 6px;
  color: #475569;
  line-height: 1.45;
}


/* Actual intake amount and compact macro summary */
.hdr-nutrition-intake-form {
  display: grid;
  gap: 9px;
  margin-top: 10px;
  padding: 11px;
  border-radius: 10px;
  background: #f0f8f4;
}

.hdr-nutrition-intake-form p {
  margin: 0;
  color: #36594a;
  font-size: 0.88rem;
  line-height: 1.45;
}

.hdr-nutrition-intake-form label {
  display: grid;
  gap: 5px;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 700;
}

.hdr-nutrition-intake-form input {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.hdr-nutrition-intake {
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: #168153;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.hdr-nutrition-intake:disabled {
  opacity: 0.6;
  cursor: wait;
}

.hdr-summary-card .hdr-summary-macros {
  margin-top: 6px;
  color: #36594b;
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: normal;
}

.hdr-nutrition-intake-form[hidden] {
  display: none;
}


/* Happy Diet 1.6.29 - quick recipe suggestions */
.hdr-quick-recipes{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid #e7ebe8;
}
.hdr-quick-recipes-head{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-bottom:10px;
}
.hdr-quick-recipes-head strong{
  font-size:17px;
}
.hdr-quick-recipes-head small{
  color:var(--muted);
  line-height:1.45;
}
.hdr-quick-recipes-list{
  display:grid;
  gap:8px;
}
.hdr-quick-recipe{
  width:100%;
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 14px;
  border:1px solid #dfe7e2;
  border-radius:12px;
  background:#fff;
  color:inherit;
  font:inherit;
  text-align:left;
  cursor:pointer;
}
.hdr-quick-recipe strong{
  font-size:15px;
}
.hdr-quick-recipe small{
  color:var(--muted);
  text-align:right;
}
.hdr-quick-recipe:active{
  transform:scale(.99);
}

/* Happy Diet 1.6.61: align suggestions with fields at every viewport width. */
#happy-diet-rev .hdr-quick-recipes,
#happy-diet-rev .hdr-quick-recipes-list {
  min-width: 0;
  max-width: 100%;
}
#happy-diet-rev .hdr-quick-recipes-list {
  grid-template-columns: minmax(0, 1fr);
}
#happy-diet-rev .hdr-quick-recipe {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-inline: 0;
  flex-wrap: wrap;
}
#happy-diet-rev .hdr-quick-recipe strong,
#happy-diet-rev .hdr-quick-recipe small {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (min-width: 768px) {
  #happy-diet-rev {
    padding-inline: 28px;
  }
}

/* Happy Diet 1.6.62: grocery receipt confirmation */
#happy-diet-rev .hdr-grocery-simple-items{display:grid;gap:10px}
#happy-diet-rev .hdr-grocery-simple-item{padding:14px;border:1px solid #dfe7e2;border-radius:12px;min-width:0;box-sizing:border-box}
#happy-diet-rev .hdr-grocery-simple-item label{display:flex;align-items:center;gap:8px}
#happy-diet-rev .hdr-grocery-simple-item input[type=checkbox]{width:auto;margin:0;flex:0 0 auto}
#happy-diet-rev .hdr-grocery-simple-item p{display:block;margin:8px 0;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
#happy-diet-rev .hdr-grocery-simple-item small{display:block;margin-top:5px;color:var(--muted)}

/* Happy Diet 1.6.63: compact edit/delete actions on unresolved grocery items. */
#happy-diet-rev .hdr-grocery-item-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
#happy-diet-rev .hdr-grocery-item-head>label{min-width:0;overflow-wrap:anywhere}
#happy-diet-rev .hdr-grocery-item-actions{display:flex;gap:5px;flex:0 0 auto}
#happy-diet-rev .hdr-grocery-item-actions button,
#happy-diet-rev .hdr-grocery-name-editor button{width:auto;border:0;border-radius:6px;padding:6px 10px;font:inherit;font-size:12px;cursor:pointer;background:#eee6f5;color:#745392}
#happy-diet-rev .hdr-grocery-item-actions button[data-grocery-action=delete]{background:#f7e6e2;color:#b85d4b}
#happy-diet-rev .hdr-grocery-name-editor{margin-top:12px}
#happy-diet-rev .hdr-grocery-name-editor label{display:block;font-size:12px}
#happy-diet-rev .hdr-grocery-name-editor input{display:block;width:100%;box-sizing:border-box;margin:6px 0 8px}
#happy-diet-rev .hdr-grocery-name-editor button[data-grocery-action=cancel]{background:#eee;color:#666}

/* Happy Diet 1.6.65: actual source ingredients -> local shopping */
#happy-diet-rev .hdr-source-shopping{margin:18px 0;padding:16px;border:1px solid #dfe7e2;border-radius:14px}
#happy-diet-rev .hdr-source-shopping p{display:block;font-size:13px;line-height:1.6}
#happy-diet-rev .hdr-source-shopping ul{margin:12px 0;padding:0;list-style:none}
#happy-diet-rev .hdr-source-shopping li{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:8px 0;border-bottom:1px solid #edf0ee}
#happy-diet-rev .hdr-source-shopping li button{width:auto;border:0;border-radius:8px;padding:8px 10px;background:#e8f5ec;color:#176a42;font:inherit;font-size:12px;cursor:pointer}

/* Stored user meal title and notes; food/nutrition remain separately visible. */
#happy-diet-rev .hdr-record-description>*{display:block;line-height:1.6}
#happy-diet-rev .hdr-record-user-title{font-size:14px;margin-bottom:3px}
#happy-diet-rev .hdr-record-user-content{white-space:pre-wrap;color:#657284;margin-top:5px}


/* Receipt discovery markers deliberately separate from official merchant badges. */
.hdr-discovery-marker{min-height:44px;padding:8px 10px;border:1px solid #64748b;border-radius:20px;background:#f8fafc;color:#334155;font-size:12px;cursor:pointer;max-width:220px;white-space:normal;word-break:break-word}
.hdr-discovery-marker:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
.hdr-discovery-detail{padding:14px;background:#f8fafc;color:#334155;border-left:3px solid #64748b;border-radius:8px}
.hdr-discovery-detail h3{font-size:17px;margin:8px 0}
.hdr-local-store-title small{display:block;color:#475569;margin-bottom:6px}
/* Recipe candidate correction: touch-size delete buttons below missing ingredients. */
#happy-diet-rev .hdr-source-held{margin-top:18px;padding-top:14px;border-top:1px solid #dfe7e2}
#happy-diet-rev .hdr-source-held h4{margin:0 0 8px}
#happy-diet-rev .hdr-source-held li button{min-height:44px;min-width:60px;background:#fff1f0;color:#9c2b23}
#happy-diet-rev .hdr-source-held button:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
#happy-diet-rev .hdr-source-held button:disabled{opacity:.6;cursor:wait}

/* happy_receipt_share_v1 */
.hdr-receipt-share{margin:12px 0;padding:12px;border:1px solid var(--hdr-border,#d7dee7);border-radius:10px}
.hdr-receipt-share label{display:flex;gap:10px;align-items:center;min-height:44px;cursor:pointer}
.hdr-receipt-share input[type=checkbox]{width:20px;height:20px;flex:0 0 20px;margin:0}
.hdr-receipt-share small{display:block;line-height:1.6;opacity:.8;margin-top:4px}
.hdr-receipt-share p:empty{display:none}
.hdr-receipt-share p{font-size:14px;line-height:1.5}
.hdr-receipt-share button{min-height:44px;padding:8px 14px}
.hdr-receipt-share button[hidden]{display:none}

/* happy_discovery_pill_v1 */
#hdr-local-map .hdr-discovery-marker{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  box-sizing:border-box;width:auto;min-height:44px;max-width:220px;margin:0;
  padding:8px 13px;border:2px solid #c2410c;border-radius:999px;
  background:#fff7ed;color:#9a3412;box-shadow:0 4px 12px rgba(124,45,18,.2);
  font-family:inherit;font-size:15px;font-weight:800;line-height:1.25;
  white-space:nowrap;word-break:normal;cursor:pointer;
}
#hdr-local-map .hdr-discovery-marker-icon{font-size:20px;line-height:1;flex:none}
#hdr-local-map .hdr-discovery-marker-name{overflow:hidden;text-overflow:ellipsis}
#hdr-local-map .hdr-discovery-marker:hover{background:#ffedd5;color:#7c2d12}
#hdr-local-map .hdr-discovery-marker:focus-visible{outline:3px solid #c2410c;outline-offset:3px}


/* happy_selected_cart_v1 */
#happy-diet-rev .hdr-local-product,.hdr-local-product{position:relative;padding-right:82px}
.hdr-cart-choice{position:absolute;right:8px;top:8px;display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer}
.hdr-cart-check{width:22px;height:22px;margin:0;accent-color:#087443}
.hdr-cart-choice:has(input:disabled){opacity:.5;cursor:default}
.hdr-cart-total{padding:12px;background:#eef7f1;border-radius:10px;font-weight:700}


/* Happy Diet TWA beta - mobile UI adjustments */
#happy-diet-rev .hdr-local-detail,
#happy-diet-rev .hdr-pickup-time {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
#happy-diet-rev .hdr-pickup-time input,
#happy-diet-rev .hdr-pickup-time select,
#happy-diet-rev .hdr-pickup-time button {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  margin-left: 0;
  margin-right: 0;
}
#happy-diet-rev .hdr-pickup-time select {
  min-height: 50px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font: inherit;
}
#happy-diet-rev .hdr-local-kind-tabs {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  padding: 10px 12px 14px;
}
#happy-diet-rev .hdr-local-kind-tab {
  min-width: 0;
  min-height: 46px;
  padding: 9px 6px;
  border: 1px solid #9ca3af;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  white-space: normal;
  word-break: keep-all;
  cursor: pointer;
}
#happy-diet-rev .hdr-local-kind-tab.is-active {
  border-color: #249b61;
  background: #176a4230;
}
#happy-diet-rev .hdr-local-kind-tab:disabled {
  opacity: .4;
  cursor: not-allowed;
}
#happy-diet-rev #hdr-recipe-v2-servings {
  max-width: 100%;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #94a3b8;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
}
#happy-diet-rev .hdr-recipe-v2-macros {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
  line-height: 1.55;
}
#happy-diet-rev .hdr-recipe-v2-macros > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 520px) {
  #happy-diet-rev .hdr-pickup-time input[type="datetime-local"] {
    font-size: 16px;
  }
}

/* happy_customer_orders_v1 */
#happy-diet-rev .hdr-summary{grid-template-columns:repeat(3,minmax(0,1fr));}
#happy-diet-rev .hdr-customer-orders-view{padding:20px;border:1px solid #dce7e2;border-radius:20px;background:#fff;}
#happy-diet-rev.hdr-customer-orders-mode > :not(#hdr-customer-orders-view){display:none!important;}
body.hdr-customer-orders-mode .hea-welcome[data-happy-entry="diet"]{display:none!important;}
#happy-diet-rev .hdr-customer-orders-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;}
#happy-diet-rev .hdr-customer-orders-heading h2{margin:0;}
#happy-diet-rev .hdr-customer-order{border:1px solid #dce7e2;border-radius:16px;margin:12px 0;overflow:hidden;}
#happy-diet-rev .hdr-customer-order summary{cursor:pointer;min-height:56px;padding:16px;overflow-wrap:anywhere;}
#happy-diet-rev .hdr-customer-order summary strong,#happy-diet-rev .hdr-customer-order summary span{display:block;}
#happy-diet-rev .hdr-customer-order summary span{font-size:13px;color:#52665c;margin-top:6px;}
#happy-diet-rev .hdr-customer-order-body{padding:0 16px 16px;overflow-wrap:anywhere;}
#happy-diet-rev .hdr-customer-order-body ul{margin:12px 0;padding:0;list-style:none;}
#happy-diet-rev .hdr-customer-order-body li{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #e8eee9;flex-wrap:wrap;}
#happy-diet-rev .hdr-customer-order-total{font-weight:700;}
#happy-diet-rev .hdr-customer-order-payment{background:#edf8f2;padding:12px;border-radius:12px;}
#happy-diet-rev .hdr-customer-orders-nav{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;}
#happy-diet-rev .hdr-customer-orders-view button{min-height:44px;}
@media(max-width:600px){
 #happy-diet-rev .hdr-summary{grid-template-columns:repeat(2,minmax(0,1fr));}
 #happy-diet-rev #hdr-customer-orders-card{grid-column:1/-1;}
 #happy-diet-rev .hdr-customer-orders-view{padding:14px;}
}
