/* DragonClaw rooms (20261022-book-clear-1)
   Centered neutral navigation; stable compact header in tools.
   The complete logo, dates and actions stay on the portfolio overview.
   Header geometry never depends on a child frame's scroll position. */

/* ---------- 1. The strip ---------- */
.dc-rooms-strip{
  --rooms-bg:#000000; --rooms-line:#222222;
  --rooms-tab-bg:#121212; --rooms-tab-line:#2c2c2c; --rooms-tab:#c6c6c6;
  --rooms-tab-hover-bg:#1b1b1b; --rooms-tab-hover-line:#3a3a3a;
  --rooms-tab-on-bg:#2a2a2a; --rooms-tab-on-line:#4a4a4a; --rooms-tab-on:#ffffff;
  --rooms-hot:#26C281; --rooms-name:#9a9a9a;
  --rooms-accent:#e6eaf0; --rooms-accent-line:#424b58; --rooms-accent-bg:#10141a; --rooms-accent-hover:#202630;
  box-sizing:border-box;display:flex;flex-wrap:wrap;align-items:center;gap:8px;
  width:100%;min-width:0;min-height:52px;padding:9px 14px;
  background:var(--rooms-bg);border-bottom:1px solid var(--rooms-line);
  font-family:var(--dc-word-font,'Inter',system-ui,sans-serif);-webkit-font-smoothing:antialiased;
}
.dc-rooms-strip[hidden],.dc-rooms-switch[hidden]{display:none!important}
.dc-rooms-strip button{box-sizing:border-box;margin:0;cursor:pointer;font-family:inherit;white-space:nowrap;box-shadow:none}

.dc-rooms-tabs{display:flex;flex:1 1 0;min-width:0;align-items:center;gap:8px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;padding:1px}
.dc-rooms-tabs::-webkit-scrollbar{display:none;width:0;height:0}

