@font-face{font-family:Noto;src:url(fonts/he.woff2) format("woff2");font-weight:100 900;unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:Noto;src:url(fonts/latin.woff2) format("woff2");font-weight:100 900;unicode-range:U+0000-00FF,U+2000-206F}
:root{--aub:#2A2029;--deep:#1C151C;--cream:#F4EFE9;--paper:#FBF8F4;--gold:#C9A45C;--pale:#E2C27F;--line:#E3DAD0;--muted:#6F6370;--warn:#9A5B12;--warnbg:#FFF1DC;--red:#A3262E;--ok:#2E6B47}
*{box-sizing:border-box;margin:0}
html{-webkit-text-size-adjust:100%}
body{font-family:Noto,system-ui,sans-serif;background:var(--cream);color:var(--aub);font-size:17px;line-height:1.45;min-height:100vh;padding-bottom:110px}
button,input{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none}
:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
svg{width:24px;height:24px;fill:currentColor}

.top{position:sticky;top:0;z-index:5;background:var(--aub);color:var(--cream);padding:calc(12px + env(safe-area-inset-top)) 16px 12px;box-shadow:0 2px 12px rgba(0,0,0,.18)}
.top-row{display:flex;align-items:center;justify-content:space-between}
h1{font-size:22px;font-weight:700;letter-spacing:.2px}
h1::before{content:"";display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--pale);margin-inline-end:10px;vertical-align:3px}
.icon-btn{width:44px;height:44px;border-radius:50%;display:grid;place-items:center}
.top .icon-btn:active{background:rgba(255,255,255,.1)}
.search input{width:100%;margin-top:10px;height:46px;border-radius:12px;border:0;padding:0 14px;background:#3a2f39;color:var(--cream)}
.search input::placeholder{color:#b9aeb7}
.filters{display:flex;gap:8px;margin-top:10px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.filters button{flex:none;height:38px;padding:0 14px;border-radius:999px;border:1.5px solid #5b4e59;color:#e9e1e7;font-size:15px;white-space:nowrap}
.filters button b{font-weight:600;color:var(--pale);margin-inline-start:4px}
.filters button[aria-pressed=true]{background:var(--pale);border-color:var(--pale);color:var(--deep)}
.filters button[aria-pressed=true] b{color:var(--deep)}

#list{padding:12px 12px 0;display:grid;gap:10px}
.card{display:flex;gap:12px;align-items:stretch;background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:10px;text-align:right;width:100%}
.card:active{background:#fff}
.card .th{flex:none;width:84px;height:84px;border-radius:12px;background:#eee4da center/cover no-repeat;overflow:hidden}
.card .th img{width:100%;height:100%;object-fit:cover;display:block}
.card .tx{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}
.card .nm{font-weight:700;font-size:17px;line-height:1.3;overflow-wrap:anywhere}
.card .ln{color:var(--muted);font-size:15px;overflow-wrap:anywhere}
.tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:2px}
.tag{font-size:13px;line-height:1;padding:5px 8px;border-radius:8px;background:#efe7de;color:#4c404b;white-space:nowrap}
.tag.miss{background:var(--warnbg);color:var(--warn)}
.tag.chk{background:#FDF2E2;color:var(--warn);border:1px dashed #d9a35f}
.empty{text-align:center;color:var(--muted);padding:40px 16px}

.fab{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(18px + env(safe-area-inset-bottom));z-index:6;display:flex;align-items:center;gap:10px;height:60px;padding:0 26px;border-radius:999px;background:var(--aub);color:var(--cream);font-weight:700;font-size:18px;box-shadow:0 8px 24px rgba(42,32,41,.35);border:2px solid var(--pale)}
.fab svg{width:26px;height:26px;color:var(--pale)}

.sheet{position:fixed;inset:0;z-index:20;background:var(--cream);display:flex;flex-direction:column}
.sheet[hidden]{display:none}
.sheet-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:calc(8px + env(safe-area-inset-top)) 10px 8px;background:var(--aub);color:var(--cream)}
.sheet-bar h2{font-size:19px;flex:1;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.save{height:44px;padding:0 20px;border-radius:999px;background:var(--pale);color:var(--deep);font-weight:700}
.save:disabled{opacity:.5}
.sheet-body{flex:1;overflow-y:auto;padding:16px 16px 60px;display:flex;flex-direction:column;gap:18px;-webkit-overflow-scrolling:touch}
.sheet-body>*{flex:none}
.photo{position:relative;width:100%;aspect-ratio:4/3;border-radius:18px;background:#e9dfd4;overflow:hidden;display:grid;place-items:center;border:2px dashed #cdbfb1}
.photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.photo img:not([src]),.photo img[src=""]{display:none}
.photo span{position:relative;z-index:1;background:rgba(42,32,41,.82);color:var(--cream);padding:8px 16px;border-radius:999px;font-size:15px}
.photo.has span{position:absolute;bottom:10px;inset-inline-end:10px;font-size:14px}

.voice{display:flex;flex-direction:column;gap:8px}
.mic{display:flex;align-items:center;justify-content:center;gap:10px;height:58px;border-radius:16px;background:var(--aub);color:var(--cream);font-weight:700;font-size:17px}
.mic svg{color:var(--pale)}
.mic[aria-pressed=true]{background:var(--red)}
.mic[aria-pressed=true] svg{color:#fff;animation:pulse 1s ease-in-out infinite}
@keyframes pulse{50%{transform:scale(1.18)}}
@media (prefers-reduced-motion:reduce){.mic[aria-pressed=true] svg{animation:none}}
.said{font-size:15px;color:var(--muted);background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:10px 12px}
.said.live{color:var(--aub)}

.f{display:flex;flex-direction:column;gap:8px;border:0;padding:0;min-width:0}
.f>label,.f legend{font-weight:700;font-size:16px;padding:0;margin-bottom:8px}
fieldset.f legend{float:right;width:100%}
.f input[type=text],.f input:not([type]),.f input[type=password],.num input{height:52px;border-radius:12px;border:1.5px solid var(--line);background:#fff;padding:0 14px;width:100%;font-size:18px}
.num{display:flex;align-items:center;gap:10px}
.num input{max-width:170px;direction:ltr;text-align:right}
.num span{font-weight:600;color:var(--muted)}
.seg{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.seg button,.sizes button{height:54px;border-radius:14px;border:1.5px solid var(--line);background:#fff;font-weight:600;font-size:17px}
.seg button[aria-pressed=true],.sizes button[aria-pressed=true]{background:var(--aub);border-color:var(--aub);color:var(--cream)}
.sizes{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
.sizes button{height:auto;padding:10px 2px;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:14px;white-space:nowrap}
.sizes i{display:block;width:var(--d);height:var(--d);border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff 0 12%,var(--gold) 40%,#7d5b22)}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{display:flex;align-items:center;gap:6px;height:40px;padding:0 6px 0 14px;border-radius:999px;background:#fff;border:1.5px solid var(--line);font-size:16px}
.chip button{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;color:var(--muted)}
.chip button svg{width:16px;height:16px}
.chips .none{color:var(--muted);font-size:15px}
.add-stone{display:flex;gap:8px}
.add-stone input{flex:1;height:48px;border-radius:12px;border:1.5px solid var(--line);background:#fff;padding:0 12px;min-width:0}
.add-stone button{height:48px;padding:0 16px;border-radius:12px;background:#efe7de;font-weight:600}
.note{font-size:14px;color:var(--warn);background:var(--warnbg);border-radius:10px;padding:6px 10px}
.confirm{display:flex;align-items:center;gap:10px;font-size:16px;min-height:44px}
.confirm input{width:24px;height:24px;accent-color:var(--aub)}
.meta{font-size:14px;color:var(--muted)}
.del{color:var(--red);font-weight:600;height:48px;border:1.5px solid #e6c3c5;border-radius:12px;background:#fff}
.wide{width:100%;height:52px;border-radius:14px;margin-top:10px}
.ghost{background:#fff;border:1.5px solid var(--line);font-weight:600}
.err{color:var(--red);font-weight:600}

.toast{position:fixed;left:16px;right:16px;bottom:calc(92px + env(safe-area-inset-bottom));z-index:40;background:var(--deep);color:var(--cream);border-radius:14px;padding:14px 16px;text-align:center;box-shadow:0 8px 24px rgba(0,0,0,.3)}
.toast.bad{background:var(--red)}
