:root{--bg: var(--tg-theme-bg-color, #ffffff);--secondary-bg: var(--tg-theme-secondary-bg-color, #efeff4);--text: var(--tg-theme-text-color, #000000);--hint: var(--tg-theme-hint-color, #8e8e93);--link: var(--tg-theme-link-color, #007aff);--button: var(--tg-theme-button-color, #007aff);--button-text: var(--tg-theme-button-text-color, #ffffff);--section-bg: var(--tg-theme-section-bg-color, #ffffff);--section-header: var(--tg-theme-section-header-text-color, #6d6d72);--separator: var(--tg-theme-section-separator-color, #c8c7cc);--subtitle: var(--tg-theme-subtitle-text-color, #8e8e93);--destructive: var(--tg-theme-destructive-text-color, #ff3b30);--accent: var(--tg-theme-accent-text-color, #007aff);--header-bg: var(--tg-theme-header-bg-color, #f7f7f7);--bottom-bar-bg: var(--tg-theme-bottom-bar-bg-color, #f7f7f7);--green: #34c759;--orange: #ff9500;--red: #ff3b30;--purple: #af52de;--teal: #32ade6;--indigo: #5856d6;--yellow: #ffcc00;--pink: #ff2d55;--gray: #8e8e93;--mint: #00c7be;--brown: #a2845e;--fill: rgba(120, 120, 128, .12);--fill-2: rgba(120, 120, 128, .16);--fill-3: rgba(120, 120, 128, .24);--press: rgba(0, 0, 0, .06);--radius: 10px;--radius-lg: 14px;--cell-h: 44px;--inset: 16px;--tabbar-h: 49px;--safe-top: 0px;--safe-bottom: env(safe-area-inset-bottom, 0px);--content-top: 0px;--tg-viewport-h: 100vh;--font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Roboto, "Segoe UI", sans-serif;color-scheme:light}:root[data-theme=dark]{--bg: var(--tg-theme-bg-color, #000000);--secondary-bg: var(--tg-theme-secondary-bg-color, #000000);--text: var(--tg-theme-text-color, #ffffff);--hint: var(--tg-theme-hint-color, #98989e);--link: var(--tg-theme-link-color, #0a84ff);--button: var(--tg-theme-button-color, #0a84ff);--section-bg: var(--tg-theme-section-bg-color, #1c1c1d);--section-header: var(--tg-theme-section-header-text-color, #8d8e93);--separator: var(--tg-theme-section-separator-color, #3d3d40);--subtitle: var(--tg-theme-subtitle-text-color, #98989e);--destructive: var(--tg-theme-destructive-text-color, #ff453a);--accent: var(--tg-theme-accent-text-color, #0a84ff);--header-bg: var(--tg-theme-header-bg-color, #1a1a1a);--bottom-bar-bg: var(--tg-theme-bottom-bar-bg-color, #1c1c1d);--green: #30d158;--orange: #ff9f0a;--red: #ff453a;--purple: #bf5af2;--teal: #64d2ff;--indigo: #5e5ce6;--yellow: #ffd60a;--pink: #ff375f;--mint: #63e6e2;--fill: rgba(120, 120, 128, .24);--fill-2: rgba(120, 120, 128, .32);--fill-3: rgba(120, 120, 128, .4);--press: rgba(255, 255, 255, .08);color-scheme:dark}*,*:before,*:after{box-sizing:border-box}html,body,#root{height:100%}html{-webkit-text-size-adjust:100%}body{margin:0;font-family:var(--font);font-size:17px;line-height:1.3;color:var(--text);background:var(--secondary-bg);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;overscroll-behavior-y:none;user-select:none;-webkit-user-select:none}input,textarea{user-select:text;-webkit-user-select:text}a{color:var(--link);text-decoration:none}button{font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer;-webkit-tap-highlight-color:transparent}input,textarea,select{font:inherit;color:var(--text);background:transparent;border:0;outline:none;width:100%;min-width:0}input::placeholder,textarea::placeholder{color:var(--hint)}::-webkit-scrollbar{display:none}.app{min-height:100%;display:flex;flex-direction:column;padding-top:var(--content-top)}.page{flex:1;padding-bottom:calc(var(--tabbar-h) + var(--safe-bottom) + 24px);animation:page-in .22s cubic-bezier(.2,.8,.2,1)}.page.no-tabbar{padding-bottom:calc(var(--safe-bottom) + 96px)}@keyframes page-in{0%{opacity:0;transform:translate(14px)}to{opacity:1;transform:none}}.navbar{position:sticky;top:0;z-index:20;background:var(--secondary-bg);padding:0 var(--inset)}.navbar-row{height:44px;display:flex;align-items:center;justify-content:space-between;gap:8px}.navbar-title{font-size:17px;font-weight:600;text-align:center;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.navbar-side{min-width:60px;display:flex;align-items:center;gap:12px;color:var(--link);font-size:17px}.navbar-side.right{justify-content:flex-end}.large-title{font-size:34px;font-weight:700;letter-spacing:.37px;padding:4px 0 8px;line-height:41px}.large-title-row{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}.large-title-row .actions{padding-bottom:12px;display:flex;gap:14px;color:var(--link)}.searchbar{display:flex;align-items:center;gap:6px;background:var(--fill);border-radius:10px;height:36px;padding:0 8px;color:var(--hint);margin-bottom:12px}.searchbar input{font-size:17px;color:var(--text)}.searchbar .clear{color:var(--hint);display:flex}.section{margin:0 var(--inset) 24px}.section+.section{margin-top:0}.section-header{font-size:13px;text-transform:uppercase;color:var(--section-header);letter-spacing:-.08px;padding:0 16px 7px;display:flex;justify-content:space-between;align-items:center}.section-header .action{text-transform:none;color:var(--link);font-size:13px}.section-footer{font-size:13px;color:var(--section-header);padding:7px 16px 0;line-height:18px}.section-footer.error{color:var(--destructive)}.list{background:var(--section-bg);border-radius:var(--radius);overflow:hidden}.cell{display:flex;align-items:center;min-height:var(--cell-h);padding:0 16px;gap:12px;position:relative;text-align:left;width:100%;color:var(--text)}.cell.tappable:active{background:var(--press)}.cell.align-top{align-items:flex-start}.cell.align-top>.avatar,.cell.align-top>.cell-icon{margin-top:10px}.cell+.cell:before,.cell-sep:before{content:"";position:absolute;left:16px;right:0;top:0;height:.5px;background:var(--separator);opacity:.8}.cell.has-icon+.cell:before{left:60px}.cell-icon{width:29px;height:29px;border-radius:7px;display:flex;align-items:center;justify-content:center;color:#fff;flex-shrink:0}.cell-icon.plain{color:var(--link);background:transparent;width:28px}.cell-body{flex:1;min-width:0;padding:10px 0}.cell-title{font-size:17px;line-height:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cell-title.wrap{white-space:normal}.cell-subtitle{font-size:15px;line-height:20px;color:var(--subtitle);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cell-subtitle.wrap{white-space:normal}.cell-after{display:flex;align-items:center;gap:6px;color:var(--hint);font-size:17px;flex-shrink:0;max-width:55%}.cell-after .value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cell-chevron{color:#c4c4c6;display:flex;margin-right:-6px}:root[data-theme=dark] .cell-chevron{color:#5a5a5e}.cell.destructive .cell-title,.cell.accent .cell-title{color:var(--destructive)}.cell.accent .cell-title{color:var(--link)}.cell.center .cell-title{text-align:center}.cell .cell-title.link{color:var(--link)}.cell-input{min-height:var(--cell-h)}.cell-input input,.cell-input textarea{font-size:17px;padding:11px 0;line-height:22px}.cell-input textarea{resize:none;min-height:88px}.cell-input label{color:var(--text);font-size:17px;white-space:nowrap;min-width:96px}.cell-input .unit{color:var(--hint);white-space:nowrap}.switch{width:51px;height:31px;border-radius:16px;background:var(--fill-3);position:relative;transition:background .2s;flex-shrink:0}.switch.on{background:var(--green)}.switch:after{content:"";position:absolute;top:2px;left:2px;width:27px;height:27px;border-radius:50%;background:#fff;box-shadow:0 3px 8px #00000026,0 3px 1px #0000000f;transition:transform .2s cubic-bezier(.2,.8,.2,1)}.switch.on:after{transform:translate(20px)}.switch:disabled{opacity:.5}.segmented{display:flex;background:var(--fill);border-radius:9px;padding:2px;position:relative;margin:0 var(--inset) 16px}.segmented.in-list{margin:10px 16px}.segmented button{flex:1;height:28px;border-radius:7px;font-size:13px;font-weight:500;color:var(--text);position:relative;z-index:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 6px;transition:color .15s}.segmented button.active{font-weight:600}.segmented .thumb{position:absolute;top:2px;bottom:2px;border-radius:7px;background:var(--section-bg);box-shadow:0 3px 8px #0000001f,0 3px 1px #0000000a;transition:left .2s cubic-bezier(.2,.8,.2,1)}:root[data-theme=dark] .segmented .thumb{background:#636366}.btn{display:flex;align-items:center;justify-content:center;gap:8px;height:50px;border-radius:var(--radius);font-size:17px;font-weight:600;width:100%;background:var(--button);color:var(--button-text);transition:opacity .15s,transform .1s}.btn:active{opacity:.8;transform:scale(.99)}.btn:disabled{opacity:.45;pointer-events:none}.btn.tinted{background:color-mix(in srgb,var(--button) 14%,transparent);color:var(--link)}.btn.plain{background:transparent;color:var(--link);height:44px}.btn.destructive{background:color-mix(in srgb,var(--destructive) 14%,transparent);color:var(--destructive)}.btn.small{height:34px;font-size:15px;width:auto;padding:0 14px;border-radius:17px}.btn.gray{background:var(--fill);color:var(--text)}.btn-row{display:flex;gap:10px;margin:0 var(--inset) 24px}.btn-row .btn{flex:1}.bottom-action{position:fixed;left:0;right:0;bottom:0;padding:10px var(--inset) calc(var(--safe-bottom) + 10px);background:linear-gradient(to top,var(--secondary-bg) 70%,transparent);z-index:30}.page:not(.no-tabbar) .bottom-action{bottom:calc(var(--tabbar-h) + var(--safe-bottom));padding-bottom:10px}.chips{display:flex;flex-wrap:wrap;gap:8px}.chip{display:inline-flex;align-items:center;gap:4px;height:30px;padding:0 10px 0 12px;border-radius:15px;background:var(--fill);font-size:15px;color:var(--text);max-width:100%}.chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chip.active{background:var(--button);color:var(--button-text)}.chip .x{display:flex;color:var(--hint)}.chip.active .x{color:var(--button-text)}.badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--red);color:#fff;font-size:13px;font-weight:600}.badge.gray{background:var(--fill-2);color:var(--hint)}.badge.blue{background:var(--button)}.badge.green{background:var(--green)}.badge.orange{background:var(--orange)}.tag{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:600;padding:2px 7px;border-radius:6px;background:var(--fill);color:var(--hint);text-transform:uppercase;letter-spacing:.2px}.tag.green{background:color-mix(in srgb,var(--green) 18%,transparent);color:var(--green)}.tag.blue{background:color-mix(in srgb,var(--link) 14%,transparent);color:var(--link)}.tag.red{background:color-mix(in srgb,var(--red) 14%,transparent);color:var(--red)}.tag.orange{background:color-mix(in srgb,var(--orange) 18%,transparent);color:var(--orange)}.tag.purple{background:color-mix(in srgb,var(--purple) 16%,transparent);color:var(--purple)}.dot{width:8px;height:8px;border-radius:50%;background:var(--gray);flex-shrink:0;display:inline-block}.dot.green{background:var(--green)}.dot.red{background:var(--red)}.dot.orange{background:var(--orange)}.dot.blue{background:var(--link)}.dot.pulse{animation:pulse 1.4s ease-in-out infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.35}}.progress{height:4px;border-radius:2px;background:var(--fill-2);overflow:hidden;width:100%}.progress>div{height:100%;background:var(--button);border-radius:2px;transition:width .4s ease}.progress.indeterminate>div{width:35%;animation:indet 1.3s ease-in-out infinite}@keyframes indet{0%{transform:translate(-100%)}to{transform:translate(320%)}}.avatar{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:600;font-size:16px;flex-shrink:0;text-transform:uppercase}.avatar.sm{width:32px;height:32px;font-size:13px}.avatar.lg{width:56px;height:56px;font-size:22px}.avatar.square{border-radius:12px}.empty{text-align:center;padding:48px 32px;color:var(--hint)}.empty .icon{color:var(--hint);opacity:.6;margin-bottom:12px;display:flex;justify-content:center}.empty h3{margin:0 0 6px;font-size:20px;font-weight:600;color:var(--text)}.empty p{margin:0 0 18px;font-size:15px;line-height:20px}.spinner{width:20px;height:20px;border-radius:50%;border:2px solid var(--fill-3);border-top-color:var(--hint);animation:spin .8s linear infinite;display:inline-block}.spinner.lg{width:32px;height:32px}@keyframes spin{to{transform:rotate(360deg)}}.center{display:flex;justify-content:center;align-items:center;padding:40px}.tabbar{position:fixed;left:0;right:0;bottom:0;height:calc(var(--tabbar-h) + var(--safe-bottom));padding-bottom:var(--safe-bottom);background:var(--bottom-bar-bg);border-top:.5px solid var(--separator);display:flex;z-index:40;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}.tabbar button{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--hint);font-size:10px;font-weight:500;position:relative;padding-top:4px}.tabbar button.active{color:var(--link)}.tabbar .badge{position:absolute;top:2px;left:calc(50% + 4px);min-width:18px;height:18px;font-size:11px;border:2px solid var(--bottom-bar-bg);height:20px}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;z-index:50;animation:fade .2s}@keyframes fade{0%{opacity:0}}.sheet{position:fixed;left:0;right:0;bottom:0;z-index:51;background:var(--secondary-bg);border-radius:14px 14px 0 0;padding:8px 0 calc(var(--safe-bottom) + 12px);max-height:88vh;overflow-y:auto;animation:sheet-in .28s cubic-bezier(.2,.8,.2,1)}@keyframes sheet-in{0%{transform:translateY(100%)}}.sheet-grabber{width:36px;height:5px;border-radius:3px;background:var(--fill-3);margin:0 auto 10px}.sheet-title{text-align:center;font-size:17px;font-weight:600;padding:4px 16px 14px}.hint{color:var(--hint);font-size:13px}.text-15{font-size:15px}.muted{color:var(--hint)}.row{display:flex;align-items:center;gap:8px}.wrap{flex-wrap:wrap}.grow{flex:1;min-width:0}.ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px}.stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:0 var(--inset) 24px}.stats-grid.cols-3{grid-template-columns:repeat(3,1fr)}.stat{background:var(--section-bg);border-radius:var(--radius);padding:12px 14px}.stat .value{font-size:22px;font-weight:700;letter-spacing:-.3px}.stat .label{font-size:13px;color:var(--hint);margin-top:2px}.message-bubble{background:var(--fill);border-radius:12px;padding:8px 12px;font-size:15px;line-height:20px;white-space:pre-wrap;word-break:break-word;margin-top:6px;max-height:120px;overflow:hidden}.kw-mark{background:color-mix(in srgb,var(--yellow) 45%,transparent);border-radius:3px}.inline-error{margin:-12px var(--inset) 20px;color:var(--destructive);font-size:13px;padding:0 16px}.toast{position:fixed;left:16px;right:16px;bottom:calc(var(--tabbar-h) + var(--safe-bottom) + 16px);background:#1e1e1eeb;color:#fff;border-radius:12px;padding:12px 16px;font-size:15px;z-index:60;animation:toast-in .25s;display:flex;gap:10px;align-items:center}@keyframes toast-in{0%{transform:translateY(16px);opacity:0}}.stepper{display:flex;align-items:center;background:var(--fill);border-radius:8px;height:32px}.stepper button{width:44px;height:100%;display:flex;align-items:center;justify-content:center;color:var(--text)}.stepper span{min-width:48px;text-align:center;font-size:17px}.code-input{display:flex;gap:8px;justify-content:center;padding:12px 16px}.code-input input{width:44px;height:52px;text-align:center;font-size:24px;background:var(--fill);border-radius:10px}.file-drop{border:1.5px dashed var(--fill-3);border-radius:var(--radius);padding:20px;text-align:center;color:var(--hint);font-size:15px;margin:0 var(--inset) 24px;background:var(--section-bg)}.file-drop input{display:none}.skeleton{background:linear-gradient(90deg,var(--fill) 25%,var(--fill-2) 50%,var(--fill) 75%);background-size:200% 100%;animation:shimmer 1.4s infinite;border-radius:6px;height:14px}@keyframes shimmer{to{background-position:-200% 0}}
