/* Mobile preview, scoped to the existing narrow-device breakpoint. */
.rorMobileNav {display:none;}
@media(max-width:900px) {
  body.ror-ui-2026 {overflow:hidden!important;}
  body.ror-ui-2026 #rotateLock {display:none!important;}
  body.ror-ui-2026 > .right {width:100%!important;min-width:0!important;flex:1 1 100%!important;}
  body.ror-ui-2026 > .left {
    display:none!important;position:fixed!important;inset:auto 8px max(8px,env(safe-area-inset-bottom)) 8px!important;
    width:auto!important;max-width:none!important;min-width:0!important;height:min(60%,520px)!important;max-height:60%!important;
    padding:12px!important;z-index:1300!important;border:1px solid #685638!important;border-radius:14px!important;
    overflow:auto!important;overscroll-behavior:contain;background:#0d1219!important;box-shadow:0 -12px 42px #000b!important;
  }
  body.ror-ui-2026.ror-mobile-trade-open > .left {display:flex!important;}
  body.ror-ui-2026 > .right > .topbar {
    position:relative!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important;
    align-items:stretch!important;gap:0!important;padding:4px 8px!important;height:100px!important;min-height:100px!important;max-height:100px!important;
    flex:0 0 100px!important;overflow:visible!important;z-index:48!important;
  }
  body.ror-ui-2026 .rorMobileNav {display:flex;gap:6px;flex:none;align-items:center;min-width:0;}
  body.ror-ui-2026 .rorMobileNav button {
    flex:1;min-width:0;min-height:40px;border:1px solid #60543c;border-radius:8px;background:#151a21;color:#e9d8b5;
    font:700 12px system-ui,sans-serif;cursor:pointer;padding:5px;white-space:normal;
  }
  body.ror-ui-2026 .rorMobileNav button[aria-expanded="true"] {background:#3a3020;border-color:#e0bc75;color:#fff1d0;}
  body.ror-ui-2026.ror-training-brand #rorMobileTools {display:none!important;}
  body.ror-ui-2026 #rorMobileMoreControls {display:none!important;}
  body.ror-ui-2026.ror-mobile-more-open #rorMobileMoreControls {
    display:flex!important;position:absolute!important;inset:96px 8px auto 8px!important;transform:none!important;
    width:auto!important;max-width:none!important;height:auto!important;min-width:0!important;z-index:1350!important;
    flex-direction:column!important;align-items:stretch!important;gap:10px!important;padding:12px!important;
    border:1px solid #665637;border-radius:12px;background:#10151c;box-shadow:0 14px 38px #000c;
  }
  body.ror-ui-2026 #rorMobileMoreControls :is(.topbarTooltipSlot,.rorTrainingPathToolbar) {position:static!important;transform:none!important;width:100%!important;max-width:none!important;flex-wrap:wrap!important;justify-content:center!important;}
  body.ror-ui-2026 #rorMobileMoreControls #btnBeginnerStart:not([hidden]) {min-height:44px!important;}
  body.ror-ui-2026 #rorMobileMoreControls #rorTrainingLevel {min-height:44px!important;font-size:16px!important;}
  body.ror-ui-2026 #mobileChartControls {
    position:absolute!important;inset:50px 8px auto 8px!important;max-width:none!important;min-width:0!important;
    display:flex!important;flex-wrap:nowrap!important;gap:5px!important;padding:3px!important;justify-content:flex-start!important;
    z-index:49!important;border-radius:8px!important;box-shadow:none!important;
  }
  body.ror-ui-2026 #mobileChartControls :is(button,select) {min-height:40px!important;font-size:16px!important;}
  body.ror-ui-2026 #mobileChartControls select {width:60px!important;min-width:60px!important;max-width:70px!important;background:#161c24!important;color:#f4e7ca!important;}
  body.ror-ui-2026 #btnFindMobile {min-width:42px!important;}
  body.ror-ui-2026 #marketTimePillMobile {flex:1;min-width:0!important;overflow:hidden;padding-inline:5px!important;}
  body.ror-ui-2026 #marketTimePillMobile :is(.marketTimeGlyph,.marketTimeLabel,.marketTimeDayLabel) {display:none!important;}
  body.ror-ui-2026 #marketTimePillMobile .marketTimeMeta {min-width:0;}
  body.ror-ui-2026 #marketTimePillMobile .marketTimeDateWrap {min-width:0;overflow:hidden;}
  body.ror-ui-2026 #marketTimePillMobile :is(#marketTimeTxtMobile,#marketDateTxtMobile) {font-size:11px!important;white-space:nowrap;}
  body.ror-ui-2026 #chartToolsRail {display:none!important;}
  body.ror-ui-2026.ror-mobile-tools-open:not(.ror-training-brand) #chartToolsRail {
    position:absolute!important;inset:104px auto auto 8px!important;display:flex!important;flex-direction:column!important;gap:8px!important;
    width:min(280px,calc(100% - 96px))!important;max-height:calc(100% - 122px)!important;overflow:auto!important;
    padding:8px!important;z-index:1100!important;border:1px solid #665637;border-radius:12px;background:#10151c;
  }
  body.ror-ui-2026.ror-mobile-tools-open #chartToolsRail :is(.drawToolbar,.indicatorsToolbar) {
    position:static!important;inset:auto!important;width:100%!important;min-width:0!important;max-width:none!important;transform:none!important;overflow:visible!important;
  }
  body.ror-ui-2026.ror-mobile-tools-open #chartToolsRail button:not([hidden]) {min-height:40px!important;max-width:100%!important;white-space:normal!important;}
  body.ror-ui-2026 #chartToolsRail > .chartToolsRailToggle {display:none!important;}
  body.ror-ui-2026 #cv {min-width:0!important;max-width:100%!important;}
  body.ror-ui-2026 #orderTicketCard :is(button,select,input),body.ror-ui-2026 #sidebarWorkspaceTabs button {min-height:40px!important;}
  body.ror-ui-2026 :is(#orderTicketCard,#repsOfRiskCard) :is(input,select,textarea) {font-size:16px!important;}
  body.ror-ui-2026 .right > #lessonBanner:not(.is-learning-studio) {top:106px!important;max-height:calc(100% - 120px)!important;}
  body.ror-ui-2026 .right > #lessonBanner.is-bottom-dock:not(.is-learning-studio) {top:auto!important;bottom:8px!important;}
  body.ror-ui-2026 #tradingBuddy:not([hidden]) {max-width:calc(100% - 16px)!important;max-height:calc(100% - 110px)!important;overflow:auto!important;}
  body.ror-ui-2026 :is(.modal,.tipModal,.authModal,.profileModal) {max-width:calc(100% - 16px)!important;max-height:calc(100% - 16px)!important;overflow-y:auto;}
  body.ror-ui-2026 :is(.modal,.tipModal,.authModal,.profileModal) :is(input,textarea,select) {font-size:16px!important;}
  body.ror-ui-2026 .practiceReplayControls:not([hidden]):not(.is-group-training) {max-width:calc(100% - 100px)!important;}
}
@media(max-width:900px) and (orientation:landscape) {
  body.ror-ui-2026 > .left {inset:104px 8px 8px auto!important;width:min(42%,350px)!important;height:auto!important;max-height:none!important;}
  body.ror-ui-2026 > .right > .topbar {height:54px!important;min-height:54px!important;max-height:54px!important;flex-basis:54px!important;}
  body.ror-ui-2026 .rorMobileNav {width:42%;}
  body.ror-ui-2026 #mobileChartControls {inset:5px 8px auto 44%!important;}
  body.ror-ui-2026.ror-mobile-more-open #rorMobileMoreControls {inset:54px 8px auto 44%!important;}
  body.ror-ui-2026.ror-mobile-tools-open:not(.ror-training-brand) #chartToolsRail {top:58px!important;max-height:calc(100% - 70px)!important;}
  body.ror-ui-2026 > .left {top:58px!important;}
  body.ror-ui-2026 .right > #lessonBanner:not(.is-learning-studio) {top:60px!important;max-height:calc(100% - 72px)!important;}
}
@media(max-width:370px) and (orientation:portrait) {
  body.ror-ui-2026 #marketTimePillMobile .marketTimeDateWrap {display:none!important;}
}
@media(prefers-reduced-motion:reduce) {
  .rorMobileNav button {transition:none!important;}
}

