
:root{--ink:#33271f;--muted:#7a6c5c;--paper:#faf6ee;--line:#e5ddcf;--amber:#a65a20;--soft:#eee5d5;--green:#4f6552}*{box-sizing:border-box}body{margin:0;background:#e8e0d2;color:var(--ink);font:14px/1.65 "Yu Gothic UI","Hiragino Kaku Gothic ProN",sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;color:inherit}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b77a3b;outline-offset:3px}button{min-height:44px}h1,h2,h3,p{margin:0}h1,h2{font-family:Georgia,"Yu Mincho",serif}h1{font-size:29px;font-weight:500}h2{font-size:24px;font-weight:500}h3{font-size:16px}small,.small{font-size:12px}.muted{color:var(--muted)}.eyebrow{font-size:10px;letter-spacing:2.5px;font-weight:700}.shell{max-width:1080px;margin:auto;min-height:100dvh;background:var(--paper)}.demo{background:#e9dfce;color:#655342;text-align:center;font-size:10px;padding:6px 8px;letter-spacing:.25px}.header{padding:22px 28px 18px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.brand{font:23px Georgia,serif;letter-spacing:3px}.brand-sub{font-size:10px;letter-spacing:2px;color:var(--muted);margin-top:3px}.seal{width:40px;height:40px;border:1px solid #a88a62;border-radius:50%;display:grid;place-items:center;color:#8d653e;font-family:Georgia,serif;font-size:17px}.workspace{padding:26px 28px 116px}.title-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:16px}.tag{padding:3px 8px;background:#eee4d3;border-radius:4px;font-size:10px;color:#725332}.intro{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:center;margin-bottom:25px}.hero{background:linear-gradient(115deg,#3b2c21,#5b4130);color:#fff2d8;border-radius:12px;padding:20px 24px;display:flex;align-items:center;justify-content:space-between;overflow:hidden;position:relative;min-height:155px}.hero .eyebrow{color:#d9b98a}.hero h2{font-size:23px;margin:8px 0}.hero p{color:#d2beaa;font-size:12px}.hero-art{width:120px;flex-shrink:0;margin-right:-15px;transform:rotate(10deg)}.hero-art svg{height:140px;width:100%}.stats{display:flex;gap:22px;margin-top:14px}.stats strong{font:26px Georgia,serif;margin-right:4px}.stats span{font-size:11px;color:var(--muted)}.search{position:relative;margin-bottom:12px}.search:before{content:'⌕';position:absolute;left:15px;top:6px;font-size:27px;color:#7b6c5b}.search input{width:100%;height:49px;border:1px solid var(--line);border-radius:8px;background:#fffdf8;padding:0 45px 0 44px}.clear-search{position:absolute;right:4px;top:2px;background:none;border:0;width:40px;color:var(--muted);font-size:21px}.filter-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.chip{background:transparent;border:1px solid #d8cdbb;border-radius:24px;padding:8px 14px;font-size:12px;white-space:nowrap}.chip.active{background:var(--ink);color:#fff4df;border-color:var(--ink)}.filter-row select{border:1px solid #d8cdbb;border-radius:24px;min-height:44px;background:transparent;color:var(--ink);padding:8px 28px 8px 12px;font-size:12px;max-width:100%}.filter-help{font-size:11px;color:var(--muted);margin-top:9px}.results-header{display:flex;justify-content:space-between;align-items:center;margin:25px 0 12px;font-size:12px}.text-btn{border:0;background:none;color:var(--amber);padding:5px 8px;font-size:12px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.bottle-card{border:1px solid var(--line);border-radius:10px;background:#fffdf8;overflow:hidden;position:relative}.card-open{border:0;background:transparent;text-align:left;width:100%;padding:0;display:block}.bottle-stage{height:185px;background:radial-gradient(ellipse at 50% 90%,#d8c4a2 0,transparent 48%),linear-gradient(#f3ecdf,#eae0d0);display:flex;align-items:center;justify-content:center;border-bottom:4px solid #d4c0a0;padding:13px}.bottle-stage svg{height:160px;width:114px;filter:drop-shadow(6px 8px 4px #49321e30)}.fav{position:absolute;top:8px;right:8px;border:0;background:#fffaf0d9;border-radius:50%;width:44px;height:44px;color:#85603e;font-size:21px;z-index:1}.fav.on{color:#a65a20}.bottle-copy{padding:15px}.bottle-copy .eyebrow{font-size:9px;color:var(--muted);letter-spacing:1.4px}.bottle-copy h3{font-size:16px;margin:3px 0 7px}.notes{font-size:11px;color:var(--muted)}.rating{display:flex;justify-content:space-between;align-items:center;margin-top:12px;font-size:11px;color:var(--muted)}.rating strong{font:20px Georgia,serif;color:var(--amber)}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(1080px,100%);background:#fffaf3f5;border-top:1px solid var(--line);display:flex;justify-content:center;gap:18px;padding:9px 18px max(10px,env(safe-area-inset-bottom));backdrop-filter:blur(12px);z-index:5}.nav{border:0;background:transparent;min-width:110px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:11px;color:var(--muted);border-radius:8px}.nav svg{width:21px;height:21px}.nav.active{color:var(--amber)}.nav.add{background:var(--ink);color:#fff2dd;padding:12px 20px}.empty{text-align:center;padding:54px 14px;border:1px dashed #d4c6b1;border-radius:10px;grid-column:1/-1}.empty p{margin:8px 0 18px;color:var(--muted)}.primary,.secondary{padding:12px 18px;min-height:48px;border-radius:8px;border:1px solid var(--ink);font-weight:600}.primary{background:var(--ink);color:#fff3dd}.secondary{background:transparent;border-color:#d6c8b5}.full{width:100%}.back{background:none;border:0;color:var(--muted);padding:0 12px 0 0;margin-bottom:14px}.detail-hero{display:grid;grid-template-columns:210px 1fr;align-items:center;gap:30px;margin-bottom:26px}.detail-hero .bottle-stage{height:265px;border-radius:12px}.detail-hero .bottle-stage svg{height:230px;width:160px}.detail-hero h1{margin:8px 0}.detail-meta{font-size:12px;color:var(--muted)}.detail-rating{margin:15px 0}.detail-rating strong{font:35px Georgia,serif;color:var(--amber)}.detail-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.history-heading{margin:28px 0 14px;display:flex;justify-content:space-between;align-items:center}.history-card{background:#fffcf6;border:1px solid var(--line);border-radius:10px;padding:18px;margin-bottom:12px}.history-top{display:flex;align-items:center;gap:10px}.history-top time{color:var(--muted);font-size:11px}.history-score{margin-left:auto;color:var(--amber);font:23px Georgia,serif;white-space:nowrap}.history-card p{margin:10px 0;color:#5c4a3b;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.recipe{font-size:11px;color:var(--muted);border-top:1px solid var(--line);padding-top:10px}.panel{max-width:680px;margin:auto}.panel>p{margin:8px 0 24px}.form-section{border-top:1px solid var(--line);margin-top:24px;padding-top:20px}.field{display:block;font-size:12px;font-weight:600;margin:0 0 17px}.field input,.field select,.field textarea{display:block;width:100%;min-height:48px;margin-top:7px;border:1px solid #d9cdbb;border-radius:7px;background:#fffdf8;padding:10px 12px;color:var(--ink);font-weight:400;min-width:0}.field textarea{min-height:100px;resize:vertical}.optional{font-size:10px;color:var(--muted);font-weight:400;margin-left:6px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.styles{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 18px}.style-choice{border:1px solid #d8cdbb;border-radius:8px;padding:10px 14px;background:transparent;font-size:12px}.style-choice[aria-pressed=true]{background:#eee0c6;border-color:#a17a42;color:#6d461c}.score-row{display:flex;align-items:center;gap:16px}.score-row input{flex:1;accent-color:var(--amber);min-height:44px}.score-row output{font:32px Georgia,serif;color:var(--amber);min-width:45px}.score-hint{font-size:11px;color:var(--muted)}.form-actions{display:flex;gap:12px;margin-top:25px}.form-actions .primary{flex:1}.notice{background:#efe6d6;border-radius:8px;color:#796044;padding:12px 14px;font-size:11px;line-height:1.8;margin:16px 0}.backup-card{border:1px solid var(--line);border-radius:12px;padding:20px;background:#fffcf6;margin:16px 0}.backup-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.backup-card p{font-size:12px;color:var(--muted)}.backup-title svg{width:25px;height:25px;margin-right:10px}.inline-title{display:flex;align-items:center}.status{font-size:10px;color:#876a44;border:1px solid #ddc9ab;padding:3px 7px;border-radius:4px}.sample-info{display:flex;justify-content:space-between;border-top:1px solid var(--line);margin-top:16px;padding-top:13px;font-size:11px;color:var(--muted)}.sample-info strong{color:var(--ink);font-size:13px}.radio-row{display:flex;align-items:flex-start;gap:12px;border:1px solid var(--line);border-radius:8px;padding:13px;margin-top:9px;cursor:pointer;min-height:60px}.radio-row input{accent-color:var(--amber);margin-top:6px;width:17px;height:17px}.radio-row strong{font-size:12px}.radio-row span{display:block;font-size:11px;color:var(--muted)}.backup-card .secondary{margin-top:15px}.footer-note{text-align:center;color:var(--muted);font-size:10px;margin:30px 0}.toast{position:fixed;left:50%;bottom:94px;transform:translateX(-50%);background:#33271ff5;color:#fff2db;padding:12px 18px;border-radius:8px;max-width:calc(100% - 32px);width:max-content;font-size:12px;z-index:30;box-shadow:0 5px 22px #0002}.toast:empty{display:none}dialog{border:1px solid #dacbb5;border-radius:14px;padding:25px;background:var(--paper);color:var(--ink);width:calc(100% - 32px);max-width:430px}dialog::backdrop{background:#23180d66}dialog h2{font-size:23px}dialog p{font-size:13px;margin:12px 0}.preview-table{width:100%;border-collapse:collapse;font-size:12px}.preview-table td{padding:10px 0;border-bottom:1px solid var(--line)}.preview-table td:last-child{text-align:right}body:has(dialog[open]){overflow:hidden}.inline-message{font-size:12px;color:var(--green);padding:8px 0}.icon{width:20px;height:20px;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:640px){.header{padding:19px 22px 16px}.workspace{padding:23px 20px 112px}.intro{grid-template-columns:1fr;gap:20px}.hero{min-height:141px;padding:18px 20px}.hero-art svg{height:128px}.hero h2{font-size:22px}.stats{margin-top:12px}.grid{grid-template-columns:1fr 1fr;gap:12px}.bottle-stage{height:160px}.bottle-stage svg{height:141px;width:100px}.bottle-copy{padding:12px}.bottle-copy h3{font-size:14px}.bottle-copy .eyebrow{font-size:8px;letter-spacing:1px}.notes{font-size:10px}.rating{margin-top:10px}.filter-row{gap:7px}.chip{padding:7px 11px}.filter-row select{padding-left:10px;padding-right:20px;font-size:11px}.nav{min-width:0;flex:1;flex-direction:column;gap:2px}.bottom-nav{gap:8px;padding:9px 12px max(9px,env(safe-area-inset-bottom))}.nav.add{flex:1.2;flex-direction:row;font-size:12px;padding:12px}.detail-hero{grid-template-columns:118px 1fr;gap:18px}.detail-hero .bottle-stage{height:205px;padding:7px}.detail-hero .bottle-stage svg{height:178px;width:110px}.detail-hero h1{font-size:23px}.detail-actions{grid-column:1/-1;margin-top:0}.detail-actions>*{flex:1;font-size:12px}.fields{gap:10px}.title-row{margin-bottom:17px}.form-actions{gap:8px}.form-actions button{padding:12px}.results-header{margin-top:21px}}@media(prefers-reduced-motion:no-preference){button{transition:background .15s,transform .15s}button:active{transform:translateY(1px)}}
