@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/inter-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/inter-latin-500-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/inter-latin-600-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/inter-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{color-scheme:light;--u-bg: #f8fafc;--u-panel: #ffffff;--u-soft: #f1f5f9;--u-soft-hover: #e2e8f0;--u-side: #0c1220;--u-side-text: #e2e8f0;--u-text: #0f172a;--u-muted: #64748b;--u-border: #e2e8f0;--u-border-hover: #cbd5e1;--u-brand: #0d9488;--u-brand-fill: #0f766e;--u-brand-hover: #115e59;--u-brand-soft: rgba(13, 148, 136, .08);--u-on-brand: #ffffff;--u-good: #10b981;--u-warn: #f59e0b;--u-bad: #ef4444;--u-good-bg: #ecfdf5;--u-warn-bg: #fffbeb;--u-bad-bg: #fef2f2;--u-diamond: #2563eb;--u-shadow: 0 4px 6px -1px rgba(0, 0, 0, .05), 0 2px 4px -2px rgba(0, 0, 0, .05);--u-shadow-card: 0 10px 25px -5px rgba(0, 0, 0, .06), 0 8px 10px -6px rgba(0, 0, 0, .04);--u-overlay: color-mix(in srgb, var(--u-side) 70%, transparent);font-family:Inter,-apple-system,BlinkMacSystemFont,SF Pro Display,PingFang SC,Segoe UI,Roboto,Microsoft YaHei,sans-serif;background:var(--u-bg);color:var(--u-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:root[data-theme=dark]{color-scheme:dark;--u-bg: #070b14;--u-panel: #0f172a;--u-soft: #172033;--u-soft-hover: #1e293b;--u-side: #050812;--u-text: #f8fafc;--u-muted: #94a3b8;--u-border: rgba(255, 255, 255, .08);--u-border-hover: rgba(255, 255, 255, .16);--u-brand: #2dd4bf;--u-brand-fill: #14b8a6;--u-brand-hover: #5eead4;--u-brand-soft: rgba(45, 212, 191, .14);--u-good: #34d399;--u-warn: #fbbf24;--u-bad: #f87171;--u-good-bg: rgba(16, 185, 129, .14);--u-warn-bg: rgba(245, 158, 11, .14);--u-bad-bg: rgba(239, 68, 68, .14);--u-diamond: #3b82f6}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;padding:0;min-height:100%}body{background:var(--u-bg);color:var(--u-text);font:14px/1.5 Inter,-apple-system,BlinkMacSystemFont,SF Pro Text,PingFang SC,Segoe UI,Roboto,sans-serif;letter-spacing:-.01em;overflow-x:hidden}.skip-link{position:absolute;left:-999px;top:12px;z-index:100;padding:8px 14px;border-radius:8px;background:var(--u-brand-fill);color:var(--u-on-brand);font-weight:500;box-shadow:var(--u-shadow)}.skip-link:focus{left:16px}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}button,input,select,textarea{font:inherit}button{cursor:pointer;background:transparent;border:0;padding:0}a{color:inherit;text-decoration:none}[hidden]{display:none}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:8px 14px;border-radius:10px;border:1px solid var(--u-border);background:var(--u-panel);color:var(--u-text);font-weight:600;font-size:13px;text-decoration:none;cursor:pointer;transition:all .15s ease;flex:none}.btn:hover,.btn:active{background:var(--u-soft);border-color:var(--u-border-hover)}.btn.primary{background:var(--u-brand-fill);color:var(--u-on-brand);border-color:transparent;box-shadow:0 2px 8px #0d948840}.btn.primary:hover,.btn.primary:active{background:var(--u-brand-hover);box-shadow:0 4px 12px #0d948859}.btn.danger{background:var(--u-bad-bg);color:var(--u-bad);border-color:color-mix(in srgb,var(--u-bad) 30%,transparent)}.btn.danger-solid{background:var(--u-bad);color:#fff;border-color:transparent}.btn.ghost{background:transparent;border-color:transparent;color:var(--u-muted)}.btn.ghost:hover,.btn.ghost:active{background:var(--u-soft);color:var(--u-text)}.btn.icon{width:36px;height:36px;min-height:36px;padding:0;border-radius:8px}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-block{width:100%}.link{color:var(--u-brand);text-decoration:none;font-weight:500;cursor:pointer;transition:opacity .12s ease}.link:hover{opacity:.8;text-decoration:underline}.form-actions{display:flex;gap:8px;margin-top:18px;justify-content:flex-end;flex-wrap:wrap}.boot-splash{min-height:100dvh;display:grid;place-items:center;background:var(--u-bg)}.boot-loader{display:flex;flex-direction:column;align-items:center;justify-content:center}.boot-logo{width:52px;height:52px;border-radius:16px;animation:boot-pulse 1.4s ease-in-out infinite;box-shadow:0 0 24px #0d948866}@keyframes boot-pulse{0%,to{transform:scale(.96);opacity:.85}50%{transform:scale(1.04);opacity:1}}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:max(20px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));background:radial-gradient(60% 50% at 20% 10%,color-mix(in srgb,var(--u-brand) 18%,transparent),transparent 70%),radial-gradient(50% 45% at 80% 90%,color-mix(in srgb,#0284c7 16%,transparent),transparent 65%),var(--u-bg)}@supports (height: 100dvh){.login-wrap{min-height:100dvh}}.login-panel{width:min(400px,100%);background:var(--u-panel);border:1px solid var(--u-border);border-radius:20px;padding:28px 22px;box-shadow:var(--u-shadow-card)}.login-brand{display:flex;align-items:center;gap:12px;margin-bottom:22px}.login-brand h1{font-size:20px;font-weight:700;letter-spacing:-.03em;margin:0;color:var(--u-text)}.login-brand p{color:var(--u-muted);margin:2px 0 0;font-size:13px}.error-actions{display:flex;flex-wrap:wrap;gap:10px}.error-actions .btn{flex:1 1 150px}.login-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border:1px solid var(--u-border);border-radius:12px;margin-bottom:22px;background:var(--u-soft)}.login-tabs button,.login-tabs a{border:0;background:transparent;color:var(--u-muted);padding:8px 12px;border-radius:8px;text-decoration:none;text-align:center;display:grid;place-items:center;min-height:38px;font-weight:500;font-size:13.5px;transition:all .15s ease}.login-tabs button.active,.login-tabs a.active{color:var(--u-text);background:var(--u-panel);font-weight:600;box-shadow:0 1px 3px #00000014}.shell{min-height:100dvh;display:flex;flex-direction:column}.desktop-sidebar{display:none}main{min-width:0;flex:1;display:flex;flex-direction:column}.top{height:54px;background:color-mix(in srgb,var(--u-panel) 88%,transparent);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-bottom:1px solid var(--u-border);display:flex;align-items:center;justify-content:space-between;padding:0 max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left));position:sticky;top:0;z-index:40;gap:12px}.heading{min-width:0;display:flex;align-items:center;gap:8px;flex:1}.mobile-brand-icon{display:flex;align-items:center;flex:none}.mobile-mini-logo{width:28px;height:28px;border-radius:8px}.heading-back{min-height:36px;min-width:36px;padding:0;display:grid;place-items:center;border-radius:8px;flex:none;background:var(--u-soft);color:var(--u-text);border:1px solid var(--u-border)}.heading-back-text{display:none}.user{display:flex;align-items:center;gap:8px;flex:none}.avatar{border:1px solid var(--u-border);width:32px;height:32px;border-radius:50%;background:var(--u-brand-soft);color:var(--u-brand);font-weight:600;font-size:13px;display:inline-flex;align-items:center;justify-content:center;padding:0;text-decoration:none;flex:none;transition:transform .15s ease}.chip-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:7em}.chip{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:0;padding:5px 10px;border-radius:999px;border:1px solid var(--u-border);background:var(--u-panel);color:var(--u-brand);text-decoration:none;font-weight:600;font-size:12.5px;transition:all .15s ease;box-shadow:0 1px 2px #0000000a}.chip:hover,.chip:active{background:var(--u-soft);border-color:var(--u-border-hover)}.chip.compact{width:32px;min-width:32px;padding:0;height:32px}.chip.compact .chip-text{display:none}.promo-chip{display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:5px 12px;border-radius:999px;border:1px solid transparent;background:linear-gradient(135deg,var(--u-brand-fill),#0284c7);color:#fff;text-decoration:none;font-weight:700;font-size:12.5px;line-height:1.4;white-space:nowrap;box-shadow:0 2px 10px #0d948859;transition:all .15s ease;flex:none}.promo-chip:hover,.promo-chip:active{filter:brightness(1.08);box-shadow:0 4px 14px #0d948873}.theme-label{display:none}.content{width:100%;max-width:1100px;min-width:0;margin-inline:auto;padding:14px max(14px,env(safe-area-inset-right)) calc(76px + env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));flex:1}.content:focus:not(:focus-visible){outline:none}.mobile-tabbar{position:fixed;bottom:0;left:0;right:0;height:calc(56px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:color-mix(in srgb,var(--u-panel) 88%,transparent);backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);border-top:1px solid var(--u-border);display:grid;grid-template-columns:repeat(3,1fr);z-index:90;box-shadow:0 -4px 16px #0000000a}.mobile-tab-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-decoration:none;color:var(--u-muted);font-size:11px;font-weight:500;transition:all .15s ease;-webkit-user-select:none;user-select:none;position:relative}.mobile-tab-icon{transition:transform .15s cubic-bezier(.16,1,.3,1),color .15s ease}.mobile-tab-item.active{color:var(--u-brand);font-weight:600}.mobile-tab-item.active .mobile-tab-icon{transform:translateY(-1px) scale(1.08);color:var(--u-brand)}.mobile-tab-item:active{background:var(--u-soft)}.home-update,.update-banner{display:flex;align-items:center;justify-content:space-between;gap:10px;background:color-mix(in srgb,var(--u-brand-soft) 80%,var(--u-panel));border:1px solid color-mix(in srgb,var(--u-brand) 25%,var(--u-border));border-radius:12px;padding:10px 14px;margin-bottom:14px}.home-update .btn,.update-banner .btn{flex:none;padding:6px 12px;font-size:12.5px}.home-update-copy{min-width:0;flex:1}.home-update-copy strong,.update-banner strong{display:block;font-size:13px;font-weight:600;color:var(--u-brand)}.home-update-copy p,.update-banner p{margin:2px 0 0;font-size:12px;color:var(--u-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.home-bar{display:flex;flex-direction:column;gap:10px;margin-bottom:16px}.script-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.script-list-heading h2{margin:0;font-size:17px;line-height:1.25}.script-list-heading span{display:block;margin-top:2px;color:var(--u-muted);font-size:12px}.script-list-heading .btn{min-height:34px;padding:7px 12px;font-size:12px}.script-update-note{margin-bottom:10px;padding:7px 10px;border-radius:9px}.script-update-note p{max-width:42ch}.script-grid{display:grid;grid-template-columns:1fr;gap:12px}.script-card{background:var(--u-panel);border:1px solid var(--u-border);border-radius:14px;padding:12px;box-shadow:0 2px 8px #00000008;display:flex;flex-direction:column;position:relative;transition:border-color .15s ease,box-shadow .15s ease}.script-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.script-title{display:flex;align-items:center;min-width:0;flex:1}.script-name{font-size:15px;font-weight:700;letter-spacing:-.02em;margin:0;color:var(--u-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.script-title small{display:block;font-size:11.5px;color:var(--u-muted);margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-line{display:flex;align-items:center;gap:6px;min-width:0}.account-line small{flex:1;min-width:0;margin-top:2px}.reveal-account{flex:none;border:0;background:transparent;padding:0;color:var(--u-brand);font-size:11.5px;font-weight:600;line-height:1.4;cursor:pointer;white-space:nowrap}.reveal-account:hover{text-decoration:underline}.status-stack{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex:none}.license-status{display:flex;align-items:center;justify-content:flex-end;gap:5px;white-space:nowrap}.license-status time{color:var(--u-muted);font-size:11px}.badge{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:600;padding:2px 8px;border-radius:6px;background:var(--u-soft);color:var(--u-muted);border:1px solid transparent}.badge.good{background:var(--u-good-bg);color:var(--u-good);border-color:color-mix(in srgb,var(--u-good) 25%,transparent)}.badge.warn{background:var(--u-warn-bg);color:var(--u-warn);border-color:color-mix(in srgb,var(--u-warn) 25%,transparent)}.badge.bad{background:var(--u-bad-bg);color:var(--u-bad);border-color:color-mix(in srgb,var(--u-bad) 25%,transparent)}.badge.dim{background:var(--u-soft);color:var(--u-muted)}.runtime-control{margin-top:auto}.runtime-state{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-bottom:8px;color:var(--u-muted);font-size:12px}.runtime-state small{flex-basis:100%;color:var(--u-warn);font-size:11px}.auth-hint{font-size:12px;color:var(--u-warn);background:var(--u-warn-bg);border:1px solid color-mix(in srgb,var(--u-warn) 25%,transparent);border-radius:8px;padding:6px 10px;margin-bottom:8px}.card-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.card-actions .btn{min-height:34px;padding:6px 11px;font-size:12px}.card-actions .btn:first-child{flex:0 1 auto}.hero{background:radial-gradient(90% 90% at 90% 10%,color-mix(in srgb,var(--u-brand) 16%,transparent),transparent 70%),var(--u-panel);border:1px solid color-mix(in srgb,var(--u-brand) 30%,var(--u-border));border-radius:20px;padding:20px 18px;display:flex;flex-direction:column;gap:16px;margin-bottom:14px;box-shadow:var(--u-shadow-card)}.hero h2{font-size:17px;font-weight:700;margin:0 0 4px;color:var(--u-text)}.hero p{margin:0;color:var(--u-muted);font-size:13px}.hero-metric{font-size:34px;font-weight:700;line-height:1.15;letter-spacing:-.03em;color:var(--u-brand);margin:4px 0}.hero-actions{display:flex;gap:8px;width:100%}.hero-actions .btn{flex:1;min-height:40px;justify-content:center}.panel{background:var(--u-panel);border:1px solid var(--u-border);border-radius:16px;padding:16px;box-shadow:0 1px 3px #0000000a}.stat{display:flex;flex-direction:column}.stat .stat-label{color:var(--u-muted);font-size:12.5px;font-weight:500}.stat strong{display:block;font-size:22px;font-weight:700;margin:4px 0 2px;color:var(--u-text);letter-spacing:-.02em}.grid{display:grid;grid-template-columns:1fr;gap:12px;margin-bottom:14px}.grid.stats-3,.stats-3{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.stats-3 .stat{padding:10px 8px}.stats-3 .stat .stat-label{font-size:11px}.stats-3 .stat strong{font-size:16px;margin:2px 0 1px}.stats-3 .stat small{font-size:10.5px;line-height:1.2;color:var(--u-muted)}.section{margin-top:14px}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.section-head h2,.section-head h3{font-size:15px;font-weight:700;margin:0}.alert{padding:10px 14px;border-radius:10px;background:var(--u-soft);color:var(--u-text);font-size:13px;margin-bottom:12px;border:1px solid var(--u-border)}.alert.warn-alert{background:var(--u-warn-bg);color:var(--u-warn);border-color:color-mix(in srgb,var(--u-warn) 30%,transparent)}.alert.ok{background:var(--u-good-bg);color:var(--u-good);border-color:color-mix(in srgb,var(--u-good) 30%,transparent)}.result{font-size:13px;color:var(--u-muted);margin:8px 0}.result.bad{color:var(--u-bad)}.mini{background:var(--u-soft);padding:12px;border-radius:10px;margin:10px 0}.mini-row{display:flex;justify-content:space-between;align-items:center;font-size:13px;padding:4px 0}.mini-row span{color:var(--u-muted)}.mini-row strong{color:var(--u-text)}.form-grid{display:grid;grid-template-columns:1fr;gap:14px}.field{display:flex;flex-direction:column;gap:6px}.field label{font-size:13px;font-weight:600;color:var(--u-text)}.field-hint,.field small{font-size:11.5px;color:var(--u-muted)}.field-error{color:var(--u-bad);font-size:12px;font-weight:500}.input,.select,textarea{width:100%;min-height:42px;padding:10px 14px;border-radius:10px;border:1px solid var(--u-border);background:var(--u-soft);color:var(--u-text);outline:none;transition:all .15s ease}.password-wrap{display:flex;align-items:stretch;gap:8px;min-width:0}.password-wrap .input{min-width:0;flex:1 1 auto}.password-wrap .password-toggle{width:42px;min-height:42px;height:auto;flex:0 0 42px}.input:focus,.select:focus,textarea:focus{border-color:var(--u-brand);background:var(--u-panel);box-shadow:0 0 0 3px var(--u-brand-soft)}.input::placeholder,textarea::placeholder{color:var(--u-muted);opacity:.7}.input[aria-invalid=true],.select[aria-invalid=true],textarea[aria-invalid=true]{border-color:var(--u-bad);background:var(--u-bad-bg)}.table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:12px;border:1px solid var(--u-border);background:var(--u-panel)}table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}th{padding:10px 14px;background:var(--u-soft);color:var(--u-muted);font-weight:600;border-bottom:1px solid var(--u-border);white-space:nowrap}td{padding:12px 14px;border-bottom:1px solid var(--u-border);color:var(--u-text)}tr:last-child td{border-bottom:0}.ledger-toolbar{display:flex;align-items:center;gap:8px;margin-bottom:12px}.ledger-toolbar .select,.ledger-toolbar .input,.ledger-toolbar .btn{min-height:36px;font-size:13px;border-radius:8px}.ledger-toolbar .select,.ledger-toolbar .input{padding:6px 10px}.ledger-toolbar .btn{padding:6px 12px}.ledger-toolbar .grow{flex:1;min-width:160px}.ledger-table th,.ledger-table td{padding:9px 12px}.ledger-table td:first-child,.ledger-table th:first-child{white-space:nowrap}dialog{border:1px solid var(--u-border);border-radius:20px;background:var(--u-panel);color:var(--u-text);padding:0;width:min(440px,calc(100vw - 28px));max-height:calc(100dvh - 40px);box-shadow:0 25px 50px -12px #00000040;margin:auto}dialog.modal-wide{width:min(960px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:hidden}dialog.modal-wide[open]{display:flex;flex-direction:column}dialog::backdrop{background:var(--u-overlay);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}.modal-head{padding:16px 18px;border-bottom:1px solid var(--u-border);display:flex;align-items:center;justify-content:space-between;gap:10px}.modal-head :is(strong,h2){font-size:16px;font-weight:700;margin:0}.modal-body{padding:18px;overflow-y:auto}dialog.modal-wide .modal-body{min-height:0;max-height:none;overscroll-behavior:contain}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.switch{position:relative;width:44px;height:26px;appearance:none;background:var(--u-soft-hover);border:1px solid var(--u-border);border-radius:99px;transition:all .2s ease;flex:none;margin:0}.switch:checked{background:var(--u-brand-fill);border-color:var(--u-brand-fill)}.switch:before{content:"";position:absolute;left:2px;top:2px;width:20px;height:20px;border-radius:50%;background:#fff;transition:transform .2s cubic-bezier(.16,1,.3,1);box-shadow:0 1px 3px #0003}.switch:checked:before{transform:translate(18px)}.policy-panel .switch{width:40px;height:24px;background:color-mix(in srgb,var(--u-muted) 24%,var(--u-panel))}.policy-panel .switch:checked{background:var(--u-brand-fill)}.policy-panel .switch:before{width:18px;height:18px}.policy-panel .switch:checked:before{transform:translate(16px)}.strategy-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:38px;padding:5px 0}.strategy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px;row-gap:2px;padding:2px 0}.strategy-grid .strategy-row{padding:3px 0}.strategy-group-fields>.strategy-row{border-bottom:1px solid var(--u-border)}.strategy-group-fields>.strategy-row:last-child{border-bottom:none}.strategy-group{margin-bottom:7px;border:1px solid var(--u-border);border-radius:9px;background:var(--u-panel);overflow:visible;transition:border-color .15s ease,box-shadow .15s ease}.strategy-group:last-child{margin-bottom:0}.strategy-group summary{position:relative;display:flex;align-items:center;gap:8px;min-height:34px;padding:0 10px 0 12px;color:var(--u-text);font-size:14px;font-weight:600;cursor:pointer;list-style:none;-webkit-user-select:none;user-select:none;border-radius:8px;transition:background .15s ease}.strategy-group summary:hover{background:var(--u-soft)}.strategy-group[open]{border-color:var(--u-border-hover);box-shadow:0 1px 2px #0f172a08}.strategy-group[open] summary{border-bottom:1px solid var(--u-border);border-radius:8px 8px 0 0;background:color-mix(in srgb,var(--u-soft) 58%,transparent)}.strategy-group-count{margin-left:auto;color:var(--u-muted);font-size:11px;font-weight:500;letter-spacing:0}.strategy-group summary::-webkit-details-marker{display:none}.strategy-group summary:after{width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .15s ease;content:""}.strategy-group[open] summary:after{transform:translateY(2px) rotate(225deg)}.strategy-group summary:focus-visible{outline:2px solid var(--u-brand);outline-offset:-2px}.strategy-group-fields{padding:5px 12px 7px}.strategy-field-copy{min-width:0}.strategy-field-label{position:relative;display:flex;align-items:center;gap:5px}.strategy-field-label label{min-width:0;cursor:pointer}.strategy-row strong{display:block;font-weight:500;font-size:14px;line-height:1.35}.strategy-help{display:inline-grid;place-items:center;width:28px;height:28px;flex:none;padding:0;border:0;border-radius:4px;background:transparent;color:var(--u-muted);cursor:help}.strategy-help:hover,.strategy-help:focus-visible{color:var(--u-brand);outline:2px solid var(--u-brand-soft);outline-offset:1px}.strategy-tooltip{position:absolute;z-index:5;top:calc(100% + 7px);left:0;width:min(280px,calc(100vw - 48px));padding:7px 9px;border:1px solid var(--u-border-hover);border-radius:8px;background:var(--u-side);color:var(--u-side-text);box-shadow:var(--u-shadow-card);font-size:13px;font-weight:400;line-height:1.45;pointer-events:none}.strategy-row-toggle{display:flex;align-items:center}.policy-panel .switch.switch-diamond:checked{background:var(--u-diamond);border-color:var(--u-diamond)}.policy-panel .switch.switch-diamond:checked:after{content:"💎";position:absolute;left:18px;top:2px;width:18px;height:18px;display:grid;place-items:center;font-size:13px;line-height:1;transform:translateY(-.16em);pointer-events:none}.strategy-multiselect{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;min-width:0;margin:0;padding:0;border:0}.strategy-multiselect-option{display:inline-flex;align-items:center;gap:5px;min-height:25px;padding:2px 7px;border:1px solid var(--u-border-hover);border-radius:6px;background:var(--u-panel);color:var(--u-text);font-size:11.5px;cursor:pointer;-webkit-user-select:none;user-select:none}.strategy-multiselect-option:has(input:checked){border-color:var(--u-brand);background:color-mix(in srgb,var(--u-brand) 12%,var(--u-panel))}.strategy-multiselect-option:has(input:disabled){cursor:not-allowed;opacity:.65}.strategy-multiselect-option input{width:13px;height:13px;margin:0;accent-color:var(--u-brand-fill)}.strategy-order-list{display:flex;flex-direction:column;gap:4px;min-width:0;margin:0;padding:0;border:0}.strategy-order-item{display:flex;align-items:center;gap:6px;min-height:26px;padding:2px 4px 2px 7px;border:1px solid var(--u-border-hover);border-radius:6px;background:var(--u-panel);color:var(--u-text);font-size:11.5px}.strategy-order-rank{min-width:14px;color:var(--u-text-muted, var(--u-text));opacity:.7;font-variant-numeric:tabular-nums}.strategy-order-label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.strategy-order-move{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;padding:0;border:1px solid var(--u-border-hover);border-radius:5px;background:var(--u-panel);color:var(--u-text);cursor:pointer}.strategy-order-move:disabled{cursor:not-allowed;opacity:.45}.policy-panel .strategy-row>:is(.input,.select){width:min(210px,48%);min-height:30px;padding:4px 8px;border-radius:7px;background:var(--u-panel);font-size:14px}.policy-panel .form-actions{margin-top:12px}.policy-panel .form-actions .btn,.policy-panel .alert .btn{min-height:32px;padding:5px 10px;border-radius:8px;font-size:12px}.policy-panel .alert:has(.btn){display:flex;align-items:center;justify-content:space-between;gap:10px}@media(max-width:768px){.strategy-grid{grid-template-columns:1fr;row-gap:6px}.strategy-grid .strategy-row{min-height:52px;padding-block:8px}.strategy-row strong{font-size:16px}.policy-panel .switch{width:48px;height:30px}.policy-panel .switch:before{width:24px;height:24px}.policy-panel .switch.switch-diamond:checked:after{left:20px;width:24px;height:24px;font-size:16px}.policy-panel .switch:checked:before{transform:translate(18px)}.strategy-help{width:36px;height:36px}.strategy-multiselect{justify-content:flex-start}.strategy-order-item{min-height:38px;font-size:15px}.strategy-order-move{width:32px;height:32px}.strategy-group-fields{padding-inline:10px}.policy-panel .strategy-row>:is(.input,.select){width:min(180px,52%);min-height:40px;font-size:16px}}.farmland-slot-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:5px;padding:8px 0 2px;border-top:1px solid var(--u-border)}.farmland-slot-summary-copy{display:grid;gap:1px}.farmland-slot-summary-copy strong{font-size:12.5px;font-weight:600}.farmland-slot-summary-copy span{color:var(--u-muted);font-size:11.5px}.farmland-quota-editor{display:grid;gap:8px;margin-top:8px;padding-top:8px;border-top:1px solid var(--u-border)}.farmland-quota-row{display:grid;grid-template-columns:minmax(0,1fr) 72px auto;gap:8px;align-items:center}.farmland-slot-summary .btn{min-height:30px;padding:4px 9px;border-radius:7px;font-size:12px}.farmland-editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;grid-template-areas:"plots picker";align-items:start;gap:16px}.farmland-editor-plots{grid-area:plots;display:grid;gap:16px;min-width:0}.farmland-editor-section{min-width:0}.farmland-editor-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}.farmland-editor-section-head h3{margin:0;font-size:12.5px;font-weight:650}.farmland-editor-section-head span{color:var(--u-muted);font-size:11px}.farmland-editor-slot-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px}.farmland-editor-slot-grid.livestock{grid-template-columns:repeat(4,minmax(0,1fr))}.farmland-slot-button{position:relative;display:grid;align-content:center;gap:2px;min-width:0;min-height:55px;padding:6px 7px;overflow:hidden;border:1px solid var(--u-border);border-radius:8px;background:var(--u-panel);color:var(--u-text);text-align:left;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}.farmland-slot-button:hover{border-color:var(--u-border-hover);background:var(--u-soft)}.farmland-slot-button.active{border-color:var(--u-brand);box-shadow:0 0 0 2px var(--u-brand-soft)}.farmland-slot-button[class*=farmland-quality-]{border-color:var(--farmland-quality-color);background:var(--farmland-quality-bg)}.farmland-slot-number{color:var(--u-muted);font-size:9.5px;font-weight:600}.farmland-slot-crop{overflow:hidden;font-size:11px;font-weight:600;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.farmland-slot-quality{position:absolute;top:5px;right:5px;color:var(--farmland-quality-color);font-size:9px;font-weight:700}.farmland-crop-picker{grid-area:picker;position:sticky;top:0;display:grid;gap:10px;min-width:0;padding:12px;border:1px solid var(--u-border);border-radius:10px;background:var(--u-soft)}.farmland-crop-picker-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.farmland-crop-picker-head>div{display:flex;align-items:baseline;gap:5px}.farmland-crop-picker-head span,.farmland-picker-current{color:var(--u-muted);font-size:11px}.farmland-crop-picker-head strong{font-size:14px}.farmland-picker-current{overflow:hidden;text-align:right;text-overflow:ellipsis;white-space:nowrap}.farmland-crop-search{display:flex;align-items:center;gap:7px;min-height:34px;padding:0 9px;border:1px solid var(--u-border);border-radius:8px;background:var(--u-panel);color:var(--u-muted)}.farmland-crop-search:focus-within{border-color:var(--u-brand);box-shadow:0 0 0 2px var(--u-brand-soft)}.farmland-crop-search input{width:100%;min-width:0;padding:0;border:0;outline:0;background:transparent;color:var(--u-text);font-size:12px}.farmland-crop-search input:disabled{cursor:not-allowed}.farmland-crop-results{display:grid;gap:5px;max-height:390px;overflow-y:auto;overscroll-behavior:contain}.farmland-crop-option{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:42px;padding:6px 8px 6px 10px;border:1px solid var(--farmland-quality-color);border-radius:8px;background:var(--farmland-quality-bg);color:var(--u-text);text-align:left}.farmland-crop-option:hover:not(:disabled),.farmland-crop-option.selected{box-shadow:inset 3px 0 0 var(--farmland-quality-color)}.farmland-crop-option.selected{outline:2px solid var(--farmland-quality-color);outline-offset:-2px}.farmland-crop-option:disabled{cursor:default}.farmland-crop-option-copy{display:grid;min-width:0}.farmland-crop-option-copy strong{overflow:hidden;font-size:12px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.farmland-crop-option-copy small{color:var(--u-muted);font-size:9.5px}.farmland-quality-label{display:inline-grid;place-items:center;width:22px;height:22px;flex:none;border-radius:6px;background:var(--farmland-quality-color);color:#fff;font-size:10px;font-weight:700}.farmland-crop-empty{padding:28px 8px;color:var(--u-muted);font-size:12px;text-align:center}.farmland-follow-strategy{width:100%;min-height:32px;font-size:11.5px}.farmland-editor-actions{position:sticky;bottom:-18px;z-index:2;margin-top:14px;padding:12px 0 0;background:linear-gradient(transparent,var(--u-panel) 35%)}.farmland-quality-1{--farmland-quality-color: #16a34a;--farmland-quality-bg: #f0fdf4}.farmland-quality-2{--farmland-quality-color: #2563eb;--farmland-quality-bg: #eff6ff}.farmland-quality-3{--farmland-quality-color: #9333ea;--farmland-quality-bg: #faf5ff}.farmland-quality-4{--farmland-quality-color: #dc2626;--farmland-quality-bg: #fef2f2}.farmland-quality-5{--farmland-quality-color: #ca8a04;--farmland-quality-bg: #fffbeb}:root[data-theme=dark] .farmland-quality-1{--farmland-quality-color: #4ade80;--farmland-quality-bg: rgba(34, 197, 94, .1)}:root[data-theme=dark] .farmland-quality-2{--farmland-quality-color: #60a5fa;--farmland-quality-bg: rgba(59, 130, 246, .11)}:root[data-theme=dark] .farmland-quality-3{--farmland-quality-color: #c084fc;--farmland-quality-bg: rgba(168, 85, 247, .11)}:root[data-theme=dark] .farmland-quality-4{--farmland-quality-color: #f87171;--farmland-quality-bg: rgba(239, 68, 68, .11)}:root[data-theme=dark] .farmland-quality-5{--farmland-quality-color: #facc15;--farmland-quality-bg: rgba(234, 179, 8, .12)}@media(max-width:768px){dialog.modal-wide{width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}dialog.modal-wide .modal-head,dialog.modal-wide .modal-body{padding:10px 12px}.farmland-editor-layout{grid-template-columns:1fr;grid-template-areas:"picker" "plots";gap:10px}.farmland-editor-slot-grid,.farmland-editor-slot-grid.livestock{grid-template-columns:repeat(8,minmax(0,1fr));gap:4px}.farmland-editor-plots{gap:9px}.farmland-editor-section-head{margin-bottom:4px}.farmland-editor-section-head h3{font-size:11.5px}.farmland-editor-section-head span{font-size:10px}.farmland-slot-button{gap:1px;min-height:38px;padding:3px 4px;border-radius:6px}.farmland-slot-number{font-size:8.5px}.farmland-slot-crop{font-size:9px;line-height:1.1}.farmland-slot-quality{top:3px;right:3px;font-size:8px}.farmland-crop-picker{position:static;gap:6px;padding:8px;border-radius:8px;scroll-margin-top:12px}.farmland-crop-picker-head strong{font-size:13px}.farmland-crop-search{min-height:31px;padding-inline:8px}.farmland-crop-results{gap:3px;max-height:142px}.farmland-crop-option{min-height:32px;padding:3px 6px 3px 8px;border-radius:6px}.farmland-crop-option-copy strong{font-size:11px}.farmland-crop-option-copy small{font-size:8.5px}.farmland-quality-label{width:19px;height:19px;border-radius:5px;font-size:9px}.farmland-follow-strategy{min-height:29px;font-size:10.5px}.farmland-editor-actions{bottom:-10px;margin-top:8px;padding-top:8px}.farmland-editor-actions{bottom:-13px}}.menu-wrap{position:relative}.script-card .card-actions .menu-wrap{margin-left:auto}.menu{position:absolute;right:0;top:calc(100% + 6px);z-index:110;min-width:160px;background:var(--u-panel);border:1px solid var(--u-border);border-radius:12px;padding:5px;box-shadow:0 10px 25px -5px #00000026}.menu.menu-up{top:auto;bottom:calc(100% + 6px)}.menu-item{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;text-align:left;padding:9px 12px;border:0;background:transparent;border-radius:8px;color:var(--u-text);text-decoration:none;font-size:13px;font-weight:500;touch-action:manipulation;transition:all .12s ease}.menu-item:hover,.menu-item:active{background:var(--u-soft)}.menu-item.danger,.menu-item.danger:hover{color:var(--u-bad)}.toast{position:fixed;bottom:calc(72px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%,16px);z-index:100;display:flex;align-items:center;gap:10px;padding:10px 16px;background:var(--u-panel);border:1px solid var(--u-border);border-left:4px solid var(--u-brand-fill);border-radius:12px;box-shadow:0 10px 25px -5px #0000002e;font-size:13px;font-weight:600;color:var(--u-text);max-width:min(360px,calc(100vw - 32px));opacity:0;pointer-events:none;transition:all .25s cubic-bezier(.16,1,.3,1)}.toast.show{transform:translate(-50%);opacity:1;pointer-events:auto}.toast-error{border-left-color:var(--u-bad)}.toast-warning{border-left-color:var(--u-warn)}.logs-toolbar{display:flex;align-items:center;gap:6px;margin-bottom:6px}.logs-toolbar .input{flex:1;min-width:0}.toolbar-icons{display:flex;align-items:center;gap:6px;flex:none}.logs{background:#090d16;color:#e2e8f0;border-radius:10px;padding:12px;font:12px ui-monospace,SFMono-Regular,Menlo,Monaco,monospace;overflow:auto;border:1px solid rgba(255,255,255,.08)}dialog.runtime-logs-modal{position:fixed;inset:0;width:100vw;height:100vh;max-width:none;max-height:none;margin:0;border:0;border-radius:0;overflow:hidden}@supports (height: 100dvh){dialog.runtime-logs-modal{height:100dvh}}dialog.runtime-logs-modal[open]{display:flex;flex-direction:column}.runtime-logs-modal .modal-head{flex:none;padding:max(12px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) 12px max(14px,env(safe-area-inset-left))}.runtime-logs-modal .modal-head h2{min-width:0;overflow-wrap:anywhere}.runtime-logs-modal .modal-body{display:flex;flex:1;min-height:0;overflow:hidden;padding:12px max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}.runtime-logs-panel{display:flex;flex-direction:column;flex:1;min-height:0}.runtime-logs-panel .logs{flex:1;min-height:0;max-height:none}.log-line{display:flex;align-items:flex-start;gap:6px;width:100%;font:inherit;min-height:20px;line-height:20px;margin:0;padding:0;color:inherit;text-align:left;white-space:normal}.log-time{flex:none;color:#94a3b8}.log-message{min-width:0;overflow-wrap:anywhere}.json-tree-node{min-height:20px;line-height:20px}.json-tree-toggle{padding:0;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;text-align:left;-webkit-user-select:none;user-select:none}.json-tree-children{margin-left:16px;padding:0 0 0 8px;border-top:0;border-right:0;border-bottom:0;border-left:1px solid rgba(148,163,184,.25)}.json-tree-key{color:#93c5fd}.json-tree-string .json-tree-value{color:#86efac}.json-tree-number .json-tree-value,.json-tree-boolean .json-tree-value{color:#fde68a}.json-tree-null,.json-tree-summary,.json-tree-limit{color:#94a3b8}.code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:var(--u-soft);padding:2px 6px;border-radius:6px;font-size:.9em;border:1px solid var(--u-border)}.toolbar{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap;margin-bottom:12px}.toolbar .field{gap:4px}.toolbar .field label{font-size:12px;font-weight:600;color:var(--u-muted)}.toolbar .field.grow{flex:1 1 180px;min-width:0}.toolbar .field:not(.grow){flex:0 1 140px;min-width:0}.toolbar .input,.toolbar .btn{min-height:34px;font-size:13px;border-radius:8px}.toolbar .input{padding:6px 10px}.toolbar .btn{padding:6px 14px}.update-list{list-style:none;margin:0;padding:0}.update-item{display:flex;align-items:flex-start;gap:10px;padding:9px 0;border-bottom:1px solid var(--u-border)}.update-item:last-child{border-bottom:0}.update-version{flex:none;margin-top:1px}.update-main{flex:1;min-width:0}.update-list .update-title{display:block;font-size:13.5px;font-weight:600;line-height:1.4;color:var(--u-text)}.update-list .update-title:hover{color:var(--u-brand);text-decoration:none}.update-summary{margin:2px 0 0;font-size:12.5px;color:var(--u-muted);line-height:1.45;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.update-hint{display:inline-block;margin-top:3px;font-size:12px}.update-time{flex:none;font-size:11.5px;color:var(--u-muted);white-space:nowrap;margin-top:3px}.pager{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:12px;padding-top:12px;border-top:1px solid var(--u-border);color:var(--u-muted);font-size:12.5px}.pager-controls{display:flex;align-items:center;gap:6px}.pager .btn{min-height:30px;padding:6px 10px;font-size:12.5px}.skeleton{background:linear-gradient(90deg,var(--u-soft) 25%,var(--u-soft-hover) 37%,var(--u-soft) 63%);background-size:400% 100%;animation:skeleton-shimmer 1.4s cubic-bezier(.4,0,.6,1) infinite;border-radius:6px;display:block}@keyframes skeleton-shimmer{0%{background-position:100% 50%}to{background-position:0 50%}}.skeleton-title{height:20px;width:55%;margin:6px 0;border-radius:6px}.skeleton-line{height:14px;width:100%;margin:6px 0;border-radius:4px}.skeleton-input{height:42px;width:100%;border-radius:10px}@media(min-width:769px){.shell{display:grid;grid-template-columns:240px minmax(0,1fr)}.desktop-sidebar{display:flex;flex-direction:column;gap:8px;background:var(--u-side);color:var(--u-side-text);padding:20px 16px;border-right:1px solid rgba(255,255,255,.06);position:sticky;top:0;height:100dvh}.brand{display:flex;align-items:center;gap:10px;padding:0 8px 18px;border-bottom:1px solid rgba(255,255,255,.08)}.brand strong{font-weight:700;font-size:15px;color:#fff;letter-spacing:-.02em}.brand small{display:block;opacity:.65;margin-top:2px;font-size:12px}.logo{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:var(--u-brand-fill);color:var(--u-on-brand);flex:none;box-shadow:0 2px 10px #0d94884d}.nav{display:grid;gap:4px;margin-top:8px}.nav a{border:0;border-radius:8px;background:transparent;color:#ffffffb8;padding:10px 12px;text-align:left;display:flex;align-items:center;gap:10px;width:100%;text-decoration:none;font-size:13.5px;font-weight:500;transition:all .15s ease}.nav a:hover,.nav a:active{background:#ffffff0f;color:#fff}.nav a.active{background:#2dd4bf24;color:#2dd4bf;font-weight:600;box-shadow:inset 0 0 0 1px #2dd4bf40}.nav-short,.mobile-tabbar,.mobile-brand-icon{display:none}.heading-back-text{display:inline}.theme-label{display:inline;font-size:12.5px}.content{padding:24px 28px}.runtime-logs-modal .modal-head{padding:max(16px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) 16px max(20px,env(safe-area-inset-left))}.runtime-logs-modal .modal-body{padding:16px max(20px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left))}.home-bar{flex-direction:row;align-items:center}.home-bar .field.grow{flex:1;min-width:220px}.home-bar-actions{margin-left:auto}.home-bar-actions .btn{flex:none}.script-grid{grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px}.grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.form-grid{grid-template-columns:1fr 1fr}.form-grid .full{grid-column:1 / -1}.hero{flex-direction:row;align-items:center;justify-content:space-between;padding:24px 28px}.hero-actions{width:auto}.hero-actions .btn{flex:none}.toast{left:auto;right:28px;bottom:28px;transform:translateY(16px)}.toast.show{transform:translateY(0)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms;transition-duration:.01ms}.toast,.toast.show{transform:none;transition:none}.skeleton{animation:none}}
