:root{--bg:#f5f6f3;--panel:#fff;--ink:#203631;--muted:#697973;--line:#e2e8e1;--green:#19634f;--green-dark:#153c37;--green-soft:#e8f1e8;--gold:#ae7739;--red:#ba4d44;--radius:18px;--shadow:0 5px 30px #20363105}
.nav-group+.nav-group{margin-top:16px}.nav-group .nav-label{padding:0 16px;margin:0 0 8px}.guest-links{display:flex;gap:16px;align-items:center;padding:16px 10px;border-top:1px solid var(--line)}
.dbot-intro{display:grid;gap:34px}.intro-hero{display:grid;grid-template-columns:1.15fr 1fr;gap:38px;align-items:center;padding:38px;border-radius:var(--radius);background:var(--green-dark);color:#fff}.intro-kicker{font-size:11px;letter-spacing:1px;color:#c6d9c7;margin-bottom:17px}.intro-hero h2{font-size:36px;letter-spacing:-1.3px;line-height:1.35;margin-bottom:18px}.intro-hero-copy>p:not(.intro-kicker){font-size:14px;color:#d4e0d6;line-height:1.9;max-width:520px;margin-bottom:22px}.intro-hero-copy strong{color:#fff;font-weight:600}.intro-hero .button{background:#eaf3e5;color:var(--green-dark);border-color:#eaf3e5}.intro-flow{list-style:none;padding:0;margin:0;display:grid;gap:14px}.intro-flow li{display:flex;gap:16px;align-items:flex-start;padding:18px;border:1px solid #ffffff24;border-radius:13px;background:#ffffff06}.intro-flow li>span{font-size:11px;line-height:24px;color:#c5d5ae;font-weight:700}.intro-flow h3{font-size:15px;margin:0 0 4px}.intro-flow p{font-size:12px;line-height:1.7;color:#c6d7cc;margin:0}.intro-section-head{margin-bottom:19px}.intro-section-head h2{font-size:24px;margin-bottom:8px}.intro-section-head>p:last-child{font-size:13px;color:var(--muted);margin-bottom:0}.intro-mode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.intro-mode{position:relative;padding:25px}.intro-mode h3{font-size:20px;margin:13px 0 8px}.intro-mode p{font-size:13px;color:var(--muted);margin:0;line-height:1.8}.intro-mode-dot{display:block;width:10px;height:10px;background:#226850;border-radius:50%}.intro-balanced .intro-mode-dot{background:#b58b4d}.intro-aggressive .intro-mode-dot{background:#748bab}.intro-mode-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.intro-mode-title .badge{font-size:10px;white-space:nowrap;margin-top:5px}.intro-risk{padding:13px 16px;margin:15px 0 0;border-left:3px solid #adbb9e;background:#edf1e8;border-radius:0 10px 10px 0;color:#596a5f;font-size:12px}.intro-start-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;list-style:none;margin:0;padding:0}.intro-start-grid>li{display:flex;flex-direction:column;padding:22px;border:1px solid var(--line);border-radius:14px;background:#fff}.intro-start-grid>li>span{font-size:11px;color:var(--green);background:var(--green-soft);border-radius:50%;width:27px;height:27px;display:grid;place-items:center;margin-bottom:15px;font-weight:700}.intro-start-grid h3{font-size:15px}.intro-start-grid p{font-size:12px;line-height:1.8;color:var(--muted);margin-bottom:10px}.intro-start-grid>li>.text-link,.intro-start-grid>li>div{margin-top:auto}.intro-start-grid>li>div{display:flex;flex-wrap:wrap;gap:12px}.intro-telegram{display:flex;align-items:center;gap:11px;margin:20px 0 0;padding:15px 18px;border-radius:12px;background:#eaf1e7;color:#566b5e;font-size:12px}.intro-telegram .icon{height:17px;width:17px}.intro-login-note{color:var(--muted);font-size:12px;margin:15px 0 0}.intro-login-note a{color:var(--green);text-decoration:underline}
@media(max-width:1100px){.intro-hero{grid-template-columns:1fr;gap:25px;padding:30px}.intro-flow{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.intro-flow li{padding:15px;gap:10px}.intro-mode{padding:20px}.intro-start-grid{gap:14px}.intro-start-grid>li{padding:20px}}
@media(max-width:760px){.dbot-intro{gap:27px}.intro-hero{padding:25px;gap:23px}.intro-hero h2{font-size:30px;letter-spacing:-1px}.intro-hero-copy>p:not(.intro-kicker){font-size:13px}.intro-kicker{font-size:10px;letter-spacing:.5px}.intro-flow,.intro-mode-grid,.intro-start-grid{grid-template-columns:1fr;gap:12px}.intro-flow li{padding:15px 16px;gap:14px}.intro-section-head h2{font-size:22px}.intro-mode{padding:20px 22px}.intro-mode h3{font-size:19px;margin-top:9px}.intro-start-grid>li{padding:22px}.intro-telegram{align-items:flex-start;padding:15px}.intro-telegram .icon{margin-top:3px}.intro-risk{font-size:11px}.mobile-nav .nav-item{font-size:10px}}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","Malgun Gothic",sans-serif}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{opacity:.5;cursor:default}button,a,input,select,textarea{outline-offset:4px}*:focus-visible{outline:3px solid #8eaf64}a{color:inherit;text-decoration:none}button{border:0;background:none}h1,h2,h3,p{margin-top:0}h1{font-size:34px;line-height:1.3;letter-spacing:-1.4px;margin-bottom:10px}h2{font-size:20px;letter-spacing:-.6px;margin-bottom:12px}h3{font-size:16px;margin-bottom:8px}p{margin-bottom:12px}small,.form-note,.note{color:var(--muted);font-size:13px;line-height:1.65}.note{padding:14px 18px;border-radius:12px;background:#f3f6f0}.lead{font-size:17px}.eyebrow{color:var(--green);font-size:11px;font-weight:700;letter-spacing:2px;margin-bottom:8px}.icon{height:20px;width:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 17px;border:1px solid #d5dfd7;border-radius:10px;background:#fff;font-size:14px;font-weight:600;line-height:1.4}.button:hover{background:#f0f4ed}.button.primary{background:var(--green);border-color:var(--green);color:#fff}.button.primary:hover{background:#114e3e}.button.small{font-size:13px;padding:8px 13px;min-height:40px}.button.danger{color:var(--red)}.text-link{display:inline-flex;align-items:center;gap:7px;color:var(--green);font-size:13px;min-height:40px;padding:0}.circle-button{width:42px;height:42px;display:inline-grid;place-items:center;border:1px solid var(--line);border-radius:50%;flex-shrink:0}.flow-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.full-width{width:100%}.badge{display:inline-flex;align-items:center;padding:4px 10px;border-radius:30px;font-size:12px;font-weight:600;background:var(--green-soft);color:var(--green)}.badge.amber{background:#fff2db;color:#925d24}.badge.red,.badge.negative{background:#faebe8;color:var(--red)}.badge.gray{background:#eef0ed;color:var(--muted)}.positive{color:var(--green)}.negative,[role=alert]{color:var(--red)}[hidden]{display:none!important}
.sidebar{position:fixed;inset:0 auto 0 0;width:248px;padding:34px 22px 22px;border-right:1px solid var(--line);background:#fcfdfb;display:flex;flex-direction:column;z-index:40;overflow-y:auto}.brand{display:flex;align-items:center;gap:12px;font-size:24px;font-weight:800;letter-spacing:1px;margin-bottom:44px}.brand small{display:block;font-weight:500;font-size:11px;letter-spacing:0;color:var(--muted);margin-top:1px}.brand-mark{height:43px;width:43px;display:grid;place-items:center;border-radius:14px;background:var(--green-dark);color:#fff;font-size:22px}.nav-item{display:flex;align-items:center;gap:12px;padding:13px 16px;border-radius:11px;font-size:14px;color:#64756d;margin-bottom:6px;min-height:48px}.nav-item:hover{background:#f0f3ed}.nav-item.active{background:var(--green-soft);color:var(--green-dark);font-weight:700}.nav-label{font-size:11px;letter-spacing:1px;color:#89958d;padding:22px 16px 0}.sidebar-bottom{margin-top:auto;padding-top:28px}.service-note{padding:18px 14px;border-top:1px solid var(--line);font-size:12px}.service-note p{color:var(--muted);font-size:12px;margin:5px 0}.service-note strong{font-size:12px}.user-link{display:flex;align-items:center;gap:10px;padding:16px 10px;border-top:1px solid var(--line);font-size:13px}.user-link small{display:block;font-size:11px}.avatar{display:inline-grid;place-items:center;background:#e9ede5;color:var(--green);border-radius:50%;width:35px;height:35px;font-weight:700}.workspace{margin-left:248px}.topbar{height:83px;border-bottom:1px solid var(--line);padding:0 42px;display:flex;align-items:center;gap:18px;background:#fcfdfbc9}.top-title{font-size:14px;color:var(--muted)}.top-date{margin-left:auto;color:var(--muted);font-size:12px}.service-tag{font-size:11px;letter-spacing:1px;border:1px solid #d5dfd1;border-radius:20px;padding:4px 11px;color:var(--green)}main{max-width:1390px;padding:42px;margin:0 auto;min-height:calc(100vh - 83px)}.page-head{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:30px}.sub{color:var(--muted);font-size:14px;margin-bottom:0}.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);min-width:0;overflow:hidden}.card-body{padding:26px}.card-head{padding:24px 26px 0;display:flex;justify-content:space-between;align-items:center;gap:16px}.card-head h2{margin:0}.card-head p{font-size:13px;color:var(--muted);margin:4px 0}.section-gap{margin-top:22px}.stack{display:grid;gap:20px}.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.three-columns{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.stats,.kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.stat{padding:24px;background:#fff;border:1px solid var(--line);border-radius:14px;min-width:0}.stat>span{display:block;color:var(--muted);font-size:13px}.stat>strong{display:block;font-size:27px;font-weight:700;letter-spacing:-.8px;margin:9px 0 3px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.stat>small{display:block;font-size:12px}.field{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:600;margin-bottom:19px}.field input,.field select,.field textarea,select.control{padding:12px 13px;min-height:45px;border:1px solid #d6dfd5;border-radius:9px;background:#fff;min-width:0;width:100%;color:var(--ink);font-weight:400}.field small{font-weight:400}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}fieldset{border:0;margin:0 0 20px;padding:0}legend{font-size:13px;font-weight:700;margin-bottom:10px}.check{display:flex;gap:10px;align-items:flex-start;margin:15px 0;font-size:13px}.check input{accent-color:var(--green);width:17px;height:17px;flex-shrink:0}details{margin:18px 0}summary{cursor:pointer;font-size:13px;font-weight:600;min-height:40px;padding:10px 0}details[open]>summary{margin-bottom:12px}.data-row{display:flex;justify-content:space-between;gap:20px;padding:12px 0;border-bottom:1px solid var(--line);font-size:14px}.data-row:last-child{border:0}.data-row>span{color:var(--muted)}table{width:100%;border-collapse:collapse;font-size:13px}th{font-weight:500;color:var(--muted);text-align:left;padding:13px 16px;background:#f8faf6;white-space:nowrap}td{padding:15px 16px;border-bottom:1px solid var(--line);vertical-align:middle}td small{display:block;font-size:11px}tr:last-child td{border-bottom:0}.table-wrap{overflow:auto;max-width:100%}.numeric{text-align:right;font-variant-numeric:tabular-nums}.empty{text-align:center;padding:60px 24px}.empty p{max-width:460px;margin:0 auto 24px;color:var(--muted);font-size:14px}.empty-icon{height:56px;width:56px;border-radius:18px;background:var(--green-soft);color:var(--green);display:grid;place-items:center;margin:0 auto 22px}.empty-icon .icon{height:26px;width:26px}.loading{padding:45px;text-align:center;color:var(--muted)}.error-card{padding:30px}.managed-banner{border:1px solid #e3cfaa;padding:14px 20px;border-radius:12px;background:#fff6e7;margin-bottom:24px;display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:13px}footer{margin-top:38px;color:#8b978e;font-size:11px}.mobile-nav,.mobile-menu,.menu-overlay{display:none}.skip{position:fixed;top:-100px;left:12px;background:white;padding:12px;z-index:110}.skip:focus{top:10px}
.mode-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.mode-choice{position:relative;display:block;cursor:pointer}.mode-choice input{position:absolute;opacity:0;inset:0;width:100%;height:100%;cursor:pointer}.mode-choice>span{display:block;padding:17px 14px;border:1px solid #dce3d9;border-radius:12px;background:#fff;height:100%}.mode-choice strong{display:block;font-size:15px;margin-bottom:4px}.mode-choice small{display:block;font-size:11px;font-weight:400;line-height:1.5}.mode-choice input:checked+span{border-color:var(--green);background:#eef5ec;box-shadow:inset 0 0 0 1px var(--green)}.mode-choice input:focus-visible+span{outline:3px solid #8eaf64;outline-offset:3px}.account-card-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.account-card-header h2{margin-bottom:5px}.account-card-header p{font-size:12px;color:var(--muted)}.account-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:23px 0}.account-facts dt{color:var(--muted);font-size:12px}.account-facts dd{margin:4px 0;font-size:17px;font-weight:600}.account-footer{border-top:1px solid var(--line);padding-top:18px;margin-top:18px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.telegram-box{padding:17px 20px;background:#f7f9f5;border:1px solid var(--line);border-radius:12px;display:flex;gap:15px;justify-content:space-between;align-items:center}.telegram-box h3{font-size:13px;margin-bottom:3px}.telegram-box p{font-size:12px;color:var(--muted);margin:0}.telegram-dialog{text-align:center}.telegram-dialog .connect-symbol{margin:10px auto 20px;width:62px;height:62px;background:#e6f0eb;display:grid;place-items:center;border-radius:50%;font-size:28px}.telegram-dialog p{color:var(--muted)}.telegram-dialog .button{margin:14px 0}.telegram-manage{border-top:1px solid var(--line);padding-top:16px;margin-top:22px}
.today-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:27px 30px;background:var(--green-dark);color:#fff;border-radius:var(--radius);margin-bottom:25px}.today-hero h2{font-size:22px;margin-bottom:7px}.today-hero p{color:#bfcec2;font-size:13px;margin-bottom:0}.today-hero .hero-date{font-size:12px;letter-spacing:.3px;margin-bottom:8px;color:#c8d2bf}.today-hero .hero-label{display:flex;gap:8px;align-items:center;font-size:13px;color:#d3ddce;white-space:nowrap}.order-state{padding:16px 20px;background:#f3f7f0;border-radius:12px;margin:18px 0;color:#4d6356;font-size:13px}.order-state.warning{background:#fff6e6;color:#855a26}.order-state.error{background:#fcefeb;color:var(--red)}.order-balance{display:flex;gap:22px;flex-wrap:wrap;padding:14px 0 20px;font-size:13px;color:var(--muted)}.order-balance strong{color:var(--ink);margin-left:7px}.order-list{display:grid;gap:10px}.order-row{display:grid;grid-template-columns:70px 1fr auto;gap:17px;align-items:center;padding:20px;border:1px solid var(--line);border-radius:12px}.order-side{font-size:13px;font-weight:700;background:var(--green-soft);color:var(--green);padding:8px 10px;text-align:center;border-radius:9px}.order-side.sell{background:#f8eee5;color:#9a5b2f}.order-instruction strong{font-size:15px;display:block}.order-instruction p{font-size:12px;color:var(--muted);margin:4px 0 0}.order-quantity{font-size:23px;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}.order-quantity small{font-size:13px}.order-foot{margin:18px 0 0;font-size:12px;color:var(--muted)}.steps{padding-left:23px;margin:24px 0}.steps li{padding-left:8px;margin:20px 0}.steps strong,.steps span{display:block}.steps span{font-size:13px;color:var(--muted);margin-top:4px}.segmented{display:flex;gap:6px;flex-wrap:wrap;background:#eaf0e7;border-radius:11px;padding:5px;width:fit-content}.segmented button{padding:8px 15px;border-radius:8px;font-size:13px;min-height:40px}.segmented button.active{background:#fff;box-shadow:0 2px 8px #17352a08;color:var(--green);font-weight:700}.records-select{max-width:300px}.trade-editor{display:grid;grid-template-columns:90px 1fr 1fr 1fr auto;gap:8px;align-items:center;border-top:1px solid var(--line);padding:18px 0}.trade-editor .field{margin:0}.trade-editor .button{align-self:end}.record-date{display:flex;gap:12px;align-items:end;margin:20px 0}.record-date .field{margin:0}
.backtest-layout{display:grid;grid-template-columns:360px minmax(0,1fr);gap:20px;align-items:start}.backtest-controls{position:sticky;top:24px;padding:20px}.backtest-controls .mode-choices{gap:6px}.backtest-controls .mode-choice>span{padding:12px 8px;text-align:center}.backtest-controls .mode-choice small{display:none}.section-label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;margin:24px 0 12px}.section-label:first-child{margin-top:0}.section-label b{display:inline-grid;place-items:center;width:21px;height:21px;background:#edf2e9;border-radius:50%;font-size:10px;color:var(--green)}.period-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.period-choice{text-align:left;padding:10px 12px;background:#fff;border:1px solid var(--line);border-radius:10px}.period-choice strong{display:block;font-size:13px;line-height:1.4}.period-choice small{display:block;font-size:10px;line-height:1.5;margin-top:4px}.period-choice.active{background:#f0f5eb;border-color:#769477;box-shadow:inset 3px 0 0 var(--green)}.period-description{font-size:12px;color:var(--muted);margin:10px 0 12px;line-height:1.6}.backtest-results>.stats{margin-bottom:20px}.backtest-results .stat{padding:20px}.backtest-results .stat>strong{font-size:23px}.result-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:20px}.result-heading h2{font-size:20px;margin-bottom:4px}.result-heading p{font-size:12px;color:var(--muted);margin:0}.result-empty{padding:65px 35px;background:linear-gradient(150deg,#fff,#f3f7ed);min-height:430px;display:grid;align-content:center;text-align:center}.result-empty h2{font-size:25px}.result-empty p{color:var(--muted);font-size:14px;margin-bottom:24px}.result-empty .empty-lines{width:220px;height:90px;margin:0 auto 28px;color:#aec3a7}.result-empty .empty-lines svg{width:100%;height:100%}.cost-line{font-size:11px;color:var(--muted);margin:12px 0}.result-detail{padding:22px}.result-detail summary{font-size:13px}.result-detail p{font-size:12px;color:var(--muted)}.metric-extras{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0}.metric-extras span{display:block;font-size:12px;color:var(--muted)}.metric-extras strong{font-size:17px}
.chart-card{padding:24px;margin-bottom:20px}.chart-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}.chart-heading h3{font-size:16px;margin:0 0 5px}.chart-heading p{font-size:12px;color:var(--muted);margin:0}.chart-toggle{display:flex;align-items:center;gap:5px;font-size:11px;white-space:nowrap;color:var(--muted)}.chart-legend{display:flex;gap:20px;flex-wrap:wrap;font-size:11px;color:var(--muted);margin-bottom:8px}.chart-legend i,.chart-readout i{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px}.chart-svg{display:block;width:100%;height:auto;min-height:180px;overflow:visible}.chart-svg text{font:10px -apple-system,BlinkMacSystemFont,"Segoe UI","Malgun Gothic",sans-serif;fill:#7a8a80}.chart-grid{stroke:#e8eee3;stroke-dasharray:3 4}.chart-cursor{stroke:#95a98e;stroke-dasharray:3 3}.chart-readout{display:flex;gap:14px;align-items:center;flex-wrap:wrap;font-size:12px;min-height:38px;padding-top:10px;border-top:1px solid var(--line)}.chart-readout>strong{margin-right:auto}.chart-readout span{white-space:nowrap}.chart-range{display:flex;gap:15px;align-items:center;font-size:11px;color:var(--muted);margin-top:12px}.chart-range input{width:100%;accent-color:var(--green);min-height:24px}.chart-boundary{stroke:#c5b18b;stroke-dasharray:5 5}.chart-caption{font-size:11px;color:var(--muted);margin-top:12px}.lab-controls{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:22px}.lab-controls .field{margin:0;min-width:200px}.lab-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.lab-tabs{margin-bottom:25px}.formula{background:#f4f7f1;border-radius:10px;padding:16px;overflow:auto;font:12px/1.8 ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere}.parameter-table td:last-child{min-width:220px}.source-list{font-size:12px}.source-list code{font-size:10px;word-break:break-all}.health-list{display:grid;gap:10px}.health-item{padding:16px 20px;border:1px solid var(--line);border-radius:12px}.health-head{display:flex;justify-content:space-between;gap:12px}.health-item p{font-size:12px;color:var(--muted);margin:8px 0 0}.admin-user-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.admin-user-card{padding:21px;border:1px solid var(--line);border-radius:12px}.admin-user-card h3{margin-bottom:4px}.admin-user-card p{font-size:12px;color:var(--muted)}.admin-user-card .flow-actions{margin-top:12px}
dialog{border:1px solid var(--line);border-radius:20px;max-width:620px;width:calc(100% - 32px);max-height:90vh;padding:0;color:var(--ink);box-shadow:0 25px 100px #153c3730}dialog::backdrop{background:#142a2466;backdrop-filter:blur(3px)}.dialog-head{padding:21px 26px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line)}.dialog-head h2{font-size:19px;margin:0}.dialog-body{padding:26px}.dialog-body>p{font-size:14px}.dialog-body form>[role=alert]{font-size:13px}.login-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-story{padding:54px 11%;background:var(--green-dark);color:#fff;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh}.login-story .brand{color:#fff}.login-story .brand-mark{background:#f1f6e6;color:var(--green-dark)}.login-story .eyebrow{color:#a5bb8a;font-size:10px}.login-story h1{font-size:clamp(40px,4vw,64px);letter-spacing:-2px;line-height:1.3}.login-story p:not(.eyebrow){color:#bdcfbf;line-height:1.9;font-size:16px}.login-story>small{color:#9eb09f;font-size:11px}.login-modes{display:flex;gap:10px;margin-top:36px}.login-modes span{padding:8px 24px;border:1px solid #4f6b59;border-radius:30px;color:#c9d8be;font-size:13px}.login-form{display:flex;justify-content:center;align-items:center;padding:45px;background:#fcfdfb}.login-form form{width:100%;max-width:350px}.login-form h2{font-size:29px;margin-bottom:8px}.login-form p{font-size:13px;color:var(--muted)}.login-form .field:first-of-type{margin-top:30px}.login-foot{text-align:center;margin-top:22px}.login-foot a{color:var(--green);font-weight:600}.login-form [role=alert]{color:var(--red)}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#203a31;color:#fff;padding:14px 22px;border-radius:12px;max-width:calc(100% - 30px);font-size:13px;z-index:150;box-shadow:0 8px 30px #20363118;transition:.15s}#toast.show{opacity:1;transform:translate(-50%,0)}
.rpa-overview,.rpa-columns,.rpa-baseline-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.rpa-overview{grid-template-columns:repeat(3,1fr);margin-bottom:20px}.rpa-flow{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;padding:25px;margin-bottom:20px}.rpa-flow strong,.rpa-flow small{display:block}.rpa-flow span{color:var(--green);font-size:11px}.rpa-flow strong{font-size:14px;margin:5px 0}.rpa-line{display:flex;justify-content:space-between;gap:12px;align-items:center}.rpa-account,.rpa-device{padding:20px 0;border-bottom:1px solid var(--line)}.rpa-account:first-child,.rpa-device:first-child{padding-top:0}.rpa-account p,.rpa-device p{font-size:12px;color:var(--muted)}.rpa-account dl{display:grid;grid-template-columns:100px 1fr;gap:8px;font-size:12px}.rpa-account dt{color:var(--muted)}.rpa-account dd{margin:0}.rpa-check{display:flex;gap:10px;margin:15px 0;font-size:13px}.rpa-opening-lot{padding:16px;border:1px solid var(--line);border-radius:10px}.rpa-opening-lot legend{padding:0 8px}
@media(min-width:1600px){main{padding-top:52px}.backtest-layout{grid-template-columns:380px minmax(0,1fr)}}
@media(max-width:1180px){.sidebar{width:218px;padding:28px 15px}.workspace{margin-left:218px}main{padding:30px}.topbar{padding:0 30px}.backtest-layout{grid-template-columns:340px minmax(0,1fr);gap:18px}.backtest-controls{padding:20px}.stat>strong{font-size:23px}.backtest-results .stats{gap:10px}.backtest-results .stat{padding:17px}.backtest-results .stat>strong{font-size:20px}}
@media(max-width:970px){.backtest-layout{grid-template-columns:1fr}.backtest-controls{position:static}.backtest-controls .period-choices{grid-template-columns:repeat(4,1fr)}.backtest-controls form{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}.backtest-controls .period-field{grid-column:1/-1}.backtest-controls .section-label{margin-top:0}.backtest-controls .run-field{align-self:end}.backtest-controls .mode-choice small{display:block}.two-columns,.lab-grid,.rpa-columns{grid-template-columns:1fr}.admin-user-grid{grid-template-columns:1fr}.top-date{font-size:11px}.stat>strong{font-size:23px}}
@media(max-width:760px){.three-columns{grid-template-columns:1fr}h1{font-size:28px}.sidebar{transform:translateX(-100%);visibility:hidden;transition:transform .2s;width:270px;box-shadow:20px 0 60px #18362716}.menu-open .sidebar{transform:translateX(0);visibility:visible}.menu-open .menu-overlay{display:block;position:fixed;inset:0;background:#153c3755;z-index:39}.workspace{margin-left:0}.topbar{height:66px;padding:0 20px;gap:12px}.mobile-menu{display:inline-grid}.top-title{font-size:13px}.top-date{display:none}.service-tag{margin-left:auto}main{padding:27px 18px 95px}.page-head{align-items:flex-start;margin-bottom:24px;gap:14px}.page-head .button{font-size:12px;padding:9px 12px}.page-head h1{font-size:27px}.page-head .sub{font-size:13px}.eyebrow{font-size:9px}.card-body{padding:22px}.card-head{padding:21px 22px 0}.mobile-nav{display:flex;position:fixed;inset:auto 0 0;background:#fcfdfbf5;border-top:1px solid var(--line);padding:7px 8px max(7px,env(safe-area-inset-bottom));z-index:30;backdrop-filter:blur(12px)}.mobile-nav .nav-item{flex:1;display:flex;flex-direction:column;justify-content:center;gap:4px;font-size:11px;padding:7px 2px;margin:0;border-radius:10px;min-height:50px}.mobile-nav .icon{width:19px;height:19px}.sidebar-bottom{padding-top:12px}.today-hero{padding:23px;align-items:flex-start}.today-hero h2{font-size:19px}.today-hero .hero-label{display:none}.account-facts{gap:10px}.account-facts dd{font-size:15px}.account-facts dt{font-size:11px}.order-row{grid-template-columns:58px minmax(0,1fr) auto;gap:11px;padding:16px 13px}.order-side{font-size:11px;padding:7px 8px}.order-instruction strong{font-size:13px}.order-instruction p{font-size:11px}.order-quantity{font-size:20px}.telegram-box{padding:15px;flex-wrap:wrap}.telegram-box>.flow-actions{margin-left:auto}.telegram-box p{font-size:11px}.stat{padding:18px}.stat>span{font-size:11px}.stat>strong{font-size:22px}.stat>small{font-size:10px}.stats,.kpis{gap:10px}.account-footer .flow-actions{gap:6px}.account-footer .button{font-size:12px;padding:9px 12px}.form-grid{gap:0 13px}.chart-card{padding:20px 15px}.chart-heading{padding:0 3px}.chart-readout{font-size:11px;gap:8px}.chart-readout>strong{width:100%}.chart-svg{min-height:165px}.chart-legend{gap:13px;font-size:10px}.backtest-controls{padding:18px}.backtest-controls form{display:block}.backtest-controls .section-label{margin-top:24px}.backtest-controls .section-label:first-child{margin-top:0}.backtest-controls .period-choices{grid-template-columns:1fr 1fr}.backtest-controls .mode-choice small{display:none}.result-empty{min-height:300px;padding:45px 25px}.result-empty h2{font-size:22px}.result-empty .empty-lines{height:65px}.backtest-results .stat{padding:17px 13px}.backtest-results .stat>strong{font-size:19px}.metric-extras{gap:8px}.metric-extras strong{font-size:16px}.lab-controls{align-items:stretch}.lab-controls .field{flex:1;min-width:140px}.lab-tabs{gap:2px}.lab-tabs button{font-size:12px;padding:8px 10px}.login-page{display:block}.login-story{min-height:auto;padding:28px 26px}.login-story .brand{font-size:21px;margin-bottom:25px}.login-story h1{font-size:31px;line-height:1.35;letter-spacing:-1px}.login-story .eyebrow,.login-story>small,.login-modes,.login-story div>p:not(.eyebrow){display:none}.login-form{padding:34px 26px;min-height:60vh}.login-form h2{font-size:25px}.dialog-head{padding:18px 20px}.dialog-body{padding:22px 20px}.mode-choice>span{padding:14px 10px}.mode-choice small{font-size:10px}.trade-editor{grid-template-columns:1fr 1fr;gap:10px}.trade-editor .field:first-child{grid-column:1/-1}.trade-editor .button{min-height:44px}.rpa-overview{grid-template-columns:1fr}.rpa-flow{grid-template-columns:1fr 1fr;gap:18px}.rpa-baseline-grid{grid-template-columns:1fr}.managed-banner{align-items:flex-start;flex-direction:column}#toast{bottom:88px;width:max-content;text-align:center}.order-balance{font-size:12px;gap:12px}footer{font-size:10px}}
@media(max-width:380px){.page-head{flex-wrap:wrap}.stats,.kpis{grid-template-columns:1fr}.backtest-results .stats{grid-template-columns:1fr}.stat{display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px 12px}.stat>strong{margin:0;font-size:23px}.stat>small{grid-column:1/-1}.account-facts{grid-template-columns:1fr 1fr}.order-row{grid-template-columns:50px 1fr}.order-quantity{grid-column:2}.chart-heading{flex-wrap:wrap}.chart-readout span{white-space:normal}.form-grid{grid-template-columns:1fr}.mode-choice small{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.period-choice .period-dates{display:flex;flex-direction:column;column-gap:4px}.period-dates time{white-space:nowrap}.period-dates time+time::before{content:"~ "}@media(max-width:760px){.period-choice .period-dates{flex-direction:column}}
.field input[data-money-grouped],.field input[type="date"]{font-variant-numeric:tabular-nums}.field input[data-money-grouped]{text-align:right}.backtest-range .field,.backtest-costs .field{min-width:0}.backtest-range input{width:100%;min-width:0}
.backtest-controls form{display:grid;gap:18px}.backtest-controls .section-label{margin:0 0 10px}.backtest-controls .mode-choice strong{margin-bottom:0}.backtest-controls .field{margin-bottom:0;gap:6px}.backtest-controls .field input{min-height:44px;padding:10px 11px;font-size:13px}.backtest-controls .form-note{margin:8px 0 0;font-size:12px;line-height:1.55}.backtest-range,.backtest-costs{display:grid;gap:0 12px;grid-template-columns:repeat(2,minmax(0,1fr))}.backtest-metrics .stat>span,.backtest-metrics .stat>small{line-height:1.5}
@media(min-width:1101px) and (max-width:1320px){.backtest-results .backtest-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-height:900px){.backtest-controls{position:static}}
@media(min-width:761px) and (max-width:1100px){.backtest-layout{grid-template-columns:minmax(0,1fr)}.backtest-controls{position:static}.backtest-controls form{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:22px}.backtest-controls form>div:first-child,.backtest-controls .period-field,.backtest-controls .run-field{grid-column:1/-1}.backtest-controls .period-choices{grid-template-columns:repeat(4,minmax(0,1fr))}.backtest-controls .mode-choice small{display:none}}
@media(max-width:760px){.backtest-controls form{display:grid;grid-template-columns:minmax(0,1fr)}.backtest-controls form>div{grid-column:auto}.backtest-results .backtest-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:380px){.backtest-results .backtest-metrics,.backtest-range{grid-template-columns:minmax(0,1fr)}}
.money-dual{display:inline-flex;flex-direction:column;gap:2px;vertical-align:middle;max-width:100%;font-variant-numeric:tabular-nums}.money-dual .money-usd{line-height:1.3}.money-dual .money-krw{display:block;color:var(--muted);font-size:12px;font-weight:500;line-height:1.4;letter-spacing:0;overflow-wrap:anywhere}.numeric .money-dual{align-items:flex-end}.stat>strong .money-krw{font-size:13px}.stat>small .money-dual{display:inline-flex;flex-direction:row;flex-wrap:wrap;gap:0 6px}.stat>small .money-krw{font-size:11px}.chart-readout>span{align-items:flex-start}.chart-readout .money-krw{font-size:11px}.input-krw{color:var(--muted);font-weight:400}.field .input-krw{margin:0;line-height:1.4}.exchange-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.exchange-card-heading h2{margin-bottom:4px}.exchange-card-heading p{margin-bottom:10px;font-size:20px;font-weight:600}footer a{text-decoration:underline;text-underline-offset:3px}@media(max-width:760px){.money-dual .money-krw,.stat>strong .money-krw{font-size:11px}.chart-readout .money-krw{font-size:10px}.order-balance .money-dual{font-size:13px}.exchange-card-heading p{font-size:18px}}
.chart-svg{touch-action:pan-y;cursor:crosshair}

.chart-range{white-space:nowrap}.chart-range input{width:auto;flex:1;min-width:0}
.order-history{margin:22px 0 0;border-top:1px solid var(--line);padding-top:6px}.history-date{max-width:320px;margin:0 0 16px}.saved-order-sheet{padding:20px;background:#f7f9f5;border:1px solid var(--line);border-radius:12px}.saved-order-sheet .account-card-header h3{font-size:15px}.saved-order-sheet .order-row{background:white}.sample-order-case{padding:16px 0;border-top:1px solid var(--line)}.sample-order-case h3{font-size:14px;margin:0 0 12px}.sample-order-case .order-row{padding:12px;gap:10px}.sample-message{font:12px/1.7 ui-monospace,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;background:#f7f9f5;padding:16px;border-radius:10px}.telegram-samples>[data-telegram-feedback]{font-size:13px;margin:12px 0}.telegram-box .flow-actions{flex-wrap:wrap}@media(max-width:760px){.saved-order-sheet{padding:15px}.saved-order-sheet .account-card-header{gap:10px}.sample-order-case .order-quantity{min-width:35px}}
.today-order-card .card-body{padding:24px 28px}.sheet-status-header{justify-content:flex-end;margin-bottom:4px}.sheet-status-header>div{display:none}.today-pending{padding:18px 24px;margin-bottom:18px}.today-pending h2{font-size:18px}.order-presentation{min-width:0;font-size:13px;line-height:1.5}.sheet-heading h3{font-size:18px;margin:0 0 3px;letter-spacing:-.4px}.sheet-heading p{margin:0 0 12px;color:var(--muted);font-size:12px}.sheet-session{margin-bottom:16px}.sheet-session p{display:flex;gap:10px;flex-wrap:wrap;margin:3px 0}.sheet-session p>span{min-width:54px;color:var(--muted);font-size:12px}.sheet-session strong{font-weight:600}.sheet-time-change{font-size:12px;color:var(--muted)}.sheet-block{border-top:1px solid var(--line);padding:13px 0}.sheet-block h4{margin:0 0 8px;font-size:13px;font-weight:700}.sheet-block h4 small{font-size:11px;font-weight:400;margin-left:5px}.sheet-money{display:inline-flex;align-items:baseline;gap:5px;flex-wrap:wrap;max-width:100%;font-variant-numeric:tabular-nums}.sheet-money strong{font-size:inherit}.sheet-money small{font-size:11px;line-height:1.4;font-weight:400;color:var(--muted)}.sheet-market-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 24px}.sheet-market-values p{display:flex;align-items:baseline;gap:6px 10px;flex-wrap:wrap;margin:0}.sheet-market-values p>span:first-child{color:var(--muted);font-size:12px}.sheet-market-values p>small{font-size:10px;color:var(--muted)}.sheet-account-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 24px}.sheet-account-values p{display:flex;align-items:baseline;gap:8px 12px;flex-wrap:wrap;margin:0}.sheet-account-values p>span:first-child{min-width:72px;color:var(--muted);font-size:12px}.sheet-account-values b{font-weight:600;margin-left:5px;color:var(--green)}.sheet-account-values .sheet-stock{grid-column:1/-1}.sheet-holdings{display:inline-flex;align-items:baseline;gap:10px;flex-wrap:wrap}.sheet-holdings>span{color:var(--muted);font-size:12px}.sheet-stock-value{color:var(--muted);font-size:12px}.sheet-stock-value .sheet-money{margin-left:5px;color:var(--ink)}.sheet-buy-plan{display:flex;align-items:baseline;gap:8px 12px;flex-wrap:wrap;margin:0 0 12px;padding:9px 12px;background:#f1f6ef;border-radius:8px}.sheet-buy-plan>span:first-child{font-size:12px;color:var(--muted)}.sheet-no-orders{margin:0;padding:12px;background:#f7f9f5;border-radius:8px}.sheet-footnotes{display:flex;gap:4px 12px;flex-wrap:wrap;font-size:11px;color:var(--muted);line-height:1.5}.order-table-wrap{max-width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:10px;background:#fff}.order-table{table-layout:fixed;border-collapse:collapse;width:100%;font-size:12px;line-height:1.5;text-align:left}.order-table th,.order-table td{padding:11px 12px;border-bottom:1px solid var(--line);overflow-wrap:anywhere;vertical-align:middle}.order-table thead{background:#f5f8f2;color:var(--muted)}.order-table thead th{font-weight:500;font-size:11px}.order-table thead th:first-child{width:24%}.order-table thead th:nth-child(2){width:10%;text-align:right}.order-table thead th:nth-child(3){width:22%}.order-table td:nth-child(2){text-align:right;font-variant-numeric:tabular-nums}.order-table tbody th{font-weight:600;color:var(--green)}.order-table tbody .sell th{color:#9a5b2f}.order-table tbody tr:last-child th,.order-table tbody tr:last-child td{border-bottom:0}.order-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.saved-order-meta{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;font-size:11px;color:var(--muted)}.order-reading-guide>h3{font-size:14px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.order-reading-guide>.note{margin-bottom:18px;font-size:13px}.guide-example{padding:18px 20px;background:#f8faf6;border:1px solid var(--line);border-radius:12px}.guide-types-title{margin-top:24px}.order-reading-guide>.form-note{margin:12px 0 0}.sample-order-case{padding:0;border:1px solid var(--line);border-radius:10px;margin:10px 0;background:#fff}.sample-order-case>summary{padding:12px 15px;font-size:13px;font-weight:600}.sample-order-case>summary::marker{color:var(--green)}.sample-order-case>.order-presentation,.sample-order-case>.order-table-wrap,.sample-order-case>.form-note{margin:0 15px 15px}.sample-order-case>.order-presentation{border-top:1px solid var(--line);padding-top:14px}.telegram-samples>.note{padding:10px 14px;margin:10px 0 15px}.telegram-samples>details:last-child>summary{font-size:12px;color:var(--muted)}dialog:has(.order-reading-guide),dialog:has(.telegram-samples){max-width:860px}
@media(max-width:760px){.today-order-card .card-body{padding:18px}.sheet-heading h3{font-size:16px}.sheet-session{margin-bottom:12px}.sheet-session p{gap:4px 8px;font-size:12px}.sheet-session p>span{min-width:48px;font-size:11px}.sheet-time-change{font-size:11px!important}.sheet-block{padding:11px 0}.sheet-market-values{grid-template-columns:1fr;gap:8px}.sheet-account-values{grid-template-columns:1fr;gap:8px}.sheet-account-values .sheet-stock{grid-column:auto}.sheet-account-values p>span:first-child{min-width:62px}.sheet-money{gap:3px}.sheet-money small{font-size:10px}.sheet-holdings{gap:7px}.sheet-stock-value{padding-left:74px;width:100%}.sheet-holdings .sheet-money small{display:none}.sheet-buy-plan{gap:5px 9px;padding:9px 10px}.order-table{font-size:11px}.order-table th,.order-table td{padding:9px 6px}.order-table thead th{font-size:10px}.order-table thead th:first-child{width:25%}.order-table thead th:nth-child(2){width:12%}.order-table thead th:nth-child(3){width:23%}.sheet-footnotes{font-size:10px;gap:3px 8px}.guide-example{padding:14px}.sample-order-case>summary{padding:11px 12px}.sample-order-case>.order-presentation,.sample-order-case>.order-table-wrap,.sample-order-case>.form-note{margin-left:12px;margin-right:12px}.order-reading-guide .order-table-wrap{margin-left:-5px;margin-right:-5px;max-width:calc(100% + 10px)}}
.order-table th,.order-table td{white-space:normal}.order-type-code{font-size:.95em;font-weight:500}.order-condition-part{display:inline-block;white-space:nowrap}.order-table td:nth-child(3){overflow-wrap:normal;word-break:keep-all}@media(max-width:760px){.order-table thead th:first-child{width:29%}.order-table thead th:nth-child(2){width:11%}.order-table thead th:nth-child(3){width:26%}.order-table tbody th{word-break:keep-all;overflow-wrap:anywhere}.order-type-code{display:block;white-space:normal}.order-table td:nth-child(2){white-space:nowrap;padding-left:2px;padding-right:5px}.order-table td:nth-child(3){padding-left:5px;padding-right:5px}}
@media(max-width:760px){#record-content>.stats{grid-template-columns:repeat(2,minmax(0,1fr))}#record-content>.stats>.stat:first-child{grid-column:1/-1}#record-content>.stats>.stat{padding:16px}#record-content>.stats>.stat>strong{font-size:21px}}
@media(max-width:380px){#record-content>.stats{grid-template-columns:minmax(0,1fr)}}
#detail:has(.order-reading-guide)::backdrop,#detail:has(.telegram-samples)::backdrop{backdrop-filter:none}

.result-heading>.badge{flex-shrink:0;white-space:nowrap}
@media(max-width:600px){.result-heading{flex-wrap:wrap;gap:8px}.result-heading>div{flex-basis:100%}}
.record-performance .card-head{padding:20px 24px 0}.record-performance .card-head h2{font-size:16px}.record-performance-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px 20px;margin:18px 24px}.record-performance-metrics>div{min-width:0}.record-performance-metrics dt{font-size:12px;color:var(--muted);line-height:1.5}.record-performance-metrics dd{margin:6px 0 0;font-size:25px;font-weight:700;line-height:1.3;letter-spacing:-.6px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.record-metric-guide{margin:0 24px;border-top:1px solid var(--line)}.record-metric-guide summary{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 0;font-size:12px;color:var(--green)}.record-metric-guide summary::before{content:'＋'}.record-metric-guide[open] summary::before{content:'−'}.record-metric-guide summary>span{margin-left:auto;color:var(--muted);font-size:11px;font-weight:400}.record-metric-guide p{font-size:12px;line-height:1.7;color:var(--muted);margin:0 0 12px}
@media(max-width:1100px){.record-performance-metrics{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:18px}}
@media(max-width:760px){.record-performance .card-head{padding:18px 18px 0}.record-performance-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 18px}.record-performance-metrics dd{font-size:23px}.record-metric-guide{margin:0 18px}.record-metric-guide summary{flex-wrap:wrap;justify-content:flex-start}.record-metric-guide summary>span{margin-left:auto}}

.calendar-returns{min-width:0;max-width:100%;overflow:hidden;margin-bottom:22px}.calendar-returns-summary{display:flex;align-items:center;gap:10px;padding:18px 20px;list-style:none}.calendar-returns-summary::-webkit-details-marker{display:none}.calendar-returns-summary::before{content:'＋';font-size:17px;color:var(--green)}.calendar-returns[open]>.calendar-returns-summary{margin-bottom:0}.calendar-returns[open]>.calendar-returns-summary::before{content:'−'}.calendar-returns-summary:focus-visible{outline-offset:-4px}.calendar-returns-summary h2{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:1;margin:0;font-size:16px;line-height:1.5}.calendar-returns-action{font-size:12px;font-weight:400;color:var(--green);white-space:nowrap}.calendar-returns .calendar-hide,.calendar-returns[open] .calendar-show{display:none}.calendar-returns[open] .calendar-hide{display:inline}.calendar-returns-description{padding:0 20px 14px;margin:0;font-size:12px;color:var(--muted)}.calendar-returns-scroll{min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}.calendar-returns-table{min-width:680px;width:100%;border-collapse:separate;border-spacing:0;table-layout:auto;font-size:12px;font-variant-numeric:tabular-nums}.calendar-returns-table th,.calendar-returns-table td{padding:10px 3px;white-space:nowrap;border-bottom:1px solid var(--line);line-height:1.5}.calendar-returns-table thead th{font-size:10px;background:#f5f8f2;vertical-align:middle;font-weight:600}.calendar-returns-table th:first-child{position:sticky;left:0;z-index:1;width:74px;padding-left:10px;text-align:left;background:#fff;box-shadow:1px 0 0 var(--line)}.calendar-returns-table thead th:first-child{z-index:2;background:#f5f8f2}.calendar-returns-table tbody th{font-size:12px;font-weight:600}.calendar-returns-table tbody th small{display:block;font-size:9px;font-weight:400;color:var(--muted)}.calendar-returns-table .calendar-annual{border-left:1px solid var(--line);width:58px;background:#f6f8f4}.calendar-returns-table td.positive{background:#f1f7ef}.calendar-returns-table td.negative{background:#fcf2f0}.calendar-returns-table .return-missing{color:#8d9993}.calendar-returns-table .return-zero{color:var(--muted)}.calendar-returns-table tbody tr:last-child th,.calendar-returns-table tbody tr:last-child td{border-bottom:0}.calendar-returns-note{padding:12px 20px;margin:0;border-top:1px solid var(--line);font-size:11px;line-height:1.65;color:var(--muted)}.calendar-empty{padding:0 20px 18px;margin:0;color:var(--muted);font-size:13px}.calendar-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:760px){.calendar-returns-summary{padding:18px}.calendar-returns-description{padding:0 18px 14px}.calendar-returns-note{padding:12px 18px}.calendar-empty{padding:0 18px 18px}}
.backtest-results{min-width:0}.backtest-results>.calendar-returns{margin-top:0}.backtest-results .calendar-returns-table{font-size:11px}
.telegram-box{display:block}.telegram-overview{display:flex;align-items:center;justify-content:space-between;gap:16px}.telegram-overview>div:first-child{min-width:0;overflow-wrap:anywhere}.telegram-overview>.flow-actions{flex-shrink:0}.telegram-auto-setting{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line);padding-top:13px;margin-top:13px}.telegram-auto-setting>div:first-child{min-width:0}.telegram-auto-setting strong{display:block;font-size:13px;font-weight:600;margin-bottom:2px}.telegram-auto-control{display:flex;align-items:center;gap:9px;flex-shrink:0}.telegram-auto-state{font-size:12px;color:var(--muted)}.telegram-auto-state.positive{color:var(--green)}.telegram-switch{display:inline-flex;align-items:center;justify-content:center;min-width:52px;min-height:44px;padding:4px;border-radius:10px}.telegram-switch-track{display:block;width:44px;height:26px;border-radius:20px;background:#a5b2a8;border:1px solid #8b9c90;position:relative;transition:background .15s,border-color .15s}.telegram-switch-track::after{content:'';position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #20363126;transition:transform .15s}.telegram-switch[aria-checked=true] .telegram-switch-track{background:var(--green);border-color:var(--green)}.telegram-switch[aria-checked=true] .telegram-switch-track::after{transform:translateX(18px)}.telegram-switch:hover{background:#eaf0e7}.telegram-box>[data-telegram-feedback]:not(:empty){margin-top:10px}.telegram-box>[data-telegram-feedback].negative{color:var(--red)}
@media(max-width:760px){.telegram-overview{flex-wrap:wrap;gap:12px}.telegram-overview>.flow-actions{flex-shrink:1}.telegram-auto-setting{gap:10px}.telegram-auto-setting p{font-size:11px}.telegram-auto-control{gap:5px}}@media(prefers-reduced-motion:reduce){.telegram-switch-track,.telegram-switch-track::after{transition:none}}

/* Execution records show their source in text as well as color. */
.record-trades-table{min-width:780px}.record-trade-row[data-source="api"]{color:#245b9b}.record-trade-row[data-source="manual"]{color:var(--red)}.record-trade-row[data-source="calculated"]{color:var(--ink)}.record-source{display:block;font-size:10px;line-height:1.5;margin-top:5px;color:inherit}.record-cost-unknown{font-size:12px}.record-editor-amount{grid-column:1/-1}.record-editor-amount input{background:var(--paper,#f6f7f3);color:var(--muted)}
.record-source-guide{margin:16px 26px;font-size:12px;line-height:1.7;color:var(--muted)}.record-source-badge{display:inline-flex;align-items:center;padding:3px 9px;border:1px solid currentColor;border-radius:6px;font-size:11px;font-weight:600;line-height:1.5;white-space:nowrap}.record-trade-date,.record-trades-table .money-usd{white-space:nowrap}.record-trade-amount .money-usd{font-weight:700}.record-trades .card-head>.button{flex-shrink:0}.record-trades>.table-wrap{overscroll-behavior-x:contain}
@media(max-width:760px){.record-source-guide{margin:14px 18px;font-size:11px}.record-trades .card-head{flex-wrap:wrap}.record-trades-table th,.record-trades-table td{padding:12px}.record-trades .card-body{padding:18px}}
/* Keep result-table headers, values and stacked currency labels centered. */
.record-trades-table th,.record-trades-table td,.calendar-returns-table th,.calendar-returns-table td,.backtest-results .result-detail th,.backtest-results .result-detail td{text-align:center;vertical-align:middle}.calendar-returns-table th:first-child{text-align:center;padding-right:10px}.record-trades-table .money-dual,.backtest-results .result-detail .money-dual{align-items:center;text-align:center}
