:root{--bot-bubble:#fff;--user-bubble:#d4a853;--bg:#ededed;--text:#1a1a1a;--text-secondary:#888;--golden:#d4a853;--golden-light:#f0d68a;--menu-bg:#f7f7f7;--locked:#b0b0b0;--shadow:0 1px 3px #00000014;--safe-bottom:env(safe-area-inset-bottom,0px);--safe-top:env(safe-area-inset-top,0px);font-size:16px}*{box-sizing:border-box;margin:0;padding:0}html,body,#root{height:100%;overflow:hidden}body{color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif}a{color:inherit;text-decoration:none}button{font:inherit;color:inherit;cursor:pointer;background:0 0;border:none}.decision-panel{max-width:82%;box-shadow:var(--shadow,0 1px 4px #00000014);background:#fff;border-radius:16px 16px 16px 4px;margin:4px 0;padding:14px 16px 10px;animation:.2s panelFadeIn}.decision-panel--dragging{box-shadow:var(--shadow,0 2px 12px #d4a8534d)}.decision-panel--adjusted{animation:.6s panelAdjusted}@keyframes panelAdjusted{0%{box-shadow:0 0 #70ad4700}30%{box-shadow:0 0 0 4px #70ad4759}to{box-shadow:var(--shadow,0 1px 4px #00000014)}}.decision-panel__header{color:#333;align-items:center;gap:6px;margin-bottom:12px;font-size:.9rem;font-weight:700;display:flex}.decision-panel__footer{color:#999;text-align:center;border-top:1px dashed #ddd;margin-top:10px;padding-top:8px;font-size:.75rem}@keyframes panelFadeIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.decision-panel--first-appear{animation:.8s panelFirstAppear}@keyframes panelFirstAppear{0%{opacity:0;transform:translateY(12px)scale(.96);box-shadow:0 0 #d4a85300}40%{opacity:1;transform:translateY(0)scale(1);box-shadow:0 0 0 4px #d4a8534d}70%{box-shadow:0 0 0 6px #d4a85326}to{transform:translateY(0)scale(1);box-shadow:0 1px 4px #00000014}}.weight-bar{margin-bottom:8px}.weight-bar__header{justify-content:space-between;margin-bottom:4px;display:flex}.weight-bar__label{color:#333;font-size:.85rem;font-weight:600}.weight-bar__pct{color:var(--bar-color);font-size:.85rem;font-weight:700}.weight-bar__track{cursor:pointer;touch-action:none;-webkit-user-select:none;user-select:none;background:#f0f0f0;border-radius:8px;height:40px;position:relative;overflow:hidden}.weight-bar__track--disabled{cursor:default}.weight-bar__fill{height:100%;width:var(--fill-width);background:linear-gradient(90deg, var(--bar-color)cc, var(--bar-color));border-radius:8px;position:absolute;top:0;left:0}.weight-bar__fill--animate{transition:width .15s}.weight-bar__handle{top:50%;left:calc(var(--fill-width) - 16px);background:var(--bar-color);pointer-events:none;border:3px solid #fff;border-radius:50%;width:32px;height:32px;position:absolute;transform:translateY(-50%);box-shadow:0 2px 6px #0003}.weight-bar__handle--animate{transition:left .15s}.report-overlay{z-index:200;background:#00000080;justify-content:center;align-items:flex-end;animation:.2s ease-out fadeIn;display:flex;position:fixed;inset:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.report-card{background:#fff;border-radius:16px 16px 0 0;flex-direction:column;width:100%;max-width:500px;max-height:85vh;animation:.3s ease-out slideUp;display:flex;overflow:hidden}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}.report-card__header{border-bottom:1px solid #f0f0f0;flex-shrink:0;justify-content:space-between;align-items:center;padding:16px 20px;display:flex}.report-card__title{color:var(--text);margin:0;font-size:1.1rem;font-weight:600}.report-card__close{color:#999;cursor:pointer;background:0 0;border:none;border-radius:50%;justify-content:center;align-items:center;width:44px;height:44px;font-size:1.2rem;display:flex}.report-card__close:active{background:#f0f0f0}.report-card__body{-webkit-overflow-scrolling:touch;flex:1;overflow-y:auto}.report-card__overview,.report-card__insights,.report-card__weights,.report-card__narrative{padding:16px 20px}.report-card__overview{border-bottom:1px solid #f0f0f0}.report-card__meta{color:#888;margin-bottom:4px;font-size:.8rem;display:block}.report-card__summary{color:var(--text);margin-top:8px;font-size:.9rem}.report-card__summary--good{color:#70ad47}.report-card__section-title{color:var(--text);margin:0 0 12px;font-size:.95rem;font-weight:600}.insight-card{background:#fafafa;border-left:3px solid #ddd;border-radius:8px;margin-bottom:8px;padding:12px}.insight-card.severity-high{background:#fff5f5;border-left-color:#e53935}.insight-card.severity-medium{background:#fff8e1;border-left-color:#ff9800}.insight-card.severity-low{border-left-color:#ffc107}.insight-card.severity-none{background:#f1f8f1;border-left-color:#70ad47}.insight-card__header{justify-content:space-between;align-items:center;margin-bottom:4px;display:flex}.insight-card__label{font-size:.9rem;font-weight:600}.insight-card__badge{color:#666;background:#eee;border-radius:10px;padding:2px 8px;font-size:.75rem}.severity-high .insight-card__badge{color:#e53935;background:#fde8e8}.severity-medium .insight-card__badge{color:#e65100;background:#fff3cd}.severity-none .insight-card__badge{color:#388e3c;background:#e8f5e9}.insight-card__stats{color:#888;gap:12px;margin-bottom:6px;font-size:.75rem;display:flex}.insight-card__text{color:#444;margin:0;font-size:.85rem;line-height:1.6}.weight-comparison{flex-direction:column;gap:8px;display:flex}.weight-comparison__row{align-items:center;gap:8px;display:flex}.weight-comparison__label{color:#666;flex-shrink:0;width:40px;font-size:.85rem}.weight-comparison__bar{background:#f0f0f0;border-radius:10px;flex:1;height:20px;overflow:hidden}.weight-comparison__fill{border-radius:10px;min-width:8%;height:100%;transition:width .5s ease-out}.weight-comparison__value{text-align:right;width:40px;color:var(--text);flex-shrink:0;font-size:.85rem;font-weight:600}.report-card__narrative-text{color:#444;white-space:pre-wrap;margin:0;font-size:.9rem;line-height:1.8}.report-card__actions{padding:16px 20px;padding-bottom:calc(16px + var(--safe-bottom,0px));border-top:1px solid #f0f0f0;flex-shrink:0}.report-card__apply-btn{color:#fff;cursor:pointer;background:linear-gradient(135deg,#d4a853,#c49a40);border:none;border-radius:12px;width:100%;padding:14px;font-size:1rem;font-weight:600;transition:opacity .15s}.report-card__apply-btn:active:not(:disabled){opacity:.9;transform:scale(.98)}.report-card__apply-btn:disabled{opacity:.6;cursor:not-allowed}.app-container{background:var(--bg);max-width:500px;height:100%;padding-top:var(--safe-top,0px);flex-direction:column;margin:0 auto;display:flex;position:relative}.chat-area{-webkit-overflow-scrolling:touch;scroll-behavior:smooth;flex-direction:column;flex:1;gap:12px;padding:12px 16px;display:flex;overflow:hidden auto}.menu-bar{background:var(--menu-bg);-webkit-overflow-scrolling:touch;scrollbar-width:none;border-top:1px solid #e0e0e0;flex-shrink:0;gap:8px;padding:8px 12px;display:flex;overflow-x:auto}.menu-bar::-webkit-scrollbar{display:none}.menu-btn{cursor:pointer;border-radius:12px;flex-direction:column;flex-shrink:0;align-items:center;gap:2px;min-width:60px;padding:8px 10px;transition:all .15s;display:flex}.menu-btn--active{opacity:1;background:#fff;border:1px solid #ddd}.menu-btn--inactive{opacity:.45;background:#e8e8e8;border:1px solid #ddd}.menu-btn--disabled{cursor:not-allowed;opacity:.3!important}.menu-btn--active:not(.menu-btn--disabled):active{background:#f5f5f5;transform:scale(.95)}.menu-btn__icon{font-size:1.2rem}.menu-btn__label{color:#666;font-size:.7rem;font-weight:600}.menu-btn--active .menu-btn__label{color:#8b6914}.menu-btn__sublabel{color:#aaa;font-size:.6rem}.menu-btn__unlock{color:#999;font-size:.65rem}.menu-btn--upload{background:#fff8e1;border:1.5px solid var(--golden)!important}.menu-btn--upload:not(.menu-btn--disabled):active{background:#fff0c0;transform:scale(.95)}.menu-btn--upload .menu-btn__label{font-weight:700;color:var(--golden)!important}.upload-btn{color:#666;cursor:pointer;background:0 0;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:44px;height:44px;font-size:1.2rem;transition:background .15s;display:flex}.upload-btn:active:not(:disabled){background:#f0f0f0}.upload-btn:disabled{opacity:.5;cursor:not-allowed}.input-area{padding:8px 12px;padding-bottom:calc(8px + var(--safe-bottom));background:var(--menu-bg);border-top:1px solid #e0e0e0;flex-shrink:0;align-items:center;gap:8px;display:flex}.input-area input{background:#fff;border:1px solid #ddd;border-radius:20px;outline:none;flex:1;padding:8px 12px;font-size:.95rem}.input-area input:focus{border-color:var(--golden)}.input-area__send-btn{background:var(--golden);color:#fff;white-space:nowrap;border-radius:20px;padding:8px 16px;font-size:.9rem;font-weight:600}.input-area__send-btn:disabled{opacity:.45;cursor:not-allowed}.input-area__send-btn:active:not(:disabled){transform:scale(.96)}.quick-reply-btn:hover,.quick-reply-pill:hover{transform:scale(1.03);background:#fff8e1!important}.quick-reply-btn:active:not(:disabled),.quick-reply-pill:active:not(:disabled){transform:scale(.96);background:#fff0c0!important}.chat-area>div>div{-webkit-user-select:text;user-select:text}.effect-layer{pointer-events:none;z-index:100;position:fixed;inset:0}#poster-templates{width:375px;position:absolute;top:0;left:-9999px}.poster-capturing{z-index:9999;position:fixed!important;top:0!important;left:0!important}@keyframes fadeInUp{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}.fade-in-up{animation:.2s ease-out fadeInUp}@keyframes pulse-glow{0%,to{box-shadow:0 0 4px var(--golden-light)}50%{box-shadow:0 0 12px var(--golden)}}.pulse-glow{animation:2s ease-in-out infinite pulse-glow}@keyframes dot-bounce{0%,80%,to{transform:translateY(0)}40%{transform:translateY(-4px)}}.dot-bounce{animation:1.2s ease-in-out infinite dot-bounce;display:inline-block}.dot-bounce:nth-child(2){animation-delay:.2s}.dot-bounce:nth-child(3){animation-delay:.4s}@keyframes shake{0%,to{transform:rotate(-8deg)}50%{transform:rotate(8deg)}}@keyframes stickBounce{0%,to{transform:translateY(0)}50%{transform:translateY(-6px)}}@keyframes danmaku-scroll{0%{transform:translate(0)}to{transform:translate(calc(-100vw - 100%))}}@keyframes blink{0%,to{opacity:1}50%{opacity:0}}.streaming-cursor{background:var(--golden);vertical-align:text-bottom;width:3px;height:1em;margin-left:1px;animation:.8s step-end infinite blink;display:inline-block}.login-overlay{z-index:200;background:#00000080;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.login-modal{background:#fff;border-radius:16px;width:min(360px,90vw);padding:24px;position:relative;box-shadow:0 8px 32px #0003}.login-modal h3{color:var(--golden);margin:0 0 4px;font-size:1.2rem}.login-modal .login-reason{color:#888;margin-bottom:20px;font-size:.85rem}.login-modal input{box-sizing:border-box;border:1px solid #ddd;border-radius:8px;outline:none;width:100%;margin-bottom:12px;padding:10px 12px;font-size:.95rem}.login-modal input:focus{border-color:var(--golden)}.login-modal .code-row{gap:8px;display:flex}.login-modal .code-row input{flex:1;margin-bottom:0}.login-modal .code-row button{border:1px solid var(--golden);color:var(--golden);white-space:nowrap;cursor:pointer;background:#fff;border-radius:8px;padding:10px 14px;font-size:.85rem}.login-modal .code-row button:disabled{opacity:.5;cursor:not-allowed}.login-modal .login-btn{background:var(--golden);color:#fff;cursor:pointer;border:none;border-radius:8px;width:100%;margin-top:16px;padding:12px;font-size:1rem;font-weight:600}.login-modal .login-btn:disabled{opacity:.5;cursor:not-allowed}.login-modal .close-btn{color:#999;cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;min-width:44px;min-height:44px;padding:10px;font-size:1.2rem;display:flex;position:absolute;top:8px;right:8px}.quick-reply-row{flex-wrap:wrap;gap:8px;margin-top:4px;margin-bottom:8px;padding-left:4px;display:flex}.quick-reply-pill{border:1px solid var(--golden);color:#8b6914;white-space:nowrap;text-overflow:ellipsis;touch-action:manipulation;cursor:pointer;background:#fff;border-radius:18px;max-width:100%;min-height:44px;padding:12px 16px;font-size:.85rem;font-weight:500;transition:background .15s,transform .1s;overflow:hidden}.quick-reply-pill:hover{background:#fff8e1;transform:scale(1.03)}.quick-reply-pill:active:not(:disabled){background:#fff0c0;transform:scale(.96)}.quick-reply-pill:disabled{opacity:.5;cursor:default;pointer-events:none}.pending-input-bar{background:var(--golden-light);justify-content:space-between;align-items:center;gap:8px;padding:6px 12px;display:flex}.pending-input-bar__text{color:var(--golden);font-size:.8rem}.pending-input-bar__cancel{color:var(--golden);border:1px solid var(--golden);cursor:pointer;background:0 0;border-radius:4px;padding:2px 8px;font-size:.75rem}.degraded-notice{background:var(--golden-light);color:var(--golden);text-align:center;justify-content:center;align-items:center;gap:8px;padding:6px 12px;font-size:.8rem;display:flex}.degraded-notice__retry{border:1px solid var(--golden);color:var(--golden);cursor:pointer;background:#fff;border-radius:4px;padding:2px 8px;font-size:.75rem}.degraded-notice__dismiss{color:var(--golden);cursor:pointer;background:0 0;border:none;padding:0 4px;font-size:1rem}.error-notice{color:#c0392b;text-align:center;background:#fff5f5;justify-content:center;align-items:center;gap:8px;padding:6px 12px;font-size:.8rem;display:flex}.error-notice__retry{color:#c0392b;cursor:pointer;background:#fff;border:1px solid #c0392b;border-radius:4px;padding:2px 8px;font-size:.75rem}.error-notice__dismiss{color:#c0392b;cursor:pointer;background:0 0;border:none;padding:0 4px;font-size:1rem}.api-user-bubble{justify-content:flex-end;margin-bottom:2px;display:flex}.api-user-bubble__content{background:var(--user-bubble);color:#fff;white-space:pre-wrap;word-break:break-word;max-width:82%;box-shadow:var(--shadow);border-radius:16px 16px 4px;padding:10px 14px;font-size:.92rem;line-height:1.65}.api-user-bubble__content--image{box-shadow:none;background:0 0;padding:4px}.api-user-bubble__content--image img{border-radius:4px;max-width:100%;max-height:200px;display:block}.streaming-bubble{justify-content:flex-start;margin-bottom:2px;display:flex}.streaming-bubble__content{background:var(--bot-bubble);max-width:82%;color:var(--text);white-space:pre-wrap;word-break:break-word;box-shadow:var(--shadow);border-radius:16px 16px 16px 4px;padding:10px 14px;font-size:.92rem;line-height:1.65}.streaming-bubble__content--collapsed{max-height:300px;position:relative;overflow:hidden}.streaming-bubble__expand{background:linear-gradient(transparent, var(--bot-bubble));text-align:center;cursor:pointer;color:var(--golden);padding:24px 14px 8px;font-size:.85rem;font-weight:600;position:absolute;bottom:0;left:0;right:0}.streaming-bubble__collapse{text-align:center;cursor:pointer;color:var(--golden);margin-top:8px;font-size:.85rem;font-weight:600}.chat-header{z-index:10;background:#fff;border-bottom:1px solid #e0e0e0;flex-shrink:0;align-items:center;gap:10px;padding:12px 16px;display:flex}.chat-header__avatar{background:linear-gradient(135deg,#f0d68a,#d4a853);border-radius:50%;justify-content:center;align-items:center;width:36px;height:36px;font-size:20px;display:flex}.chat-header__info{flex:1}.chat-header__name{font-size:.95rem;font-weight:600}.chat-header__subtitle{color:#888;font-size:.75rem}.chat-header__user{color:#888;font-size:.8rem}.chat-header__report-btn{cursor:pointer;background:0 0;border:none;border-radius:50%;justify-content:center;align-items:center;width:44px;height:44px;font-size:1.2rem;transition:background .15s;display:flex}.chat-header__report-btn:active:not(:disabled){background:#f0f0f0}.chat-header__report-btn--disabled{opacity:.4;cursor:not-allowed}.input-area__char-count{pointer-events:none;font-size:.7rem;position:absolute;top:50%;right:80px;transform:translateY(-50%)}.input-area__char-count--warn{color:#e53935}.input-area__char-count--normal{color:#999}
