/* One V6 frame for the authenticated portal, including shared business controls. */
#portal-screen.wb6-shell,
#portal-screen.wb6-shell ~ #modal {
  --wb6-ink: #17263b;
  --wb6-muted: #425570;
  --wb6-lime: #d5f476;
  --wb6-lime-hover: #e5ffa2;
  --wb6-lime-ink: #233607;
  --wb6-line: #dbe5f2;
  --wb6-soft: #f3f7fc;
  --wb6-focus: #377ac6;
}
#portal-screen.wb6-shell {
  --wb6-sidebar: 205px;
  min-height: 100vh;
  min-height: 100dvh;
  background: transparent;
  padding: 0;
}
#portal-screen.wb6-shell #sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  box-sizing: border-box;
  width: var(--wb6-sidebar);
  height: 100vh;
  height: 100dvh;
  padding: 18px 12px 14px;
  border: 0;
  border-inline-end: 1px solid var(--wb6-line);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
}
#portal-screen.wb6-shell #sidebar .brand { margin: 0 8px 18px; color: var(--wb6-ink); font-size: 18px; letter-spacing: 0; }
#portal-screen.wb6-shell #sidebar .brand small { color: #425771; font-size: 11px; white-space: normal; }
#portal-screen.wb6-shell #sidebar .nav-label { border-top: 1px solid #e1e8f2; padding: 12px 8px 0; margin: 0 0 5px; letter-spacing: 0; }
#portal-screen.wb6-shell #navigation {
  flex: 1 1 auto;
  min-height: 0;
  gap: 2px;
  padding: 3px 3px 6px;
  overflow: hidden auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c5d0df transparent;
}
#portal-screen.wb6-shell #sidebar .nav-section > summary,
#portal-screen.wb6-shell #sidebar .nav-subsection > summary { min-height: 37px; padding: 7px 8px; color: #293d59; background: transparent; }
#portal-screen.wb6-shell #navigation .nav { padding-block: 7px; color: #293d59; font-size: 12px; }
#portal-screen.wb6-shell #navigation .nav.active { color: #233607; background: var(--wb6-lime); box-shadow: none; }
#portal-screen.wb6-shell #sidebar :is(.nav, summary):not(.active):hover { background: #edf3fa; }
#portal-screen.wb6-shell #sidebar .sidebar-foot { flex: none; margin-top: 10px; }
#portal-screen.wb6-shell #workspace {
  margin-left: var(--wb6-sidebar);
  min-width: 0;
  border-radius: 0;
  background: #fff;
  color: var(--wb6-ink);
}
#portal-screen.wb6-shell .topbar { position: sticky; top: 0; z-index: 8; min-height: 53px; height: auto; padding: 5px 25px; background: #fff; border-bottom: 1px solid var(--wb6-line); }
#portal-screen.wb6-shell .top-actions { gap: 9px; min-width: 0; }
#portal-screen.wb6-shell #account-open { color: #273954; background: #e3ecf9; border-radius: 9px; padding: 8px 10px; max-width: 18ch; text-overflow: ellipsis; overflow: hidden; }
#portal-screen.wb6-shell #workspace main { max-width: none; padding: 12px 25px 20px; }
#portal-screen.wb6-shell .page-heading { flex-wrap: nowrap; align-items: center; gap: 9px; margin-bottom: 17px; }
#portal-screen.wb6-shell .page-heading > div { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
#portal-screen.wb6-shell #page-eyebrow { display: none; }
#portal-screen.wb6-shell #page-title { font-size: clamp(30px, 3.1vw, 38px); line-height: 1.18; margin: 0 0 3px; color: var(--wb6-ink); }
#portal-screen.wb6-shell #page-subtitle { display: flex; gap: 5px; align-items: center; color: var(--wb6-muted); line-height: 1.35; }
#portal-screen.wb6-shell #page-subtitle svg { width: 16px; height: 16px; }
#portal-screen.wb6-shell #refresh,
.wb6 .wb6-lime { min-height: 39px; padding: 7px 12px; border: 1px solid transparent; border-radius: 9px; background: var(--wb6-lime, #d5f476); color: #243707; font-weight: 700; cursor: pointer; }
#portal-screen.wb6-shell #refresh { flex: 0 0 auto; max-inline-size: 45%; white-space: normal; }
#portal-screen.wb6-shell #refresh:hover:not(:disabled),
.wb6 .wb6-lime:hover { background: #e5ffa2; color: #243707; }

/* Shared components style the existing route markup and native dialog. */
:is(#portal-screen.wb6-shell #view, #portal-screen.wb6-shell ~ #modal) {
  color: var(--wb6-ink);
}
:is(#portal-screen.wb6-shell #view, #portal-screen.wb6-shell ~ #modal)
  :is(.panel,.metric,.care-card,.care-hero,.care-advanced,.source-card) {
  border-color: var(--wb6-line);
  border-radius: 14px;
  background-color: #fff;
  box-shadow: 0 6px 18px -12px #243b5355;
}
:is(#portal-screen.wb6-shell #view, #portal-screen.wb6-shell ~ #modal)
  :is(.panel-head,.panel-footer,.pagination, .table-wrap :is(th,td)) { border-color: var(--wb6-line); }
:is(#portal-screen.wb6-shell #view, #portal-screen.wb6-shell ~ #modal)
  :is(.panel-head h2,.page-toolbar h2,.dialog-head h2) { color: var(--wb6-ink); }
#portal-screen.wb6-shell #view .page-toolbar { align-items: flex-start; flex-wrap: wrap; }
#portal-screen.wb6-shell #view .table-wrap { max-width: 100%; overflow-x: auto; }
:is(#portal-screen.wb6-shell #view, #portal-screen.wb6-shell ~ #modal) .table-wrap th {
  background: var(--wb6-soft);
  color: var(--wb6-muted);
}
:is(#portal-screen.wb6-shell #view, #portal-screen.wb6-shell ~ #modal)
  :is(.button.primary:not(.danger),.tab-strip button.active,.settings-nav button.active) {
  background: var(--wb6-lime);
  border-color: #c8e66b;
  color: var(--wb6-lime-ink);
}
:is(#portal-screen.wb6-shell #view, #portal-screen.wb6-shell ~ #modal)
  .button.primary:hover:not(.danger,:disabled) { background: var(--wb6-lime-hover); }
:is(#portal-screen.wb6-shell #view, #portal-screen.wb6-shell ~ #modal)
  :is(input:not([type="checkbox"],[type="radio"]),select,textarea) { border-color: #cbd9eb; }
:is(#portal-screen.wb6-shell #view, #portal-screen.wb6-shell ~ #modal)
  :is(input[type="checkbox"],input[type="radio"]) { accent-color: #3474a0; }
#portal-screen.wb6-shell:not([hidden]) ~ #modal {
  background: #fff;
  border: 1px solid var(--wb6-line);
  border-radius: 14px;
  box-shadow: 0 16px 48px #17263b26;
}
#portal-screen.wb6-shell:not([hidden]) ~ #modal::backdrop { background: #17263b65; }

.wb6 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(276px,.43fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas: 'main rail' 'tools rail' 'details details';
  gap: 16px 18px;
  color: var(--wb6-ink);
  font-size: 13px;
  line-height: 1.46;
}
.wb6 h2 { margin: 0 0 8px; font-size: 17px; line-height: 1.35; color: #17263b; }
.wb6 h3, .wb6 h4 { margin: 0; color: inherit; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.wb6 h4 { margin-top: 7px; font-size: 12px; }
.wb6 p { margin: 3px 0 0; overflow-wrap: anywhere; }
.wb6 dl, .wb6 dd { margin: 0; }
.wb6 button, .wb6 summary { font: inherit; }
.wb6 :is(button,summary):focus-visible,
#portal-screen.wb6-shell :is(button,a,summary,input,select,textarea):focus-visible,
#portal-screen.wb6-shell ~ #modal :is(button,a,summary,input,select,textarea):focus-visible {
  outline: 2px solid var(--wb6-focus, #377ac6);
  outline-offset: 2px;
}
.wb6-main { grid-area: main; min-width: 0; }
.wb6-rail { grid-area: rail; min-width: 0; display: grid; gap: 9px; align-content: start; }
.wb6-rail > h2 { margin-bottom: 0; }
.wb6-tools { grid-area: tools; min-width: 0; display: grid; grid-template-columns: minmax(0,2fr) minmax(0,.95fr); gap: 10px; align-items: start; }
.wb6-tools.wb6-no-shortcuts { grid-template-columns: 1fr; }
.wb6-summary, .wb6-entry-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.wb6-entry-grid { gap: 8px; }
.wb6-tools .wb6-composition { margin-top: 31px; }
.wb6-no-shortcuts .wb6-composition { margin-top: 0; }
.wb6-priorities { margin-top: 16px; }
.wb6-section-heading, .wb6-card-title { display: flex; gap: 5px 8px; align-items: center; flex-wrap: wrap; }
.wb6-section-heading { justify-content: space-between; margin-bottom: 8px; }
.wb6-section-heading h2 { margin: 0; }
.wb6-section-heading > span, .wb6-note { color: #435570; font-size: 12px; }
.wb6 .wb6-note { margin-top: 7px; }
.wb6-task-list { display: grid; gap: 8px; }

.wb6 .foil-card {
  --foil-radius: 15px;
  --foil-ink: #f5f8ff;
  --foil-muted: #d7e3f5;
  --foil-navy: #142344;
  --foil-depth: #192947;
  --foil-tint: #3a5289;
  --foil-edge: #829cc87a;
  --foil-spot: #99b7ef42;
  --foil-stripe: #798be21b;
  --foil-chip: #b8cff024;
  --foil-accent: #b8d6ff;
  position: relative;
  min-width: 0;
  border-radius: var(--foil-radius);
  color: var(--foil-ink);
  perspective: 1120px;
}
.wb6 .foil-plane { position: relative; display: block; min-width: 0; height: 100%; border-radius: inherit; transform-style: preserve-3d; pointer-events: none; }
.wb6 .foil-plane[data-foil-active] { transform: rotateX(var(--foil-rx, 0deg)) rotateY(var(--foil-ry, 0deg)); }
.wb6 .foil-surface { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: repeating-linear-gradient(119deg,#c3d9ff13 0 1px,transparent 1px 8px),linear-gradient(125deg,transparent 22%,var(--foil-stripe) 53%,transparent 80%),radial-gradient(ellipse at 90% 0%,var(--foil-tint),transparent 75%),linear-gradient(120deg,var(--foil-navy) 23%,var(--foil-depth)); box-shadow: 0 9px 20px -15px #102040a0; }
.wb6 .foil-surface::before, .wb6 .foil-surface::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.wb6 .foil-surface::before { background: radial-gradient(ellipse at var(--foil-light-x,65%) var(--foil-light-y,35%),var(--foil-spot),#8576e32e 35%,transparent 69%); opacity: 0; transition: opacity 150ms ease-out; }
.wb6 .foil-plane[data-foil-active] .foil-surface::before { opacity: .88; }
.wb6 .foil-surface::after { border: 1px solid var(--foil-edge); }
.wb6 .foil-copy { position: relative; height: 100%; min-width: 0; padding: 12px; }
.wb6 .foil-copy :is(button,a) { pointer-events: auto; }
.wb6 .foil-copy p, .wb6 .foil-copy small { color: var(--foil-muted); }
.wb6 .foil-card.mint { --foil-navy:#15353e; --foil-depth:#204754; --foil-tint:#346d7b; --foil-spot:#a2ddd64b; --foil-chip:#a2ddd62b; }
.wb6 .foil-card.purple { --foil-navy:#272241; --foil-depth:#292a4c; --foil-tint:#625084; --foil-spot:#c3a4fc49; --foil-chip:#c8b5f82b; }
.wb6 .sport { min-height: 146px; --foil-edge: #a5baff8c; }
.wb6 .sport.football { --foil-navy:#142453; --foil-depth:#223270; --foil-tint:#415ab3; --foil-spot:#9aa8ff80; --foil-stripe:#8798fc46; }
.wb6 .sport.basketball { --foil-navy:#321e43; --foil-depth:#43294e; --foil-tint:#754659; --foil-spot:#d2a0f069; --foil-stripe:#c98af743; --foil-edge:#f2b68e7b; --foil-accent:#ffd29e; }
.wb6 .sport .foil-copy { padding: 15px 16px; }
.wb6-sport-copy { position: relative; max-width: 56%; }
.wb6-sport-copy h3 { color: var(--foil-accent); font-size: 15px; }
.wb6-sport-value { display: flex; align-items: baseline; gap: 5px; margin-top: 5px; }
.wb6-sport-value strong { font-size: clamp(34px,4vw,48px); font-variant-numeric: tabular-nums; letter-spacing: -.04em; line-height: 1.1; }
.wb6-sport-value .wb6-unknown { font-size: 20px; letter-spacing: 0; }
.wb6-sport-value small { font-weight: 700; }
.wb6-sport-art { position: absolute; inset: 50% 2% auto auto; width: min(56%,218px); transform: translateY(-50%); }
.wb6-sport-art img { display: block; width: 100%; height: auto; }
.wb6 .foil-plane[data-foil-active] .wb6-sport-art { transform: translateY(-50%) translateZ(10px); }
.wb6-icon { display: inline-block; flex: none; vertical-align: middle; }
.wb6-glyph { display: inline-flex; flex: none; width: 33px; height: 33px; align-items: center; justify-content: center; border-radius: 9px; background: var(--foil-chip); }
.wb6-chip { display: inline-flex; max-width: 100%; align-items: center; padding: 1px 7px; border-radius: 6px; background: var(--foil-chip); color: #f1f5ff; font-size: 11px; font-weight: 650; overflow-wrap: anywhere; }
.wb6-chip.good { background: #d9f4e9; color: #155043; }
.wb6-chip.warn { background: #fff0cc; color: #59380e; }
.wb6-check .foil-copy { min-height: 77px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 5px 8px; align-items: center; }
.wb6-check .foil-copy p, .wb6-task-copy p, .wb6-signal .foil-copy p, .wb6-maintenance .foil-copy p { font-size: 12px; }
.wb6-check .foil-copy p { margin-top: 2px; }
.wb6-task .foil-copy { min-height: 85px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 6px 9px; align-items: start; }
.wb6-task-action { align-self: center; }
.wb6-task-action .button { min-height: 39px; padding: 8px 11px; border: 1px solid #bbd2fc; border-radius: 8px; background: #e6eeff; color: #204d9b; font-weight: 700; white-space: normal; text-align: left; }
.wb6-task-action .button:hover { background: #f3f7ff; color: #123a92; }
.wb6-context { display: flex; gap: 5px 12px; flex-wrap: wrap; color: var(--foil-muted); margin-top: 3px; font-size: 11px; }
.wb6-context span { overflow-wrap: anywhere; }
.wb6-maintenance .foil-copy { min-height: 145px; }
.wb6-maintenance .wb6-chip, .wb6-signal .wb6-chip, .wb6-host [data-host-state] { margin-left: auto; }
.wb6-maintenance .wb6-lime { margin-top: 10px; }
.wb6-signal .foil-copy { padding-block: 10px; }
.wb6-shortcut .foil-copy { padding: 0; }
.wb6-shortcut button { min-height: 65px; width: 100%; height: 100%; padding: 8px 10px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 7px; align-items: center; border: 0; border-radius: inherit; background: none; color: inherit; cursor: pointer; text-align: left; }
.wb6-shortcut button strong, .wb6-shortcut button small { display: block; }
.wb6-shortcut button small { margin-top: 2px; font-size: 12px; }
.wb6-shortcut .wb6-chevron { color: var(--foil-accent); font-weight: 700; }
.wb6 .wb6-composition { --foil-tint:#465984; }
.wb6-composition-data { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.wb6-donut { --football-color:#8eacff; --basketball-color:#ffb878; display: grid; place-items: center; flex: 0 0 84px; aspect-ratio: 1; border-radius: 50%; background: #53658e; }
.wb6-donut.populated { background: conic-gradient(var(--football-color) 0 var(--football-share),var(--basketball-color) var(--football-share) 100%); }
.wb6-donut > span { display: grid; place-content: center; width: 76%; height: 76%; border-radius: 50%; background: #203253; text-align: center; }
.wb6-donut strong { font-size: 21px; line-height: 1.2; }
.wb6-donut small { font-size: 10px; }
.wb6-composition dl { min-width: 90px; flex: 1; font-size: 11px; }
.wb6-composition dl > div, .wb6-tech-card dl > div { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; }
.wb6-composition dl > div + div { border-top: 1px solid #b8cff029; padding-top: 4px; margin-top: 4px; }
.wb6-composition dt { font-weight: 700; white-space: nowrap; }
.wb6-composition dt i { display: inline-block; width: 7px; height: 7px; border-radius: 3px; margin-right: 4px; background: #8eacff; }
.wb6-composition dt i.basketball { background: #ffb878; }
.wb6-composition dd small { margin-left: 4px; font-size: 10px; }
.wb6-host h3 { font-size: 15px; }
.wb6-host > .foil-plane > .foil-copy { padding: 12px; }
.wb6-host > .foil-plane > .foil-copy > p { font-size: 12px; }
.wb6-host [data-host-reading] > p { font-size: 12px; margin-top: 7px; }
.wb6-usage { display: grid; grid-template-columns: auto repeat(3,minmax(0,1fr)); gap: 0 6px; margin-top: 17px; text-align: center; }
.wb6-axis { display: flex; align-items: end; justify-content: space-between; flex-direction: column; height: 103px; line-height: 1; color: var(--foil-muted); font-size: 10px; }
.wb6-usage-item > span { display: block; font-size: 11px; margin-top: 4px; }
.wb6-track { position: relative; display: flex; justify-content: center; align-items: end; height: 103px; border-block: 1px solid #a2bbe04c; background: linear-gradient(to bottom, transparent calc(50% - .5px),#a2bbe04c calc(50% - .5px) calc(50% + .5px),transparent calc(50% + .5px)); }
.wb6-track i { position: relative; display: block; height: var(--height); min-height: 1px; width: min(60%,35px); border-radius: 5px 5px 0 0; background: #98b0ff; }
.wb6-usage-item:nth-child(3) i { background: #79d9c4; }
.wb6-usage-item:nth-child(4) i { background: #be9aff; }
.wb6-track i b { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); white-space: nowrap; color: #fff; font-size: 12px; font-style: normal; }
.wb6-no-bar { color: var(--foil-muted); }
.wb6-load { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 8px !important; border-radius: 7px; text-align: center; background: var(--foil-chip); padding: 5px 2px; font-size: 11px; }
.wb6-load dt { color: var(--foil-muted); }
.wb6-load dd { font-size: 12px; font-weight: 750; }
.wb6-host-refresh { border: 0; padding: 0 5px; margin: 2px 0 0 -5px; min-height: 38px; background: transparent; color: #d7e6ff; cursor: pointer; }
.wb6-host-refresh:hover { text-decoration: underline; }
.wb6-host-refresh:disabled { opacity: .66; cursor: wait; }
.wb6-details { grid-area: details; min-width: 0; }
.wb6-details > summary { display: block; list-style: none; cursor: pointer; }
.wb6-details > summary::-webkit-details-marker { display: none; }
.wb6-details > summary .foil-copy { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 7px 11px; }
.wb6-details > summary .wb6-glyph { width: 24px; height: 24px; background: transparent; }
.wb6-details > summary .foil-copy > .wb6-icon { margin-left: auto; }
.wb6-details[open] > summary .foil-copy > .wb6-icon { transform: rotate(180deg); }
.wb6-details-body { margin-top: 8px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.wb6-tech-stats { grid-column: 1/-1; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.wb6-tech-card dl > div + div { margin-top: 5px; }
.wb6-tech-card dl { margin-top: 5px; }
.wb6-tech-card dt { color: var(--foil-muted); }
.wb6-tech-card dd { overflow-wrap: anywhere; }
.wb6-audit { display: grid; gap: 5px; padding: 0; margin: 5px 0 0; list-style: none; }
.wb6-audit li { display: flex; justify-content: space-between; gap: 5px; flex-wrap: wrap; }
.wb6-audit small { display: block; }
.wb6-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width:1140px) {
  #portal-screen.wb6-shell { --wb6-sidebar: 180px; }
  #portal-screen.wb6-shell #sidebar { padding-inline: 8px; }
  #portal-screen.wb6-shell #workspace main { padding-inline: 16px; }
  #portal-screen.wb6-shell .topbar { padding-inline: 16px; }
  .wb6 { grid-template-columns: minmax(0,1fr) minmax(244px,.45fr); column-gap: 13px; }
  .wb6-tools { grid-template-columns: 1fr; }
  .wb6-tools .wb6-composition { margin-top: 0; order: -1; }
  .wb6-check .foil-copy { grid-template-columns: auto minmax(0,1fr); }
  .wb6-check .wb6-chip { grid-column: 2; justify-self: start; }
  .wb6-sport-copy { max-width: 61%; }
}
@media (max-width:980px) {
  .wb6 { grid-template-columns: minmax(0,1fr); grid-template-rows: auto; grid-template-areas: 'main' 'rail' 'tools' 'details'; }
  .wb6 .wb6-rail { gap: 8px; }
}
@media (max-width:850px) {
  #portal-screen.wb6-shell #sidebar { width: min(286px,86vw); padding: 14px 12px; }
  #portal-screen.wb6-shell #sidebar :is(.nav,summary), #portal-screen.wb6-shell :is(#navigation-toggle,#navigation-close,#account-open,#logout) { min-height: 44px; }
  #portal-screen.wb6-shell #sidebar #navigation-close { width: 44px; }
  #portal-screen.wb6-shell #workspace { margin-left: 0; width: 100%; }
  #portal-screen.wb6-shell #workspace .topbar { padding-inline: 13px; }
  #portal-screen.wb6-shell #workspace main { padding: 12px 13px 20px; }
  #portal-screen.wb6-shell #refresh,
  .wb6 :is(.wb6-lime,.wb6-host-refresh,.wb6-task-action .button) { min-height: 44px; }
  .wb6-details-body { grid-template-columns: minmax(0,1fr); }
  .wb6-tech-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-height:640px) {
  #portal-screen.wb6-shell #sidebar .sidebar-foot :is(small,.version) { display: none; }
}
@media (max-width:580px) {
  #portal-screen.wb6-shell #workspace .topbar { gap: 8px; }
  #portal-screen.wb6-shell #workspace .top-actions { gap: 6px; }
  #portal-screen.wb6-shell #account-open { max-width: 101px; }
  .wb6 { row-gap: 13px; }
  .wb6-summary { gap: 8px; }
  .wb6-entry-grid { gap: 7px; }
  .wb6 .sport { min-height: 130px; }
  .wb6 .sport .foil-copy { padding: 9px; }
  .wb6-sport-copy { max-width: 61%; }
  .wb6-sport-copy h3 { font-size: 13px; }
  .wb6-sport-copy p { font-size: 11px; }
  .wb6-sport-value strong { font-size: 35px; }
  .wb6-sport-value .wb6-unknown { font-size: 17px; }
  .wb6-sport-art { inset-inline-end: 0; width: 56%; }
  .wb6-check .foil-copy { padding: 8px; gap: 3px 5px; }
  .wb6-check h3 { font-size: 13px; }
  .wb6-check .foil-copy p { font-size: 11px; }
  .wb6-glyph { width: 27px; height: 27px; border-radius: 7px; }
  .wb6-icon { width: 20px; height: 20px; }
  .wb6-task .foil-copy { grid-template-columns: auto minmax(0,1fr); }
  .wb6-task-action { grid-column: 2; }
  .wb6-shortcut button { padding-inline: 7px; gap: 5px; }
  .wb6-shortcut button small { font-size: 11px; }
}
@media (prefers-reduced-motion:reduce),(hover:none),(pointer:coarse) {
  #portal-screen.wb6-shell #sidebar { transition: none; }
  .wb6 .foil-plane[data-foil-active] { transform: none; }
  .wb6 .foil-surface::before { transition: none; }
}

/* Real workbench activity, within the existing V6 cards. */
.wb6-count-button {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.wb6-count-button:hover strong { text-decoration: underline; text-underline-offset: .18em; }
.wb6 .wb6-count-change {
  align-self: center;
  border-radius: 5px;
  padding: 2px 4px;
  background: #dbf6eb;
  color: #164d42;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.wb6 .wb6-count-change[data-direction="down"] { background: #fae9ce; color: #623f16; }
.wb6 .wb6-batch-link { padding-inline: 8px; white-space: nowrap; }
.wb6-live-task { margin-top: 16px; }
.wb6-task-progress summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; cursor: pointer; min-height: 34px; }
.wb6-task-progress summary::before { content: '›'; margin-inline-end: 2px; color: #c7d9fa; }
.wb6-task-progress details[open] summary::before { transform: rotate(90deg); }
.wb6-task-progress summary strong { flex: 1; }
.wb6-live-stages { margin: 8px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,124px),1fr)); gap: 6px; }
.wb6-live-stages li { display: grid; gap: 3px; padding: 6px 8px; background: #cce0ff1a; border-radius: 7px; }
.wb6-live-stages li span { color: var(--foil-muted); font-size: 12px; }
.wb6-live-stages li[data-phase="complete"] span { color: #c1f5dc; }
.wb6-live-stages li:is([data-phase="attention"],[data-phase="failed"],[data-phase="retrying"]) span { color: #ffda9d; }

.wb6-trend { border-top: 1px solid #a4bafa56; margin-top: 10px; padding-top: 8px; }
.wb6-trend[hidden], .wb6-trend-series[hidden] { display: none; }
.wb6-trend-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.wb6-trend-tools [role="group"] { display: flex; gap: 4px; }
.wb6-trend-tools button, .wb6-trend-tools select {
  min-height: 32px;
  padding: 3px 6px;
  border: 1px solid #a4bafa70;
  border-radius: 7px;
  background: #202f54;
  color: #f1f5ff;
}
.wb6-trend-tools button { cursor: pointer; }
.wb6-trend-tools button[aria-pressed="true"] { background: #dbe9ff; border-color: #dbe9ff; color: #172d59; font-weight: 700; }
.wb6-trend-message, .wb6-trend-series output { display: block; color: #dae6fa; font-size: 12px; margin-top: 5px; }
.wb6-trend-series output { font-variant-numeric: tabular-nums; }
.wb6-trend-plot { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: stretch; gap: 6px; margin-top: 3px; }
.wb6-trend-scale { display: flex; flex-direction: column; justify-content: space-between; font-size: 10px; color: #dae6fa; padding: 4px 0; }
.wb6-trend-plot svg { display: block; width: 100%; height: 96px; }
.wb6-trend-grid, .wb6-trend-guide { fill: none; stroke: #acc2fa61; stroke-width: 1; }
.wb6-trend-guide { stroke-dasharray: 3 3; }
.wb6-trend-line { fill: none; stroke: #aaccff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.wb6-trend circle { fill: #d5f476; stroke: #17263b; stroke-width: 1; }
.wb6-trend[data-metric="memory"] .wb6-trend-line { stroke: #80e6d7; }
.wb6-trend[data-metric="load"] .wb6-trend-line { stroke: #ffd39e; }
.wb6-trend-times { display: flex; justify-content: space-between; font-size: 10px; color: #dae6fa; }
.wb6-trend-series input[type="range"] { width: 100%; min-width: 0; padding: 0; margin: 4px 0 0; accent-color: #d5f476; }
@media (max-width: 850px) {
  .wb6-trend-tools :is(button,select), .wb6-trend-series input[type="range"] { min-height: 44px; }
}
.wb6-task-progress summary, .wb6-trend :is(select,input,svg) { pointer-events: auto; }
.wb6-trend-dots { fill: none; stroke: #dbe9ff; stroke-width: 3; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .wb6 [data-wb6-count-enter] { animation: wb6-count-change-in 220ms ease-out; }
}
@keyframes wb6-count-change-in {
  from { opacity: .78; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}
