:root{font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,PingFang SC,Microsoft YaHei,sans-serif;color:#25332d;background:#f6f3ec;font-synthesis:none;text-rendering:optimizeLegibility;--paper: #f6f3ec;--card: #fffefa;--ink: #25332d;--muted: #7b817a;--line: #e4e1d9;--green: #285c4a;--green-dark: #1d493a;--green-soft: #e7eee8;--orange: #a96542;--shadow: 0 12px 40px rgba(42, 52, 45, .08)}*{box-sizing:border-box}html{min-height:100%;background:var(--paper)}body{margin:0;min-width:320px;min-height:100vh;min-height:100dvh}button,input,textarea,select{font:inherit}button{color:inherit;-webkit-tap-highlight-color:transparent}button,label,select{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}input,textarea,select{color:var(--ink)}input::placeholder,textarea::placeholder{color:#a2a59f}img{display:block;max-width:100%}.page-shell{width:min(100%,760px);margin:0 auto;padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}.app{min-height:100vh;min-height:100dvh;padding-bottom:calc(120px + env(safe-area-inset-bottom))}.app-bar{height:calc(64px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top);display:flex;align-items:center;justify-content:space-between}.app-wordmark{display:flex;align-items:center;gap:9px;font-size:16px;font-weight:700;letter-spacing:.08em}.wordmark-dot{width:10px;height:10px;background:var(--green);border-radius:50% 50% 50% 12%;transform:rotate(-25deg)}.icon-button{width:42px;height:42px;border:0;border-radius:50%;background:transparent;display:inline-flex;align-items:center;justify-content:center}.icon-button:active{background:#285c4a14}.home-heading{padding:30px 2px 24px}.eyebrow{display:block;color:var(--green);font-size:11px;line-height:1.4;font-weight:750;letter-spacing:.17em;text-transform:uppercase;margin-bottom:9px}h1,h2,h3,p{margin-top:0}.home-heading h1{font-family:Songti SC,STSong,"Noto Serif CJK SC",serif;font-size:clamp(28px,7.5vw,38px);font-weight:650;line-height:1.25;letter-spacing:-.03em;margin-bottom:12px}.home-heading p{color:var(--muted);font-size:13px;margin:0}.search-box{height:52px;padding:0 16px;background:var(--card);border:1px solid var(--line);border-radius:15px;display:flex;align-items:center;gap:11px;color:var(--muted);box-shadow:0 2px 8px #23332d06}.search-box:focus-within{border-color:#91aa9d;box-shadow:0 0 0 3px #285c4a12}.search-box input{flex:1;min-width:0;border:0;outline:0;background:transparent;font-size:14px}.search-box button{border:0;background:#efeee9;color:var(--muted);width:26px;height:26px;display:grid;place-items:center;border-radius:50%;padding:0}.type-picker{display:flex;padding:4px;margin-top:18px;border-radius:14px;background:#eae8e1;gap:3px}.type-picker button{flex:1;height:43px;border:0;border-radius:11px;background:transparent;color:#727970;display:flex;align-items:center;justify-content:center;gap:7px;font-size:14px;font-weight:600}.type-picker button.active{color:var(--green);background:var(--card);box-shadow:0 2px 7px #28312b14}.type-picker.small{margin-top:0}.type-picker.small button{height:38px;font-size:13px}.filter-row{display:flex;align-items:center;gap:8px;margin:17px 0 12px}.filter-row select{max-width:145px;height:33px;padding:0 26px 0 11px;border:1px solid var(--line);border-radius:9px;background:transparent;font-size:12px;outline:none}.result-count{margin-left:auto;color:var(--muted);font-size:12px}.item-list{display:grid;gap:10px}.item-card{position:relative;width:100%;min-height:112px;padding:13px;display:flex;gap:14px;text-align:left;border:1px solid var(--line);border-radius:17px;background:var(--card);box-shadow:0 2px 8px #23332d05;overflow:hidden}.item-card:active{transform:scale(.992);background:#fbfaf6}.item-cover{flex:0 0 84px;width:84px;height:84px;border-radius:12px;display:grid;place-items:center;overflow:hidden}.item-cover.pen,.detail-type-icon.pen,.empty-icon.pen{background:#e6ece7;color:#426452}.item-cover.ink,.detail-type-icon.ink,.empty-icon.ink{background:#e8e5ef;color:#625475}.item-cover.paper,.detail-type-icon.paper,.empty-icon.paper{background:#f1e7dc;color:#9a6c46}.item-cover img{width:100%;height:100%;object-fit:cover}.item-card-body{display:flex;flex:1;min-width:0;flex-direction:column;padding:2px 0}.item-brand{color:var(--muted);font-size:11px;letter-spacing:.05em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item-card-body strong{margin-top:4px;font-size:16px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item-summary{color:#69736c;font-size:12px;margin-top:7px}.item-meta{margin-top:auto;padding-top:5px;color:#999c95;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item-card-side{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end;padding:2px 0}.type-dot{color:#a3a59e;font-size:10px}.status-pill{display:inline-flex;width:max-content;align-items:center;border-radius:99px;padding:4px 8px;background:var(--green-soft);color:var(--green);font-size:10px;font-weight:650;white-space:nowrap}.status-pill.wishlist{background:#eee8f2;color:#705a80}.status-pill.used_up,.status-pill.sold,.status-pill.gifted,.status-pill.lost{background:#efeee9;color:#777b75}.empty-state{padding:60px 24px;text-align:center}.empty-icon{width:68px;height:68px;margin:0 auto 20px;border-radius:22px;display:grid;place-items:center;transform:rotate(-4deg)}.empty-state h2{font-size:17px;margin-bottom:8px}.empty-state p{color:var(--muted);font-size:13px;line-height:1.7}.secondary-button{border:1px solid #b9c9be;color:var(--green);background:transparent;border-radius:11px;padding:10px 16px;display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:650}.floating-add{position:fixed;z-index:10;bottom:calc(25px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%);height:55px;min-width:116px;padding:0 23px;border:0;border-radius:99px;background:var(--green);color:#fff;display:flex;align-items:center;justify-content:center;gap:8px;font-size:15px;font-weight:650;box-shadow:0 9px 25px #1d493a45}.floating-add:active{transform:translate(-50%) scale(.96);background:var(--green-dark)}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:#151f1a5c;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);display:flex;align-items:flex-end;justify-content:center;animation:fade-in .16s ease-out}.sheet{width:min(100%,620px);max-height:92dvh;overflow-y:auto;padding:10px 22px calc(24px + env(safe-area-inset-bottom));border-radius:25px 25px 0 0;background:var(--paper);box-shadow:0 -20px 70px #161f1a2e;animation:sheet-up .22s ease-out}.sheet-handle{width:36px;height:4px;border-radius:4px;background:#d2d2cb;margin:0 auto 12px}.sheet-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.sheet-header h2{font-size:23px;margin:0;letter-spacing:-.02em}.sheet-header .eyebrow{margin-bottom:4px}.sheet .type-picker{margin-bottom:20px}.form-grid{display:grid;gap:13px}.form-grid.two-columns{grid-template-columns:1fr 1fr}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:14px}.field>span{font-size:12px;font-weight:650;color:#657068}.field small{font-weight:400;color:var(--muted)}.field input,.field textarea,.field select{width:100%;min-width:0;border:1px solid var(--line);border-radius:11px;background:var(--card);padding:12px 13px;outline:0;font-size:14px}.field input,.field select{height:46px}.field textarea{resize:vertical;line-height:1.6}.field input:focus,.field textarea:focus,.field select:focus{border-color:#8da99a;box-shadow:0 0 0 3px #285c4a0f}.form-hint{color:var(--muted);font-size:11px;line-height:1.6;margin:0 0 16px}.primary-button{min-height:49px;border:0;border-radius:13px;background:var(--green);color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:14px;font-weight:650}.primary-button:active{background:var(--green-dark)}.full-width{width:100%}.duplicate-box{border:1px solid #e2d5bc;background:#f4eee2;padding:12px 14px;border-radius:12px;margin-bottom:15px}.duplicate-box>strong{display:block;font-size:12px;color:#826438;margin-bottom:6px}.duplicate-box small{display:block;color:#948369;font-size:10px;margin-top:7px}.duplicate-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 0;font-size:12px}.text-button{padding:5px 0;border:0;background:transparent;color:var(--green);display:inline-flex;align-items:center;justify-content:center;gap:5px;font-size:13px;font-weight:650}.detail-page,.settings-page{min-height:100dvh;padding-bottom:calc(45px + env(safe-area-inset-bottom))}.detail-nav{height:calc(62px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top);display:grid;grid-template-columns:70px 1fr 70px;align-items:center}.detail-nav>span{text-align:center;font-size:13px;font-weight:650}.detail-nav>:last-child{justify-self:end}.detail-nav .icon-button{margin-left:-10px}.detail-hero{text-align:center;padding:24px 0 27px}.detail-type-icon{display:grid;place-items:center;width:62px;height:62px;border-radius:20px;margin:0 auto 18px}.detail-hero .eyebrow{margin-bottom:5px}.detail-hero h1{font-family:Songti SC,STSong,serif;font-size:30px;line-height:1.3;margin-bottom:12px}.detail-hero .status-pill{margin:0 auto;font-size:11px}.detail-section{padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--card);margin-bottom:12px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.section-heading h3{font-size:14px;margin:0}.section-heading>span{color:var(--muted);font-size:11px}.facts{margin:0}.facts>div{display:grid;grid-template-columns:96px 1fr;gap:14px;padding:10px 0;border-bottom:1px solid #efede7;font-size:13px}.facts>div:last-child{border:0;padding-bottom:0}.facts dt{color:var(--muted)}.facts dd{margin:0;text-align:right;overflow-wrap:anywhere}.inline-link{padding:0;border:0;background:transparent;color:var(--green);text-decoration:underline;text-underline-offset:3px}.remaining-card .section-heading strong{font-size:18px;color:var(--green)}.remaining-options{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.remaining-options button{height:38px;padding:0 4px;border:1px solid var(--line);border-radius:9px;background:transparent;color:var(--muted);font-size:12px}.remaining-options button.active{color:var(--green);background:var(--green-soft);border-color:#a9bcae;font-weight:650}.tag-list{display:flex;gap:7px;flex-wrap:wrap}.tag{padding:6px 10px;border-radius:8px;background:var(--green-soft);color:var(--green);font-size:12px}.notes{white-space:pre-wrap;color:#5d6861;font-size:13px;line-height:1.8;margin:0}.detail-date{text-align:center;color:#999d96;font-size:11px;margin:22px 0}.danger-text-button{margin:0 auto;display:flex;align-items:center;gap:5px;border:0;background:transparent;color:#a2645d;padding:10px;font-size:12px}.photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.photo-tile,.photo-add{position:relative;aspect-ratio:1;border-radius:11px;overflow:hidden}.photo-tile{background:#eeeae1}.photo-tile img{width:100%;height:100%;object-fit:cover}.photo-actions{position:absolute;inset:auto 5px 5px auto;display:flex;gap:5px}.photo-actions button{width:28px;height:28px;padding:0;display:grid;place-items:center;border:0;border-radius:50%;background:#1d2620b8;color:#fff;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.photo-actions button.cover-active{background:var(--green)}.photo-add{border:1px dashed #c8ccc4;background:#f7f6f1;color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font-size:11px;cursor:pointer}.photo-add input{display:none}.edit-form{padding-top:8px}.edit-form .detail-section .field:last-child{margin-bottom:0}.quantity-row{grid-template-columns:2fr 1fr}.settings-intro{padding:26px 2px 22px}.settings-intro h1{font-family:Songti SC,STSong,serif;font-size:30px;margin-bottom:10px}.settings-intro p{color:var(--muted);font-size:13px;line-height:1.7;margin:0}.storage-stats{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-bottom:18px}.storage-stats>div{display:grid;grid-template-columns:auto 1fr;column-gap:10px;padding:16px;background:var(--green-soft);border-radius:15px;color:var(--green)}.storage-stats svg{grid-row:span 2;align-self:center}.storage-stats strong{font-size:21px;line-height:1.1}.storage-stats span{font-size:10px;margin-top:4px;color:#6d8175}.settings-group{border:1px solid var(--line);background:var(--card);border-radius:16px;overflow:hidden}.settings-row{width:100%;display:flex;align-items:center;gap:13px;text-align:left;border:0;border-bottom:1px solid var(--line);background:transparent;padding:16px}.settings-row:last-of-type{border-bottom:0}.settings-row:active{background:#f7f6f1}.settings-icon{width:39px;height:39px;flex:0 0 39px;border-radius:11px;background:var(--green-soft);color:var(--green);display:grid;place-items:center}.settings-row>span:last-child{display:flex;flex-direction:column;gap:4px}.settings-row strong{font-size:13px}.settings-row small{color:var(--muted);font-size:11px}.notice{border-radius:11px;padding:12px 14px;margin-bottom:14px;font-size:12px;line-height:1.6}.notice.success{background:#e5eee6;color:#3d684b}.notice.error{background:#f3e5e1;color:#92574f}.backup-warning{margin-top:20px;padding:16px;border:1px solid #e3d9c7;border-radius:13px;color:#7a6545;background:#f3eee4}.backup-warning strong{font-size:12px}.backup-warning p{margin:6px 0 0;font-size:11px;line-height:1.7}.working{text-align:center;color:var(--green);font-size:12px}.version-label{text-align:center;color:#a0a39d;font-size:10px;margin-top:28px}.nav-spacer{width:42px}.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}.app-actions{display:flex;align-items:center;gap:5px}.sync-status{min-height:34px;padding:0 9px;border:0;border-radius:9px;background:transparent;color:#73847a;display:inline-flex;align-items:center;gap:5px;font-size:10px;white-space:nowrap}.sync-status.error,.sync-status.disabled{color:#a36a58}.sync-status.offline{color:#8b7b62}.sync-panel{padding:17px;border:1px solid var(--line);border-radius:15px;background:var(--card);margin-bottom:16px}.usage-label{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:11px}.usage-label strong{color:var(--ink);font-size:11px}.usage-track{height:7px;margin:10px 0;background:#e9e8e2;border-radius:10px;overflow:hidden}.usage-track>span{display:block;height:100%;max-width:100%;border-radius:inherit;background:var(--green);transition:width .25s}.usage-track>span.warning{background:#c28b45}.usage-track>span.danger{background:#b65f50}.usage-note,.usage-warning{margin:0 0 13px;color:var(--muted);font-size:10px;line-height:1.6}.usage-warning{color:#a26545}.sync-choice{padding-top:26px}.sync-choice h2{margin-bottom:10px}.sync-choice>p{color:var(--muted);font-size:13px;line-height:1.7}.choice-button{width:100%;display:flex;align-items:center;gap:13px;text-align:left;padding:15px;margin-top:10px;border:1px solid var(--line);border-radius:13px;background:var(--card);color:var(--green)}.choice-button>span{display:flex;flex-direction:column;gap:4px}.choice-button strong{font-size:13px}.choice-button small{color:var(--muted);font-size:11px}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes sheet-up{0%{transform:translateY(25px);opacity:.5}to{transform:translateY(0);opacity:1}}@media(min-width:700px){.page-shell{padding-left:28px;padding-right:28px}.home-heading{padding-top:42px}.item-list{grid-template-columns:1fr 1fr}.item-card-side{display:none}.empty-state{grid-column:1 / -1}.sheet-backdrop{align-items:center;padding:30px}.sheet{border-radius:24px;padding-bottom:25px}.floating-add{left:auto;right:max(30px,calc((100vw - 760px)/2));transform:none}.floating-add:active{transform:scale(.96)}.photo-grid{grid-template-columns:repeat(4,1fr)}}@media(max-width:380px){.page-shell{padding-left:15px;padding-right:15px}.item-cover{flex-basis:72px;width:72px;height:78px}.item-card{gap:11px}.item-card-side{display:none}.form-grid.two-columns{grid-template-columns:1fr;gap:0}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
