  /* 가비아 눌체 = 로고 한글. 본문·제목 = 고운돋움. 영문 메인 = Goudy Bookletter 1911, 영문 부제 = Sorts Mill Goudy 이탤릭, 경고마크 = Georgia */
  @font-face {
    font-family: 'GabiaNul';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2409-2@1.0/GabiaNull-Regular.woff2') format('woff2');
    font-weight: normal; font-display: swap;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

  :root {
    /* 기존 키 — 디자인 v2 hex 적용 (사용처 자동 반영, 의미는 유지) */
    --bg:         #E8DFC6;  /* was #EDE5D0 → bgWarm */
    --surface:    #F4ECD4;  /* was #FAF7F0 → surfaceWarm */
    --white:      #FDFCF8;
    --ink:        #2A1E0E;  /* was #1A1208 → inkWarm */
    --ink-mid:    #5A4530;  /* was #5A4A30 → inkMidWarm */
    --ink-soft:   #9A8260;  /* was #9A8A6A → inkSoftWarm */
    --ink-line:   #C9B58A;  /* was #C8BAA0 → rule */
    --mustard:    #C8900A;
    --mustard-bg: #FBF0CC;
    --red:        #B8455A;  /* was #B83020 → warn */
    --red-bg:     #F5DBDC;  /* was #FDEAE8 → warnPink */
    --green:      #5A6B45;  /* was #3A6A48 → safe (세이지 톤) */
    --green-bg:   #E0DDC0;  /* was #E8F2EC → safeBg */
    --blue:       #1A5DAB;
    --blue-bg:    #E8F0FD;
    --indirect-bg:     #FFF5E0;
    --indirect-text:   #B87200;
    --indirect-border: #F0B030;
    --cross-bg:     #FDEEEA;
    --cross-text:   #B84A28;
    --cross-border: #D6704A;
    --staple-bg:    #F5F5F0;
    --tag-bg:       #FBF0CC;
    --tag-text:     #B87200;
    --warning-banner-bg:     #FFF3E0;
    --warning-banner-border: #E8A020;
    --warning-banner-text:   #8B5E00;
    --french-serif-text: #6A5A40;

    /* === Design v2 — 핸드오프 신규 토큰 (점진 이동 중) === */
    /* 양피지 강화 */
    --bg-warm:           #E8DFC6;
    --surface-warm:      #F4ECD4;
    --surface-warm-alt:  #EFE5C8;
    --paper:             #F2E8D0;
    --paper-light:       #F7EFD8;
    --paper-edge:        #E8D9B5;

    /* 잉크 강화 */
    --ink-warm:      #2A1E0E;
    --ink-mid-warm:  #5A4530;
    --ink-soft-warm: #9A8260;
    --rule:          #C9B58A;
    --rule-soft:     #D4BF8E;

    /* 머스타드 확장 */
    --mustard-soft:    #E8B845;
    --mustard-bg-tint: #F5E5B8;

    /* 세이지 (보태니컬 잎) */
    --sage:      #8A9970;
    --sage-deep: #5A6B45;

    /* 코랄·핑크 (베리·강조) */
    --coral:         #D26A3E;
    --pink-dot:      #C97570;
    --blood-orange:  #B83C1E;

    /* 알러지 경고 (red 갈아끼울 때) */
    --warn:         #B8455A;
    --warn-pink:    #F5DBDC;
    --warn-pink-bd: #E5BBC1;
    --warn-deep:    #9A2818;

    /* 안전 (green 갈아끼울 때 — 세이지 톤 통일) */
    --safe:    #5A6B45;
    --safe-bg: #E0DDC0;
  }

  body {
    font-family: 'Gowun Dodum', 'Apple SD Gothic Neo', sans-serif;
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
  }

  /* ── 헤더 ── */
  .app-header {
    background: var(--bg);
    padding: 40px 24px 28px;
    text-align: center;
    border-bottom: 1px solid var(--ink);
  }
  .header-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto 4px;
    cursor: pointer;
  }
  .header-logo img {
    width: 119px;
    height: auto;
    display: block;
  }
  @media (min-width: 768px) {
    .header-logo img { width: 175px; }
  }
  /* 글씨 포함 lockup — 엠블럼만 있는 버전보다 크게 (한글 가독) */
  .header-logo img.header-lockup {
    width: 158px;
    margin-bottom: 2px;
  }
  @media (min-width: 768px) {
    .header-logo img.header-lockup { width: 230px; }
  }
  .logo-kr {
    font-family: 'GabiaNul', 'Gowun Dodum', serif;
    font-weight: 700;
    font-size: 28px;
    letter-spacing: 4px;
    color: var(--ink);
    margin-top: 10px;
  }
  .logo-rule {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
  }
  .logo-rule-line {
    width: 24px;
    height: 0.5px;
    background: var(--ink-soft);
  }
  .logo-fr {
    font-family: 'Goudy Bookletter 1911', serif;
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--french-serif-text);
    white-space: nowrap;
  }
  .logo-fr-sub {
    display: block;
    font-family: 'Sorts Mill Goudy', serif;
    font-style: italic;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--french-serif-text);
    margin-top: 4px;
  }
  .header-sub {
    font-size: 11px;
    color: var(--ink-soft);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
  }
  .guide-btn {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--ink-mid);
    padding: 6px 18px;
    font-size: 11px;
    font-weight: 500;
    color: var(--ink-mid);
    cursor: pointer;
    font-family: inherit;
    margin-bottom: 4px;
    letter-spacing: 0.8px;
    transition: all 0.2s;
  }
  .guide-btn-primary {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--white);
    font-weight: 700;
  }
  .guide-btn-primary:hover { background: var(--ink-mid); border-color: var(--ink-mid); }
  .guide-btn:hover {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
  }
  .guide-btn-fav {
    border-color: var(--red);
    color: var(--red);
    font-weight: 700;
  }
  .guide-btn-fav:hover {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
  }
  .guide-btn-allergy {
    border-color: var(--mustard);
    color: var(--mustard);
    font-weight: 700;
  }
  .guide-btn-allergy:hover {
    background: var(--mustard);
    color: var(--white);
    border-color: var(--mustard);
  }

  /* ── 탭 ── */
  .tab-nav {
    background: var(--surface);
    display: flex;
    border-bottom: 1px solid var(--ink);
    position: sticky;
    top: 0;
    z-index: 10;
  }
  .tab-btn {
    flex: 1;
    padding: 14px 4px 12px;
    border: none;
    border-right: 1px solid var(--ink-line);
    background: transparent;
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--ink-soft);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.4px;
    word-break: keep-all;
    line-height: 1.2;
    transition: all 0.18s;
    border-bottom: 2px solid transparent;
  }
  .tab-btn:last-child { border-right: none; }
  .tab-btn svg { opacity: 0.45; transition: opacity 0.18s; }
  .tab-btn:hover svg, .tab-btn.active svg { opacity: 1; }
  .tab-btn:hover { color: var(--ink); background: var(--mustard-bg); }
  .tab-btn.active {
    color: var(--ink);
    background: var(--bg);
    border-bottom: 2px solid var(--ink);
    font-weight: 900;
  }

  /* ── 컨테이너 ── */
  .container { max-width: 600px; margin: 0 auto; padding: 32px 20px 60px; }
  .tab-panel { display: none; }
  .tab-panel.active { display: block; animation: fadeIn 0.2s ease; }

  /* 성분표 확인 */
  .scan-input-wrap { margin-top: 4px; }
  .scan-input {
    width: 100%; box-sizing: border-box;
    padding: 12px 14px; border: 1px solid var(--ink-line);
    border-radius: 10px; background: var(--bg);
    font-family: inherit; font-size: 14px; line-height: 1.6;
    color: var(--ink); resize: vertical;
  }
  .scan-input:focus { outline: none; border-color: var(--mustard); }
  .scan-actions { display: flex; gap: 8px; margin-top: 10px; }
  .scan-sample-btn, .scan-clear-btn {
    padding: 7px 12px; border-radius: 10px;
    font-family: inherit; font-size: 12px; cursor: pointer;
    border: 1px solid var(--ink-line);
  }
  .scan-sample-btn { background: var(--mustard-bg); border-color: var(--mustard); color: var(--mustard); font-weight: 600; }
  .scan-clear-btn { background: var(--bg); color: var(--ink-soft); }
  .scan-result { margin-top: 16px; }
  .scan-result-header { font-size: 14px; font-weight: 700; margin-bottom: 4px; color: var(--ink); }
  .scan-result-sub { font-size: 11px; color: var(--ink-soft); margin-bottom: 12px; }
  .scan-items { display: flex; flex-direction: column; gap: 8px; }
  .scan-item {
    padding: 10px 12px; border-radius: 10px;
    border: 1px solid var(--ink-line); background: var(--surface);
  }
  .scan-item.direct   { background: #FDEAE8; border-color: var(--red); }
  .scan-item.indirect { background: var(--indirect-bg); border-color: var(--indirect-border); }
  .scan-item.cross    { background: var(--cross-bg); border-color: var(--cross-border); }
  .scan-item-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .scan-item-name { font-size: 14px; font-weight: 700; color: var(--ink); }
  .scan-item.direct .scan-item-name   { color: var(--red); }
  .scan-item.indirect .scan-item-name { color: var(--indirect-text); }
  .scan-item.cross .scan-item-name    { color: var(--cross-text); }
  .scan-badge {
    padding: 2px 8px; border-radius: 10px; border: 1px solid;
    font-size: 10px; font-weight: 700;
  }
  .scan-item.direct .scan-badge   { color: var(--red); border-color: var(--red); }
  .scan-item.indirect .scan-badge { color: var(--indirect-text); border-color: var(--indirect-border); }
  .scan-item.cross .scan-badge    { color: var(--cross-text); border-color: var(--cross-border); }
  .scan-item-detail { font-size: 11px; color: var(--ink-soft); margin-top: 3px; }
  .scan-item-reason { font-size: 12px; margin-top: 3px; font-weight: 500; }
  .scan-disclaimer {
    margin-top: 14px; font-size: 11px; color: var(--ink-soft); line-height: 1.5;
  }
  .scan-empty { font-size: 13px; color: var(--ink-soft); padding: 16px 0; text-align: center; }
  .scan-warn {
    margin-top: 10px; padding: 10px 12px;
    background: var(--warning-banner-bg); border: 1px solid var(--warning-banner-border); border-radius: 10px;
    font-size: 12px; color: var(--warning-banner-text); line-height: 1.5;
  }
  .scan-lowconf {
    margin-bottom: 12px; padding: 10px 12px;
    background: var(--mustard-bg); border: 1px solid var(--mustard); border-radius: 10px;
    font-size: 12px; color: var(--mustard); line-height: 1.5;
  }
  /* 푸드QR 조용한 보강 — 히트했을 때만 그려진다 (미스면 DOM 자체가 없음) */
  .foodqr-box {
    margin-bottom: 12px; padding: 10px 12px;
    background: var(--green-bg); border: 1px solid var(--green); border-radius: 10px;
    word-break: keep-all; overflow-wrap: anywhere;
  }
  .foodqr-head {
    font-size: 12px; color: var(--green); line-height: 1.5;
  }
  .foodqr-mark { font-weight: 700; }
  /* OCR이 놓친 알러지 — 이 보강의 핵심 가치라 경고 톤으로 분리 */
  .foodqr-missed {
    margin-top: 8px; padding: 8px 10px;
    background: var(--red-bg); border: 1px solid var(--red); border-radius: 8px;
    font-size: 12px; color: var(--red); line-height: 1.5;
    word-break: keep-all; overflow-wrap: anywhere;
  }

  .scan-facility {
    margin-top: 14px; padding-top: 12px;
    border-top: 1px solid var(--ink-line);
  }
  .scan-facility-title {
    font-size: 12px; font-weight: 700; color: var(--ink-soft); margin-bottom: 8px;
  }
  .scan-facility-list { display: flex; flex-wrap: wrap; gap: 6px; }
  .scan-facility-item {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px; border-radius: 10px; border: 1px solid var(--ink-line);
    background: var(--white); font-size: 12px; font-weight: 500;
  }
  .scan-facility-item.direct   { background: #FDEAE8; border-color: var(--red); color: var(--red); }
  .scan-facility-item.indirect { background: var(--indirect-bg); border-color: var(--indirect-border); color: var(--indirect-text); }
  .scan-facility-item.cross    { background: var(--cross-bg); border-color: var(--cross-border); color: var(--cross-text); }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

  /* ── 섹션 카드 ── */
  .section-card {
    background: var(--white);
    padding: 28px;
    border: 1px solid var(--ink-line);
    margin-bottom: 16px;
  }
  .section-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ink-line);
  }
  .section-title-text h2 {
    font-family: 'Gowun Dodum', serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.5px;
    margin-bottom: 3px;
  }
  .section-title-text p {
    font-size: 11px;
    color: var(--ink-soft);
    line-height: 1.5;
    letter-spacing: 0.2px;
  }

  /* ── 입력 ── */
  .input-wrap { position: relative; }
  .input-row { display: flex; gap: 0; align-items: stretch; }
  .input-row input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--ink);
    border-right: none;
    font-size: 16px;
    font-family: inherit;
    background: var(--bg);
    color: var(--ink);
    outline: none;
    transition: background 0.15s;
    -webkit-appearance: none;
    box-sizing: border-box;
  }
  .input-row input:focus { background: var(--white); }
  .input-row input::placeholder { color: var(--ink-soft); font-size: 14px; }
  /* ── 검색 탭 메인 검색 강조 ── */
  #panel-search > .section-card:first-child .input-row input {
    background: var(--mustard-bg);
    border-color: var(--mustard);
    border-width: 2px;
  }
  #panel-search > .section-card:first-child .input-row input:focus {
    background: var(--white);
  }
  #panel-search > .section-card:first-child .input-row .add-btn {
    background: var(--mustard);
    border-color: var(--mustard);
    border-width: 2px;
  }
  #panel-search > .section-card:first-child .input-row .add-btn:hover {
    background: #A77808;
    border-color: #A77808;
  }

  /* ── 자동완성 드롭다운 ── */
  .autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--ink);
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 20;
    display: none;
  }
  .autocomplete-list.open { display: block; }
  .autocomplete-item {
    padding: 10px 14px;
    font-size: 14px;
    color: var(--ink);
    cursor: pointer;
    border-bottom: 1px solid var(--ink-line);
    transition: background 0.1s;
  }
  .autocomplete-item:last-child { border-bottom: none; }
  .autocomplete-item:hover,
  .autocomplete-item.selected {
    background: var(--green-bg);
    color: var(--green);
    font-weight: 600;
  }
  .autocomplete-item .ac-match {
    font-weight: 700;
    color: var(--green);
  }
  .autocomplete-item .ac-count {
    float: right;
    font-size: 11px;
    color: var(--ink-soft);
    font-weight: 400;
  }

  .add-btn {
    padding: 12px 20px;
    border: 1px solid var(--ink);
    font-size: 12px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    background: var(--ink);
    color: var(--white);
    letter-spacing: 0.5px;
    transition: all 0.15s;
    -webkit-appearance: none;
    flex-shrink: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
  }
  .add-btn:hover { background: var(--ink-mid); }
  .add-btn-red { background: var(--red); border-color: var(--red); }
  .add-btn-red:hover { background: #9A2818; }

  /* ── 태그 ── */
  .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
    min-height: 28px;
  }
  .tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    animation: popIn 0.15s ease;
    border: 1px solid;
  }
  .tag-green { background: var(--green-bg); color: var(--green); border-color: var(--green); }
  .tag-red { background: var(--red-bg); color: var(--red); border-color: var(--red); }
  .tag button {
    background: none; border: none; cursor: pointer;
    font-size: 13px; line-height: 1; padding: 0;
    color: inherit; opacity: 0.4;
    display: flex; align-items: center;
  }
  .tag button:hover { opacity: 1; }
  .empty-hint { font-size: 11px; color: var(--ink-soft); padding: 4px 0; letter-spacing: 0.3px; }
  @keyframes popIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
  }

  /* ── 검색 버튼 ── */
  .search-btn {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--ink);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    margin-top: 16px;
    letter-spacing: 1px;
    background: var(--ink);
    color: var(--white);
  }
  .search-btn:disabled {
    background: var(--ink-line);
    border-color: var(--ink-line);
    color: var(--surface);
    cursor: not-allowed;
  }
  .search-btn:not(:disabled):hover { background: var(--ink-mid); }

  /* ── 알러지 모드 ── */
  .allergy-mode-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--ink-line);
  }
  .allergy-mode-label {
    font-size: 11px;
    color: var(--ink-mid);
    font-weight: 700;
    letter-spacing: 0.5px;
  }
  .mode-toggle {
    display: flex;
    border: 1px solid var(--ink);
  }
  .mode-btn {
    padding: 5px 14px;
    border: none;
    border-right: 1px solid var(--ink);
    font-size: 11px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    background: transparent;
    color: var(--ink-soft);
    letter-spacing: 0.3px;
    transition: all 0.15s;
  }
  .mode-btn:last-child { border-right: none; }
  .mode-btn.active {
    background: var(--ink);
    color: var(--white);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.25);
  }
  .mode-btn:not(.active):hover { background: var(--mustard-bg); color: var(--ink); }


  /* ── 알러지 추천 태그 버튼 ── */
  .allergy-quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 4px;
  }
  .allergy-quick-btn {
    padding: 4px 10px;
    border: 1px solid var(--ink-line);
    border-radius: 12px;
    font-size: 11px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    background: var(--surface);
    color: var(--ink-mid);
    transition: all 0.15s;
  }
  .allergy-quick-btn:hover { border-color: var(--red); color: var(--red); background: var(--red-bg); }
  .allergy-quick-btn.already-added {
    border-color: var(--ink-line);
    color: var(--ink-line);
    cursor: default;
    text-decoration: line-through;
  }

  /* ── 알러지 프리셋 ── */
  .allergy-presets {
    margin: 0 0 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .allergy-preset-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
  }
  .allergy-preset-label {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    color: var(--ink-soft);
    letter-spacing: 0.4px;
    padding: 6px 0 0;
    min-width: 56px;
  }
  .allergy-preset-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
    align-items: center;
  }
  .preset-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border: 1px solid var(--ink-line);
    border-radius: 14px;
    font-size: 11px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    background: var(--surface);
    color: var(--ink-mid);
    transition: all 0.15s;
  }
  .preset-chip:hover {
    border-color: var(--ink);
    color: var(--ink);
  }
  .preset-chip.user {
    background: var(--mustard-bg);
    border-color: var(--mustard);
    color: var(--mustard);
  }
  .preset-chip.user:hover {
    background: var(--mustard);
    color: var(--white);
  }
  .preset-chip-x {
    background: none;
    border: none;
    color: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    opacity: 0.5;
  }
  .preset-chip-x:hover { opacity: 1; }
  .preset-add-btn {
    padding: 5px 10px;
    border: 1px dashed var(--ink-line);
    border-radius: 14px;
    font-size: 11px;
    font-family: inherit;
    font-weight: 600;
    background: transparent;
    color: var(--ink-soft);
    cursor: pointer;
    transition: all 0.15s;
  }
  .preset-add-btn:hover {
    border-color: var(--mustard);
    color: var(--mustard);
  }
  .preset-empty-hint {
    font-size: 11px;
    color: var(--ink-soft);
    font-style: italic;
    align-self: center;
  }

  /* ── 멀티 프로필 (L0) ── */
  .profile-mode-row { display: flex; gap: 7px; margin-bottom: 8px; }
  .pm-btn {
    flex: 1; text-align: center; font-size: 12.5px; font-weight: 800;
    padding: 9px 6px; border-radius: 11px; border: 1.5px solid var(--ink-line);
    background: var(--white); color: var(--ink-soft); cursor: pointer; font-family: inherit;
    word-break: keep-all;
  }
  .pm-btn.sel { border-color: var(--green); background: var(--green-bg); color: var(--green); }
  .profile-mode-hint { font-size: 11px; color: var(--ink-soft); margin: 0 0 14px; }

  .profile-list { display: flex; flex-direction: column; gap: 9px; }
  .pf {
    display: flex; align-items: center; gap: 11px;
    border: 1.5px solid var(--ink-line); border-radius: 13px; padding: 11px 12px;
    background: var(--white);
  }
  .pf.on { border-color: var(--green); background: var(--green-bg); }
  .pf-avatar {
    width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto; cursor: pointer;
    object-fit: cover; border: 1.5px solid var(--ink-line); background: var(--paper-light);
  }
  /* 편집기 아바타 선택 그리드 */
  .pe-avatar-label { font-size: 11px; font-weight: 700; color: var(--ink-soft); margin: 2px 0 7px; }
  .pe-avatar-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 0 0 16px; }
  .pe-avatar-cell {
    width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; cursor: pointer;
    border: 2px solid transparent; background: var(--paper-light); transition: .15s;
  }
  .pe-avatar-cell:hover { border-color: var(--ink-line); }
  .pe-avatar-cell.sel { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-bg); }
  .pf-body { flex: 1; min-width: 0; cursor: pointer; }
  .pf-name { font-size: 13.5px; font-weight: 800; color: var(--ink); margin-bottom: 4px; word-break: keep-all; }
  .pf-edit { font-size: 10px; font-weight: 600; color: var(--ink-soft); margin-left: 4px; }
  .pf-allerg { display: flex; flex-wrap: wrap; gap: 4px; }
  .pf-allerg .c {
    font-size: 10.5px; padding: 2px 7px; border-radius: 12px;
    background: var(--red-bg); color: var(--red); font-weight: 700;
  }
  .pf-allerg .c.more { background: var(--surface); color: var(--ink-soft); }
  .pf-none { font-size: 10.5px; color: var(--ink-soft); font-style: italic; }
  .pf-age { font-size: 10px; color: var(--ink-soft); margin-top: 4px; }
  .pf-toggle {
    flex: 0 0 auto; width: 42px; height: 24px; border-radius: 20px;
    background: var(--ink-line); position: relative; transition: .2s; cursor: pointer;
  }
  .pf-toggle.on { background: var(--green); }
  .pf-toggle::after {
    content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
    background: var(--white); top: 3px; left: 3px; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
  }
  .pf-toggle.on::after { left: 21px; }
  .profile-add-btn {
    display: block; width: 100%; margin-top: 9px; padding: 11px;
    border: 1.5px dashed var(--ink-line); border-radius: 13px; background: transparent;
    font-size: 12.5px; color: var(--ink-soft); font-weight: 700; cursor: pointer; font-family: inherit;
  }
  .profile-add-btn:hover { border-color: var(--green); color: var(--green); }

  .pe-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(42,30,14,0.45);
    display: none; align-items: center; justify-content: center;
    padding: 16px;
  }
  .profile-editor {
    width: 100%; max-width: 460px; max-height: 86vh; overflow-y: auto;
    padding: 0 14px 16px; border-radius: 16px;
    background: var(--paper-light); border: 1.5px solid var(--ink-line);
    box-shadow: 0 12px 40px rgba(42,30,14,0.3);
    -webkit-overflow-scrolling: touch;
  }
  .pe-head {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 2;
    margin: 0 -14px 12px; padding: 14px;
    background: var(--paper-light);
    border-bottom: 1px solid var(--ink-line);
    border-radius: 16px 16px 0 0;
  }
  .pe-title { font-size: 13.5px; font-weight: 800; color: var(--ink); }
  .pe-head-btns { display: flex; gap: 6px; }
  .pe-del {
    font-size: 11px; font-weight: 700; color: var(--red); background: var(--red-bg);
    border: none; border-radius: 9px; padding: 6px 11px; cursor: pointer; font-family: inherit;
  }
  .pe-close {
    font-size: 11px; font-weight: 800; color: var(--white); background: var(--green);
    border: none; border-radius: 9px; padding: 6px 14px; cursor: pointer; font-family: inherit;
  }
  .pe-fields { display: flex; gap: 8px; margin-bottom: 11px; }
  .pe-name {
    flex: 1; min-width: 0; font-size: 13px; padding: 9px 11px; border-radius: 10px;
    border: 1.5px solid var(--ink-line); background: var(--white); color: var(--ink); font-family: inherit;
  }
  .pe-age {
    flex: 0 0 96px; font-size: 13px; padding: 9px 11px; border-radius: 10px;
    border: 1.5px solid var(--ink-line); background: var(--white); color: var(--ink); font-family: inherit;
  }

  /* ── 로그인/동기화 (L1) ── */
  .cloud-bar:empty { display: none; }
  .cloud-bar {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 13px; margin-bottom: 14px;
    background: var(--mustard-bg); border: 1px solid var(--ink-line);
    border-radius: 13px;
  }
  .cloud-bar .cb-ic { font-size: 18px; flex: 0 0 auto; }
  .cloud-bar .cb-text { flex: 1; min-width: 0; font-size: 12px; font-weight: 700; color: var(--ink-mid); word-break: keep-all; }
  .cloud-bar .cb-text small { display: block; font-size: 10px; font-weight: 500; color: var(--ink-soft); margin-top: 2px; }
  .cloud-bar .cb-btn {
    flex: 0 0 auto; font-size: 11px; font-weight: 800; color: var(--white);
    background: var(--mustard); border: none; border-radius: 9px; padding: 7px 13px; cursor: pointer; font-family: inherit;
  }
  .cloud-bar .cb-btn.ghost { color: var(--ink-soft); background: transparent; border: 1px solid var(--ink-line); }

  .login-modal {
    width: 100%; max-width: 420px;
    padding: 18px 16px; border-radius: 16px;
    background: var(--paper-light); border: 1.5px solid var(--ink-line);
    box-shadow: 0 12px 40px rgba(42,30,14,0.3);
  }
  .login-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
  .login-modal-title { font-size: 15px; font-weight: 800; color: var(--ink); }
  .login-modal-desc { font-size: 12.5px; color: var(--ink-mid); line-height: 1.5; margin: 0 0 14px; word-break: keep-all; }
  .login-send-btn {
    width: 100%; font-size: 14px; font-weight: 800; color: var(--white);
    background: var(--mustard); border: none; border-radius: 11px; padding: 13px; cursor: pointer; font-family: inherit;
  }
  .login-send-btn:disabled { opacity: 0.5; }
  .login-google-btn {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
    font-size: 14px; font-weight: 700; color: #3c4043;
    background: var(--white); border: 1.5px solid var(--ink-line); border-radius: 11px;
    padding: 13px; cursor: pointer; font-family: inherit;
  }
  .login-google-btn:disabled { opacity: 0.5; }
  .login-google-btn svg { flex: 0 0 auto; }
  #logoutBtn { background: transparent; color: var(--ink-soft); border: 1px solid var(--ink-line); }
  .login-modal-msg { font-size: 12px; font-weight: 700; color: var(--green); margin: 10px 0 0; min-height: 16px; word-break: keep-all; }
  .login-modal-msg.err { color: var(--red); }
  .login-modal-note { font-size: 10.5px; color: var(--ink-soft); margin: 8px 0 0; text-align: center; }

  /* 토스트 액션 버튼 (되돌리기 등) */
  .toast.has-action { pointer-events: auto; }
  .toast-action {
    background: none;
    border: none;
    color: #E8B845;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    padding: 0 0 0 12px;
    margin-left: 12px;
    border-left: 1px solid rgba(255,255,255,0.2);
  }
  .toast-action:hover { color: var(--white); }

  /* ── 찜 알러지 경고 ── */
  .fav-allergy-banner {
    padding: 8px 12px;
    background: var(--red-bg);
    border: 1px solid var(--red);
    font-size: 11px;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 8px;
  }

  /* ── 찜 섹션 ── */
  .fav-section {
    margin-bottom: 16px;
    border: 1px solid var(--ink);
    background: var(--white);
  }
  .fav-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    cursor: pointer;
    user-select: none;
    background: var(--mustard-bg);
    border-bottom: 1px solid var(--ink-line);
  }
  .fav-title { font-size: 12px; font-weight: 700; color: var(--red); letter-spacing: 0.3px; }
  .fav-count {
    font-size: 11px;
    font-weight: 700;
    color: var(--white);
    background: var(--red);
    padding: 1px 7px;
    min-width: 20px;
    text-align: center;
  }
  .fav-toggle-icon { font-size: 10px; color: var(--ink-soft); margin-left: auto; }
  #favCards { padding: 12px; }

  /* ── 인트로 가이드 (홈 화면 콘텐츠) ── */
  .intro-guide {
    margin-bottom: 16px;
    padding: 18px 18px 16px;
    background: var(--surface);
    border: 1px solid rgba(26, 18, 8, 0.06);
    border-radius: 14px;
  }
  .intro-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
    letter-spacing: 0.2px;
  }
  .intro-lead {
    font-size: 13px;
    line-height: 1.7;
    color: var(--ink);
    margin-bottom: 12px;
  }
  .intro-features {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
  }
  .intro-features li {
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--ink);
    padding-left: 12px;
    position: relative;
  }
  .intro-features li::before {
    content: "·";
    position: absolute;
    left: 4px;
    color: var(--ink-soft);
    font-weight: 700;
  }
  .intro-features strong {
    font-weight: 700;
    color: var(--ink);
  }
  .intro-note {
    font-size: 11px;
    line-height: 1.7;
    color: var(--ink-soft);
    padding-top: 10px;
    border-top: 1px solid rgba(26, 18, 8, 0.06);
  }

  /* ── 리콜 배너 ── */
  .active-allergy-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 10px;
    background: var(--surface, #FAF6EE);
    border: 1px solid var(--ink-line, #E5DDC8);
    border-radius: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .active-allergy-bar::-webkit-scrollbar { display: none; }
  .active-allergy-bar .filter-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-soft, #806E4D);
    letter-spacing: 0.2px;
    flex-shrink: 0;
    white-space: nowrap;
  }
  .active-allergy-bar .chips {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
  }
  .active-allergy-bar .chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--red-bg, #FCEDE9);
    border: 1px solid var(--red, #C84B31);
    border-radius: 12px;
    color: var(--red, #C84B31);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.12s;
  }
  .active-allergy-bar .chip:hover { opacity: 0.75; }
  .recall-banner {
    margin-bottom: 16px;
    border: 1px solid var(--mustard);
    background: var(--mustard-bg);
  }
  .recall-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--mustard);
  }
  .recall-icon {
    font-size: 13px;
    color: var(--mustard);
    font-weight: 700;
  }
  .recall-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.3px;
  }
  .recall-count-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--white);
    background: var(--mustard);
    padding: 1px 7px;
    margin-left: 2px;
  }
  .recall-updated {
    font-size: 10px;
    color: var(--ink-soft);
    margin-left: auto;
    letter-spacing: 0.2px;
  }
  .recall-list { padding: 8px 14px 4px; }
  .recall-item {
    display: block;
    padding: 8px 0;
    border-bottom: 1px dashed var(--ink-line);
    text-decoration: none;
  }
  .recall-item:last-child { border-bottom: none; }
  .recall-item-top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
    flex-wrap: wrap;
  }
  .recall-type-tag {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    background: var(--white);
    border: 1px solid var(--mustard);
    color: var(--mustard);
    letter-spacing: 0.3px;
  }
  .recall-type-tag.infant {
    background: var(--red-bg);
    border-color: var(--red);
    color: var(--red);
  }
  .recall-grade {
    font-size: 9px;
    color: var(--ink-soft);
    letter-spacing: 0.2px;
  }
  .recall-date {
    font-size: 9px;
    color: var(--ink-soft);
    margin-left: auto;
  }
  .recall-product {
    font-size: 12px;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 2px;
  }
  .recall-reason {
    font-size: 11px;
    color: var(--ink-mid);
    line-height: 1.45;
  }
  .recall-view-all {
    display: block;
    width: 100%;
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-top: 1px solid var(--mustard);
    color: var(--ink);
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-align: center;
  }
  .recall-view-all:hover { background: rgba(200,144,10,0.08); }

  /* ── 리콜 모달 ── */
  .recall-modal-overlay .modal.recall-modal {
    max-width: 520px;
    padding: 0;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
  }
  .recall-modal-header {
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--ink-line);
  }
  .recall-modal-header h2 {
    font-size: 14px;
    font-weight: 900;
    margin: 0 0 10px;
    padding: 0;
    border: none;
    color: var(--ink);
    letter-spacing: -0.3px;
  }
  .recall-modal-meta {
    font-size: 10px;
    color: var(--ink-soft);
    margin-bottom: 10px;
    line-height: 1.5;
  }
  .recall-guide {
    font-size: 12px;
    color: var(--ink-soft);
    line-height: 1.55;
    word-break: keep-all;
    background: rgba(200,144,10,0.08);
    border-radius: 8px;
    padding: 8px 11px;
    margin-bottom: 10px;
  }
  .recall-search {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--ink-line);
    font-family: inherit;
    font-size: 12px;
    color: var(--ink);
    background: var(--white);
    margin-bottom: 10px;
  }
  .recall-search:focus { outline: none; border-color: var(--mustard); }
  .recall-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .recall-filter-btn {
    padding: 4px 10px;
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    background: var(--white);
    border: 1px solid var(--ink-line);
    color: var(--ink-mid);
    cursor: pointer;
    letter-spacing: 0.2px;
  }
  .recall-filter-btn.active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--white);
  }
  .recall-modal-body {
    padding: 8px 20px;
    overflow-y: auto;
    flex: 1;
  }
  .recall-modal-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--ink-soft);
    font-size: 12px;
  }
  .recall-more-wrap {
    padding: 12px 0 4px;
    text-align: center;
  }
  .recall-more-btn {
    background: transparent;
    border: 1px solid var(--ink-line);
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-mid);
    cursor: pointer;
  }
  .recall-more-btn:hover { background: var(--surface); }
  .recall-shown-meta {
    text-align: center;
    font-size: 11px;
    color: var(--ink-soft);
    padding: 10px 0 4px;
  }
  .recall-modal-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--ink-line);
    background: var(--bg);
  }
  .recall-modal-footer .disclaimer {
    margin: 0;
    padding: 0;
    border: none;
  }
  .recall-close-btn {
    width: 100%;
    margin-top: 10px;
    padding: 11px;
    background: var(--ink);
    color: var(--white);
    border: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 1px;
  }


  /* ── 찜 버튼 ── */
  .card-btn-group { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-shrink: 0; }
  .fav-btn, .share-btn {
    width: 34px; height: 34px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--ink-line); border-radius: 999px;
    background: transparent; color: var(--ink-soft);
    font-size: 15px; font-family: inherit; line-height: 1;
    cursor: pointer; transition: all 0.15s;
  }
  .fav-btn.active { color: var(--red); border-color: var(--red); background: var(--red-bg); }
  .fav-btn:hover { background: var(--red-bg); color: var(--red); border-color: var(--red); }

  .ing-qty {
    font-size: 11px;
    font-weight: 600;
    color: var(--mustard);
    margin-left: 4px;
  }
  .meta-chip.allergy-chip {
    color: var(--red) !important;
    border-color: var(--red) !important;
    background: var(--red-bg) !important;
    font-weight: 700;
  }
  .meta-chip.safe-chip {
    color: var(--green) !important;
    border-color: var(--green) !important;
    background: var(--green-bg) !important;
    font-weight: 600;
  }
  /* 발효 양념(간장 등) 미량 — 숨기지 않고 부드럽게 라벨 (빨강 아님) */
  .meta-chip.trace-chip {
    color: var(--warning-banner-text) !important;
    border-color: var(--mustard) !important;
    background: var(--mustard-bg) !important;
    font-weight: 600;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
  /* ── 카드 펼치기/접기 ── */
  .recipe-card.collapsed .card-body { display: none; }
  .recipe-card:not(.collapsed) .card-toggle-btn { display: none; }
  .card-toggle-btn, .card-collapse-btn {
    margin-top: 10px; padding: 8px;
    border: 1px solid var(--ink-line); border-radius: 8px;
    background: transparent; cursor: pointer;
    width: 100%; text-align: center;
    font-size: 12px; color: var(--ink-mid);
    font-family: inherit;
  }
  .card-toggle-btn:hover, .card-collapse-btn:hover { background: var(--bg); }
  .allergy-hint {
    font-size: 11px;
    color: var(--ink-soft);
    margin-top: 12px;
    line-height: 1.6;
    letter-spacing: 0.2px;
  }

  /* ── 토스트 알림 ── */
  .toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--ink);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    max-width: 85vw;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 9999;
  }
  .toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  /* ── 오늘의 레시피 ── */
  .recommended-header {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-mid);
    letter-spacing: 0.5px;
    padding: 20px 0 8px;
  }

  /* ── 홈 컬렉션 묶음 (seasonal·five-free·quick) ── */
  .collection-section {
    padding: 18px 0 8px;
  }
  .collection-head {
    padding: 0 4px 6px;
    word-break: keep-all;
  }
  .collection-title-ko {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink-deep);
    letter-spacing: 0.3px;
  }
  .collection-title-en {
    font-size: 10.5px;
    color: var(--ink-mid);
    letter-spacing: 1.2px;
    margin-top: 2px;
    font-style: italic;
  }
  .collection-desc {
    font-size: 11.5px;
    color: var(--ink-mid);
    margin-top: 6px;
    line-height: 1.5;
    word-break: keep-all;
  }
  .collection-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 10px 4px 6px;
    scrollbar-width: none;
  }
  .collection-row::-webkit-scrollbar { display: none; }
  .collection-mini {
    flex: 0 0 auto;
    cursor: pointer;
    padding: 10px 14px;
    border: 1px solid var(--ink-line);
    border-radius: 16px;
    background: var(--surface-warm, var(--surface-soft));
    transition: background 0.15s, border-color 0.15s;
    max-width: 180px;
  }
  .collection-mini:hover {
    background: var(--surface-soft);
    border-color: var(--ink-mid);
  }
  .collection-mini-name {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ink-deep);
    line-height: 1.35;
    word-break: keep-all;
  }
  /* 일러 있는 컬렉션 미니카드 = 큰 일러 썸네일 */
  .collection-mini.illu {
    padding: 0; border: none; max-width: none; background: none;
    flex: 0 0 200px; width: 200px;
  }
  .collection-mini.illu:hover { background: none; border-color: transparent; }
  .cm-img {
    position: relative; width: 100%; aspect-ratio: 4 / 3; /* 정사각 일러 16:9 크롭 시 타원 그릇 잘림 → 4:3 (card-illu와 동일) */
    border-radius: 12px; overflow: hidden;
    background: var(--paper-light); border: 1px solid var(--ink-line);
    transition: border-color 0.15s;
  }
  .collection-mini.illu:hover .cm-img { border-color: var(--mustard); }
  .cm-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .cm-img.failed { background: var(--ink-mid); }
  .cm-grad {
    position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
    background: linear-gradient(to bottom, transparent, rgba(42,30,14,0.82));
  }
  .cm-name {
    position: absolute; left: 10px; right: 10px; bottom: 8px;
    font-family: 'Gowun Dodum', serif; font-size: 13px; font-weight: 700;
    color: #FAF7F0; line-height: 1.2; text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    word-break: keep-all;
  }
  .collection-more-row {
    text-align: right;
    padding: 4px 4px 0;
  }
  .collection-more-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--mustard);
    background: none;
    border: none;
    padding: 6px 4px;
    cursor: pointer;
    letter-spacing: 0.3px;
  }
  .collection-more-link:hover { text-decoration: underline; }
  /* focus 모드: 다른 섹션 숨김 */
  body.collection-focus .tab-nav,
  body.collection-focus .app-header .header-sub,
  body.collection-focus .app-header .guide-btn,
  body.collection-focus #panel-search > .section-card,
  body.collection-focus .intro-guide,
  body.collection-focus #recallBanner,
  body.collection-focus #favSection,
  body.collection-focus #recommended-section,
  body.collection-focus #collection-sections,
  body.collection-focus .tab-panel:not(#panel-search) {
    display: none !important;
  }
  body.collection-focus #collection-focus-container { display: block !important; }
  #collection-focus-container { display: none; padding: 14px 0 20px; }
  .collection-focus-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-mid);
    font-size: 13px;
    background: none;
    border: none;
    padding: 8px 12px;
    margin-bottom: 6px;
    border-radius: 10px;
    cursor: pointer;
  }
  .collection-focus-back:hover { background: var(--surface-soft); }
  .collection-focus-head {
    padding: 4px 4px 12px;
    word-break: keep-all;
  }
  .collection-focus-count {
    font-size: 11px;
    color: var(--ink-mid);
    margin-top: 8px;
  }

  /* ── 장보기 탭 카운트 ── */
  .cart-tab-count {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    font-size: 9px;
    font-weight: 700;
    border-radius: 10px;
    padding: 1px 5px;
    margin-left: 4px;
    vertical-align: middle;
    line-height: 1.4;
  }

  /* ── 장보기 목록 ── */
  .cart-list { margin-top: 16px; display: flex; flex-direction: column; gap: 2px; }
  .cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 4px;
    border-bottom: 1px solid var(--ink-line);
    font-size: 14px;
  }
  .cart-item input[type="checkbox"] {
    width: 18px; height: 18px; accent-color: var(--green);
    flex-shrink: 0; cursor: pointer;
  }
  .cart-item-name { flex: 1; }
  .cart-item.checked .cart-item-name { text-decoration: line-through; color: var(--ink-soft); }
  .cart-item-qty { font-size: 12px; color: var(--mustard); font-weight: 600; margin-left: 4px; }
  .cart-item-del {
    background: none; border: none; color: var(--ink-soft);
    font-size: 16px; cursor: pointer; padding: 0 4px; line-height: 1;
  }
  .cart-item-del:hover { color: var(--red); }
  .cart-actions {
    display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap;
  }
  .cart-copy-btn {
    flex: 1; padding: 12px; border: 1px solid var(--ink);
    background: var(--bg); font-family: inherit; font-size: 13px;
    font-weight: 600; cursor: pointer; color: var(--ink);
  }
  .cart-clear-btn {
    padding: 12px 16px; border: 1px solid var(--red);
    background: var(--bg); font-family: inherit; font-size: 13px;
    font-weight: 600; cursor: pointer; color: var(--red);
  }
  .cart-empty-hint {
    text-align: center; color: var(--ink-soft); font-size: 13px;
    margin-top: 32px; line-height: 1.8;
  }

  /* ── 레시피 카드 재료 + 버튼 ── */
  .ing-add-btn {
    background: var(--green-bg); border: 1px solid var(--green); color: var(--green);
    font-size: 12px; font-weight: 700; cursor: pointer; padding: 0 5px;
    line-height: 1.2; vertical-align: middle; border-radius: 3px;
    margin-left: 4px;
    transition: all 0.15s;
  }
  .ing-add-btn:hover { background: var(--green); color: var(--white); }
  .ing-add-btn.added { background: var(--green); color: var(--white); border-color: var(--green); }

  /* ── 레시피 카드 ── */
  .results { display: flex; flex-direction: column; gap: 1px; margin-top: 4px; }

  .recipe-card {
    background: var(--white);
    padding: 24px 28px;
    border: 1px solid var(--ink-line);
    border-left: 3px solid var(--ink);
    animation: slideUp 0.25s ease both;
    margin-bottom: 12px;
    transition: box-shadow 0.15s, transform 0.15s;
    word-break: keep-all;
    overflow-wrap: break-word;
  }
  .recipe-card:hover {
    box-shadow: 0 2px 12px rgba(26,18,8,0.08);
  }
  @keyframes slideUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .recipe-card h3 {
    font-family: 'Gowun Dodum', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.3px;
    margin-bottom: 10px;
    line-height: 1.3;
  }
  .recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ink-line);
  }
  .meta-chip {
    font-size: 10px;
    font-weight: 700;
    color: var(--ink-mid);
    padding: 3px 9px;
    border: 1px solid var(--ink-line);
    letter-spacing: 0.3px;
  }
  /* 카테고리 칩: 결과 목록=아이콘만 / 펼치면 아이콘+한글 */
  .cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    background: var(--paper-edge);
  }
  .cat-chip svg { width: 14px; height: 14px; flex: 0 0 auto; }
  .cat-label { display: none; }
  .recipe-card:not(.collapsed) .cat-chip { padding: 3px 9px; }
  .recipe-card:not(.collapsed) .cat-label { display: inline; }
  .match-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    margin-left: auto;
    background: var(--mustard-bg);
    color: var(--mustard);
    border: 1px solid var(--mustard);
    letter-spacing: 0.3px;
  }

  .card-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.3px;
    margin-bottom: 6px;
    margin-top: 10px;
  }

  .ingredient-list { display: flex; flex-wrap: wrap; gap: 5px; }
  .cart-ing-hint { font-size: 10px; color: var(--ink-soft); font-style: italic; margin: 4px 0 0; }
  .ing-chip {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    background: var(--bg);
    color: var(--ink);
    border: 1px solid var(--ink-line);
  }
  .ing-chip.missing { background: transparent; color: #C8B898; opacity: 0.7; border-style: dashed; }
  .ing-chip.staple { background: transparent; color: #B8A888; font-style: italic; border-style: dashed; }
  .ing-chip.allergy { background: var(--red-bg); color: var(--red); border: 1px solid var(--red); font-weight: 700; }
  .ing-chip.matched { background: var(--green-bg); color: var(--green); border: 1px solid var(--green); font-weight: 700; }

  .steps { list-style: none; counter-reset: step; margin-top: 4px; }
  .steps li {
    counter-increment: step;
    display: flex;
    gap: 14px;
    font-size: 13px;
    line-height: 1.75;
    color: var(--ink-mid);
    padding: 8px 0;
    border-bottom: 1px solid var(--ink-line);
  }
  .steps li:last-child { border-bottom: none; }
  .steps li::before {
    content: counter(step);
    min-width: 20px; height: 20px;
    background: var(--ink);
    color: var(--white);
    font-size: 10px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 3px;
    letter-spacing: 0;
  }

  .enlarge-btn {
    font-size: 11px; font-weight: 600; color: var(--mustard);
    background: transparent; border: 1px solid var(--mustard); border-radius: 6px;
    cursor: pointer; padding: 3px 8px;
  }
  .enlarge-btn:hover { background: var(--mustard-bg); }
  .steps-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9999;
    display: flex; align-items: flex-end; justify-content: center;
  }
  .steps-modal-content {
    background: var(--surface); border-radius: 20px 20px 0 0;
    max-height: 80vh; width: 100%; max-width: 500px; display: flex; flex-direction: column;
  }
  .steps-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px; border-bottom: 1px solid var(--ink-line);
  }
  .steps-modal-header h3 { font-size: 17px; color: var(--ink); margin: 0; flex: 1; }
  .steps-modal-close {
    font-size: 13px; font-weight: 600; color: var(--mustard);
    background: none; border: none; cursor: pointer;
  }
  .steps-modal-body {
    padding: 20px; overflow-y: auto; flex: 1;
  }
  .steps-modal-body .modal-step {
    font-size: 16px; line-height: 1.8; color: var(--ink); margin-bottom: 12px;
  }
  .steps-modal-body .tip-box { margin-top: 16px; }
  .steps-modal-body .tip-box p { font-size: 14px; line-height: 1.7; }

  .tip-box {
    background: var(--mustard-bg);
    border-left: 3px solid var(--mustard);
    padding: 10px 14px;
    margin-top: 16px;
    font-size: 12px;
    color: #7A5A0A;
    line-height: 1.8;
    letter-spacing: 0.1px;
  }

  /* 👶 아기 1인분 (amounts_v2) — 재료 영역 아래 인라인 박스 */
  .baby-inline {
    margin-top: 10px;
    padding: 8px 12px;
    border-left: 3px solid var(--green);
    background: var(--green-bg);
    font-size: 12px;
    color: var(--ink);
    line-height: 1.7;
  }
  .baby-inline-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--green);
    letter-spacing: 0.2px;
    margin-bottom: 3px;
  }
  .baby-inline-items {
    margin: 0;
  }

  /* ── 알러지 경고 ── */
  .allergy-warning {
    background: var(--red-bg);
    border-left: 3px solid var(--red);
    padding: 12px 14px;
    margin-top: 14px;
  }
  .allergy-warning-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }
  .allergy-sub-item {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
    font-size: 12px;
    line-height: 1.5;
  }
  .allergy-sub-item:last-child { margin-bottom: 0; }
  .allergy-sub-name { color: var(--red); font-weight: 700; min-width: 62px; }
  .allergy-sub-list { color: var(--ink-mid); }
  .allergy-sub-loading { color: var(--ink-soft); font-style: italic; }

  /* UX#7 스켈레톤 (Doherty 임계 — 비동기 로딩 체감 속도 ↑) */
  @keyframes skeleton-shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
  }
  .skeleton {
    display: inline-block;
    background: linear-gradient(90deg, var(--ink-line) 0%, var(--surface) 40%, var(--ink-line) 80%);
    background-size: 200px 100%;
    background-repeat: no-repeat;
    border-radius: 4px;
    animation: skeleton-shimmer 1.2s ease-in-out infinite;
    color: transparent !important;
  }
  .skeleton-line {
    display: block;
    height: 12px;
    margin: 6px 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--ink-line) 0%, var(--surface) 40%, var(--ink-line) 80%);
    background-size: 200px 100%;
    animation: skeleton-shimmer 1.2s ease-in-out infinite;
  }
  .skeleton-line.short { width: 40%; }
  .skeleton-line.medium { width: 65%; }
  .skeleton-line.long { width: 90%; }
  .allergy-sub-note { font-size: 10px; color: var(--ink-soft); margin-top: 6px; padding-top: 4px; border-top: 1px solid rgba(0,0,0,0.08); }
  .allergy-sub-ings { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 8px; }
  .ai-sub-btn { background: var(--peach); color: var(--ink); border: none; border-radius: 10px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; width: 100%; }

  /* ── 빈 결과 ── */
  .no-result {
    background: var(--white);
    padding: 40px 24px 32px;
    text-align: center;
    border: 1px solid var(--ink-line);
    border-radius: 12px;
  }
  .no-result .no-icon { font-size: 44px; margin-bottom: 8px; opacity: 0.85; }
  .no-result p { color: var(--ink-soft); font-size: 13px; line-height: 1.7; margin: 0; }
  .no-result .no-result-headline {
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
    margin-top: 4px;
    margin-bottom: 10px;
    letter-spacing: -0.2px;
  }
  .no-result .no-result-hint { font-size: 12px; line-height: 1.7; }
  .no-result .no-result-eg { color: var(--ink-line); font-size: 11px; }
  .no-result .no-result-allergy {
    margin-top: 14px;
    padding: 10px 12px;
    background: var(--mustard-bg);
    border: 1px solid var(--mustard);
    border-radius: 8px;
    font-size: 12px;
    color: var(--ink-mid);
    line-height: 1.6;
  }
  .no-result .no-result-allergy b { color: var(--mustard); font-weight: 700; }
  .no-result-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 18px;
    flex-wrap: wrap;
  }
  .no-result-btn {
    padding: 9px 16px;
    background: var(--mustard);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
  }
  .no-result-btn:hover { opacity: 0.85; }
  .no-result-btn.ghost {
    background: transparent;
    color: var(--ink-mid);
    border: 1px solid var(--ink-line);
  }
  .no-result-btn.ghost:hover { background: var(--surface); opacity: 1; }

  /* ── 모달 ── */
  .modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26,18,8,0.5);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  .modal-overlay.open { display: flex; }
  .modal {
    background: var(--white);
    padding: 32px 28px;
    max-width: 360px;
    width: 100%;
    border: 1px solid var(--ink);
  }
  .modal h2 {
    font-size: 15px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--ink);
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ink-line);
    letter-spacing: -0.3px;
  }
  .guide-step { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
  .guide-num {
    min-width: 20px; height: 20px;
    background: var(--ink);
    color: var(--white);
    font-size: 10px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 2px;
  }
  .guide-step p { font-size: 12px; color: var(--ink-mid); line-height: 1.65; }
  .guide-step p b { color: var(--ink); }
  .modal-close {
    width: 100%; margin-top: 20px; padding: 13px;
    background: var(--ink); color: var(--white);
    border: none; font-family: inherit;
    font-size: 13px; font-weight: 700; cursor: pointer;
    letter-spacing: 1px; transition: background 0.15s;
  }
  .modal-close:hover { background: var(--ink-mid); }

  .ing-chip.indirect {
    background: var(--warning-banner-bg);
    color: #C06000;
    border: 1px solid var(--warning-banner-border);
    font-weight: 600;
  }
  .ing-chip.cross {
    background: var(--cross-bg);
    color: var(--cross-text);
    border: 1px dashed var(--cross-border);
    font-weight: 600;
  }
  .ing-cross-label {
    display: inline-block;
    margin-left: 4px;
    padding: 0 4px;
    font-size: 9px;
    font-weight: 700;
    background: var(--cross-border);
    color: var(--cross-bg);
    border-radius: 2px;
    letter-spacing: 0.3px;
    vertical-align: middle;
  }
  .share-btn:hover { background: var(--mustard-bg); border-color: var(--mustard); color: var(--mustard); }
  .card-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
  }
  .card-top-row h3 { margin-bottom: 0; }

  /* ── 레시피 일러 (펼치면 등장) ── */
  .card-illu {
    display: none;
    position: relative;
    margin: 0 0 16px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--paper-light);
  }
  .card-illu.cur { aspect-ratio: 4 / 3; } /* 정사각 일러를 16:9로 자르면 넓은 타원 그릇이 폭 꽉 채우고 보태니컬 잘림 → 4:3 (앱 RecipeIllustration parity) */
  .card-illu.sls { aspect-ratio: 5 / 3; }
  .card-illu img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .card-illu-grad {
    position: absolute; left: 0; right: 0; bottom: 0; height: 48%;
    background: linear-gradient(to bottom, transparent, rgba(42,30,14,0.85));
    pointer-events: none;
  }
  .card-illu-overlay { position: absolute; left: 16px; right: 16px; bottom: 12px; pointer-events: none; }
  .card-illu-name {
    font-family: 'Gowun Dodum', serif; font-size: 20px; font-weight: 700;
    color: #FAF7F0; line-height: 1.25; letter-spacing: 0.2px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5); word-break: keep-all;
  }
  .card-illu-en {
    margin-top: 2px; font-family: Georgia, serif; font-style: italic;
    font-size: 13px; color: rgba(250,247,240,0.9); letter-spacing: 0.3px;
  }
  /* 부제(subtitle): 식약처 모호 메뉴명 보조 설명 */
  .card-illu-sub {
    margin-top: 3px; font-family: 'Gowun Dodum', serif; font-weight: 400;
    font-size: 13px; color: rgba(250,247,240,0.88); letter-spacing: 0.2px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.45); word-break: keep-all;
  }
  .card-sub { margin: 1px 0 0; font-family: 'Gowun Dodum', serif; font-weight: 400;
    font-size: 12.5px; color: var(--ink-soft, #7a6a4f); word-break: keep-all; }
  .cm-sub { display: block; margin-top: 2px; font-family: 'Gowun Dodum', serif; font-size: 11px;
    font-weight: 400; color: rgba(250,247,240,0.85); text-shadow: 0 1px 4px rgba(0,0,0,0.45); word-break: keep-all; }
  #stepsModalTitle .steps-modal-sub { display: block; margin-top: 2px; font-size: 13px;
    font-weight: 400; color: var(--ink-soft, #7a6a4f); }
  .card-illu-btns { position: absolute; top: 10px; right: 10px; display: flex; gap: 4px; }
  .card-illu-btns .fav-btn, .card-illu-btns .share-btn {
    background: rgba(244,236,212,0.92); border-color: transparent;
  }
  /* 펼친 상태 + 일러 있으면: 일러 노출 + 텍스트 헤더 숨김 */
  .recipe-card.has-illu:not(.collapsed) .card-illu { display: block; }
  .recipe-card.has-illu:not(.collapsed) .card-top-row { display: none; }
  /* 이미지 로드 실패 시: 일러 숨기고 텍스트 헤더 복구 */
  .recipe-card.illu-failed .card-illu { display: none !important; }
  .recipe-card.illu-failed .card-top-row { display: flex !important; }
  .disclaimer {
    font-size: 10px;
    color: var(--ink-soft);
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--ink-line);
    line-height: 1.6;
    letter-spacing: 0.1px;
  }

  .allergy-cross-info {
    margin-top: 14px;
    padding: 14px 16px;
    background: var(--cream-soft, #f4efe5);
    border: 1px solid var(--ink-line);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.65;
    color: var(--ink-soft);
  }
  .allergy-cross-info-title {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 14px;
  }
  .allergy-cross-info-intro {
    display: block;
    margin-bottom: 10px;
  }
  .allergy-cross-info-list {
    margin: 0 0 8px;
    padding-left: 0;
    list-style: none;
  }
  .allergy-cross-info-list li {
    margin-bottom: 3px;
  }
  .allergy-cross-info-note {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--ink-line);
    font-size: 12px;
    line-height: 1.6;
  }

  /* ── 푸터 ── */
  .app-footer {
    text-align: center;
    padding: 28px 20px 40px;
    border-top: 1px solid var(--ink-line);
    margin-top: 20px;
  }
  .footer-feedback-btn {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--ink-soft);
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 500;
    color: var(--ink-mid);
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.5px;
    transition: all 0.15s;
    text-decoration: none;
  }
  .footer-feedback-btn:hover {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
  }
  .footer-links {
    margin-top: 16px;
    font-size: 11px;
    letter-spacing: 0.3px;
    line-height: 1.6;
  }
  .footer-links a {
    color: var(--ink-soft);
    text-decoration: none;
    display: inline-block;
    padding: 2px 6px;
  }
  .footer-links a:hover { color: var(--ink-mid); text-decoration: underline; }
  .footer-links .sep { color: var(--ink-line); }
  .footer-copy {
    font-size: 10px;
    color: var(--ink-soft);
    margin-top: 12px;
    letter-spacing: 0.3px;
  }
  /* 앱 다운로드 섹션 */
  .app-download {
    text-align: center;
    padding: 28px 20px 4px;
    margin-top: 28px;
    border-top: 1px solid var(--ink-line);
  }
  .app-download-title {
    font-family: var(--serif, 'Gowun Dodum', serif);
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    letter-spacing: 0.3px;
  }
  .app-download-sub {
    font-size: 12px;
    color: var(--ink-soft);
    margin: 6px 0 0;
    letter-spacing: 0.2px;
  }
  .app-download-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
  }
  .store-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--ink);
    color: var(--white);
    text-decoration: none;
    padding: 9px 16px;
    border-radius: 10px;
    border: 1px solid var(--ink);
    transition: all 0.15s;
    min-width: 148px;
  }
  .store-badge:hover {
    background: var(--ink-mid);
    border-color: var(--ink-mid);
    transform: translateY(-1px);
  }
  .store-badge svg { flex-shrink: 0; }
  .store-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-align: left;
  }
  .store-badge-text small {
    font-size: 9.5px;
    letter-spacing: 0.4px;
    opacity: 0.82;
  }
  .store-badge-text strong {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
  }

  /* 공유 링크 진입 시 단일 레시피 전용 뷰 (?r= / ?recipe=) */
  body.recipe-focus .tab-nav,
  body.recipe-focus .app-header .header-sub,
  body.recipe-focus .app-header .guide-btn,
  body.recipe-focus #panel-search > .section-card,
  body.recipe-focus #recallBanner,
  body.recipe-focus #favSection,
  body.recipe-focus #recommended-section,
  body.recipe-focus .tab-panel:not(#panel-search) {
    display: none !important;
  }
  .recipe-focus-banner {
    max-width: 720px;
    margin: 0 auto;
    padding: 14px 20px 0;
    text-align: left;
  }
  .recipe-focus-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-mid);
    font-size: 14px;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--ink-line);
  }
  .recipe-focus-back:hover { background: var(--surface-soft); }

  /* ── 검색 결과 섹션 (이름 매치 / 재료 매치) — 2026-07-25 ── */
  .search-sec-head {
    padding: 18px 4px 0;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
  .search-sec-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
  }
  .search-sec-ko {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink-deep);
    letter-spacing: 0.3px;
  }
  .search-sec-n {
    font-size: 12px;
    font-weight: 700;
    color: var(--mustard);
    white-space: nowrap;
    flex-shrink: 0;
  }
  .search-sec-en {
    font-size: 10.5px;
    color: var(--ink-mid);
    letter-spacing: 1.2px;
    margin-top: 2px;
    font-style: italic;
  }
  .search-sec-head::after {
    content: '';
    display: block;
    height: 1px;
    background: var(--rule);
    margin-top: 7px;
  }
  .search-more-btn,
  .search-fridge-btn {
    display: block;
    width: 100%;
    margin: 6px 0 4px;
    padding: 11px;
    font-size: 13px;
    font-family: inherit;
    border-radius: 12px;
    cursor: pointer;
    word-break: keep-all;
  }
  .search-more-btn {
    background: var(--surface-warm);
    border: 1px solid var(--rule-soft);
    color: var(--ink-mid);
  }
  .search-fridge-btn {
    background: var(--paper-light);
    border: 1px dashed var(--rule);
    color: var(--mustard);
    font-weight: 700;
  }
  .search-more-btn:hover { background: var(--surface-warm-alt); }
  .search-fridge-btn:hover { background: var(--mustard-bg); }

/* ── 저장 탭 세그먼트 (찜한 레시피 ↔ 장보기) ──────────────────
   2026-07-29 입구 재설계. 앱 (tabs)/saved.tsx 와 같은 구조를
   웹의 각진 빈티지 톤으로 옮긴 것. .mode-toggle 패턴을 따른다. */
.saved-segment {
  display: flex;
  border: 1px solid var(--ink);
  background: var(--white);
  margin-bottom: 16px;
}
.saved-seg-btn {
  flex: 1;
  padding: 11px 8px;
  border: none;
  border-right: 1px solid var(--ink);
  background: transparent;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.15s;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.saved-seg-btn:last-child { border-right: none; }
.saved-seg-btn.active {
  background: var(--ink);
  color: var(--white);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.25);
}
