:root{color:#241f1f;background:#fbfaf8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,textarea{font:inherit}button{cursor:pointer}.app,.screen{min-height:100svh}.screen{padding:calc(18px + env(safe-area-inset-top)) 18px calc(92px + env(safe-area-inset-bottom));max-width:720px;margin:0 auto}.top,.bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}h1,h2,p{margin-top:0}h1{font-size:28px;line-height:1.15;margin-bottom:0}h2{font-size:20px}.eyebrow,.muted,small{color:#736a66}.eyebrow{margin-bottom:4px;font-weight:700;color:#8b1a1a}.mark,.accent,.stars,.rating-buttons button.active{color:#8b1a1a}.capture,.primary,.secondary,.ghost,.danger,.row,.card,.chips button,.icon,.rating-buttons button{border:0;border-radius:8px}.capture{width:100%;min-height:132px;display:grid;place-items:center;gap:8px;padding:24px;background:#8b1a1a;color:#fff;font-size:20px;font-weight:800;box-shadow:0 18px 44px #8b1a1a38}.capture-actions{display:grid;gap:12px}.capture span{display:block;font-size:14px;font-weight:600;color:#f0dada}.primary,.secondary,.ghost,.danger{width:100%;min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 16px;font-weight:800}.primary{background:#8b1a1a;color:#fff}.primary:disabled{opacity:.55}.secondary{background:#f5eef0;color:#6b1a2a}.ghost{background:transparent;color:#5d5551}.danger{background:transparent;color:#a32d2d}.panel{background:#fff;border:1px solid #eee7e2;border-radius:8px;padding:18px;box-shadow:0 12px 36px #4a362c12}.panel>*:last-child{margin-bottom:0}.section{margin-top:28px}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(138px,1fr));gap:12px}.card,.row{background:#fff;border:1px solid #eee7e2;color:inherit;text-align:left}.card{display:grid;gap:8px;padding:12px;min-height:176px}.card span,.row small{color:#736a66}.list{display:grid;gap:10px}.row{min-height:64px;padding:10px 12px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px}.row span{min-width:0}.row b,.card b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-row{grid-template-columns:auto 1fr;align-items:start;padding-top:12px;padding-bottom:12px}.history-row b{white-space:normal;overflow:visible;text-overflow:clip}.history-row .stars{margin-top:6px}.thumb,.empty-thumb{width:48px;height:48px;border-radius:8px;object-fit:cover}.empty-thumb{display:grid;place-items:center;background:#f1efe8;color:#444441}.badges,.chips,.rating-buttons,.stars{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.badges{margin-bottom:12px}.badges span,.chips button{min-height:32px;padding:6px 10px;background:#f5eef0;color:#6b1a2a;font-weight:700}.badges .red{background:#fdeaea;color:#8b1a1a}.badges .white{background:#fefae8;color:#7a6a00}.badges .rose{background:#fde8f0;color:#8b3a5a}.badges .sparkling{background:#e8f0fe;color:#1a3a8b}.badges .unknown{background:#f1efe8;color:#444441}.info{display:grid;gap:10px;margin:18px 0}.info div{display:grid;grid-template-columns:112px 1fr;gap:10px;padding-bottom:10px;border-bottom:1px solid #f1ebe8}dt{color:#736a66}dd{margin:0}.memo{background:#f7f4ef;border-radius:8px;padding:12px;color:#3d3734}.form{display:grid;gap:14px}label{display:grid;gap:6px;font-weight:800}input,textarea{width:100%;border:1px solid #ded6d2;border-radius:8px;padding:12px;background:#fff}textarea{min-height:112px;resize:vertical}.rating-buttons button,.icon,.chips button{background:#f7f4ef;color:#5d5551}.rating-buttons button{width:44px;height:44px}.chips{margin:12px 0}.chips button.active{background:#8b1a1a;color:#fff}.search{display:flex;align-items:center;gap:8px;border:1px solid #ded6d2;border-radius:8px;padding:0 12px;background:#fff}.search input{border:0;padding-left:0}.photos{display:flex;gap:10px;overflow-x:auto;margin-bottom:16px}.photos img{width:96px;height:96px;border-radius:8px;object-fit:cover}.photo-thumb{cursor:pointer}.lightbox{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:#000000eb;display:flex;flex-direction:column;align-items:center;justify-content:center}.lightbox-img{max-width:100vw;max-height:80svh;object-fit:contain}.lightbox-close{position:absolute;top:calc(16px + env(safe-area-inset-top));right:16px;width:44px;height:44px;border-radius:50%;border:0;background:#ffffff2e;color:#fff;display:flex;align-items:center;justify-content:center}.lightbox-nav{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border-radius:50%;border:0;background:#ffffff2e;color:#fff;display:flex;align-items:center;justify-content:center}.lightbox-prev{left:12px}.lightbox-next{right:12px}.lightbox-dots{display:flex;gap:8px;margin-top:20px}.lightbox-dots span{width:8px;height:8px;border-radius:50%;background:#ffffff59;cursor:pointer;transition:background .15s}.lightbox-dots span.active{background:#fff}.sheet{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:grid;align-items:end;padding:18px;background:#19141261}.sheet .panel{max-width:720px;width:100%;margin:0 auto}.tabs{position:fixed;left:0;right:0;bottom:0;z-index:10;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:10px 18px calc(10px + env(safe-area-inset-bottom));background:#ffffffe6;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-top:1px solid #eee7e2}.tabs button{height:48px;border:0;border-radius:8px;background:transparent;color:#736a66}.tabs button.active{background:#f5eef0;color:#8b1a1a}.busy{position:fixed;top:calc(14px + env(safe-area-inset-top));left:50%;transform:translate(-50%);z-index:30;padding:9px 13px;background:#241f1f;color:#fff;border-radius:8px;font-weight:800}.spinner{animation:pulse 1s infinite ease-in-out;color:#8b1a1a}.status{display:grid;place-items:center;min-height:220px}.empty{color:#736a66;padding:22px 0}.login{min-height:100svh;display:grid;place-content:center;gap:18px;padding:24px;text-align:center}.logo{width:84px;height:84px;margin:0 auto;display:grid;place-items:center;border-radius:24px;background:#8b1a1a;color:#fff}.error{color:#a32d2d}@keyframes pulse{50%{opacity:.45}}@media(min-width:760px){.screen{padding-top:32px}}
