@font-face{font-family:Jakarta;src:url(/fonts/jakarta.woff2) format("woff2");font-weight:400 800;font-display:swap}*{margin:0;box-sizing:border-box}:root{--bg: #f5f7f6;--surface: #ffffff;--surface-2: #eef2f0;--border: #e4e9e7;--border-strong: #d3dbd8;--ink: #1b2420;--muted: #5d6b64;--faint: #8c988f;--accent: #0e9b73;--accent-strong: #0b8061;--accent-tint: #e4f4ee;--accent-ink: #ffffff;--model: #3b7ff5;--warn: #d98324;--danger: #e5484d;--sh-1: 0 1px 2px rgba(27, 36, 32, .06);--sh-2: 0 2px 4px rgba(27, 36, 32, .05), 0 8px 20px rgba(27, 36, 32, .06);--sh-pop: 0 6px 16px rgba(14, 155, 115, .22);--radius: 16px;--radius-s: 12px}html,body,#root{height:100%}body{background:var(--bg);color:var(--ink);font-family:Jakarta,system-ui,-apple-system,Segoe UI,sans-serif;font-weight:500;-webkit-font-smoothing:antialiased;overscroll-behavior:none}button,input{font-family:inherit}.app{display:flex;flex-direction:column;height:100%}.content{flex:1;overflow-y:auto;display:flex;flex-direction:column}header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;background:var(--surface);border-bottom:1px solid var(--border);padding-top:calc(12px + env(safe-area-inset-top))}.brand{display:flex;align-items:center;gap:10px}.logo-mark{display:grid;place-items:center;width:32px;height:32px;background:var(--accent);color:#fff;border-radius:10px;box-shadow:var(--sh-1)}header h1{font-size:1.06rem;font-weight:700;letter-spacing:-.01em}.header-title{flex:1;min-width:0}.header-title h1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.header-title small{color:var(--faint);font-size:.72rem;font-weight:600}.header-right{display:flex;align-items:center;gap:10px}.install-btn{display:inline-flex;align-items:center;gap:6px;background:var(--accent);color:#fff;border:none;border-radius:10px;padding:8px 13px;font-size:.82rem;font-weight:700;cursor:pointer;box-shadow:var(--sh-1);transition:background .15s ease,transform .1s ease}.install-btn:active{transform:scale(.96);background:var(--accent-strong)}.icon-btn{display:grid;place-items:center;width:40px;height:40px;background:var(--surface-2);border:1px solid var(--border);color:var(--ink);border-radius:12px;cursor:pointer;transition:background .15s ease,transform .1s ease}.icon-btn:active{transform:scale(.94);background:var(--border)}.icon-btn.danger{color:var(--faint);background:transparent;border-color:transparent}.icon-btn.danger:active{color:var(--danger);background:var(--surface-2)}.count-badge{background:var(--accent);color:#fff;font-size:1.28rem;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.01em;padding:3px 15px;border-radius:999px;min-width:58px;text-align:center;box-shadow:var(--sh-pop)}.ios-hint{display:flex;align-items:center;gap:8px;background:var(--accent-tint);color:var(--accent-strong);padding:9px 15px;font-size:.84rem;font-weight:600;border-bottom:1px solid var(--border)}.ios-hint button{margin-left:auto;background:none;border:none;color:inherit;font-size:1rem;cursor:pointer}.screen{padding:16px;display:flex;flex-direction:column;gap:16px;flex:1}@keyframes rise{0%{opacity:0;transform:translateY(8px)}}.screen{animation:rise .24s cubic-bezier(.2,.7,.3,1) both}.screen-head{display:flex;align-items:baseline;justify-content:space-between}.screen-head h2{font-size:1.32rem;font-weight:800;letter-spacing:-.02em}.screen-sub{color:var(--muted);font-size:.8rem;font-weight:600;font-variant-numeric:tabular-nums}.hint{color:var(--muted);font-size:.84rem;line-height:1.5}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px;box-shadow:var(--sh-1);display:flex;flex-direction:column;gap:12px}.card h3{display:flex;align-items:center;gap:7px;font-size:.98rem;font-weight:700;letter-spacing:-.01em}.chip{display:inline-flex;align-items:center;gap:7px;padding:7px 13px;border-radius:999px;background:var(--surface);border:1px solid var(--border);font-size:.78rem;font-weight:600;color:var(--muted);cursor:default;box-shadow:var(--sh-1)}.chip.ok{color:var(--accent-strong);background:var(--accent-tint);border-color:transparent}.chip.warn{color:var(--warn)}.chip.proj,.chip.filter{cursor:pointer;transition:border-color .15s ease}.chip.sel{background:var(--accent);color:#fff;border-color:transparent}.chip .dot{width:8px;height:8px;border-radius:50%;background:var(--faint);flex:none}.chip .dot.on{background:var(--accent);box-shadow:0 0 0 3px var(--accent-tint)}.mini-spin{width:12px;height:12px;border-radius:50%;flex:none;border:2px solid var(--border-strong);border-top-color:var(--accent);animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.primary-btn{background:var(--accent);color:#fff;border:none;border-radius:var(--radius-s);padding:11px 18px;font-size:.92rem;font-weight:700;cursor:pointer;box-shadow:var(--sh-1);transition:background .15s ease,transform .1s ease}.primary-btn:active{transform:scale(.97);background:var(--accent-strong)}.primary-btn:disabled{opacity:.4}.ghost-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--surface);border:1px solid var(--border-strong);color:var(--ink);border-radius:var(--radius-s);padding:11px 15px;font-size:.88rem;font-weight:600;cursor:pointer;box-shadow:var(--sh-1);transition:background .15s ease,transform .1s ease}.ghost-btn.wide{width:100%}.ghost-btn:active{transform:scale(.98);background:var(--surface-2)}.link-btn{background:none;border:none;color:var(--accent-strong);font-size:.84rem;font-weight:700;cursor:pointer;padding:4px}.learn-strip{display:flex;flex-wrap:wrap;gap:8px}.hero{display:flex;flex-direction:column;gap:12px;margin:auto 0;padding:12px 0}.capture-cta{display:flex;flex-direction:column;align-items:center;gap:7px;padding:34px 20px;background:linear-gradient(160deg,#12b083 0%,var(--accent) 55%,var(--accent-strong) 100%);color:#fff;border-radius:20px;cursor:pointer;box-shadow:var(--sh-pop);transition:transform .12s ease,box-shadow .12s ease}.capture-cta:active{transform:scale(.98);box-shadow:0 3px 10px #0e9b7333}.capture-cta b{font-size:1.3rem;font-weight:800;letter-spacing:-.01em}.capture-cta span{font-size:.84rem;font-weight:500;opacity:.9}.capture-cta.busy{opacity:.75;pointer-events:none}.recent{display:flex;flex-direction:column;gap:10px}.recent-head{display:flex;align-items:center;justify-content:space-between}.recent-head h3{font-size:.94rem;font-weight:700}.recent-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.recent-card{position:relative;border:1px solid var(--border);border-radius:var(--radius-s);overflow:hidden;padding:0;background:var(--surface);cursor:pointer;aspect-ratio:1;box-shadow:var(--sh-1);transition:transform .12s ease}.recent-card:active{transform:scale(.97)}.recent-card img{width:100%;height:100%;object-fit:cover;display:block}.recent-count{position:absolute;right:6px;bottom:6px;background:#fffffff0;color:var(--ink);font-size:.78rem;font-weight:800;font-variant-numeric:tabular-nums;padding:2px 9px;border-radius:999px;box-shadow:var(--sh-1)}.result-strip{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;background:var(--surface);border-bottom:1px solid var(--border);font-size:.78rem}.seg{display:inline-flex;background:var(--surface-2);border:1px solid var(--border);border-radius:999px;padding:3px}.seg button{display:inline-flex;align-items:center;gap:5px;background:none;border:none;color:var(--muted);padding:6px 12px;border-radius:999px;font-size:.77rem;font-weight:600;cursor:pointer;font-variant-numeric:tabular-nums;transition:background .15s ease}.seg button b{font-weight:800}.seg button.sel{background:var(--surface);color:var(--ink);box-shadow:var(--sh-1)}.legend{color:var(--faint);font-weight:600;display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.legend em{font-style:normal;color:var(--warn)}.lg{width:9px;height:9px;border-radius:50%;display:inline-block;border:1.5px solid #fff;box-shadow:0 0 0 1px var(--border-strong)}.lg.model{background:var(--model)}.lg.user{background:var(--accent)}.editor-wrap{flex:1;position:relative;display:flex;min-height:0}.dot-size{position:absolute;top:12px;right:12px;z-index:5;display:flex;flex-direction:column;align-items:center;gap:6px;background:#fffffff0;border-radius:12px;padding:6px;box-shadow:var(--sh-2)}.dot-size button{display:grid;place-items:center;width:32px;height:32px;background:none;border:none;color:var(--ink);border-radius:9px;cursor:pointer;transition:background .15s ease}.dot-size button:active{background:var(--surface-2)}.dot-size button:disabled{opacity:.3}.dot-size-glyph{width:10px;height:10px;border-radius:50%;background:var(--accent);border:2px solid #fff;box-shadow:0 0 0 1px var(--border-strong)}.editor{flex:1;overflow:hidden;position:relative;touch-action:none;cursor:grab;background:#10201a}.editor.mode-add{cursor:crosshair}.editor.mode-remove{cursor:pointer}.stage{position:absolute;transform-origin:0 0}.stage img{display:block;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.stage .dot{position:absolute;pointer-events:none;width:var(--dot-size, 16px);height:var(--dot-size, 16px)}.stage .dot:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;border:calc(var(--dot-size, 16px) * .15) solid #fff;box-shadow:0 1px 3px #0006}.stage .dot.model:before{background:var(--model)}.stage .dot.user:before{background:var(--accent)}@keyframes dotpop{0%{transform:scale(0);opacity:0}70%{transform:scale(1.18)}to{transform:scale(1);opacity:1}}.stage.appear .dot:before{animation:dotpop .26s cubic-bezier(.3,1.3,.6,1) both;animation-delay:var(--d, 0ms)}.toolbar{display:flex;gap:6px;padding:10px;background:var(--surface);border-top:1px solid var(--border);padding-bottom:calc(10px + env(safe-area-inset-bottom))}.toolbar button,.toolbar .new-photo{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;padding:9px 2px;background:var(--surface-2);color:var(--muted);border:1px solid transparent;border-radius:var(--radius-s);font-size:.68rem;font-weight:600;text-align:center;cursor:pointer;transition:background .15s ease,color .15s ease,transform .1s ease}.toolbar button:active,.toolbar .new-photo:active{transform:scale(.95)}.toolbar button:disabled{opacity:.4}.toolbar button.active{background:var(--accent-tint);color:var(--accent-strong)}.toolbar button.save{background:var(--accent);color:#fff;box-shadow:var(--sh-1)}.bottomnav{display:flex;background:var(--surface);border-top:1px solid var(--border);padding-bottom:env(safe-area-inset-bottom)}.bottomnav button{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;padding:10px 0 8px;background:none;border:none;color:var(--faint);font-size:.68rem;font-weight:600;cursor:pointer;transition:color .15s ease}.bottomnav button.active{color:var(--accent-strong)}.filter-row{display:flex;flex-wrap:wrap;gap:8px}.history-list{list-style:none;display:flex;flex-direction:column;gap:10px}.history-list li{display:flex;align-items:center;gap:4px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--sh-1);padding:10px}.history-item{flex:1;display:flex;align-items:center;gap:13px;min-width:0;background:none;border:none;padding:0;text-align:left;cursor:pointer;color:inherit}.history-item img{width:58px;height:58px;border-radius:12px;object-fit:cover;flex:none;border:1px solid var(--border)}.history-meta{display:flex;flex-direction:column;gap:2px;min-width:0}.history-top{display:flex;align-items:baseline;gap:8px;min-width:0}.history-count{font-size:1.12rem;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.01em;flex:none}.history-project{color:var(--ink);font-size:.86rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-sub{color:var(--muted);font-size:.74rem;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-badge{color:var(--faint);font-size:.72rem;font-weight:600}.history-badge.ok{color:var(--accent-strong)}.empty-state{align-items:center;justify-content:center;text-align:center;gap:12px}.empty-state h2{font-size:1.14rem;font-weight:800}.empty-state p{color:var(--muted);font-size:.88rem;max-width:270px;line-height:1.55}.empty-dots{display:flex;gap:8px}.empty-dots i{width:12px;height:12px;border-radius:50%;background:var(--surface);border:1px solid var(--border-strong)}.empty-dots i:nth-child(2){background:var(--accent);border-color:transparent}.empty-dots i:nth-child(4){background:var(--model);border-color:transparent}.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--sh-1);padding:14px;display:flex;flex-direction:column;gap:2px}.stat-card b{font-size:1.5rem;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.02em}.stat-card span{color:var(--muted);font-size:.74rem;font-weight:500}.trend{width:100%;height:auto}.trend .grid{stroke:var(--border);stroke-width:1}.trend .grid-label{fill:var(--faint);font-size:7px;font-weight:600}.trend .area{fill:#0e9b731a}.trend .line{fill:none;stroke:var(--accent);stroke-width:2.5;stroke-linejoin:round}.trend .pt{fill:var(--accent)}.trend .pt.last{fill:var(--accent);stroke:#fff;stroke-width:2.5}.proj-table{width:100%;border-collapse:collapse;font-size:.85rem}.proj-table th{text-align:left;color:var(--faint);font-weight:600;font-size:.72rem;padding:5px 6px;border-bottom:1px solid var(--border)}.proj-table td{padding:8px 6px;border-bottom:1px solid var(--surface-2);font-weight:600;font-variant-numeric:tabular-nums}.proj-table th:not(:first-child),.proj-table td:not(:first-child){text-align:right}.proj-table tr:last-child td{border-bottom:none}.scan-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:#1b242080;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;animation:rise .15s ease-out both}.scan-overlay p{color:#fff;font-size:.96rem;font-weight:600}.scan-box{position:relative;width:116px;height:116px;border-radius:22px;background:var(--surface);overflow:hidden;box-shadow:0 12px 32px #00000047}.scan-line{position:absolute;left:10%;right:10%;height:2px;top:18px;background:var(--accent);border-radius:2px;box-shadow:0 0 12px 1px #0e9b73b3;will-change:transform;animation:scan 1.15s ease-in-out infinite alternate}@keyframes scan{0%{transform:translateY(0)}to{transform:translateY(78px)}}.scan-dot{position:absolute;width:9px;height:9px;border-radius:50%;background:var(--accent);opacity:.25;will-change:transform,opacity;animation:lightup 2s ease-in-out infinite}.scan-dot.d1{left:22%;top:28%}.scan-dot.d2{left:62%;top:22%;animation-delay:.28s}.scan-dot.d3{left:42%;top:48%;animation-delay:.56s}.scan-dot.d4{left:70%;top:62%;animation-delay:.84s}.scan-dot.d5{left:26%;top:70%;animation-delay:1.12s}@keyframes lightup{50%{opacity:1;transform:scale(1.3)}}.toast{position:fixed;bottom:88px;left:50%;transform:translate(-50%);background:var(--ink);color:#fff;padding:11px 18px;border-radius:12px;font-size:.88rem;font-weight:500;box-shadow:0 8px 24px #1b24204d;max-width:92vw;text-align:center;z-index:60;animation:rise .18s ease-out both}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;background:#1b242066;display:flex;align-items:flex-end}.sheet{width:100%;background:var(--surface);border-radius:22px 22px 0 0;padding:20px 16px calc(20px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px;box-shadow:0 -8px 32px #1b242029;animation:sheetup .24s cubic-bezier(.2,.7,.3,1) both}@keyframes sheetup{0%{transform:translateY(40px);opacity:0}}.sheet h3{font-size:1.05rem;font-weight:800}.sheet-list{display:flex;flex-direction:column;gap:8px;max-height:40vh;overflow-y:auto}.sheet-list button{display:flex;align-items:center;gap:10px;background:var(--surface-2);border:1px solid transparent;color:var(--ink);border-radius:var(--radius-s);padding:12px 13px;font-size:.92rem;font-weight:600;cursor:pointer;text-align:left;transition:background .15s ease}.sheet-list button.sel{background:var(--accent-tint);color:var(--accent-strong)}.sheet-form{display:flex;gap:8px}.sheet-form input,.key-card input{flex:1;background:var(--surface);border:1px solid var(--border-strong);color:var(--ink);border-radius:var(--radius-s);padding:11px 13px;font-size:.92rem;font-weight:500;min-width:0}.sheet-form input:focus,.key-card input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-tint)}.key-screen{flex:1;display:grid;place-items:center;padding:20px}.key-card{display:flex;flex-direction:column;gap:13px;align-items:stretch;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:26px;width:min(340px,100%);box-shadow:var(--sh-2);text-align:center}.key-card .accent{color:var(--accent);margin:0 auto}.key-card h2{font-size:1.18rem;font-weight:800}.key-card p{color:var(--muted);font-size:.9rem;line-height:1.45}.key-card .field-error{color:var(--danger);font-weight:600;margin-top:-4px}.nowrap{white-space:nowrap}.gate-scroll{display:flex;overflow-y:auto}.gate-scroll>.key-card{margin:auto}.terms-card{width:min(460px,100%);text-align:left;gap:14px;padding:22px}.terms-head{display:flex;align-items:center;gap:10px}.terms-head h2{flex:1;min-width:0}.lang-seg button{min-height:40px;min-width:44px;justify-content:center;font-size:.875rem}.terms-list{display:flex;flex-direction:column;gap:9px;padding-left:1.3em;color:var(--ink);font-size:.9375rem;line-height:1.45}.terms-list li::marker{color:var(--faint);font-weight:700}.terms-card .primary-btn{margin-top:4px;min-height:46px}.notice-card{gap:16px;padding:30px 26px}.notice-card .muted{color:var(--faint);margin:0 auto}.notice-card h2{font-weight:700;line-height:1.35}.notice-card .ghost-btn{align-self:center;min-height:44px}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
