:root{color-scheme:light;--page: #f7f7f7;--device: #ffffff;--device-glow: rgba(0, 0, 0, .02);--panel: rgba(255, 255, 255, .9);--panel-solid: #ffffff;--panel-soft: #fbfbfb;--text: #000000;--muted: #666666;--faint: #999999;--line: rgba(0, 0, 0, .08);--line-strong: rgba(0, 0, 0, .15);--scrollbar: rgba(0, 0, 0, .12);--scrollbar-hover: rgba(0, 0, 0, .24);--accent: #000000;--accent-soft: rgba(0, 0, 0, .04);--accent-text: #ffffff;--success: #000000;--success-soft: rgba(0, 0, 0, .04);--danger: #000000;--shadow: 0 12px 32px rgba(0, 0, 0, .06);--glass-shadow: 0 8px 24px rgba(0, 0, 0, .04);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;color:var(--text);background:var(--page);font-synthesis:none;text-rendering:geometricPrecision;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:root[data-theme=dark]{color-scheme:dark;--page: #0a0a0a;--device: #121212;--device-glow: rgba(255, 255, 255, .02);--panel: rgba(18, 18, 18, .88);--panel-solid: #121212;--panel-soft: #1a1a1a;--text: #ffffff;--muted: #a0a0a0;--faint: #666666;--line: rgba(255, 255, 255, .1);--line-strong: rgba(255, 255, 255, .2);--scrollbar: rgba(255, 255, 255, .15);--scrollbar-hover: rgba(255, 255, 255, .3);--accent: #ffffff;--accent-soft: rgba(255, 255, 255, .08);--accent-text: #000000;--danger: #ffffff;--shadow: 0 12px 32px rgba(0, 0, 0, .6);--glass-shadow: 0 8px 24px rgba(0, 0, 0, .5)}*{box-sizing:border-box}html,body,#root{min-height:100dvh}body{min-width:320px;margin:0;overflow-x:hidden;background:radial-gradient(circle at 50% 0%,var(--device-glow),transparent 42%),var(--page)}button,input,select,textarea{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .16s ease,border-color .16s ease,color .16s ease,filter .16s ease,opacity .16s ease,transform .12s ease,box-shadow .16s ease}button:not(:disabled):active{filter:brightness(.88);transform:translateY(1px) scale(.98)}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px}button:disabled,input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;opacity:.55}.device-shell{display:grid;min-height:100dvh;place-items:center;padding:16px}.phone-frame{position:relative;display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:min(100%,430px);max-width:430px;height:min(calc(100dvh - 32px),930px);min-height:650px;overflow:hidden;border:1px solid var(--line-strong);border-radius:36px;background:var(--device);box-shadow:0 32px 84px #11182714}.phone-frame:before{position:absolute;inset:0;pointer-events:none;content:"";background:radial-gradient(circle at 50% 0%,var(--device-glow),transparent 40%)}.appbar{position:sticky;top:0;z-index:20;display:grid;grid-template-columns:44px minmax(0,1fr) auto;min-height:68px;align-items:center;gap:10px;padding:0 18px;border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--device) 88%,transparent);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.brand-icon{display:block;width:32px;height:32px;overflow:visible;flex:0 0 auto}.brand-icon-disc{fill:var(--panel-solid);stroke:var(--line-strong);stroke-width:1.25}.brand-icon-corner,.brand-icon-core,.brand-icon-spark{vector-effect:non-scaling-stroke}.brand-icon-corner{fill:none;stroke:var(--text);stroke-width:4.2;stroke-linecap:round;stroke-linejoin:round}.brand-icon-core{fill:none;stroke:var(--text);stroke-width:3.4}.brand-icon-spark{fill:none;stroke:var(--accent);stroke-width:4.4;stroke-linecap:round}.appbar-spacer{min-width:0}.app-actions{display:flex;justify-content:flex-end;gap:8px}.history-trigger{display:grid;width:38px;height:38px;place-items:center;padding:0;border:0;border-radius:14px;color:var(--text);background:transparent}.history-trigger svg{color:var(--text)}.history-trigger:hover,.history-trigger:active{color:var(--text);background:transparent;filter:none;transform:none}.icon-button,.tune-button,.drawer-close,.attach-button,.generate-button,.result-actions button{display:inline-grid;place-items:center;border:1px solid var(--line);color:var(--text);background:transparent}.icon-button{width:34px;height:34px;border:0;border-radius:999px;background:transparent}.appbar .icon-button:hover,.appbar .icon-button:active{color:var(--text);background:transparent;filter:none;transform:none}.account-trigger{display:inline-flex;height:34px;align-items:center;justify-content:center;gap:6px;padding:0 14px;border:1px solid var(--line-strong);border-radius:999px;color:var(--text);background:transparent;font-size:13px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-weight:600;white-space:nowrap;transition:all .2s cubic-bezier(.4,0,.2,1)}.account-trigger span{min-width:0;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.02em}.account-trigger:hover{background:var(--panel-soft)}.account-trigger.signed-in{border-color:var(--accent);color:var(--accent-text);background:var(--accent);box-shadow:0 4px 12px var(--device-glow)}.account-trigger.signed-in svg{color:var(--accent-text)}.main-grid{min-height:0;padding:18px 12px 0;overflow:hidden}.thread-panel{position:relative;height:100%;min-height:0;overflow-y:auto;padding-right:4px;scrollbar-color:var(--scrollbar) transparent;scrollbar-width:thin;-webkit-overflow-scrolling:touch}.thread-panel::-webkit-scrollbar,.composer::-webkit-scrollbar{width:4px}.thread-panel::-webkit-scrollbar-thumb,.composer::-webkit-scrollbar-thumb{border-radius:999px;background:var(--scrollbar)}.thread-panel::-webkit-scrollbar-track,.composer::-webkit-scrollbar-track{background:transparent}.message-list{display:grid;align-content:start;gap:24px;padding:0 8px 28px}.empty-thread{display:grid;min-height:100%;place-items:center;align-content:center;gap:10px;padding:34px;color:var(--muted);text-align:center}.empty-thread strong{color:var(--text);font-size:18px;font-weight:800}.empty-thread span{font-size:13px;line-height:1.6}.empty-thread code{max-width:100%;overflow:hidden;padding:8px 11px;border:1px solid var(--line);border-radius:12px;color:var(--muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap;background:var(--panel)}.message-card{display:grid;gap:8px;min-width:0;animation:slide-in-left .4s cubic-bezier(.16,1,.3,1) backwards}@keyframes slide-in-left{0%{opacity:0;transform:translate(-20px) scale(.98)}to{opacity:1;transform:translate(0) scale(1)}}.message-head{display:flex;align-items:center;justify-content:space-between;min-height:24px;color:var(--muted);font-size:13px}.message-author{display:inline-flex;align-items:center;gap:8px}.message-author strong{color:var(--faint);font-size:13px;font-weight:500}.user-bubble{position:relative;background:var(--panel);border:1px solid var(--line-strong);border-radius:14px;padding:16px}.user-bubble p{margin:0;color:var(--text);font-size:15px;line-height:1.6;white-space:pre-wrap;word-break:break-word}.message-reference-grid{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;padding-right:26px}.message-reference-thumb{display:block;width:64px;height:64px;overflow:hidden;border:1px solid var(--line);border-radius:13px;background:#7f848c1a}.message-reference-thumb img{display:block;width:100%;height:100%;object-fit:cover}.user-bubble .edit-btn{position:absolute;right:12px;bottom:12px;background:transparent;border:none;color:var(--muted);padding:4px;cursor:pointer}.user-bubble .edit-btn:hover,.user-bubble .edit-btn:active{color:var(--text);background:transparent;filter:none;transform:none}.history-trigger:hover,.account-trigger:hover,.icon-button:hover,.drawer-close:hover{color:var(--text);background:#7f848c1f}.history-layer{position:absolute;inset:0;z-index:70;pointer-events:none}.history-layer.open{pointer-events:auto}.history-scrim{position:absolute;inset:0;padding:0;border:0;background:#0f121600;opacity:0;transition:background-color .22s ease,opacity .22s ease}.history-layer.open .history-scrim{background:#0f121647;opacity:1}.history-drawer{position:absolute;left:0;top:0;bottom:0;display:grid;width:min(330px,calc(100% - 76px));min-width:min(100%,286px);grid-template-rows:auto auto minmax(0,1fr) auto;gap:20px;padding:48px 18px 20px;border-right:1px solid var(--line-strong);border-radius:0 30px 30px 0;background:var(--panel-soft);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);box-shadow:24px 0 48px #0000001a;transform:translate(-106%);transition:transform .3s cubic-bezier(.16,1,.3,1)}.history-layer.open .history-drawer{transform:translate(0)}.history-drawer.swiping{transition:none}.history-drawer-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px}.history-drawer-head h2{margin:0;color:var(--text);font-size:20px;font-weight:700;letter-spacing:0}.history-new-button{display:inline-flex;height:38px;padding:0 16px;align-items:center;justify-content:center;gap:6px;border:none;border-radius:12px;color:var(--accent-text);background:var(--accent);font-size:14px;font-weight:600;box-shadow:0 4px 12px var(--line-strong);transition:all .2s ease}.history-new-button:hover{box-shadow:0 6px 18px var(--line-strong)}.history-search{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;min-height:42px;padding:0 14px;border:1px solid var(--line);border-radius:12px;color:var(--muted);background:#7f848c14}.history-search input{width:100%;border:0;outline:0;color:var(--text);background:transparent;font-size:13px}.history-search input::placeholder{color:var(--faint)}.history-list{min-height:0;overflow-y:auto;padding-right:4px;scrollbar-color:var(--scrollbar) transparent;scrollbar-width:thin;-webkit-overflow-scrolling:touch}.history-list::-webkit-scrollbar{width:6px}.history-list::-webkit-scrollbar-thumb{min-height:36px;border:2px solid transparent;border-radius:999px;background:var(--scrollbar);background-clip:content-box}.history-list::-webkit-scrollbar-thumb:hover{background:var(--scrollbar-hover);background-clip:content-box}.history-list::-webkit-scrollbar-track{background:transparent}.history-group{display:grid;gap:8px;margin-bottom:20px}.history-group h3{margin:0;color:var(--muted);font-size:13px;font-weight:600;padding-left:4px}.history-group-list{display:grid;gap:8px}.history-item{display:grid;min-width:0;min-height:76px;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px;border:1px solid transparent;border-radius:16px;color:var(--text);background:transparent;text-align:left;transition:background-color .2s ease,border-color .2s ease}.history-item:hover{background:#7f848c0f}.history-item.active{border-color:var(--line-strong);background:var(--panel-solid);box-shadow:0 4px 16px #0000000a}.history-thumb{position:relative;display:block;width:48px;height:48px;overflow:hidden;border-radius:12px;background:var(--line)}.history-thumb img{display:block;width:100%;height:100%;object-fit:cover}.history-thumb.image-pattern{background:radial-gradient(circle at center,var(--accent-soft),var(--line))}.history-thumb.video{background:linear-gradient(135deg,var(--line),var(--accent-soft))}.history-thumb.video i{position:absolute;left:18px;top:15px;width:0;height:0;border-top:8px solid transparent;border-bottom:8px solid transparent;border-left:14px solid var(--text);opacity:.8}.history-copy{display:grid;min-width:0;gap:4px}.history-copy strong,.history-copy small,.history-copy em{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-copy strong{color:var(--text);font-size:14px;font-weight:600}.history-copy small{color:var(--muted);font-size:12px}.history-copy em{color:var(--faint);font-size:11px;font-style:normal}.cache-pill{align-self:start;padding:4px 8px;border-radius:6px;color:var(--success);background:var(--success-soft);font-size:11px;font-weight:600;white-space:nowrap}.history-empty{display:grid;min-height:140px;place-items:center;color:var(--muted);font-size:13px}.history-drawer-foot{display:grid;gap:10px;min-width:0}.wallet-summary{display:grid;gap:10px;padding:12px;border:1px solid var(--line);border-radius:16px;background:#7f848c0a}.wallet-summary.guest{grid-template-columns:minmax(0,1fr) auto;align-items:center}.wallet-summary.guest span,.wallet-account-row span,.wallet-balance-row span{display:grid;min-width:0;gap:3px}.wallet-summary.guest strong,.wallet-account-row strong,.wallet-balance-row strong{overflow:hidden;color:var(--text);font-size:14px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.wallet-summary.guest small,.wallet-account-row small,.wallet-balance-row small{overflow:hidden;color:var(--muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.wallet-summary.guest button,.wallet-quick-actions button{display:inline-flex;min-height:34px;align-items:center;justify-content:center;gap:5px;border:1px solid var(--line);border-radius:10px;color:var(--text);background:var(--panel-solid);font-size:12px;font-weight:700}.wallet-account-row{display:grid;grid-template-columns:34px minmax(0,1fr) 18px;align-items:center;gap:9px;padding:0;border:0;color:var(--text);background:transparent;text-align:left}.wallet-avatar{display:inline-grid;width:34px;height:34px;place-items:center;border:1px solid color-mix(in srgb,var(--accent) 42%,var(--line));border-radius:12px;color:var(--accent-text);background:var(--accent);font-size:13px;font-weight:800}.wallet-avatar.large{width:42px;height:42px;border-radius:14px;font-size:16px}.wallet-balance-row{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--panel-solid)}.wallet-balance-row svg{color:var(--accent)}.wallet-quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.wallet-buy-link{display:inline-flex;min-height:32px;align-items:center;justify-content:center;gap:3px;border-radius:9px;color:var(--accent);font-size:12px;font-weight:700;text-decoration:none;background:var(--accent-soft)}.cache-summary{display:grid;grid-template-columns:minmax(0,1fr);align-items:center;gap:10px;padding:14px 16px;border:1px solid var(--line);border-radius:16px;background:#7f848c0a}.cache-summary span{display:grid;gap:4px}.cache-summary strong{color:var(--text);font-size:14px;font-weight:600}.cache-summary small{color:var(--muted);font-size:12px}.cache-summary i{display:block;height:6px;overflow:hidden;border-radius:999px;background:#7f848c2e}.cache-summary b{display:block;height:100%;border-radius:inherit;background:var(--accent)}.assistant-content-box{background:transparent;border:1px solid var(--line-strong);border-radius:14px;overflow:hidden}.task-state{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--line)}.assistant-card.queued .task-state,.assistant-card.running .task-state{border-bottom:0}.task-state span{display:inline-flex;align-items:center;gap:6px;color:var(--text);font-size:14px;font-weight:600}.task-state .progress-text{color:var(--accent);font-size:14px;font-weight:600;font-style:normal}.model-badge{display:inline-flex;align-items:center;gap:4px;font-size:13px;color:var(--muted)}.progress-track{height:4px;margin:0 16px;background:#7f848c2e;border-radius:999px;overflow:hidden}.progress-track span{display:block;height:100%;background:var(--accent);border-radius:inherit;box-shadow:none}.progress-detail{padding:12px 16px;font-size:13px;color:var(--muted)}.error-box{padding:12px 16px;color:var(--danger);font-size:13px;line-height:1.5}.result-area{padding:8px}.image-result,.video-result{overflow:hidden;border-radius:10px}.image-result{display:grid;gap:8px}.image-result.multi{grid-template-columns:repeat(2,minmax(0,1fr))}.image-preview-button{display:block;width:100%;aspect-ratio:16 / 9;overflow:hidden;padding:0;border:0;border-radius:8px;background:#111;cursor:zoom-in}.image-preview-button:hover{filter:brightness(.92)}.image-preview-button:active{transform:scale(.985)}.image-result img{display:block;width:100%;height:100%;object-fit:cover}.media-lightbox{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:18px;background:#000000d1;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);animation:lightbox-in .16s ease-out}.media-lightbox img{display:block;max-width:min(100%,1100px);max-height:calc(100dvh - 72px);border-radius:10px;object-fit:contain;touch-action:none;transform-origin:center;transition:transform .18s ease;box-shadow:0 24px 72px #0006}.lightbox-close{position:absolute;right:16px;top:16px;display:grid;width:40px;height:40px;place-items:center;border:1px solid rgba(255,255,255,.24);border-radius:999px;color:#fff;background:#0000006b}.lightbox-close:hover{background:#ffffff29}.result-media{position:relative}.result-media video{display:block;width:100%;max-height:280px;background:#000;border-radius:8px}.video-play-mark{position:absolute;left:50%;top:50%;display:grid;width:54px;height:54px;place-items:center;border:1px solid rgba(255,255,255,.85);border-radius:50%;color:#fff;background:#00000061;transform:translate(-50%,-50%);pointer-events:none}.result-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border-top:1px solid var(--line)}.result-actions button{min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;border-right:1px solid var(--line);color:var(--text);font-size:12px;background:transparent;white-space:nowrap}.result-actions button:disabled{cursor:default;opacity:1}.result-actions button.is-busy{color:var(--accent);background:var(--accent-soft);opacity:1}.result-actions button.is-success{color:var(--success);background:var(--success-soft);opacity:1}.spin-icon{animation:icon-spin .7s linear infinite}.result-actions button:last-child{border-right:0}@media(hover:hover)and (pointer:fine){.result-actions button:not(.is-busy):not(.is-success):not(:disabled):hover{background:#7f848c1a}}@media(hover:none),(pointer:coarse){.result-actions button:not(.is-busy):not(.is-success),.result-actions button:not(.is-busy):not(.is-success):hover,.result-actions button:not(.is-busy):not(.is-success):focus{background:transparent;filter:none}}.composer{z-index:30;display:flex;flex-direction:column;gap:12px;padding:16px;background:var(--panel-solid);border-top:1px solid var(--line-strong);border-radius:24px 24px 0 0}.composer-topline{display:grid;grid-template-columns:minmax(0,1fr);align-items:center;gap:0}.model-selector-group{min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px}.model-label{font-size:13px;color:var(--muted)}.model-select-button{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;width:100%;min-width:0;height:32px;padding:0 8px 0 10px;border:1px solid var(--line);border-radius:6px;color:var(--text);background:#7f848c14}.model-select-button span{overflow:hidden;font-size:13px;text-align:left;text-overflow:ellipsis;white-space:nowrap}.model-select-button svg{color:var(--muted)}.model-select-wrap{position:relative;min-width:0}.model-select-wrap.open .model-select-button{border-color:var(--accent);background:#7f848c1f}.model-select-wrap.open .model-select-button svg{transform:rotate(180deg)}.model-select-menu{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:70;display:grid;max-height:240px;gap:3px;overflow-y:auto;padding:5px;border:0;border-radius:10px;background:var(--panel-soft);box-shadow:var(--glass-shadow);scrollbar-color:var(--scrollbar) transparent;scrollbar-width:thin}.model-select-option{display:grid;grid-template-columns:minmax(0,1fr) 20px;align-items:center;min-height:48px;gap:8px;padding:7px 8px;border:0;border-radius:8px;color:var(--text);background:transparent;text-align:left}.model-select-option:hover,.model-select-option.active{color:var(--accent);background:var(--accent-soft)}.model-select-option span{display:grid;min-width:0;gap:3px}.model-select-option strong,.model-select-option small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.model-select-option strong{font-size:13px;font-weight:800}.model-select-option small{color:var(--muted);font-size:11px;font-weight:700}.select-wrap{position:relative;min-width:0}.select-wrap.custom-select{display:grid;gap:6px}.select-wrap select,.select-trigger{width:100%;min-width:0;height:32px;padding:0 24px 0 10px;appearance:none;font-size:13px;background:#7f848c14;border:1px solid var(--line);border-radius:6px;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select-trigger{display:block;text-align:left}.select-trigger span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select-wrap svg{position:absolute;right:8px;top:16px;transform:translateY(-50%);color:var(--muted);pointer-events:none}.custom-select.open svg{transform:translateY(-50%) rotate(180deg)}.select-menu{display:grid;gap:2px;overflow:hidden;padding:4px;border:0;border-radius:8px;background:var(--panel-soft);box-shadow:var(--glass-shadow)}.select-option{min-width:0;min-height:30px;padding:0 8px;border:0;border-radius:6px;color:var(--text);background:transparent;font-size:13px;text-align:left}.select-option:hover,.select-option.active{color:var(--accent-text);background:var(--accent-soft)}.segmented-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.segmented-option{display:grid;min-width:0;min-height:54px;align-content:center;justify-items:center;gap:4px;padding:7px 6px;border:1px solid var(--line);border-radius:8px;color:var(--text);background:#7f848c14;text-align:center}.segmented-option.active{border-color:var(--accent);background:var(--accent-soft);color:var(--text)}.segmented-option strong{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:0;overflow:hidden;font-size:12px;font-weight:800;line-height:1.15;text-overflow:ellipsis;white-space:nowrap}.segmented-option strong span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ratio-icon{display:block;flex:0 0 auto;width:24px;height:18px}.ratio-icon rect{fill:none;stroke:currentColor;stroke-width:2;vector-effect:non-scaling-stroke}.segmented-option span{display:flex;min-width:0;justify-content:center;gap:3px}.segmented-option em{display:inline-flex;min-width:0;max-width:100%;min-height:18px;align-items:center;padding:0 4px;border-radius:4px;color:var(--muted);background:#7f848c1f;font-size:10px;font-style:normal;font-weight:800;line-height:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.segmented-option.active em{color:var(--accent-text);background:var(--accent)}.tune-button{min-width:68px;height:32px;display:inline-grid;grid-template-columns:auto auto;align-items:center;justify-content:center;place-items:center;gap:5px;padding:0 10px;border:1px solid var(--line);border-radius:6px;background:var(--accent-soft);color:var(--accent);font-size:12px;font-weight:800}.tune-button span{line-height:1;white-space:nowrap}.tune-button.active{color:var(--accent);border-color:var(--accent);background:var(--accent-soft)}.prompt-container{display:flex;flex-direction:column;gap:8px;background:#7f848c14;border:1px solid var(--line-strong);border-radius:12px;padding:12px}.prompt-container textarea{width:100%;background:transparent;border:none;outline:none;resize:none;color:var(--text);font-size:14px;line-height:1.5}.prompt-container textarea::placeholder{color:var(--faint)}.prompt-actions{display:flex;align-items:center;justify-content:space-between}.charge-hint{display:flex;min-height:28px;align-items:center;justify-content:space-between;gap:10px;padding:0 2px;color:var(--muted);font-size:12px;font-weight:700}.charge-hint strong{color:var(--text);font-size:13px}.charge-hint.insufficient strong{color:var(--danger)}.attach-button{width:32px;height:32px;display:grid;place-items:center;border:1px solid var(--line);border-radius:8px;background:var(--panel-solid);color:var(--text)}.attach-button.active{color:var(--accent);border-color:var(--accent);background:var(--accent-soft)}.reference-image-strip{display:flex;min-width:0;flex-wrap:wrap;gap:8px}.reference-image-hint{color:var(--muted);font-size:11px;font-weight:700;line-height:1.35}.reference-image-thumb{position:relative;display:block;width:54px;height:54px;overflow:hidden;border:1px solid var(--line-strong);border-radius:12px;background:#7f848c1a}.reference-image-thumb img{display:block;width:100%;height:100%;object-fit:cover}.reference-image-thumb button{position:absolute;top:3px;right:3px;display:grid;width:18px;height:18px;place-items:center;padding:0;border:0;border-radius:999px;color:#fff;background:#111318ad}.reference-image-thumb.uploading{opacity:.82}.reference-image-thumb.uploading:after{content:"";position:absolute;inset:0;background:#11131842;pointer-events:none}.reference-image-thumb.uploading i{position:absolute;top:50%;left:50%;z-index:2;width:22px;height:22px;margin:-11px 0 0 -11px;border:2px solid var(--line-strong);border-top-color:var(--accent);border-radius:999px;animation:icon-spin .7s linear infinite}.reference-image-thumb.uploading button{z-index:3}.composer-inline-alert{min-height:20px;margin-top:2px;color:var(--danger);font-size:12px;font-weight:700;line-height:1.4}.generate-button{width:36px;height:36px;display:grid;place-items:center;border:none;border-radius:8px;background:var(--accent);color:var(--accent-text);box-shadow:0 4px 12px var(--line-strong)}.generate-button:hover{box-shadow:0 6px 18px var(--line-strong)}.tune-button:hover,.model-select-button:hover,.attach-button:hover,.file-pick:hover{background:#7f848c24}.settings-drawer{background:var(--panel-solid);border:1px solid var(--line-strong);border-radius:16px;padding:12px 16px;display:flex;flex-direction:column;gap:12px;margin-top:4px;animation:drawer-in .2s ease-out}.model-drawer{padding-bottom:14px}.drawer-handle{width:36px;height:4px;background:var(--line-strong);border-radius:999px;margin:0 auto;border:none}.drawer-head{display:flex;align-items:center;justify-content:space-between}.drawer-head strong{font-size:15px;color:var(--text)}.drawer-close{background:transparent;border:none;color:var(--muted);display:grid;place-items:center}.drawer-controls{display:flex;flex-direction:column;gap:12px;max-height:250px;overflow-y:auto;margin-right:-12px;padding-right:12px;scrollbar-color:var(--scrollbar) transparent;scrollbar-gutter:stable;scrollbar-width:thin;-webkit-overflow-scrolling:touch}.model-drawer-list{display:flex;max-height:248px;flex-direction:column;gap:4px;margin-right:-12px;overflow-y:auto;padding-right:12px;scrollbar-color:var(--scrollbar) transparent;scrollbar-gutter:stable;scrollbar-width:thin;-webkit-overflow-scrolling:touch}.drawer-controls::-webkit-scrollbar,.model-drawer-list::-webkit-scrollbar{width:8px}.drawer-controls::-webkit-scrollbar-thumb,.model-drawer-list::-webkit-scrollbar-thumb{min-height:36px;border:2px solid transparent;border-radius:999px;background:var(--scrollbar);background-clip:content-box}.drawer-controls::-webkit-scrollbar-thumb:hover,.model-drawer-list::-webkit-scrollbar-thumb:hover{background:var(--scrollbar-hover);background-clip:content-box}.drawer-controls::-webkit-scrollbar-track,.model-drawer-list::-webkit-scrollbar-track{background:transparent}.model-option-row{display:grid;grid-template-columns:minmax(0,1fr) 24px;align-items:center;min-height:58px;padding:8px 10px;border:0;border-radius:10px;color:var(--text);background:transparent}.model-option-row:hover,.model-option-row.active{background:#7f848c1a}.model-option-row.active{color:var(--accent)}.model-option-row span{display:grid;min-width:0;gap:3px;text-align:left}.model-option-row strong,.model-option-row small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.model-option-row strong{font-size:13px;font-weight:700}.model-option-row small{color:var(--muted);font-size:11px}.model-option-row svg{justify-self:center}.drawer-controls .json-field,.drawer-controls .file-field{grid-column:1 / -1}.control-field{display:grid;gap:6px;min-width:0}.control-field input,.control-field select{height:40px;padding:0 10px;font-size:13px}.number-stepper{display:grid;grid-template-columns:36px minmax(0,1fr) 36px;align-items:center;overflow:hidden;min-height:40px;border:1px solid var(--line-strong);border-radius:10px;background:#7f848c14}.number-stepper button{display:grid;width:36px;height:38px;place-items:center;border:0;color:var(--text);background:transparent}.number-stepper button:hover:not(:disabled){background:#7f848c24}.number-stepper button:disabled{color:var(--faint);cursor:not-allowed}.number-stepper input{width:100%;height:38px;padding:0 4px;border:0;color:var(--text);background:transparent;font-size:13px;font-weight:800;text-align:center;outline:0}.control-field textarea{min-height:82px;padding:10px;resize:vertical;font-size:13px;line-height:1.45}.file-row{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:8px}.file-pick{position:relative;display:grid!important;min-height:40px;place-items:center;overflow:hidden;border:1px solid var(--line-strong);border-radius:10px;color:var(--text);background:#7f848c14}.file-pick input{position:absolute;inset:0;opacity:0}.switch-field{grid-template-columns:minmax(0,1fr) auto;align-items:center}.switch{position:relative;width:48px;height:28px;border:1px solid var(--line-strong);border-radius:999px;background:#7f848c1f}.switch i{position:absolute;left:4px;top:4px;width:18px;height:18px;border-radius:50%;background:var(--muted);transition:transform .16s ease,background .16s ease}.switch.on i{background:var(--accent);transform:translate(20px)}.unsupported-box{border:1px solid rgba(240,91,91,.4);border-radius:10px;padding:10px 12px;color:var(--danger);font-size:12px;line-height:1.45;background:#f05b5b14}.account-layer{position:absolute;inset:0;z-index:82;display:grid;align-items:end}.account-scrim{position:absolute;inset:0;padding:0;border:0;background:#0f121657}.account-panel{position:relative;z-index:1;display:flex;max-height:min(86%,720px);min-height:260px;flex-direction:column;gap:14px;overflow:hidden;padding:12px 16px 18px;border:1px solid var(--line-strong);border-bottom:0;border-radius:24px 24px 0 0;background:var(--panel-solid);box-shadow:0 -22px 56px #0000002e;animation:account-panel-in .24s cubic-bezier(.16,1,.3,1)}.account-panel>.drawer-handle{flex:0 0 auto}.account-panel-head{display:grid;grid-template-columns:34px minmax(0,1fr) 34px;align-items:center;gap:10px}.account-panel-head>span{display:grid;min-width:0;gap:3px;text-align:center}.account-panel-head strong{overflow:hidden;color:var(--text);font-size:16px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.account-panel-head small{overflow:hidden;color:var(--muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.account-panel-head .drawer-close,.panel-head-spacer{width:34px;height:34px}.auth-panel-body,.account-center-body,.redeem-focus-body,.ledger-panel-body{min-height:0;overflow-y:auto;padding:0 2px 2px;scrollbar-color:var(--scrollbar) transparent;scrollbar-gutter:stable;scrollbar-width:thin;-webkit-overflow-scrolling:touch}.auth-panel-body::-webkit-scrollbar,.account-center-body::-webkit-scrollbar,.redeem-focus-body::-webkit-scrollbar,.ledger-panel-body::-webkit-scrollbar,.ledger-list::-webkit-scrollbar{width:8px}.auth-panel-body::-webkit-scrollbar-thumb,.account-center-body::-webkit-scrollbar-thumb,.redeem-focus-body::-webkit-scrollbar-thumb,.ledger-panel-body::-webkit-scrollbar-thumb,.ledger-list::-webkit-scrollbar-thumb{min-height:36px;border:2px solid transparent;border-radius:999px;background:var(--scrollbar);background-clip:content-box}.auth-panel-body::-webkit-scrollbar-thumb:hover,.account-center-body::-webkit-scrollbar-thumb:hover,.redeem-focus-body::-webkit-scrollbar-thumb:hover,.ledger-panel-body::-webkit-scrollbar-thumb:hover,.ledger-list::-webkit-scrollbar-thumb:hover{background:var(--scrollbar-hover);background-clip:content-box}.auth-panel-body::-webkit-scrollbar-track,.account-center-body::-webkit-scrollbar-track,.redeem-focus-body::-webkit-scrollbar-track,.ledger-panel-body::-webkit-scrollbar-track,.ledger-list::-webkit-scrollbar-track{background:transparent}.auth-panel-body,.account-center-body,.redeem-focus-body,.ledger-panel-body,.account-form,.redeem-card,.account-nav-list{display:grid;gap:12px}.auth-tabs,.ledger-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;border:1px solid var(--line);border-radius:12px;background:#7f848c14}.auth-tabs button,.ledger-tabs button{min-height:36px;border:0;border-radius:9px;color:var(--muted);background:transparent;font-size:13px;font-weight:700}.auth-tabs button.active,.ledger-tabs button.active{color:var(--text);background:var(--panel-solid);box-shadow:0 4px 14px #0000000f}.account-form label,.redeem-card label,.redeem-focus-body>label{display:grid;gap:7px;color:var(--muted);font-size:12px;font-weight:700}.account-form input,.redeem-input-row input{width:100%;height:42px;min-width:0;padding:0 12px;border:1px solid var(--line-strong);border-radius:12px;color:var(--text);background:#7f848c14;outline:0}.account-form input::placeholder,.redeem-input-row input::placeholder{color:var(--faint)}.account-primary,.redeem-input-row button{display:inline-flex;min-height:42px;align-items:center;justify-content:center;gap:7px;border:0;border-radius:12px;color:var(--accent-text);background:var(--accent);font-size:14px;font-weight:800;box-shadow:0 6px 18px var(--line-strong)}.wallet-form-error{padding:9px 10px;border:1px solid rgba(240,91,91,.34);border-radius:10px;color:var(--danger);background:#f05b5b14;font-size:12px;line-height:1.4}.account-profile{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:10px}.account-profile>span:not(.wallet-avatar){display:grid;min-width:0;gap:3px}.account-profile strong,.wallet-balance-card strong,.ledger-summary strong{overflow:hidden;color:var(--text);font-weight:800;text-overflow:ellipsis;white-space:nowrap}.account-profile small,.wallet-balance-card small,.ledger-summary small{overflow:hidden;color:var(--muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.text-icon-button{display:inline-flex;height:34px;align-items:center;gap:5px;padding:0 10px;border:1px solid var(--line);border-radius:10px;color:var(--muted);background:transparent;font-size:12px;font-weight:700}.wallet-balance-card,.ledger-summary{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border:1px solid var(--line);border-radius:16px;background:#7f848c0f}.wallet-balance-card.compact{padding:12px 14px}.wallet-balance-card span,.ledger-summary span{display:grid;min-width:0;gap:4px}.wallet-balance-card strong,.ledger-summary strong{font-size:24px}.wallet-balance-card svg,.ledger-summary svg{color:var(--accent)}.redeem-card{padding:12px;border:1px solid var(--line);border-radius:16px;background:#7f848c0a}.redeem-input-row{display:grid;grid-template-columns:minmax(0,1fr) 74px;gap:8px}.redeem-input-row.focus{grid-template-columns:minmax(0,1fr) 84px}.account-nav-row{display:grid;min-height:56px;grid-template-columns:24px minmax(0,1fr) 18px;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:14px;color:var(--text);background:transparent;text-align:left;text-decoration:none}.account-nav-row:hover,.text-icon-button:hover,.wallet-quick-actions button:hover,.wallet-summary.guest button:hover{background:#7f848c1a}.account-nav-row>svg:first-child{color:var(--accent)}.account-nav-row span{display:grid;min-width:0;gap:3px}.account-nav-row strong,.account-nav-row small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-nav-row strong{font-size:14px;font-weight:800}.account-nav-row small{color:var(--muted);font-size:12px}.wallet-buy-plain{display:inline-flex;min-height:34px;align-items:center;justify-content:center;gap:5px;color:var(--accent);font-size:13px;font-weight:700;text-decoration:none}.ledger-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.ledger-list{display:grid;max-height:330px;gap:8px;overflow-y:auto;padding-right:4px;scrollbar-color:var(--scrollbar) transparent;scrollbar-gutter:stable;scrollbar-width:thin;-webkit-overflow-scrolling:touch}.ledger-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;min-height:58px;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:#7f848c0a}.ledger-row>span,.ledger-row em{display:grid;min-width:0;gap:3px}.ledger-row strong,.ledger-row small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ledger-row strong{color:var(--text);font-size:13px;font-weight:800}.ledger-row small{color:var(--muted);font-size:11px}.ledger-row em{justify-items:end;font-style:normal;font-size:14px;font-weight:800;white-space:nowrap}.ledger-row em.income{color:var(--success)}.ledger-row em.expense{color:var(--danger)}.ledger-empty{display:grid;min-height:120px;place-items:center;color:var(--muted);font-size:13px}@keyframes drawer-in{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes account-panel-in{0%{opacity:0;transform:translateY(44px)}to{opacity:1;transform:translateY(0)}}@keyframes lightbox-in{0%{opacity:0}to{opacity:1}}@keyframes icon-spin{to{transform:rotate(360deg)}}.feature-toast{position:absolute;left:50%;top:50%;z-index:90;max-width:calc(100% - 64px);padding:12px 24px;border:1px solid var(--line-strong);border-radius:30px;color:var(--text);font-size:14px;font-weight:500;text-align:center;white-space:nowrap;background:var(--panel-soft);box-shadow:var(--glass-shadow);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);pointer-events:none;animation:feature-toast-out 2.5s cubic-bezier(.16,1,.3,1) forwards}@keyframes feature-toast-out{0%{opacity:0;transform:translate(-50%,-30%) scale(.92)}12%{opacity:1;transform:translate(-50%,-50%) scale(1)}75%{opacity:1;transform:translate(-50%,-50%) scale(1)}to{opacity:0;transform:translate(-50%,-65%) scale(.98)}}@media(max-width:720px){.device-shell{padding:0}.phone-frame{width:100%;max-width:100vw;height:100dvh;min-height:100dvh;border:0;border-radius:0}}@media(min-width:721px){.phone-frame{aspect-ratio:390 / 844}}@media(max-width:420px){.appbar{grid-template-columns:38px minmax(0,1fr) auto;min-height:62px;padding:0 14px}.app-actions{gap:6px}.account-trigger{height:32px;max-width:76px;padding:0 8px;font-size:11px}.icon-button{width:32px}.history-drawer{width:min(324px,calc(100% - 44px));min-width:0;padding:42px 14px 18px;border-radius:0 24px 24px 0}.history-drawer-head h2{font-size:18px}.history-new-button{height:36px;padding:0 14px;border-radius:10px;font-size:13px}.history-item{grid-template-columns:44px minmax(0,1fr);gap:10px;min-height:70px}.history-thumb{width:44px;height:44px;border-radius:10px}.cache-pill{grid-column:2;justify-self:start;margin-top:2px}.main-grid{padding:16px 8px 0}.message-list{gap:20px;padding:0 6px 24px}.message-card p{padding:16px;font-size:15px}.composer{padding:14px 14px 16px}.mode-toggle,.model-select-button,.select-wrap select,.select-trigger{min-height:42px;height:42px}.mode-toggle button{width:44px;padding:6px 0}.mode-toggle button,.model-select-button,.select-wrap select,.select-trigger{font-size:13px}.select-wrap svg{top:21px}.model-label{display:none}.model-selector-group{grid-template-columns:minmax(0,1fr) auto;gap:8px}.tune-button{min-width:76px;height:42px;padding:0 11px}.result-actions button{font-size:11px}.wallet-summary{padding:10px;border-radius:14px}.wallet-balance-row,.redeem-card,.wallet-balance-card,.ledger-summary{border-radius:14px}.account-panel{max-height:88%;padding:12px 14px 16px;border-radius:22px 22px 0 0}.account-panel-head strong{font-size:15px}.wallet-balance-card strong,.ledger-summary strong{font-size:22px}.redeem-input-row{grid-template-columns:minmax(0,1fr) 68px}.ledger-list{max-height:280px}}@media(max-width:360px){.app-actions{gap:4px}.account-trigger{max-width:58px;padding:0 7px}.account-trigger svg{display:none}.composer-topline{grid-template-columns:1fr}.history-drawer{width:calc(100% - 30px);padding-inline:12px}.history-drawer-head{gap:8px}.history-drawer-head h2{font-size:23px}.history-new-button{min-width:88px;font-size:15px}.wallet-summary.guest{grid-template-columns:1fr}.wallet-summary.guest button{width:100%}.redeem-input-row,.redeem-input-row.focus{grid-template-columns:1fr}}.console-app,.console-login-shell{min-height:100dvh;color:var(--text);background:radial-gradient(circle at 22% -10%,rgba(32,216,242,.2),transparent 28%),linear-gradient(135deg,#eef2f5,#f8fafc 44%,#eef3f6)}.console-login-shell{display:grid;place-items:center;padding:28px}.console-login-panel{display:grid;width:min(440px,100%);gap:22px;padding:26px;border:1px solid rgba(18,23,30,.1);border-radius:24px;background:#ffffffc7;box-shadow:0 26px 70px #141c2624;-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px)}.console-login-brand,.console-brand,.console-panel-head,.console-list-row,.console-topbar,.console-sidebar-head,.console-operator-card,.console-status-meter>div,.console-pending-list span{display:flex;align-items:center}.console-login-brand,.console-brand{gap:12px;color:inherit;text-decoration:none}.console-login-brand span,.console-brand span,.console-operator-card span{display:grid;gap:2px}.console-login-brand strong,.console-brand strong,.console-operator-card strong{font-size:15px}.console-login-brand small,.console-brand small,.console-operator-card small{color:var(--muted);font-size:12px}.console-brand-mark{position:relative;display:inline-grid;width:38px;height:38px;flex:0 0 auto;place-items:center;border-radius:15px;background:#111318;box-shadow:0 12px 30px #1113182e}.console-brand-mark span{width:17px;height:17px;border:2px solid var(--accent);border-radius:7px;transform:rotate(18deg)}.console-brand-mark i{position:absolute;right:9px;bottom:8px;width:8px;height:8px;border-radius:999px;background:var(--accent);box-shadow:0 0 16px #20d8f2cc}.console-login-copy{display:grid;gap:8px}.console-login-copy h1,.console-topbar h1,.console-pending h2{margin:0;letter-spacing:0}.console-login-copy h1{font-size:30px}.console-login-copy p,.console-topbar p,.console-pending p{margin:0;color:var(--muted);line-height:1.7}.console-login-form,.console-generate-form{display:grid;gap:14px}.console-login-form label,.console-generate-form label{display:grid;gap:8px;color:var(--muted);font-size:13px;font-weight:800}.console-login-form input,.console-generate-form input,.console-filterbar input,.console-filterbar select,.console-generated-box textarea{width:100%;border:1px solid rgba(18,23,30,.13);color:var(--text);background:#ffffffbd;outline:0}.console-login-form input,.console-generate-form input,.console-filterbar select{min-height:42px;border-radius:14px;padding:0 13px}.console-login-form input::placeholder,.console-filterbar input::placeholder,.console-generate-form input::placeholder,.console-generated-box textarea::placeholder{color:var(--faint)}.console-primary-button,.console-ghost-button,.console-icon-button,.console-nav-item,.console-table-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;font-weight:900}.console-primary-button{min-height:44px;border-radius:999px;padding:0 18px;color:var(--accent-text);background:var(--accent);box-shadow:0 13px 30px #20d8f247}.console-primary-button.compact{min-height:38px;padding:0 15px}.console-ghost-button,.console-icon-button,.console-table-action{min-height:38px;border:1px solid rgba(18,23,30,.1);color:var(--text);background:#ffffffad}.console-ghost-button{border-radius:999px;padding:0 14px}.console-icon-button{width:38px;padding:0;border-radius:13px}.console-table-action{min-height:30px;border-radius:999px;padding:0 11px;color:#087282;background:var(--accent-soft)}.console-alert{display:flex;align-items:center;justify-content:space-between;gap:12px;border-radius:16px;padding:11px 13px;font-size:13px;font-weight:800}.console-alert.error{border:1px solid rgba(240,91,91,.24);color:#c52c2c;background:#f05b5b17}.console-alert.success{border:1px solid rgba(16,185,129,.22);color:#067d58;background:#10b9811a}.console-alert button{border:0;color:inherit;background:transparent;font-size:12px;font-weight:900}.console-app{display:grid;grid-template-columns:260px minmax(0,1fr)}.console-sidebar{position:sticky;top:0;display:grid;height:100dvh;grid-template-rows:auto 1fr auto;gap:18px;padding:22px 16px;border-right:1px solid rgba(18,23,30,.09);background:#ffffffa8;-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px)}.console-sidebar-head{justify-content:space-between;gap:12px}.console-nav{display:grid;align-content:start;gap:6px}.console-nav-item{justify-content:flex-start;min-height:43px;border-radius:15px;padding:0 12px;color:var(--muted);background:transparent}.console-nav-item:hover,.console-nav-item.active{color:var(--text);background:#20d8f221}.console-nav-item.active{box-shadow:inset 0 0 0 1px #20d8f23d}.console-operator-card{gap:10px;padding:12px;border:1px solid rgba(18,23,30,.08);border-radius:18px;background:#ffffffb8}.console-operator-avatar{display:grid;width:34px;height:34px;place-items:center;border-radius:13px;color:var(--accent-text);background:var(--accent);font-weight:900}.console-workspace{min-width:0;padding:22px 24px 36px}.console-topbar{position:sticky;z-index:5;top:0;justify-content:space-between;gap:18px;min-height:74px;padding:4px 0 14px;background:linear-gradient(180deg,#f7fafcf0,#f7fafc00);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.console-topbar>div:first-of-type{display:grid;gap:4px;min-width:0}.console-topbar h1{font-size:25px}.console-topbar p{font-size:13px}.console-topbar-actions{display:flex;align-items:center;gap:9px}.console-content,.console-overview,.console-cards-layout{display:grid;gap:16px}.console-metrics-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.console-metric-tile,.console-panel,.console-mini-stat{border:1px solid rgba(18,23,30,.09);background:#ffffffb8;box-shadow:0 18px 48px #141c2614;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.console-metric-tile{display:grid;gap:7px;min-height:148px;border-radius:22px;padding:18px}.console-metric-tile i,.console-panel-head i,.console-pending-icon{display:grid;place-items:center;color:#087282;background:var(--accent-soft)}.console-metric-tile i{width:40px;height:40px;border-radius:15px}.console-metric-tile span,.console-mini-stat span,.console-status-meter span{color:var(--muted);font-size:13px;font-weight:800}.console-metric-tile strong{font-size:clamp(25px,2.5vw,34px);line-height:1}.console-metric-tile small,.console-panel-head small,.console-list-row small,.console-empty small,.console-generated-box small{color:var(--muted);font-size:12px}.console-overview-main{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.8fr);gap:16px}.console-two-column{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.console-panel{min-width:0;border-radius:22px;padding:16px}.console-page-panel{display:grid;gap:14px}.console-panel-head{justify-content:space-between;gap:12px;margin-bottom:14px}.console-page-panel .console-panel-head,.console-generate-panel .console-panel-head{margin-bottom:0}.console-panel-head span{display:flex;align-items:center;gap:9px;min-width:0}.console-panel-head i{width:32px;height:32px;flex:0 0 auto;border-radius:12px}.console-panel-head strong{font-size:15px}.console-flow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.console-flow div{display:grid;gap:6px;padding:13px;border-radius:16px;background:#f8fafcd1}.console-flow small{color:var(--muted);font-size:12px;font-weight:800}.console-flow strong{font-size:24px}.console-curve{display:flex;align-items:end;gap:10px;height:164px;margin-top:18px;padding:14px;border-radius:18px;background:linear-gradient(rgba(18,23,30,.06) 1px,transparent 1px) 0 0 / 100% 25%,#f8fafcb8}.console-curve span{flex:1;min-width:16px;border-radius:999px 999px 5px 5px;background:var(--accent);box-shadow:none}.console-status-stack{display:grid;gap:16px}.console-status-meter{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:9px 12px}.console-status-meter>div{justify-content:space-between;grid-column:1 / -1}.console-status-meter i{overflow:hidden;height:10px;border-radius:999px;background:#12171e14}.console-status-meter b{display:block;height:100%;min-width:4px;border-radius:inherit}.console-status-meter b.active,.console-mini-stat.active,.console-status-pill.active{background:#10b98121}.console-status-meter b.active{background:var(--success)}.console-status-meter b.redeemed{background:var(--accent)}.console-status-meter b.disabled{background:var(--danger)}.console-status-meter small{color:var(--muted);font-size:12px;font-weight:900;text-align:right}.console-list{display:grid;gap:8px}.console-list.compact{gap:6px}.console-list-row{justify-content:space-between;gap:12px;min-height:52px;padding:10px 11px;border-radius:15px;background:#f8fafcb8}.console-list-row span{display:grid;gap:3px;min-width:0}.console-list-row strong,.console-list-row small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.console-filterbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.console-filterbar.wide{grid-template-columns:170px minmax(0,1fr) auto}.console-filterbar label{position:relative;display:block}.console-filterbar label svg{position:absolute;top:50%;left:12px;color:var(--muted);transform:translateY(-50%)}.console-filterbar input{min-height:42px;border-radius:14px;padding:0 13px 0 38px}.console-table-wrap{overflow:auto;border:1px solid rgba(18,23,30,.08);border-radius:18px;background:#ffffff73}.console-table{width:100%;min-width:840px;border-collapse:collapse;font-size:13px}.console-table th,.console-table td{padding:13px 14px;border-bottom:1px solid rgba(18,23,30,.08);text-align:left;white-space:nowrap}.console-table th{color:var(--muted);background:#f8fafcc7;font-size:12px;font-weight:900}.console-table tr:last-child td{border-bottom:0}.console-table td strong,.console-table td small{display:block}.console-table td small{margin-top:3px;color:var(--muted)}.console-cards-layout{grid-template-columns:360px minmax(0,1fr);align-items:start}.console-generate-panel,.console-generated-box{display:grid;gap:14px}.console-generate-form{grid-template-columns:repeat(2,minmax(0,1fr))}.console-generate-form .span-2{grid-column:1 / -1}.console-generated-box{padding:13px;border-radius:18px;background:#f8fafcbd}.console-generated-box>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.console-generated-box textarea{min-height:142px;resize:vertical;border-radius:15px;padding:12px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;line-height:1.55}.console-card-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.console-mini-stat{display:grid;gap:5px;border-radius:16px;padding:12px;box-shadow:none}.console-mini-stat strong{font-size:22px}.console-status-pill{display:inline-flex;align-items:center;min-height:25px;border-radius:999px;padding:0 9px;font-size:12px;font-weight:900}.console-status-pill.active{color:#087d5c}.console-status-pill.redeemed{color:var(--accent);background:var(--accent-soft)}.console-status-pill.disabled,.console-mini-stat.disabled{color:#c52c2c;background:#f05b5b1a}.console-positive{color:#087d5c}.console-negative{color:#c52c2c}.console-muted{color:var(--muted)}.console-empty{display:grid;place-items:center;gap:4px;min-height:120px;color:var(--muted);text-align:center}.console-empty span{color:var(--text);font-weight:900}.console-pending{display:grid;place-items:center;min-height:420px;gap:12px;text-align:center}.console-pending-icon{width:58px;height:58px;border-radius:20px}.console-pending-list{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}.console-pending-list span{gap:7px;min-height:34px;border-radius:999px;padding:0 12px;color:var(--muted);background:#f8fafcd1;font-size:13px;font-weight:800}.console-spin{animation:console-spin .8s linear infinite}.console-mobile-only{display:none}@keyframes console-spin{to{transform:rotate(360deg)}}@media(max-width:1180px){.console-app{grid-template-columns:230px minmax(0,1fr)}.console-metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.console-overview-main,.console-cards-layout{grid-template-columns:1fr}}@media(max-width:840px){.console-app{grid-template-columns:1fr}.console-sidebar{position:fixed;z-index:20;width:min(300px,86vw);transform:translate(-105%);transition:transform .18s ease}.console-sidebar.open{transform:translate(0);box-shadow:24px 0 60px #141c2633}.console-mobile-only{display:inline-flex}.console-workspace{padding:14px 14px 28px}.console-topbar{align-items:flex-start;flex-wrap:wrap}.console-topbar-actions{width:100%;justify-content:flex-start;overflow-x:auto;padding-bottom:2px}.console-metrics-grid,.console-two-column,.console-flow,.console-card-summary,.console-filterbar,.console-filterbar.wide{grid-template-columns:1fr}.console-login-shell{padding:16px}.console-login-panel{padding:20px;border-radius:22px}}.web-console{--web-bg: #fafafa;--web-surface: #ffffff;--web-soft: #f9f9f9;--web-soft-2: #f9f9f9;--web-text: #050505;--web-muted: #6f7177;--web-faint: #a4a7ad;--web-line: rgba(0, 0, 0, .055);--web-line-strong: rgba(0, 0, 0, .12);--web-divider: rgba(0, 0, 0, .04);--web-card-line: #eaebed;--web-shadow: 0 12px 30px rgba(0, 0, 0, .035);--web-danger: #b42318;--web-success: #159447;min-height:100dvh;overflow-x:hidden;color:var(--web-text);background:var(--web-bg)}.web-console button,.web-console input,.web-console select,.web-console textarea{color:inherit}.web-console button{border:0;background:transparent}.web-console a{color:inherit;text-decoration:none}.web-shell-header{position:sticky;top:0;z-index:40;display:grid;grid-template-columns:260px minmax(0,1fr) auto;align-items:stretch;min-height:84px;border-bottom:1px solid var(--web-divider);background:#fafafaf5;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.web-shell-brand,.web-top-tabs,.web-account-summary,.web-header-balance,.web-header-user,.web-sidebar button,.web-bottom-nav,.web-bottom-nav button,.web-model-card,.web-form-section h3,.web-submit-row,.web-result-foot,.web-history-filters,.web-history-filters label,.web-history-filters button,.web-history-item,.web-history-detail-head,.web-pagination,.web-wallet-balance-card,.web-wallet-balance-actions,.web-wallet-filters,.web-wallet-filters button,.web-ledger-footer,.web-ledger-footer div,.web-package-list button,.web-redeem-card div{display:flex;align-items:center}.web-shell-brand{gap:10px;padding:0 28px;border-right:1px solid var(--web-line);font-size:20px;font-weight:900;white-space:nowrap}.web-logo-mark{display:grid;width:24px;height:24px;flex:0 0 auto;place-items:center;color:#fff;border-radius:8px;background:#0a0a0a}.web-top-tabs{align-self:stretch;gap:44px;padding-left:54px}.web-top-tabs button{position:relative;height:100%;color:var(--web-muted);font-size:20px;font-weight:760}.web-top-tabs button.active{color:var(--web-text);font-size:25px;font-weight:920}.web-top-tabs button.active:after{position:absolute;left:0;right:0;bottom:-1px;height:3px;content:"";border-radius:999px 999px 0 0;background:#000}.web-account-summary{justify-self:end;gap:28px;padding:0 28px}.web-header-download-app{display:inline-flex;align-items:center;gap:6px;height:42px;padding:0 16px;border-radius:999px;background:#000;color:#fff;font-size:14px;font-weight:800;text-decoration:none;transition:all .2s cubic-bezier(.4,0,.2,1);box-shadow:0 4px 12px #0000001f}.web-header-download-app:hover{transform:translateY(-1px);box-shadow:0 6px 16px #00000029;background:#1a1a1a;color:#fff}.web-header-download-app svg{color:#fff}.web-header-balance{gap:18px;min-width:174px;min-height:56px;justify-content:space-between;padding:8px 14px;border:1px solid var(--web-card-line);border-radius:12px;background:#fafafa;box-shadow:0 1px #ffffffc7,0 8px 22px #00000005}.web-header-balance span,.web-header-user span,.web-model-option span,.web-history-item>span:nth-child(2),.web-package-list button>span,.web-package-list em,.web-wallet-balance-card>div:first-child{display:grid;min-width:0}.web-header-balance small{color:var(--web-text);font-size:12px;font-weight:820}.web-header-balance strong{font-size:21px;font-weight:920;line-height:1}.web-header-balance>svg{width:30px;height:30px;flex:0 0 auto;color:#000}.web-header-user{gap:11px}.web-header-user svg:first-child{color:#e6e8eb}.web-header-user strong{font-size:18px;font-weight:880}.web-header-user small{color:var(--web-muted);font-size:13px}.web-shell{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:calc(100dvh - 84px)}.web-sidebar{position:sticky;top:84px;display:grid;height:calc(100dvh - 84px);grid-template-rows:minmax(0,1fr) auto;padding:22px 18px;border-right:1px solid var(--web-divider);background:#fafafa}.web-sidebar nav{display:grid;align-content:start;gap:14px}.web-sidebar button{justify-content:flex-start;gap:15px;min-height:52px;padding:0 16px;border-radius:9px;color:var(--web-text);font-size:18px;font-weight:790}.web-sidebar button.active{background:#f9f9f9;box-shadow:inset 0 0 0 1px #00000007,0 8px 18px #00000004}.web-sidebar button:hover,.web-history-filters button:hover,.web-wallet-filters button:hover,.web-package-list button:hover,.web-redeem-card button:hover{background:var(--web-soft-2)}.web-settings-button{align-self:end}.web-content{min-width:0;padding:24px 24px 28px;background:#fafafa}.web-mobile-topbar{display:none}.web-mobile-download-app{display:grid;width:34px;height:34px;place-items:center;justify-self:start;border-radius:50%;color:#000;background:#0000000a;transition:all .2s}.web-mobile-download-app:active{background:#00000014}.web-mobile-user-button{display:grid;width:34px;height:34px;place-items:center;justify-self:end;padding:0;border-radius:999px;color:#000;background:#f3f4f5;font-size:13px;font-weight:900}.web-mobile-user-button span{display:grid;place-items:center;width:100%;height:100%}.web-create-page{display:grid;grid-template-columns:minmax(420px,424px) minmax(0,1fr);gap:18px}.web-prompt-studio,.web-result-stage,.web-history-panel,.web-history-detail,.web-wallet-balance-card,.web-ledger-table-card,.web-package-card,.web-redeem-card{min-width:0;border:1px solid var(--web-line);border-radius:10px;background:#fff;box-shadow:var(--web-shadow)}.web-prompt-studio{display:grid;align-content:start;gap:18px;padding:22px}.web-form-section+.web-form-section{padding-top:16px;border-top:1px solid rgba(0,0,0,.035)}.web-hidden-prompt{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.web-form-section{display:grid;gap:10px}.web-form-section h3{gap:6px;margin:0;font-size:16px;font-weight:900}.web-model-picker{position:relative}.web-model-card{width:100%;min-height:72px;justify-content:space-between;gap:12px;padding:0 18px;border:1px solid var(--web-card-line);border-radius:12px;background:#fff;box-shadow:inset 0 0 0 1px #ffffff9e,0 1px 2px #00000004;text-align:left}.web-model-card strong{overflow:hidden;font-size:17px;font-weight:920;text-overflow:ellipsis;white-space:nowrap}.web-model-card span{display:inline-flex;min-height:32px;align-items:center;justify-content:center;padding:0 13px;border-radius:999px;color:#111;background:#f9f9f9;font-size:12px;font-weight:860;line-height:1}.web-model-menu{position:absolute;inset-inline:0;top:calc(100% + 8px);z-index:30;display:grid;max-height:260px;gap:6px;overflow-y:auto;padding:8px;border:1px solid var(--web-line);border-radius:8px;background:#fff;box-shadow:0 16px 44px #0000001f}.web-model-option{display:grid;grid-template-columns:minmax(0,1fr) 20px;gap:10px;min-height:54px;align-items:center;padding:8px 10px;border-radius:7px;text-align:left}.web-model-option.active,.web-model-option:hover{background:var(--web-soft-2)}.web-model-option strong{overflow:hidden;font-size:14px;font-weight:900;text-overflow:ellipsis;white-space:nowrap}.web-model-option small{overflow:hidden;color:var(--web-muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.web-ratio-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.web-ratio-option{display:grid;min-height:92px;justify-items:center;align-content:center;gap:6px;border:1px solid var(--web-card-line);border-radius:12px;background:linear-gradient(180deg,#fff,#fdfdfd);box-shadow:inset 0 0 0 1px #ffffffad,0 1px 2px #00000005;font-size:12px}.web-ratio-option.active,.web-resolution-option.active{border-color:#6f7784;box-shadow:inset 0 0 0 1px #6f7784,0 1px 2px #00000005}.web-ratio-glyph{width:26px;height:22px}.web-ratio-glyph rect{fill:none;stroke:#000;stroke-width:1.9}.web-ratio-option span,.web-ratio-option strong{line-height:1.1}.web-resolution-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.web-resolution-option{display:grid;min-height:54px;place-items:center;border:1px solid var(--web-card-line);border-radius:10px;background:linear-gradient(180deg,#fff,#fdfdfd);box-shadow:inset 0 0 0 1px #ffffffad,0 1px 2px #00000005}.web-resolution-option strong{font-size:14px;font-weight:900}.web-resolution-option span{color:var(--web-muted);font-size:12px}.reference-image-input{display:none}.web-reference-drop{display:grid;min-height:82px;place-items:center;gap:5px;border:1px dashed #dcdfe4;border-radius:10px;background:#fafafa;color:var(--web-muted);text-align:center}.web-reference-drop strong{color:var(--web-muted);font-size:13px}.web-reference-drop span,.web-reference-drop small{color:var(--web-muted);font-size:12px}.web-reference-slots{display:none;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.web-reference-slot{position:relative;display:grid;aspect-ratio:1;place-items:center;overflow:hidden;padding:0;border:1.5px dashed var(--web-faint);border-radius:12px;color:var(--web-faint);background:#fff;transition:all .2s cubic-bezier(.4,0,.2,1)}.web-reference-slot.filled{border-style:solid;border-color:var(--web-line-strong);border-width:1px}.web-reference-slot:not(.filled):hover,.web-reference-slot:not(.filled):active{border-color:#000;color:#000;background:var(--web-soft)}.web-reference-slot-trigger{display:grid;width:100%;height:100%;place-items:center;color:inherit;cursor:pointer}.web-reference-slot-trigger:disabled{cursor:not-allowed;opacity:.45}.web-reference-slot img{width:100%;height:100%;object-fit:cover}.web-reference-slot button{position:absolute;top:4px;right:4px;display:grid;width:22px;height:22px;place-items:center;border-radius:50%;color:#fff;background:#000000a6;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);transition:background .2s}.web-reference-slot button:hover{background:#000000d9}.web-inline-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}.web-number-stepper{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;height:48px;overflow:hidden;border:1px solid var(--web-line-strong);border-radius:12px;background:#fff;box-shadow:0 2px 8px #00000005;transition:border-color .2s}.web-number-stepper:hover{border-color:#00000040}.web-number-stepper button{display:grid;place-items:center;color:var(--web-muted)}.web-number-stepper button:hover{color:#000;background:var(--web-soft)}.web-number-stepper strong{display:grid;place-items:center;font-size:15px;font-weight:800;color:#000;border-left:1px solid var(--web-line);border-right:1px solid var(--web-line)}.web-format-picker{position:relative;display:grid}.web-format-trigger{display:flex;width:100%;height:48px;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--web-line-strong);border-radius:12px;padding:0 14px 0 17px;background:#fff;font-size:15px;font-weight:800;color:#000;box-shadow:0 2px 8px #00000005;transition:border-color .2s}.web-format-trigger:hover,.web-format-picker.open .web-format-trigger{border-color:#00000040}.web-format-trigger span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.web-format-trigger svg{flex:0 0 auto;color:var(--web-muted);transition:transform .18s ease}.web-format-picker.open .web-format-trigger svg{transform:rotate(180deg)}.web-format-menu{position:absolute;inset-inline:0;top:calc(100% + 8px);z-index:34;display:grid;gap:4px;padding:6px;border:1px solid var(--web-line);border-radius:10px;background:#fff;box-shadow:0 16px 44px #0000001f}.web-format-option{display:grid;min-height:42px;grid-template-columns:minmax(0,1fr) 18px;align-items:center;gap:8px;padding:0 10px;border-radius:8px;color:var(--web-text);font-size:14px;font-weight:850;text-align:left}.web-format-option span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.web-format-option.active,.web-format-option:hover{background:var(--web-soft-2)}.web-submit-row{justify-content:space-between;gap:14px;color:var(--web-muted);font-size:14px}.web-submit-row strong{color:#000;font-size:16px}.web-generate-button{display:inline-flex;min-height:44px;align-items:center;justify-content:center;gap:8px;border-radius:7px;color:#fff;background:#000;font-weight:900}.web-service-text{display:none;overflow:hidden;color:var(--web-muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.web-inline-alert{padding:10px 12px;border-radius:8px;font-size:13px;font-weight:800;line-height:1.45}.web-inline-alert.error{border:1px solid rgba(180,35,24,.22);color:var(--web-danger);background:#b423180f}.web-result-stage{display:grid;grid-template-rows:64px minmax(620px,calc(100dvh - 222px)) auto auto;overflow:hidden}.web-result-title{display:flex;align-items:center;min-width:0;border-bottom:1px solid var(--web-line);padding:0 20px}.web-result-title h2{margin:0;font-size:18px;font-weight:900}.web-canvas{position:relative;display:grid;min-height:0;place-items:center;overflow:hidden;background:#fff}.web-canvas.busy:after{position:absolute;inset:0;pointer-events:none;content:"";background:linear-gradient(110deg,transparent 0 35%,rgba(0,0,0,.04) 48%,transparent 62% 100%);animation:web-shine 1.8s linear infinite}.web-result-grid{display:grid;width:100%;height:100%;gap:10px;padding:22px}.web-result-grid.multi{grid-template-columns:repeat(2,minmax(0,1fr))}.web-result-image{display:block;width:100%;min-height:0;overflow:hidden;padding:0;border-radius:10px;background:#f3f4f5;cursor:zoom-in}.web-result-image img{display:block;width:100%;height:100%;object-fit:contain}.web-empty-canvas{display:grid;justify-items:center;gap:12px;color:var(--web-muted);text-align:center}.web-empty-canvas svg{color:#eef0f2}.web-empty-canvas p{margin:0;font-size:16px}.web-progress{display:grid;gap:4px;padding:0 22px 14px}.web-progress span{display:block;height:5px;border-radius:999px;background:#000}.web-progress em{color:var(--web-muted);font-size:12px;font-style:normal}.web-result-foot{flex-wrap:wrap;gap:12px;padding:12px 20px 18px;border-top:1px solid var(--web-line)}.web-result-foot button{min-height:34px;padding:0 12px;border:1px solid var(--web-line);border-radius:7px;font-weight:840}.web-history-page{display:grid;grid-template-columns:minmax(420px,424px) minmax(0,1fr);gap:18px}.web-history-panel{display:grid;align-content:start;gap:24px;padding:24px 20px}.web-history-panel h1,.web-wallet-page h1{margin:0;font-size:28px;font-weight:930}.web-history-filters{gap:14px}.web-history-filters label{min-width:0;flex:1;gap:8px;min-height:42px;padding:0 13px;border:1px solid var(--web-line);border-radius:8px;color:var(--web-faint);background:#fff}.web-history-filters input{min-width:0;flex:1;border:0;outline:0;background:transparent}.web-history-filters button,.web-wallet-filters button{gap:10px;min-height:42px;padding:0 16px;border:1px solid var(--web-line);border-radius:8px;background:#fff;font-weight:820}.web-history-list{display:grid;gap:10px}.web-history-item{display:grid;width:100%;min-width:0;grid-template-columns:96px minmax(0,1fr) 20px;gap:16px;min-height:104px;padding:16px 18px 16px 12px;border:1px solid var(--web-line);border-radius:8px;background:#fff;text-align:left}.web-history-item.active{border-color:#000;box-shadow:inset 0 0 0 1px #000}.web-history-thumb{display:grid;width:96px;height:72px;place-items:center;overflow:hidden;border-radius:7px;background:#eef0f2}.web-history-thumb img{width:100%;height:100%;object-fit:cover}.web-history-item strong{overflow:hidden;font-size:17px;font-weight:900;text-overflow:ellipsis;white-space:nowrap}.web-history-item small{overflow:hidden;color:var(--web-muted);font-size:14px;text-overflow:ellipsis;white-space:nowrap}.web-empty-list{display:grid;min-height:92px;place-items:center;color:var(--web-muted);font-size:14px}.web-pagination{justify-content:center;gap:12px;padding-top:6px}.web-pagination button,.web-ledger-footer button{display:grid;width:38px;height:38px;place-items:center;border-radius:8px;background:#f3f4f5;font-weight:850}.web-pagination button.active,.web-ledger-footer button.active{color:#fff;background:#000}.web-history-detail{display:grid;align-content:start;gap:28px;padding:24px}.web-history-detail-head{gap:30px;min-height:38px}.web-history-detail-head strong{font-size:17px;font-weight:920}.web-history-detail-head span{color:var(--web-muted);font-size:15px}.web-history-detail-head button{margin-left:auto;min-height:38px;padding:0 16px;border:1px solid var(--web-line);border-radius:8px;font-weight:850}.web-history-preview{display:grid;min-height:480px;place-items:center;overflow:hidden;border-radius:12px;background:#f3f4f5}.web-history-preview img{width:100%;height:100%;object-fit:contain}.web-history-copy{display:grid;gap:9px}.web-history-copy small{color:var(--web-muted);font-size:14px}.web-history-copy p{margin:0;color:var(--web-muted);line-height:1.7}.web-history-params{display:grid;gap:16px;padding-top:18px;border-top:1px solid var(--web-line)}.web-history-params h2{margin:0;font-size:16px;font-weight:900}.web-history-params dl{display:grid;grid-template-columns:86px minmax(0,1fr);gap:14px 28px;margin:0}.web-history-params dt{color:var(--web-muted)}.web-history-params dd{margin:0}.web-wallet-page{display:grid;gap:24px;padding:0 16px}.web-wallet-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(430px,520px);gap:24px}.web-wallet-main,.web-wallet-side{display:grid;align-content:start;gap:24px}.web-wallet-balance-card{min-height:176px;gap:20px;padding:32px}.web-wallet-balance-card span{font-size:16px;font-weight:870}.web-wallet-balance-card strong{margin-top:12px;font-size:50px;font-weight:940;line-height:1}.web-wallet-card-icon{width:46px;height:46px;flex:0 0 auto;color:#000}.web-wallet-balance-card p{margin:12px 0 0;color:var(--web-muted)}.web-wallet-balance-actions{margin-left:auto;gap:16px}.web-wallet-balance-actions button,.web-redeem-card button{min-height:44px;padding:0 24px;border-radius:8px;font-weight:900}.web-wallet-balance-actions button:first-child,.web-redeem-card button{color:#fff;background:#000}.web-wallet-balance-actions button:last-child{border:1px solid var(--web-line);background:#fff}.web-ledger-table-card,.web-package-card,.web-redeem-card{display:grid;align-content:start;gap:24px;padding:28px 30px}.web-ledger-table-card h2,.web-package-card h2,.web-redeem-card h2{margin:0;font-size:18px;font-weight:900}.web-wallet-filters{gap:14px}.web-ledger-table{display:grid}.web-ledger-table-head,.web-ledger-row{display:grid;grid-template-columns:170px 80px minmax(0,1fr) 80px 80px;gap:18px;align-items:center;min-height:60px;border-bottom:1px solid var(--web-line)}.web-ledger-table-head{color:#000;font-weight:880}.web-ledger-row{font-size:14px}.web-ledger-row span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.web-ledger-row em,.web-ledger-row strong{font-style:normal;font-weight:900;text-align:right}.web-ledger-row em.income,.web-ledger-row strong{color:var(--web-success)}.web-ledger-row em.expense{color:var(--web-danger)}.web-ledger-footer{justify-content:space-between;color:var(--web-muted)}.web-ledger-footer div{gap:8px}.web-package-list{display:grid;gap:18px}.web-package-list button{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:18px;min-height:94px;padding:0 22px;border:1px solid var(--web-line);border-radius:8px;background:#fff;text-align:left}.web-package-list button.active{border-color:#1397c2;box-shadow:inset 0 0 0 1px #1397c2}.web-package-list strong{font-size:17px;font-weight:920}.web-package-list small{margin-top:6px;color:var(--web-muted);font-size:14px}.web-package-list em{justify-items:end;font-style:normal}.web-package-card p,.web-redeem-card p{display:flex;align-items:center;gap:8px;margin:0;color:var(--web-muted)}.web-redeem-card div{gap:16px}.web-redeem-card input{min-width:0;min-height:44px;flex:1;border:1px solid var(--web-line);border-radius:8px;padding:0 18px;background:#fff;outline:0}.web-bottom-nav{display:none}.web-console .account-layer{position:fixed;z-index:90;align-items:center;justify-items:center;padding:20px}.web-console .account-panel{width:min(440px,100%);max-height:min(760px,calc(100dvh - 40px));border:1px solid var(--web-line-strong);border-radius:18px;box-shadow:0 28px 78px #0000002e}.web-console .account-panel>.drawer-handle{display:none}.web-toast{position:fixed;top:22px;left:50%;z-index:120;transform:translate(-50%)}.web-lightbox{position:fixed;inset:0;z-index:110;display:grid;place-items:center;padding:22px;background:#000000d1;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.web-lightbox button{position:absolute;top:18px;right:18px;display:grid;width:42px;height:42px;place-items:center;border:1px solid rgba(255,255,255,.24);border-radius:999px;color:#fff;background:#0000006b}.web-lightbox img{display:block;max-width:min(100%,1200px);max-height:calc(100dvh - 80px);border-radius:12px;object-fit:contain;box-shadow:0 24px 72px #0006}.web-spin{animation:web-spin .76s linear infinite}@keyframes web-spin{to{transform:rotate(360deg)}}@keyframes web-shine{0%{transform:translate(-80%)}to{transform:translate(80%)}}@media(max-width:1180px){.web-shell-header{grid-template-columns:220px minmax(0,1fr) auto}.web-shell{grid-template-columns:220px minmax(0,1fr)}.web-create-page,.web-history-page,.web-wallet-grid{grid-template-columns:1fr}}@media(max-width:760px){.web-console{background:#fff}.web-shell-header,.web-sidebar{display:none}.web-shell{display:block;min-height:100dvh}.web-content{padding:0 0 150px}.web-mobile-topbar{position:sticky;top:0;z-index:30;display:grid;grid-template-columns:42px minmax(0,1fr) 42px;min-height:56px;align-items:center;padding:0 14px;border-bottom:1px solid var(--web-line);background:#fffffff5;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.web-mobile-topbar strong{justify-self:center;font-size:18px;font-weight:920}.web-mobile-topbar button{justify-self:end}.web-logo-mark{width:21px;height:21px;border-radius:7px}.web-create-page,.web-history-page,.web-wallet-grid{display:grid;grid-template-columns:1fr;gap:0}.web-prompt-studio,.web-history-panel,.web-wallet-page,.web-wallet-main,.web-wallet-side{border:0;border-radius:0;box-shadow:none}.web-prompt-studio{padding:22px 24px 14px;gap:14px}.web-result-stage,.web-history-detail{display:none}.web-form-section h3{font-size:14px}.web-form-section{gap:8px}.web-ratio-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.web-ratio-option{min-height:54px;padding:5px 2px;font-size:11px}.web-ratio-glyph{width:18px;height:14px}.web-resolution-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.web-resolution-option{min-height:48px}.web-reference-drop{min-height:62px;gap:2px}.web-reference-section{order:5}.web-reference-slots{display:grid;gap:10px}.web-reference-slot{height:40px}.web-inline-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;order:4}.web-number-stepper,.web-format-trigger{min-height:40px}.web-submit-row{order:6}.web-generate-button{width:100%;order:7;box-shadow:0 10px 24px #00000024}.web-service-text{order:8}.web-history-panel{overflow:hidden;padding:24px 20px}.web-history-panel h1,.web-wallet-page h1{font-size:24px}.web-history-filters{display:grid;grid-template-columns:1fr}.web-history-item{grid-template-columns:76px minmax(0,1fr) 18px;min-height:88px;padding-right:14px}.web-history-thumb{width:76px;height:58px}.web-pagination{display:none}.web-wallet-page{padding:24px 18px}.web-wallet-balance-card,.web-ledger-table-card,.web-package-card,.web-redeem-card{border-radius:8px;box-shadow:var(--web-shadow)}.web-wallet-balance-card{display:grid;padding:24px}.web-wallet-card-icon{width:36px;height:36px}.web-wallet-balance-actions{margin-left:0}.web-ledger-table-head{display:none}.web-ledger-row{grid-template-columns:minmax(0,1fr) auto;gap:6px 12px}.web-ledger-row span:nth-child(2),.web-ledger-row span:nth-child(3){display:none}.web-ledger-row em{grid-column:2;grid-row:1}.web-ledger-row strong{grid-column:2;grid-row:2}.web-redeem-card div{display:grid}.web-bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:50;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));min-height:64px;padding:6px 12px max(6px,env(safe-area-inset-bottom));border-top:1px solid var(--web-line);background:#fffffff5;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.web-bottom-nav button{display:grid;place-items:center;gap:2px;color:#000;font-size:12px}.web-bottom-nav button svg{width:21px;height:21px}.web-bottom-nav button:not(.active){color:#171717;opacity:.72}.web-console .account-layer{align-items:end;justify-items:stretch;padding:0}.web-console .account-panel{width:100%;max-height:min(86dvh,720px);border-right:0;border-bottom:0;border-left:0;border-radius:24px 24px 0 0}.web-console .account-panel>.drawer-handle{display:block}}@media(max-width:420px){.web-prompt-studio{padding-inline:18px}.web-ratio-grid{grid-template-columns:repeat(5,minmax(54px,1fr));overflow-x:auto;padding-bottom:2px}}
