:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Malgun Gothic',sans-serif;color:#24322e;background:#f5f6f2;font-size:15px;font-synthesis:none}*{box-sizing:border-box}html{min-height:100%;scroll-behavior:smooth}body{margin:0;padding:0 0 calc(88px + env(safe-area-inset-bottom));}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.4;cursor:default}input,select,textarea{accent-color:#2c695e}input,select,textarea{min-width:0;border:1px solid #ccd7d1;background:#fff;border-radius:10px;padding:12px 12px;color:#26362f;width:100%;outline-offset:1px}input:focus,select:focus,textarea:focus{outline:2px solid #6cae9e;border-color:#6cae9e}textarea{resize:vertical;line-height:1.55}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.shell{width:min(100%,540px);margin:0 auto;padding:0 18px 25px}.brand{display:flex;justify-content:space-between;align-items:center;padding:18px 0 17px;gap:10px;border-bottom:1px solid #e1e7e2;margin-bottom:18px}.brand-name{display:flex;align-items:center;gap:10px;font-weight:800;letter-spacing:-.7px;color:#1e443d;font-size:20px;min-width:0}.brand-name strong{line-height:1.2}.icon-link{display:grid;place-items:center;flex-shrink:0;width:35px;height:35px;border-radius:10px;border:1px solid #dde5df;background:#fff;font-size:25px;line-height:1;color:#446058}.connection:empty{display:none}.connection{font-size:12px;color:#41645c;background:#e9f2ed;padding:8px 10px;border-radius:9px;margin-bottom:12px}
h1,h2,h3,p{margin-top:0}h1{font-size:21px;letter-spacing:-.5px;margin:0}h2{font-size:15px;letter-spacing:-.3px}h3{font-size:15px}.quiet,.hint{color:#75837d;font-size:12px}.muted{color:#53665e}.hint{line-height:1.45;margin:6px 0 0}.home-search{margin:0 0 20px}.search-wrap{position:relative}.search-wrap input{height:49px;padding:11px 41px;font-size:16px;background:white;border:1px solid #aabdb3;box-shadow:0 2px 7px #223d310b}.search-symbol{position:absolute;top:4px;left:15px;color:#59796c;font-size:31px;line-height:40px;pointer-events:none}.search-clear{position:absolute;right:8px;top:8px;border:none;background:transparent;color:#667c72;font-size:24px;width:35px;height:34px;border-radius:8px}.search-clear:hover{background:#ecf3ef}
.fridges{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}.fridge-column{min-width:0}.fridge-column h2{font-size:14px;text-align:center;margin-bottom:10px;color:#29453e}.fridge-body{border:2px solid #aabdb4;background:#abbcb3;border-radius:12px;padding:4px;display:flex;flex-direction:column;gap:4px;min-height:237px;box-shadow:0 2px 8px #1b37220a}.compartment{border:0;border-radius:7px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:70px;padding:10px 5px;color:#213a32;transition:background .12s,transform .12s;text-align:center}.compartment:active{transform:scale(.99)}.compartment:hover{background:#f1f6f3}.compartment.frozen{background:#e6f1f5}.compartment.frozen:hover{background:#d9eaf0}.compartment-name{font-size:13px;font-weight:750;line-height:1.1}.tiny-snow{font-size:12px;color:#568eab;margin-right:3px}.compartment-count{font-size:12px;color:#5a7068;line-height:1}.regular>.compartment{min-height:119px}.freezer-pair{display:grid;grid-template-columns:1fr 1fr;gap:4px;flex:1}.freezer-pair .compartment{min-width:0;min-height:104px}.freezer-pair .compartment-name{font-size:12px;white-space:nowrap;word-break:keep-all}.kimchi>.compartment{min-height:74px;flex:1}.pantry{display:flex;align-items:center;justify-content:space-between;width:100%;border:1px solid #d4dfd7;border-radius:11px;background:white;min-height:51px;padding:12px 16px;margin-top:15px;color:#314f42;font-weight:700;text-align:left}.pantry span:last-child{color:#60766b;font-size:13px;font-weight:500}.arrow{font-size:20px;vertical-align:middle}.veterans{margin-top:22px;padding-top:16px;border-top:1px solid #dfe7e1}.section-title{display:flex;justify-content:space-between;align-items:center;gap:9px;margin-bottom:10px}.section-title h2{margin:0}.link-btn{background:none;border:none;padding:6px 2px;color:#33695b;font-size:12px;white-space:nowrap}.link-btn:hover{text-decoration:underline}.veteran-row{border:0;border-bottom:1px solid #e4e9e5;padding:9px 0;background:transparent;display:flex;align-items:center;gap:8px;text-align:left;width:100%;font-size:13px}.veteran-row:last-child{border-bottom:0}.veteran-num{width:15px;color:#8b9c93}.veteran-name{font-weight:750;min-width:52px}.veteran-age{flex:1;font-size:11px;color:#778a7f;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.veteran-row b{font-size:13px}.veterans .quiet{margin:5px 0}
.bottom{position:fixed;left:50%;transform:translateX(-50%);bottom:0;width:min(100%,540px);height:calc(69px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(3,1fr);background:#fff;border-top:1px solid #dfe7df;padding-bottom:env(safe-area-inset-bottom);z-index:10;box-shadow:0 -4px 20px #203e3309}.bottom a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#718078;font-size:12px}.bottom a span{font-size:24px;line-height:25px}.bottom a.active{color:#216153;font-weight:800}.page-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:3px 0 20px}.small-primary{padding:9px 14px;border:0;border-radius:10px;background:#235849;color:#fff;font-size:13px;font-weight:750}.filters{display:grid;grid-template-columns:1.4fr 1fr;gap:9px}.filters select{font-size:13px;padding:11px 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.small-count{margin:13px 2px 4px}.item-list{display:flex;flex-direction:column;gap:8px}.item{background:#fff;border:1px solid #e0e7e2;border-radius:12px;display:flex;align-items:center;gap:9px;padding:12px 10px 12px 14px;min-width:0}.item-info{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;flex:1}.item-name{padding:0;border:0;background:none;color:#243a31;font-weight:800;font-size:15px;text-align:left;max-width:100%;overflow-wrap:anywhere}.item-name small{font-weight:450;color:#617568;font-size:12px;margin-left:2px}.item-location,.item-date{font-size:11px;color:#75877d;line-height:1.35;max-width:100%;overflow-wrap:anywhere}.item-controls{display:flex;align-items:center;gap:5px;flex-shrink:0}.item-controls strong{font-size:13px;min-width:30px;text-align:center;white-space:nowrap}.step{height:32px;width:32px;padding:0;border:1px solid #d3e1d8;border-radius:9px;background:#f6faf7;color:#2e6050;font-size:20px;line-height:1}.edit-arrow{border:none;background:none;color:#6b8176;font-size:24px;padding:0 1px 0 0}.end-actions{display:flex;justify-content:center;margin-top:18px}.empty-compact{padding:22px 13px;text-align:center;background:#eef3ef;color:#688074;font-size:13px;border-radius:10px;margin:0}.undo-bar{border-radius:10px;background:#e7f1ea;color:#315e4e;padding:8px 12px;display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:13px;font-size:12px}
.field{margin-bottom:16px}.field>label,.field label{font-size:13px;font-weight:700;display:block;margin-bottom:7px}.field label input,.field label select,.field label textarea{margin-top:6px}.field select,.field input,.field textarea{font-size:15px}.field textarea{min-height:133px}.date-extra{margin-top:-3px}.primary,.secondary,.danger{display:inline-flex;align-items:center;justify-content:center;border-radius:11px;border:1px solid transparent;padding:12px 15px;font-size:14px;font-weight:760;min-height:45px;text-align:center}.primary{color:white;background:#1e5a4b}.primary:hover,.small-primary:hover{background:#184b3e}.secondary{color:#295d4d;background:#fff;border-color:#b9d0c2}.danger{background:#8d3d3d;color:#fff}.wide{width:100%}.button-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px}.button-pair button{width:100%}.preview-heading{padding-top:17px;margin-top:22px;border-top:1px solid #dde7df}.preview-list{display:flex;flex-direction:column;gap:7px;margin-bottom:14px}.preview-row{background:white;border:1px solid #e0e9e2;border-radius:11px;padding:10px 12px}.preview-summary{display:flex;align-items:center;gap:8px}.preview-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}.preview-info strong{overflow-wrap:anywhere;font-size:14px}.preview-info small{color:#75877e;font-size:11px}.preview-qty{font-size:14px;font-weight:750;white-space:nowrap}.row-check{display:flex;align-items:center}.row-check input{width:17px;height:17px;margin:0}.row-editor{margin:8px 0 0 24px;padding-top:7px;border-top:1px solid #ecf0eb}.row-editor summary{cursor:pointer;color:#326958;font-size:12px;font-weight:750;list-style-position:outside}.edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0 8px}.edit-grid label{font-size:12px;font-weight:680;color:#4d6659;min-width:0;display:block}.edit-grid input,.edit-grid select,.edit-grid textarea{margin-top:5px;font-size:14px}.edit-grid .wide-grid{grid-column:1/-1}.edit-grid .confirm{display:flex;align-items:center;gap:8px;background:#f4f7f4;padding:9px;border-radius:8px}.confirm input{width:auto;flex-shrink:0}.confirm{font-size:13px;display:flex;align-items:center;gap:8px;margin:17px 0}.error{border:1px solid #dba2a2;color:#a03030;background:#fff4f2;border-radius:10px;padding:10px;margin-bottom:12px;font-size:13px}.warn{font-size:12px;color:#975f25;background:#fff8e9;padding:12px;border-radius:9px}
.simple-card{background:white;border:1px solid #e0e8e1;padding:16px;border-radius:13px;margin-bottom:13px}.simple-card h2{margin-bottom:12px}.simple-card summary{font-size:14px;font-weight:750;cursor:pointer}.simple-card .detail-inner{padding-top:12px;display:flex;flex-direction:column;gap:10px}.simple-card .hint{margin-top:12px}.history-row{font-size:12px;line-height:1.55;border-top:1px solid #eaf0ec;margin:10px 0 0;padding-top:8px}.history-row small{color:#84948a}.more-details{border-top:1px solid #e2e9e4;padding-top:14px;margin:9px 0 19px}.more-details>summary{color:#345f50;font-weight:750;cursor:pointer;padding:6px 0;margin-bottom:12px}.link-danger{border:none;background:none;color:#a74a4a;padding:15px 0 0;font-size:12px;display:block;margin:0 auto}dialog{width:min(95vw,450px);max-height:88dvh;overflow-y:auto;border:0;border-radius:17px;padding:20px;background:#fff;color:#273a30;box-shadow:0 15px 45px #0a181b40}dialog::backdrop{background:#15251bb3}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}.dialog-head h2{margin:0;font-size:19px}.close{background:#f2f6f3;border:0;border-radius:9px;height:32px;width:32px;font-size:24px;color:#657c6e}.consult{min-height:220px}.simple-card+.simple-card{margin-top:0}#toast{position:fixed;left:50%;bottom:calc(82px + env(safe-area-inset-bottom));transform:translateX(-50%) translateY(10px);background:#243e34;color:white;border-radius:11px;padding:11px 15px;font-size:13px;line-height:1.4;min-width:min(95%,320px);max-width:min(95%,490px);box-shadow:0 5px 18px #28362b33;opacity:0;visibility:hidden;transition:opacity .16s,transform .16s;z-index:30;pointer-events:none}#toast.show{opacity:1;visibility:visible;transform:translateX(-50%)}
@media(max-width:385px){.shell{padding:0 12px}.brand-name{font-size:18px}.fridges{gap:9px}.compartment-name{font-size:12px}.freezer-pair .compartment-name{font-size:11px}.item{gap:4px;padding:11px 8px}.step{width:27px;height:31px}.item-controls{gap:3px}.item-controls strong{font-size:12px}.edit-arrow{font-size:20px}}@media(min-width:541px){.shell{background:#f9fbf8;min-height:100dvh;border-left:1px solid #e1e7e2;border-right:1px solid #e1e7e2}.bottom{border-left:1px solid #e1e7e2;border-right:1px solid #e1e7e2}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}


/* 1.2 visual polish: fresh produce palette, clearer fridge controls, simpler type.
   Layout and data/backup logic unchanged. No external font/network dependencies. */
:root{
  font-family:'SamsungOne','Pretendard','Noto Sans KR',-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;
  color:#234232;background:#f7f9f4;
  --fresh:#2e8055;--fresh-deep:#246344;--mint:#e9f6eb;--frost:#e9f6fb;--stroke:#dae7d9;
}
body{background:linear-gradient(180deg,#fbfcf8 0%,#f4f9f3 72%,#f7faf5 100%);color:#234232}
.shell{padding:0 19px 28px}
.brand{border-bottom:1px solid #e3ece2;padding:19px 0 20px;margin-bottom:19px}
.brand-name{font-weight:800;letter-spacing:-.8px;color:#244938;font-size:20px;gap:11px}
.brand-name img{width:39px;height:39px;border-radius:12px;box-shadow:0 3px 9px #1a50301c}
.icon-link{border-color:#deeadc;background:#fff;color:#2d7050;box-shadow:0 2px 6px #234b2c0a}
button,input,select,textarea{font-family:inherit}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #8acba4;outline-offset:2px}
input,select,textarea{background:#fff;border-color:#d5e3d4;border-radius:12px;color:#264735}
input:focus,select:focus,textarea:focus{outline:2px solid #8acba4;border-color:#57a77b}
h1,h2,h3{color:#224a35;letter-spacing:-.55px}
h1{font-size:21px;font-weight:800}
h2{font-size:15px;font-weight:800}
.quiet,.hint{color:#738678}.muted{color:#607567}
.home-search{margin-bottom:21px}
.search-wrap input{height:54px;padding:12px 44px 12px 46px;border:1.5px solid #a8cdb7;border-radius:16px;box-shadow:0 5px 14px #254d2c0b;font-weight:500}
.search-wrap input::placeholder{color:#85998a}
.search-symbol{left:16px;top:17px;width:21px;height:21px;display:block;color:#3c8660;line-height:1}
.search-symbol svg{width:21px;height:21px;display:block}
.search-clear{top:10px;right:10px;color:#567d61}
.fridges{gap:15px}
.fridge-column h2{color:#3c624a;font-size:14px;font-weight:800;margin-bottom:12px;letter-spacing:-.3px}
.fridge-body{
  position:relative;border:2px solid #9bbfa9;
  background:#bad4c1;gap:5px;padding:6px;min-height:250px;
  border-radius:21px 21px 13px 13px;
  box-shadow:0 1px 1px #ffffff inset,0 9px 18px #285a3d1c,0 3px 0 #99b8a3;
}
.fridge-body:after{content:'';position:absolute;height:6px;bottom:-9px;left:11%;right:11%;border-radius:0 0 5px 5px;background:linear-gradient(90deg,#6f947e 0 7%,transparent 7% 93%,#6f947e 93% 100%);pointer-events:none}
.compartment{
  position:relative;overflow:hidden;min-height:68px;gap:8px;
  border:1px solid #ffffffcc;border-radius:11px;
  background:linear-gradient(145deg,#fff 0%,#f1f9f0 100%);
  box-shadow:inset 0 2px 2px #ffffff,0 2px 5px #2c583111;
  color:#264934;transition:background .14s,transform .14s,box-shadow .14s;
}
.compartment:before{content:'';pointer-events:none;position:absolute;left:4px;top:4px;right:4px;height:24%;border-radius:8px;background:linear-gradient(180deg,#ffffffa8,transparent)}
.compartment:after{content:'';pointer-events:none;position:absolute;top:50%;right:8px;transform:translateY(-50%);width:4px;height:28px;border-radius:5px;background:#a5bfab;box-shadow:1px 1px 0 #ffffffbb}
.compartment:hover{background:linear-gradient(145deg,#fff,#e6f6e8);box-shadow:inset 0 2px 2px #ffffff,0 3px 9px #2c583120}
.compartment.frozen{background:linear-gradient(150deg,#f8fdff,#e3f4fb);border-color:#ecfaff}
.compartment.frozen:hover{background:linear-gradient(150deg,#f9feff,#d7edf8)}
.compartment-name{position:relative;z-index:1;font-size:13px;font-weight:800;line-height:1.25;letter-spacing:-.25px}
.compartment-count{position:relative;z-index:1;color:#4b7e5d;font-weight:700;font-size:13px}
.compartment.frozen .compartment-count{color:#4b7f95}
.tiny-snow{color:#4e9cbc;font-size:12px;margin-right:3px}
.regular>.compartment{min-height:122px;flex:1.13}
.freezer-pair{gap:5px;flex:1}
.freezer-pair .compartment{min-height:109px;gap:7px}
.freezer-pair .compartment:first-child:after{right:6px;left:auto}
.freezer-pair .compartment:last-child:after{right:auto;left:6px}
.freezer-pair .compartment-name{font-size:12px}
.kimchi>.compartment{min-height:56px;flex:1}
.kimchi>.compartment:first-child{min-height:115px;flex:1.45}
.kimchi>.compartment:not(:first-child):after{top:8px;left:33%;right:33%;transform:none;width:auto;height:3px;border-radius:6px}
.pantry{
  margin-top:21px;min-height:55px;padding:12px 16px;border-radius:13px;
  border:1px solid #cfdfcf;background:linear-gradient(90deg,#fff,#f4fbf1);
  color:#315c41;box-shadow:0 3px 10px #2e68300a
}
.pantry span:last-child{color:#527f60}
.veterans{margin-top:22px;padding-top:17px;border-top:1px solid #dce9da}
.veterans .section-title h2{font-size:15px;letter-spacing:-.4px}
.veteran-row{border-bottom-color:#dfeade;padding:10px 1px;color:#2a4432}
.veteran-row:hover{background:#edf8ec;border-radius:6px}
.veteran-name{color:#29523b;font-weight:800}
.veteran-age{color:#708775}
.veteran-row b{color:#2d7752}
.link-btn{color:#38815b;font-weight:700}
.bottom{background:#ffffffee;border-top:1px solid #dbe9dc;box-shadow:0 -3px 22px #2e6a3410;backdrop-filter:blur(9px)}
.bottom a{color:#698373;font-weight:600}
.bottom a svg{width:23px;height:23px;display:block;stroke-width:1.85}
.bottom a.active{color:#25764d;font-weight:800}
.small-primary,.primary{background:#2b7e53;color:white;border-color:#2b7e53;box-shadow:0 3px 6px #2d7e4f12}
.primary:hover,.small-primary:hover{background:#226743;border-color:#226743}
.secondary{color:#2e7550;border-color:#b7d8c0}
.step{background:#edf8ee;color:#2b8050;border-color:#cfe6d3}
.step:hover{background:#dff2e2}
.item,.preview-row,.simple-card{border-color:#dfeadd;border-radius:14px;box-shadow:0 2px 8px #274e2d08}
.item-name{color:#284b35}
.item-location,.item-date{color:#708879}
.empty-compact{background:#eaf5ea;color:#52735e}
.undo-bar{background:#e4f4e7;color:#315f42}
#toast{background:#26553b}
@media(max-width:385px){.shell{padding:0 13px}.fridges{gap:9px}.fridge-body{padding:4px;gap:4px}.compartment{padding:7px 3px}.compartment-name{font-size:12px}.freezer-pair{gap:4px}.freezer-pair .compartment-name{font-size:11px}.compartment:after{right:4px;width:3px;height:22px}.freezer-pair .compartment:last-child:after{left:4px}.item{gap:4px}}
@media(min-width:541px){.shell{background:#fbfcf8;min-height:100dvh;border-color:#dce9dd}.bottom{border-color:#dce9dd}}
/* Keep slim drawer handles clear of the two-line labels on small screens. */
.kimchi>.compartment:not(:first-child){gap:5px;padding-top:13px}
.kimchi>.compartment:not(:first-child):after{top:5px;left:38%;right:38%;height:2px;opacity:.55}
