:root {
  --header-height: 64px;
  --action-blue: #075fbd;
  --primary-button-bg: linear-gradient(#2287f0, #086cda);
  --panel-radius: 17px;
  --line: #e4ebf6;
  --card-shadow: 0 4px 13px #1646850c;
}
body { background: radial-gradient(ellipse at 49% 0%, #d6e8fc, transparent 68%), #e8f1fd; }
header { padding-inline: clamp(12px, 2vw, 32px); color: #fff; background: linear-gradient(110deg, #16448f, #0a3b7e 55%, #164681); border-color: #ffffff38; }
.brand { color: inherit; }
header .dept:hover { background: #ffffff24; }
header .dept { background: #ffffff12; border-color: #ffffff44; }
header .chevron-down, header .pin { filter: brightness(0) invert(1); }
header .avatar { width: 30px; height: 30px; filter: hue-rotate(190deg); }
button:focus-visible { outline-color: #1481ef; }
.red, .current { background: var(--primary-button-bg); }
nav button:not(.current):hover { background: #e9f3ff; }
.header-nav { display: flex; align-items: center; gap: clamp(8px, 1.4vw, 24px); margin-inline: auto; }
.header-nav summary { display: block; list-style: none; white-space: nowrap; padding: 9px 13px; border-radius: 9px; cursor: pointer; font-weight: 400; }
.header-nav summary::-webkit-details-marker { display: none; }
.header-nav summary::after { content: ''; display: inline-block; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-3px) rotate(45deg); margin-left: 10px; }
.header-nav summary:hover, .header-nav details[open] > summary { background: #ffffff24; }
.header-nav details:has([aria-current="page"]) > summary { background: var(--primary-button-bg); font-weight: 700; }
.header-nav details { position: relative; }
.header-links { position: absolute; inset: calc(100% + 8px) auto auto 0; min-width: 166px; background: white; color: #163453; padding: 6px; border-radius: 9px; box-shadow: 0 6px 24px #123b6b30; }
.header-links button { width: 100%; padding: 8px; text-align: left; white-space: nowrap; }
.header-links button:hover { background: #eaf4ff; }
.tools { margin-left: 0; }
main { padding: 0px 20px 20px;}
.hero { margin-bottom: clamp(14px, 1.2vw, 24px); aspect-ratio: 9.8; height: 140px; box-shadow: 0 5px 16px #16468526; background: linear-gradient(115deg,#a5d2fe,#d2e8ff 52%,#8cbef0); }
.hero > img { object-position: center; }
.hero-copy{transform: translateY(0px);}
/* .hero-copy { transform: none; padding-left: clamp(54px, 9.7cqi, 215px); } */
/* .hero-copy::before { content: ''; position: absolute; inset: 50% auto auto 0; width: clamp(45px, 8cqi, 140px); aspect-ratio: 1; transform: translateY(-50%) rotate(9deg); background: url(assets/tile-report-count.svg) center/contain no-repeat; filter: drop-shadow(0 6px 10px #397fc349); } */
.hero h1 { color: #0c2955; font-size: clamp(21px, 2.25cqi, 45px); }
.hero p { color: #1c3b60; font-size: clamp(13px, 1.45cqi, 28px); }
.hero button { font-size:16px; background: #ffffffd9; color: #104580; border: 1px solid #b6d7fb; }

.dashboard-grid .panel { background: linear-gradient(145deg,#ffffffdf,#f8fbffef); border-color: #f0f5fd; }
.dashboard-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.dashboard-grid > :is(.top, .bottom) { display: grid; gap: 16px; min-width: 0; }
.dashboard-grid > .top { grid-template-columns: minmax(0, 65fr) minmax(0, 34fr); }
.top > .panel { display: grid; grid-template-rows: auto 1fr; }
.dashboard-grid > .bottom { grid-template-columns: minmax(0, 69fr) minmax(0, 30fr); }
.dashboard-grid .panel { padding: 16px; }
.dashboard-grid > .bottom > .panel { padding-top: 8px; }
.heading { height: auto; padding: 0; gap: 10px; }
.heading h2, .toolbar h2 { font-size: 20px; }
.heading .mark img { filter: hue-rotate(200deg) saturate(.95); }
.stats, .quick { gap: 16px; margin-top: 16px; }
.stat { border-color: #dce9f8; background: #f0f6ff; }
.stat-top { min-height: 90px; height: auto; padding: 9px 12px; background: linear-gradient(125deg,#eff6ff,#d9eafa); }
.stat:nth-child(2) .stat-top { background: linear-gradient(125deg,#edf8f7,#d9f0ef); }
.stat:nth-child(3) .stat-top { background: linear-gradient(125deg,#f1f2ff,#e1e5fb); }

.stat-top b, .shortcut b { font-size: clamp(14px, 1.22vw, 23px); }
.stat strong { font-size: clamp(21px, 1.8vw, 44px); }
.tile, .shortcut .tile { width: clamp(37px, 3.75vw, 73px); height: auto; }
.shortcut { border-radius: 12px; border-color: #d1e6fc; background: linear-gradient(135deg,#e9f3ff,#d3e7fc); justify-content: flex-start; padding-inline: 16px; gap: 12px; min-height: clamp(71px, 5.7vw, 110px); }
.shortcut:hover { background: #c9e3ff; }
.shortcut small { font-size: 12px; }
.metrics { padding: 7px 12px; line-height: 26px; }
.metrics div { border-bottom: 1px solid #e4edf9; }
.metrics div:last-child { border-bottom: 0; }
.metrics dd { white-space: nowrap; }
.toolbar { min-height: 39px; height: auto;  margin-bottom: 6px; }
.toolbar h2 { display: flex; align-items: center; gap: 6px; color: #16181b; padding: 4px 0; }
.toolbar h2 em { color: var(--action-blue); }
.toolbar [data-filter] {
  min-height: 28px;
  padding-inline: 11px;
  border: 1px solid #d7e3f3;
  border-radius: 5px;
  background: linear-gradient(#fbfdff, #eef4fc);
  color: #16181b;
}
.toolbar [data-filter][aria-pressed="false"]:hover {
  border-color: #aacbf0;
  background: #e4efff;
}
.toolbar [data-filter][aria-pressed="true"] {
  border-color: #1167c3;
  background: var(--primary-button-bg);
  color: #fff;
}
.task-table th { background: #edf2fe; height: 39px; }
.task-table td { height: clamp(38px, 2.9vw, 60px); background: #fff; }
.task-table tbody tr:hover td:not(.empty) { background: #e7f1fe; }
.news-head { min-height: 39px; }
.news-list button { height: clamp(35px, 2.8vw, 55px); }
.speaker { background: #167be6; }
.speaker img { filter: brightness(0) invert(1); width: 20px; height: 20px; }
@media (max-width: 1200px) {
  .tools { margin-left: auto; }
}
@media (max-width: 960px) {
  .dashboard-grid > :is(.top, .bottom) { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 540px) {
  .brand { font-size: 16px; }
  .hero-content { grid-template-columns: 1fr; gap: 8px; }
  .hero button { justify-self: start; margin-left: 54px; }
  .stats { grid-template-columns: 1fr; }
  .stat-top { min-height: 56px; }
  .task-table th, .task-table td { font-size: 13px; }
}
@media (min-width: 1600px) {
  .toolbar { flex-wrap: wrap; }
  .toolbar #filters { display: flex; flex-wrap: wrap; gap: 4px; }
}
.hero > img { object-position: right 65%; }
@media (max-width: 540px) {
  .hero > img { object-position: 57% center; opacity: .55; }
}

/* Text controls on light surfaces use blue, with white on solid blue buttons. */
:is(main, dialog) button:not(.red, .current),
.run-tree-row button,
.run-tree-row .run-branch {
  color: var(--action-blue);
}
:is(main, dialog) button:not(.red, .current):hover {
  color: #034b99;
}
.shortcut small { color: var(--muted); }
main button:is(.news-tab, [data-filter], .monitor-tabs .pill, [data-run-status])[aria-pressed="false"] {
  color: #16181b;
}

body {
  height: 100dvh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}
header {
  position: relative;
  display: flex;
  height: auto;
  min-height: var(--header-height);
}
.layout { position: relative; min-width: 0; }
.breadcrumb {
  height: 40px;
  padding-inline: clamp(12px, 2vw, 36px);
  gap: 8px;
}
.breadcrumb button { color: var(--action-blue); }
.header-links button {
  display: flex;
  color: #16181b;
}
.header-links button.current {
  color: #fff;
  background: var(--primary-button-bg);
}
.nav-submenu-label {
  display: block;
  padding: 8px;
  color: var(--muted);
  white-space: nowrap;
}
@media (max-width: 860px) {
  header { column-gap: 8px; }
  .header-nav {
    order: 1;
    flex: 1 0 100%;
    margin-inline: 0;
    gap: 2px;
  }
  .header-nav summary { padding: 8px clamp(4px, 1.5vw, 13px); font-size: 13px; }
  .header-nav summary::after { margin-left: 5px; }
  .header-nav details:last-child .header-links { inset-inline: auto 0; }
}
header { padding-block: 6px; }
header .tools { margin-left: auto; }
.header-nav {
  order: 1;
  flex: 1 0 100%;
  flex-wrap: nowrap;
  gap: 2px 4px;
  margin: 0;
}
.header-nav > button {
  width: auto;
  height: auto;
  padding: 8px 9px;
  gap: 5px;
  font-size: 16px;
  color: #fff;
}
.header-nav > button:not(.current):hover { background: #ffffff24; }
.header-nav details:first-child .header-links { inset-inline: 0 auto; }

.header-nav > details > summary { font-size: 16px; }
.header-nav > details:not(:first-child) > summary {
  padding: 8px 9px;
}
.header-nav > details > .header-links {
  inset-inline: 0 auto;
  max-height: 55dvh;
  overflow-y: auto;
}
.header-nav .nested-menu > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  color: #16181b;
  font-weight: 400;
}
.header-nav .nested-menu > summary:hover { background: #e9f3ff; }
.header-nav .nested-menu[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.nested-links { padding-inline-start: 14px; }

.header-nav > .nav-page-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #ffffff44;
}
.header-nav > .nav-page-arrow svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

header { flex-wrap: nowrap; column-gap: clamp(18px, 2.4vw, 44px); }
.header-nav {
  order: 0;
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  column-gap: 16px;
}
@media (max-width: 860px) {
  header { column-gap: 8px; }
  .header-nav { column-gap: 4px; }
}
.department-picker { position: relative; }
.department-options { z-index: 1; width: max-content; max-width: calc(100vw - 24px); }
.department-options button { font-weight: 400; }
.department-options button[aria-pressed="true"] {
  font-weight: 700;
  color: var(--action-blue);
  background: #eaf4ff;
}
.department-picker .tool-label {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 760px) {
  header .tools { position: relative; }
  .department-picker { position: static; }
  .department-options { inset-inline: auto 0; }
}

@media (max-width: 540px) {
  header .brand { max-width: 25vw; overflow: hidden; text-overflow: ellipsis; }
  header .tools { gap: 4px; }
  .header-nav > .nav-page-arrow { flex-basis: 24px; height: 28px; }
  .header-nav > details, .header-nav > button:not(.nav-page-arrow) { min-width: 0; }
  .header-nav > details > summary, .header-nav > button:not(.nav-page-arrow) > span {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
.header-nav.is-measuring > * { flex-shrink: 0; }

main .monitor-filter button[aria-pressed="false"],
main button.task-name {
  color: #16181b;
}
main .monitor-filter button[aria-pressed="false"]:is(:hover, :focus-visible),
main button.task-name:is(:hover, :focus-visible) {
  color: var(--action-blue);
}
main button.task-name:is(:hover, :focus-visible) {
  text-decoration: underline;
  text-underline-offset: 2px;
}

main button.monitor-summary,
main button.monitor-summary:hover { color: #16181b; }

main button.news-tab[aria-pressed="false"]:is(:hover, :focus-visible) { color: var(--action-blue); }

header .account { color: inherit; text-decoration: none; border-radius: 6px; }
header .account:focus-visible { outline: 2px solid #a4d5ff; outline-offset: 4px; }

.department-options { max-height: min(420px, 60dvh); overflow-y: auto; }
#department-toggle[aria-expanded="true"] .chevron-down { transform: rotate(180deg); }
