/* Daily tool chrome is deliberately scoped away from standalone dashboards and legacy MU styling. */
.ts-daily-tool-workspace { --ts-workspace-border:#d6deea; display:grid; gap:8px; width:100%; min-width:0; color:#062a40; }
.ts-daily-toolbox { position:sticky; top:0; z-index:20; min-width:0; display:flex; flex-wrap:nowrap; align-items:center; gap:5px; padding:5px; background:#fff; border:1px solid var(--ts-workspace-border); border-radius:8px; }
body.admin-bar .ts-daily-toolbox { top:32px; }
.ts-daily-tool-strip { display:flex; gap:5px; min-width:0; overflow-x:auto; scrollbar-width:thin; }
.ts-daily-tool { flex-shrink:0; display:flex; align-items:center; gap:3px; padding:0; border:1px solid var(--ts-workspace-border); border-radius:6px; }
.ts-daily-tool.is-assigned { background:#edf7f1; border-color:#358557; }
.ts-daily-tool button { display:flex; align-items:center; gap:7px; text-align:left; }
.ts-daily-tool img { width:18px; height:18px; }
.ts-daily-tool small { font-size:12px; }
.ts-daily-toolbox :is(button,select), .ts-daily-layout-actions button, .ts-daily-quadrant > header :is(button,select), .ts-daily-empty-slot button { font:inherit; font-size:13px; min-height:34px; padding:5px 8px; border:1px solid #8796a8; border-radius:5px; color:#062a40; background:#fff; width:auto; }
.ts-daily-toolbox button:hover, .ts-daily-layout-actions button:hover, .ts-daily-quadrant > header button:hover, .ts-daily-empty-slot button:hover { background:#f0f5fa; }
.ts-daily-tool-workspace :is(button,select):focus-visible { outline:3px solid #ed7800; outline-offset:2px; }
/* Theme button effects can paint across the 3px gap to the slot number.
   Suppress those effects here and keep the keyboard focus ring inside the button. */
.ts-daily-toolbox .ts-daily-tool-strip > .ts-daily-tool > button,
.ts-daily-toolbox .ts-daily-tool-strip > .ts-daily-tool > button:is(:hover,:focus,:active) {
  box-shadow:none !important;
  filter:none !important;
}
.ts-daily-toolbox .ts-daily-tool-strip > .ts-daily-tool > button:focus-visible { outline-offset:-3px; }
.ts-daily-tool-workspace [data-workspace-drag] { cursor:grab; touch-action:none; user-select:none; }
.ts-daily-layout-actions { display:grid; gap:6px; }
.ts-daily-layout-status { font-size:11px; margin:0; flex:1 1 100px; min-width:0; max-width:210px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.ts-daily-layout-status.is-error { color:#b42318; }
.ts-daily-quadrants { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; min-width:0; height:var(--ts-daily-grid-height,calc(100dvh - 200px)); min-height:0; align-items:stretch; grid-template-rows:repeat(2,minmax(0,1fr)); }
.ts-daily-quadrant { display:flex; flex-direction:column; min-width:0; height:100%; min-height:0; box-sizing:border-box; border:1px solid var(--ts-workspace-border); border-radius:8px; background:#fff; padding:8px; }
.ts-daily-quadrant > header { display:flex; flex-wrap:wrap; align-items:center; gap:5px; flex-shrink:0; padding-bottom:7px; border-bottom:1px solid var(--ts-workspace-border); }
.ts-daily-quadrant > header h2 { flex:1 1 100px; font-size:15px; margin:0; }
.ts-daily-tool-content { min-height:0; min-width:0; overflow:auto; flex:1; padding-top:6px; }
.ts-daily-tool-content > .ts-daily { border:0; padding:0; margin:0; }
.ts-daily-tool-content .ts-dashboard-panel { margin:0; padding:6px; box-shadow:none; }
.ts-daily-tool-content .ts-daily-market-grid { gap:5px; }
.ts-daily-tool-content .ts-daily-market-card { padding:6px; }
.ts-daily-tool-content .ts-daily-market-card h3 { font-size:19px; }
.ts-daily-tool-content .ts-daily-market-card dl { font-size:12px; }
.ts-daily-tool-content .ts-table-wrap { max-width:100%; overflow:auto; }
.ts-daily-empty-slot { display:grid; place-content:center; gap:8px; flex:1; text-align:center; padding:16px; }
.ts-daily-empty-slot p { font-size:13px; }
.ts-daily-quadrant.is-drag-over { outline:3px solid #ed7800; outline-offset:-3px; background:#fff5e8; }
.ts-daily-expanded { width:calc(100vw - 30px); max-width:none; height:calc(100dvh - 30px); max-height:none; padding:0; border:1px solid #8796a8; border-radius:8px; }
.ts-daily-expanded::backdrop { background:#062a4080; }
.ts-daily-expanded .ts-daily-quadrant { width:100%; height:100%; box-sizing:border-box; border:0; }
.ts-daily-expanded .ts-place-toolbar { top:0 !important; }
.ts-daily-tool-content .ts-place-compact { overflow:visible; padding:2px; }
.ts-daily-tool-content .ts-place-compact .ts-place-aligned-grid { grid-template-columns:76px repeat(var(--ts-place-symbol-count),78px); }
.ts-daily-tool-content [data-ts-daily-destination] { font-size:13px; }
@media(max-width:1100px) { .ts-daily-toolbox { position:static; } .ts-daily-quadrant > header select { max-width:120px; } }
@media(max-width:760px) { .ts-daily-quadrants { grid-template-columns:1fr; grid-template-rows:none; height:auto; } .ts-daily-quadrant { height:320px; } .ts-daily-toolbox { gap:4px; } .ts-daily-expanded { width:100vw; height:100dvh; max-height:none; margin:0; border-radius:0; } .ts-daily-expanded .ts-daily-quadrant { height:100%; max-height:none; } .ts-daily-toolbox :is(button,select), .ts-daily-layout-actions button, .ts-daily-quadrant > header :is(button,select), .ts-daily-empty-slot button { min-height:40px; } }
@media(prefers-reduced-motion:reduce) { .ts-daily-tool-workspace * { scroll-behavior:auto !important; transition:none !important; } }

.ts-daily-tool-workspace [hidden] { display:none !important; }
.ts-daily-quadrant > header > a { font-size:13px; padding:5px; }
.ts-daily-tool-content .ts-daily-rotations-heading { display:none; }

.ts-daily-layout-menu, .ts-daily-slot-menu { position:relative; }
.ts-daily-tool-workspace summary { cursor:pointer; font-size:13px; padding:6px; }
.ts-daily-layout-menu[open] > .ts-daily-layout-actions,
.ts-daily-slot-menu[open] > :not(summary) { position:relative; z-index:25; background:#fff; }
.ts-daily-layout-menu > .ts-daily-layout-actions { position:absolute !important; right:0; min-width:210px; padding:8px; border:1px solid #8796a8; box-shadow:0 4px 12px #062a4020; }
.ts-daily-slot-menu[open] { background:#fff; border:1px solid #8796a8; }
.ts-daily-slot-menu > select { max-width:135px; }
.ts-daily-toolbox > a { font-size:12px; white-space:nowrap; }
.ts-daily-tool small:empty { display:none; }
.ts-daily-tool small { padding-right:4px; }
.ts-daily-summary p { margin:4px 0; font-size:12px; }
.ts-daily-summary-list { padding:0; margin:0; list-style:none; }
.ts-daily-summary-list li { display:flex; justify-content:space-between; flex-wrap:wrap; gap:3px 10px; padding:5px 0; border-bottom:1px solid #e9edf2; font-size:13px; }
.ts-daily-summary-list li span { text-align:right; }
.ts-daily-quadrant:not(.is-expanded) [data-ts-daily-destination],
.ts-daily-quadrant:not(.is-expanded) [data-ts-league-enrollment] { display:none; }
.ts-place-daily-summary { display:none; }
.ts-place-compact .ts-place-daily-summary { display:block; }
.ts-place-compact .ts-place-daily-summary h3 { margin:4px 0 0; font-size:13px; }
.ts-place-compact .ts-place-daily-summary p { margin:2px 0; font-size:11px; }
.ts-place-compact .ts-place-account-holdings { display:none; }
.ts-place-summary-cards { display:block; width:100%; }
.ts-place-summary-cards .ts-place-tiles { width:100%; }
.ts-place-summary-cards .ts-place-tile[hidden] { display:none; }
.ts-place-daily-summary > section { min-width:0; }
.ts-place-compact .ts-place-daily-summary h3,.ts-place-compact .ts-place-daily-summary p { line-height:1.2; }
.ts-place-daily-summary h3 small { font-size:11px; font-weight:400; }
.ts-place-daily-summary h3,.ts-place-daily-summary p { overflow-wrap:anywhere; }
@media(max-width:1100px) {
 .ts-daily-tool-strip { flex:1 1 0; }
 .ts-daily-layout-status:not(.is-error) { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); }
 .ts-daily-layout-status.is-error { white-space:normal; max-width:none; }
}
@media(max-width:760px) { .ts-daily-toolbox > a { font-size:0; } .ts-daily-toolbox > a::after { content:'ETF ↓'; font-size:12px; } }

.ts-daily-layout-menu, .ts-daily-toolbox > a { flex:0 0 auto; }

/* Hide only emptied shortcode sources, keeping ETF in its original normal-flow widget. */
.elementor-widget-shortcode.ts-daily-empty-source-widget { display:none !important; }
.ts-daily-workspace-section-stack { row-gap:8px !important; }

/* Portfolio Health & Changes uses the same compact summary in either view. */
.ts-daily-quadrant:has([data-workspace-tool="changes"]) > header h2 { font-size:18px; line-height:1.2; }
.ts-daily-tool-content[data-workspace-tool="changes"] { container-type:inline-size; container-name:health-slot; }
.ts-daily-tool-content[data-workspace-tool="changes"] [data-ts-daily-content] > p:has(time) { font-size:.75rem; margin:0 0 .25rem; }
.ts-health-cockpit { color:#062a40; display:grid; gap:.35rem; min-width:0; }
.ts-health-cockpit .ts-health-dates { display:flex; flex-wrap:wrap; gap:.15rem .55rem; color:#475467; font-size:.75rem; line-height:1.3; }
.ts-health-cockpit h3 { margin:0 0 .25rem; font-size:1rem; line-height:1.2; font-weight:700; }
.ts-health-cockpit .ts-health-changes,
.ts-health-cockpit .ts-health-moves { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.25rem; align-items:start; }
.ts-health-cockpit .ts-health-moves { grid-template-columns:repeat(3,minmax(0,1fr)); }
.ts-health-cockpit .ts-health-change-group { min-width:0; }
.ts-health-cockpit .ts-health-count { display:flex; width:fit-content; max-width:100%; align-items:baseline; gap:.3rem; padding:.15rem .45rem; border-radius:999px; background:#f0f5fa; color:#062a40; font-size:.72rem; line-height:1.22; box-sizing:border-box; }
.ts-health-cockpit .ts-health-count span { overflow-wrap:anywhere; }
.ts-health-cockpit .ts-health-count strong { white-space:nowrap; font-variant-numeric:tabular-nums; }
.ts-health-cockpit .ts-health-change-group ul { display:flex; flex-wrap:wrap; gap:.18rem; list-style:none; margin:.2rem 0 0; padding:0; }
.ts-health-cockpit .ts-health-change-group .ts-ticker-pill { min-width:0; max-width:100%; padding:.12rem .35rem; border-radius:999px; font-size:.72rem; font-weight:500; line-height:1.3; white-space:normal; overflow-wrap:anywhere; box-sizing:border-box; }
.ts-health-cockpit .ts-ticker-pill { background:#667085; color:#fff; }
.ts-health-cockpit .ts-health-state,
.ts-health-cockpit .ts-health-summary { font-size:.75rem; line-height:1.25; margin:0; color:#475467; }
.ts-health-cockpit .ts-health-state { margin:0 0 .2rem; }
.ts-daily-tool-content[data-workspace-tool="changes"] .ts-health-detail { margin-top:.5rem; font-size:14px; }
.ts-daily-tool-content[data-workspace-tool="changes"] .ts-feedback.is-error { background:#fff5e8; color:#842b16; border-color:#a94f16; font-size:14px; line-height:1.3; padding:6px 8px; margin:6px 0 0; }
@container health-slot (max-width:390px) {
 .ts-health-cockpit .ts-health-changes,
 .ts-health-cockpit .ts-health-moves { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:760px) {
 .ts-daily-quadrant:has([data-workspace-tool="changes"]) > header h2 { flex-basis:100%; }
}
