.trm-auto-panel{min-width:0;padding-top:8px;display:flex;flex-direction:column;gap:12px;font-variant-numeric:tabular-nums}.trm-auto-live-header,.trm-auto-setup-card{padding:13px 14px;border-radius:14px;background:var(--hbg-inset);border:1px solid var(--hbg-border-subtle)}.trm-auto-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.trm-auto-heading>div{min-width:0}.trm-auto-eyebrow{display:block;font-size:.64rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--hbg-accent);margin-bottom:3px}.trm-auto-heading h2{font-size:1rem;line-height:1.3;font-weight:700;margin:0;color:var(--hbg-text);overflow-wrap:anywhere}.trm-auto-change,.trm-auto-edit-btn,.trm-strategy-cancel,.trm-strategy-icon,.trm-strategy-new,.trm-strategy-save{display:inline-flex;align-items:center;justify-content:center;gap:5px;color:var(--hbg-text);font:inherit;cursor:pointer}.trm-auto-change{flex:none;min-height:32px;padding:4px 11px;border-radius:999px;border:1px solid var(--hbg-border);background:var(--hbg-elevated);font-size:.73rem;font-weight:650}.trm-auto-change:hover:not(:disabled),.trm-auto-market-picker:hover:not(:disabled),.trm-strategy-choice:hover:not(:disabled),.trm-strategy-icon:hover:not(:disabled){background:var(--hbg-hover)}.trm-auto-panel button:disabled{cursor:default}.trm-auto-change:disabled,.trm-auto-edit-btn:disabled,.trm-auto-market-picker:disabled{opacity:.45}.trm-auto-rule{margin-top:10px;padding-top:10px;border-top:1px solid var(--hbg-border-subtle)}.trm-auto-rule p{font-size:.75rem;line-height:1.5;color:var(--hbg-muted);margin:0 0 7px}.trm-auto-rule-action{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.trm-auto-rule strong{font-size:.86rem;font-weight:700;color:var(--hbg-up);white-space:nowrap}.trm-auto-duration{padding:2px 7px;border-radius:6px;background:var(--hbg-elevated);border:1px solid var(--hbg-border-subtle);font-family:var(--font-mono-num);font-size:.68rem;font-weight:600;color:var(--hbg-muted)}.trm-auto-edit-btn{margin-left:auto;padding:4px 2px;min-height:28px;font-size:.69rem;font-weight:600;color:var(--hbg-accent);background:none;border:0}.trm-auto-edit-btn:hover:not(:disabled){text-decoration:underline}.trm-auto-market-picker{display:flex;align-items:center;gap:8px;width:100%;margin-top:10px;padding:8px 11px;border-radius:10px;border:1px solid var(--hbg-border-subtle);background:var(--hbg-elevated);color:var(--hbg-text);font-size:.74rem;text-align:left}.trm-auto-market-label{display:inline-flex;align-items:center;gap:5px;flex:none;font-size:.68rem;font-weight:600;color:var(--hbg-dim)}.trm-auto-market-label svg{color:var(--hbg-accent)}.trm-auto-market-picker strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:650;font-size:.75rem;color:var(--hbg-text)}.trm-auto-market-picker>svg{flex:none;color:var(--hbg-dim)}.trm-auto-market-static{margin-top:8px;padding-top:8px;border-top:1px solid var(--hbg-border-subtle)}.trm-auto-market{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:.68rem;color:var(--hbg-dim)}.trm-auto-live-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-top:9px;padding-top:9px;border-top:1px solid var(--hbg-border-subtle);font-size:.69rem;color:var(--hbg-muted)}.trm-auto-live-meta strong{color:var(--hbg-up);font-weight:700}.trm-auto-observer{padding:13px 14px;border-radius:14px;background:var(--hbg-inset);border:1px solid var(--hbg-border-subtle)}.trm-auto-observer-caption,.trm-auto-observer-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.trm-auto-state{display:flex;align-items:center;gap:7px;font-size:.75rem;font-weight:650;color:var(--hbg-text);min-width:0}.trm-auto-state i{width:7px;height:7px;flex:none;border-radius:50%;background:var(--hbg-dim)}.trm-auto-state[data-running=true] i{background:var(--hbg-up-bright);box-shadow:0 0 0 3px var(--hbg-up-soft)}.trm-auto-panel[data-phase=confirming] .trm-auto-state i,.trm-auto-panel[data-phase=paused] .trm-auto-state i{background:#f59e0b}.trm-auto-progress-number{font-family:var(--font-mono-num);font-size:.75rem;color:var(--hbg-dim);white-space:nowrap;line-height:22px}.trm-auto-progress-number strong{font-size:1.1rem;color:var(--hbg-text);font-weight:700;margin-right:2px}.trm-auto-progress{display:flex;gap:5px;height:10px;margin:10px 0 8px}.trm-auto-progress>span{flex:1;display:flex;align-items:center;justify-content:center;background:var(--hbg-elevated);border:1px solid var(--hbg-border-subtle);border-radius:999px;color:transparent;transition:background-color .2s cubic-bezier(.22,1,.36,1),border-color .2s ease}.trm-auto-progress>span[data-filled=true]{background:linear-gradient(90deg,var(--hbg-up-bright),var(--hbg-up));border-color:transparent;box-shadow:0 2px 8px var(--hbg-up-glow)}.trm-auto-progress[data-contract=true]>span[data-filled=true]{background:linear-gradient(90deg,var(--hbg-accent),var(--hbg-up-bright))}.trm-auto-observer-caption{font-size:.66rem;color:var(--hbg-dim);line-height:15px}.trm-auto-observer-caption>span:last-child{text-align:right;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trm-auto-skipped{font-size:.68rem;color:var(--hbg-dim);margin:8px 0 0}.trm-auto-digits-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:11px;padding-top:10px;border-top:1px solid var(--hbg-border-subtle)}.trm-auto-digits-row>span{font-size:.66rem;font-weight:600;color:var(--hbg-dim);white-space:nowrap}.trm-auto-digits-row>div{display:flex;gap:4px}.trm-auto-digits-row>div>span{display:grid;place-items:center;width:23px;height:25px;font-family:var(--font-mono-num);font-size:.78rem;font-weight:600;color:var(--hbg-muted);background:var(--hbg-elevated);border-radius:7px;border:1px solid var(--hbg-border-subtle)}.trm-auto-digits-row>div>span[data-match=true]{background:var(--hbg-up-soft);color:var(--hbg-up);border-color:rgba(16,185,129,.35)}.trm-auto-digits-row>div>span[data-latest=true]{border-color:var(--hbg-accent);color:var(--hbg-text);font-weight:700;box-shadow:0 0 0 2px var(--hbg-accent-soft)}.trm-auto-stake-section{display:flex;flex-direction:column;gap:7px}.trm-auto-stake{display:flex;flex-direction:column;justify-content:center;gap:3px;min-height:58px;padding:8px 14px;background:var(--hbg-inset);border:1px solid var(--hbg-border-subtle);border-radius:12px}.trm-auto-stake>span{font-size:.7rem;font-weight:600;color:var(--hbg-dim)}.trm-auto-stake>div{display:flex;align-items:center;gap:8px}.trm-auto-stake input{font-family:var(--font-mono-num);font-size:1.05rem;font-weight:700;line-height:24px;background:none;border:0;outline:none;min-width:0;width:100%;padding:0;color:var(--hbg-text);font-variant-numeric:tabular-nums}.trm-auto-stake input:focus-visible{outline:none}.trm-auto-stake input:disabled{opacity:1;-webkit-text-fill-color:var(--hbg-muted)}.trm-auto-stake>div>span{font-size:.72rem;font-weight:600;color:var(--hbg-dim)}.trm-auto-stake:focus-within{border-color:var(--hbg-accent)}.trm-auto-stake[data-invalid=true]{border-color:var(--hbg-down)}.trm-auto-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.trm-auto-presets button{min-height:30px;padding:4px 6px;border-radius:9px;border:1px solid var(--hbg-border-subtle);background:var(--hbg-inset);color:var(--hbg-muted);font-family:var(--font-mono-num);font-size:.69rem;font-weight:600}.trm-auto-presets button:hover:not(:disabled){background:var(--hbg-hover);color:var(--hbg-text)}.trm-auto-presets button[aria-pressed=true]{border-color:var(--hbg-accent);color:var(--hbg-accent);background:var(--hbg-accent-soft)}.trm-auto-input-error{font-size:.7rem;color:var(--hbg-down);margin:0}.trm-auto-quote{display:flex;align-items:center;gap:6px;min-height:36px;padding:8px 12px;border-radius:11px;background:var(--hbg-inset);border:1px solid var(--hbg-border-subtle);font-size:.72rem;color:var(--hbg-muted)}.trm-auto-quote strong{font-family:var(--font-mono-num);font-weight:700;color:var(--hbg-up);margin-left:auto;font-size:.8rem;white-space:nowrap}.trm-auto-quote strong[data-profit="0"]{color:var(--hbg-text)}.trm-auto-quote strong[data-profit="-1"]{color:var(--hbg-down)}.trm-auto-quote strong[data-profit=empty]{color:var(--hbg-dim);font-weight:500}.trm-auto-quote small{font-family:var(--font-mono-num);color:var(--hbg-dim);font-size:.65rem}.trm-auto-main-button{height:54px;min-height:54px}.trm-auto-main-button strong{display:flex;align-items:center;justify-content:center;gap:8px}.trm-auto-main-button[data-stop=true]{background:var(--hbg-inset);border:1px solid var(--hbg-down);box-shadow:none;color:var(--hbg-text)}.trm-auto-main-button[data-stop=true] strong svg{color:var(--hbg-down)}.trm-auto-main-button[data-stop=true]:hover:not(:disabled){background:var(--hbg-down-soft)}.trm-auto-main-button[data-stop=true] span{color:var(--hbg-muted)}.trm-auto-action .trm-buy-account{min-height:14px;font-size:.65rem}.trm-auto-notice{padding:11px 13px;border-radius:12px;background:var(--hbg-inset);border:1px solid var(--hbg-border-subtle);font-size:.72rem;line-height:1.55;color:var(--hbg-muted);display:flex;flex-direction:column;gap:8px}.trm-auto-notice p{margin:0;overflow-wrap:anywhere}.trm-auto-notice[data-warning=true]{border-color:rgba(245,158,11,.4);background:rgba(245,158,11,.08);color:#d97706}html.dark .trm-auto-notice[data-warning=true]{color:#fbbf24}.trm-auto-check-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:6px 12px;border-radius:9px;border:1px solid var(--hbg-border);background:var(--hbg-elevated);color:var(--hbg-text);font-size:.72rem;font-weight:600;align-self:flex-start}.trm-auto-check-btn:hover:not(:disabled){border-color:var(--hbg-accent);color:var(--hbg-accent)}.trm-auto-report-link{display:inline-flex;align-items:center;gap:6px;min-height:32px;color:var(--hbg-accent);font-weight:600;text-decoration:underline;text-underline-offset:3px}.trm-auto-receipt-review{display:flex;flex-direction:column;gap:8px;padding-top:8px;border-top:1px solid var(--hbg-border-subtle);color:var(--hbg-text)}.trm-auto-receipt-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:.68rem;color:var(--hbg-muted)}.trm-auto-receipt-head button{display:inline-flex;align-items:center;gap:5px;padding:4px 9px;border-radius:8px;border:1px solid var(--hbg-border);background:var(--hbg-elevated);color:var(--hbg-text);font-size:.68rem;font-weight:600;flex:none}.trm-auto-receipt-caption,.trm-auto-receipt-foot{font-size:.68rem;color:var(--hbg-muted)}.trm-auto-receipt-review ul{list-style:none;margin:0;padding:0;max-height:11rem;overflow-y:auto;display:flex;flex-direction:column;gap:6px}.trm-auto-receipt-review li{padding:8px 10px;border-radius:10px;background:var(--hbg-elevated);border:1px solid var(--hbg-border-subtle);font-size:.74rem}.trm-auto-receipt-review li>div{display:flex;justify-content:space-between;gap:8px;align-items:baseline;font-family:var(--font-mono-num)}.trm-auto-receipt-review li small,.trm-auto-receipt-review li time{display:block;font-size:.63rem;color:var(--hbg-dim);margin-top:2px}.trm-auto-receipt-archive{min-height:38px;padding:7px 14px;border-radius:10px;border:0;background:linear-gradient(135deg,var(--hbg-accent),var(--hbg-up-bright));color:#fff;font-size:.75rem;font-weight:700}.trm-auto-receipt-archive:disabled{opacity:.45}.trm-auto-session{padding-top:12px;border-top:1px solid var(--hbg-border-subtle)}.trm-auto-section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.trm-auto-section-heading h3{font-size:.8125rem;font-weight:700;margin:0}.trm-auto-section-heading>span{font-size:.65rem;color:var(--hbg-dim)}.trm-auto-totals{display:grid;grid-template-columns:.85fr 1fr 1.35fr;gap:8px;margin:10px 0 0;padding:10px 12px;border-radius:13px;background:var(--hbg-inset);border:1px solid var(--hbg-border-subtle)}.trm-auto-totals>div{min-width:0}.trm-auto-totals dt{font-size:.64rem;font-weight:600;line-height:16px;color:var(--hbg-dim);white-space:nowrap}.trm-auto-totals dt small{font-size:.58rem}.trm-auto-totals dd{display:flex;align-items:baseline;gap:4px;font-family:var(--font-mono-num);font-size:1rem;font-weight:700;margin:2px 0 0;line-height:23px;color:var(--hbg-text);white-space:nowrap}.trm-auto-totals dd small,.trm-auto-totals dd>span{font-size:.68rem;font-weight:500;color:var(--hbg-dim)}.trm-auto-totals>div:last-child{text-align:right}.trm-auto-totals>div:last-child dd{justify-content:flex-end}.trm-auto-orders [data-profit="1"] strong,.trm-auto-totals [data-profit="1"] dd{color:var(--hbg-up)}.trm-auto-orders [data-profit="-1"] strong,.trm-auto-totals [data-profit="-1"] dd{color:var(--hbg-down)}.trm-auto-orders{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:6px}.trm-auto-orders li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 11px;border-radius:11px;background:var(--hbg-inset);border:1px solid var(--hbg-border-subtle)}.trm-auto-orders li>div{display:flex;flex-direction:column;gap:2px;min-width:0}.trm-auto-orders li>div:last-child{text-align:right;flex:none}.trm-auto-orders li span{font-size:.74rem;font-weight:550;color:var(--hbg-muted)}.trm-auto-orders li strong{font-family:var(--font-mono-num);font-size:.8rem;font-weight:700;color:var(--hbg-text)}.trm-auto-orders li small,.trm-auto-orders li time{font-family:var(--font-mono-num);font-size:.63rem;line-height:14px;color:var(--hbg-dim)}.trm-auto-orders li small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.trm-auto-empty{line-height:1.6;margin:10px 0 0}.trm-auto-details,.trm-auto-empty{font-size:.7rem;color:var(--hbg-dim)}.trm-auto-details{border-top:1px solid var(--hbg-border-subtle);padding-top:2px}.trm-auto-details summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:38px;cursor:pointer;list-style:none;font-weight:600;color:var(--hbg-muted)}.trm-auto-details summary::-webkit-details-marker{display:none}.trm-auto-details summary svg{transition:transform .18s ease}.trm-auto-details[open] summary svg{transform:rotate(180deg)}.trm-auto-details p{line-height:1.65;margin:0 0 8px}.trm-strategy-modal-backdrop{position:fixed;inset:0;z-index:60;display:grid;place-items:center;padding:16px;background:rgba(7,10,20,.65);backdrop-filter:blur(8px)}.trm-strategy-modal{width:min(540px,calc(100vw - 24px));overflow:hidden;border-radius:18px;background:var(--hbg-elevated);border:1px solid var(--hbg-border);box-shadow:0 28px 70px rgba(0,0,0,.42)}.trm-strategy-modal,.trm-strategy-workspace{max-height:calc(100dvh - 32px);display:flex;flex-direction:column}.trm-strategy-workspace{min-height:0;padding:20px;color:var(--hbg-text)}.trm-strategy-nav{display:flex;align-items:center;gap:8px;margin:0 0 16px;min-height:36px;flex:none}.trm-strategy-nav h2{margin:0;flex:1;min-width:0;font-size:1.08rem;line-height:1.3;font-weight:700}.trm-strategy-nav h2:focus{outline:none}.trm-strategy-icon{width:34px;height:34px;flex:none;border:0;border-radius:10px;background:transparent;color:var(--hbg-muted)}.trm-strategy-new{flex:none;min-height:34px;padding:5px 13px;border-radius:999px;border:0;background:linear-gradient(135deg,var(--hbg-accent),var(--hbg-up-bright));color:#fff;font-size:.74rem;font-weight:700}.trm-strategy-catalog{display:flex;flex-direction:column;min-height:0;flex:1;gap:12px}.trm-strategy-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;flex:none}.trm-strategy-search{height:40px;flex:1 1 220px}.trm-strategy-filters{display:flex;align-items:center;gap:4px;padding:3px;border-radius:10px;background:var(--hbg-inset);border:1px solid var(--hbg-border-subtle)}.trm-strategy-filters button{min-height:32px;padding:0 12px;background:transparent;color:var(--hbg-muted);border:0;border-radius:7px;cursor:pointer;font-size:.73rem;font-weight:600}.trm-strategy-filters button[aria-pressed=true]{background:var(--hbg-elevated);color:var(--hbg-text);box-shadow:0 1px 3px rgba(0,0,0,.1)}.trm-strategy-choice:hover strong,.trm-strategy-filters button:hover{color:var(--hbg-accent)}.trm-strategy-list{overflow-y:auto;min-height:0;flex:1;padding-right:2px;display:flex;flex-direction:column;gap:14px}.trm-strategy-group h3,.trm-strategy-step legend{margin:0 0 8px;font-size:.78rem;font-weight:700;color:var(--hbg-muted)}.trm-strategy-group h3 small{margin-left:4px;color:var(--hbg-dim);font-weight:500}.trm-strategy-group>p{color:var(--hbg-muted);font-size:.75rem;margin:6px 0}.trm-strategy-row{display:flex;align-items:center;gap:8px;padding:10px 12px;margin-bottom:8px;border-radius:13px;border:1px solid var(--hbg-border-subtle);background:var(--hbg-inset)}.trm-strategy-row[data-selected=true]{border-color:var(--hbg-accent);background:var(--hbg-accent-soft)}.trm-strategy-choice{display:flex;flex:1;min-width:0;flex-direction:column;align-items:flex-start;gap:4px;background:transparent;border:0;padding:2px;text-align:left;border-radius:8px;cursor:pointer;overflow-wrap:anywhere}.trm-strategy-choice strong{font-size:.84rem;font-weight:650;line-height:1.35;color:var(--hbg-text)}.trm-strategy-choice strong svg{display:inline;margin-left:6px;vertical-align:middle;color:var(--hbg-up)}.trm-strategy-choice span{font-size:.72rem;line-height:1.5;color:var(--hbg-muted)}.trm-strategy-row-actions{display:flex;align-items:center;gap:4px;flex:none}.trm-strategy-delete:hover:not(:disabled){color:var(--hbg-down)}.trm-strategy-confirm-delete{min-height:30px;padding:4px 10px;border-radius:8px;border:1px solid var(--hbg-down);background:var(--hbg-down-soft);color:var(--hbg-down);font-size:.69rem;font-weight:700;cursor:pointer}.trm-strategy-form{overflow-y:auto;min-height:0}.trm-strategy-fields,.trm-strategy-step{border:0;padding:0;margin:0;min-width:0}.trm-strategy-fields{display:grid;gap:14px}.trm-strategy-step{padding:13px 14px;border-radius:13px;background:var(--hbg-inset);border:1px solid var(--hbg-border-subtle)}.trm-strategy-step legend{padding:0;margin-bottom:10px;color:var(--hbg-text)}.trm-strategy-field{display:flex;min-width:0;flex-direction:column;gap:6px;font-size:.72rem;font-weight:600;color:var(--hbg-muted)}.trm-strategy-field input{min-width:0;width:100%;background:var(--hbg-inset);border:1px solid var(--hbg-border);color:var(--hbg-text);border-radius:10px;min-height:42px;padding:8px 12px;font-size:.86rem;font-weight:600;line-height:1.4}.trm-strategy-sentence{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:.8rem;color:var(--hbg-muted);line-height:1.6}.trm-strategy-sentence select{min-width:68px;min-height:38px;padding:5px 10px;border-radius:9px;background:var(--hbg-elevated);border:1px solid var(--hbg-border);color:var(--hbg-text);font:inherit;font-size:.84rem;font-weight:600;cursor:pointer}.trm-strategy-preview{border-radius:12px;background:var(--hbg-inset);border-inline-start:3px solid var(--hbg-up);padding:10px 12px}.trm-strategy-preview>span{display:flex;align-items:center;gap:5px;color:var(--hbg-dim);font-size:.68rem;font-weight:600}.trm-strategy-preview p{margin:4px 0 0;color:var(--hbg-text);font-size:.82rem;font-weight:600;line-height:1.55;overflow-wrap:anywhere}.trm-strategy-form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:4px}.trm-strategy-cancel{min-height:44px;padding:0 18px;border-radius:12px;border:1px solid var(--hbg-border);background:transparent;color:var(--hbg-muted);font-size:.82rem;font-weight:600}.trm-strategy-cancel:hover:not(:disabled){color:var(--hbg-text);background:var(--hbg-hover)}.trm-strategy-save{min-height:44px;padding:0 22px;border:0;border-radius:12px;background:linear-gradient(135deg,var(--hbg-accent),var(--hbg-up-bright));box-shadow:0 8px 20px -6px var(--hbg-up-glow);color:#fff;font-size:.85rem;font-weight:700}.trm-strategy-save:disabled{opacity:.45;box-shadow:none}@media(max-width:760px){.trm-strategy-field input,.trm-strategy-search input,.trm-strategy-sentence select{font-size:1rem}.trm-auto-change,.trm-auto-presets button,.trm-strategy-filters button,.trm-strategy-icon{min-height:38px}.trm-auto-action{padding:10px 12px calc(10px + env(safe-area-inset-bottom))}.trm-strategy-modal-backdrop{padding:10px}.trm-strategy-workspace{padding:16px}.trm-strategy-form-actions{flex-direction:column-reverse}.trm-strategy-cancel,.trm-strategy-save{width:100%;min-height:44px}}@media(prefers-reduced-motion:reduce){.trm-auto-panel *,.trm-strategy-modal *{transition:none!important;animation:none!important}}