.dc-rooms-strip .dc-rooms-tab{
  flex:0 0 auto;height:34px;padding:0 16px;
  border:1px solid var(--rooms-accent-line);border-radius:6px;
  background:var(--rooms-accent-bg);color:var(--rooms-accent);
  font:600 12.5px/1 inherit;font-family:inherit;letter-spacing:.05em;text-transform:uppercase;
}
.dc-rooms-strip .dc-rooms-tab:hover{background:var(--rooms-accent-hover);border-color:var(--rooms-accent);color:#fff}
.dc-rooms-strip .dc-rooms-tab[aria-selected="true"]{background:#252d39;border-color:#8997ab;color:#fff}
.dc-rooms-strip .dc-rooms-tab[aria-selected="true"]{box-shadow:inset 0 -2px #e6eaf0}
.dc-rooms-strip .dc-rooms-tab.dc-rooms-edit{margin-left:auto;background:transparent;border-style:dashed}

.dc-rooms-name,.dc-rooms-more{
  flex:none;height:34px;padding:0 12px;border:1px solid var(--rooms-tab-line);border-radius:6px;
  background:transparent;color:var(--rooms-name);font:700 11px/1 inherit;font-family:inherit;letter-spacing:.10em;text-transform:uppercase
}
.dc-rooms-name::after,.dc-rooms-more::after{content:"";display:inline-block;width:5px;height:5px;margin-left:9px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg)}
.dc-rooms-name:hover,.dc-rooms-name[aria-expanded="true"],.dc-rooms-more:hover,.dc-rooms-more[aria-pressed="true"]{color:#fff;background:var(--rooms-tab-hover-bg);border-color:var(--rooms-tab-hover-line)}
.dc-rooms-more[aria-pressed="true"]::after{transform:translateY(1px) rotate(-135deg)}

.dc-rooms-switch{flex:1 0 100%;display:flex;flex-wrap:wrap;gap:8px;padding:6px 0 2px}
.dc-rooms-room{height:32px;padding:0 14px;border:1px solid var(--rooms-tab-line);border-radius:6px;background:var(--rooms-tab-bg);color:var(--rooms-tab);font:700 11px/1 inherit;font-family:inherit;letter-spacing:.10em;text-transform:uppercase}
.dc-rooms-room:hover{color:#fff;background:var(--rooms-tab-hover-bg);border-color:var(--rooms-tab-hover-line)}
.dc-rooms-strip button:focus-visible{outline:2px solid var(--rooms-hot);outline-offset:-2px}

/* ---------- 2. Stable compact header outside the portfolio overview ---------- */
body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr{padding:5px 14px;gap:8px 12px;border-bottom:1px solid #262626;align-items:center}
body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr>#dcBookSource{display:none}
body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .m-logo{font-size:15px}
body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .m-logo small{display:none}
body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .company-calendar-strip,
body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .master-actions{display:none}
body.dc-rooms.dc-slim:not(.dc-header-open)>.dc-workspace-utilities{display:none!important}

/* the tape: one line per index */
body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .m-hud{flex:1 1 auto;max-width:none;display:flex;flex-wrap:wrap;gap:4px}
body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .m-hi{
  min-height:0;min-width:0;padding:4px 8px;flex-direction:row;align-items:baseline;gap:7px;
  border:1px solid #2a2a2a;border-radius:5px;background:#0d0d0d;text-decoration:none
}
body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .m-hi.market-cell.is-good{border-color:rgba(38,194,129,.45);background:#0d0d0d}
body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .m-hi.market-cell.is-bad{border-color:rgba(255,77,106,.45);background:#0d0d0d}
body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .m-reading{width:auto;margin:0;gap:6px}
body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .m-hl,
body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .m-hv,
body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .m-hc{font-size:11px}
body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .m-hi.next-er .m-hv{margin-top:0;text-shadow:none}

/* holdings and the day: one line */
body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .portfolio-pulse{
  order:0;flex:0 1 auto;min-width:0;display:flex;align-items:center;gap:0;
  border:1px solid #2a2a2a;border-radius:6px;background:#0d0d0d;box-shadow:none
}
body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .portfolio-pulse.editing{flex-wrap:wrap;flex-basis:100%}
body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .pp-metric{padding:4px 10px;gap:8px}
body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .pp-label{font-size:10px;letter-spacing:.9px}
body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .pp-value{font-size:15px}
body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .pp-sub{display:none}
body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .pp-live{margin-left:4px;padding:1px 4px;font-size:9px}
body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .pp-sep{margin:4px 0}
body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .pp-edit{margin:0 6px 0 2px;padding:4px 8px;font-size:11px}

/* ---------- 3. The desktop grid: strip gets its own row ---------- */
@media(min-width:640px){
  /* classic layout: header spans the top, rail on the left */
  body.dc-rooms.dc-rooms{grid-template-rows:auto auto minmax(0,1fr)}
  body.dc-rooms.dc-rooms>.master-nav{grid-row:2 / 4}
  body.dc-rooms.dc-rooms>.dc-rooms-strip{grid-column:2;grid-row:2;margin-right:var(--outer-gutter,0px)}
  body.dc-rooms.dc-rooms>.msec{grid-row:3}

  /* thin-rail layout (aligned dates): utilities row 2, strip row 3, workspace row 4 */
  html.dc-professional body.dc-nav-aligned-dates.dc-rooms{grid-template-rows:auto auto auto minmax(0,1fr)}
  html.dc-professional body.dc-nav-aligned-dates.dc-rooms>.master-nav{grid-row:2 / 5}
  html.dc-professional body.dc-nav-aligned-dates.dc-rooms>.dc-workspace-utilities{grid-row:2}
  html.dc-professional body.dc-nav-aligned-dates.dc-rooms>.dc-rooms-strip{grid-column:2;grid-row:3}
  html.dc-professional body.dc-nav-aligned-dates.dc-rooms>.msec{grid-row:4}
}

/* ---------- 4. Phone ---------- */
@media(max-width:639px){
  .dc-rooms-strip{gap:6px;padding:6px 8px;min-height:46px;position:sticky;top:0;z-index:5}
  .dc-rooms-strip .dc-rooms-tab{height:32px;padding:0 12px;font-size:12px}
  .dc-rooms-name,.dc-rooms-more{height:32px;padding:0 9px;font-size:10px;letter-spacing:.06em}
  .dc-rooms-more{display:none}
  body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .m-hud{gap:3px}
}

@media(prefers-reduced-motion:no-preference){.dc-rooms-strip button{transition:background-color .12s,color .12s,border-color .12s}}

/* Integration: win the older shell skin and keep a useful source qualifier. */
.dc-rooms-strip .dc-rooms-tab{height:36px;font:600 14px/1.2 Inter,Figtree,system-ui,sans-serif;letter-spacing:0;text-transform:none}
.dc-rooms-name,.dc-rooms-more,.dc-rooms-room{font-family:Inter,Figtree,system-ui,sans-serif;font-size:11px;line-height:1.2;font-weight:650}
html.dc-professional body.dc-rooms.dc-slim:not(.dc-header-open)>.master-hdr{
 position:relative!important;top:auto!important;padding:5px 14px!important;gap:4px!important;
 background:#000!important;border-bottom:0!important;overflow:visible!important
}
html.dc-professional body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .m-logo{display:none!important}
html.dc-professional body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr #dcBookSource{
 display:flex!important;position:static!important;min-height:0!important;margin:0!important;padding:3px 0!important;
 flex:0 0 100%;width:100%;border:0!important;background:#000!important;font-size:11px!important;line-height:1.3!important
}
body.dc-rooms.dc-slim:not(.dc-header-open) #dcBookSource [data-book-detail],
body.dc-rooms.dc-slim:not(.dc-header-open) #dcBookSource a{display:none!important}
html.dc-professional body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .m-hud{
 flex:1 0 100%!important;display:flex!important;flex-wrap:nowrap!important;gap:6px!important;
 max-width:100%;min-width:0;overflow-x:auto;scrollbar-width:none
}
html.dc-professional body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .m-hi{
 display:flex!important;flex:0 0 auto;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;
 min-height:30px!important;height:30px;padding:3px 8px!important;gap:8px!important;
 background:#0d0d0d!important;border:1px solid #303030!important;border-radius:5px!important;box-shadow:none!important
}
html.dc-professional body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .m-hi.next-er{display:none!important}
html.dc-professional body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .m-hi .m-hl{
 width:auto!important;padding:0!important;white-space:nowrap!important;max-width:74px;
 color:#bdbdbd!important;font:600 11px/1.2 Inter,sans-serif!important;letter-spacing:0!important
}
html.dc-professional body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .m-hi .m-reading{
 display:flex!important;flex-direction:row!important;align-items:center!important;width:auto!important;margin:0!important;gap:7px!important
}
html.dc-professional body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .m-hi .m-hv{
 min-height:0!important;padding:0!important;font:650 13px/1.2 Figtree,Inter,sans-serif!important;color:#fff!important
}
html.dc-professional body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .m-hi .m-hc{
 position:static!important;display:block!important;width:auto!important;min-height:0!important;
 max-width:130px;overflow:hidden;text-overflow:ellipsis;padding:3px 5px!important;border-radius:3px;font:650 11px/1.2 Inter,sans-serif!important
}
body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .m-hi .m-hc::before{display:none!important}
body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .m-hi .m-tape-date{display:none!important}
html.dc-professional body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .portfolio-pulse{
 flex:1 0 100%!important;display:flex!important;flex-wrap:wrap;gap:0!important;
 margin:0!important;background:#000!important;border:0!important;border-radius:0!important
}
html.dc-professional body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .pp-metric{padding:4px 10px 4px 0!important;gap:7px!important;flex-wrap:wrap!important}
html.dc-professional body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .pp-metric:nth-of-type(3){padding-left:10px!important}
html.dc-professional body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .pp-label{font:600 10px/1.2 Inter,sans-serif!important;letter-spacing:.03em!important}
html.dc-professional body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .pp-value{font:700 17px/1.2 Figtree,Inter,sans-serif!important}
html.dc-professional body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .pp-edit{margin-left:auto!important;padding:5px 8px!important;font-size:11px!important}
body.dc-rooms.dc-slim:not(.dc-header-open) .pp-editor{flex:1 0 100%;min-width:0}
body.dc-rooms>.msec>.workspace-cap{display:none!important}
@media(min-width:640px){
 html.dc-professional body.dc-rooms.dc-rooms{grid-template-rows:auto auto auto minmax(0,1fr) auto!important}
 html.dc-professional body.dc-rooms.dc-rooms>.master-hdr{grid-column:2;grid-row:1}
 html.dc-professional body.dc-rooms.dc-rooms>.master-nav{grid-row:1 / -1!important}
 html.dc-professional body.dc-rooms.dc-rooms>.dc-workspace-utilities{grid-column:2;grid-row:2}
 html.dc-professional body.dc-rooms.dc-rooms>.dc-rooms-strip{grid-column:2;grid-row:3;zoom:1!important}
 html.dc-professional body.dc-rooms.dc-rooms>.msec{grid-column:2;grid-row:4;min-height:0}
 html.dc-professional body.dc-rooms.dc-rooms>.dc-shell-footer{grid-column:2;grid-row:5;padding:5px!important;font-size:10px!important}
 body.dc-rooms>.msec.on.dc-room-frame-layout{display:flex!important;flex-direction:column;overflow:hidden!important}
 .dc-room-frame-layout>iframe[data-src]{flex:1 1 0!important;min-height:0!important;height:0!important}
 .dc-room-frame-layout>.sec-inner{flex:1 1 0!important;min-height:0!important;height:0!important;box-sizing:border-box}
}
@media(max-width:639px){
 .dc-rooms-strip{z-index:2002;gap:6px;top:var(--master-header-h,0px);padding:6px 8px}
 .dc-rooms-tabs{flex:1 0 100%;gap:8px}
 .dc-rooms-strip .dc-rooms-tab{height:44px;font-size:13px}
 .dc-rooms-name,.dc-rooms-more{height:34px;display:block}
 .dc-rooms-name{margin-left:auto!important}
 html.dc-professional body.dc-rooms.dc-slim:not(.dc-header-open)>.master-hdr{position:sticky!important;top:0!important;padding:4px 8px!important;z-index:2003}
 html.dc-professional body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .pp-metric{flex:1 1 44%;align-items:center;gap:3px 7px!important;padding:4px 0!important}
 html.dc-professional body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .pp-metric:nth-of-type(3){padding-left:7px!important}
 html.dc-professional body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .pp-label{white-space:normal!important;font-size:9px!important}
 html.dc-professional body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .pp-value{font-size:15px!important}
 body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr .pp-edit{display:none!important}
 body.dc-rooms .dc-shell-footer{padding:6px!important;font-size:10px!important}
}

/* Selected controls override the shared neutral-button skin only here. */
html.dc-professional .dc-rooms-strip .dc-rooms-tab{
 background:var(--rooms-accent-bg)!important;border-color:var(--rooms-accent-line)!important;color:var(--rooms-accent)!important
}
html.dc-professional .dc-rooms-strip .dc-rooms-tab:hover{background:var(--rooms-accent-hover)!important;border-color:var(--rooms-accent)!important;color:#fff!important}
html.dc-professional .dc-rooms-strip .dc-rooms-tab[aria-selected="true"]{background:#252d39!important;border-color:#8997ab!important;color:#fff!important}
@media(max-width:639px){
 .dc-rooms-tabs{flex:1 1 120px;min-width:100px}
 .dc-rooms-name,.dc-rooms-more{height:44px;padding:0 8px}
 .dc-rooms-name::after,.dc-rooms-more::after{margin-left:5px}
 html.dc-professional body.dc-rooms .portfolio-pulse .pp-metric{min-width:0!important;flex-wrap:wrap!important}
 html.dc-professional body.dc-rooms .portfolio-pulse .pp-label{white-space:normal!important;max-width:100%}
 html.dc-professional body.dc-rooms .portfolio-pulse .pp-live{display:inline-block}
}

/* The room is the primary navigation. Center it across the workspace and
   spread equal-sized buttons within a capped span, including wide displays. */
.dc-rooms-strip{display:grid;grid-template-columns:minmax(96px,1fr) minmax(0,940px) minmax(96px,1fr);column-gap:14px;padding:8px 14px;min-height:58px}
.dc-rooms-tabs{grid-column:2;display:flex;gap:0;width:max-content;max-width:100%;padding:1px;justify-self:center}
.dc-rooms-strip .dc-rooms-tab{height:36px;padding:0 16px;min-width:0;border-radius:6px}
.dc-rooms-strip .dc-rooms-tab.dc-rooms-edit{margin-left:0;background:var(--rooms-accent-bg);border-style:solid}
.dc-rooms-name{grid-column:3;justify-self:end;margin:0!important;height:34px}
.dc-rooms-switch{grid-column:1 / -1;justify-content:center}
.dc-rooms-strip button:focus-visible{outline:2px solid #e6eaf0;outline-offset:-3px}
@media(max-width:1199px){
 .dc-rooms-strip{grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:7px 10px}
 .dc-rooms-tabs{grid-column:1;gap:0}
 .dc-rooms-name{grid-column:2}
}
@media(max-width:639px){
 .dc-rooms-strip{min-height:58px;gap:8px;padding:5px 8px}
 .dc-rooms-tabs{min-width:0;gap:0}
 .dc-rooms-strip .dc-rooms-tab{height:44px;padding:0 14px;font-size:13px}
 .dc-rooms-name{height:44px}
}

/* ---------- v1-7: the segmented bar (owner's pick, lab option C) ----------
   One bar, joined cells, centered. The cell you're on is lit. Black and white. */
.dc-rooms-tabs{justify-content:flex-start;gap:0;padding:1px}
.dc-rooms-strip .dc-rooms-tab.dc-rooms-edit{margin-left:0;border-style:solid}
html.dc-professional .dc-rooms-strip .dc-rooms-tab{
  flex:0 0 auto;min-width:128px;justify-content:center;box-shadow:none!important;
  background:#0f0f0f!important;border:1px solid #2e2e2e!important;border-left-width:0!important;border-radius:0!important;color:#c4c4c4!important
}
html.dc-professional .dc-rooms-strip .dc-rooms-tab:first-child{border-left-width:1px!important;border-radius:6px 0 0 6px!important}
html.dc-professional .dc-rooms-strip .dc-rooms-tab:last-child{border-radius:0 6px 6px 0!important}
html.dc-professional .dc-rooms-strip .dc-rooms-tab:hover{background:#1a1a1a!important;border-color:#2e2e2e!important;color:#fff!important}
html.dc-professional .dc-rooms-strip .dc-rooms-tab[aria-selected="true"]{background:#2a2a2a!important;border-color:#2e2e2e!important;color:#fff!important}
.dc-rooms-strip .dc-rooms-tab[aria-selected="true"]::before{display:none!important}
@media(max-width:639px){.dc-rooms-tabs{justify-content:flex-start}html.dc-professional .dc-rooms-strip .dc-rooms-tab{min-width:0}}

/* Reading size stays visible; move the original controls, never clone them. */
.dc-rooms-strip{grid-template-columns:minmax(210px,1fr) minmax(0,940px) minmax(210px,1fr)}
.dc-rooms-tools{grid-column:3;justify-self:end;display:flex;align-items:center;gap:10px;min-width:0}
.dc-rooms-tools .reading-size{display:flex!important;flex:none;margin:0!important;zoom:1!important}
.dc-rooms-tools .reading-size button{height:34px;min-height:34px}
@media(max-width:1199px){
 .dc-rooms-strip{grid-template-columns:minmax(0,1fr) auto}
 .dc-rooms-tools{grid-column:2;gap:6px}
}
@media(max-width:639px){
 .dc-rooms-strip{grid-template-columns:minmax(0,1fr) auto;row-gap:5px}
 .dc-rooms-tabs{grid-column:1 / -1;grid-row:1;width:100%}
 .dc-rooms-tools{grid-column:1 / -1;grid-row:2;justify-self:end}
 .dc-rooms-tools .reading-size button{min-height:36px;height:36px}
 .dc-rooms-tools .dc-rooms-name{height:36px}
}
/* Owner phone reference: original bright bands and high-contrast dark text. */
html.dc-professional body.dragon .master-hdr .m-hi.market-cell{
 min-height:34px!important;background:#080808!important;border-color:#303030!important;box-shadow:none!important
}
html.dc-professional body.dragon .master-hdr .m-hi.market-cell .m-hc{
 background:#080808!important;color:#fff!important;font-size:12px!important;line-height:1.2!important;text-shadow:none!important
}
html.dc-professional body.dragon .master-hdr .m-hi.market-cell .m-hv{color:#fff!important}
html.dc-professional body.dragon .master-hdr .m-hi.market-cell.is-good .m-hc{background:#32D68A!important;color:#06150E!important}
html.dc-professional body.dragon .master-hdr .m-hi.market-cell.is-bad .m-hc{background:#FF536B!important;color:#1C080C!important}
/* Positions begins with the table tools. Keep source status, lose the tutorial. */
html.dc-professional body #sec-portfolio .positions-header{padding:8px 12px!important;gap:7px 16px!important;align-items:center!important}
html.dc-professional body #sec-portfolio .positions-header h1{font-size:20px!important}
html.dc-professional body #sec-portfolio .positions-header>div:first-child{flex:0 1 270px;min-width:160px}
html.dc-professional body #sec-portfolio .positions-header p:not(#positionsBookStatus){display:none!important}
html.dc-professional body #sec-portfolio #positionsBookStatus{font-size:11px!important;line-height:1.3!important;margin-top:4px!important}
html.dc-professional body #sec-portfolio .positions-header-actions{flex:1 1 600px;gap:5px!important}
html.dc-professional body #sec-portfolio .sec-inner.positions-only{padding-top:8px!important}
@media(max-width:900px){
 html.dc-professional body #sec-portfolio .positions-header>div:first-child,
 html.dc-professional body #sec-portfolio .positions-header-actions{flex:0 1 auto}
}

/* Company Page's quiet blue-charcoal behind the compact tools, not the data. */
html.dc-professional body.dc-rooms>#dcMasterHeader,
html.dc-professional body.dc-rooms.dc-slim:not(.dc-header-open)>#dcMasterHeader,
html.dc-professional body.dc-rooms>.dc-rooms-strip,
html.dc-professional body.dc-rooms>.dc-workspace-utilities{background:#101319!important}
html.dc-professional body.dc-rooms.dc-slim:not(.dc-header-open) .master-hdr #dcBookSource,
html.dc-professional body.dc-rooms.dc-slim:not(.dc-header-open) #dcMasterHeader .portfolio-pulse{background:transparent!important}
/* Portfolio: compact cards with the original full-width directional band. */
html.dc-professional body.dc-rooms:not(.dc-slim) .master-hdr .m-hi.market-cell{min-height:58px!important;padding:0!important;justify-content:center!important;gap:3px!important}
html.dc-professional body.dc-rooms:not(.dc-slim) .master-hdr .m-hi.market-cell .m-hl{padding:4px 7px 0!important;font:600 11px/1.2 Inter,sans-serif!important}
html.dc-professional body.dc-rooms:not(.dc-slim) .master-hdr .m-hi.market-cell .m-reading{display:grid!important;grid-template-columns:1fr!important;align-items:stretch!important;gap:0!important;margin:0!important;width:100%!important}
html.dc-professional body.dc-rooms:not(.dc-slim) .master-hdr .m-hi.market-cell .m-hv{padding:0 7px 4px!important;min-height:0!important;font:650 13px/1.2 Figtree,Inter,sans-serif!important}
html.dc-professional body.dc-rooms:not(.dc-slim) .master-hdr .m-hi.market-cell .m-hc{position:relative!important;padding:3px 7px 3px 20px!important;min-height:20px!important;width:100%!important;font:750 12px/1.2 Inter,sans-serif!important;overflow:hidden;text-overflow:ellipsis;display:flex!important}
html.dc-professional body.dc-rooms:not(.dc-slim) .master-hdr .m-hi.market-cell .m-hc::before{display:block!important}

/* GRID uses its entire shell cell; the reading toolbar is above it. */
body.dc-rooms.dc-rooms>#sec-realdeal{margin:0!important;max-width:none!important}
