/* My Place workspace, cards, account matrix and responsive controls. */
.elementor-section.elementor-section-boxed:has(.ts-my-place) > .elementor-container { max-width:100%; }
.e-con:has(.ts-my-place) { --container-max-width:100%; }
.ts-my-place { --ts-place-tile-height:66px; font-size:16px; container-type:inline-size; max-width:none; width:100%; margin:0; padding:4px 12px; box-sizing:border-box; }
.ts-my-place h1:not(.ts-place-tile *) { margin:0 0 12px; font-size:50px; line-height:1.15; }
.ts-place-toolbar { display:flex; flex-wrap:wrap; gap:6px; align-items:end; }
.ts-place-toolbar label,.ts-place-move { display:flex; flex-direction:column; gap:3px; }
.ts-place-panels { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:start; }
.ts-place-plans { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; align-items:start; }
.ts-my-place .ts-dashboard-panel { margin:0; padding:12px; min-width:0; }
.ts-my-place h2:not(.ts-place-tile *) { margin:0 0 10px; font-size:22px; }
.ts-place-elementor-workspace.ts-my-place .elementor-widget-heading > :is(h2,h3,h4).elementor-heading-title:not(.ts-place-tile *) { font-size:22px; }
.ts-my-place:not(.ts-place-compact) p:not(.ts-place-tile *):not(.ts-place-detail *) { font-size:14px; line-height:1.4; }
.ts-place-tiles { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(var(--ts-place-card-width,var(--ts-place-tile-width,78px)),100%),var(--ts-place-card-width,var(--ts-place-tile-width,78px)))); grid-auto-rows:var(--ts-place-tile-height,54px); gap:var(--ts-place-card-gap,4px); }
.ts-place-tile { min-width:0; background:#fff; border:1px solid #d0d5dd; border-top:6px solid var(--ts-tile-color); border-radius:6px; display:flex; flex-direction:column; overflow:hidden; position:relative; }
.ts-place-tile > button,.ts-place-tile > .ts-place-tile-preview { display:flex; flex:1; min-height:0; flex-direction:column; align-items:start; gap:0; background:transparent; border:0; color:#182230; padding:0 4px 22px; text-align:left; overflow:hidden; }
.ts-place-tile strong,.ts-place-tile [data-ts-ticker-field="ticker"] { font-size:16px !important; font-weight:800; line-height:1.1 !important; white-space:nowrap; }
.ts-place-tile span,.ts-place-tile small { font-size:11px; line-height:1.3; }
/* Saved planning memberships sit in the upper-right; study movements keep the footer. */
.ts-place-memberships { position:absolute; right:2px; top:2px; display:flex; flex-direction:column; gap:1px; pointer-events:none; }
.ts-place-tile:has(.ts-place-memberships) > :is(button,.ts-place-tile-preview) { padding-right:15px; }
.ts-place-tile .ts-place-membership { display:inline-flex; align-items:center; justify-content:center; width:9px; height:10px; box-sizing:border-box; border:1px solid #475467; border-radius:2px; background:#fff; color:#182230; font-size:12px; line-height:1; font-weight:800; }
.ts-place-move { padding:4px 8px 8px; font-size:11px; }
.ts-place-move select { max-width:100%; font-size:11px; }
.ts-my-place :is(button,select,a,input,[role="button"]):focus-visible { outline:3px solid #e44b00; outline-offset:2px; }
.ts-place-accounts { margin:3px 0; padding:3px 6px; border:1px solid #d0d5dd; }
.ts-place-accounts label { display:block; margin:5px 0; font-size:14px; }
.ts-place-legend,.ts-place-warnings { font-size:14px; line-height:1.5; }
.ts-place-warnings { color:#7a2e0e; }
.ts-place-detail { width:min(680px,calc(100% - 24px)); max-height:calc(100dvh - 32px); overflow:auto; border:1px solid #d0d5dd; border-radius:8px; padding:16px; box-sizing:border-box; overscroll-behavior:contain; }
.ts-place-detail::backdrop { background:#10182880; }
.ts-place-detail dl { display:grid; grid-template-columns:1fr 1fr; gap:4px; }
.ts-place-detail dd { margin:0; }
.ts-place-plans [data-place-drop] { min-height:0; padding:10px; border:1px solid #d0d5dd; border-radius:8px; background:#fff; box-sizing:border-box; }
.ts-place-plans [data-place-drop].is-drag-over,.ts-place-plans [data-place-drop]:focus-within { border-color:#087f0a; box-shadow:inset 0 0 0 1px #087f0a; }
.ts-my-place .ts-place-plans h2 { margin:0 0 4px; font-size:18px; }
.ts-place-plans p { margin:2px 0; font-size:14px; }
.ts-place-planning-toolbar { margin:4px 0 2px; }
.ts-place-perfect-legend { display:flex; align-items:center; gap:5px; margin:2px 0; font-size:14px; line-height:1.4; }
.ts-place-perfect-swatch { display:inline-block; flex:0 0 12px; width:12px; height:14px; background:#087f0a; border:1px solid #d0d5dd; border-radius:3px; }
.ts-place-compact .ts-place-perfect-legend { display:none; }
.ts-place-planning-note { margin:2px 0 4px; font-size:14px; }
.ts-place-account-row { width:100%; min-width:0; max-width:100%; box-sizing:border-box; margin:1px 0; border:1px solid #d0d5dd; border-radius:6px; padding:2px; }
.ts-place-account-empty { margin:2px 0; font-size:14px; }
.ts-place-account-row > h3 { margin:0 0 2px; font-size:15px; line-height:1.3; margin-bottom:2px; }
.ts-place-position-columns { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
.ts-place-position-cell { border:1px solid #e4e7ec; border-radius:5px; }
.ts-place-position-cell > h4 { margin:0 0 4px; font-size:11px; line-height:1; margin-bottom:2px; }
.ts-place-opportunities { margin-top:6px !important; }
.ts-place-tile [hidden] { display:none !important; }
.ts-place-indicators { container-type:inline-size; display:flex; flex-wrap:nowrap; align-items:center; justify-content:space-between; gap:0; width:100%; min-width:0; }
.ts-place-indicators > .ts-place-regime-days { flex:0 0 auto; max-width:calc(100% - 28px); min-width:0; text-align:left; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ts-place-indicators > .ts-place-slope-pair { margin-left:auto; }
.ts-place-regime-days { font-size:14px !important; font-weight:600; font-variant-numeric:tabular-nums; }
.ts-place-slope { width:30px; height:22px; flex-shrink:0; color:currentColor; }
.ts-place-slope line,.ts-place-slope polyline { stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.ts-place-slope-pair { display:inline-flex; flex-wrap:nowrap; align-items:center; justify-content:flex-end; width:36px; min-width:28px; height:20px; flex:0 1 36px; color:inherit; }
.ts-place-slope-pair .ts-place-slope { width:24px; height:20px; min-width:0; flex-shrink:1; }
.ts-place-slope-change { font-size:12px; line-height:1; white-space:nowrap; color:inherit; }
.ts-place-tile .ts-place-slope-change { flex:0 0 auto; font-size:12px; line-height:1; }
.ts-place-slope-detail { font-size:14px; }
@container (max-width:55px) {
  .ts-place-slope-pair { width:28px; }
  .ts-place-slope-pair .ts-place-slope { width:16px; }
}
/* Elementor's two field widgets share the same flexible indicator row. */
.ts-place-tile .e-con:has(> .elementor-widget-tickerscope-ticker-field [data-ts-ticker-field="regime_days"]):has(> .elementor-widget-tickerscope-ticker-field :is([data-ts-ticker-field="sma9_slope_arrow"],[data-ts-ticker-field="ema9_slope_arrow"])) { display:flex; flex-direction:row; flex-wrap:nowrap; align-items:center; justify-content:space-between; gap:0; width:100%; min-width:0; container-type:inline-size; }
.ts-place-tile .elementor-widget-tickerscope-ticker-field:has([data-ts-ticker-field="regime_days"]) { flex:0 0 auto; max-width:calc(100% - 28px); min-width:0; width:auto; text-align:left; overflow:hidden; }
.ts-place-tile [data-ts-ticker-field="regime_days"] { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ts-place-tile .elementor-widget-tickerscope-ticker-field:has(:is([data-ts-ticker-field="sma9_slope_arrow"],[data-ts-ticker-field="ema9_slope_arrow"])) { flex:0 1 36px; min-width:28px; width:auto; margin-left:auto; text-align:right; }
.ts-place-position-compact { font-size:8px !important; line-height:1.25; white-space:nowrap; }
.ts-place-metric-dot { position:absolute; right:4px; top:4px; width:5px; height:5px; border-radius:50%; background:var(--ts-metric-color); pointer-events:none; }
.ts-place-metric-dot[data-color-metric="regime"] { display:none; }
.ts-place-detail-plan { display:grid; grid-template-columns:max-content minmax(0,1fr); align-items:center; gap:8px; margin-top:8px; }
.ts-place-detail-plan select { min-height:44px; }
.ts-my-place .ts-place-position-cell { padding:3px; }
.ts-place-toolbar label { font-size:14px; }
.ts-place-toolbar :is(button,select,input),.ts-place-accounts :is(button,select,input) { font-size:16px; }
.ts-place-toolbar :is(button,select) { padding:4px 7px; }
.ts-place-legend { margin:3px 0; font-size:14px; }
.ts-place-asof { margin:3px 0; font-size:14px; }
.ts-my-place .ts-place-account-holdings > h2 { font-size:22px; margin:3px 0; }
.ts-place-tile .elementor-element { --widgets-spacing:0px; --kit-widget-spacing:0px; margin-block-end:0; }
.ts-place-tile .e-con { --gap:0px; --row-gap:0px; --column-gap:0px; }
.ts-place-tile [data-ts-ticker-field="position_compact"] { font-size:12px; line-height:1; }
.ts-place-signals { position:absolute; bottom:0; left:0; right:0; display:flex; flex-direction:column; gap:1px; pointer-events:auto; }
.ts-place-stack-stripe { display:block; height:4px; background:#e4e7ec; }
.ts-place-stack-stripe > span { display:block; height:100%; min-width:0; max-width:100%; }
.ts-place-health-track { display:block; height:4px; background:#e4e7ec; }
.ts-place-health-track > span { display:block; height:100%; min-width:0; max-width:100%; background:#344054; }
.ts-place-stack-stripe.is-unavailable,.ts-place-health-track.is-unavailable { background:repeating-linear-gradient(90deg,#e4e7ec 0 3px,#98a2b3 3px 5px); }
.ts-place-tile.ts-place-double-100 { background:#087f0a; color:#fff; box-shadow:none; }
/* Keep the qualified surface transparent even when Elementor kit button styles load later. */
.ts-place-tile.ts-place-double-100 > :is(button,.ts-place-tile-preview) { background:transparent; color:#fff; }
.ts-place-double-100 .ts-ticker-field,.ts-place-double-100 .ts-place-regime-days,.ts-place-double-100 .ts-place-slope { color:#fff !important; }
.ts-place-tile .ts-place-indicators { height:18px; }
.ts-place-tile .ts-place-slope { height:18px; }
.ts-place-tile .elementor-widget-tickerscope-ticker-field { line-height:1; }
.ts-place-tile .elementor-widget-tickerscope-ticker-field .elementor-widget-container { line-height:1; }
.ts-place-tile [data-ts-ticker-field="ticker"] { line-height:1; }
.ts-place-tile .e-con:has(> .elementor-widget-tickerscope-ticker-field [data-ts-ticker-field="sma9_slope_arrow"]) { max-height:18px; min-height:0; }
.ts-place-tile .e-con:has(> .elementor-widget-tickerscope-ticker-field [data-ts-ticker-field="ema9_slope_arrow"]) { max-height:18px; min-height:0; }
.ts-place-tile .ts-place-position-compact,
.ts-place-tile [data-ts-ticker-field="position_compact"],
.ts-place-tile .elementor-widget-tickerscope-ticker-field:has([data-ts-ticker-field="position_compact"]) { display:none !important; }
.ts-place-aligned-grid { display:flex; flex-direction:column; gap:3px; }
.ts-place-position-row { display:grid; grid-template-columns:100px minmax(0,1fr); gap:4px; min-width:0; }
.ts-place-position-cards { min-width:0; width:100%; }
.ts-place-row-label { margin:0; font-size:14px; position:sticky; left:0; background:#fff; z-index:1; display:flex; align-items:center; line-height:1.1; }

.ts-place-top-opportunities { margin-top:4px; }
.ts-place-top-row { margin:3px 0; }
.ts-my-place .ts-place-top-row > h2 { font-size:18px; margin:3px 0; }
.ts-place-top-row > .ts-place-tiles { display:flex; gap:4px; overflow-x:auto; padding:2px 0 4px; }
.ts-place-top-row .ts-place-tile { flex:0 0 var(--ts-place-card-width,var(--ts-place-tile-width,78px)); height:var(--ts-place-tile-height,54px); box-sizing:border-box; }
.ts-my-place > [data-place-content] > .ts-place-toolbar:first-child,
.ts-my-place .ts-place-toolbar:first-child { position:sticky; top:0; z-index:20; background:#fff; padding:5px 0; border-bottom:1px solid #e4e7ec; }
body.admin-bar .ts-my-place .ts-place-toolbar:first-child { top:32px; }

@media(max-width:900px) {
  .ts-place-panels,.ts-place-plans { grid-template-columns:1fr; }
  .ts-my-place { padding:4px 10px; }
  .ts-my-place button,.ts-my-place select { min-height:44px; }
  .ts-place-move select,.ts-place-toolbar select,.ts-place-toolbar input { font-size:16px; }
  .ts-place-position-columns { grid-template-columns:1fr; }
  .ts-place-position-row { grid-template-columns:84px minmax(0,1fr); }
}

@media(prefers-reduced-motion:reduce) {
  .ts-my-place * { scroll-behavior:auto; }
}

@media(min-width:901px) {
  /* One width from the workspace container: the existing 20-card reference row. */
  .ts-my-place { --ts-place-card-width:min(var(--ts-place-tile-width,78px),calc((100cqw - 57px)/20)); --ts-place-card-gap:3px; }
  .ts-my-place .ts-place-accounts:not([open]),.ts-my-place .ts-place-legend:not([open]) { display:inline-block; vertical-align:middle; margin:1px 10px 1px 0; }
  .ts-place-toolbar label { flex-direction:row; align-items:center; gap:4px; white-space:nowrap; }
  .ts-my-place .ts-place-toolbar { gap:4px; }
  .ts-my-place .ts-place-accounts:not([open]) { border:0; padding:0; }
  .ts-place-account-row { margin:0; }
  .ts-place-top-row > .ts-place-tiles { display:grid; grid-template-columns:repeat(20,var(--ts-place-card-width,var(--ts-place-tile-width,78px))); grid-auto-rows:var(--ts-place-tile-height,54px); gap:var(--ts-place-card-gap,3px); overflow:visible; }
  .ts-place-tile > button,.ts-place-tile > .ts-place-tile-preview { padding-inline:2px; }
  .ts-place-tile strong,
 .ts-place-tile .elementor-widget-tickerscope-ticker-field,
 .ts-place-tile .elementor-widget-tickerscope-ticker-field .elementor-widget-container { font-size:11px !important; line-height:12px !important; }
  .ts-place-tile .ts-ticker-field { display:block; line-height:12px !important; }
  .ts-place-tile strong,.ts-place-tile [data-ts-ticker-field="ticker"] { font-size:14px !important; line-height:16px !important; }
  .ts-place-tile .ts-place-regime-days,
 .ts-place-tile [data-ts-ticker-field="regime_days"] { font-size:11px !important; }
  .ts-place-tile .ts-place-slope { width:22px; height:16px; }
  .ts-place-tile .ts-place-indicators { gap:0; }
}

@media(max-width:782px) {
  body.admin-bar .ts-my-place .ts-place-toolbar:first-child { top:46px; }
}

@media(max-width:600px) {
  body.admin-bar .ts-my-place .ts-place-toolbar:first-child { top:0; }
}

/* Daily shares the authoritative My Place projection, signals and detail dialog. */
.ts-daily-workspace-grid [hidden] { display:none !important; }
.ts-daily-my-place-panel { display:flex; flex-direction:column; min-width:0; }
.ts-daily-my-place-panel > h2 { margin:0; font-size:16px; }
.ts-daily-my-place-panel > a { font-size:12px; }
.ts-daily-my-place-panel > .ts-place-compact { --ts-place-card-width:var(--ts-place-tile-width,78px); overflow:auto; flex:1; min-height:0; padding:2px; }
.ts-place-compact .ts-place-toolbar,.ts-place-compact .ts-place-accounts,.ts-place-compact .ts-place-legend,
.ts-place-compact .ts-place-plans,.ts-place-compact .ts-place-top-opportunities,
.ts-place-compact [data-ts-my-place-content] > details,.ts-place-compact [data-ts-my-place-content] > p:not(.ts-place-asof) { display:none !important; }
.ts-place-compact .ts-place-account-holdings > h2 { display:none; }
.ts-place-compact .ts-place-position-row { grid-template-columns:76px minmax(0,1fr); }

/* Opt-in Elementor preview: containers own spacing; live engine owns authorized membership. */
.ts-place-sectioned { border:0; padding:0 12px; }
.ts-place-sectioned .ts-place-elementor-section > .ts-place-account-holdings > h2,
.ts-place-sectioned .ts-place-elementor-section > .ts-place-top-row:not([data-place-list-id]) > h2 { display:none; }
.ts-place-sectioned .ts-place-elementor-section .ts-place-top-row { width:100%; }
.ts-place-sectioned .ts-place-elementor-section .ts-place-top-row > .ts-place-tiles { display:grid; grid-template-columns:repeat(20,minmax(0,1fr)); gap:3px; }
.ts-place-sectioned .ts-place-elementor-section .ts-place-top-row .ts-place-tile { min-width:0; width:100%; }
@media(max-width:900px) { .ts-place-sectioned .ts-place-elementor-section .ts-place-top-row > .ts-place-tiles { grid-template-columns:repeat(auto-fit,minmax(64px,1fr)); } }

/* Study movement is separate from the SMA trajectory and leaves card geometry intact. */
.ts-place-tile .ts-place-rank-change { position:absolute; right:2px; bottom:10px; font-size:9px; line-height:11px; padding:0 2px; border-radius:2px; background:#fff; color:#182230; pointer-events:none; }
.ts-place-study-changes { margin:3px 0; font-size:14px; }
.ts-place-study-changes button { font-size:16px; margin:3px; padding:3px 6px; min-height:32px; }

/* Expanded detail styles; shared compact-card sizing is defined above. */
.ts-detail-stripe { height:12px; margin:-16px -16px 8px; border-radius:8px 8px 0 0; }
.ts-detail-heading { margin:0; display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; }
.ts-place-detail .ts-detail-heading h2 { margin:0; font-size:22px; }
.ts-detail-heading .ts-place-slope { width:30px; height:24px; }
.ts-detail-asof,.ts-detail-key,.ts-detail-session-label { margin:4px 0; font-size:12px; }
.ts-detail-chart { margin:8px 0; }
.ts-detail-chart svg { display:block; width:100%; height:auto; overflow:visible; }
.ts-detail-candle { opacity:.35; pointer-events:none; }
.ts-detail-average { pointer-events:none; }
.ts-detail-session { cursor:pointer; outline:none; }
.ts-detail-session.is-active .ts-detail-hit,.ts-detail-session:focus-visible .ts-detail-hit { fill:#66708522; }
.ts-detail-session.is-active>rect,.ts-detail-session:focus-visible>rect { stroke:#101828; stroke-width:2; }
.ts-detail-regime text { font-size:10px; fill:white; paint-order:stroke; stroke:#101828; stroke-width:.6px; pointer-events:none; }
.ts-detail-session-label { min-height:2.5em; color:#475467; }
.ts-detail-scores { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.ts-detail-score { margin:6px 0; }
.ts-detail-score>div:first-child { display:flex; justify-content:space-between; gap:8px; font-size:13px; }
.ts-detail-score-track { height:18px; background:#eaecf0; border-radius:3px; overflow:hidden; }
.ts-detail-score-track>span { display:block; height:100%; }
.ts-detail-additional { margin-top:6px; }
.ts-place-detail h3 { font-size:15px; margin:8px 0 4px; }
.ts-place-detail p:not(.ts-detail-session-label):not(.ts-detail-key):not(.ts-detail-asof) { margin:6px 0; font-size:13px; line-height:1.35; }
@media(max-width:600px) { .ts-place-detail-plan { grid-template-columns:1fr; gap:5px; } .ts-detail-scores { grid-template-columns:1fr; gap:0; } .ts-place-detail { width:calc(100% - 16px); max-height:90dvh; } .ts-detail-heading { gap:4px 8px; font-size:13px; } }

/* Narrow desktop/tablet widths wrap cards before planning and rank labels collide. */
@media(min-width:901px) and (max-width:1200px) {
  .ts-my-place:not(.ts-place-compact) { --ts-place-card-width:64px; }
  .ts-my-place:not(.ts-place-compact) .ts-place-top-row > .ts-place-tiles { grid-template-columns:repeat(auto-fit,var(--ts-place-card-width)); }
}

.ts-place-tile .elementor-widget-tickerscope-ticker-field:has(:is([data-ts-ticker-field="sma9_slope_arrow"],[data-ts-ticker-field="ema9_slope_arrow"])) .ts-place-slope-pair { width:100%; min-width:0; }

/* Keep indicator text legible independently of nested Elementor widget widths. */
.ts-place-indicators > .ts-place-regime-days,
.ts-place-tile .e-con:has(> .elementor-widget-tickerscope-ticker-field [data-ts-ticker-field="regime_days"]) [data-ts-ticker-field="regime_days"] { font-size:14px !important; }

/* The smallest supported cards retain both indicators without overlapping the label. */
@container (max-width:55px) {
  .ts-place-indicators > .ts-place-regime-days,
  .ts-place-tile [data-ts-ticker-field="regime_days"] { font-size:11px !important; }
  .ts-place-slope-pair { width:20px; min-width:20px; flex-basis:20px; }
  .ts-place-slope-pair .ts-place-slope { width:12px; }
  .ts-place-tile .ts-place-slope-change { font-size:10px; }
  .ts-place-tile .elementor-widget-tickerscope-ticker-field:has([data-ts-ticker-field="regime_days"]) { max-width:calc(100% - 20px); }
  .ts-place-tile .elementor-widget-tickerscope-ticker-field:has(:is([data-ts-ticker-field="sma9_slope_arrow"],[data-ts-ticker-field="ema9_slope_arrow"])) { min-width:20px; flex-basis:20px; }
}

@container (max-width:55px) {
  .ts-place-indicators > .ts-place-regime-days { max-width:calc(100% - 20px); }
  .ts-place-tile .e-con:has(> .elementor-widget-tickerscope-ticker-field [data-ts-ticker-field="regime_days"]) [data-ts-ticker-field="regime_days"] { font-size:11px !important; }
}

/* Two-row card layout: identity above, slope direction and change below. */
.ts-my-place,.ts-my-place:not(.ts-place-compact) { --ts-place-card-width:104px; }
.ts-my-place .ts-place-top-row > .ts-place-tiles { grid-template-columns:repeat(auto-fill,104px); }
.ts-place-tile > button,.ts-place-tile > .ts-place-tile-preview { padding:0 3px 10px; }
.ts-place-tile:has(.ts-place-memberships) > :is(button,.ts-place-tile-preview) { padding-right:14px; }
.ts-place-card-heading { display:flex; align-items:baseline; gap:4px; width:100%; min-width:0; white-space:nowrap; }
.ts-my-place .ts-place-tile .ts-place-card-heading strong,
.ts-my-place .ts-place-tile .ts-place-card-heading [data-ts-ticker-field="ticker"] { font-size:15.6px !important; font-weight:800; line-height:18px !important; min-width:0; flex:1; }
.ts-place-tile .ts-place-card-heading :is(.ts-place-regime-days,[data-ts-ticker-field="regime_days"]) { font-size:11px !important; line-height:16px !important; flex:none; max-width:none; overflow:visible; }
.ts-place-card-arrows { display:flex; align-items:center; justify-content:center; width:100%; height:30px; min-height:30px; }
.ts-place-tile .ts-place-card-arrows .ts-place-slope-pair { width:auto; min-width:0; height:30px; flex:none; gap:3px; margin:0; }
.ts-place-tile .ts-place-card-arrows .ts-place-slope { width:46px; height:30px; flex:none; }
.ts-place-tile .ts-place-card-arrows .ts-place-slope-change { font-size:23px; line-height:30px; flex:none; }
.ts-place-tile .ts-place-indicators:empty { display:none; }

.ts-place-tile .ts-place-card-heading :is(.ts-place-regime-days,[data-ts-ticker-field="regime_days"]) { margin-left:auto; text-align:right; }

.ts-place-ticker-text { display:inline-block; font:inherit !important; white-space:nowrap; transform-origin:left center; }

.ts-place-health-controls { margin:4px 0 6px; padding:4px 0; font-size:13px; }
.ts-place-health-controls[hidden],.ts-place-compact .ts-place-health-controls { display:none !important; }
.ts-place-health-controls p { margin:0 0 3px; }
.ts-place-health-controls label { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
.ts-place-health-controls input[type="range"] { width:160px; max-width:45vw; margin:0; padding:0; }
.ts-place-health-controls output { min-width:2ch; font-weight:700; font-variant-numeric:tabular-nums; }

.ts-place-threshold-adjuster { display:inline-flex; align-items:center; gap:6px; }
/* Research list manager: row preferences never target holdings or planning cards. */
.ts-my-place .ts-place-list-manager[hidden]{display:none}
.ts-my-place .ts-place-list-manager{border:1px solid #ccd6df;border-radius:6px;padding:14px;margin:12px 0;background:#fff;max-width:100%;box-sizing:border-box}
.ts-my-place .ts-place-list-add{display:flex;gap:8px;align-items:end;flex-wrap:wrap;margin-bottom:12px}
.ts-my-place .ts-place-list-add label{display:grid;gap:4px;min-width:0;max-width:100%}
.ts-my-place .ts-place-list-add select{max-width:100%;width:340px}
.ts-my-place .ts-place-list-table{max-width:100%;overflow-x:auto}
.ts-my-place .ts-place-list-table table{width:100%;border-collapse:collapse;font-size:14px}
.ts-my-place .ts-place-list-table th,.ts-my-place .ts-place-list-table td{padding:8px;text-align:left;vertical-align:top;border-bottom:1px solid #dde3e8;white-space:normal}
.ts-my-place .ts-place-list-table small{display:block;font-weight:400;margin-top:4px}
.ts-my-place .ts-place-list-actions{display:flex;flex-wrap:wrap;gap:5px;min-width:200px}
.ts-my-place .ts-place-list-actions button{padding:5px 8px;font-size:14px}
@media(max-width:600px){.ts-my-place .ts-place-list-manager{padding:8px}.ts-my-place .ts-place-list-add label{width:100%}.ts-my-place .ts-place-list-add select{width:100%}.ts-my-place .ts-place-list-table table{min-width:680px}}
.ts-my-place .ts-place-list-confirm{padding:12px;border:2px solid #a42d2d;background:#fff6f3;margin-bottom:12px}
.ts-my-place .ts-place-list-confirm button{margin:4px}

/* Each managed research ID owns its visible heading and complete card population. */
.ts-my-place .ts-place-research-list { margin:10px 0 0; padding:10px 0 4px; border-top:1px solid #d9e0e7; }
.ts-my-place .ts-place-research-heading > h2 { display:block; margin:0 0 3px; font-size:18px; line-height:1.3; overflow-wrap:anywhere; }
.ts-my-place .ts-place-research-heading > p { margin:0 0 3px; font-size:13px; line-height:1.4; }
.ts-my-place .ts-place-research-heading > small { display:block; margin:0 0 5px; font-size:12px; line-height:1.4; color:#475467; }
.ts-place-sectioned .ts-place-managed-research-container > .elementor-widget-heading,
.ts-place-sectioned .ts-place-empty-research-container { display:none; }

.ts-my-place:not(.ts-place-compact) .ts-place-toolbar select[aria-label="Holdings view"] {
  max-width:100%;
}

/* Full-page research cards use the same dimensions and wrapping as holdings. */
.ts-my-place:not(.ts-place-compact) .ts-place-top-row > .ts-place-tiles {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(min(var(--ts-place-card-width),100%),var(--ts-place-card-width)));
  gap:var(--ts-place-card-gap,4px);
  overflow:visible;
  padding:0;
}

/* Full My Place Hybrid presentation. Embedded Daily keeps its native workspace layout. */
.ts-my-place.ts-place-hybrid-layout {
  --ts-place-card-width:104px;
  --ts-place-card-gap:4px;
  font-family:TSHybridPlex,"IBM Plex Sans",sans-serif;
  color:var(--hy-text,var(--ts-text,#10213d));
  padding:12px 16px;
  border:1px solid var(--ts-border,#d5ddeb);
  border-radius:12px;
  background:var(--hy-panel,var(--ts-surface,#fff));
}
.ts-place-hybrid-layout h1:not(.ts-place-tile *) { font-size:clamp(26px,2.2vw,36px); margin:0 0 12px; }
.ts-place-hybrid-layout .ts-place-toolbar { position:static; gap:6px 10px; padding:4px 0; margin:0 0 6px; background:transparent; }
.ts-place-hybrid-layout :is(select,input,button) { max-width:100%; box-sizing:border-box; }
.ts-place-hybrid-layout .ts-place-toolbar label { min-width:0; font-size:12px; }
.ts-place-hybrid-layout .ts-place-toolbar :is(select,button,input) { font:inherit; min-height:32px; padding:4px 8px; }
.ts-my-place.ts-place-hybrid-layout .ts-place-top-row > .ts-place-tiles { grid-template-columns:repeat(auto-fill,minmax(min(var(--ts-place-card-width),100%),var(--ts-place-card-width))); gap:4px; }
.ts-place-hybrid-layout .ts-place-top-opportunities { margin-top:18px; border-top:2px solid var(--ts-border,#d5ddeb); padding-top:10px; }
.ts-place-hybrid-layout .ts-place-top-opportunities > h2 { margin:0 0 6px; font-size:21px; }
.ts-place-hybrid-layout .ts-place-research-list { margin:8px 0 0; padding:8px 0 4px; }
.ts-place-hybrid-layout .ts-place-research-heading { display:flex; align-items:center; flex-wrap:wrap; gap:4px 12px; margin-bottom:6px; }
.ts-place-hybrid-layout .ts-place-research-heading > h2 { margin:0; font-size:17px; }
.ts-place-hybrid-layout .ts-place-research-heading > :is(p,small) { flex-basis:100%; margin:0; }
.ts-place-hybrid-layout .ts-place-research-heading :is(select,button) { min-height:30px; font-size:12px; padding:3px 6px; }
.ts-place-hybrid-layout :is(.ts-place-asof,.ts-place-perfect-legend) { font-size:12px; margin:4px 0; }
@media (min-width:1920px) {
  .ts-place-hybrid-layout { --ts-place-card-width:104px; }
  .ts-my-place.ts-place-hybrid-layout .ts-place-top-row > .ts-place-tiles { grid-template-columns:repeat(20,minmax(0,1fr)); }
}
@media(max-width:600px) {
  .ts-my-place.ts-place-hybrid-layout { padding:10px 8px; }
  .ts-place-hybrid-layout .ts-place-toolbar { width:100%; }
  .ts-place-hybrid-layout .ts-place-toolbar select[aria-label="Holdings view"] { width:100%; }
  .ts-place-hybrid-layout .ts-place-research-heading { gap:4px 6px; }
}

.ts-place-hybrid-layout > label.ts-place-toolbar { width:330px; max-width:100%; }
.ts-place-hybrid-layout .ts-place-position-cards > .ts-place-tiles { display:grid; grid-template-columns:repeat(auto-fill,104px); gap:4px; }
.ts-place-hybrid-layout .ts-place-account-row { border:0; border-top:1px solid var(--hy-border,#d5ddeb); border-radius:0; padding:6px 0; }
.ts-place-hybrid-layout .ts-place-row-label { background:var(--hy-panel,#fff); color:var(--hy-text,#10213d); }
.ts-place-hybrid-layout .ts-place-research-heading > label { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
@media(min-width:1920px) { .ts-place-hybrid-layout .ts-place-position-cards > .ts-place-tiles { grid-template-columns:repeat(20,minmax(0,1fr)); } }

.ts-my-place.ts-place-hybrid-layout .ts-place-toolbar { background:transparent; position:static; }
.ts-place-hybrid-layout :is(.ts-place-research-heading > small,.ts-muted) { color:var(--hy-muted,#5d6984); }
.ts-place-hybrid-layout :is(.ts-place-list-manager,.ts-dashboard-panel,.ts-place-detail) { background:var(--hy-panel,#fff); color:var(--hy-text,#202845); border-color:var(--hy-border,#d9deeb); }
.ts-place-hybrid-layout :is(p,small) { white-space:normal; overflow-wrap:anywhere; min-width:0; max-width:100%; }
@media(max-width:600px) {
  .ts-place-hybrid-layout .ts-place-position-row { grid-template-columns:minmax(0,1fr); gap:4px; }
  .ts-place-hybrid-layout .ts-place-row-label { position:static; }
}

/* Keep Holdings and Research card widths identical, including account-label space. */
@media(min-width:1920px) {
  .ts-my-place.ts-place-hybrid-layout { --ts-place-card-width:clamp(80px,calc((100vw - 220px)/20),104px); }
  .ts-my-place.ts-place-hybrid-layout .ts-place-top-row > .ts-place-tiles,
  .ts-place-hybrid-layout .ts-place-position-cards > .ts-place-tiles { grid-template-columns:repeat(20,minmax(0,var(--ts-place-card-width))); }
}

/* Standalone My Place: Hybrid page shell and card-first presentation.
   No tile, history, sorting, or data handlers are replaced. */
body.ts-hybrid-active .ts-hybrid-place-page {
  width:100%;max-width:none;min-width:0;padding:8px 12px 24px;
  border:0;background:transparent;color:var(--hy-text);
}
body.ts-hybrid-active .ts-hybrid-place-page > h1 {
  font-size:calc(28px * var(--hy-font-scale,1));margin:0 0 10px;
}
body.ts-hybrid-active .ts-hybrid-place-page .ts-dashboard-panel,
body.ts-hybrid-active .ts-hybrid-place-page .ts-place-account-row,
body.ts-hybrid-active .ts-hybrid-place-page .ts-place-plans [data-place-drop] {
  background:var(--hy-panel);color:var(--hy-text);border-color:var(--hy-border);
}
body.ts-hybrid-active .ts-hybrid-place-page .ts-place-toolbar {
  gap:6px;align-items:center;margin:0 0 8px;
}
body.ts-hybrid-active .ts-hybrid-place-page .ts-place-top-row > .ts-place-tiles {
  /* Same card components and widths, shown as a single 20-card sortable strip. */
  display:grid;grid-template-columns:repeat(20,var(--ts-place-card-width,104px));
  grid-auto-rows:var(--ts-place-tile-height,66px);gap:var(--ts-place-card-gap,4px);
  width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;
  scrollbar-width:thin;
}
body.ts-hybrid-active .ts-hybrid-place-page :is(.ts-place-tile,.ts-place-tile > button) {
  /* Keep regime stripes and tile text legible in either appearance. */
  box-shadow:none;
}
@media (max-width:1690px) {
  body.ts-hybrid-active .ts-hybrid-place-page .ts-place-top-row > .ts-place-tiles {
    grid-template-columns:repeat(10,var(--ts-place-card-width,104px));
  }
}

/* Reconciled shell uses current responsive cards instead of forced scrolling strips. */
body.ts-hybrid-active .ts-hybrid-place-page .ts-place-top-row > .ts-place-tiles {
  grid-template-columns:repeat(auto-fill,minmax(min(var(--ts-place-card-width),100%),var(--ts-place-card-width)));
  overflow:visible;
}
@container (min-width:1760px) {
 body.ts-hybrid-active .ts-hybrid-place-page .ts-place-top-row > .ts-place-tiles,
 body.ts-hybrid-active .ts-hybrid-place-page .ts-place-position-cards > .ts-place-tiles {
   grid-template-columns:repeat(20,minmax(0,1fr));
 }
}

/* Preserve the native My Place heading: other Hybrid pages supply their own heading. */
body.ts-hybrid-active .ts-hybrid-main:has(.ts-hybrid-place-page) .elementor-widget-heading:has(h1) { display:block; }
body.ts-hybrid-active .ts-hybrid-main:has(.ts-hybrid-place-page) h1 { font:600 28px/1.2 TSHybridPlex,"IBM Plex Sans",sans-serif; color:var(--hy-text); margin:0 0 10px; }
body.ts-hybrid-active .ts-hybrid-place-page { --ts-place-tile-height:66px; }

@container (min-width:1760px) {
 body.ts-hybrid-active .ts-hybrid-place-page :is(.ts-place-top-row > .ts-place-tiles,.ts-place-position-cards > .ts-place-tiles) {
  --ts-place-card-width:clamp(72px,calc((100cqw - 180px)/20),104px);
  grid-template-columns:repeat(20,var(--ts-place-card-width));
 }
}
body.ts-hybrid-active .ts-hybrid-place-page .ts-place-tile { width:var(--ts-place-card-width); max-width:100%; }

/* Override the saved Elementor 54px card setting only inside this standalone shell. */
body.ts-hybrid-active .ts-my-place.ts-hybrid-place-page.ts-place-hybrid-layout { --ts-place-tile-height:66px; }

/* Inline-size containment on the full Elementor widget retained a stale intrinsic
   height after wrapping. Keep card-level containers; let the page size normally. */
body.ts-hybrid-active .ts-my-place.ts-hybrid-place-page.ts-place-hybrid-layout { container-type:normal; }
body.ts-hybrid-active .ts-hybrid-place-page :is(.ts-place-top-row > .ts-place-tiles,.ts-place-position-cards > .ts-place-tiles) {
 grid-template-columns:repeat(auto-fill,minmax(min(var(--ts-place-card-width),100%),var(--ts-place-card-width)));
 max-width:min(100%,calc(20 * var(--ts-place-card-width) + 19 * var(--ts-place-card-gap,4px)));
}
@media(min-width:1920px) {
 body.ts-hybrid-active .ts-my-place.ts-hybrid-place-page.ts-place-hybrid-layout { --ts-place-card-width:clamp(80px,calc((100vw - 500px)/20),104px); }
}

/* Standalone Hybrid: strengthen symbols without changing their size or card geometry. */
body.ts-hybrid-active .ts-hybrid-place-page .ts-place-tile :is(.ts-place-ticker-text,[data-ts-ticker-field="ticker"],.ts-place-card-heading strong) { font-weight:900 !important; }

/* Compact native workspace controls and account rows; cards retain Daily's renderer. */
body.ts-hybrid-active .ts-hybrid-place-page .ts-place-toolbar { gap:6px 10px; align-items:end; margin-bottom:6px; border:0; }
body.ts-hybrid-active .ts-hybrid-place-page .ts-place-view-selector { display:flex; flex-direction:column; align-items:stretch; gap:3px; width:245px; max-width:100%; margin:0; padding:0; font-size:12px; }
body.ts-hybrid-active .ts-hybrid-place-page .ts-place-asof { margin:3px 0; font-size:12px; line-height:1.45; }
body.ts-hybrid-active .ts-hybrid-place-page :is(.ts-place-accounts,.ts-place-legend) { margin-block:4px; }
body.ts-hybrid-active .ts-hybrid-place-page .ts-place-legend[open] { padding:8px; border:1px solid var(--hy-border); border-radius:8px; background:var(--hy-panel); }
body.ts-hybrid-active .ts-hybrid-place-page .ts-place-legend p { margin:5px 0; }
body.ts-hybrid-active .ts-hybrid-place-page .ts-place-position-row { grid-template-columns:minmax(0,1fr); gap:3px; position:relative; }
body.ts-hybrid-active .ts-hybrid-place-page .ts-place-position-row[data-place-kind=shares] > .ts-place-row-label { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
body.ts-hybrid-active .ts-hybrid-place-page .ts-place-account-row > h3 { font-size:14px; font-weight:600; margin:4px 0; }
body.ts-hybrid-active .ts-hybrid-place-page .ts-place-row-label { font-size:12px; margin:0; }
body.ts-hybrid-active .ts-hybrid-place-page .ts-place-account-holdings > h2 { margin:8px 0 5px; }
body.ts-hybrid-active .ts-hybrid-place-page .ts-place-planning-toolbar { margin-top:8px; }
body.ts-hybrid-active .ts-hybrid-place-page .ts-place-planning-note { font-size:12px; margin:3px 0 6px; }
body.ts-hybrid-active .ts-hybrid-place-page .ts-place-plans [data-place-drop] { padding:8px; background:var(--hy-panel); color:var(--hy-text); border:1px solid var(--hy-border); border-radius:8px; }
body.ts-hybrid-active .ts-hybrid-place-page .ts-place-plans h2 { font-size:16px; }
body.ts-hybrid-active .ts-hybrid-place-page .ts-place-top-opportunities { margin-top:12px; padding-top:8px; }

/* Fill the shared content width with readable responsive rows, including sidebar resizing. */
body.ts-hybrid-active .ts-my-place.ts-hybrid-place-page.ts-place-hybrid-layout :is(.ts-place-top-row > .ts-place-tiles,.ts-place-position-cards > .ts-place-tiles) {
 display:grid;
 grid-template-columns:repeat(var(--ts-place-hybrid-columns,10),minmax(0,1fr));
 grid-auto-rows:var(--ts-place-tile-height,66px);
 gap:var(--ts-place-card-gap,4px);
 width:100%;max-width:none;overflow:visible;
}
body.ts-hybrid-active .ts-my-place.ts-hybrid-place-page.ts-place-hybrid-layout :is(.ts-place-account-holdings,.ts-place-research-list) .ts-place-tile { width:100%;max-width:100%; }
/* Let the existing SVG shrink within its row while keeping its native viewBox and angle. */
body.ts-hybrid-active .ts-hybrid-place-page .ts-place-card-arrows .ts-place-slope-pair { max-width:100%; }
body.ts-hybrid-active .ts-hybrid-place-page .ts-place-card-arrows .ts-place-slope { flex:0 1 46px;min-width:0; }
