:root{font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#f4f0ff;background:#090a14;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}button:focus-visible{outline:2px solid #d9b0ff}.app{min-height:100dvh;max-width:560px;margin:auto;background:radial-gradient(ellipse at 70% -15%,#24103f 0%,transparent 40%),#090a14}.header{height:68px;display:flex;align-items:center;justify-content:space-between;padding:10px 16px;border-bottom:1px solid #29213e;position:sticky;top:0;z-index:3;background:#0b0b18ed;backdrop-filter:blur(15px)}.brand,.headright,.line,.titleline,.setting{display:flex;align-items:center;justify-content:space-between;gap:10px}.brand{justify-content:flex-start}.brand strong{font-size:17px;letter-spacing:.4px;color:#d9b5ff}.brand strong span{color:white}.brand small{display:block;font-size:9px;letter-spacing:1.7px;color:#9c8aaa;margin-top:2px}.headright{gap:10px}.demo{font-size:10px;color:#23e8a4;border:1px solid #1c765b;background:#103c34;border-radius:20px;padding:5px 8px}.iconbtn{display:flex;align-items:center;justify-content:center;background:none;color:#b5a5d1;border:0;padding:5px}.main{padding:14px 14px 98px;animation:enter .18s ease}@keyframes enter{from{opacity:.6;transform:translateY(5px)}to{opacity:1;transform:none}}.hero{height:125px;overflow:hidden;position:relative;border-radius:16px;background:radial-gradient(circle at 85% 80%,#6713b7 0%,#25103f 33%,#120e24 72%);border:1px solid #512475;padding:23px 17px;margin-bottom:11px}.hero h1{font-size:27px;margin:5px 0 3px;color:#e0b7ff;letter-spacing:1px}.hero em{font-style:normal;color:white}.hero small{font-size:9px;color:#b9a0d1;letter-spacing:1px}.hero p{font-size:11px;color:#c6b6dc;margin:0}.hero>.robot{position:absolute;right:22px;top:4px;transform:scale(1.5)}.robot{width:76px;height:80px;position:relative;flex:none}.robotSmall{width:40px;height:42px}.hood{position:absolute;inset:3px 4px 0;border-radius:48% 48% 26% 26%;background:linear-gradient(135deg,#6b23bd,#0b0715 45%,#301054);border:2px solid #a65af8;box-shadow:0 0 18px #8f26ed77;transform:rotate(-4deg)}.bitcoin{position:absolute;top:1px;left:45%;font-size:21px;color:#d2a2ff}.face{position:absolute;top:30px;left:9px;right:9px;height:35px;border-radius:12px;background:#080710;border:2px solid #a07ab9;display:flex;justify-content:space-around;align-items:center;color:#e75aff;font-size:18px;text-shadow:0 0 10px #c44dff}.robotSmall .bitcoin{font-size:10px;top:-2px}.robotSmall .face{top:15px;left:3px;right:3px;height:18px;font-size:10px;border-width:1px;border-radius:6px}.panel{background:linear-gradient(155deg,#15172a,#101423);border:1px solid #2d2a50;border-radius:14px;padding:14px;margin-bottom:11px;box-shadow:0 3px 18px #0002}.panel b{font-size:13px}.panel small,.muted{color:#9ba3bd;font-size:11px}.panel h2{font-size:25px;margin:10px 0}.panel h2 small{font-size:12px;color:#aaa0bc;font-weight:500}.balance h2{font-size:31px;margin:8px 0 10px}.green{color:#17e8a0!important}.red{color:#ff5276!important}.twocol{display:grid;grid-template-columns:1fr 1fr;gap:10px}.twocol .panel{margin-bottom:0}.mini{min-width:0;overflow:hidden}.mini h3{font-size:20px;margin:10px 0 2px}.mini h3 span{font-size:11px;color:#9ba3bd}.mini .spark{height:48px;margin-top:5px}.spark{width:100%;display:block}.gauge,.progress{height:7px;background:#2b2847;border-radius:20px;overflow:hidden;margin:12px 0}.gauge span,.progress span{display:block;height:100%;background:linear-gradient(90deg,#8a2af7,#d365ff);border-radius:20px}.greenprogress span,.meter span{background:linear-gradient(90deg,#04a777,#20e8a4)}.stats{margin:18px 0 12px}.three{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.three>div{display:flex;flex-direction:column;gap:8px}.three b{font-size:16px}.topgap{margin-top:13px}.tiny{margin:12px 0}.tiny>div{padding:9px;border:1px solid #282b46;border-radius:8px;display:flex;flex-direction:column;gap:7px}.tiny b{font-size:16px}.primary,.danger{width:100%;border-radius:9px;padding:12px 10px;display:flex;justify-content:center;align-items:center;gap:8px;color:white;font-weight:650;font-size:13px;margin-top:9px}.primary{border:1px solid #b865ff;background:linear-gradient(105deg,#7620dd,#ae3bff);box-shadow:0 0 12px #8427e844}.danger{border:1px solid #fa365b;background:#3a1020;color:#ff7890}.pill{border-radius:7px;padding:5px 7px;background:#292242;color:#c9b1f7;font-size:10px;white-space:nowrap}.pill.good{background:#0a4439;color:#17ed9e}.pill.bad{background:#4b1d2a;color:#ff7291}.signal p{font-size:12px}.signal{cursor:pointer}.titleline{margin:6px 0 15px}.titleline h2{font-size:20px;margin:0 0 4px}.titleline small{font-size:11px;color:#9ba3bd}.segments,.chips{display:flex;gap:6px;margin:12px 0}.segments button,.chips button{flex:1;min-width:0;border:1px solid #303451;border-radius:8px;background:#161a30;color:#c6c5da;padding:9px 5px;font-size:11px}.segments button.selected,.chips button.selected{background:#6921bc;border-color:#c17aff;color:#fff;box-shadow:0 0 8px #8135e077}.direction button{font-size:13px;font-weight:700}.direction button.longsel{background:#075f46;color:#3bffb8;border-color:#1be7a6}.direction button.shortsel{background:#632039;color:#ff92a5;border-color:#f34d77}.chart{height:175px;margin:12px 0 4px;border-radius:7px;overflow:hidden;background:linear-gradient(0deg,#0a1720,#101527);padding:7px}.chart svg{height:100%}.setting{border-bottom:1px solid #292a42;padding:12px 0;font-size:12px}.setting:last-child{border-bottom:0}.setting b{font-size:12px}.setting strong{color:#cbb0ff;font-size:12px}.setting .chips{margin:0;min-width:165px}.full button{padding:8px 2px}input[type=range]{width:100%;accent-color:#a04eff}.paragraph{line-height:1.6;font-size:12px}.scorepanel{display:flex;gap:16px;align-items:center}.scorecircle{width:52%;aspect-ratio:1;border:10px solid #8e3ff1;border-left-color:#12d8a3;border-bottom-color:#12d8a3;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;box-shadow:0 0 22px #7928d53d}.scorecircle small{font-size:9px}.scorecircle strong{font-size:36px;color:#19eda8}.scorecircle span{color:#b8afc6;font-size:12px}.scoreright{flex:1;min-width:0}.scoreright h2{margin:5px 0;font-size:24px}.scoreright h3{margin:5px 0 10px}.metric{display:grid;grid-template-columns:1.6fr 1fr auto;align-items:center;gap:8px;margin-top:17px}.metric small{font-size:10px}.metric b{font-size:10px}.meter{height:7px;background:#2d304a;border-radius:10px;overflow:hidden}.meter span{height:100%;display:block;border-radius:10px}.four{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:15px 0}.four>div{border:1px solid #30304e;border-radius:9px;padding:10px 2px;display:flex;align-items:center;flex-direction:column;gap:7px}.four b{font-size:16px}.four small{font-size:9px}.history{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #292a42;padding:12px 0;gap:6px}.history>div{display:flex;flex-direction:column;align-items:flex-start;gap:6px}.history strong{font-size:12px}.menupanel{padding:4px 11px}.menurow{width:100%;border:0;border-bottom:1px solid #292a42;background:transparent;color:white;display:flex;align-items:center;gap:11px;text-align:left;padding:13px 2px}.menurow:last-child{border:0}.menuicon{background:#26203f;color:#bb7bff;border-radius:9px;padding:9px;display:flex}.menutext{flex:1;display:flex;flex-direction:column;gap:4px}.menutext b{font-size:13px}.menutext small{font-size:10px}.nav{height:calc(67px + env(safe-area-inset-bottom));padding:6px 7px calc(6px + env(safe-area-inset-bottom));position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:560px;display:grid;grid-template-columns:repeat(5,1fr);gap:3px;background:#0d0d1beF;border-top:1px solid #36234e;backdrop-filter:blur(15px);z-index:4}.nav button{border:0;background:none;color:#8689a8;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:9px;border-radius:9px}.nav button.active{color:#d69dff;background:#29153f}.overlay{position:fixed;inset:0;background:#000a;display:flex;align-items:flex-end;justify-content:center;z-index:10}.sheet{background:#141528;border:1px solid #63408e;border-radius:22px 22px 0 0;width:100%;max-width:560px;max-height:85dvh;overflow:auto;padding:20px 17px calc(20px + env(safe-area-inset-bottom))}.sheet h2{font-size:19px;margin:0}.sheet p{font-size:13px;line-height:1.6}.gridlist{max-height:35dvh;overflow:auto}.warning{display:flex;gap:10px;align-items:center;background:#3b2130;border:1px solid #7a4058;padding:12px;border-radius:10px;color:#ffadbb;font-size:12px;margin:16px 0}.warning svg{flex:none}.toast{position:fixed;bottom:90px;left:50%;transform:translateX(-50%);background:#37224f;color:#f5e9ff;padding:13px 17px;border:1px solid #9b5cdb;border-radius:12px;z-index:12;width:max-content;max-width:90%;font-size:12px;text-align:center}@media(min-width:600px){body{background:#06070d}.app{box-shadow:0 0 70px #50217940}}@media(max-width:365px){.main{padding-left:10px;padding-right:10px}.scorepanel{gap:8px}.scorecircle strong{font-size:29px}.metric{grid-template-columns:1.5fr .8fr auto}.brand strong{font-size:15px}}
/* MAX terminal additions */
.maxapp .brandimage{width:38px;height:38px;border-radius:11px;object-fit:cover;border:1px solid #57378b}
.maxhero{min-height:134px;overflow:hidden;display:flex;align-items:center;justify-content:space-between}
.maxhero img{height:130px;width:130px;object-fit:cover;border-radius:24px;mask-image:linear-gradient(90deg,transparent,#000 30%)}
.maxapp .panel{min-width:0}.maxapp .twocol>.panel{min-width:0}.maxapp .twocol>.panel h3{font-size:20px}
.maxapp .spark{display:block;width:100%;height:auto;min-height:60px;max-height:150px}
.maxapp .choice{width:100%;display:flex;align-items:center;justify-content:space-between;text-align:left;padding:13px 10px;margin-top:8px;border:1px solid #38304e;background:#171628;border-radius:12px;color:#fff;gap:8px}
.maxapp .choice span{display:flex;flex-direction:column;gap:4px}.maxapp .choice small{color:#9b94b4;font-size:11px}.maxapp .choice strong{color:#ca9eff;font-size:11px;white-space:nowrap}.maxapp .choice.chosen,.maxapp .menurow.chosen{border-color:#a36ee3;background:#2a1d40}
.maxapp .fieldlabel{display:flex;flex-direction:column;gap:8px;margin-top:12px;color:#bcb2d2;font-size:12px}.maxapp .fieldlabel input{padding:13px;border-radius:10px;background:#0d1020;color:white;border:1px solid #403752;font-size:15px;max-width:100%;box-sizing:border-box}
.maxapp .back{display:flex;align-items:center;gap:7px;color:#d1b5ff;background:none;border:0;padding:10px 0 16px;font-size:14px}.maxapp .labrow{border-color:#644184}.maxapp .adminlabel{color:#d0a0fa;font-size:9px;margin-left:5px}.maxapp .helpitem{padding:10px 0;border-bottom:1px solid #322a41}
.maxapp .switch{background:#30283c;color:#fff;border:1px solid #665676;padding:7px 13px;border-radius:20px}.maxapp .switch.on{background:#215e4d}.maxapp .toast{position:fixed;bottom:85px;left:50%;transform:translateX(-50%);max-width:92%;width:max-content;z-index:1000;padding:13px 16px;border-radius:12px;background:#392c54;color:white;box-shadow:0 6px 30px #0009}
.maxapp .panel>.primary,.maxapp .panel>.secondary,.maxapp .panel>.danger,.maxapp .dialog>.primary,.maxapp .dialog>.secondary{width:100%;margin-top:10px;display:flex;justify-content:center;align-items:center;gap:7px}
.maxapp .scorepanel{display:flex;gap:16px;align-items:center}.maxapp .scorecircle{flex:1}.maxapp .scoreright{flex:1}.maxapp .bottomnav{z-index:30}.maxapp .main{padding-bottom:95px}
@media(max-width:360px){.maxapp .choice strong{white-space:normal}.maxapp .maxhero img{height:100px;width:100px}.maxapp .twocol>.panel h3{font-size:17px}}
.maxapp .bottomnav{height:calc(69px + env(safe-area-inset-bottom));padding:6px 7px calc(6px + env(safe-area-inset-bottom));position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:560px;display:grid;grid-template-columns:repeat(5,1fr);gap:3px;background:#0d0d1bf2;border-top:1px solid #36234e;backdrop-filter:blur(15px);z-index:30}
.maxapp .bottomnav button{border:0;background:none;color:#8689a8;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:9px;border-radius:9px}
.maxapp .bottomnav button.active{color:#d69dff;background:#29153f}
.maxapp .dialog{position:relative;background:#141528;border:1px solid #63408e;border-radius:22px 22px 0 0;width:100%;max-width:560px;max-height:85dvh;overflow:auto;padding:23px 17px calc(20px + env(safe-area-inset-bottom))}
.maxapp .dialog h3{font-size:18px;margin:0 40px 14px 0}.maxapp .close{position:absolute;right:12px;top:14px;background:#302341;border:0;border-radius:8px;padding:7px;color:#fff}
.maxapp .secondary{background:#25213c;color:#dbc8f4;border:1px solid #5a427c;padding:12px 10px;border-radius:9px;font-size:13px;font-weight:600}
.maxapp .panel>.secondary{width:100%}
.maxapp .twocol.stats{margin:10px 0;gap:12px}.maxapp .twocol.stats>div{padding:9px;background:#1c1b30;border-radius:10px}
.maxapp .menurow{border:1px solid #2e2845;border-radius:12px;background:#161426;margin:7px 0;padding:13px 10px}
.maxapp .three.stats>.panel{padding:8px;margin:0}.maxapp .three.stats>.panel h2{margin:4px 0;font-size:22px}
.maxapp .chips{flex-wrap:wrap}.maxapp .chips button{flex:1 1 42px}

.maxapp .fieldlabel select,.maxapp .fieldlabel textarea{width:100%;box-sizing:border-box;padding:12px;border-radius:10px;background:#0d1020;color:#fff;border:1px solid #403752;font:inherit;resize:vertical}.maxapp .preview{background:#241b36;border:1px solid #60467e;padding:14px;border-radius:12px;margin-top:15px}.maxapp .preview p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.5}.maxapp .menurow .pill{font-size:9px}.maxapp .twocol>.primary,.maxapp .twocol>.secondary,.maxapp .twocol>.danger{width:100%;margin-top:6px}

/* Telegram iOS: contain rubber-band overscroll and nested panels without blocking normal vertical reading. */
html{overscroll-behavior-y:none}body{overscroll-behavior-y:none;overflow-x:hidden}.app{overscroll-behavior-y:contain}.sheet,.maxapp .dialog,.gridlist{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}

/* RC12 approved trading-only screen */
.approved-trading{display:flex;flex-direction:column;gap:12px;padding-bottom:24px;color:#e7edff}.at-market,.at-card{background:#101927;border:1px solid #2b3a51;border-radius:15px;padding:16px}.at-market{display:flex;align-items:center;gap:12px}.at-coin{background:#f7931a;color:white;font-size:26px;font-weight:800;border-radius:50%;width:42px;height:42px;display:grid;place-items:center}.at-market small{display:block;color:#97a6be;font-size:11px;margin-top:4px}.at-market-price{margin-left:auto;text-align:right;font-weight:700}.at-directions,.at-leverages{display:flex;gap:8px}.at-directions button,.at-leverages button{flex:1;background:#1a2639;color:#e9edff;border:1px solid #34445e;border-radius:9px;padding:12px 6px;font-weight:700}.at-directions button.active.long{background:#47dfa0;color:#051d18}.at-directions button.active.short{background:#fa6476;color:#24070c}.at-leverages{margin-top:12px}.at-leverages button.active{border:2px solid #7884ff;background:#26365a}.at-card h3{font-size:16px;margin:0 0 12px}.at-card>b{display:block}.at-field-head,.at-row{display:flex;justify-content:space-between;align-items:center;gap:10px}.at-row{font-size:12px;border-bottom:1px solid #263245;padding:10px 0}.at-row span{color:#b3bfd2}.at-row strong{text-align:right;max-width:62%;overflow-wrap:anywhere;font-weight:600}.at-hint{color:#a7b5ca;font-size:12px;line-height:1.6}.at-range{appearance:none;-webkit-appearance:none;width:100%;height:8px;border-radius:8px;margin:22px 0 12px;touch-action:pan-y;outline:0}.at-range::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:25px;height:25px;border-radius:50%;background:#6678ff;border:2px solid #a9b2ff;box-shadow:0 0 8px #6474ff66}.at-marks{display:flex;justify-content:space-between;color:#a6b5cd}.at-main{width:100%;background:#6674f8;color:white;font-weight:700;border:0;border-radius:12px;padding:18px 12px;font-size:15px}.at-main:disabled{opacity:.4}.at-danger{background:#ef4c61}.at-open{color:#4be2a1;background:#093d32;padding:12px;border-radius:9px;font-weight:700}.at-static{flex:1;padding:12px;font-weight:700}

.at-width-rail{height:8px;border-radius:10px;background:#2b3447;margin:22px 0 12px;position:relative}.at-width-rail>div{width:33.33%;height:100%;background:#6674f8;border-radius:10px}.at-width-rail>div:after{content:'';position:absolute;left:33.33%;top:50%;transform:translate(-50%,-50%);width:24px;height:24px;border-radius:50%;background:#6674f8;border:2px solid #a9b2ff}.at-grid-visual{display:flex;flex-direction:column;gap:5px;margin-top:15px}.at-grid-line{border-top:1px solid #486d9a;display:flex;justify-content:space-between;color:#a8c7ef;padding:4px 0;font-size:11px}.at-grid-line:first-child{border-color:#47dfa0;color:#47dfa0}.at-grid-stop{border-top:2px dashed #ef4c61;color:#ef6977;padding-top:8px;font-size:12px;font-weight:700}.at-range{touch-action:none}

/* RC16: price-based DCA preview and improved mobile cards */
.at-price-chart{display:block;width:100%;height:auto;background:linear-gradient(180deg,#0c1728,#0a1220);border:1px solid #283b55;border-radius:12px;margin-top:12px}.at-legend{display:flex;flex-wrap:wrap;gap:8px 14px;font-size:10px;color:#adbed6;margin-top:10px}.at-legend span:nth-child(1){color:#8ca5ff}.at-legend span:nth-child(2){color:#ffd477}.at-legend span:nth-child(3){color:#34d9a5}.at-legend span:nth-child(4){color:#ff6076}.approved-trading .at-card{box-shadow:0 8px 20px #0002}.approved-trading button:focus-visible{outline:2px solid #b9c3ff;outline-offset:3px}.approved-trading .at-range{touch-action:none;user-select:none;-webkit-user-select:none}.approved-trading .at-market-price{font-variant-numeric:tabular-nums}.approved-trading .at-main{min-height:54px}.approved-trading .at-card h3{letter-spacing:.1px}

/* RC19 compact trading viewport. The Telegram header and bottom nav remain outside this area. */
.maxapp:has(.approved-trading) .main{overflow:hidden;min-height:0;display:flex;flex-direction:column;padding:10px 12px 0}
.maxapp:has(.approved-trading){height:100dvh;max-height:100dvh;overflow:hidden;display:flex;flex-direction:column}
.maxapp:has(.approved-trading) .header{flex-shrink:0}
.maxapp:has(.approved-trading) .bottomnav{flex-shrink:0}
.approved-trading{flex:1;min-height:0;overflow:hidden;gap:7px;padding-bottom:8px;display:flex;flex-direction:column}
.approved-trading .at-market{padding:9px 12px;flex-shrink:0;min-height:47px}
.approved-trading .at-coin{width:34px;height:34px;font-size:23px}
.approved-trading .at-card{padding:10px 12px;border-radius:12px;min-height:0;flex-shrink:0;box-shadow:none}
.approved-trading .at-card h3{font-size:14px;margin:0 0 7px}
.approved-trading .at-directions{flex-shrink:0}
.approved-trading .at-directions button{padding:9px 6px}
.approved-trading .at-leverages{margin-top:7px}
.approved-trading .at-leverages button{padding:8px 6px}
.approved-trading .at-field-head{font-size:13px}
.approved-trading .at-range{margin:12px 0 8px;height:6px}
.approved-trading .at-marks{font-size:11px}
.approved-trading .at-hint{font-size:11px;line-height:1.3;margin:5px 0}
.approved-trading .at-row{font-size:12px;padding:5px 0}
.approved-trading .at-main{margin-top:auto;flex-shrink:0;min-height:48px;padding:11px 8px;font-size:14px}
.approved-trading .at-grid-title{display:flex;align-items:center;justify-content:space-between;gap:8px}
.approved-trading .at-grid-title span{font-size:11px;color:#9db0cc}
.at-stats-quad{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px}
.at-stats-quad>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.at-stats-quad small{font-size:10px;color:#aebcd2}
.at-stats-quad b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.at-grid-risk{border-top:1px solid #2b3a51;margin-top:8px;padding-top:7px;display:flex;justify-content:space-between;gap:8px;font-size:11px;flex-wrap:wrap}
.at-level{display:flex;align-items:center;gap:9px;min-height:32px}
.at-level>div{display:flex;flex-direction:column;gap:2px;flex:1}
.at-level b,.at-level strong{font-size:12px}
.at-level small{font-size:10px;color:#9fb2c9}
.at-dot{width:9px;height:9px;border-radius:50%;flex-shrink:0}
.green-dot{background:#36e6a6}.blue-dot{background:#879eff}
.at-level-middle{font-size:10px;color:#8fa0bc;padding:3px 0 3px 15px;border-left:1px dashed #566a96;margin-left:4px}
.approved-trading .at-chart-card{flex:1;display:flex;flex-direction:column;min-height:110px}
.approved-trading .at-chart-card h3 small{font-size:10px;color:#8ea5bf;font-weight:400}
.approved-trading .at-price-chart{height:100%;min-height:0;max-height:100%;width:100%;object-fit:fill;margin:0;flex:1}
.at-position-top .at-open{font-size:12px;padding:8px;margin-bottom:8px}
.at-screen-position .at-position-orders .at-hint{margin:4px 0 0}
@media(max-height:760px){.approved-trading{gap:5px}.approved-trading .at-card{padding:7px 10px}.approved-trading .at-range{margin:8px 0 5px}.approved-trading .at-chart-card{min-height:80px}.approved-trading .at-market{min-height:40px;padding:6px 9px}}
@media(max-height:620px){.approved-trading .at-chart-card{min-height:65px}.approved-trading .at-grid-ends{padding:5px 10px}.approved-trading .at-main{min-height:42px}}
.maxapp:has(.approved-trading) .main{padding-bottom:calc(75px + env(safe-area-inset-bottom));flex:1;min-height:0}
.maxapp:has(.approved-trading) .bottomnav{position:fixed}

/* RC20: 3 discrete server-supported runner trailing modes; auto grid width informational only */
.approved-trading .at-trailing-range{cursor:pointer;touch-action:none}
.approved-trading .at-balance-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:4px}
.approved-trading .at-balance-head span{font-size:11px;color:#aabce0;white-space:nowrap}
.approved-trading .at-trailing .at-marks small{font-variant-numeric:tabular-nums}

/* RC21 iPhone fit: reduce control-card chrome, not touch targets or text size. */
.approved-trading.at-screen-setup{gap:5px;padding-bottom:3px}
.approved-trading.at-screen-setup .at-market{min-height:43px;padding:6px 11px}
.approved-trading.at-screen-setup .at-directions button{padding:7px 6px;min-height:39px;font-size:14px}
.approved-trading.at-screen-setup .at-card{padding:7px 11px;border-radius:11px}
.approved-trading.at-screen-setup .at-leverages{margin-top:4px;gap:7px}
.approved-trading.at-screen-setup .at-leverages button{padding:6px 6px;min-height:39px;font-size:14px}
.approved-trading.at-screen-setup .at-range{margin:9px 0 5px;height:6px}
.approved-trading.at-screen-setup .at-range::-webkit-slider-thumb{width:26px;height:26px}
.approved-trading.at-screen-setup .at-field-head{font-size:13px}
.approved-trading.at-screen-setup .at-marks{font-size:11px}
.approved-trading.at-screen-setup .at-balance-head{margin-bottom:2px}
.approved-trading.at-screen-setup .at-row{padding:3px 0;font-size:12px}
.approved-trading.at-screen-setup .at-main{min-height:44px;padding:8px 10px;margin-top:auto}
@media(max-height:820px){
 .approved-trading.at-screen-setup{gap:4px}
 .approved-trading.at-screen-setup .at-card{padding:6px 10px}
 .approved-trading.at-screen-setup .at-range{margin:7px 0 4px}
 .approved-trading.at-screen-setup .at-market{min-height:40px;padding:5px 10px}
 .approved-trading.at-screen-setup .at-directions button,.approved-trading.at-screen-setup .at-leverages button{min-height:36px;padding:5px 6px}
}

/* RC22: Telegram stable viewport; readback status never changes document flow. */
.maxapp:has(.approved-trading){height:var(--arcom-viewport-height,100dvh);max-height:var(--arcom-viewport-height,100dvh)}
.approved-trading .at-market-price small{white-space:nowrap;min-height:1em}

/* RC24: ladder matches the approved mockup; no price chart or full 15-row list. */
.approved-trading .at-grid-ladder{padding:10px 13px;min-height:0;flex:1;display:flex;flex-direction:column;justify-content:space-between}
.at-ladder-head{display:flex;justify-content:space-between;align-items:center;font-weight:700;font-size:14px;padding-bottom:6px}
.at-ladder-head small{font-weight:400;color:#99abc4;font-size:10px}
.at-ladder-track{position:relative;display:flex;flex-direction:column;justify-content:space-around;flex:1;min-height:0}
.at-ladder-track:before{content:'';position:absolute;left:6px;top:12px;bottom:14px;width:2px;background:linear-gradient(#2fe1a5 0%,#7088ff 15%,#7088ff 86%,#ff576b 100%);opacity:.8}
.at-ladder-row{display:grid;grid-template-columns:14px minmax(65px,1fr) minmax(65px,1fr) minmax(74px,1fr);align-items:center;column-gap:7px;min-height:28px;border-bottom:1px solid rgba(108,135,176,.16);font-size:12px}
.at-ladder-node{width:11px;height:11px;border-radius:50%;background:#738cff;z-index:1}
.at-ladder-entry .at-ladder-node{background:#2fe1a5}.at-ladder-entry .at-ladder-label{color:#2fe1a5}
.at-ladder-stop .at-ladder-node{background:#ff5267}.at-ladder-stop .at-ladder-label,.at-ladder-stop .at-ladder-margin{color:#ff6979}
.at-ladder-label{font-weight:600;white-space:nowrap}.at-ladder-price,.at-ladder-margin{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.at-ladder-margin{font-size:11px;color:#b4c3d7}
.at-ladder-ellipsis{min-height:21px;color:#96a8c5}.at-ladder-ellipsis .at-ladder-node{width:7px;height:7px;margin-left:2px}
@media(max-height:760px){.approved-trading .at-grid-ladder{padding:7px 10px}.at-ladder-row{min-height:23px;font-size:11px}.at-ladder-ellipsis{min-height:16px}}

/* Verified grid risk: presentation only; does not authorize live trading. */
.at-risk-verified,.at-ladder-stop .at-ladder-margin.at-risk-verified{color:#20e2b0}

/* RC40: validated grid risk stays green, even in red Hard SL row. */
.at-grid-risk .at-risk-verified,.at-ladder-stop .at-ladder-margin.at-risk-verified{color:#20e2b0 !important;}

/* Grid screen: keep the existing palette; prevent ladder/footer overlap. */
.approved-trading.at-screen-grid{min-height:0;overflow-y:auto;overscroll-behavior:contain;gap:7px;padding-bottom:10px}
.approved-trading.at-screen-grid .at-grid-ladder{flex:0 0 auto;justify-content:flex-start}
.approved-trading.at-screen-grid .at-ladder-track{flex:0 0 auto;justify-content:flex-start}
.approved-trading.at-screen-grid .at-ladder-row{min-height:25px}
.approved-trading.at-screen-grid .at-ladder-ellipsis{min-height:17px}
.approved-trading.at-screen-grid .at-main{margin-top:0}

/* Approved compact statistics layout; scoped to Statistics only. */
.maxapp .arcom-statistics{display:flex;flex-direction:column;gap:10px}.maxapp .arcom-stats-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.maxapp .arcom-stats-heading h2{font-size:20px;margin:0}.maxapp .arcom-stats-heading select{width:auto;max-width:145px;padding:8px 10px;background:#1b1830;color:#c9b3ef;border:1px solid #34304b;border-radius:9px;font-size:12px}.maxapp .arcom-stats-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.maxapp .arcom-stats-metric{min-width:0;display:flex;flex-direction:column;gap:6px;padding:12px;background:#121a29;border:1px solid #364058;border-radius:11px}.maxapp .arcom-stats-metric small{font-size:11px;color:#a5aec2}.maxapp .arcom-stats-metric strong{font-size:17px;line-height:1.3;overflow-wrap:anywhere;color:#e9e4f6}.maxapp .arcom-statistics .positive{color:#68ddb2!important}.maxapp .arcom-statistics .negative{color:#f48ba7!important}.maxapp .arcom-stats-history{background:#121a29;border:1px solid #364058;border-radius:12px;padding:12px}.maxapp .arcom-stats-history-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:5px}.maxapp .arcom-stats-history-head small,.maxapp .arcom-stats-cycle small{font-size:11px;color:#929cb2}.maxapp .arcom-stats-cycle{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid #2a3346}.maxapp .arcom-stats-cycle:last-child{border-bottom:0}.maxapp .arcom-stats-cycle>div{display:flex;flex-direction:column;gap:3px}.maxapp .arcom-stats-cycle strong{font-size:12px}.maxapp .arcom-stats-cycle>strong{text-align:right;white-space:nowrap}

/* Active-cycle approved four-tab layout. UI-only; no fabricated exchange states. */
.approved-trading.at-screen-position{min-height:0;overflow:hidden;display:flex;flex-direction:column;gap:8px}
.at-cycle-warning{color:#f2bb7a;font-size:11px;line-height:1.35;padding:7px 9px;background:#17192a;border-radius:9px}
.at-cycle-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;flex-shrink:0}
.at-cycle-tabs button{min-width:0;padding:10px 2px;border:0;border-radius:8px;background:#211d32;color:#aea4c0;font-size:10px;font-weight:600}
.at-cycle-tabs button.active{background:#45275f;color:#f2ddfb}
.at-cycle-content{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column}
.at-cycle-content>.at-card,.at-cycle-content>.at-cycle-protection{flex:1;min-height:0}
.at-cycle-title{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:8px;font-size:13px}
.at-cycle-title span{color:#6be0ad;font-size:11px}
.at-cycle-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;overflow-y:auto;min-height:0;flex:1}
.at-cycle-metrics>div{background:#171c2d;border:1px solid #30364c;border-radius:9px;padding:8px;min-width:0;display:flex;flex-direction:column;gap:4px}
.at-cycle-metrics small{font-size:10px;color:#a6aec2}.at-cycle-metrics b{font-size:12px;overflow-wrap:anywhere}
.at-cycle-content>.at-main{flex-shrink:0;margin-top:8px}
.at-cycle-scroll{overflow-y:auto;overscroll-behavior:contain;min-height:0}
.at-dca-row{display:grid;grid-template-columns:22% 32% 46%;gap:3px;padding:7px 0;border-bottom:1px solid #30364c;font-size:11px}
.at-dca-row span:last-child{text-align:right}.at-dca-head{color:#a4afc4}
.at-cycle-protection{display:flex;flex-direction:column;gap:8px;overflow-y:auto}.at-cycle-protection .at-card{flex:0 0 auto}.at-cycle-protection h3{margin:6px 0}.at-cycle-protection small{color:#a8b0c3}

/* Approved setup UI: view-only wiring; execution modules are unchanged. */
.app-monogram{display:grid;place-items:center;flex:none;width:36px;height:36px;border:1px solid #a45df4;border-radius:10px;background:linear-gradient(135deg,#351353,#10101f);color:#d8a3ff;font-size:20px;font-weight:850;letter-spacing:-3px;padding-right:3px}
.exchange-status{border:0;padding:0;background:none;color:#eee9ff;text-align:center;opacity:1;cursor:default}.exchange-status>span{display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px;font-weight:650}.exchange-status i{width:7px;height:7px;border-radius:50%;background:#9291aa}.exchange-status small{display:block;font-size:8px;color:#aaa0bc;margin-top:3px;max-width:100px}
.maxapp:has(.at-screen-setup){min-height:0;height:var(--arcom-viewport-height,100dvh);max-height:var(--arcom-viewport-height,100dvh)}
.maxapp:has(.at-screen-setup) .main{container-type:size;padding:8px 12px calc(72px + env(safe-area-inset-bottom));min-height:0}
.at-setup-controls{border:0;padding:0;margin:0;min-width:0;min-height:0;display:flex;flex:1;flex-direction:column;gap:7px}
.at-setup-controls:disabled{opacity:.6}
.approved-trading.at-screen-setup{gap:7px;padding:0;overflow:hidden}
.at-screen-setup .at-settings{display:flex;flex:1;min-height:0;flex-direction:column;justify-content:space-between;background:linear-gradient(145deg,#141323,#101424);border-color:#493263}
.at-screen-setup .at-setting-group{border-bottom:1px solid #322940;padding:7px 0;min-height:0}
.at-screen-setup .at-setting-group:first-child{padding-top:0}
.at-screen-setup .at-setting-group:last-child{border:0;padding-bottom:0}
.at-screen-setup .at-setting-group>b{font-size:13px}
.at-screen-setup .at-directions .long{border-color:#19d6a0;color:#27e7ae}
.at-screen-setup .at-directions .short{border-color:#ff5076;color:#ff6081}
.at-screen-setup .at-directions .active.long{background:#20dfa6;color:#071b15}
.at-screen-setup .at-directions .active.short{background:#ff5076;color:#240811}
.at-screen-setup .at-directions span{margin-right:5px}
.at-screen-setup .at-leverages button.active{background:#452786;border:1px solid #ae85ff;box-shadow:inset 0 0 0 1px #ae85ff}
.at-screen-setup .at-balance-summary{background:linear-gradient(145deg,#151426,#101321);border-color:#3b2e58}
.at-screen-setup .at-balance-head b{font-size:13px}.at-screen-setup .at-balance-head span{font-size:9px;white-space:normal;text-align:right}
.at-screen-setup .at-range{display:block;cursor:pointer}
.at-screen-setup .at-range::-moz-range-thumb{width:22px;height:22px;border:2px solid #b2a2ff;border-radius:50%;background:#7960ff}
.at-screen-setup .at-setup-message{flex:none;font-size:10px;line-height:1.25;min-height:13px;color:#beb1d7;overflow-wrap:anywhere}
.at-screen-setup .at-main{background:linear-gradient(105deg,#6f44e7,#8a53ed);margin-top:0}
@container (max-height: 560px){
 .at-screen-setup{gap:5px!important}.at-screen-setup .at-setup-controls{gap:5px}
 .approved-trading.at-screen-setup .at-market{min-height:38px;padding:5px 10px}
 .at-screen-setup .at-market small{font-size:9px;margin-top:2px}
 .approved-trading.at-screen-setup .at-settings{padding:7px 10px}
 .at-screen-setup .at-setting-group{padding:5px 0}
 .approved-trading.at-screen-setup .at-leverages button,.approved-trading.at-screen-setup .at-directions button{min-height:33px;padding:5px;font-size:13px}
 .approved-trading.at-screen-setup .at-field-head{font-size:12px}
 .approved-trading.at-screen-setup .at-range{margin:10px 0 9px;height:5px}
 .at-screen-setup .at-marks small{font-size:9px}
 .approved-trading.at-screen-setup .at-balance-summary{padding:6px 10px}
 .approved-trading.at-screen-setup .at-row{font-size:11px;padding:2px 0}
 .approved-trading.at-screen-setup .at-main{min-height:39px;padding:7px 8px}
}
@container (max-height: 450px){
 .approved-trading.at-screen-setup .at-market{min-height:32px;padding:3px 8px}
 .at-screen-setup .at-market .at-coin{width:27px;height:27px;font-size:20px}
 .at-screen-setup .at-market b{font-size:12px}.at-screen-setup .at-market-price{font-size:12px}
 .at-screen-setup .at-setting-group{padding:3px 0}
 .approved-trading.at-screen-setup .at-leverages button,.approved-trading.at-screen-setup .at-directions button{min-height:29px;padding:3px}
 .at-screen-setup .at-balance-summary{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}
 .at-screen-setup .at-balance-head{grid-column:1/-1}
 .at-screen-setup .at-row{display:flex;align-items:flex-start;flex-direction:column;gap:1px}.at-screen-setup .at-row strong{max-width:100%}
 .at-screen-setup .at-setup-message{font-size:9px;min-height:11px}
}
.at-screen-setup .at-setting-group{flex-shrink:0}
@container (max-height: 450px){
 .at-screen-setup .at-setting-group:first-child,.at-screen-setup .at-setting-group.at-trailing{display:grid;grid-template-columns:100px 1fr;align-items:center;gap:5px}
 .at-screen-setup .at-setting-group:first-child>b,.at-screen-setup .at-trailing>b{font-size:11px}
 .approved-trading.at-screen-setup .at-leverages{margin-top:0;gap:4px}
 .at-screen-setup .at-marks{display:none}
 .approved-trading.at-screen-setup .at-range{margin:8px 0 7px}
 .at-screen-setup .at-setting-group{padding:3px 0}
}

/* Grid results retain their data and actions; fit the available Mini App height. */
.maxapp:has(.at-screen-grid){min-height:0}
.maxapp:has(.at-screen-grid) .main{container-type:size}
.approved-trading.at-screen-grid{overflow:hidden;padding-bottom:3px}
.approved-trading.at-screen-grid .at-grid-ladder{flex:1;min-height:0}
.approved-trading.at-screen-grid .at-ladder-track{flex:1;min-height:0;justify-content:space-around}
@container (max-height: 490px){
 .approved-trading.at-screen-grid{gap:5px}
 .approved-trading.at-screen-grid .at-market{min-height:35px;padding:4px 9px}
 .at-screen-grid .at-market small{font-size:9px;margin-top:2px}
 .approved-trading.at-screen-grid .at-card{padding:6px 10px}
 .approved-trading.at-screen-grid .at-directions button{padding:5px}
 .approved-trading.at-screen-grid .at-grid-title h3{font-size:12px;margin-bottom:5px}
 .approved-trading.at-screen-grid .at-grid-title span{font-size:9px}
 .at-screen-grid .at-stats-quad{gap:5px 8px}
 .at-screen-grid .at-stats-quad small{font-size:9px}
 .at-screen-grid .at-stats-quad b{font-size:12px}
 .at-screen-grid .at-grid-risk{font-size:10px;margin-top:5px;padding-top:5px}
 .approved-trading.at-screen-grid .at-ladder-row{min-height:21px;font-size:10px}
 .approved-trading.at-screen-grid .at-ladder-ellipsis{min-height:13px}
 .at-screen-grid .at-ladder-margin{font-size:9px}
 .at-screen-grid .at-ladder-head{font-size:12px}
 .approved-trading.at-screen-grid .at-main{min-height:38px;padding:7px}
}
@container (max-height: 430px){
 .approved-trading.at-screen-grid .at-market{padding:3px 8px;min-height:30px}
 .at-screen-grid .at-coin{width:26px;height:26px;font-size:19px}
 .at-screen-grid .at-market b,.at-screen-grid .at-market-price{font-size:12px}
 .approved-trading.at-screen-grid .at-directions button,.at-screen-grid .at-static{padding:4px;min-height:29px;font-size:12px}
 .approved-trading.at-screen-grid .at-grid-summary{padding:5px 8px}
 .at-screen-grid .at-stats-quad{gap:3px 7px}
 .at-screen-grid .at-stats-quad small{font-size:8px;line-height:1.15}
 .at-screen-grid .at-stats-quad b{font-size:11px}
 .approved-trading.at-screen-grid .at-ladder-row{min-height:18px;font-size:10px}
 .approved-trading.at-screen-grid .at-ladder-ellipsis{min-height:10px}
 .at-screen-grid .at-ladder-head{padding-bottom:3px}
 .at-screen-grid .at-grid-risk{margin-top:3px;padding-top:3px}
}
.at-screen-grid .at-ladder-stop .at-ladder-margin{white-space:normal;line-height:1.15;font-size:9px;overflow-wrap:normal}

/* Position and manual-close presentation; existing data bindings remain. */
.maxapp:has(.at-screen-position){min-height:0}
.maxapp:has(.at-screen-position) .main{container-type:size}
.at-screen-position .at-cycle-warning{font-size:11px;line-height:1.25}
.at-screen-position .at-cycle-metrics>div{border-color:#38304d;background:linear-gradient(150deg,#1a192c,#161a29)}
.at-screen-position .at-danger{background:#ef4864}
.manual-close-overlay{z-index:50;align-items:flex-end;padding:0}
.manual-close-dialog{width:100%;max-width:560px;border:1px solid #7951a1;border-radius:20px 20px 0 0;background:#151426;padding:22px 18px calc(20px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px;max-height:var(--arcom-viewport-height,100dvh);overflow:hidden;box-shadow:0 -10px 35px #0004}
.manual-close-dialog h3{font-size:20px;line-height:1.25;margin:0 0 6px;color:#f4edff}
.manual-close-dialog button{width:100%;min-height:46px;padding:11px 14px;border-radius:11px;font-size:14px;font-weight:650}
.manual-close-execute{background:#ef4864;border:1px solid #ff6b83;color:white}
.manual-close-back{background:#28223d;border:1px solid #66507f;color:#dfcfef}
.manual-close-dialog button:disabled{opacity:.5;cursor:wait}
@container (max-height: 450px){
 .approved-trading.at-screen-position{gap:5px}
 .approved-trading.at-screen-position .at-market{min-height:35px;padding:4px 8px}
 .at-screen-position .at-market b,.at-screen-position .at-market-price{font-size:12px}
 .at-screen-position .at-market small{font-size:9px;margin-top:2px}
 .at-screen-position .at-cycle-warning{padding:6px 8px;font-size:10px}
 .at-screen-position .at-cycle-tabs{gap:4px}
 .at-screen-position .at-cycle-tabs button{padding:7px 3px;font-size:10px}
 .at-screen-position .at-cycle-title{font-size:12px}
 .at-screen-position .at-cycle-metrics{gap:5px}
 .at-screen-position .at-cycle-metrics>div{padding:6px 8px;gap:3px}
 .at-screen-position .at-cycle-metrics small{font-size:10px}
 .at-screen-position .at-cycle-metrics b{font-size:12px}
 .at-screen-position .at-cycle-content>.at-main{min-height:38px;padding:7px;margin-top:5px}
}

/* All 15 DCA stages stay inside the panel. Only the history body may scroll. */
.approved-trading .at-dca-panel{display:grid;grid-template-rows:auto repeat(16,minmax(0,1fr));overflow:hidden;min-height:0}
.at-dca-panel .at-cycle-title{margin-bottom:4px}
.at-dca-panel .at-dca-row{min-height:0;padding:0;align-items:center;grid-template-columns:minmax(0,.6fr) minmax(0,.9fr) minmax(0,1.4fr);gap:4px;font-size:11px;line-height:1.1}
.at-dca-panel .at-dca-row span{min-width:0;white-space:nowrap;font-variant-numeric:tabular-nums}
.at-dca-panel .at-dca-row span:nth-child(2){text-align:right}
.approved-trading .at-history-panel{display:flex;flex-direction:column;overflow:hidden;min-height:0}
.at-history-panel h3{flex:none}
.at-history-events{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;overflow-wrap:anywhere}
.manual-close-dialog h3{color:#f4edff;-webkit-text-fill-color:#f4edff}
.manual-close-dialog .manual-close-execute{color:#fff;-webkit-text-fill-color:#fff}
.manual-close-dialog .manual-close-back{color:#dfcfef;-webkit-text-fill-color:#dfcfef}

/* Approved analysis layout. Data source wiring is intentionally pending. */
.maxapp:has(.analysis-screen){height:var(--arcom-viewport-height,100dvh);max-height:var(--arcom-viewport-height,100dvh);min-height:0;display:flex;flex-direction:column;overflow:hidden}
.maxapp:has(.analysis-screen) .header{flex:none}
.maxapp:has(.analysis-screen) .main{flex:1;min-height:0;display:flex;flex-direction:column;padding:10px 12px calc(75px + env(safe-area-inset-bottom));overflow:hidden;container-type:size}
.analysis-screen{display:flex;flex-direction:column;gap:9px;flex:1;min-height:0;overflow:hidden;color:#eee9fa}
.analysis-title{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none}.analysis-title h2{font-size:20px;margin:0;line-height:1.2}.analysis-title>span{font-size:11px;color:#b9a3d1;background:#211a30;border-radius:7px;padding:5px 8px}
.analysis-result{border:1px solid #4c326b;border-radius:14px;background:linear-gradient(145deg,#241337,#111424);padding:15px;flex:none}
.analysis-result-head{display:flex;justify-content:space-between;align-items:center;color:#b8a6cc;font-size:11px}.analysis-status{border:1px solid #57476b;background:#30263e;border-radius:15px;padding:4px 8px;color:#c9bbda}
.analysis-result h3{font-size:25px;color:#f0e6fb;margin:10px 0 15px}
.analysis-scores{display:grid;grid-template-columns:1fr 1fr;gap:12px}.analysis-scores>div+div{border-left:1px solid #483057;padding-left:15px}.analysis-scores small{display:block;font-size:11px;color:#bcaacc;margin-bottom:4px}.analysis-scores strong{font-size:28px;color:#d6afff}.analysis-scores em{font-size:12px;font-style:normal;color:#b3a6c4}
.analysis-scale{height:5px;border-radius:4px;background:#373044;margin-top:15px}.analysis-scale-labels{display:flex;justify-content:space-between;color:#a89cbd;font-size:10px;margin-top:5px}
.analysis-factors{border:1px solid #37304c;border-radius:12px;background:#141524;padding:10px 12px;display:flex;flex-direction:column;flex:1;min-height:0}.analysis-factors h3{margin:0 0 5px;font-size:14px;color:#eee4f9;flex:none}.analysis-factor{display:flex;justify-content:space-between;align-items:center;gap:8px;border-bottom:1px solid #2e293d;font-size:12px;flex:1;min-height:0;padding:3px 0}.analysis-factor:last-child{border-bottom:0}.analysis-factor span{color:#c8bdd5}.analysis-factor b{font-weight:500;color:#9e91b2;font-size:11px}
.analysis-updated{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:11px;color:#aa9dbd;min-height:18px;flex:none}
.analysis-refresh{display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #9862d0;border-radius:11px;background:linear-gradient(100deg,#6d36bd,#8946d4);color:white;min-height:44px;font-size:14px;font-weight:650;width:100%;flex:none}
.analysis-source{font-size:11px;color:#afa0bf;text-align:center;line-height:1.2;flex:none}
@container(max-height:450px){.analysis-screen{gap:6px}.analysis-result{padding:10px 12px}.analysis-result h3{font-size:21px;margin:6px 0 8px}.analysis-scores strong{font-size:23px}.analysis-scale{margin-top:8px}.analysis-factor{font-size:11px;padding:2px 0}.analysis-factors{padding:8px 10px}.analysis-refresh{min-height:38px}}

/* Approved statistics shell. No statistics provider is connected yet. */
.maxapp:has(.arcom-statistics){height:var(--arcom-viewport-height,100dvh);max-height:var(--arcom-viewport-height,100dvh);min-height:0;display:flex;flex-direction:column;overflow:hidden}
.maxapp:has(.arcom-statistics) .header{flex:none}
.maxapp:has(.arcom-statistics) .main{flex:1;min-height:0;display:flex;flex-direction:column;padding:10px 12px calc(75px + env(safe-area-inset-bottom));overflow:hidden}
.maxapp .arcom-statistics{flex:1;min-height:0;overflow:hidden;gap:9px}
.maxapp .arcom-stats-heading{flex:none}
.maxapp .arcom-stats-metrics{flex:1;min-height:0;grid-template-rows:repeat(3,minmax(0,1fr))}
.maxapp .arcom-stats-metric{justify-content:space-between;padding:12px 10px;background:#141727;border-color:#38324c;gap:8px}
.maxapp .arcom-stats-metric small{line-height:1.2}
.maxapp .arcom-stats-metric strong{font-size:23px}
.maxapp .arcom-stats-history{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;background:#141727;border-color:#38324c}
.maxapp .arcom-stats-history-head{flex:none}
.maxapp .arcom-stats-history-body{flex:1;min-height:0;overflow:hidden;display:grid;grid-template-rows:repeat(5,minmax(0,1fr))}
.maxapp .arcom-stats-history-body p{grid-row:1/-1}
.arcom-stats-period{font-size:11px;color:#afa0bf;text-align:center;min-height:18px;flex:none}

/* Diagnostic content and handlers retained; only the outer layout is aligned. */
.maxapp:has(.unified-diagnostics){height:var(--arcom-viewport-height,100dvh);max-height:var(--arcom-viewport-height,100dvh);min-height:0;display:flex;flex-direction:column;overflow:hidden}
.maxapp:has(.unified-diagnostics) .header{flex:none}
.maxapp:has(.unified-diagnostics) .main{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding:8px 12px calc(75px + env(safe-area-inset-bottom));container-type:size}
.maxapp:has(.unified-diagnostics) .main>.back{flex:none;align-self:flex-start;margin:0 0 7px;padding:3px 0}
.unified-diagnostics{display:flex;flex-direction:column;gap:8px;flex:1;min-height:0}
.unified-diagnostics>.titleline{flex:none;margin:0}
.unified-diagnostics>.panel{flex:1;min-height:0;margin:0;padding:12px;display:flex;flex-direction:column;gap:8px}
.unified-diagnostics>.panel>b{flex:none}
.unified-diagnostics .paragraph{margin:0;font-size:12px;line-height:1.45}
.unified-diagnostics .fieldlabel{margin:0;font-size:12px}
.unified-diagnostics .fieldlabel select,.unified-diagnostics .fieldlabel input{padding:8px 10px;margin-top:4px;min-height:36px}
.unified-diagnostics .primary{margin-top:auto;min-height:40px;padding:8px}
.unified-diagnostics .setting{padding:7px 0;flex:none}
@container(max-height:450px){
 .unified-diagnostics{gap:5px}
 .unified-diagnostics .titleline h2{font-size:18px}
 .unified-diagnostics .titleline small{font-size:10px}
 .unified-diagnostics>.panel{padding:8px 10px;gap:5px}
 .unified-diagnostics .paragraph{font-size:11px;line-height:1.3}
 .unified-diagnostics .fieldlabel{font-size:11px}
 .unified-diagnostics .setting{padding:4px 0;font-size:11px}
 .unified-diagnostics .setting strong{font-size:11px}
 .unified-diagnostics .primary{font-size:12px;min-height:36px}
}

/* Approved informational Home: no trade actions or synthetic technical states. */
.maxapp:has(.home-screen){height:var(--arcom-viewport-height,100dvh);max-height:var(--arcom-viewport-height,100dvh);min-height:0;display:flex;flex-direction:column;overflow:hidden}
.maxapp:has(.home-screen) .header{flex:none}
.maxapp:has(.home-screen) .main{flex:1;min-height:0;display:flex;flex-direction:column;padding:10px 12px calc(75px + env(safe-area-inset-bottom));overflow:hidden;container-type:size}
.home-screen{display:flex;flex-direction:column;gap:9px;flex:1;min-height:0}
.home-hero{position:relative;display:flex;align-items:center;overflow:hidden;flex:.8;min-height:88px;border:1px solid #65328c;border-radius:14px;padding:13px;background:radial-gradient(at 95% 60%,#591784,#161026 75%)}
.home-hero>div{position:relative;z-index:1;max-width:70%}.home-hero small{color:#baa4ce;font-size:9px;letter-spacing:1.1px}.home-hero h1{color:#d8adf8;font-size:25px;margin:5px 0;white-space:nowrap}.home-hero em{font-style:normal;color:#fff}.home-hero p{font-size:10px;color:#cab8de;margin:0}.home-hero img{position:absolute;right:0;top:0;width:40%;height:100%;object-fit:contain;opacity:.95}
.home-balance,.home-system{border:1px solid #3e2e58;border-radius:13px;padding:12px;background:linear-gradient(150deg,#191529,#111423)}
.home-balance{flex:none}.home-balance-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.home-balance-head b{font-size:14px}.home-balance-head button{display:flex;align-items:center;gap:5px;background:#271d3a;border:1px solid #654783;border-radius:8px;color:#dfccef;padding:7px 8px;font-size:11px}.home-balance-head button:disabled{opacity:.5}
.home-balance h2{font-size:30px;margin:8px 0;color:#f2ebfc}.home-balance h2 small{font-size:13px;color:#b2a1c4;font-weight:400}
.home-balance-row,.home-btc{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;font-size:12px;border-top:1px solid #35293f}.home-balance-row strong{color:#cfadf4}.home-btc{padding-bottom:0}.home-btc>span{display:flex;align-items:center;gap:8px;font-weight:600}.home-btc i{display:grid;place-items:center;background:#f49915;color:#fff;border-radius:50%;width:24px;height:24px;font-style:normal;font-size:17px}
.home-system{display:flex;flex-direction:column;flex:1.5;min-height:0}.home-system h3{font-size:16px;margin:0 0 7px;color:#eee5fa;flex:none}.home-system-row{flex:1;min-height:0;display:flex;align-items:center;justify-content:space-between;gap:6px;border-bottom:1px solid #31283d;font-size:12px}.home-system-row b{font-size:10px;font-weight:500;padding:4px 7px;background:#2b253b;color:#b6a9ce;border:1px solid #574869;border-radius:12px;white-space:nowrap}.home-system-row b.known{color:#2be0ac;background:#103b32;border-color:#167d63}.home-system-note{font-size:9px;line-height:1.2;color:#a899b7;text-align:center;margin-top:7px;flex:none}
@container(max-height:450px){.home-screen{gap:6px}.home-hero{padding:9px;min-height:78px}.home-hero h1{font-size:22px}.home-hero small{font-size:8px}.home-hero p{font-size:9px}.home-balance,.home-system{padding:8px 10px}.home-balance h2{font-size:25px;margin:5px 0}.home-balance-row,.home-btc{padding:5px 0;font-size:11px}.home-system h3{font-size:14px;margin-bottom:4px}.home-system-row{font-size:11px}.home-system-row b{font-size:9px;padding:3px 5px}.home-system-note{font-size:8px;margin-top:4px}}

/* Approved design update, v1.5.44 unchanged. Scoped presentation only. */
.maxapp .header{gap:10px}
.maxapp .brand{min-width:0;gap:9px}
.maxapp .brand strong{white-space:nowrap}
.maxapp .brand small{font-size:8px;letter-spacing:1.3px;white-space:nowrap}
.maxapp .headright{gap:10px;flex:none}
.maxapp .exchange-status{--connection-color:#aaa1bd;min-width:68px;max-width:123px;opacity:1}
.maxapp .exchange-status[data-tone=online]{--connection-color:#62daa3}
.maxapp .exchange-status[data-tone=checking]{--connection-color:#f2be64}
.maxapp .exchange-status[data-tone=offline]{--connection-color:#fa7a90}
.maxapp .exchange-status>span{font-size:13px;color:#f4efff;gap:6px}
.maxapp .exchange-status i{width:8px;height:8px;background:var(--connection-color);flex:none}
.maxapp .exchange-status[data-tone=online] i{box-shadow:0 0 8px #62daa34d}
.maxapp .exchange-status small{color:var(--connection-color);font-size:10px;line-height:1.2;max-width:none;margin-top:3px;overflow-wrap:normal}
.maxapp .header-notifications{width:34px;height:36px;flex:none;border:1px solid #69508d;border-radius:10px;background:#251b37;color:#d9b3fa;box-shadow:0 0 10px #8549b512}
.maxapp .header-notifications:hover{background:#302242;border-color:#ae7bdb}
.maxapp .header-notifications:active{background:#3c2856}
.maxapp .home-hero{padding:0;flex:none;min-height:0;aspect-ratio:2.5;border:0;border-radius:14px;background:#171222}
.maxapp .home-hero img{position:static;display:block;width:100%;height:100%;object-fit:cover;opacity:1}
.display-number{font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.value-unit{display:inline;font-size:.58em!important;font-weight:400;letter-spacing:0;color:#b5a8ca!important;margin-left:.35em;white-space:nowrap}
.pnl-positive{color:#62daa3!important}.pnl-negative{color:#fa7a90!important}.pnl-neutral{color:#c3b7d6!important}
.count-divider{color:#afa0c4;font-weight:400}
/* Current position: label/value hierarchy and matching card surfaces. */
.at-screen-position .at-market,.at-screen-position .at-cycle-content .at-card{background:linear-gradient(145deg,#1c172b,#151222);border-color:#463655}
.at-screen-position .at-cycle-warning{background:#1b1728;color:#e8bb80}
.at-screen-position .at-cycle-tabs button{font-size:12px;background:#211a31;color:#b9aacb;padding:9px 3px}
.at-screen-position .at-cycle-tabs button.active{background:#482568;color:#f0dbff}
.at-screen-position .at-cycle-title{font-size:15px;margin:0 0 8px;flex:none}
.at-screen-position .at-cycle-title>span{font-size:11px}
.at-screen-position .at-cycle-metrics{gap:7px;grid-template-rows:repeat(5,minmax(56px,1fr));max-height:390px;align-content:start}
.at-screen-position .at-cycle-metrics>div{padding:10px;border-radius:11px;background:linear-gradient(145deg,#1e192e,#171424);border:1px solid #453653;gap:5px;justify-content:center}
.at-screen-position .at-cycle-metrics small{font-size:12px;line-height:1.2;color:#afa3c0;font-weight:400}
.at-screen-position .at-cycle-metrics b{font-size:20px;line-height:1.2;font-weight:600;color:#f0ebfa;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.at-screen-position .at-cycle-metrics [data-metric=Состояние] b{font-size:16px;color:#c9b1e6}
.at-screen-position .at-cycle-metrics [data-metric=Заметка] b{font-size:14px;font-weight:500}
.at-screen-position .at-danger{min-height:44px;background:#ef4864;border-color:#ef4864;font-size:15px;border-radius:11px}
.at-screen-position .at-cycle-protection{flex:0 1 auto;gap:9px}
.at-screen-position .at-cycle-protection .at-card{padding:14px}
.at-screen-position .at-cycle-protection .at-card>b{font-size:14px;font-weight:600;color:#daceeb}
.at-screen-position .at-cycle-protection h3{font-size:28px;line-height:1.2;font-weight:600;margin:7px 0 12px;font-variant-numeric:tabular-nums;color:#f2ecfc}
.at-screen-position .at-cycle-protection .runner-state{font-size:20px;color:#d5a5f1}
.at-screen-position .at-cycle-protection small{font-size:12px;line-height:1.5;color:#b1a4c2}
/* DCA colours describe only the status already supplied to the screen. */
.approved-trading .at-dca-panel{display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;padding:10px 12px}
.at-dca-panel .at-cycle-title{margin-bottom:8px;min-height:20px}
.at-dca-panel .at-cycle-title>span{color:#afa3c0;font-size:10px}
.at-dca-panel .at-dca-row{flex:1 0 25px;display:grid;grid-template-columns:minmax(0,.55fr) minmax(0,1fr) minmax(0,1.6fr);gap:5px;padding:3px 0;font-size:12px;line-height:1.2;border-color:#3c304b}
.at-dca-panel .at-dca-head{flex:0 0 25px;font-size:11px;color:#b5a7c9}
.at-dca-panel .at-dca-row:last-child{border-bottom:0}
.at-dca-panel .at-dca-row>span:nth-child(2){font-weight:500;color:#eee7fa}
.at-dca-panel .at-dca-head>span:nth-child(2){font-weight:400;color:inherit}
.at-dca-panel .at-dca-row>span:last-child{display:flex;justify-content:flex-end}
.dca-badge{--badge-color:#aaa1b9;--badge-bg:#aaa1b919;display:inline-flex;align-items:center;justify-content:center;max-width:100%;border:1px solid color-mix(in srgb,var(--badge-color) 22%,transparent);border-radius:20px;padding:3px 7px;font-size:10px;font-weight:500;line-height:1.15;white-space:normal!important;text-align:center!important;color:var(--badge-color);background:var(--badge-bg)}
.dca-sent{--badge-color:#be8bf5;--badge-bg:#be8bf51c}.dca-open{--badge-color:#7dbbfa;--badge-bg:#7dbbfa1c}.dca-filled{--badge-color:#62daa3;--badge-bg:#62daa31c}.dca-partial{--badge-color:#58d4cc;--badge-bg:#58d4cc1c}.dca-cancelled{--badge-color:#9b95aa;--badge-bg:#9b95aa19}.dca-unknown{--badge-color:#f2be64;--badge-bg:#f2be641c}.dca-error{--badge-color:#fa7a90;--badge-bg:#fa7a901c}
/* History: existing events scroll; the empty state stays centred. */
.approved-trading .at-history-panel{flex:0 1 auto;min-height:230px;max-height:100%;padding:14px}
.at-history-panel h3{font-size:15px;font-weight:600;margin:0 0 14px}
.at-history-events>.at-hint{padding:10px 0;margin:0;border-bottom:1px solid #3a2e49;line-height:1.5;font-size:12px;color:#c4b5d5}
.at-history-events>.at-hint:last-child{border-bottom:0}
.cycle-history-empty{min-height:190px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px 8px;color:#b9a1d7;gap:12px}
.cycle-history-empty p{color:#ece4f7;font-size:14px;font-weight:500;margin:0;line-height:1.4}
.cycle-history-empty small{color:#b4a4c6;font-size:12px;line-height:1.4}
/* Statistics: six metrics and a vertical list, with no changes to calculations. */
.maxapp .arcom-statistics{overflow-y:auto;overscroll-behavior:contain;gap:10px}
.maxapp .arcom-stats-heading h2{font-size:21px}
.maxapp .arcom-stats-heading select{appearance:none;-webkit-appearance:none;min-width:105px;padding:9px 28px 9px 12px;color:#d7bfee;background-color:#21192f;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23d7bfee' stroke-width='1.5'/%3E%3C/svg%3E");background-position:right 10px center;background-repeat:no-repeat;border-color:#514065;border-radius:10px;font-size:12px}
.maxapp .arcom-stats-metrics{flex:0 0 auto;grid-template-rows:repeat(3,minmax(78px,auto));gap:8px}
.maxapp .arcom-stats-metric{padding:12px;background:linear-gradient(145deg,#1e192e,#171424);border-color:#453653;border-radius:12px;gap:9px;justify-content:space-between}
.maxapp .arcom-stats-metric>small{font-size:12px;line-height:1.25;color:#afa3c0}
.maxapp .arcom-stats-metric>strong{font-size:23px;line-height:1.2;font-weight:600;overflow-wrap:normal;font-variant-numeric:tabular-nums;color:#eee8f8}
.maxapp .arcom-stats-history{flex:0 0 auto;overflow:visible;background:linear-gradient(145deg,#1c172b,#151222);border-color:#463655;border-radius:12px;padding:12px}
.maxapp .arcom-stats-history-head{margin-bottom:8px;gap:6px}
.maxapp .arcom-stats-history-head>b{font-size:16px;font-weight:600}
.maxapp .arcom-stats-history-head>small{font-size:11px;color:#aa9bbd;white-space:nowrap}
.maxapp .arcom-stats-history-body{display:flex;flex-direction:column;flex:none;overflow:visible}
.maxapp .arcom-stats-cycle{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,1.5fr);align-items:center;gap:9px;min-height:43px;padding:9px 0;border-color:#3a2e49}
.maxapp .arcom-stats-cycle>.cycle-side{justify-self:start;border-radius:7px;background:#342345;color:#d6b6ed;font-size:11px;padding:5px 7px;font-weight:500}
.maxapp .arcom-stats-cycle>.cycle-state{font-size:12px;color:#b6a6ca;text-align:center;overflow-wrap:anywhere}
.maxapp .arcom-stats-cycle>strong{font-size:15px;font-weight:600;text-align:right;white-space:normal;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.maxapp .arcom-stats-cycle .pnl-neutral:not(:has(.display-number)){font-size:11px;font-weight:400;line-height:1.3}
.maxapp .arcom-stats-history-body>p{margin:8px 0;line-height:1.5}
.maxapp .arcom-stats-period{font-size:10px;color:#ad9dbc;line-height:1.4;text-align:left;padding:0 3px}
@media(max-width:365px){
 .maxapp .header{padding-left:10px;padding-right:10px;gap:6px}.maxapp .brand{gap:6px}.maxapp .brand strong{font-size:14px}.maxapp .brand small{font-size:7px;letter-spacing:.7px}.maxapp .app-monogram{width:31px;height:32px;font-size:18px}.maxapp .headright{gap:6px}.maxapp .exchange-status{max-width:101px;min-width:61px}.maxapp .exchange-status>span{font-size:12px}.maxapp .exchange-status small{font-size:9px}.maxapp .header-notifications{width:30px;height:33px}
 .at-screen-position .at-cycle-metrics b{font-size:17px}.at-screen-position .at-cycle-metrics small{font-size:11px}.at-screen-position .at-cycle-metrics>div{padding:8px}.at-dca-panel .at-dca-row{font-size:11px}.dca-badge{font-size:9px;padding:3px 5px}.maxapp .arcom-stats-metric>strong{font-size:20px}.maxapp .arcom-stats-cycle{gap:6px}
}
@container(max-height:450px){
 .at-screen-position .at-cycle-tabs button{font-size:11px;padding:7px 2px}.at-screen-position .at-cycle-title{font-size:13px;margin-bottom:5px}.at-screen-position .at-cycle-metrics{grid-template-rows:repeat(5,minmax(49px,1fr));gap:5px}.at-screen-position .at-cycle-metrics>div{padding:6px 8px;gap:3px}.at-screen-position .at-cycle-metrics small{font-size:10px}.at-screen-position .at-cycle-metrics b{font-size:17px}.at-screen-position .at-cycle-metrics [data-metric=Состояние] b{font-size:14px}.at-dca-panel .at-dca-row{flex-basis:21px;font-size:11px;padding:1px 0}.dca-badge{font-size:9px;padding:2px 5px}.at-screen-position .at-cycle-protection .at-card{padding:10px 12px}.at-screen-position .at-cycle-protection h3{font-size:24px;margin:5px 0 8px}
}
@media(prefers-reduced-motion:reduce){.maxapp .header-notifications{transition:none}}
/* Keep the full grid and compact statistics visible in Telegram's shorter viewport. */
.at-screen-position .at-cycle-tabs button{white-space:nowrap;font-size:11px}
.at-screen-position .at-cycle-metrics{grid-template-rows:repeat(5,minmax(52px,1fr))}
.at-dca-panel .at-dca-row{flex-basis:21px}
@media(max-height:740px){
 .maxapp .arcom-statistics{gap:8px}.maxapp .arcom-stats-metrics{grid-template-rows:repeat(3,minmax(62px,auto));gap:7px}.maxapp .arcom-stats-metric{padding:9px;gap:6px}.maxapp .arcom-stats-metric>small{font-size:11px}.maxapp .arcom-stats-metric>strong{font-size:21px}.maxapp .arcom-stats-history{padding:10px}.maxapp .arcom-stats-history-head{margin-bottom:5px}.maxapp .arcom-stats-history-head>b{font-size:15px}.maxapp .arcom-stats-cycle{min-height:32px;padding:5px 0}.maxapp .arcom-stats-cycle>strong{font-size:14px}.maxapp .arcom-stats-cycle>.cycle-side{padding:4px 6px;font-size:10px}.maxapp .arcom-stats-cycle>.cycle-state{font-size:11px}
}
@media(max-width:365px){.at-screen-position .at-cycle-tabs button{font-size:10px;padding-left:1px;padding-right:1px}}
/* Independent market analysis only; other tabs retain their styles. */
.market-analysis-screen{display:block;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:0 1px 12px}
.market-analysis-screen>section,.market-analysis-screen>.analysis-title{margin-bottom:10px}
.market-analysis-screen .ma-scenario{margin:0 0 12px;color:#cab6e2;font-size:12px;line-height:1.4}
.market-analysis-screen .ma-agreement{font-size:23px}
.market-analysis-screen .ma-horizons{margin-top:10px;color:#cbb9e2;font-size:11px}
.market-analysis-screen .ma-note{display:block;color:#ac9bbc;font-size:11px;line-height:1.45;margin:7px 0 0}
.market-analysis-screen .ma-preference{font-size:12px;color:#d5b8f0;line-height:1.4}
.market-analysis-screen .ma-scale{position:relative;overflow:visible}
.market-analysis-screen .ma-scale i{position:absolute;top:-3px;width:4px;height:11px;border-radius:4px;background:#dbbbff;transform:translateX(-50%)}
.market-analysis-screen .ma-factors{display:block;flex:none;min-height:auto}
.market-analysis-screen .analysis-factor{min-height:32px;flex:none}
.market-analysis-screen .ma-flow-pair{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;font-size:10px;color:#b6a2c9;padding-top:8px}
.market-analysis-screen .ma-card{border:1px solid #3f3055;border-radius:12px;background:#161322;padding:12px}
.market-analysis-screen .ma-card h3{font-size:14px;margin:0 0 8px;color:#eee4f9}
.market-analysis-screen .ma-explanation p{font-size:12px;color:#c6b8d4;line-height:1.5;margin:6px 0;overflow-wrap:anywhere}
.market-analysis-screen .ma-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.market-analysis-screen .ma-card-head>span{font-size:10px;color:#b9a1ce;text-align:right;max-width:45%}
.market-analysis-screen .ma-etf-date{font-size:11px;color:#bba4d0;margin:4px 0 8px}
.market-analysis-screen .ma-etf>strong{font-size:25px;letter-spacing:-.4px}
.market-analysis-screen .ma-positive{color:#61dcb2}.market-analysis-screen .ma-negative{color:#f18ca5}
.market-analysis-screen .ma-etf-summary,.market-analysis-screen .ma-fund{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#cbbbd9;padding:9px 0;border-bottom:1px solid #30243e}
.market-analysis-screen .ma-etf-chart{display:block;width:100%;height:76px;margin-top:8px}
.market-analysis-screen .ma-chart-dates{display:flex;justify-content:space-between;font-size:9px;color:#ab98bb}
.market-analysis-screen details{margin-top:10px}.market-analysis-screen summary{cursor:pointer;color:#d4b5f0;font-size:12px;padding:6px 0}
.market-analysis-screen .analysis-refresh{margin-top:7px}.market-analysis-screen .analysis-refresh:disabled{opacity:.6}
.market-analysis-screen .analysis-source{margin-top:9px;line-height:1.5}
/* Approved scientist card: scoped to the public analysis tab. */
.scientist-analysis{padding-bottom:10px}
.scientist-analysis .sa-hero{position:relative;isolation:isolate;overflow:hidden;min-height:174px;aspect-ratio:1.9;border:1px solid #703c98;border-radius:16px;background:#1b102a}
.scientist-analysis .sa-scientist{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:-2}
.scientist-analysis .sa-hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#160d25e8 0%,#180d248c 40%,transparent 65%);z-index:-1}
.scientist-analysis .sa-hero-copy{position:relative;width:60%;padding:18px 15px 42px}
.scientist-analysis .sa-hero-copy>small{font-size:18px;font-weight:800;letter-spacing:.4px;color:#d4a5ff}
.scientist-analysis .sa-hero h3{font-size:13px;font-weight:500;color:#dcc9ed;margin:5px 0 9px}
.scientist-analysis .sa-direction{font-size:32px;line-height:1.1;font-weight:800;color:#61dfb4;display:block;overflow-wrap:anywhere}
.scientist-analysis .sa-hero[data-signal=SHORT] .sa-direction{color:#f58daa}
.scientist-analysis .sa-hero[data-signal=WAIT] .sa-direction,.scientist-analysis .sa-hero[data-signal=NO_DATA] .sa-direction{font-size:23px;color:#ddc4f1}
.scientist-analysis .sa-outlook{font-size:12px;line-height:1.45;margin:9px 0 0;color:#efe2fa;max-width:170px}
.scientist-analysis .sa-hero-caption{position:absolute;bottom:10px;left:13px;display:flex;align-items:center;gap:6px;background:#29163ee6;border:1px solid #714197;border-radius:20px;padding:5px 10px;font-size:10px;color:#d7b7f2}
.scientist-analysis .sa-comment{display:flex;flex-direction:column;gap:5px;padding:0 2px;margin:0 0 12px;font-size:12px;color:#d3c2e2;line-height:1.4}
.scientist-analysis .sa-comment small{font-size:10px;color:#a996b9}
.scientist-analysis .sa-card{border:1px solid #66378a;border-radius:16px;background:radial-gradient(at 100% 0%,#311744,#151020 75%);padding:14px;margin-bottom:12px}
.scientist-analysis .sa-card-title{display:flex;gap:10px;align-items:center;min-width:0}
.scientist-analysis .sa-card-title h3{font-size:15px;color:#f0e5fa;margin:0;font-weight:700;flex:1;min-width:0}
.scientist-analysis .sa-card-title>small{font-size:10px;color:#b8a0cd;white-space:nowrap}
.scientist-analysis .sa-icon{display:grid;place-items:center;flex:none;width:31px;height:31px;border-radius:9px;background:#382051;color:#cf9efb}
.scientist-analysis .sa-accuracy-main{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin:10px 0 9px}
.scientist-analysis .sa-accuracy-main>strong{font-size:37px;line-height:1.1;color:#d3a2ff;letter-spacing:-1px}
.scientist-analysis .sa-accuracy-main>span{font-size:12px;color:#cdb7de}
.scientist-analysis .sa-progress{height:7px;background:#352342;border-radius:12px;overflow:hidden}
.scientist-analysis .sa-progress>span{display:block;height:100%;background:linear-gradient(90deg,#8e36e7,#d58fff);border-radius:12px}
.scientist-analysis .sa-note{display:flex;align-items:center;gap:6px;font-size:10px;line-height:1.5;color:#bba1d0;margin:10px 0 0}
.scientist-analysis .sa-note svg{flex:none}
.scientist-analysis .sa-history{margin-top:8px;border-top:1px solid #3e2850}
.scientist-analysis .sa-history summary{font-size:11px;padding:9px 0;color:#d6b5f0}
.scientist-analysis .sa-history>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;border-top:1px solid #35233f;font-size:10px;color:#cab6da}
.scientist-analysis .positive{color:#64e0b6}.scientist-analysis .negative{color:#f58daa}
.scientist-analysis .sa-bitcoin{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:linear-gradient(135deg,#ffc04f,#e58217);color:#fff;font-size:10px;font-weight:800;line-height:1;flex:none}
.scientist-analysis .sa-etf-total{font-size:31px;line-height:1.15;letter-spacing:-.6px;display:block;margin:10px 0 7px;font-weight:800;overflow-wrap:anywhere}
.scientist-analysis .sa-etf-caption{font-size:12px;margin:0;color:#dac9e8}
.scientist-analysis .sa-etf-total-period{display:flex;justify-content:space-between;gap:10px;font-size:11px;border-top:1px solid #3d294d;margin-top:10px;padding-top:10px;color:#bda8d0}
.scientist-analysis .sa-refresh{border:1px solid #bb74ee;background:linear-gradient(110deg,#8129d3,#ad41e9);border-radius:12px;padding:13px;font-size:14px;margin-top:0}
.scientist-analysis .sa-source{color:#a88ebd;font-size:10px;text-align:center;margin-top:8px}
@media(max-width:365px){.scientist-analysis .sa-hero{aspect-ratio:1.65}.scientist-analysis .sa-hero-copy{padding:16px 12px 42px}.scientist-analysis .sa-hero-copy>small{font-size:16px}.scientist-analysis .sa-card{padding:12px}.scientist-analysis .sa-card-title{gap:7px}.scientist-analysis .sa-card-title h3{font-size:14px}.scientist-analysis .sa-accuracy-main>strong{font-size:33px}.scientist-analysis .sa-note{font-size:10px}}
/* Administration for the independent market-analysis module only. */
.ma-admin-screen .titleline{margin-bottom:14px}.ma-admin-screen .titleline h2{font-size:23px;margin:0 0 6px}
.ma-admin-screen .titleline small{font-size:11px;color:#a9a4bd}
.ma-admin-screen .ma-admin-card{padding:13px;margin-bottom:10px;border-color:#39304f;background:linear-gradient(135deg,#181427,#111423)}
.ma-admin-screen .ma-admin-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px}
.ma-admin-screen .ma-admin-head small{font-size:10px;color:#ab9cbe}
.ma-admin-screen .ma-admin-tag{color:#bda4d4;background:#292035;border:1px solid #59436e;border-radius:20px;padding:4px 7px;font-size:10px;white-space:nowrap}
.ma-admin-screen .ma-admin-tag.configured{color:#d9c1f1;border-color:#6e4a90}
.ma-admin-screen .ma-admin-key{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0 6px;font-size:12px;color:#c4b4d5}
.ma-admin-screen .ma-admin-key button{border:0;background:none;color:#cd9df5;font-size:11px;padding:3px}
.ma-admin-screen .ma-admin-input-label{display:block;font-size:11px;color:#baabc9;margin:8px 0 5px}
.ma-admin-screen .ma-admin-input{display:flex;align-items:center;background:#0f1020;border:1px solid #55416c;border-radius:9px;overflow:hidden}
.ma-admin-screen .ma-admin-input input{border:0;background:none;color:#e4d9f1;flex:1;min-width:0;padding:11px;font-size:12px;outline-offset:-2px}
.ma-admin-screen .ma-admin-input button{border:0;background:none;color:#c4a6df;padding:8px 11px;display:flex}
.ma-admin-screen .ma-admin-button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:40px;width:100%;margin:10px 0 0;border-radius:10px;font-size:12px}
.ma-admin-screen .ma-admin-button:disabled{opacity:.55;cursor:default}
.ma-admin-screen .ma-admin-note{font-size:10px;line-height:1.45;color:#a394b3;margin:8px 0 0}
.ma-admin-screen .ma-admin-source{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 0;border-bottom:1px solid #30273f;font-size:12px;color:#d8cce5}
.ma-admin-screen .ma-admin-source>span{position:relative;padding-left:15px;min-width:0}
.ma-admin-screen .ma-admin-source i{position:absolute;left:0;top:4px;background:#776a85;width:6px;height:6px;border-radius:50%}
.ma-admin-screen .ma-admin-source i.ok{background:#53d5a7}.ma-admin-screen .ma-admin-source i.error{background:#f084a2}
.ma-admin-screen .ma-admin-source small{display:block;font-size:10px;color:#9e8eae;margin-top:3px}
.ma-admin-screen .ma-admin-source>b{font-size:11px;color:#b4a2c7;white-space:nowrap;font-weight:500}
.ma-admin-screen .ma-positive{color:#5bd7ad!important}
.ma-admin-screen .ma-admin-last{display:grid;grid-template-columns:1fr auto;gap:14px;margin:12px 0;color:#a698b5;font-size:10px}
.ma-admin-screen .ma-admin-last strong{display:block;color:#dbbbf6;font-size:18px;margin-top:5px}
.ma-admin-screen .ma-admin-last>span:last-child{text-align:right}
.ma-admin-screen .ma-admin-feedback{border:1px solid #4b3b64;border-radius:10px;padding:10px;font-size:12px;color:#d7b7ef;line-height:1.45}
.ma-admin-screen .ma-admin-error{font-size:11px;color:#f29ab1;line-height:1.5;margin:8px 0;overflow-wrap:anywhere}
.home-btc .market-quote-display{text-align:right;min-width:0}
.home-btc .market-quote-display strong{display:block}
.home-btc .market-quote-display small{display:block;font-size:9px;line-height:1.4;color:#a99ab9;margin-top:3px;white-space:nowrap}
.at-market-price>strong{display:block;font-weight:700}
