/* 보호자 집밥 재료·중량 직접 바꾸기(2026-11-08, 시안 guardian_recipe_adjust_20261108) */
.gra-entry { display:flex; flex-wrap:wrap; align-items:center; gap:8px; border:1px solid #e9edf2; border-radius:16px; padding:12px 14px; margin:0 0 12px; background:#fff; }
.gra-entry .primary { margin-left:auto; border-radius:12px; }
.gra-entry-text { color:#64748b; font-size:13px; }
.gra-stamp { background:#fff6e5; color:#b45309; border-radius:999px; padding:3px 10px; font-size:12px; font-weight:700; }
.gra-link { border:0; background:none; color:#2455dc; font-weight:700; font-size:13px; padding:4px 2px; cursor:pointer; }
.gra-rx-lock { display:flex; flex-wrap:wrap; gap:8px; align-items:center; background:#f8fafc; border-radius:14px; padding:12px 14px; margin:0 0 12px; font-size:13px; color:#334155; line-height:1.55; }
.gra-rx-lock a { margin-left:auto; color:#2455dc; font-weight:700; text-decoration:none; }

.gra-panel { position:relative; padding-bottom:96px; color:#0f172a; }
.gra-head { display:flex; align-items:center; justify-content:space-between; margin:0 0 10px; }
.gra-head b { font-size:16px; }
.gra-grow { flex:1; min-width:0; }
.gra-kcal { display:flex; align-items:center; gap:10px; border:1px solid #e9edf2; border-radius:16px; padding:12px 14px; }
.gra-kcal small { display:block; color:#64748b; font-size:12px; }
.gra-kcal b { display:block; font-size:20px; font-weight:800; }
.gra-kcal b em { font-style:normal; font-size:12px; color:#64748b; font-weight:600; }
.gra-meter, .gra-bar { position:relative; display:block; height:8px; border-radius:4px; background:#eef2f7; margin-top:7px; }
.gra-range { position:absolute; top:0; bottom:0; background:#bbf7d0; border-radius:4px; }
.gra-now, .gra-was { position:absolute; top:-3px; width:5px; height:14px; border-radius:2px; border:1px solid #fff; transform:translateX(-50%); }
.gra-now { background:#0f9f6e; }
.gra-now.out { background:#d63b3b; box-shadow:0 0 0 2px #fecaca; }
.gra-was { background:#3b82f6; width:4px; }
.gra-chip { display:inline-flex; align-items:center; border-radius:999px; padding:4px 10px; font-size:12px; font-weight:700; white-space:nowrap; }
.gra-chip.ok { background:#e9f8f1; color:#0f9f6e; }
.gra-chip.bad { background:#fdeeee; color:#d63b3b; }
.gra-chip.amber { background:#fff6e5; color:#b45309; }
.gra-chip.info, .gra-chip.muted { background:#f1f5f9; color:#64748b; }
.gra-seg { display:flex; background:#f1f5f9; border-radius:12px; padding:3px; margin:12px 0 8px; }
.gra-seg button { flex:1; border:0; background:transparent; border-radius:10px; padding:8px 0; font-size:13px; font-weight:700; color:#64748b; cursor:pointer; }
.gra-seg button.on { background:#fff; color:#0f172a; box-shadow:0 1px 2px #0f172a1a; }
.gra-group { border:1px solid #e9edf2; border-radius:16px; overflow:hidden; background:#fff; }
.gra-item { display:flex; align-items:center; gap:8px; padding:11px 12px; }
.gra-item + .gra-item { border-top:1px solid #e9edf2; }
.gra-item b { display:block; font-size:14px; }
.gra-item small { display:block; color:#64748b; font-size:11.5px; margin-top:2px; }
.gra-item small em { font-style:normal; font-weight:700; color:#b45309; }
.gra-item.changed { background:#fffbea; }
.gra-item.removed b { color:#94a3b8; text-decoration:line-through; }
.gra-stepper { display:inline-flex; align-items:center; border:1px solid #d8dee6; border-radius:12px; overflow:hidden; flex:none; }
.gra-stepper button { width:30px; height:34px; border:0; background:#f8fafc; font-size:17px; color:#334155; padding:0; cursor:pointer; }
.gra-stepper input { width:50px; height:34px; min-height:0; border:0; border-radius:0; box-shadow:none; text-align:center; font:inherit; font-size:14px; font-weight:700; padding:0; }
.gra-more { width:28px; height:34px; border:0; background:none; color:#94a3b8; font-size:18px; cursor:pointer; padding:0; flex:none; }
.gra-more-space { width:28px; flex:none; }
.gra-add { display:block; width:100%; border:0; border-top:1px solid #e9edf2; background:#fff; color:#2455dc; font-weight:700; font-size:14px; padding:12px; cursor:pointer; }
.gra-panel .gra-toggle { display:flex; flex-direction:row; align-items:flex-start; gap:10px; border:1px solid #e9edf2; border-radius:14px; padding:12px 14px; margin-top:12px; font-weight:400; }
.gra-panel .gra-toggle input { width:18px; height:18px; min-height:0; margin:2px 0 0; flex:none; }
.gra-toggle b { display:block; font-size:13px; }
.gra-toggle small { display:block; color:#64748b; font-size:11.5px; margin-top:2px; }
.gra-alert { background:#fdeeee; border-radius:14px; padding:11px 13px; margin-bottom:8px; }
.gra-alert b { color:#d63b3b; font-size:13.5px; }
.gra-alert p { margin:4px 0 6px; font-size:12px; color:#7a271a; line-height:1.5; }
.gra-alert.warn { background:#fff6e5; }
.gra-alert.warn b { color:#b45309; }
.gra-alert.warn p { color:#7a4a00; }
.gra-fix { border:1px solid #f1b5ae; background:#fff; color:#7a271a; border-radius:999px; font-size:12px; font-weight:700; padding:5px 10px; margin:0 4px 4px 0; cursor:pointer; }
.gra-resolve { width:100%; margin:2px 0 12px; border-radius:12px; }
.gra-legend { display:flex; flex-wrap:wrap; gap:10px; font-size:11px; color:#64748b; margin:2px 0 8px; }
.gra-legend i { display:inline-block; width:9px; height:9px; border-radius:2px; margin-right:3px; vertical-align:-1px; }
.gra-nut { padding:10px 13px; }
.gra-nut + .gra-nut { border-top:1px solid #e9edf2; }
.gra-nut-top { display:flex; justify-content:space-between; align-items:center; font-size:13px; }
.gra-nut small { display:block; color:#64748b; font-size:11.5px; margin-top:5px; }
.gra-more-link { display:block; margin:8px auto 0; }
.gra-message { background:#eef3ff; color:#1e3a8a; border-radius:12px; padding:10px 12px; font-size:12.5px; margin:12px 0 0; }
.gra-note { color:#64748b; font-size:12.5px; margin:8px 0; }
.gra-footer { position:sticky; bottom:0; margin:16px -2px 0; padding:10px 2px 4px; background:#fff; border-top:1px solid #e9edf2; }
.gra-footer p { margin:0 0 8px; text-align:center; color:#64748b; font-size:11.5px; }
.gra-footer .primary { width:100%; height:46px; border-radius:14px; font-size:15px; }
.gra-dim { position:fixed; inset:0; background:#0f172a52; z-index:1200; }
.gra-sheet { position:fixed; left:0; right:0; bottom:0; z-index:1201; max-height:82vh; overflow:auto; background:#fff; border-radius:24px 24px 0 0; padding:10px 20px 24px; box-shadow:0 -8px 24px #0f172a24; }
@media (min-width:720px) { .gra-sheet { left:50%; right:auto; width:520px; transform:translateX(-50%); } }
.gra-grab { display:block; width:40px; height:4px; border-radius:2px; background:#d8dee6; margin:0 auto 14px; }
.gra-sheet h4 { margin:0; font-size:17px; }
.gra-sub { color:#64748b; font-size:12px; margin:4px 0 12px; line-height:1.5; }
.gra-sheet-row { display:block; width:100%; text-align:left; border:0; border-bottom:1px solid #e9edf2; background:#fff; padding:14px 2px; font-size:15px; font-weight:600; cursor:pointer; }
.gra-sheet-row.danger { color:#d63b3b; }
.gra-sheet-cancel { width:100%; margin-top:12px; }
/* 화면 공통 form 스타일(세로 배치·버튼 100% 폭)을 이 검색줄에서는 덮어쓴다. */
.gra-sheet .gra-search { display:flex; flex-direction:row; align-items:center; gap:8px; margin:0; }
.gra-sheet .gra-search input { flex:1; min-width:0; min-height:40px; margin:0; }
.gra-sheet .gra-search button { flex:none; width:auto; min-height:40px; margin:0; padding:0 14px; }
.gra-pills { display:flex; flex-wrap:wrap; gap:6px; margin:12px 0 4px; }
.gra-pills button { border:1px solid #d8dee6; background:#fff; border-radius:999px; padding:5px 12px; font-size:12px; font-weight:700; color:#334155; cursor:pointer; }
.gra-pills button.on { background:#0f172a; color:#fff; border-color:#0f172a; }
.gra-cands { margin-top:6px; }
.gra-sheet .gra-cand { display:flex; flex-direction:row; align-items:center; gap:10px; padding:11px 0; border-bottom:1px solid #e9edf2; font-weight:400; cursor:pointer; }
.gra-sheet .gra-cand input { width:18px; height:18px; min-height:0; margin:0; flex:none; }
.gra-cand b { display:block; font-size:14px; }
.gra-cand small { color:#64748b; font-size:11.5px; }
.gra-cand.disabled { opacity:.55; }
.gra-row { display:flex; gap:8px; margin-top:14px; }
.gra-row > * { flex:1; min-height:46px; border-radius:14px; }
.gra-diff { display:flex; align-items:center; gap:6px; padding:11px 13px; font-size:13.5px; }
.gra-diff + .gra-diff { border-top:1px solid #e9edf2; }
.gra-diff span { flex:1; font-weight:700; }
.gra-diff s { color:#94a3b8; }
.gra-diff .up { color:#b45309; } .gra-diff .down { color:#2455dc; } .gra-diff .new { color:#0f9f6e; }
/* 홈 화면에는 .ghost 버튼 공통 스타일이 없어 시트 안에서 맞춘다. */
.gra-sheet .ghost, .gra-panel .ghost { background:#fff; color:#0f172a; border:1px solid #d8dee6; border-radius:12px; min-height:44px; font-weight:700; cursor:pointer; }
.gra-sheet .primary, .gra-panel .primary, .gra-entry .primary { background:#2455dc; color:#fff; border:1px solid #2455dc; border-radius:12px; min-height:44px; font-weight:800; cursor:pointer; }
.gra-entry .primary { min-height:38px; padding:0 14px; }
.gra-sheet .primary:disabled, .gra-panel .primary:disabled { background:#e2e8f0; border-color:#e2e8f0; color:#94a3b8; cursor:default; }
.gra-sheet .gra-search button { background:#fff; color:#2455dc; border:1px solid #d8dee6; }
