:root{font-family:Noto Sans JP,Hiragino Kaku Gothic ProN,Yu Gothic,system-ui,sans-serif;color:#26362c;background:#faf9f5;font-synthesis:none;font-size:16px;line-height:1.6;font-weight:400;--green: #48634b;--green-dark: #304c36;--soft: #e8eddf;--line: #e0e3d8;--muted: #687166;--danger: #a73831}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit}button{border:0}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #a16b2b;outline-offset:3px}input:focus,select:focus,textarea:focus{outline:2px solid var(--green);outline-offset:2px}h1,h2,h3,h4,p{margin:0}h1{font-size:28px;letter-spacing:.06em;font-weight:650}h2{font-size:18px;font-weight:650}h3{font-size:16px;font-weight:600;line-height:1.55}h4{font-size:15px}svg{flex-shrink:0}button{display:inline-flex;align-items:center;justify-content:center;gap:6px}ul{list-style:none;padding:0;margin:0}.app-shell{max-width:920px;margin:0 auto;min-height:100dvh;padding-bottom:100px}.app-header{display:flex;align-items:center;justify-content:space-between;gap:12px;height:100px;border-bottom:1px solid var(--line);margin:0 32px}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;font-size:26px;letter-spacing:.02em;font-family:Georgia,Yu Mincho,serif}.brand small{display:block;font:11px/1.5 system-ui,sans-serif;letter-spacing:.16em;color:var(--muted)}.brand-mark{color:var(--green);background:var(--soft);width:46px;height:46px;display:grid;place-items:center;border-radius:16px}.header-actions{display:flex;gap:8px;align-items:center}.button{min-height:44px;padding:9px 17px;border-radius:24px;font-size:14px;font-weight:600;white-space:nowrap;background:var(--soft);color:var(--green-dark)}.button.primary{background:var(--green);color:#fff}.button.primary:hover{background:var(--green-dark)}.button.outlined{border:1px solid #aab4a3;background:transparent}.button.text{background:transparent;padding:7px 10px;white-space:normal}.button.compact{padding:7px 13px;min-height:44px;font-size:13px}.button.full{width:100%}.icon-button{width:44px;height:44px;min-width:44px;padding:10px;border-radius:50%;color:var(--muted);background:transparent}.icon-button:hover{background:#edf0e7}.button.danger,.icon-button.danger{color:var(--danger);background:transparent}.button.destructive{background:var(--danger);color:#fff}main{padding:28px 32px}.page-heading{display:flex;justify-content:space-between;align-items:center;margin:0 0 22px}.eyebrow{font-size:10px;font-weight:650;letter-spacing:.13em;color:var(--muted);margin-bottom:5px}.subtitle{font-size:13px;color:var(--muted);margin-top:5px;letter-spacing:.025em}.inventory-summary{display:flex;align-items:center;gap:26px;padding:13px 0 19px;border-bottom:1px solid var(--line);font-size:13px;color:var(--muted)}.inventory-summary span{display:flex;align-items:center;gap:7px}.inventory-summary strong{font-size:18px;color:var(--green-dark);font-weight:600}.dot{width:7px;height:7px;background:var(--green);border-radius:50%}.list-section{margin-top:27px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.section-heading h2{display:flex;align-items:center;gap:10px}.section-heading svg{color:var(--green)}.count{font-size:12px;font-weight:500;padding:2px 8px;background:#e9ede3;color:var(--green-dark);border-radius:8px;vertical-align:middle}.section-caption{font-size:11px;color:var(--muted)}.tea-list{border-top:1px solid var(--line);background:#fffefa}.tea-row{display:flex;align-items:center;gap:13px;padding:15px 8px;border-bottom:1px solid var(--line);min-width:0}.shop-icon{width:39px;height:39px;min-width:39px;display:grid;place-items:center;background:#e5eadf;border-radius:12px;font-size:14px;font-weight:600;color:#26362c}.tea-info{flex:1;min-width:0}.tea-info h3,.detail-title h3{overflow-wrap:anywhere}.tea-info .eyebrow{font-size:10px;margin-bottom:1px;letter-spacing:.04em}.meta{font-size:12px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}.remaining{margin-left:12px;font-weight:600;color:var(--green-dark);white-space:nowrap}.origin{border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:10px;background:#fffefa}.origin summary{display:flex;gap:7px;align-items:center;min-height:49px;padding:9px 14px;cursor:pointer;background:#f0f2e9;font-size:14px;font-weight:600;list-style:none}.origin summary::-webkit-details-marker{display:none}.origin[open] summary>svg{transform:rotate(90deg)}.origin-count{font-size:11px;font-weight:400;margin-left:auto;color:var(--muted)}.origin .tea-row{padding:12px 10px}.origin .tea-row:last-child{border-bottom:0}.origin .tea-list{border-top:1px solid var(--line)}.bottom-note{text-align:center;font-size:11px;color:var(--muted);margin:32px 0 0;letter-spacing:.03em}.empty{padding:26px 12px;text-align:center;background:#f3f4ec;border-radius:12px;font-size:13px;color:var(--muted)}.empty svg{color:#7c8c72;margin-bottom:8px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:center;gap:64px;background:#f4f5edee;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-top:1px solid var(--line);padding:9px 16px calc(9px + env(safe-area-inset-bottom));z-index:10}.bottom-nav button{flex-direction:column;gap:3px;min-width:100px;font-size:11px;color:var(--muted);background:transparent;padding:0 12px;min-height:57px}.bottom-nav button span{width:65px;border-radius:20px;display:flex;justify-content:center;padding:4px}.bottom-nav button[aria-current=page]{color:var(--green-dark);font-weight:650}.bottom-nav button[aria-current=page] span{background:#dfe8d5}.data-tabs{display:flex;border-bottom:1px solid var(--line);margin-bottom:25px}.data-tabs button{flex:1;max-width:220px;min-height:48px;background:transparent;color:var(--muted);font-size:14px;border-bottom:3px solid transparent}.data-tabs button[aria-selected=true]{color:var(--green-dark);border-bottom-color:var(--green);font-weight:600}.history-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.history-toolbar h2{font-size:16px}.history-toolbar select{font-size:12px;min-height:44px;max-width:220px}.coming-soon{display:flex;align-items:center;flex-direction:column;text-align:center;padding:48px 10px;gap:17px;color:var(--green)}.coming-soon .pill{font-size:11px;background:var(--soft);padding:3px 12px;border-radius:15px}.coming-soon h2{font-size:18px}.coming-soon p{font-size:14px;color:var(--muted)}.notice{font-size:13px;border-radius:8px;padding:12px 14px;margin-bottom:14px;display:flex;align-items:center;gap:8px}.notice.error{background:#fff0e9;color:#8e3529}.notice.warning{background:#f5ead3;color:#6d4f1b}.notice .button{margin-left:auto;flex-shrink:0}.save-status{display:flex;gap:5px;align-items:center;color:var(--green);font-size:12px;margin:7px 0 12px}.loading{padding:45px 0;text-align:center;color:var(--muted);font-size:14px}dialog{border:1px solid var(--line);border-radius:22px;padding:24px;max-width:540px;width:calc(100% - 28px);max-height:calc(100dvh - 36px);background:#faf9f5;color:inherit;box-shadow:0 20px 90px #15271930;overflow:auto}dialog::backdrop{background:#17251d70;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.dialog-heading h2{font-size:21px}.form-stack{display:flex;flex-direction:column;gap:17px}.form-stack fieldset{display:flex;flex-direction:column;gap:17px;margin:0;padding:0;border:0;min-width:0}.form-stack label{display:block;font-size:13px;font-weight:600}.form-stack legend{font-size:13px;font-weight:600;padding:0;margin-bottom:10px}.required{font-size:10px;color:#846133;font-weight:500;margin-left:5px}.optional{font-size:10px;color:var(--muted);font-weight:400;margin-left:5px}input,select,textarea{display:block;width:100%;min-height:46px;border:1px solid #c8cebf;background:#fffefa;border-radius:9px;padding:10px 11px;color:#26362c;font-weight:400;font-size:16px;margin-top:6px}textarea{resize:vertical;line-height:1.7}input::placeholder,textarea::placeholder{font-size:13px;color:#798172}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field-grid>*{min-width:0}.segmented{display:flex;border:1px solid #aeb9a4;border-radius:24px;overflow:hidden}.segmented label{display:flex;align-items:center;justify-content:center;gap:7px;flex:1;padding:10px 8px;min-height:45px;cursor:pointer;font-size:13px;font-weight:400}.segmented label.selected{background:#e0e8d6;color:var(--green-dark);font-weight:600}.segmented input{width:16px;height:16px;min-height:0;margin:0;accent-color:var(--green)}.form-hint{font-size:11px;color:var(--muted);font-weight:400;line-height:1.8}.form-hint svg{vertical-align:middle}.detail-title{display:flex;gap:12px;align-items:center}.detail-title>div{min-width:0}.facts{font-size:13px;padding:16px 0;margin:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.facts>div{display:flex;justify-content:space-between;gap:10px;padding:3px 0}.facts dt{color:var(--muted)}.facts dd{margin:0}.detail-subheading{margin:25px 0 10px}.bag-detail{border-top:1px solid var(--line);padding:10px 0}.bag-heading{display:flex;justify-content:space-between;align-items:center}.status-tag{font-size:11px;font-weight:500;margin-left:8px;background:#e5eadf;border-radius:6px;padding:3px 7px;color:var(--green-dark)}.status-tag.finished{background:#eee8db;color:#745f40}.bag-note{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0;color:#4f5b4d}.bag-actions{display:flex;flex-wrap:wrap;gap:4px;align-items:center}.bag-actions .button{font-size:12px}.delete-group{margin-top:16px}.confirm-content p{font-size:14px;line-height:1.9;overflow-wrap:anywhere}.confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.auth-layout{min-height:100dvh;display:grid;place-items:center;padding:30px 22px;background:radial-gradient(ellipse at 10% 0%,#e7ecdc,transparent 65%),#faf9f5}.auth-panel{width:100%;max-width:365px;text-align:center}.auth-mark{margin:0 auto 15px;width:77px;height:77px;border-radius:25px;background:#e1e8d7;display:grid;place-items:center;color:var(--green)}.auth-brand{font-family:Georgia,serif;font-size:39px;letter-spacing:.025em;color:var(--green-dark);margin-bottom:3px}.auth-panel h1{font-size:16px;letter-spacing:.15em;font-weight:500}.auth-panel .subtitle{margin-top:11px}.login-form{margin-top:32px;text-align:left}.login-form .form-hint{text-align:center;margin-top:5px}.setup-message{text-align:left;background:#fffefa;border:1px solid var(--line);padding:21px;border-radius:14px;margin-top:30px}.setup-message h2{font-size:17px;margin-bottom:12px}.setup-message p{font-size:13px;margin-top:12px}.version{font-size:10px;color:var(--muted);margin-top:40px}.pwa-update{position:fixed;bottom:90px;left:50%;transform:translate(-50%);z-index:20;white-space:normal;max-width:90%;box-shadow:0 3px 20px #0002}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:600px){.app-header{height:82px;margin:0 18px;gap:6px}.brand{font-size:23px;gap:8px}.brand-mark{height:39px;width:39px;border-radius:13px}.brand small{font-size:10px}.header-actions{gap:0}.header-actions .button{padding:8px 12px;font-size:12px}.signout{width:44px;min-width:44px;padding:10px}main{padding:22px 18px}h1{font-size:25px}.page-heading{margin-bottom:13px}.tea-row{gap:9px;padding:13px 0}.tea-row>.icon-button{width:44px;min-width:44px;padding:10px}.tea-row .button.compact{font-size:11px;padding:7px 9px;gap:3px}.tea-row .button svg{display:none}.tea-info h3{font-size:14px}.shop-icon{width:33px;height:36px;min-width:33px;border-radius:10px;font-size:12px}.meta{font-size:11px;line-height:1.7}.remaining{margin-left:8px;display:inline-block}.section-heading h2{font-size:17px;gap:8px}.section-caption{font-size:10px}.origin .tea-row{gap:7px;padding:12px 8px}.origin summary{padding:8px 11px}.history-toolbar{align-items:flex-start;flex-direction:column;gap:8px}.history-toolbar select{margin:0}.bottom-nav{gap:52px}.notice{font-size:12px;padding:10px;flex-wrap:wrap}dialog{padding:20px 18px}.dialog-heading{margin-bottom:17px}.coming-soon h2{font-size:16px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}@media(max-width:380px){.app-header{margin:0 12px}.brand{font-size:21px;gap:6px}.brand-mark{width:36px;height:36px}.header-actions .button{padding:8px 10px}}