/* App-style mobile terminal. The desktop DOM and order handlers remain intact. */
.rorMobileHeader,.rorMobileStats,.rorMobileChartRow,.rorMobileBottom {display:none;}
@media(max-width:900px) {
 body.ror-ui-2026.ror-mobile-app > .right > .topbar {
   height:auto!important;min-height:0!important;max-height:none!important;flex:0 0 auto!important;
   padding:5px 8px 4px!important;gap:5px!important;background:#0b0e11!important;
 }
 body.ror-ui-2026.ror-mobile-app .rorMobileHeader {display:flex;align-items:center;gap:7px;color:#e9c38b;min-height:26px;font-size:13px;}
 body.ror-ui-2026.ror-mobile-app #rorMobileHome {min-width:34px;min-height:32px;border:0;background:transparent;color:#e6e6e6;font-size:25px;line-height:1;padding:0;}
 body.ror-ui-2026.ror-mobile-app .rorMobileStats {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;}
 .rorMobileStats > div {display:grid;gap:4px;min-width:0;background:#16191d;border-radius:8px;padding:7px 9px;}
 .rorMobileStats span {font-size:11px;color:#b8bec6;}
 .rorMobileStats strong {font-size:17px;font-variant-numeric:tabular-nums;color:#f0f1f2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
 .rorMobileStats strong.is-positive {color:#64cda0;} .rorMobileStats strong.is-negative {color:#e87e82;}
 body.ror-ui-2026.ror-mobile-app #chartTopControls,body.ror-ui-2026.ror-mobile-app #marketTimePill {display:none!important;}
 body.ror-ui-2026.ror-mobile-app .rorMobileChartRow {display:block;min-width:0;}
 body.ror-ui-2026.ror-mobile-app #mobileChartControls {
   position:static!important;inset:auto!important;display:flex!important;width:100%!important;max-width:none!important;min-width:0!important;
   padding:0!important;gap:5px!important;background:transparent!important;border:0!important;box-shadow:none!important;flex-wrap:nowrap!important;transform:none!important;
 }
 body.ror-ui-2026.ror-mobile-app #mobileChartControls select {min-width:54px!important;width:54px!important;max-width:66px!important;font-size:14px!important;min-height:36px!important;}
 body.ror-ui-2026.ror-mobile-app #btnFindMobile {min-width:42px!important;min-height:36px!important;font-size:12px!important;order:3;}
 body.ror-ui-2026.ror-mobile-app #marketTimePillMobile {order:2;margin-left:auto;flex:0 1 auto;min-width:0!important;max-width:100%!important;border:0!important;background:transparent!important;box-shadow:none!important;}
 body.ror-ui-2026.ror-mobile-app #marketTimePillMobile .marketTimeDateWrap {display:none!important;}
 body.ror-ui-2026.ror-mobile-app #marketTimeTxtMobile {font-size:12px!important;}
 body.ror-ui-2026.ror-mobile-app #chartReviewMenuWrap {order:4;position:relative!important;inset:auto!important;flex:0 0 auto!important;display:block!important;}
 body.ror-ui-2026.ror-mobile-app #btnChartReviewMenu {display:inline-flex!important;align-items:center;justify-content:center;min-width:36px!important;min-height:36px!important;padding:5px!important;}
 body.ror-ui-2026.ror-mobile-app #btnChartReviewMenu .chartReviewMenuChevron {display:none!important;}
 body.ror-ui-2026.ror-mobile-app > .right {display:flex!important;flex-direction:column!important;min-height:0!important;}
 body.ror-ui-2026.ror-mobile-app #cv {flex:1 1 0!important;height:0!important;min-height:100px!important;width:100%!important;max-width:100%!important;align-self:stretch!important;margin:0!important;}
 body.ror-ui-2026.ror-mobile-app .rorMobileBottom {display:flex;flex:0 0 auto;flex-direction:column;gap:5px;padding:3px 8px max(3px,env(safe-area-inset-bottom));background:#0b0e11;z-index:52;min-width:0;}
 body.ror-ui-2026.ror-mobile-app :is(.rorMobileActions,.rorMobileNav) {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%!important;gap:3px;padding:2px 0;}
 body.ror-ui-2026.ror-mobile-app :is(.rorMobileActions,.rorMobileNav) button {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:39px;padding:2px!important;border:0;background:transparent;color:#b8bec6;font-size:10px;font-weight:600;border-radius:5px;}
 body.ror-ui-2026.ror-mobile-app :is(.rorMobileActions,.rorMobileNav) button:is([aria-expanded="true"],[aria-pressed="true"]) {color:#e9c38b;background:#201d17;}
 body.ror-ui-2026.ror-mobile-app :is(.rorMobileActions,.rorMobileNav) button:disabled {opacity:.4;}
 body.ror-ui-2026.ror-mobile-app .rorMobileNav {border-top:1px solid #30343a;}
 body.ror-ui-2026.ror-mobile-app .rorMobileActions {border-bottom:1px solid #30343a;}
 body.ror-ui-2026.ror-mobile-app #rorMobileOrderDock:empty {display:none;}
 body.ror-ui-2026.ror-mobile-app #rorMobileOrderDock #orderTicketCard:not([hidden]) {display:flex!important;flex-direction:column!important;gap:5px!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0!important;min-width:0!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileOrderDock #orderTicketCard > summary {display:none!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileOrderDock #orderTicketCard > :is(.orderTypeTabs,.orderTicketDivider,.orderTicketWorkingRow,.orders) {display:none!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileOrderDock .orderTicketTools {order:0;display:flex!important;flex-direction:column;gap:0!important;margin:0!important;padding:0!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileOrderDock :is(#qtyPresetRow,.orderTicketBracketRow,.orderTicketPanelHint) {display:none!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileOrderDock #orderTicketQuantityRow {display:flex!important;justify-content:space-between;align-items:center;min-height:30px;padding:0!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileOrderDock #qtyStepper {display:flex!important;align-items:center;gap:5px;}
 body.ror-ui-2026.ror-mobile-app #rorMobileOrderDock #qtyStepper button {min-width:34px!important;min-height:34px!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileOrderDock #qtyInput {width:44px!important;min-height:34px!important;text-align:center;}
 body.ror-ui-2026.ror-mobile-app #rorMobileOrderDock .orderTicketPanel {order:1;padding:0!important;margin:0!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileOrderDock .orderTicketPanel[hidden] {display:none!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileOrderDock .orderTicketActions {display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileOrderDock .orderTicketSideButton {display:flex!important;flex-direction:row!important;align-items:center;justify-content:center;gap:5px;min-height:40px!important;padding:6px!important;text-transform:uppercase;font-size:13px!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileOrderDock .orderTicketSideButton small {font-size:12px!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileOrderDock #btnClose {order:2;min-height:36px!important;margin:0!important;}
 body.ror-ui-2026.ror-mobile-app > .left {bottom:48px!important;max-height:65%!important;}
 body.ror-ui-2026.ror-mobile-app.ror-mobile-more-open #rorMobileMoreControls {position:absolute!important;inset:100% 8px auto!important;max-height:55dvh!important;overflow:auto!important;}
 body.ror-ui-2026.ror-mobile-app.ror-mobile-tools-open:not(.ror-training-brand) #chartToolsRail {top:var(--ror-chart-topbar-height,130px)!important;max-height:calc(100% - var(--ror-chart-topbar-height,130px) - 50px)!important;}
 body.ror-ui-2026.ror-mobile-app.ror-mobile-draw-open #indicatorsToolbar,body.ror-ui-2026.ror-mobile-app.ror-mobile-indicators-open #drawToolbar {display:none!important;}
 body.ror-ui-2026.ror-mobile-app.ror-mobile-replay-open #practiceReplayControls:not([hidden]) {display:flex!important;top:var(--ror-chart-topbar-height,130px)!important;}
 body.ror-ui-2026.ror-mobile-app .right > #lessonBanner:not(.is-learning-studio) {top:var(--ror-chart-topbar-height,130px)!important;max-height:calc(100% - var(--ror-chart-topbar-height,130px) - 50px)!important;}
 body.ror-ui-2026.ror-mobile-app .right > #lessonBanner.is-bottom-dock:not(.is-learning-studio) {top:auto!important;bottom:8px!important;}
 body.ror-ui-2026.ror-mobile-app.ror-training-brand :is(#rorMobileDraw,#rorMobileIndicators) {display:none!important;}
 body.ror-ui-2026.ror-mobile-app.ror-training-brand .rorMobileActions {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:900px) and (orientation:landscape) {
 body.ror-ui-2026.ror-mobile-app .rorMobileHeader {display:none;}
 body.ror-ui-2026.ror-mobile-app > .right > .topbar {flex-direction:row!important;align-items:center!important;}
 body.ror-ui-2026.ror-mobile-app .rorMobileStats {flex:0 0 40%;gap:3px;}
 body.ror-ui-2026.ror-mobile-app .rorMobileStats > div {padding:4px 6px;}
 body.ror-ui-2026.ror-mobile-app .rorMobileStats strong {font-size:13px;}
 body.ror-ui-2026.ror-mobile-app .rorMobileChartRow {flex:1;}
 body.ror-ui-2026.ror-mobile-app .rorMobileBottom {gap:2px;padding:2px 8px;}
 body.ror-ui-2026.ror-mobile-app :is(.rorMobileActions,.rorMobileNav) button {min-height:29px;flex-direction:row;}
 body.ror-ui-2026.ror-mobile-app #rorMobileOrderDock #orderTicketCard:not([hidden]) {display:grid!important;grid-template-columns:minmax(110px,1fr) 2fr minmax(85px,1fr);align-items:center;}
 body.ror-ui-2026.ror-mobile-app #rorMobileOrderDock #btnClose {min-height:34px!important;}
 body.ror-ui-2026.ror-mobile-app > .left {top:58px!important;bottom:32px!important;}
}

/* Mobile terminal refinement: compact header, full-width order dock, clean navigation. */
@media(max-width:900px) {
 body.ror-ui-2026.ror-mobile-app {--ror-mobile-surface:#0b1015;--ror-mobile-line:#28323c;--ror-mobile-gold:#e7c489;}
 body.ror-ui-2026.ror-mobile-app.ror-mobile-hq-embedded .rorMobileHeader {display:none!important;}
 body.ror-ui-2026.ror-mobile-app > .right > .topbar {padding:6px 8px!important;gap:6px!important;border-bottom:1px solid var(--ror-mobile-line)!important;}
 body.ror-ui-2026.ror-mobile-app .rorMobileStats > div {padding:7px 9px;gap:3px;border:1px solid #26303a;background:#131920;border-radius:9px;}
 body.ror-ui-2026.ror-mobile-app .rorMobileStats span {font-size:11px;line-height:1.2;}
 body.ror-ui-2026.ror-mobile-app .rorMobileStats strong {font-size:17px;line-height:1.2;}
 body.ror-ui-2026.ror-mobile-app #mobileChartControls {gap:5px!important;align-items:center!important;}
 body.ror-ui-2026.ror-mobile-app #mobileChartControls #instrumentSelMobile,
 body.ror-ui-2026.ror-mobile-app #mobileChartControls #tfSelMobile {
   box-sizing:border-box!important;appearance:auto!important;min-width:62px!important;width:62px!important;max-width:76px!important;
   padding:4px 5px!important;min-height:38px!important;font-size:13px!important;text-overflow:clip!important;
   border:1px solid #35414b!important;border-radius:8px!important;background:#151d26!important;background-image:none!important;color:#eef2f6!important;
 }
 body.ror-ui-2026.ror-mobile-app #mobileChartControls #instrumentSelMobile {width:72px!important;min-width:72px!important;}
 body.ror-ui-2026.ror-mobile-app #marketTimePillMobile {padding:0!important;gap:0!important;min-height:0!important;height:auto!important;white-space:nowrap!important;}
 body.ror-ui-2026.ror-mobile-app #marketTimeTxtMobile {font-size:11px!important;font-weight:700!important;}
 body.ror-ui-2026.ror-mobile-app #mobileChartControls #btnFindMobile,
 body.ror-ui-2026.ror-mobile-app #mobileChartControls #btnChartReviewMenu {min-width:38px!important;min-height:38px!important;max-height:38px!important;padding:4px 6px!important;border-radius:8px!important;font-size:12px!important;}
 body.ror-ui-2026.ror-mobile-app #mobileChartControls #btnFindMobile {background:#1d2c3c!important;border-color:#526d85!important;color:#d6e9fa!important;}
 body.ror-ui-2026.ror-mobile-app #cv {touch-action:none!important;-webkit-touch-callout:none;user-select:none;}
 body.ror-ui-2026.ror-mobile-app #rorMobileBottom {gap:5px!important;padding:4px 8px max(5px,env(safe-area-inset-bottom))!important;background:var(--ror-mobile-surface)!important;border-top:1px solid var(--ror-mobile-line);}
 body.ror-ui-2026.ror-mobile-app #rorMobileBottom .rorMobileActions {grid-template-columns:repeat(3,minmax(0,1fr));gap:5px!important;padding:0 0 5px!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileBottom .rorMobileNav {gap:4px!important;padding:4px 0 0!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileBottom :is(.rorMobileActions,.rorMobileNav)>button {box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:none!important;min-height:39px!important;margin:0!important;gap:4px!important;border:1px solid transparent!important;border-radius:8px!important;background:transparent!important;box-shadow:none!important;color:#aebac7!important;font-size:11px!important;letter-spacing:0!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileBottom :is(.rorMobileActions,.rorMobileNav)>button:is([aria-expanded="true"],[aria-pressed="true"]) {background:#25251f!important;border-color:#5b5037!important;color:var(--ror-mobile-gold)!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileBottom :is(.rorMobileActions,.rorMobileNav)>button:active:not(:disabled) {background:#252e37!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileBottom :is(.rorMobileActions,.rorMobileNav)>button:disabled {opacity:.35!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileOrderDock {width:100%!important;min-width:0!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileOrderDock > #orderTicketCard:not([hidden]) {
   display:block!important;box-sizing:border-box!important;width:100%!important;max-width:none!important;min-width:0!important;height:auto!important;
   max-height:none!important;padding:0!important;margin:0!important;overflow:visible!important;
 }
 body.ror-ui-2026.ror-mobile-app #rorMobileOrderDock > #orderTicketCard::details-content {display:block!important;overflow:visible!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileOrderDock > #orderTicketCard > .orderTicketTools {
   display:block!important;box-sizing:border-box!important;width:100%!important;max-width:none!important;margin:0 0 5px!important;padding:0!important;
 }
 body.ror-ui-2026.ror-mobile-app #rorMobileOrderDock #orderTicketQuantityRow {
   display:flex!important;justify-content:space-between!important;align-items:center!important;gap:8px!important;width:100%!important;max-width:none!important;min-height:34px!important;
 }
 body.ror-ui-2026.ror-mobile-app #rorMobileOrderDock #orderTicketQuantityRow .orderTicketToolLabel {font:600 12px system-ui,sans-serif!important;letter-spacing:0!important;text-transform:none!important;color:#c2cbd4!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileOrderDock #qtyStepper {display:flex!important;width:auto!important;min-width:0!important;max-width:none!important;gap:3px!important;margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileOrderDock #qtyStepper button {width:36px!important;min-width:36px!important;max-width:36px!important;height:34px!important;min-height:34px!important;padding:0!important;border:1px solid #35414b!important;border-radius:7px!important;background:#18212a!important;color:#dbe5ef!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileOrderDock #qtyStepper #qtyInput {width:42px!important;min-width:42px!important;max-width:42px!important;height:34px!important;min-height:34px!important;padding:0!important;border:0!important;background:#111820!important;border-radius:6px!important;font-size:15px!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileOrderDock > #orderTicketCard > .orderTicketPanel:not([hidden]) {display:block!important;width:100%!important;max-width:none!important;margin:0 0 5px!important;padding:0!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileOrderDock > #orderTicketCard .orderTicketActions {display:grid!important;width:100%!important;max-width:none!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileOrderDock > #orderTicketCard .orderTicketSideButton {width:100%!important;max-width:none!important;min-width:0!important;min-height:43px!important;border-radius:8px!important;justify-content:center!important;font-size:13px!important;letter-spacing:0!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileOrderDock > #orderTicketCard .orderTicketSideButton small {font-size:11px!important;letter-spacing:0!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileOrderDock > #orderTicketCard .orderTicketSideButton.btn-buy:not(:disabled) {background:#143e30!important;border-color:#34785d!important;color:#b1efd3!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileOrderDock > #orderTicketCard .orderTicketSideButton.btn-sell:not(:disabled) {background:#46262c!important;border-color:#91434e!important;color:#ffc1c5!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileOrderDock > #orderTicketCard #btnClose {display:flex!important;justify-content:center!important;align-items:center!important;width:100%!important;max-width:none!important;min-width:0!important;min-height:37px!important;margin:0!important;border-radius:8px!important;background:#211e19!important;border-color:#66583f!important;color:#ebcb94!important;font-size:12px!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileOrderDock > #orderTicketCard #btnClose:disabled {opacity:.45!important;}
 body.ror-ui-2026.ror-mobile-app.ror-training-brand #rorMobileBottom .rorMobileActions {grid-template-columns:1fr;}
 body.ror-ui-2026.ror-mobile-app #menu {max-width:calc(100% - 16px)!important;max-height:calc(100% - 16px)!important;overflow-y:auto!important;overscroll-behavior:contain;border-radius:12px!important;box-shadow:0 16px 40px #000b!important;}
 body.ror-ui-2026.ror-mobile-app #menu .mi {min-height:40px!important;padding:8px 10px!important;gap:6px!important;}
}
@media(max-width:900px) and (orientation:landscape) {
 body.ror-ui-2026.ror-mobile-app .rorMobileStats {flex:0 1 37%;min-width:0!important;}
 body.ror-ui-2026.ror-mobile-app .rorMobileStats > div {padding:4px 6px;}
 body.ror-ui-2026.ror-mobile-app .rorMobileStats span {font-size:10px;}
 body.ror-ui-2026.ror-mobile-app .rorMobileStats strong {font-size:14px;}
 body.ror-ui-2026.ror-mobile-app #rorMobileBottom {gap:3px!important;padding:3px 8px!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileBottom :is(.rorMobileActions,.rorMobileNav)>button {min-height:32px!important;flex-direction:row!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileOrderDock > #orderTicketCard::details-content {display:grid!important;grid-template-columns:minmax(120px,1fr) minmax(180px,2fr) minmax(100px,1fr);gap:6px;align-items:center;}
 body.ror-ui-2026.ror-mobile-app #rorMobileOrderDock > #orderTicketCard > :is(.orderTicketTools,.orderTicketPanel:not([hidden])) {margin:0!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileOrderDock > #orderTicketCard .orderTicketSideButton {min-height:37px!important;}
}
@media(max-width:350px) and (orientation:portrait) {
 body.ror-ui-2026.ror-mobile-app #mobileChartControls #instrumentSelMobile {min-width:61px!important;width:61px!important;}
 body.ror-ui-2026.ror-mobile-app #mobileChartControls #tfSelMobile {min-width:49px!important;width:49px!important;}
 body.ror-ui-2026.ror-mobile-app #marketTimeTxtMobile {font-size:10px!important;}
}

/* Mobile touch terminal: collapse navigation into the header and reclaim chart space. */
#rorMobileDrawDock {display:none;}
@media(max-width:900px) {
 body.ror-ui-2026.ror-mobile-app #rorMobileBottom .rorMobileNav {display:none!important;}
 body.ror-ui-2026.ror-mobile-app .rorMobileChartRow {display:flex!important;align-items:center;gap:4px;}
 body.ror-ui-2026.ror-mobile-app #mobileChartControls {flex:1 1 0!important;width:0!important;}
 body.ror-ui-2026.ror-mobile-app > .left {bottom:max(8px,env(safe-area-inset-bottom))!important;}
 body.ror-ui-2026.ror-mobile-app :is(#btnPracticeReplayDayBack,#btnPracticeReplayDayForward) {display:none!important;}
 body.ror-ui-2026.ror-mobile-app #practiceReplayControls .practiceReplayButtonRow {grid-template-columns:repeat(5,minmax(0,1fr))!important;}
 body.ror-ui-2026.ror-mobile-app #menu {max-height:min(55dvh,calc(100% - 16px))!important;height:auto!important;overflow-y:auto!important;overflow-x:hidden!important;touch-action:pan-y!important;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;}
 body.ror-ui-2026.ror-mobile-app #menu .mi {touch-action:pan-y!important;}
 body.ror-ui-2026.ror-mobile-app.ror-mobile-draw-open #chartToolsRail {width:min(310px,calc(100% - 16px))!important;touch-action:pan-y!important;overscroll-behavior:contain;}
 body.ror-ui-2026.ror-mobile-app.ror-mobile-draw-open #drawToolbar {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px!important;padding:2px!important;}
 body.ror-ui-2026.ror-mobile-app.ror-mobile-draw-open #drawToolbar #btnDrawMenuToggle {display:none!important;}
 body.ror-ui-2026.ror-mobile-app.ror-mobile-draw-open #drawToolbar > button.chartRailToolButton:not([hidden]) {display:flex!important;flex-direction:row!important;align-items:center;justify-content:flex-start;gap:7px;min-height:44px!important;min-width:0!important;width:100%!important;padding:7px!important;border:1px solid #35414b!important;border-radius:8px!important;background:#151d26;color:#e7eaf0;}
 body.ror-ui-2026.ror-mobile-app.ror-mobile-draw-open #drawToolbar > button.chartRailToolButton.toolActive {background:#32291b!important;border-color:#a7894d!important;color:#f5dba4!important;}
 body.ror-ui-2026.ror-mobile-app.ror-mobile-draw-open #drawToolbar .chartToolName {display:inline!important;font-size:11px!important;white-space:normal!important;text-align:left;}
 body.ror-ui-2026.ror-mobile-app #rorMobileDraw.ror-mobile-draw-active {color:#e7c489!important;border-color:#665637!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileDrawDock:not([hidden]) {display:flex!important;align-items:center;gap:5px;padding:3px 0;color:#e7c489;font:600 11px system-ui,sans-serif;}
 body.ror-ui-2026.ror-mobile-app #rorMobileDrawDock > span {flex:1;min-width:0;}
 body.ror-ui-2026.ror-mobile-app #rorMobileDrawDock button:not([hidden]) {min-height:36px;min-width:42px;padding:5px 9px;border:1px solid #665637;border-radius:7px;background:#151d26;color:#e7c489;touch-action:manipulation;}
 body.ror-ui-2026.ror-mobile-app #rorMobileDrawDock #mobileDrawActions {position:static!important;gap:5px;margin:0!important;padding:0!important;width:auto!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileDrawDock #mobileDrawActions:not(.show) {display:none!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileDrawDock [hidden] {display:none!important;}
}

/* Visible, mobile-only close controls. Keep the sidebar control visible while scrolling. */
.rorMobilePanelHeader {display:none;}
@media(max-width:900px) {
 body.ror-ui-2026.ror-mobile-app .rorMobilePanelHeader {
   display:flex!important;align-items:center;justify-content:space-between;gap:8px;flex:0 0 auto;
   min-height:36px;min-width:0;width:100%;box-sizing:border-box;padding:2px 3px 5px;
   color:#e7c489;font:700 12px system-ui,sans-serif;letter-spacing:.03em;
 }
 body.ror-ui-2026.ror-mobile-app .rorMobilePanelHeader .rorMobilePanelClose {
   display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 40px!important;
   width:40px!important;min-width:40px!important;max-width:40px!important;height:36px!important;min-height:36px!important;
   margin:0!important;padding:0!important;border:1px solid #665637!important;border-radius:8px!important;background:#1a2027!important;
   color:#f0d39e!important;box-shadow:none!important;touch-action:manipulation!important;
 }
 body.ror-ui-2026.ror-mobile-app .rorMobilePanelHeader .rorMobilePanelClose:active {background:#3a3020!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileSidebar > .rorMobilePanelHeader {
   position:sticky!important;top:0!important;z-index:20!important;background:#0d1219!important;
   border-bottom:1px solid #35414b!important;padding:0 0 7px!important;
 }
 body.ror-ui-2026.ror-mobile-app #rorMobileSidebar {touch-action:pan-y!important;overscroll-behavior-y:contain!important;scroll-padding-top:48px;}
 body.ror-ui-2026.ror-mobile-app #practiceReplayControls > .rorMobilePanelHeader {padding:0!important;}
 body.ror-ui-2026.ror-mobile-app #practiceReplayControls > .practiceReplayHeader .practiceReplayLabel,
 body.ror-ui-2026.ror-mobile-app #chartReviewMenu > .chartReviewMenuHeading {display:none!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileMoreControls > .rorMobilePanelHeader {position:sticky;top:0;z-index:2;background:#10151c;}
 body.ror-ui-2026.ror-mobile-app #chartToolsRail > .rorMobilePanelHeader {position:sticky;top:0;z-index:2;background:#10151c;}
 body.ror-ui-2026.ror-mobile-app #menu {
   box-sizing:border-box!important;max-height:min(68dvh,calc(100% - 16px))!important;
   overflow-y:scroll!important;overflow-x:hidden!important;overscroll-behavior:none!important;
   touch-action:none!important;-webkit-overflow-scrolling:auto!important;scroll-behavior:auto!important;
   overflow-anchor:none;scroll-snap-type:none!important;z-index:1200!important;
 }
 body.ror-ui-2026.ror-mobile-app #menu .mi {touch-action:none!important;min-height:44px!important;flex-shrink:0;}
 body.ror-ui-2026.ror-mobile-app #menu > .rorMobilePanelHeader {
   position:sticky!important;top:-8px!important;z-index:2;background:#10151c!important;
   border-bottom:1px solid #35414b;padding:3px 2px 6px!important;margin-bottom:4px;
 }
 body.ror-ui-2026.ror-mobile-app #menu .rorMobilePanelClose {touch-action:none!important;}
}

/* Closing the mobile replay panel must hide its UI without changing replay state. */
@media(max-width:900px) {
 body.ror-ui-2026.ror-mobile-app:not(.ror-mobile-replay-open) #practiceReplayControls.practiceReplayControls {display:none!important;}
}

/* Five mobile actions, no separate overflow button. Keep the toolbar reachable under the sheets. */
#rorMobileLearningSettings {display:none;}
@media(max-width:900px) {
 body.ror-ui-2026.ror-mobile-app #rorMobileBottom .rorMobileActions {grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:3px!important;}
 body.ror-ui-2026.ror-mobile-app.ror-training-brand #rorMobileBottom .rorMobileActions {grid-template-columns:repeat(3,minmax(0,1fr))!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileBottom .rorMobileActions>button {min-height:44px!important;flex-direction:column!important;font-size:10px!important;white-space:nowrap!important;}
 body.ror-ui-2026.ror-mobile-app #mobileChartControls {width:100%!important;flex:1 1 auto!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileSidebar {bottom:var(--ror-mobile-bottom-inset,64px)!important;height:auto!important;max-height:min(66dvh,calc(100% - var(--ror-mobile-bottom-inset,64px) - 18px))!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileSidebar > * {flex-shrink:0;}
 body.ror-ui-2026.ror-mobile-app #chartToolsRail {max-height:calc(100% - var(--ror-chart-topbar-height,130px) - var(--ror-mobile-bottom-inset,64px))!important;}
 body.ror-ui-2026.ror-mobile-app.ror-mobile-replay-open #practiceReplayControls:not([hidden]) {max-width:calc(100% - 16px)!important;width:min(310px,calc(100% - 16px))!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileLearningSettings {display:flex!important;align-items:center;min-height:40px!important;width:100%;padding:8px 10px!important;border:1px solid #35414b;border-radius:8px;background:#151d26;color:#e7c489;text-align:left;font-size:12px;}
}
@media(max-width:900px) and (orientation:landscape) {
 body.ror-ui-2026.ror-mobile-app #rorMobileSidebar {max-height:calc(100% - 66px - var(--ror-mobile-bottom-inset,64px))!important;}
 body.ror-ui-2026.ror-mobile-app #rorMobileBottom .rorMobileActions>button {min-height:34px!important;flex-direction:row!important;}
}

/* Mobile profile workspace: one scroll surface, compact navigation, readable cards. */
@media (max-width:900px) {
 body.ror-ui-2026 #profileOverlay {padding:0!important;align-items:stretch!important;justify-content:center!important;}
 body.ror-ui-2026 #profileModal {
   box-sizing:border-box!important;width:100%!important;max-width:100%!important;
   height:100%!important;max-height:100dvh!important;min-height:0!important;
   margin:0!important;border:0!important;border-radius:0!important;
   overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior-y:contain;
   scrollbar-gutter:auto!important;scroll-padding-top:80px;
   background:#0b1118!important;
 }
 body.ror-ui-2026 #profileModal .profileHeader {
   box-sizing:border-box;position:sticky!important;top:0!important;z-index:10;
   padding:calc(10px + env(safe-area-inset-top,0px)) 16px 10px!important;
   background:#101923!important;min-height:64px;gap:12px;
 }
 body.ror-ui-2026 #profileModal .profileHeader .authEyebrow {font-size:9px!important;letter-spacing:.14em!important;}
 body.ror-ui-2026 #profileModal .profileHeader .authTitle {font-size:24px!important;line-height:1.15!important;margin-top:3px!important;}
 body.ror-ui-2026 #profileModal .profileHeaderActions .authCloseButton {width:44px!important;height:44px!important;border-radius:12px!important;}
 body.ror-ui-2026 #profileModal .profileBody {
   display:flex!important;flex-direction:column!important;gap:14px!important;
   padding:12px 12px calc(24px + env(safe-area-inset-bottom,0px))!important;
   min-width:0;overflow:visible!important;max-height:none!important;
 }
 body.ror-ui-2026 #profileModal .profileTabs {
   display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
   position:static!important;gap:4px!important;padding:5px!important;
   border-radius:15px!important;background:#0e1720!important;margin:0!important;
 }
 body.ror-ui-2026 #profileModal .profileTab {
   box-sizing:border-box!important;min-width:0!important;min-height:65px!important;
   padding:6px 2px 10px!important;gap:5px!important;flex-direction:column!important;
   justify-content:center!important;border-radius:10px!important;white-space:normal!important;
   transform:none!important;box-shadow:none!important;
 }
 body.ror-ui-2026 #profileModal .profileTab .profileUiIcon {width:19px!important;height:19px!important;flex-shrink:0;}
 body.ror-ui-2026 #profileModal .profileTabLabel {font-size:clamp(9px,2.6vw,12px)!important;line-height:1.15!important;text-align:center;overflow-wrap:normal;}
 body.ror-ui-2026 #profileModal .profileTab.is-active {background:#30291d!important;border-color:#9f814a!important;color:#f0d394!important;}
 body.ror-ui-2026 #profileModal .profileTab.is-active::after {height:2px!important;bottom:4px!important;left:20%!important;right:20%!important;}
 body.ror-ui-2026 #profileModal .profileSocialBadge:not([hidden]) {position:absolute;top:3px;right:3px;min-width:16px!important;height:16px!important;font-size:9px!important;padding:0 3px!important;}
 body.ror-ui-2026 #profileModal .profileTabPanels {min-width:0;margin:0!important;}
 body.ror-ui-2026 #profileModal :is(.profileOptionsPanel,.rorNotepadPanel,.profileSocialPanel,.profileSoloTabPanel,.profileLessonsSection) {
   min-width:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;
 }
 body.ror-ui-2026 #profileModal .profileHero {
   grid-template-columns:48px minmax(0,1fr)!important;gap:12px!important;
   padding:15px!important;margin:0 0 14px!important;border-radius:16px!important;
   background:linear-gradient(140deg,#20251f,#141d28 70%)!important;
 }
 body.ror-ui-2026 #profileModal .profileAvatar {width:48px!important;height:48px!important;flex-basis:48px!important;border-radius:14px!important;font-size:21px!important;}
 body.ror-ui-2026 #profileModal .profileHeroText {min-width:0;}
 body.ror-ui-2026 #profileModal .profileHeroKicker {font-size:10px!important;}
 body.ror-ui-2026 #profileModal .profileHeroNameRow {gap:5px!important;margin-top:4px!important;}
 body.ror-ui-2026 #profileModal .profileHeroName {font-size:23px!important;overflow-wrap:anywhere;}
 body.ror-ui-2026 #profileModal .profileHeroEmail {font-size:12px!important;margin-top:4px!important;overflow-wrap:anywhere;}
 body.ror-ui-2026 #profileModal .profileHeroStatus {display:flex!important;justify-content:space-between!important;align-items:center!important;grid-column:1/-1!important;min-width:0!important;border-left:0!important;border-top:1px solid #38424c!important;padding:11px 0 0!important;}
 body.ror-ui-2026 #profileModal .profileHeroStatusLabel {font-size:10px!important;}
 body.ror-ui-2026 #profileModal .profileHeroStatusValue {font-size:12px!important;}
 body.ror-ui-2026 #profileModal .profileForm {gap:12px!important;}
 body.ror-ui-2026 #profileModal :is(.profileDisplayNameField,.profileEmailChangePanel,.profileInfoCard) {padding:14px!important;border-radius:14px!important;background:#121b25!important;border:1px solid #2c3948!important;box-shadow:none!important;min-width:0!important;}
 body.ror-ui-2026 #profileModal .profileDisplayNameControl {grid-template-columns:minmax(0,1fr) auto auto!important;gap:6px!important;}
 body.ror-ui-2026 #profileModal .profileDisplayNameControl input {min-width:0!important;width:100%!important;padding:0 10px!important;}
 body.ror-ui-2026 #profileModal :is(.profileFieldActionButton,.profileFieldSaveButton) {padding:0 10px!important;min-width:44px!important;}
 body.ror-ui-2026 #profileModal .profileInfoGrid {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
 body.ror-ui-2026 #profileModal .profileInfoCard {min-height:0!important;gap:7px!important;}
 body.ror-ui-2026 #profileModal :is(.profileInfoCardEmail,.profileInfoCardButton) {grid-column:1/-1!important;}
 body.ror-ui-2026 #profileModal .profileInfoLabel {font-size:10px!important;letter-spacing:.09em!important;}
 body.ror-ui-2026 #profileModal .profileInfoValue {font-size:15px!important;overflow-wrap:anywhere;}
 body.ror-ui-2026 #profileModal .profileInlineCardAction {margin-top:5px!important;min-height:44px!important;}
 body.ror-ui-2026 #profileModal .profileEmailChangePanel:not(.is-hidden) {grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;}
 body.ror-ui-2026 #profileModal .profileEmailChangeField {grid-column:1/-1;min-width:0;}
 body.ror-ui-2026 #profileModal :is(.rorNotepadHeader,.profileSocialHeader,.guidedRiskJournalHero) {
   padding:14px!important;gap:12px!important;margin:0 0 12px!important;border:1px solid #2c3948!important;
   border-radius:15px!important;background:#121b25!important;align-items:flex-start!important;
 }
 body.ror-ui-2026 #profileModal :is(.profileSectionTitle,.profilePaPracticeTitle,.guidedRiskJournalCopy strong) {font-size:21px!important;line-height:1.25!important;}
 body.ror-ui-2026 #profileModal :is(.rorNotepadHeader p,.profileSocialHeader p,.guidedRiskJournalCopy p) {font-size:13px!important;line-height:1.5!important;}
 body.ror-ui-2026 #profileModal :is(.rorNotepadFilters,.profileFriendSearch) {padding:12px!important;border:1px solid #2c3948!important;border-radius:14px!important;background:#121b25!important;min-width:0;}
 body.ror-ui-2026 #profileModal .profileFriendSearchRow {grid-template-columns:minmax(0,1fr) auto!important;gap:7px!important;}
 body.ror-ui-2026 #profileModal :is(.rorNotepadFilters input,.rorNotepadFilters select,.profileFriendSearchRow input) {min-width:0!important;width:100%!important;}
 body.ror-ui-2026 #profileModal .rorNotepadManageBar:not([hidden]) {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
 body.ror-ui-2026 #profileModal .rorNotepadSelectedCount {grid-column:1/-1;}
 body.ror-ui-2026 #profileModal .rorNotepadList {grid-template-columns:minmax(0,1fr)!important;gap:10px!important;}
 body.ror-ui-2026 #profileModal .rorNotepadCard {padding:14px!important;border-radius:14px!important;}
 body.ror-ui-2026 #profileModal .rorNotepadCard p {font-size:13px!important;}
 body.ror-ui-2026 #profileModal :is(.rorNotepadCardFooter,.profileSocialRow,.guidedRiskHistoryActions,.guidedRiskJournalTools) {flex-wrap:wrap!important;min-width:0;}
 body.ror-ui-2026 #profileModal :is(.profileSocialSection,.profilePaPracticeDropdown) {border:1px solid #2c3948!important;background:#111a24!important;border-radius:15px!important;min-width:0!important;}
 body.ror-ui-2026 #profileModal .profileSocialSection {padding:12px!important;margin-top:12px!important;}
 body.ror-ui-2026 #profileModal .profileSocialRow {padding:12px!important;border-radius:12px!important;}
 body.ror-ui-2026 #profileModal .profilePaPracticeSummary {padding:14px!important;gap:8px!important;align-items:flex-start!important;}
 body.ror-ui-2026 #profileModal .profilePaPracticeSummaryRight {max-width:100%;white-space:normal!important;text-align:left!important;}
 body.ror-ui-2026 #profileModal .profilePaPracticeBody {padding:12px!important;min-width:0!important;}
 body.ror-ui-2026 #profileModal .guidedRiskHistorySummary {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
 body.ror-ui-2026 #profileModal .guidedRiskHistorySummary>div {min-width:0!important;overflow-wrap:anywhere;}
 body.ror-ui-2026 #profileModal .guidedRiskHistoryList {min-width:0!important;}
 body.ror-ui-2026 #profileModal :is(.profileFieldActionButton,.profileFieldSaveButton,.profileInlineCardAction,.profileAnalyticsButton,#btnProfileFriendSearch,#btnProfileEmailChangeSubmit,#btnProfileEmailChangeCancel,#rorNotepadManageToggle,#rorNotepadSelectShown,#rorNotepadDeleteSelected,#rorNotepadDeleteAll,#rorNotepadManageCancel,.guidedRiskHistoryActions button,.guidedRiskJournalTools button) {min-height:44px!important;touch-action:manipulation;}
 body.ror-ui-2026 #profileModal [hidden] {display:none!important;}
 body.ror-ui-2026 :is(.analyticsModal,.traderProfileModal) {box-sizing:border-box!important;width:calc(100% - 16px)!important;max-width:calc(100% - 16px)!important;max-height:calc(100dvh - 16px)!important;overflow-x:hidden!important;overflow-y:auto!important;border-radius:18px!important;}
 body.ror-ui-2026 :is(.analyticsBody,.traderProfileBody) {padding:12px!important;min-width:0!important;}
 body.ror-ui-2026 :is(.analyticsStatsGrid,.traderProfileStats) {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
 body.ror-ui-2026 .analyticsStatCard {min-width:0!important;padding:12px!important;overflow-wrap:anywhere;}
 body.ror-ui-2026 .analyticsStatValue {font-size:20px!important;}
 body.ror-ui-2026 :is(.analyticsTopbar,.traderProfileActions) {flex-wrap:wrap!important;}
}
@media (max-width:360px) {
 body.ror-ui-2026 #profileModal .profileBody {padding-left:8px!important;padding-right:8px!important;}
 body.ror-ui-2026 #profileModal .profileDisplayNameControl {grid-template-columns:minmax(0,1fr) auto!important;}
 body.ror-ui-2026 #profileModal #btnProfileSave:not([hidden]) {grid-column:1/-1;}
}

/* Compact mobile profile: align data in consistent rows instead of wrapping cards. */
@media (max-width:900px) {
 body.ror-ui-2026 #profileOverlay #profileModal.profileModal {
   width:100%!important;max-width:100%!important;max-height:100%!important;
   height:100%!important;border-radius:0!important;border:0!important;
 }
 body.ror-ui-2026 #profileModal .profileHeader {min-height:56px!important;padding:8px 12px!important;padding-top:max(8px,env(safe-area-inset-top,0px))!important;}
 body.ror-ui-2026 #profileModal .profileHeader .authTitle {font-size:22px!important;}
 body.ror-ui-2026 #profileModal .profileBody {gap:10px!important;padding:10px 10px calc(18px + env(safe-area-inset-bottom,0px))!important;}
 body.ror-ui-2026 #profileModal .profileTabs {gap:3px!important;padding:4px!important;border-radius:12px!important;}
 body.ror-ui-2026 #profileModal .profileTab {min-height:52px!important;padding:5px 2px 8px!important;gap:3px!important;}
 body.ror-ui-2026 #profileModal .profileTab .profileUiIcon {width:17px!important;height:17px!important;}
 body.ror-ui-2026 #profileModal .profileHero {padding:11px!important;gap:9px!important;margin-bottom:10px!important;}
 body.ror-ui-2026 #profileModal .profileHeroStatus {padding-top:8px!important;}
 body.ror-ui-2026 #profileModal .profileForm {gap:9px!important;}
 body.ror-ui-2026 #profileModal :is(.profileDisplayNameField,.profileEmailChangePanel,.profileInfoCard,.rorNotepadCard,.profileSocialRow,.profileSocialSection) {padding:10px!important;gap:6px!important;border-radius:11px!important;}
 body.ror-ui-2026 #profileModal .profileInfoGrid {gap:8px!important;}
 body.ror-ui-2026 #profileModal :is(.rorNotepadHeader,.profileSocialHeader,.guidedRiskJournalHero) {padding:11px!important;gap:8px!important;margin-bottom:9px!important;border-radius:12px!important;}
 body.ror-ui-2026 #profileModal :is(.profileSectionTitle,.profilePaPracticeTitle,.guidedRiskJournalCopy strong) {font-size:18px!important;line-height:1.25!important;}
 body.ror-ui-2026 #profileModal :is(.rorNotepadHeader p,.profileSocialHeader p,.guidedRiskJournalCopy p) {margin:4px 0 0!important;font-size:12px!important;line-height:1.45!important;}
 body.ror-ui-2026 #profileModal :is(.rorNotepadFilters,.profileFriendSearch) {padding:9px!important;gap:7px!important;}
 body.ror-ui-2026 #profileModal .profileSocialSection {margin-top:9px!important;}
 body.ror-ui-2026 #profileModal :is(.profilePaPracticeDropdown,.profileSessionMonth,.profileSessionDay) {border-radius:11px!important;box-shadow:none!important;}
 body.ror-ui-2026 #profileModal :is(.profilePaPracticeSummary,.profileDropdownSummary) {display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;min-height:52px!important;padding:10px!important;gap:8px!important;}
 body.ror-ui-2026 #profileModal :is(.profilePaPracticeSummaryLeft,.profileDropdownSummaryLeft) {min-width:0!important;gap:7px!important;}
 body.ror-ui-2026 #profileModal :is(.profilePaPracticeSummaryRight,.profileDropdownSummaryRight) {min-width:0!important;max-width:44%!important;text-align:right!important;flex:0 1 auto!important;}
 body.ror-ui-2026 #profileModal .profileSummaryAccount {font-size:10px!important;line-height:1.35!important;white-space:normal!important;}
 body.ror-ui-2026 #profileModal :is(.profilePaPracticeBody,.profileDropdownBody) {padding:8px!important;}
 body.ror-ui-2026 #profileModal .guidedRiskHistorySummary {gap:6px!important;margin:0 0 8px!important;}
 body.ror-ui-2026 #profileModal .guidedRiskHistorySummary>div {padding:8px!important;min-height:0!important;border-radius:9px!important;}
 body.ror-ui-2026 #profileModal .guidedRiskHistoryList {gap:6px!important;}
 body.ror-ui-2026 #profileModal :is(.profileRecentEmpty,.profileSocialEmpty,.rorNotepadEmpty) {padding:12px!important;font-size:12px!important;}
 body.ror-ui-2026 #profileModal :is(.profileSessionMonthSummary,.profileSessionDaySummary) {min-height:44px!important;padding:8px!important;gap:6px!important;}
 body.ror-ui-2026 #profileModal :is(.profileSessionMonthBody,.profileSessionDayBody) {padding:5px!important;gap:5px!important;}
 body.ror-ui-2026 #profileModal .guidedRiskSessionHead {padding:9px!important;gap:6px!important;align-items:flex-start!important;}
 body.ror-ui-2026 #profileModal .guidedRiskSessionHead .guidedRiskHistoryTitleLine {min-width:0!important;flex-wrap:wrap!important;}
 body.ror-ui-2026 #profileModal .guidedRiskSessionPnl {white-space:nowrap!important;font-size:12px!important;}
 body.ror-ui-2026 #profileModal :is(.guidedRiskSessionFacts,.guidedRiskSessionBehavior) {padding:6px 9px!important;gap:4px!important;font-size:11px!important;}
 body.ror-ui-2026 #profileModal .guidedRiskSessionFacts span {padding:3px 5px!important;font-size:10px!important;}
 body.ror-ui-2026 #profileModal .guidedRiskHistoryActions {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;padding:7px!important;}
 body.ror-ui-2026 #profileModal .guidedRiskHistoryActions button {min-width:0!important;width:100%!important;font-size:11px!important;white-space:normal!important;}
 body.ror-ui-2026 #profileModal .guidedRiskHistorySectionHead {margin:10px 0 6px!important;gap:6px!important;}
 body.ror-ui-2026 #profileModal .rorNotepadList {gap:7px!important;}
 body.ror-ui-2026 #profileModal .rorNotepadCard p {font-size:12px!important;}
 body.ror-ui-2026 #profileModal .profileSocialList {gap:6px!important;}
 body.ror-ui-2026 #profileModal .profileSocialRow > * {min-width:0;overflow-wrap:anywhere;}
 body.ror-ui-2026 :is(.analyticsBody,.traderProfileBody) {padding:10px!important;gap:8px!important;}
 body.ror-ui-2026 .analyticsStatCard {padding:9px!important;}
 body.ror-ui-2026 .analyticsStatValue {font-size:18px!important;}
}
