:root {
  color-scheme: light;
  --bg: #f3f6f7;
  --surface: #ffffff;
  --surface-soft: #edf2f3;
  --ink: #182227;
  --muted: #66747b;
  --line: #d8e0e3;
  --teal: #0e766f;
  --teal-soft: #dcefed;
  --blue: #2c68ae;
  --amber: #b56b12;
  --red: #b43b3b;
  --green: #187948;
  --sidebar: #19272d;
  --shadow: 0 8px 24px rgba(24, 34, 39, .07);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scrollbar-gutter: stable; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.account-watermark {
  position: fixed;
  z-index: 1000;
  inset: 0;
  pointer-events: none;
  background-image: var(--account-watermark-image);
  background-repeat: repeat;
  background-position: 42px 28px;
  background-size: 340px 190px;
}
body.has-account-watermark dialog[open]::after {
  content: "";
  position: absolute;
  z-index: 1000;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image: var(--account-watermark-image);
  background-repeat: repeat;
  background-position: 18px 12px;
  background-size: 340px 190px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  transition: grid-template-columns .24s cubic-bezier(.4, 0, .2, 1);
}
.app-shell.sidebar-collapsed { grid-template-columns: 74px minmax(0, 1fr); }
.login-screen { min-height: 100vh; background: #ffffff; }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 42%) minmax(0, 1fr); }
.login-identity { min-height: 100vh; padding: 42px 48px 34px; background: #19272d; color: white; display: flex; flex-direction: column; overflow: hidden; }
.login-brand { display: flex; align-items: center; margin-bottom: 6px; }
.login-brand > div { display: grid; gap: 2px; }
.login-brand strong { font-size: 21px; line-height: 1.2; }
.login-brand small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.login-brand-inverse small { color: #aebcc1; }
.login-identity-copy { margin-top: auto; padding-top: 72px; }
.login-identity-copy > span { color: #75c8c0; font-size: 11px; font-weight: 800; }
.login-identity-copy h1 { max-width: 460px; margin: 14px 0 0; font-size: 38px; line-height: 1.3; font-weight: 760; letter-spacing: 0; }
.login-data-visual { width: min(470px, 100%); height: 190px; margin-top: 34px; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; background: #22343b; overflow: hidden; }
.login-visual-head { height: 36px; padding: 0 13px; border-bottom: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; gap: 6px; }
.login-visual-head i { width: 7px; height: 7px; border-radius: 50%; background: #6f858d; }
.login-visual-head i:first-child { background: #53b7ad; }
.login-visual-body { height: calc(100% - 36px); padding: 18px; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(96px, .8fr); gap: 18px; }
.login-visual-bars { min-height: 0; padding: 14px 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); display: grid; grid-template-columns: repeat(7, minmax(10px, 1fr)); align-items: end; gap: 7px; }
.login-visual-bars i { height: var(--bar); min-height: 12px; border-radius: 3px 3px 0 0; background: #3a9b93; }
.login-visual-bars i:nth-child(3n + 2) { background: #4b78a7; }
.login-visual-bars i:nth-child(3n) { background: #b7833d; }
.login-visual-stats { display: grid; align-content: center; gap: 12px; }
.login-visual-stats i { height: 25px; border-radius: 4px; background: #30464e; }
.login-visual-stats i:nth-child(2) { width: 78%; background: #36535a; }
.login-visual-stats i:nth-child(3) { width: 90%; }
.login-live-status { margin-top: auto; padding-top: 24px; color: #b5c4c9; display: flex; align-items: center; gap: 8px; font-size: 11px; }
.login-live-status span { width: 8px; height: 8px; border-radius: 50%; background: #4ac58b; box-shadow: 0 0 0 4px rgba(74,197,139,.13); }
.login-panel { width: min(420px, calc(100% - 48px)); margin: auto; padding: 42px 0; display: grid; gap: 20px; }
.login-form-heading { margin-bottom: 8px; }
.login-form-heading h2 { margin: 0; font-size: 28px; line-height: 1.25; }
.login-form-heading p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.login-mobile-brand { display: none; margin-bottom: 20px; color: var(--teal); font-size: 12px; font-weight: 800; }
.login-panel > label { display: grid; gap: 8px; color: #40535b; font-size: 13px; font-weight: 800; }
.login-input { height: 46px; position: relative; display: block; }
.login-input > svg { position: absolute; z-index: 1; top: 14px; left: 14px; width: 18px; height: 18px; color: #7e8d93; pointer-events: none; }
.login-input input { height: 46px; padding: 0 44px; font-size: 14px; }
.login-input:focus-within > svg { color: var(--teal); }
.password-visibility { position: absolute; z-index: 2; top: 5px; right: 5px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #78878d; display: grid; place-items: center; }
.password-visibility:hover { background: var(--surface-soft); color: var(--ink); }
.password-visibility svg { width: 17px; height: 17px; }
.login-error { margin: 0; }
.login-button { width: 100%; min-height: 46px; margin-top: 2px; font-size: 14px; font-weight: 750; }
.login-button.is-loading svg { animation: refresh-spin .75s linear infinite; }
.login-footnote { margin: -5px 0 0; color: #829097; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; }
.login-footnote svg { width: 14px; height: 14px; }
.sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; min-height: 0; padding: 20px 14px; background: var(--sidebar); color: white; display: flex; flex-direction: column; overflow: hidden; transition: padding .24s cubic-bezier(.4, 0, .2, 1); }
.brand { min-height: 48px; flex: 0 0 auto; position: relative; display: flex; align-items: center; padding: 0 8px; }
.brand-copy {
  width: 145px;
  display: grid;
  gap: 3px;
  overflow: hidden;
  white-space: nowrap;
  transition: width .2s cubic-bezier(.4, 0, .2, 1), opacity .12s ease, transform .2s ease;
}
.brand-copy strong { font-size: 18px; line-height: 1.2; }
.brand-copy span { font-size: 12px; line-height: 1.35; color: #aebcc1; }
.sidebar-toggle {
  position: absolute;
  right: 0;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 7px;
  background: rgba(255,255,255,.04);
  color: #becbd0;
  display: grid;
  place-items: center;
  transition: right .24s cubic-bezier(.4, 0, .2, 1), background-color .15s ease, color .15s ease;
}
.sidebar-toggle:hover { background: rgba(255,255,255,.1); color: white; }
.sidebar-toggle svg { width: 17px; height: 17px; transition: transform .24s cubic-bezier(.4, 0, .2, 1); }
.nav-search {
  height: 36px;
  margin: 12px 4px 0;
  padding: 0 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 7px;
  background: rgba(255,255,255,.04);
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 6px;
  color: #91a4ab;
}
.nav-search:focus-within { border-color: rgba(123,196,185,.55); background: rgba(255,255,255,.07); color: #d7e4e6; }
.nav-search > svg { width: 15px; height: 15px; }
.nav-search input { min-width: 0; height: 32px; padding: 0; border: 0; outline: 0; background: transparent; color: white; font: inherit; font-size: 12px; }
.nav-search input::placeholder { color: #81949b; }
.nav-search button { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #91a4ab; display: grid; place-items: center; }
.nav-search button:hover { background: rgba(255,255,255,.08); color: white; }
.nav-search button svg { width: 13px; height: 13px; }
.nav-search button[hidden] { visibility: hidden; display: grid; }
.side-status span { font-size: 11px; color: #aebcc1; }
.nav {
  min-height: 0;
  margin: 10px -4px 12px 0;
  padding-right: 4px;
  display: grid;
  align-content: start;
  gap: 7px;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.24) transparent;
}
.nav::-webkit-scrollbar { width: 5px; }
.nav::-webkit-scrollbar-track { background: transparent; }
.nav::-webkit-scrollbar-thumb { border-radius: 5px; background: rgba(255,255,255,.22); }
.nav::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.34); }
.nav-section { min-width: 0; display: grid; gap: 3px; }
.nav-section-toggle {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #859ba3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 14px;
  align-items: center;
  gap: 6px;
  text-align: left;
  font-size: 16px;
  font-weight: 800;
}
.nav-section-toggle:hover { background: rgba(255,255,255,.05); color: #d6e0e3; }
.nav-section-toggle > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-section-toggle small { min-width: 20px; color: #8ea2a9; text-align: right; font-size: 11px; font-weight: 750; font-variant-numeric: tabular-nums; }
.nav-section-toggle svg { width: 15px; height: 15px; transition: transform .18s ease; }
.nav-section.open .nav-section-toggle { color: #c5d3d7; }
.nav-section.open .nav-section-toggle svg { transform: rotate(180deg); }
.nav-section-items { min-width: 0; display: none; gap: 4px; }
.nav-section.open .nav-section-items { display: grid; }
.nav-section[hidden] { display: none; }
.nav-section.nav-search-empty,
.nav button[data-view].nav-search-hidden { display: none; }
.nav button[data-view] { position: relative; height: 42px; border: 0; border-radius: 8px; background: transparent; color: #becbd0; display: flex; align-items: center; gap: 10px; padding: 0 11px; text-align: left; transition: padding .24s cubic-bezier(.4, 0, .2, 1), background-color .15s ease, color .15s ease; }
.nav button[data-view]:hover { background: rgba(255,255,255,.06); color: white; }
.nav button[data-view].active { background: #293c43; color: white; }
.nav button[data-view] > svg { width: 18px; height: 18px; flex: 0 0 auto; }
.nav button[data-view] > span {
  max-width: 130px;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width .2s cubic-bezier(.4, 0, .2, 1), opacity .12s ease, transform .2s ease;
}
.nav-count { min-width: 22px; height: 20px; margin-left: auto; padding: 0 5px; border-radius: 6px; background: #d85a52; color: white; display: inline-grid; place-items: center; font-size: 9px; font-variant-numeric: tabular-nums; }
.nav-count[hidden] { display: none; }
.current-user { height: 38px; padding-left: 10px; border-left: 1px solid var(--line); display: flex; align-items: center; gap: 5px; }
.current-user > span { max-width: 110px; margin-right: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 11px; font-weight: 750; }
.current-user .icon-button { width: 34px; height: 34px; flex-basis: 34px; }
.topbar.account-mode .date-range-control,
.topbar.account-mode .date-presets,
.topbar.account-mode .month-select,
.topbar.account-mode #refresh-button { display: none; }
.topbar.weekly-mode .date-range-control,
.topbar.weekly-mode .date-presets,
.topbar.weekly-mode .month-select { display: none; }
.topbar.monthly-mode .date-range-control,
.topbar.monthly-mode .date-presets,
.topbar.monthly-mode .month-select { display: none; }
.topbar.media-dashboard-mode .date-range-control,
.topbar.media-dashboard-mode .date-presets,
.topbar.media-dashboard-mode .month-select,
.topbar.media-dashboard-mode #refresh-button { display: none; }
.attendance-anchor-search { display: none; flex: 0 1 222px; min-width: 190px; height: 38px; align-items: center; gap: 6px; }
.topbar.attendance-mode .top-actions { flex-wrap: wrap; justify-content: flex-end; }
.topbar.attendance-mode .attendance-anchor-search { display: flex; }
.attendance-anchor-search label {
  min-width: 0;
  flex: 1 1 auto;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}
.attendance-anchor-search label:focus-within { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(29, 139, 126, .12); }
.attendance-anchor-search label svg { width: 16px; height: 16px; flex: 0 0 auto; }
.attendance-anchor-search input { width: 100%; min-width: 0; height: 34px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 12px; }
.attendance-anchor-search .button { height: 38px; flex: 0 0 auto; padding: 0 10px; gap: 5px; border-radius: 8px; white-space: nowrap; }
.attendance-anchor-search .button svg { width: 15px; height: 15px; }
.mapping-operator-mode .nav button:not([data-view="mappings"]):not([data-view="actions"]),
.mapping-operator-mode .side-status,
.mapping-operator-mode .date-range-control,
.mapping-operator-mode .date-presets,
.mapping-operator-mode .month-select,
.mapping-operator-mode #demo-data-notice,
.mapping-operator-mode #manage-rooms-button,
.mapping-operator-mode #add-room-button { display: none; }
#refresh-button.is-loading svg { animation: refresh-spin .75s linear infinite; }
#refresh-button:disabled { cursor: wait; opacity: .72; }
@keyframes refresh-spin { to { transform: rotate(360deg); } }
.panel-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.giant-column-menu { position: relative; }
.giant-column-picker { position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; width: min(360px, calc(100vw - 44px)); padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: #ffffff; box-shadow: 0 14px 32px rgba(20, 39, 52, .18); }
.giant-picker-actions { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.giant-picker-actions strong { margin-right: auto; font-size: 13px; }
.giant-picker-grid { display: grid; grid-template-columns: 1fr; max-height: min(58vh, 470px); overflow-y: auto; border-top: 1px solid var(--line); }
.giant-picker-grid label { display: flex; align-items: center; min-height: 36px; gap: 9px; padding: 0 8px; border-bottom: 1px solid #edf1f4; font-size: 13px; color: var(--ink); cursor: pointer; }
.giant-picker-grid label:hover { background: #f4f8fa; }
.giant-picker-grid input { width: 15px; height: 15px; accent-color: #1b6f83; }
.giant-picker-footer { display: flex; justify-content: flex-end; padding-top: 10px; }
.overview-monthly-picker-footer { gap: 8px; }
.overview-monthly-column-menu .giant-column-picker:not([hidden]) {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}
.overview-monthly-column-menu .giant-picker-grid {
  min-height: 0;
  max-height: none;
}
.side-user {
  min-width: 0;
  flex: 0 0 auto;
  padding: 15px 8px 0;
  border-top: 1px solid rgba(255,255,255,.13);
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}
.side-user[hidden] { display: none; }
.side-user-icon {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  display: grid;
  place-items: center;
}
.side-user-icon svg { width: 16px; height: 16px; }
.side-user > div {
  min-width: 0;
  max-width: 140px;
  display: grid;
  gap: 2px;
  overflow: hidden;
  transition: max-width .2s cubic-bezier(.4, 0, .2, 1), opacity .12s ease, transform .2s ease;
}
.side-user strong {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-user > div > span {
  color: rgba(255,255,255,.58);
  font-size: 10px;
  line-height: 1.35;
}
.side-user > div > small {
  color: rgba(255,255,255,.58);
  font-size: 10px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-user > div > small.warn { color: #fbbf24; }
.access-scope-notice {
  margin: 12px 22px 0;
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid #f0c36a;
  border-radius: 6px;
  background: #fff8e8;
  color: #8a4b08;
  display: flex;
  align-items: center;
  gap: 10px;
}
.access-scope-notice[hidden] { display: none; }
.access-scope-notice > svg { width: 20px; height: 20px; flex: 0 0 auto; }
.access-scope-notice > div { min-width: 0; display: grid; gap: 2px; }
.access-scope-notice strong { font-size: 14px; }
.access-scope-notice span { color: #9a5b17; font-size: 12px; }
.operator-topbar .login-brand small + small {
  margin-top: 2px;
  color: var(--muted);
}
.operator-main > .access-scope-notice { margin: 0 0 14px; }
.sidebar-collapsed .sidebar { padding: 16px 9px; }
.sidebar-collapsed .brand { padding: 0; }
.sidebar-collapsed .brand-copy {
  width: 0;
  opacity: 0;
  transform: translateX(-6px);
}
.sidebar-collapsed .sidebar-toggle { right: 12px; }
.sidebar-collapsed .sidebar-toggle svg { transform: rotate(180deg); }
.sidebar-collapsed .nav button[data-view] > span,
.sidebar-collapsed .side-user > div {
  max-width: 0;
  opacity: 0;
  transform: translateX(-6px);
}
.sidebar-collapsed .nav-search { display: none; }
.sidebar-collapsed .nav { margin-top: 18px; }
.sidebar-collapsed .nav-section { gap: 4px; }
.sidebar-collapsed .nav-section-toggle { display: none; }
.sidebar-collapsed .nav-section-items { display: grid; gap: 4px; }
.sidebar-collapsed .nav button[data-view] { padding-right: 19px; padding-left: 19px; }
.sidebar-collapsed .nav-count {
  position: absolute;
  margin: 0;
  transform: translate(13px, -13px);
}
.sidebar-collapsed .side-user {
  grid-template-columns: 32px minmax(0, 0fr);
  justify-content: center;
  padding-right: 0;
  padding-left: 0;
}
@media (prefers-reduced-motion: reduce) {
  .app-shell,
  .sidebar,
  .brand-copy,
  .sidebar-toggle,
  .sidebar-toggle svg,
  .nav button[data-view],
  .nav button[data-view] > span,
  .nav-section-toggle svg,
  .side-user > div { transition: none; }
}
.main { min-width: 0; padding: 22px 24px 36px; }
.workspace-header {
  position: sticky;
  z-index: 40;
  top: 0;
  margin: -12px -6px 16px;
  border-bottom: 1px solid rgba(216, 224, 227, .78);
  background: rgba(243, 246, 247, .96);
  backdrop-filter: blur(10px);
}
.topbar {
  position: relative;
  margin: 0;
  padding: 12px 6px 11px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.workspace-tabs {
  min-height: 38px;
  padding: 0 6px 7px;
  display: flex;
  align-items: end;
  gap: 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
.workspace-tabs[hidden] { display: none; }
.workspace-tab {
  flex: 0 0 auto;
  height: 31px;
  border: 1px solid #d4dfe1;
  border-radius: 6px;
  background: #edf2f3;
  color: #66777e;
  display: inline-flex;
  align-items: center;
}
.workspace-tab:hover { background: white; color: #33484f; }
.workspace-tab.active { border-color: #9fc4bf; background: white; color: #0c6761; box-shadow: inset 0 -2px 0 var(--teal); }
.workspace-tab-label { height: 29px; padding: 0 7px 0 10px; border: 0; background: transparent; color: inherit; font-size: 11px; font-weight: 750; white-space: nowrap; }
.workspace-tab-close { width: 25px; height: 29px; padding: 0; border: 0; border-radius: 0 5px 5px 0; background: transparent; color: #829197; display: grid; place-items: center; }
.workspace-tab-close:hover { background: #edf2f2; color: #9d3f46; }
.workspace-tab-close svg { width: 13px; height: 13px; }
#admin-shell.view-loading .topbar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--teal);
  transform-origin: left center;
  animation: view-loading-progress 1.15s ease-in-out infinite;
}
@keyframes view-loading-progress {
  0% { transform: scaleX(.08); opacity: .45; }
  55% { transform: scaleX(.72); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}
h1, h2, p { margin: 0; }
h1 { font-size: 23px; line-height: 1.25; letter-spacing: 0; }
h2 { font-size: 15px; line-height: 1.35; letter-spacing: 0; }
.topbar p, .panel-header span, .section-actions span, .dialog-header span { color: var(--muted); font-size: 12px; margin-top: 5px; }
.top-actions { min-width: 0; display: flex; gap: 8px; align-items: center; }
.topbar.overview-mode .date-range-control,
.topbar.overview-mode .date-presets,
.topbar.overview-mode .month-select { display: none; }
.date-range-control { flex: 0 0 326px; min-height: 38px; display: flex; align-items: center; gap: 0; background: white; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.date-range-control label { min-width: 0; height: 38px; padding: 0 11px; border-left: 1px solid var(--line); display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.date-range-control label svg { width: 16px; height: 16px; }
.date-range-field { flex: 1 1 auto; }
.date-range-control input { height: 34px; padding: 0; border: 0; border-radius: 0; color: var(--ink); outline: 0; background: transparent; font-size: 12px; }
.date-range-control input:focus { box-shadow: none; }
.date-step { width: 34px; height: 38px; border: 0; border-left: 1px solid var(--line); background: white; color: var(--muted); display: grid; place-items: center; }
.date-step:first-child { border-left: 0; }
.date-step svg { width: 15px; height: 15px; }
.date-step:hover { background: var(--surface-soft); color: var(--ink); }
.flatpickr-calendar { border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 16px 44px rgba(24, 34, 39, .18); font-family: inherit; overflow: hidden; }
.flatpickr-months { padding: 7px 4px 3px; background: #f8fbfb; }
.flatpickr-current-month { font-size: 14px; }
.flatpickr-weekdays { background: #f8fbfb; }
span.flatpickr-weekday { color: var(--muted); font-weight: 700; }
.flatpickr-day { border-radius: 6px; }
.flatpickr-day.today { border-color: var(--teal); }
.flatpickr-day.inRange { border-color: var(--teal-soft); background: var(--teal-soft); box-shadow: -5px 0 0 var(--teal-soft), 5px 0 0 var(--teal-soft); }
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange,
.flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover { border-color: var(--teal); background: var(--teal); }
.date-presets { flex: 0 0 168px; height: 38px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: white; }
.date-presets button { padding: 0 10px; border: 0; border-right: 1px solid var(--line); background: white; color: var(--muted); font-size: 11px; white-space: nowrap; }
.date-presets button:last-child { border-right: 0; }
.date-presets button.active { background: var(--teal); color: white; }
.top-actions .month-select { width: 120px; flex: 0 0 120px; height: 38px; min-width: 0; padding: 0 28px 0 10px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font-size: 11px; outline: 0; }
.month-select:focus { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(29, 139, 126, .12); }
.icon-button { width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); display: grid; place-items: center; }
.icon-button svg { width: 17px; height: 17px; }

.view { display: none; }
.view.active { display: block; }
.notice { min-height: 54px; margin-bottom: 12px; padding: 10px 12px; background: #fff7e8; border: 1px solid #efd4a7; border-radius: 8px; display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; }
.notice[hidden] { display: none; }
.notice-icon { width: 26px; height: 26px; border-radius: 7px; background: #e9a84f; color: white; display: grid; place-items: center; font-weight: 800; }
.notice div { display: grid; gap: 2px; }
.notice strong { font-size: 13px; }
.notice div span { color: #805c27; font-size: 12px; }
.notice.demo { background: #eaf4f8; border-color: #bdd8e4; }
.notice.demo .notice-icon { background: var(--blue); }
.notice.demo div span { color: #426879; }

.management-center {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.management-center-head {
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.management-center-head > div { display: grid; gap: 3px; }
.management-center-head span {
  color: #6e7e85;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}
.management-center-head h2 { font-size: 17px; }
.management-center-head > strong {
  padding: 5px 8px;
  border: 1px solid #cbd6d8;
  border-radius: 6px;
  background: #f4f7f7;
  color: #607177;
  font-size: 11px;
}
.management-center-head > strong.good {
  border-color: #b9d9ce;
  background: #edf8f4;
  color: #18725f;
}
.management-center-head > strong.warn {
  border-color: #e5cea2;
  background: #fff8e8;
  color: #91621f;
}
.management-center-head > strong.urgent {
  border-color: #e2b7b4;
  background: #fff1f0;
  color: #a1433e;
}
.management-task-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}
.management-task {
  min-width: 0;
  min-height: 74px;
  padding: 10px 9px 10px 11px;
  border: 1px solid var(--line);
  border-left: 3px solid #6d91ae;
  border-radius: 7px;
  background: #fbfcfc;
  color: var(--ink);
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 9px;
  text-align: left;
}
.management-task:hover {
  border-color: #9eb1b8;
  background: #fff;
  box-shadow: 0 4px 12px rgba(31, 50, 57, .08);
}
.management-task.warn { border-left-color: #c48222; }
.management-task.urgent { border-left-color: #bc4f49; }
.management-task.info { border-left-color: #417ca4; }
.management-task-icon {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: #eaf1f5;
  color: #416b84;
  display: grid;
  place-items: center;
}
.management-task.warn .management-task-icon { background: #fff3dc; color: #9c681f; }
.management-task.urgent .management-task-icon { background: #fdebea; color: #aa4742; }
.management-task-icon svg { width: 18px; height: 18px; }
.management-task-copy { min-width: 0; display: grid; gap: 4px; }
.management-task-copy strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.management-task-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.management-task > b {
  min-width: 30px;
  font-size: 22px;
  line-height: 1;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.management-task-arrow { width: 16px; height: 16px; color: #87979d; }
.management-task-empty {
  min-height: 66px;
  border: 1px dashed #cbd5d8;
  border-radius: 7px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
}
.management-task-empty.good {
  border-color: #b9d9ce;
  background: #f1faf6;
  color: #27705f;
}
.management-task-empty svg { width: 20px; height: 20px; }
.management-task-empty > div { display: grid; gap: 3px; }
.management-task-empty strong { color: var(--ink); font-size: 13px; }
.management-task-empty span { font-size: 10px; }
.management-health-strip {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e7ecee;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}
.management-health-item {
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid #dbe4e5;
  border-radius: 6px;
  background: #f8fafa;
  color: var(--ink);
  display: grid;
  grid-template-columns: 24px minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  text-align: left;
}
.management-health-item:hover { border-color: #aebfc3; background: #fff; }
.management-health-item > svg { width: 17px; height: 17px; color: #19806f; }
.management-health-item > span { min-width: 0; display: grid; gap: 1px; }
.management-health-item small { color: var(--muted); font-size: 9px; font-weight: 700; }
.management-health-item strong { font-size: 11px; white-space: nowrap; }
.management-health-item em {
  min-width: 0;
  overflow: hidden;
  color: #65757b;
  font-size: 9px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.management-health-item.warn > svg { color: #a56b18; }
.management-health-item.urgent > svg { color: #ad4742; }

@media (max-width: 1100px) {
  .management-health-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .management-health-strip { grid-template-columns: 1fr; }
}

.overview-live-monitor {
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid #cfe0df;
  border-radius: 8px;
  background: #f8fbfb;
  box-shadow: var(--shadow);
}
.overview-live-monitor-head {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.overview-live-monitor-head > div { min-width: 0; display: grid; gap: 2px; }
.overview-live-monitor-head span {
  color: var(--teal);
  font-size: 9px;
  font-weight: 800;
}
.overview-live-monitor-head h2 { font-size: 17px; }
.overview-live-monitor-head small { color: var(--muted); font-size: 11px; }
.overview-live-monitor-head small.warn { color: #a36b1d; font-weight: 700; }
.overview-live-monitor-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.overview-live-monitor-grid > .management-task-empty { grid-column: 1 / -1; }
.overview-live-monitor-metric {
  min-width: 0;
  min-height: 84px;
  padding: 11px 13px;
  border: 1px solid #dce7e7;
  border-radius: 6px;
  background: white;
  display: grid;
  align-content: space-between;
  gap: 7px;
}
.overview-live-monitor-metric span { color: #68797f; font-size: 11px; font-weight: 750; }
.overview-live-monitor-metric strong {
  color: #20343a;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.overview-live-monitor-metric small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.overview-live-monitor-metric small.good { color: #14765f; font-weight: 700; }
.overview-live-monitor-metric small.bad { color: #b04444; font-weight: 700; }
.overview-live-monitor-metric small.info { color: #3d6f96; font-weight: 700; }
.overview-live-monitor-sessions {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #dce7e7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.overview-live-monitor-status {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.overview-live-monitor-status span {
  color: #536a72;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.overview-live-monitor-status span.running { color: #14765f; }
.overview-live-monitor-status span.warn { color: #a36b1d; }
.overview-live-monitor-status svg { width: 14px; height: 14px; }
.overview-live-monitor-sessions > small {
  flex: 0 0 auto;
  color: #14765f;
  font-size: 10px;
  font-weight: 750;
}
.overview-live-monitor-rooms {
  margin-top: 12px;
  border-top: 1px solid #dce7e7;
}
.overview-live-room-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.overview-live-room-head > div { min-width: 0; display: grid; gap: 2px; }
.overview-live-room-head strong { color: #263d43; font-size: 15px; }
.overview-live-room-head span { color: var(--muted); font-size: 11px; }
.overview-live-room-head-actions {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  grid-auto-flow: column;
  gap: 10px !important;
}
.overview-live-room-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(76px, auto));
  overflow: hidden;
  border: 1px solid #c9d9d8;
  border-radius: 6px;
  background: #fff;
}
.overview-live-room-tabs button {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid #c9d9d8;
  background: #fff;
  color: #607278;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.overview-live-room-tabs button:last-child { border-right: 0; }
.overview-live-room-tabs button.active { background: var(--teal); color: #fff; }
.overview-live-room-unmatched { color: #a36b1d !important; font-weight: 750; white-space: nowrap; }
.overview-live-room-table-wrap {
  max-height: 430px;
  overflow: auto;
  border: 1px solid #dce7e7;
  border-radius: 6px;
  background: #fff;
}
.overview-live-room-table {
  width: 100%;
  min-width: 840px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.overview-live-room-table th,
.overview-live-room-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #edf1f1;
  vertical-align: middle;
}
.overview-live-room-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef5f4;
  color: #334a50;
  font-size: 13px;
  font-weight: 850;
  text-align: left;
}
.overview-live-room-table th:first-child { width: 210px; }
.overview-live-room-table th.number,
.overview-live-room-table td.number { text-align: center; }
.overview-live-room-table tbody tr:last-child td { border-bottom: 0; }
.overview-live-room-table tbody tr:hover td { background: #f8fbfb; }
.overview-live-room-table tbody tr.is-inactive td { background: #fafafa; opacity: .76; }
.overview-live-room-identity,
.overview-live-room-value { display: grid; gap: 3px; }
.overview-live-room-identity strong { color: #20343a; font-size: 14px; }
.overview-live-room-identity span {
  overflow: hidden;
  color: #718187;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.overview-live-room-identity small {
  color: #9a6722;
  font-size: 10px;
  font-weight: 750;
}
.overview-live-room-identity.is-unassigned strong,
.overview-live-room-identity.is-unassigned small { color: #a36b1d; }
.overview-live-room-value { justify-items: center; text-align: center; }
.overview-live-room-value > strong {
  color: #23383e;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.monitor-room-change {
  font-size: 10px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.monitor-room-change.good { color: #14765f; }
.monitor-room-change.bad { color: #b04444; }
.monitor-room-change.neutral { color: #7b898e; }
.overview-live-room-empty {
  padding: 18px;
  border: 1px dashed #cfdddd;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
@media (max-width: 1120px) {
  .overview-live-monitor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .overview-live-monitor-head { align-items: flex-start; }
  .overview-live-monitor-head .button { min-width: 36px; padding: 0 9px; font-size: 0; }
  .overview-live-monitor-grid { grid-template-columns: 1fr; }
  .overview-live-monitor-sessions { align-items: flex-start; }
  .overview-live-room-head { align-items: flex-start; flex-direction: column; padding: 10px 0; }
  .overview-live-room-head-actions { width: 100%; justify-content: space-between; }
}

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.overview-role-focus {
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid #d8e3e4;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.overview-role-focus-head {
  min-height: 66px;
  padding: 12px 15px;
  border-bottom: 1px solid #e2e9ea;
  background: #f7fafa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.overview-role-focus-head > div { min-width: 0; display: grid; gap: 2px; }
.overview-role-focus-head > div > span { color: #27786d; font-size: 9px; font-weight: 850; }
.overview-role-focus-head h2 { font-size: 17px; }
.overview-role-focus-head small { color: var(--muted); font-size: 11px; }
.overview-role-focus-actions { display: flex !important; align-items: center; gap: 7px !important; }
.overview-role-focus-summary {
  min-height: 64px;
  padding: 0 18px;
  border-bottom: 1px solid #dfe8ea;
  background: #f7faf9;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.overview-role-focus-summary > span {
  min-width: 0;
  padding: 11px 14px;
  border-left: 1px solid #e3eaec;
  display: grid;
  align-content: center;
  gap: 3px;
}
.overview-role-focus-summary > span:first-child { border-left: 0; }
.overview-role-focus-summary small { color: #718289; font-size: 10px; font-weight: 750; }
.overview-role-focus-summary strong { color: #2f464e; font-size: 19px; font-variant-numeric: tabular-nums; }
.overview-role-focus-summary .good strong { color: #14775d; }
.overview-role-focus-summary .bad strong { color: #b14245; }
.overview-role-focus-summary .registrations strong { color: #176e88; }
.overview-role-focus-list { display: grid; }
.overview-role-focus-item {
  min-width: 0;
  min-height: 76px;
  padding: 11px 14px;
  border-top: 1px solid #e6ecee;
  display: grid;
  grid-template-columns: 28px minmax(240px, 1.15fr) minmax(330px, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.overview-role-focus-item:first-child { border-top: 0; }
.overview-role-focus-item.priority { box-shadow: inset 3px 0 0 #c65c55; }
.overview-role-focus-rank {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #edf2f3;
  color: #536b73;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 850;
}
.overview-role-focus-item.priority .overview-role-focus-rank { background: #f8e9e7; color: #a94441; }
.overview-role-focus-main { min-width: 0; display: grid; gap: 6px; }
.overview-role-focus-main > div { display: flex; align-items: baseline; gap: 9px; }
.overview-role-focus-main > div strong { color: #243b43; font-size: 15px; }
.overview-role-focus-main > div small { overflow: hidden; color: #718189; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.overview-role-focus-main p { margin: 0; color: #586d75; font-size: 11px; }
.overview-role-focus-main p b { color: #263e46; font-size: 14px; }
.overview-role-focus-main p em { color: #b24442; font-size: 13px; font-style: normal; font-weight: 850; }
.overview-role-focus-context { display: flex !important; align-items: center !important; flex-wrap: wrap; gap: 6px 14px !important; }
.overview-role-focus-context span { min-width: 0; display: inline-flex; align-items: center; gap: 5px; color: #64767c; font-size: 10px; }
.overview-role-focus-context svg { width: 13px; height: 13px; color: #497d76; flex: 0 0 auto; }
.overview-role-focus-reason { width: fit-content; padding: 3px 7px; border-left: 3px solid #c98555; background: #fbf4ea; color: #86541f !important; font-size: 10px !important; font-weight: 750; }
.overview-role-focus-metrics { min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(78px, 1fr)); gap: 8px; }
.overview-role-focus-metrics span { color: #7a898e; display: grid; gap: 2px; font-size: 10px; }
.overview-role-focus-metrics b { color: #344a52; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.overview-role-focus-empty { min-height: 82px; padding: 14px 18px; display: flex; align-items: center; justify-content: center; gap: 11px; }
.overview-role-focus-empty > span { width: 34px; height: 34px; border-radius: 50%; background: #e6f3ed; color: #187b64; display: grid; place-items: center; }
.overview-role-focus-empty svg { width: 18px; height: 18px; }
.overview-role-focus-empty > div { display: grid; gap: 3px; }
.overview-role-focus-empty strong { color: #30474f; font-size: 13px; }
.overview-role-focus-empty small { color: var(--muted); font-size: 10px; }
@media (max-width: 1120px) {
  .overview-role-focus-item { grid-template-columns: 28px minmax(220px, 1fr) auto; }
  .overview-role-focus-metrics { grid-column: 2 / -1; }
}
@media (max-width: 680px) {
  .overview-role-focus-head { align-items: flex-start; }
  .overview-role-focus-actions { gap: 4px !important; }
  .overview-role-focus-head .button { min-width: 36px; padding: 0 9px; font-size: 0; }
  .overview-role-focus-summary { padding: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-role-focus-summary > span { border-top: 1px solid #e3eaec; }
  .overview-role-focus-summary > span:nth-child(odd) { border-left: 0; }
  .overview-role-focus-summary > span:first-child,
  .overview-role-focus-summary > span:nth-child(2) { border-top: 0; }
  .overview-role-focus-item { grid-template-columns: 28px minmax(0, 1fr); }
  .overview-role-focus-metrics { grid-column: 1 / -1; }
  .overview-role-focus-item > .button { grid-column: 1 / -1; width: 100%; }
}
.overview-insights {
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.overview-insights-head {
  margin-bottom: 9px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}
.overview-insights-head > div { display: grid; gap: 2px; }
.overview-insights-head span {
  color: #65777e;
  font-size: 10px;
  font-weight: 800;
}
.overview-insights-head h2 { font-size: 16px; }
.overview-insights-head small { color: var(--muted); font-size: 10px; }
.overview-insights-head small.good { color: #1d7562; font-weight: 700; }
.overview-insights-head small.warn { color: #a36b1d; font-weight: 700; }
.overview-insight-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.overview-insight {
  min-width: 0;
  min-height: 122px;
  overflow: hidden;
  border: 1px solid #dbe4e5;
  border-left: 3px solid #5685a3;
  border-radius: 7px;
  background: #fafcfc;
  color: var(--ink);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}
.overview-insight-main {
  min-width: 0;
  width: 100%;
  padding: 12px 12px 8px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  text-align: left;
}
.overview-insight:hover { border-color: #aabcc1; background: #fff; }
.overview-insight-detail:focus-visible,
.overview-insight-action:focus-visible {
  outline: 2px solid #3e8f86;
  outline-offset: -2px;
}
.overview-insight.good { border-left-color: #24816e; }
.overview-insight.urgent { border-left-color: #bc4f49; }
.overview-insight-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: #eaf1f5;
  color: #416f8b;
  display: grid;
  place-items: center;
}
.overview-insight.good .overview-insight-icon { background: #e7f5ef; color: #1c7562; }
.overview-insight.urgent .overview-insight-icon { background: #fdeceb; color: #aa4742; }
.overview-insight-icon svg { width: 17px; height: 17px; }
.overview-insight-main-copy { min-width: 0; display: grid; gap: 5px; }
.overview-insight strong { font-size: 13px; line-height: 1.35; }
.overview-insight small {
  color: #68787e;
  font-size: 11px;
  line-height: 1.5;
}
.overview-insight-actions {
  min-height: 36px;
  padding: 0 9px 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.overview-insight-detail,
.overview-insight-action {
  min-height: 29px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #47747d;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.overview-insight-detail {
  color: #456873;
  margin-right: auto;
}

.overview-monthly-pace {
  margin-bottom: 12px;
  padding: 12px 14px 14px;
  border: 1px solid #cfdfe3;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.monthly-page-head {
  min-height: 68px;
  margin-bottom: 12px;
  padding: 2px 2px 12px;
  border-bottom: 1px solid #d6e0e2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.monthly-page-head > div:first-child { min-width: 0; display: grid; gap: 3px; }
.monthly-page-head > div:first-child > span {
  color: #3f7391;
  font-size: 10px;
  font-weight: 850;
}
.monthly-page-head h2 { font-size: 22px; line-height: 1.2; }
.monthly-page-head p { color: var(--muted); font-size: 12px; }
.monthly-month-control { display: flex; align-items: center; gap: 6px; }
.monthly-month-control label {
  min-width: 176px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #cbd8da;
  border-radius: 7px;
  background: #fff;
  color: #50676e;
  display: flex;
  align-items: center;
  gap: 7px;
}
.monthly-month-control label:focus-within {
  border-color: #43887f;
  box-shadow: 0 0 0 2px rgba(32, 119, 109, .12);
}
.monthly-month-control label svg { width: 16px; height: 16px; flex: 0 0 16px; }
.monthly-month-control select {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #29434b;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}
.monthly-month-control .icon-button:disabled { opacity: .38; cursor: not-allowed; }
.topbar .topbar-monthly-control { display: none; }
.topbar.monthly-mode .topbar-monthly-control { display: flex; }
.topbar .topbar-monthly-control label { min-width: 160px; height: 38px; }
.monthly-view .overview-monthly-pace-head h2 { font-size: 18px; }
.monthly-view .overview-monthly-pace-head small { font-size: 11px; }
.monthly-view .overview-monthly-progress > div { font-size: 11px; }
.monthly-view .overview-monthly-pace-card > span { font-size: 12px; }
.monthly-view .overview-monthly-pace-card > strong { font-size: 24px; }
.monthly-view .overview-monthly-pace-card em,
.monthly-view .overview-monthly-pace-card > small,
.monthly-view .monthly-pace-change { font-size: 10px; }
.monthly-view .overview-trend-chart { height: 380px; }
.overview-monthly-pace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.overview-monthly-pace-head > div { display: grid; gap: 2px; }
.overview-monthly-pace-head span {
  color: #3f7391;
  font-size: 9px;
  font-weight: 800;
}
.overview-monthly-pace-head h2 { font-size: 16px; }
.overview-monthly-pace-head small { color: var(--muted); font-size: 10px; }
.overview-monthly-progress {
  margin: 10px 0;
  display: grid;
  gap: 5px;
}
.overview-monthly-progress > div {
  color: #65767d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
}
.overview-monthly-progress > div strong {
  color: #315f75;
  font-size: 11px;
}
.overview-monthly-progress > i {
  height: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: #e7edef;
}
.overview-monthly-progress > i b {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #3f7d91;
  transition: width 180ms ease-out;
}
.overview-monthly-pace-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.overview-monthly-pace-card {
  min-width: 0;
  min-height: 112px;
  padding: 10px 11px;
  border: 1px solid #dce5e7;
  border-radius: 7px;
  background: #fafcfc;
  display: grid;
  align-content: space-between;
  gap: 6px;
}
.overview-monthly-pace-card > span {
  color: #66777e;
  font-size: 10px;
  font-weight: 750;
}
.overview-monthly-pace-card > strong {
  color: #20343a;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.overview-monthly-pace-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.overview-monthly-pace-card em {
  color: #7a898f;
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
}
.overview-monthly-pace-card > small {
  color: #63757c;
  font-size: 9px;
}
.overview-monthly-pace-card > small b {
  margin-left: 5px;
  color: #304b55;
  font-size: 11px;
}
.monthly-pace-change {
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}
.monthly-pace-change.good { color: #14765f; }
.monthly-pace-change.bad { color: #b04444; }
.monthly-pace-change.flat { color: #7b898f; }
@media (max-width: 940px) {
  .overview-monthly-pace-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .monthly-page-head { align-items: stretch; flex-direction: column; }
  .monthly-month-control label { flex: 1; }
  .overview-monthly-pace-head { align-items: flex-start; }
  .overview-monthly-pace-head .button { min-width: 36px; padding: 0 9px; font-size: 0; }
  .overview-monthly-pace-grid { grid-template-columns: 1fr; }
}
.overview-insight-detail:hover,
.overview-insight-action:hover {
  border-color: #c5d8d8;
  background: #edf5f3;
  color: #176f62;
}
.overview-insight-detail svg,
.overview-insight-action svg { width: 14px; height: 14px; }
@media (max-width: 1180px) {
  .overview-insight-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .overview-insight-list { grid-template-columns: 1fr; }
  .overview-insights-head small { display: none; }
}
.kpi { min-height: 116px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: space-between; }
.kpi-label { color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; gap: 8px; }
.kpi-icon { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: var(--surface-soft); color: var(--teal); }
.kpi-icon svg { width: 15px; height: 15px; }
.kpi-value { font-size: 25px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi-foot { color: var(--muted); font-size: 11px; }

.overview-snapshot-head {
  min-height: 72px;
  margin-bottom: 12px;
  padding: 4px 2px 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}
.overview-snapshot-head > div:first-child { min-width: 0; }
.overview-snapshot-head > div:first-child > span {
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
}
.overview-snapshot-head h2 {
  margin-top: 5px;
  font-size: 20px;
  line-height: 1.3;
}
.overview-snapshot-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}
.overview-snapshot-date {
  flex: 0 0 auto;
  color: #3e5159;
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.overview-snapshot-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.overview-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.overview-kpi {
  min-width: 0;
  min-height: 142px;
  padding: 13px;
  border: 1px solid var(--line);
  border-top: 4px solid #9aabb2;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 7px;
}
.overview-kpi-head {
  min-width: 0;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 750;
}
.overview-kpi-head span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.overview-kpi-head svg { width: 18px; height: 18px; flex: 0 0 auto; }
.overview-kpi > strong {
  min-width: 0;
  align-self: end;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.overview-kpi-change {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}
.overview-kpi > small { color: #849197; font-size: 10px; }
.overview-kpi.blue { border-top-color: #2f6fad; }
.overview-kpi.blue .overview-kpi-head svg { color: #2f6fad; }
.overview-kpi.green { border-top-color: #19806f; }
.overview-kpi.green .overview-kpi-head svg { color: #19806f; }
.overview-kpi.amber { border-top-color: #c47619; }
.overview-kpi.amber .overview-kpi-head svg { color: #c47619; }
.overview-kpi.coral { border-top-color: #b95c55; }
.overview-kpi.coral .overview-kpi-head svg { color: #b95c55; }
.overview-kpi.teal { border-top-color: #257f8c; }
.overview-kpi.teal .overview-kpi-head svg { color: #257f8c; }
.overview-kpi.violet { border-top-color: #8c5aa8; }
.overview-kpi.violet .overview-kpi-head svg { color: #8c5aa8; }
.overview-trend-chart { height: 340px; }
.overview-focus-table { min-width: 1180px; }
.overview-focus-table td:first-child strong { font-size: 12px; }
.overview-focus-reasons { display: flex; align-items: center; gap: 5px; }
.overview-focus-reasons span {
  min-height: 23px;
  padding: 0 7px;
  border-radius: 6px;
  background: #f7e2e2;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.weekly-page-head { position: relative; z-index: 12; }
.weekly-page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.weekly-picker,
.weekly-project-picker,
.weekly-group-picker { position: relative; }
.weekly-picker > .button { min-width: 156px; justify-content: space-between; }
.weekly-picker > .button svg:last-child { width: 14px; }
.weekly-project-picker > .button,
.weekly-group-picker > .button { min-width: 176px; justify-content: space-between; }
.weekly-project-picker > .button svg:last-child,
.weekly-group-picker > .button svg:last-child { width: 14px; }
.weekly-project-filter-panel,
.weekly-group-filter-panel { width: 300px; }
.weekly-project-filter-option {
  min-height: 42px;
  padding: 6px 8px;
  border-bottom: 1px solid #edf1f2;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  cursor: pointer;
}
.weekly-project-filter-option:hover { background: #f5f8f8; }
.weekly-project-filter-option input { width: 16px; height: 16px; accent-color: var(--teal); }
.weekly-project-filter-option strong { color: #344a52; font-size: 12px; }
.weekly-project-filter-empty { padding: 18px 8px; color: var(--muted); display: block; font-size: 11px; text-align: center; }
.weekly-picker-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 7px);
  right: 0;
  width: 340px;
  max-width: calc(100vw - 32px);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 42px rgba(24, 34, 39, .18);
}
.weekly-picker-title {
  min-height: 34px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.weekly-picker-title strong { font-size: 13px; }
.weekly-picker-title span { color: var(--muted); font-size: 10px; }
.weekly-picker-list {
  max-height: 360px;
  margin: 7px -4px 9px;
  overflow-y: auto;
}
.weekly-picker-option {
  min-height: 42px;
  padding: 5px 7px;
  border-bottom: 1px solid #edf1f2;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.weekly-picker-option:hover { background: #f5f8f8; }
.weekly-picker-option input { width: 16px; height: 16px; accent-color: var(--teal); }
.weekly-picker-option.disabled {
  background: #f7f8f8;
  color: #91a0a5;
  cursor: not-allowed;
}
.weekly-picker-option.disabled:hover { background: #f7f8f8; }
.weekly-picker-option.disabled input { cursor: not-allowed; }
.weekly-picker-option.disabled strong,
.weekly-picker-option.disabled small { color: #91a0a5; }
.weekly-picker-option > span { min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.weekly-picker-option strong { font-size: 12px; font-variant-numeric: tabular-nums; }
.weekly-picker-option small { color: var(--muted); font-size: 10px; }
.weekly-picker-option em {
  min-width: 42px;
  min-height: 21px;
  padding: 0 5px;
  border-radius: 5px;
  display: inline-grid;
  place-items: center;
  font-size: 9px;
  font-style: normal;
  font-weight: 750;
}
.weekly-picker-option em.complete { background: #def1e6; color: var(--green); }
.weekly-picker-option em.running { background: #f7ead6; color: #8b550f; }
.weekly-picker-footer { display: flex; justify-content: flex-end; gap: 7px; }
.weekly-selected-weeks {
  min-height: 38px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
}
.weekly-selected-chip {
  min-width: max-content;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: 7px;
  background: white;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.weekly-selected-chip strong { font-size: 12px; font-variant-numeric: tabular-nums; }
.weekly-selected-chip small { color: var(--muted); font-size: 10px; }
.weekly-selected-chip em { color: #9a5b09; font-size: 9px; font-style: normal; font-weight: 750; }
.weekly-analysis-path {
  position: sticky;
  z-index: 11;
  top: 8px;
  min-height: 58px;
  margin-bottom: 12px;
  padding: 8px 10px;
  border: 1px solid #cfdadc;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 7px 22px rgba(42, 57, 64, .12);
  backdrop-filter: blur(9px);
  display: grid;
  grid-template-columns: minmax(155px, auto) 16px minmax(150px, 1fr) 16px minmax(150px, 1fr) 16px minmax(150px, 1fr);
  align-items: center;
  gap: 7px;
}
.weekly-path-weeks {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.weekly-path-weeks > svg {
  width: 18px;
  height: 18px;
  color: var(--teal);
}
.weekly-path-weeks > span,
.weekly-analysis-path label {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.weekly-analysis-path small {
  color: #7b8b91;
  font-size: 9px;
  font-weight: 750;
}
.weekly-path-weeks strong {
  overflow: hidden;
  color: #344850;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.weekly-path-chevron {
  width: 15px;
  height: 15px;
  color: #9eabad;
}
.weekly-analysis-path select {
  width: 100%;
  height: 30px;
  padding: 0 28px 0 8px;
  border: 1px solid #d4dee0;
  border-radius: 5px;
  background-color: #f8faf9;
  color: #354951;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
.weekly-analysis-path select:focus {
  border-color: var(--teal);
  outline: 2px solid rgba(22, 128, 111, .14);
}
.weekly-analysis-path select:disabled {
  color: #93a0a5;
  cursor: default;
}
.weekly-review-stage-slicer {
  margin-top: 14px;
  scroll-margin-top: 118px;
}
.weekly-review-stage-project { margin-top: 4px; }
.weekly-review-stage-title {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.weekly-review-stage-title > b {
  flex: 0 0 auto;
  min-width: 54px;
  min-height: 25px;
  padding: 0 7px;
  border-radius: 5px;
  background: #176d66;
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 10px;
  font-weight: 850;
}
.weekly-review-stage-title > i { width: 17px; height: 17px; color: var(--teal); }
.weekly-review-stage-title > span { min-width: 0; display: grid; gap: 2px; }
.weekly-review-stage-title strong { color: #2e454d; font-size: 15px; }
.weekly-review-stage-title small { color: var(--muted); font-size: 10px; }
.weekly-review-stage-context {
  min-width: 0;
  display: grid;
  justify-items: end;
  gap: 2px;
  text-align: right;
}
.weekly-review-stage-context strong {
  overflow: hidden;
  max-width: 560px;
  color: #40535b;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.weekly-review-stage-context small {
  overflow: hidden;
  max-width: 620px;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.weekly-kpi-disclosure {
  margin-bottom: 12px;
}
.weekly-kpi-disclosure > summary {
  min-height: 42px;
  padding: 0 4px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 9px;
  color: #33484f;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.weekly-kpi-disclosure > summary::-webkit-details-marker { display: none; }
.weekly-kpi-disclosure > summary > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.weekly-kpi-disclosure > summary > span svg {
  width: 16px;
  height: 16px;
  color: var(--teal);
}
.weekly-kpi-disclosure > summary strong {
  font-size: 13px;
  font-weight: 800;
}
.weekly-kpi-disclosure > summary small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}
.weekly-kpi-chevron {
  width: 17px;
  height: 17px;
  margin-left: auto;
  transition: transform .18s ease;
}
.weekly-kpi-disclosure[open] .weekly-kpi-chevron {
  transform: rotate(180deg);
}
.weekly-kpi-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.weekly-kpi {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-top: 4px solid #80939b;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}
.weekly-kpi-title { margin-bottom: 8px; color: #40535b; font-size: 12px; font-weight: 800; }
.weekly-kpi-values { display: grid; gap: 5px; }
.weekly-kpi-values > div {
  min-width: 0;
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "week change"
    "value value";
  align-items: center;
  gap: 2px 6px;
}
.weekly-kpi-values > div > span:first-child {
  grid-area: week;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}
.weekly-kpi-values strong {
  grid-area: value;
  min-width: 0;
  overflow: hidden;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.weekly-kpi.blue { border-top-color: #2f6fad; }
.weekly-kpi.green { border-top-color: #19806f; }
.weekly-kpi.violet { border-top-color: #8c5aa8; }
.weekly-kpi.teal { border-top-color: #257f8c; }
.weekly-kpi.amber { border-top-color: #c47619; }
.weekly-kpi.coral { border-top-color: #b95c55; }
.weekly-kpi.red { border-top-color: #b43b3b; }
.weekly-kpi.indigo { border-top-color: #5368a6; }
.weekly-kpi.purple { border-top-color: #76528e; }
.weekly-change {
  grid-area: change;
  justify-self: end;
  min-height: 21px;
  padding: 0 5px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}
.weekly-change svg { width: 12px; height: 12px; margin-right: 3px; stroke-width: 2.5; }
.weekly-change span { font-variant-numeric: tabular-nums; }
.weekly-change.good { background: #def1e6; color: var(--green); }
.weekly-change.bad { background: #f7e2e2; color: var(--red); }
.weekly-change.info { background: #e1ebf6; color: #285c95; }
.weekly-change.flat { background: var(--surface-soft); color: var(--muted); }
.weekly-project-slicer {
  margin-bottom: 10px;
  padding: 9px 11px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}
.weekly-project-slicer-head {
  min-height: 40px;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.weekly-project-slicer-head > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.weekly-project-slicer-head svg { width: 16px; height: 16px; color: var(--teal); }
.weekly-project-slicer-head strong { color: #40535b; font-size: 13px; }
.weekly-project-slicer-head small { color: var(--muted); font-size: 10px; }
.weekly-project-options {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 6px;
  padding-bottom: 2px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
.weekly-project-options button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #c8d4d7;
  border-radius: 6px;
  background: #f8faf9;
  color: #50646c;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
.weekly-project-options button:hover { border-color: #80aaa4; color: var(--teal); }
.weekly-project-options button.active {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
}
.weekly-project-options button svg { width: 14px; height: 14px; }
.weekly-project-options button > b {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 4px;
  background: #e8eeef;
  color: #65777e;
  display: inline-grid;
  place-items: center;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}
.weekly-project-options button.active > b {
  background: rgba(255, 255, 255, .2);
  color: white;
}
.weekly-project-options .weekly-project-option {
  flex: 1 0 150px;
  min-width: 150px;
  min-height: 70px;
  padding: 7px 8px;
  display: grid;
  align-content: center;
  gap: 4px;
  text-align: left;
}
.weekly-project-option-head {
  min-width: 0;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
}
.weekly-project-option-head strong {
  overflow: hidden;
  color: #40545c;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.weekly-project-option-head b {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 4px;
  background: #e8eeef;
  color: #65777e;
  display: inline-grid;
  place-items: center;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}
.weekly-project-option-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}
.weekly-project-option-metrics small {
  min-width: 0;
  display: grid;
  gap: 2px;
  color: #7a8b91;
  font-size: 9px;
}
.weekly-project-option-metrics em {
  overflow: hidden;
  color: #60747b;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.weekly-project-option-metrics em.good { color: #147d64; }
.weekly-project-option-metrics em.bad { color: #b13f45; }
.weekly-project-option-status {
  color: #61757d;
  font-size: 9px;
  font-weight: 800;
}
.weekly-project-option-status.healthy { color: #147d64; }
.weekly-project-option-status.attention { color: #b13f45; }
.weekly-project-option-status.empty { color: #7b8a90; }
.weekly-project-option.active .weekly-project-option-head strong,
.weekly-project-option.active .weekly-project-option-metrics small,
.weekly-project-option.active .weekly-project-option-metrics em,
.weekly-project-option.active .weekly-project-option-status { color: white; }
.weekly-project-option.active .weekly-project-option-head b {
  background: rgba(255, 255, 255, .2);
  color: white;
}
.weekly-hierarchy-slicer { margin-top: 14px; }
.weekly-hierarchy-options button {
  flex: 1 0 245px;
  min-width: 245px;
  min-height: 74px;
  padding: 7px 9px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  text-align: left;
}
.weekly-hierarchy-options button > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.weekly-hierarchy-options button strong {
  overflow: hidden;
  text-overflow: ellipsis;
  color: #40545c;
  font-size: 12px;
  white-space: nowrap;
}
.weekly-hierarchy-options button small {
  overflow: hidden;
  text-overflow: ellipsis;
  color: #7b8b91;
  font-size: 9px;
  font-weight: 650;
  white-space: nowrap;
}
.weekly-hierarchy-option-metrics {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}
.weekly-hierarchy-option-metrics i {
  overflow: hidden;
  color: #687b82;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.weekly-hierarchy-option-metrics i.good { color: #147d64; }
.weekly-hierarchy-option-metrics i.bad { color: #b13f45; }
.weekly-hierarchy-options button > em {
  color: #678087;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.weekly-hierarchy-options button.attention > em { color: #b13f45; }
.weekly-hierarchy-options button.observation > em { color: #a56520; }
.weekly-hierarchy-options button.relative > em { color: #486d7c; }
.weekly-hierarchy-options button.new > em { color: #3974a1; }
.weekly-hierarchy-options button > em.expand { color: #147d64; }
.weekly-hierarchy-options button > em.reduce { color: #b13f45; }
.weekly-hierarchy-options button > em.maintain { color: #3974a1; }
.weekly-hierarchy-options button.active strong,
.weekly-hierarchy-options button.active small,
.weekly-hierarchy-options button.active > em,
.weekly-hierarchy-options button.active .weekly-hierarchy-option-metrics i { color: white; }
.weekly-project-empty { color: var(--muted); font-size: 11px; }
.weekly-project-context-grid {
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: minmax(690px, 1.25fr) minmax(470px, .75fr);
  align-items: stretch;
  gap: 10px;
}
.weekly-project-standard {
  min-width: 0;
  margin-bottom: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.weekly-project-standard-head {
  min-height: 46px;
  padding: 8px 11px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.weekly-project-standard-head > div { min-width: 0; display: grid; gap: 4px; }
.weekly-project-standard-head > div > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.weekly-project-standard-head svg { width: 16px; height: 16px; color: var(--teal); }
.weekly-project-standard-head strong { color: #40535b; font-size: 13px; }
.weekly-project-standard-head small { color: var(--muted); font-size: 10px; }

.project-management-view {
  display: grid;
  gap: 16px;
}
.project-management-view:not(.active) { display: none; }

.project-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.project-summary-grid > div {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid #dce6e6;
  border-radius: 6px;
  background: #fff;
  display: grid;
  gap: 4px;
}

.project-summary-grid span,
.project-summary-grid small { color: var(--muted); }
.project-summary-grid span { font-weight: 700; font-size: 13px; }
.project-summary-grid strong { font-size: 25px; color: #153b3a; }
.project-summary-grid small { font-size: 12px; }

.project-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-search {
  width: min(320px, 42vw);
  position: relative;
}

.project-search > svg {
  position: absolute;
  left: 11px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.project-search input { width: 100%; padding-left: 34px; }
.project-table-wrap { max-height: calc(100vh - 340px); min-height: 360px; }
.project-management-table { min-width: 1240px; table-layout: fixed; }
.project-management-table th:nth-child(1) { width: 180px; }
.project-management-table th:nth-child(2) { width: 160px; }
.project-management-table th:nth-child(3) { width: 180px; }
.project-management-table th:nth-child(4) { width: 190px; }
.project-management-table th:nth-child(5) { width: 180px; }
.project-management-table th:nth-child(6) { width: 190px; }
.project-management-table th:nth-child(7) { width: 190px; }
.project-management-table thead th { position: sticky; top: 0; z-index: 2; background: #f3f7f7; }
.project-management-table td { vertical-align: top; }
.project-row-inactive { opacity: 0.72; background: #f8f9f9; }

.project-name-cell,
.project-status-cell,
.project-metric-cell {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.project-name-cell strong { font-size: 15px; color: #173b3a; }
.project-name-cell small,
.project-status-cell small,
.project-metric-cell small { color: var(--muted); line-height: 1.45; }
.project-name-cell .tag { justify-self: start; }
.project-status-cell strong,
.project-metric-cell strong { color: #253e44; font-size: 13px; }
.project-metric-cell span { color: #52686f; font-size: 12px; }
.project-metric-cell .muted { color: #98a5aa; }

.project-row-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.project-row-actions .button { justify-content: center; min-width: 0; }
.project-row-actions .button:last-child { grid-column: 1 / -1; }
.project-history-row > td { padding: 0 !important; background: #f5f8f8; }
.project-history-list { padding: 14px 18px 18px; display: grid; gap: 8px; }
.project-history-head { display: flex; justify-content: space-between; gap: 12px; color: #425b60; }
.project-history-head span { color: var(--muted); font-size: 12px; }
.project-history-item {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.45fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid #dce5e5;
  border-radius: 5px;
  background: #fff;
}

.project-history-item > div { min-width: 0; display: grid; gap: 3px; }
.project-history-item span { color: var(--muted); font-size: 11px; }
.project-history-item strong { color: #354e53; font-size: 12px; overflow-wrap: anywhere; }
.project-history-empty { padding: 16px; color: var(--muted); text-align: center; }

.project-standard-dialog { width: min(1040px, calc(100vw - 36px)); max-height: calc(100vh - 36px); }
.project-standard-dialog form { display: grid; gap: 15px; }
.project-standard-form-sections { display: grid; gap: 12px; overflow: auto; max-height: calc(100vh - 210px); padding: 2px; }
.project-standard-form-sections fieldset {
  margin: 0;
  padding: 13px;
  border: 1px solid #dce6e6;
  border-radius: 6px;
}
.project-standard-form-sections legend { padding: 0 7px; font-size: 14px; font-weight: 800; color: #244b4a; }
.project-standard-form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-standard-preview {
  min-height: 64px;
  padding: 10px 12px;
  border-left: 3px solid #16877e;
  background: #edf8f6;
  display: grid;
  align-content: center;
  gap: 2px;
  color: #55706e;
}
.project-standard-preview span,
.project-standard-preview small { font-size: 11px; }
.project-standard-preview strong { color: #0b625d; font-size: 19px; }

@media (max-width: 1100px) {
  .project-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-standard-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-history-item { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .project-management-head,
  .project-toolbar { align-items: stretch; flex-direction: column; }
  .project-search { width: 100%; }
  .project-summary-grid { grid-template-columns: 1fr; }
  .project-standard-form-grid { grid-template-columns: 1fr; }
}
.weekly-standard-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: #fbfcfc;
}
.weekly-standard-item {
  min-width: 0;
  min-height: 64px;
  padding: 9px 11px;
  border-right: 1px solid var(--line);
  display: grid;
  align-content: center;
  gap: 4px;
}
.weekly-standard-item:last-child { border-right: 0; }
.weekly-standard-item span { color: #72838a; font-size: 10px; font-weight: 750; }
.weekly-standard-item strong {
  color: #33464e;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.weekly-standard-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  color: #839197;
  font-size: 9px;
  white-space: nowrap;
}
.weekly-project-diagnosis {
  min-width: 0;
  margin-bottom: 0;
  border: 1px solid #d3dfe1;
  border-left: 4px solid #168275;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(310px, 1.35fr) minmax(0, 1.65fr);
  overflow: hidden;
}
.weekly-project-context-grid .weekly-project-diagnosis {
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
}
.weekly-project-context-grid .weekly-diagnosis-summary {
  padding: 10px 11px;
  border-right: 0;
  border-bottom: 1px solid #e2e9eb;
}
.weekly-project-context-grid .weekly-diagnosis-icon {
  width: 32px;
  height: 32px;
}
.weekly-project-context-grid .weekly-diagnosis-summary strong { font-size: 15px; }
.weekly-project-context-grid .weekly-diagnosis-metrics > span { padding: 8px; }
.weekly-diagnosis-summary {
  min-width: 0;
  padding: 14px;
  border-right: 1px solid #e2e9eb;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.weekly-diagnosis-icon {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  background: #e6f2ee;
  color: #147d64;
  display: grid;
  place-items: center;
}
.weekly-diagnosis-icon svg { width: 18px; height: 18px; }
.weekly-diagnosis-icon.warning { background: #f8efe3; color: #a56520; }
.weekly-diagnosis-icon.risk { background: #f8e8e9; color: #aa3e45; }
.weekly-diagnosis-icon.improving { background: #e8f0f7; color: #396f99; }
.weekly-diagnosis-summary > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.weekly-diagnosis-summary small { color: #7d8d92; font-size: 9px; font-weight: 800; }
.weekly-diagnosis-summary strong { color: #334850; font-size: 17px; }
.weekly-diagnosis-summary em {
  color: #65777e;
  display: -webkit-box;
  overflow: hidden;
  font-size: 10px;
  font-style: normal;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.weekly-diagnosis-summary > b {
  align-self: start;
  padding: 4px 6px;
  border-radius: 4px;
  background: #e7f3ef;
  color: #147d64;
  font-size: 9px;
  white-space: nowrap;
}
.weekly-diagnosis-summary > b.warning,
.weekly-diagnosis-summary > b.risk { background: #f8e8e9; color: #aa3e45; }
.weekly-diagnosis-metrics {
  min-width: 0;
  background: #fbfcfc;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.weekly-diagnosis-metrics > span {
  min-width: 0;
  padding: 10px;
  border-right: 1px solid #e5ebed;
  display: grid;
  align-content: center;
  gap: 4px;
}
.weekly-diagnosis-metrics > span:last-child { border-right: 0; }
.weekly-diagnosis-metrics small { color: #7a8a90; font-size: 9px; font-weight: 800; }
.weekly-diagnosis-metrics strong {
  overflow: hidden;
  color: #354a52;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.weekly-diagnosis-metrics em {
  color: #667980;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}
.weekly-diagnosis-metrics em.good { color: #147d64; }
.weekly-diagnosis-metrics em.bad { color: #b13f45; }
.weekly-project-visual-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.weekly-project-visual-grid > .panel { margin-bottom: 0; }
.weekly-visual-panel { overflow: hidden; }
.weekly-project-metric-panel .panel-header { min-height: 88px; align-items: flex-start; }
.weekly-project-metric-panel .panel-header > div {
  display: grid;
  grid-template-rows: auto auto 22px;
  justify-items: start;
  gap: 3px;
}
.weekly-project-metric-panel .panel-header h2 { font-size: 15px; }
.weekly-project-metric-panel .panel-header span { font-size: 11px; }
.weekly-project-chart-standard {
  min-height: 20px;
  margin-top: 2px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #f8efe3;
  color: #8b5b19;
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.weekly-project-chart-standard[hidden] { display: none; }
.weekly-project-chart-standard.empty { visibility: hidden; }
.panel-header.weekly-visual-header { align-items: stretch; flex-direction: column; }
.weekly-chart-surface { width: 100%; min-width: 0; }
.weekly-project-chart { height: 370px; }
.weekly-ranking-chart { min-height: 330px; }
.weekly-scatter-chart { height: 430px; }

@media (max-width: 1440px) and (min-width: 1101px) {
  .weekly-project-context-grid { grid-template-columns: 1fr; }
  .weekly-project-context-grid .weekly-project-diagnosis {
    grid-template-columns: minmax(310px, 1.35fr) minmax(0, 1.65fr);
    grid-template-rows: 1fr;
  }
  .weekly-project-context-grid .weekly-diagnosis-summary {
    border-right: 1px solid #e2e9eb;
    border-bottom: 0;
  }
}
.weekly-metric-slicer {
  max-width: none;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 5px;
}
.weekly-metric-slicer button {
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid #cbd6d9;
  border-radius: 5px;
  background: #f8faf9;
  color: #5d7077;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}
.weekly-metric-slicer button:hover { border-color: #80aaa4; color: var(--teal); }
.weekly-metric-slicer button.active {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
}
.weekly-driver-slicer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.weekly-driver-slicer button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid #c8d4d7;
  border-radius: 5px;
  background: #f8faf9;
  color: #53666e;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.weekly-driver-slicer button:hover { border-color: #80aaa4; color: var(--teal); }
.weekly-driver-slicer button.active {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
}
.weekly-driver-summary {
  min-height: 92px;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  border-bottom: 1px solid var(--line);
  background: #fbfcfc;
}
.weekly-driver-summary-item {
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  gap: 7px 12px;
}
.weekly-driver-summary-item:last-child { border-right: 0; }
.weekly-driver-summary-item > span {
  grid-column: 1 / -1;
  color: #708188;
  font-size: 10px;
  font-weight: 750;
}
.weekly-driver-summary-item > strong {
  min-width: 0;
  color: #33464e;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.weekly-driver-summary-item > strong svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: #8a9ba1;
}
.weekly-driver-summary-item > em {
  align-self: center;
  color: #64777e;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}
.weekly-driver-summary-item > em.good { color: #147d64; }
.weekly-driver-summary-item > em.bad { color: #b13f45; }
.weekly-driver-summary-item > em.neutral { color: #64777e; }
.weekly-account-driver-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, .62fr);
  min-width: 0;
}
.weekly-driver-chart-section,
.weekly-driver-list-section { min-width: 0; }
.weekly-driver-list-section {
  border-left: 1px solid var(--line);
  background: #fbfcfc;
}
.weekly-driver-section-title {
  min-height: 54px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  display: grid;
  align-content: center;
  gap: 3px;
}
.weekly-driver-section-title strong { color: #40535b; font-size: 13px; }
.weekly-driver-section-title span { color: var(--muted); font-size: 10px; }
.weekly-driver-chart { min-height: 380px; }
.weekly-driver-list {
  max-height: 660px;
  overflow: auto;
}
.weekly-driver-row {
  width: 100%;
  padding: 13px 14px;
  border: 0;
  border-bottom: 1px solid #e3e9eb;
  background: white;
  color: var(--ink);
  display: grid;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}
.weekly-driver-row:last-child { border-bottom: 0; }
.weekly-driver-row:hover { background: #f3f8f7; }
.weekly-driver-row.active {
  background: #e9f4f1;
  box-shadow: inset 3px 0 0 var(--teal);
}
.weekly-driver-row-head {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.weekly-driver-row-head > strong {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #33464e;
  font-size: 13px;
}
.weekly-driver-status {
  flex: 0 0 auto;
  padding: 3px 5px;
  border-radius: 4px;
  background: #edf1f2;
  color: #60747b;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}
.weekly-driver-status.new { background: #e8f4ee; color: #147d64; }
.weekly-driver-status.stopped,
.weekly-driver-status.zero-conversion { background: #f9eaeb; color: #a63c43; }
.weekly-driver-row-metrics {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(86px, .85fr) minmax(82px, .7fr);
  gap: 10px;
}
.weekly-driver-row-metrics > span { min-width: 0; display: grid; gap: 3px; }
.weekly-driver-row-metrics small {
  color: #829197;
  font-size: 9px;
  font-weight: 700;
}
.weekly-driver-row-metrics b {
  overflow: hidden;
  text-overflow: ellipsis;
  color: #425158;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.weekly-driver-row-metrics b.good,
.weekly-driver-causes strong.good { color: #147d64; }
.weekly-driver-row-metrics b.bad,
.weekly-driver-causes strong.bad { color: #b13f45; }
.weekly-driver-row-metrics b.neutral,
.weekly-driver-causes strong.neutral { color: #64777e; }
.weekly-driver-causes {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(64px, 1fr) auto minmax(64px, 1fr);
  align-items: center;
  gap: 5px 8px;
}
.weekly-driver-causes span {
  color: #829197;
  font-size: 9px;
  white-space: nowrap;
}
.weekly-driver-causes strong {
  color: #53666e;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.weekly-driver-empty {
  min-height: 100px;
  padding: 24px;
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 11px;
  text-align: center;
}
.weekly-room-analysis-panel,
.weekly-anchor-analysis-panel { margin-bottom: 0; }
.weekly-room-analysis-panel > .panel-header { min-height: 48px; align-items: center; }
.weekly-scorecard-list { display: grid; }
.weekly-scorecard {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: white;
  color: var(--ink);
  display: grid;
  text-align: left;
}
button.weekly-scorecard { cursor: pointer; }
button.weekly-scorecard:hover { background: #f7faf9; }
.weekly-scorecard:last-child { border-bottom: 0; }
.weekly-scorecard.active {
  background: #eff7f5;
  box-shadow: inset 4px 0 0 var(--teal);
}
.weekly-scorecard-head {
  min-height: 52px;
  padding: 10px 16px;
  border-bottom: 1px solid #edf1f2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.weekly-scorecard-head > span { min-width: 0; display: inline-flex; align-items: baseline; gap: 8px; }
.weekly-scorecard-head strong { color: #33464e; font-size: 16px; }
.weekly-scorecard-head small { color: var(--muted); font-size: 11px; }
.weekly-scorecard-head > em {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 4px;
  background: #edf1f2;
  color: #60747b;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}
.weekly-scorecard-head > em.attention { background: #f9eaeb; color: #a63c43; }
.weekly-scorecard-head > em.healthy { background: #e8f4ee; color: #147d64; }
.weekly-scorecard-head > em.new { background: #eaf0f8; color: #356d9c; }
.weekly-scorecard-head > em.observation { background: #fff4dc; color: #936411; }
.weekly-scorecard-head > em.relative { background: #eaf1f4; color: #486d7c; }
.weekly-account-spend-composition {
  padding: 9px 14px 8px;
  border-bottom: 1px solid #edf1f2;
  background: #fbfcfc;
  display: grid;
  gap: 8px;
}
.weekly-account-spend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.weekly-account-spend-head > span {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.weekly-account-spend-head b { color: #53676e; font-size: 14px; }
.weekly-account-spend-head small { color: #8a989d; font-size: 12px; }
.weekly-account-spend-head > em {
  flex: 0 0 auto;
  padding: 3px 5px;
  border-radius: 4px;
  background: #f7ece3;
  color: #a25d22;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}
.weekly-account-spend-weeks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.weekly-account-spend-week {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.weekly-account-spend-week > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.weekly-account-spend-week > header span {
  color: #74868c;
  font-size: 9px;
  font-weight: 800;
}
.weekly-account-spend-week > header strong {
  overflow: hidden;
  text-overflow: ellipsis;
  color: #34484f;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.weekly-account-spend-track {
  width: 100%;
  height: 13px;
  border-radius: 3px;
  background: #e8edef;
  overflow: hidden;
}
.weekly-account-spend-track > div {
  min-width: 0;
  height: 100%;
  display: flex;
  overflow: hidden;
  transition: width 180ms ease;
}
.weekly-account-spend-track span {
  min-width: 2px;
  height: 100%;
  border-right: 1px solid rgba(255, 255, 255, .72);
}
.weekly-account-spend-track span:last-child { border-right: 0; }
.weekly-account-spend-legend {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 11px;
}
.weekly-account-spend-legend > span {
  min-width: 0;
  display: inline-grid;
  grid-template-columns: 7px minmax(0, auto) auto;
  align-items: center;
  gap: 4px;
}
.weekly-account-spend-legend i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}
.weekly-account-spend-legend b {
  overflow: hidden;
  max-width: 110px;
  text-overflow: ellipsis;
  color: #50636a;
  font-size: 8px;
  font-weight: 750;
  white-space: nowrap;
}
.weekly-account-spend-legend em {
  color: #7a898f;
  font-size: 8px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.weekly-account-spend-legend > small { color: #8a989d; font-size: 8px; }
.weekly-account-aggregate-note {
  color: #7b8c92;
  font-size: 8px;
  line-height: 1.45;
}
.weekly-account-spend-head > div {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 5px;
}
.weekly-account-spend-head .account-changed {
  padding: 3px 5px;
  border-radius: 4px;
  background: #f7ece3;
  color: #a25d22;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}
.weekly-account-spend-visual {
  min-height: 154px;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(120px, .9fr);
  align-items: stretch;
  gap: 10px;
}
.weekly-account-spend-columns {
  height: 154px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 18px;
}
.weekly-account-spend-column {
  width: 70px;
  min-width: 0;
  display: grid;
  grid-template-rows: 22px minmax(0, 1fr) 18px;
  align-items: end;
  gap: 3px;
}
.weekly-account-spend-column > strong {
  overflow: hidden;
  text-overflow: ellipsis;
  color: #53666e;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}
.weekly-account-spend-column > small {
  color: #798a90;
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}
.weekly-account-spend-vertical-track {
  width: 40px;
  height: 100%;
  margin: 0 auto;
  border-radius: 3px 3px 1px 1px;
  background: #edf1f2;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.weekly-account-spend-vertical-track > div {
  width: 100%;
  min-height: 0;
  border-radius: 3px 3px 1px 1px;
  display: flex;
  flex-direction: column-reverse;
  overflow: hidden;
  transition: height 180ms ease;
}
.weekly-account-spend-vertical-track span {
  width: 100%;
  min-height: 2px;
  border-top: 1px solid rgba(255, 255, 255, .72);
}
.weekly-account-spend-vertical-track span:first-child { border-top: 0; }
.weekly-account-spend-combined-legend {
  min-width: 0;
  align-content: center;
  display: grid;
  gap: 10px;
}
.weekly-account-spend-combined-legend > span {
  min-width: 0;
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  align-items: center;
  gap: 3px 5px;
}
.weekly-account-spend-combined-legend i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}
.weekly-account-spend-combined-legend b {
  overflow: hidden;
  text-overflow: ellipsis;
  color: #50636a;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.weekly-account-spend-combined-legend em {
  grid-column: 2;
  color: #7a898f;
  font-size: 11px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  white-space: normal;
}
.weekly-account-spend-combined-legend > small { color: #8a989d; font-size: 12px; }
.weekly-entity-volume {
  padding: 9px 16px;
  border-bottom: 1px solid #edf1f2;
  background: #fbfcfc;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
}
.weekly-entity-volume > section {
  min-width: 0;
  min-height: 54px;
  padding: 6px 10px;
  border: 1px solid #dde6e8;
  border-radius: 5px;
  background: white;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.weekly-entity-volume b { color: #667980; font-size: 12px; }
.weekly-entity-volume-values {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(94px, 1fr));
  gap: 6px;
}
.weekly-entity-volume-values > span {
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 2px 5px;
}
.weekly-entity-volume small { color: #87959a; font-size: 11px; font-variant-numeric: tabular-nums; }
.weekly-entity-volume strong { color: #33464e; font-size: 14px; font-variant-numeric: tabular-nums; text-align: right; }
.weekly-entity-volume em {
  grid-column: 1 / -1;
  color: #65777e;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}
.weekly-entity-volume em.good { color: #147d64; }
.weekly-entity-volume em.bad { color: #b13f45; }
.weekly-anchor-spend-decision {
  padding: 12px 16px 14px;
  border-bottom: 1px solid #dfe8e9;
  background: #f7faf9;
  display: grid;
  gap: 10px;
}
.weekly-anchor-spend-decision.expand { box-shadow: inset 4px 0 0 #168275; }
.weekly-anchor-spend-decision.reduce { box-shadow: inset 4px 0 0 #b9585e; }
.weekly-anchor-spend-decision.maintain { box-shadow: inset 4px 0 0 #4b78a2; }
.weekly-anchor-decision-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.weekly-anchor-decision-head > span {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.weekly-anchor-decision-head b { color: #40545b; font-size: 12px; }
.weekly-anchor-decision-head small { color: #819096; font-size: 10px; }
.weekly-anchor-decision-head > em {
  flex: 0 0 auto;
  min-width: 72px;
  padding: 5px 9px;
  border-radius: 4px;
  background: #edf1f2;
  color: #60747b;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  text-align: center;
}
.weekly-anchor-decision-head > em.expand { background: #e5f3ed; color: #137b62; }
.weekly-anchor-decision-head > em.reduce { background: #f8e8e9; color: #aa3e45; }
.weekly-anchor-decision-head > em.maintain { background: #e8f0f7; color: #396f99; }
.weekly-anchor-decision-grid {
  display: grid;
  grid-template-columns: .9fr 1fr .9fr 1.45fr;
  border: 1px solid #dce5e7;
  border-radius: 6px;
  background: white;
  overflow: hidden;
}
.weekly-anchor-decision-grid > div {
  min-width: 0;
  min-height: 72px;
  padding: 10px 12px;
  border-right: 1px solid #e4eaec;
  display: grid;
  align-content: center;
  gap: 5px;
}
.weekly-anchor-decision-grid > div:last-child { border-right: 0; }
.weekly-anchor-decision-grid span {
  color: #74868c;
  font-size: 10px;
  font-weight: 800;
}
.weekly-anchor-decision-grid strong {
  color: #33474f;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.weekly-anchor-decision-grid > div.target { background: #f0f8f5; }
.weekly-anchor-decision-grid > div.target strong { color: #147d64; font-size: 18px; }
.weekly-anchor-decision-grid strong svg {
  width: 13px;
  height: 13px;
  color: #93a1a6;
  vertical-align: -2px;
}
.weekly-anchor-decision-grid strong.good { color: #147d64; }
.weekly-anchor-decision-grid strong.warning { color: #a56520; }
.weekly-anchor-decision-grid strong.bad { color: #b13f45; }
.weekly-anchor-decision-grid small {
  overflow: hidden;
  text-overflow: ellipsis;
  color: #7e8d92;
  font-size: 10px;
  line-height: 1.35;
  white-space: nowrap;
}
.weekly-project-goal-board { margin-bottom: 14px; }
.weekly-project-goal-head { align-items: center; }
.weekly-project-goal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.weekly-project-goal-actions .icon-button { flex: 0 0 34px; }
.weekly-project-goal-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 14px;
}
.weekly-project-goal-summary-card {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 12px 13px;
  border: 1px solid #d9e2e2;
  border-top: 3px solid #66818a;
  border-radius: 6px;
  background: #fff;
}
.weekly-project-goal-summary-card.good { border-top-color: #16806f; }
.weekly-project-goal-summary-card.warning { border-top-color: #c07a1d; }
.weekly-project-goal-summary-card.info { border-top-color: #477aa4; }
.weekly-project-goal-summary-card > span {
  color: #5f7279;
  font-size: 12px;
  font-weight: 800;
}
.weekly-project-goal-summary-card > strong {
  color: #263d45;
  font-size: 20px;
  line-height: 1.15;
}
.weekly-project-goal-summary-card > small {
  min-height: 16px;
  color: #77888e;
  font-size: 11px;
  font-weight: 650;
}
.weekly-project-goal-note {
  margin: 0 16px 12px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dce5e5;
  border-radius: 5px;
  background: #f7f9f9;
  color: #5d7178;
  font-size: 12px;
  font-weight: 700;
}
.weekly-project-goal-note.warning {
  border-color: #ecd9bb;
  background: #fdf8ef;
  color: #8d611f;
}
.weekly-project-goal-note svg { width: 16px; height: 16px; flex: 0 0 16px; }
.weekly-project-goal-table-scroll { max-height: min(52vh, 560px); }
.weekly-project-goal-table { min-width: 1080px; table-layout: fixed; }
.weekly-project-goal-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f2f5f5;
  color: #344b53;
  font-size: 13px;
  font-weight: 850;
}
.weekly-project-goal-table th:nth-child(1) { width: 210px; }
.weekly-project-goal-table th:nth-child(2),
.weekly-project-goal-table th:nth-child(3),
.weekly-project-goal-table th:nth-child(4) { width: 140px; }
.weekly-project-goal-table th:nth-child(5),
.weekly-project-goal-table th:nth-child(6) { width: 170px; }
.weekly-project-goal-table th:nth-child(7) { width: 78px; }
.weekly-project-goal-project { display: grid; gap: 5px; min-width: 0; }
.weekly-project-goal-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}
.weekly-project-goal-toggle,
.weekly-project-goal-toggle-spacer {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
}
.weekly-project-goal-toggle {
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #557079;
  cursor: pointer;
}
.weekly-project-goal-toggle:hover { background: #e8efef; color: #244f58; }
.weekly-project-goal-toggle svg { width: 16px; height: 16px; transition: transform 150ms ease; }
.weekly-project-goal-toggle.expanded svg { transform: rotate(90deg); }
.weekly-project-goal-level {
  flex: 0 0 auto;
  min-width: 40px;
  color: #73858b;
  font-size: 10px;
  font-weight: 850;
}
.weekly-project-goal-project strong {
  min-width: 0;
  overflow: hidden;
  color: #2a424a;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.weekly-project-goal-row.depth-1 .weekly-project-goal-identity { padding-left: 18px; }
.weekly-project-goal-row.depth-2 .weekly-project-goal-identity { padding-left: 42px; }
.weekly-project-goal-row.depth-1 td { background: #fafcfc; }
.weekly-project-goal-row.depth-2 td { background: #fdfefe; }
.weekly-project-goal-row.suggested td { background: #f5f9fc; }
.weekly-project-goal-row[hidden] { display: none; }
.weekly-project-goal-badges { display: flex; gap: 5px; flex-wrap: wrap; }
.weekly-project-goal-status,
.weekly-project-goal-late {
  width: fit-content;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 850;
}
.weekly-project-goal-status.good { background: #e5f3ed; color: #137b62; }
.weekly-project-goal-status.warning { background: #f8efe3; color: #9a631f; }
.weekly-project-goal-status.bad { background: #f8e8e9; color: #aa3e45; }
.weekly-project-goal-status.info { background: #e9f0f7; color: #3d6d98; }
.weekly-project-goal-status.neutral { background: #edf1f2; color: #5c7078; }
.weekly-project-goal-late { background: #fff3d9; color: #98611c; }
.weekly-project-goal-origin {
  width: fit-content;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e8f2f6;
  color: #3f7186;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}
.weekly-project-goal-origin.manual { background: #edf3ec; color: #47714a; }
.weekly-project-goal-metric { display: grid; gap: 5px; }
.weekly-project-goal-metric > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.weekly-project-goal-metric > span strong { color: #2b434b; font-size: 13px; }
.weekly-project-goal-metric > span small { color: #76878d; font-size: 10px; font-weight: 750; }
.weekly-project-goal-metric > em {
  color: #61767d;
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
}
.weekly-project-goal-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: #e8eeee;
}
.weekly-project-goal-progress > i {
  display: block;
  height: 100%;
  width: var(--goal-progress, 0%);
  max-width: 100%;
  background: #477aa4;
}
.weekly-project-goal-progress > i.good { background: #16806f; }
.weekly-project-goal-progress > i.bad { background: #b65055; }
.weekly-project-goal-copy {
  display: -webkit-box;
  overflow: hidden;
  color: #52686f;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.55;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.weekly-project-goal-copy.empty { color: #95a1a5; font-weight: 600; }
.weekly-project-goal-row.unplanned td { background: #fbfcfc; }
.weekly-auto-target-disclosure {
  margin-bottom: 16px;
  border-top: 1px solid #dce4e4;
}
.weekly-auto-target-disclosure > summary {
  min-height: 48px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  color: #40565e;
  list-style: none;
}
.weekly-auto-target-disclosure > summary::-webkit-details-marker { display: none; }
.weekly-auto-target-disclosure > summary > span { display: flex; align-items: center; gap: 7px; }
.weekly-auto-target-disclosure > summary > span svg { width: 17px; height: 17px; }
.weekly-auto-target-disclosure > summary > small { margin-left: auto; color: #7a8a90; font-size: 11px; }
.weekly-auto-target-disclosure > summary > svg { width: 16px; height: 16px; transition: transform 160ms ease; }
.weekly-auto-target-disclosure[open] > summary > svg { transform: rotate(180deg); }
.weekly-auto-target-disclosure .weekly-target-board { margin-top: 2px; }
.weekly-target-board { margin-bottom: 16px; }
.weekly-target-board-head { align-items: center; }
.weekly-target-mode { grid-template-columns: repeat(2, minmax(104px, 1fr)); }
.weekly-target-summary {
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}
.weekly-target-summary-card {
  min-width: 0;
  min-height: 90px;
  padding: 12px 14px;
  border: 1px solid #dce5e7;
  border-top: 3px solid #6e8188;
  border-radius: 7px;
  background: #fff;
  display: grid;
  align-content: center;
  gap: 4px;
}
.weekly-target-summary-card.info { border-top-color: #477aa4; }
.weekly-target-summary-card.good { border-top-color: #16806f; }
.weekly-target-summary-card.warning { border-top-color: #c07a1d; }
.weekly-target-summary-card.bad { border-top-color: #b65055; }
.weekly-target-summary-card > span {
  color: #62757c;
  font-size: 11px;
  font-weight: 800;
}
.weekly-target-summary-card > strong {
  color: #263b43;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}
.weekly-target-summary-card > small {
  overflow: hidden;
  color: #7b8b90;
  font-size: 10px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.weekly-target-toolbar {
  margin-bottom: 10px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}
.weekly-target-toolbar-main {
  display: flex;
  align-items: end;
  gap: 8px;
}
.weekly-target-toolbar label {
  min-width: 220px;
  display: grid;
  gap: 5px;
  color: #687a80;
  font-size: 10px;
  font-weight: 800;
}
.weekly-target-toolbar select { width: 240px; }
.weekly-target-toolbar-main .button {
  min-height: 34px;
  white-space: nowrap;
}
.weekly-target-status-filter { grid-template-columns: repeat(4, minmax(84px, 1fr)); }
.weekly-target-table-scroll {
  max-height: 520px;
  border: 1px solid #dce5e7;
  border-radius: 6px;
}
.weekly-target-table {
  min-width: 1420px;
  table-layout: fixed;
}
.weekly-target-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f3f6f6;
}
.weekly-target-table th.weekly-target-col-identity { width: 150px; }
.weekly-target-table th.weekly-target-col-context { width: 300px; }
.weekly-target-table th.weekly-target-col-strategy { width: 132px; }
.weekly-target-table th.weekly-target-col-metric { width: 108px; }
.weekly-target-table th.weekly-target-col-result { width: 150px; }
.weekly-target-table th.weekly-target-col-actions { width: 150px; }
.weekly-target-table td { vertical-align: middle; }
.weekly-target-identity { display: grid; gap: 3px; }
.weekly-target-identity strong { color: #30474f; font-size: 12px; }
.weekly-target-identity small { color: #71838a; font-size: 11px; font-weight: 700; }
.weekly-target-strategy,
.weekly-target-result {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  border-radius: 4px;
  background: #edf1f2;
  color: #5c7078;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}
.weekly-target-strategy.expand,
.weekly-target-result.good { background: #e5f3ed; color: #137b62; }
.weekly-target-strategy.reduce,
.weekly-target-result.bad { background: #f8e8e9; color: #aa3e45; }
.weekly-target-strategy.maintain,
.weekly-target-result.warning { background: #f8efe3; color: #a56520; }
.weekly-target-result.neutral { background: #edf1f2; color: #5c7078; }
.weekly-target-table strong.good { color: #137b62; }
.weekly-target-table strong.warning { color: #a56520; }
.weekly-target-table strong.bad { color: #aa3e45; }
.weekly-target-roi { display: grid; gap: 2px; }
.weekly-target-roi span { color: #30474f; font-weight: 800; }
.weekly-target-roi small { color: #7b8b90; font-size: 9px; white-space: nowrap; }
.weekly-target-rationale {
  overflow: hidden;
  color: #62757c;
  font-size: 10px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.weekly-target-decision-context {
  color: #455d65;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.55;
  white-space: normal;
}
.weekly-target-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.weekly-target-actions .button {
  min-height: 29px;
  padding: 0 7px;
}
.weekly-target-actions svg { width: 13px; height: 13px; }
.weekly-target-footer {
  padding-top: 9px;
  color: #75878d;
  font-size: 10px;
  text-align: right;
}
.weekly-anchor-target-review {
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid #dce5e7;
  border-radius: 6px;
  background: white;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto minmax(230px, 1fr);
  align-items: center;
  gap: 8px 14px;
}
.weekly-anchor-target-review > span {
  color: #657980;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}
.weekly-anchor-target-review > strong {
  color: #354a52;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.weekly-anchor-target-review > strong svg {
  width: 12px;
  height: 12px;
  color: #93a1a6;
  vertical-align: -2px;
}
.weekly-anchor-target-review > em {
  padding: 4px 7px;
  border-radius: 4px;
  background: #edf1f2;
  color: #62757c;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}
.weekly-anchor-target-review > em.good { background: #e5f3ed; color: #137b62; }
.weekly-anchor-target-review > em.warning { background: #f8efe3; color: #a56520; }
.weekly-anchor-target-review > em.bad { background: #f8e8e9; color: #aa3e45; }
.weekly-anchor-target-review > small {
  overflow: hidden;
  text-overflow: ellipsis;
  color: #7e8d92;
  font-size: 10px;
  white-space: nowrap;
}
.weekly-anchor-target-review.empty {
  grid-template-columns: auto auto minmax(0, 1fr);
}
.weekly-entity-visuals {
  padding: 14px 16px 16px;
  background: #f6f8f8;
  display: grid;
  grid-template-columns: minmax(250px, 1.4fr) repeat(5, minmax(130px, .8fr));
  gap: 12px;
}
.weekly-entity-visuals.multi-week {
  grid-template-columns: repeat(2, minmax(300px, 1fr));
}
.weekly-entity-chart {
  min-width: 0;
  min-height: 250px;
  padding: 12px;
  border: 1px solid #dce5e7;
  border-radius: 6px;
  background: white;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
}
.weekly-entity-chart > header,
.weekly-metric-visual > header {
  height: 38px;
  min-height: 38px;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  overflow: hidden;
}
.weekly-entity-chart > header > span,
.weekly-metric-visual > header > span {
  color: #43575f;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
}
.weekly-chart-change {
  color: #65777e;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}
.weekly-chart-change.good { color: #147d64; }
.weekly-chart-change.bad { color: #b13f45; }
.weekly-entity-visuals .weekly-account-spend-composition {
  padding: 12px;
  border: 1px solid #dce5e7;
  background: white;
}
.weekly-entity-visuals .weekly-account-spend-head {
  min-height: 20px;
}
.weekly-entity-visuals .weekly-account-spend-weeks {
  align-content: center;
  gap: 12px;
}
.weekly-entity-visuals .weekly-account-spend-track { height: 16px; }
.weekly-mini-bar-columns {
  position: relative;
  height: 168px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
}
.weekly-mini-standard-line {
  position: absolute;
  z-index: 0;
  right: 1px;
  left: 1px;
  height: 0;
  border-top: 1px dashed rgba(192, 122, 29, .68);
  pointer-events: none;
}
.weekly-mini-bar-column {
  position: relative;
  z-index: 1;
  width: min(60px, 44%);
  min-width: 0;
  display: grid;
  grid-template-rows: 26px minmax(0, 1fr) 22px;
  align-items: end;
  gap: 3px;
}
.weekly-mini-bar-columns.multi-week {
  gap: 6px;
}
.weekly-mini-bar-columns.multi-week .weekly-mini-bar-column {
  width: auto;
  max-width: 58px;
  flex: 1 1 0;
}
.weekly-mini-bar-column.historical.good > span i { background: #5f9d91; }
.weekly-mini-bar-column.historical.bad > span i { background: #c98689; }
.weekly-mini-bar-column strong {
  overflow: hidden;
  text-overflow: ellipsis;
  color: #687a81;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}
.weekly-mini-bar-column > span {
  width: 38px;
  height: 100%;
  margin: 0 auto;
  border-radius: 3px 3px 1px 1px;
  background: #eef2f3;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.weekly-mini-bar-column > span i {
  width: 100%;
  min-height: 0;
  border-radius: 3px 3px 1px 1px;
  background: #a9b6ba;
}
.weekly-mini-bar-column.current > span i { background: #168275; }
.weekly-mini-bar-column.current.good > span i { background: #168275; }
.weekly-mini-bar-column.current.bad > span i { background: #b9585e; }
.weekly-mini-bar-column small {
  color: #798a90;
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}
.weekly-entity-chart footer {
  height: 40px;
  min-height: 40px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  overflow: hidden;
}
.weekly-entity-chart footer .weekly-score-benchmark {
  width: 100%;
  min-height: 40px;
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.weekly-scorecard-metrics {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.weekly-score-metric {
  min-width: 0;
  min-height: 112px;
  padding: 11px 12px;
  border-right: 1px solid #edf1f2;
  display: grid;
  align-content: start;
  gap: 7px;
}
.weekly-score-metric:last-child { border-right: 0; }
.weekly-score-metric > span:first-child {
  color: #74858b;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.weekly-score-metric > span:first-child b {
  flex: 0 0 auto;
  color: #7d8e94;
  font-size: 9px;
  font-weight: 750;
}
.weekly-score-values {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
}
.weekly-score-values small,
.weekly-score-values strong {
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.weekly-score-values small { color: #849298; font-size: 11px; }
.weekly-score-values strong { color: #33464e; font-size: 13px; text-align: right; }
.weekly-score-values svg { width: 12px; height: 12px; color: #9aa6aa; }
.weekly-score-metric > em {
  color: #64777e;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}
.weekly-score-metric > em.good { color: #147d64; }
.weekly-score-metric > em.bad { color: #b13f45; }
.weekly-score-benchmark {
  align-self: end;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}
.weekly-score-benchmark.pass { color: #147d64; }
.weekly-score-benchmark.fail { color: #b13f45; }
.weekly-score-benchmark.anomaly-good {
  width: fit-content;
  max-width: 100%;
  padding: 3px 6px;
  border-radius: 4px;
  background: #d5eee3;
  color: #0c7258;
}
.weekly-score-benchmark.anomaly-bad {
  width: fit-content;
  max-width: 100%;
  padding: 3px 6px;
  border-radius: 4px;
  background: #f5d8da;
  color: #a62f3a;
}
.weekly-anchor-analysis-panel .panel-header { min-height: 50px; }
.weekly-anchor-scorecard .weekly-scorecard-head { min-height: 50px; }
.weekly-anchor-scorecard .weekly-scorecard-metrics { border-top: 0; }
.weekly-detail-disclosure {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.weekly-detail-disclosure summary {
  min-height: 54px;
  padding: 0 14px;
  color: #40535b;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.weekly-detail-disclosure summary::-webkit-details-marker { display: none; }
.weekly-detail-disclosure summary svg { width: 17px; height: 17px; color: var(--teal); }
.weekly-detail-disclosure summary span { font-size: 13px; font-weight: 800; }
.weekly-detail-disclosure summary small { margin-left: auto; color: var(--muted); font-size: 10px; }
.weekly-detail-disclosure summary::after {
  content: "展开";
  min-width: 38px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
  text-align: right;
}
.weekly-detail-disclosure[open] summary::after { content: "收起"; }
.weekly-detail-disclosure[open] summary { border-bottom: 1px solid var(--line); }
.weekly-detail-body { display: grid; gap: 0; }
.weekly-detail-body > section { min-width: 0; padding: 14px; border-bottom: 1px solid var(--line); }
.weekly-detail-body > section:last-child { border-bottom: 0; }
.weekly-detail-body h3 { margin: 0 0 10px; color: #40535b; font-size: 13px; }
.weekly-account-choice {
  min-width: 118px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-align: left;
  cursor: pointer;
}
.weekly-account-choice svg { width: 15px; height: 15px; color: #8ca0a7; }
.weekly-account-choice.active { color: var(--teal); }
.weekly-account-choice.active svg { color: var(--teal); }
.weekly-account-choice:hover { color: var(--teal); }
.weekly-project-table { min-width: 1120px; }
.weekly-comparison-table { min-width: 1260px; }
.weekly-comparison-table th:first-child {
  left: 0;
  z-index: 4;
}
.weekly-comparison-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: white;
}
.weekly-comparison-table td { vertical-align: middle; }
.weekly-comparison-table td:first-child strong { font-size: 12px; }
.weekly-group-start td { border-top: 2px solid #bdcbd0; }
.weekly-selected-group td { background: #edf7f4; }
.weekly-selected-group td:first-child { background: #e4f2ee; }
.weekly-code { font-weight: 800; font-variant-numeric: tabular-nums; }
.weekly-table-metric { min-height: 34px; display: grid; justify-items: center; align-content: center; gap: 3px; text-align: center; }
.weekly-table-metric strong { font-size: 11px; font-variant-numeric: tabular-nums; }

.two-column { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 12px; margin-bottom: 12px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); min-width: 0; margin-bottom: 12px; }
.panel-header { min-height: 52px; padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-header > div:first-child { min-width: 0; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 11px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.legend-dot.blue { background: var(--blue); }
.legend-dot.teal { background: var(--teal); }
.legend-dot.amber { background: var(--amber); }

.chart { height: 270px; padding: 16px 16px 12px; display: grid; grid-template-columns: repeat(8, minmax(24px, 1fr)); align-items: end; gap: 10px; }
.chart-group { height: 220px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; align-items: end; border-bottom: 1px solid var(--line); position: relative; }
.chart-bar { min-height: 2px; border-radius: 4px 4px 0 0; }
.chart-bar.spend { background: var(--blue); }
.chart-bar.day1 { background: var(--teal); }
.chart-bar.h24 { background: var(--amber); }
.chart-label { position: absolute; left: 50%; bottom: -27px; transform: translateX(-50%); color: var(--muted); font-size: 10px; white-space: nowrap; }
.funnel { min-height: 270px; padding: 14px; display: grid; align-content: center; gap: 9px; }
.funnel-row { min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfc; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; position: relative; overflow: hidden; }
.funnel-row::after { content: ""; position: absolute; left: 0; bottom: 0; width: var(--width); height: 4px; background: var(--color); }
.funnel-row span { color: var(--muted); font-size: 11px; }
.funnel-row strong { font-size: 17px; }

.table-scroll { overflow: auto; }
.table-scroll.tall { max-height: calc(100vh - 180px); }
.session-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 0; }
.session-room-nav { max-height: calc(100vh - 180px); overflow: auto; border-right: 1px solid var(--line); background: #f8faf9; }
.session-room-title { position: sticky; top: 0; z-index: 2; padding: 11px 12px; border-bottom: 1px solid var(--line); background: #f8faf9; color: var(--muted); font-size: 11px; font-weight: 750; }
#session-room-menu { padding: 6px; display: grid; gap: 3px; }
#session-room-menu button { width: 100%; min-height: 48px; padding: 6px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; text-align: left; }
.session-room-copy { min-width: 0; display: grid; gap: 2px; }
.session-room-copy strong { overflow: hidden; color: var(--ink); font-size: 12px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.session-room-copy small { overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.session-room-count { min-width: 24px; font-size: 10px; text-align: right; font-variant-numeric: tabular-nums; }
#session-room-menu button:hover { background: var(--surface-soft); color: var(--ink); }
#session-room-menu button.active { background: var(--teal); color: white; }
#session-room-menu button.active .session-room-copy strong,
#session-room-menu button.active .session-room-copy small { color: white; }
#sessions-view .sessions-table { min-width: 1640px; table-layout: fixed; }
.session-group-start td { border-top: 2px solid #b9c8cd; }
.session-day-summary td { padding: 0; border-bottom-color: #cbd7d7; background: #f1f6f5; }
.session-day-summary:hover td { background: #eaf2f1; }
.session-day-summary.partial td { background: #fbf5e9; }
.session-day-summary.partial:hover td { background: #f7eedc; }
.session-day-toggle { width: 100%; min-height: 58px; padding: 8px 12px; border: 0; background: transparent; color: var(--ink); display: grid; grid-template-columns: 30px minmax(220px, 300px) 80px 130px 100px; align-items: center; justify-content: start; gap: 14px; text-align: left; cursor: pointer; }
.session-day-chevron { width: 28px; height: 28px; border: 1px solid #bfd0cf; border-radius: 6px; background: white; color: var(--teal); display: grid; place-items: center; }
.session-day-chevron svg { width: 17px; height: 17px; }
.session-day-label { min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.session-day-label strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.session-day-label em { padding: 3px 6px; border-radius: 4px; background: #f3dfb8; color: #8d5e1f; font-size: 10px; font-style: normal; font-weight: 850; white-space: nowrap; }
.session-day-label small { color: var(--muted); font-size: 11px; font-weight: 600; }
.session-day-metric { min-width: 0; display: grid; gap: 2px; justify-items: end; }
.session-day-metric small { color: var(--muted); font-size: 10px; font-weight: 700; }
.session-day-metric strong { font-size: 14px; font-variant-numeric: tabular-nums; }
table { width: 100%; border-collapse: collapse; min-width: 980px; font-size: 12px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; }
th { position: sticky; top: 0; z-index: 2; padding-top: 12px; padding-bottom: 12px; color: #40535b; background: #f7faf9; font-size: 13px; font-weight: 800; line-height: 1.35; }
tbody tr:hover { background: #f5f9f8; }
tbody tr:last-child td { border-bottom: 0; }
.number, .cell-center { text-align: center; }
.number { font-variant-numeric: tabular-nums; }
.tag { display: inline-flex; align-items: center; min-height: 23px; padding: 0 7px; border-radius: 6px; background: var(--surface-soft); font-size: 11px; font-weight: 650; }
.tag.good { background: #def1e6; color: var(--green); }
.tag.warn { background: #f7ead6; color: #8b550f; }
.tag.bad { background: #f7e2e2; color: var(--red); }
.tag.info { background: #e1ebf6; color: #285c95; }
.muted { color: var(--muted); }
.empty-row { height: 120px; text-align: center; color: var(--muted); }

.button { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; }
.button svg { width: 16px; height: 16px; }
.button.primary { background: var(--teal); color: white; border-color: var(--teal); }
.button.compact { min-height: 30px; padding: 0 10px; font-size: 11px; }
.button.warn { color: #925b13; border-color: #e8c991; background: #fffaf0; }
.button.danger { color: var(--red); border-color: #ebcaca; }
.row-actions { display: flex; gap: 5px; }
.segmented { display: grid; grid-template-columns: repeat(4, auto); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.segmented button { height: 30px; padding: 0 10px; border: 0; border-right: 1px solid var(--line); background: white; color: var(--muted); font-size: 11px; }
.segmented button:last-child { border-right: 0; }
.segmented button.active { background: var(--teal); color: white; }
#sessions-view .panel-header { justify-content: space-between; }
#session-filter { grid-template-columns: repeat(5, auto); margin-left: 0; white-space: nowrap; }
.section-actions { min-height: 54px; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.analytics-slicers { margin-bottom: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); gap: 9px; box-shadow: var(--shadow); }
.analytics-slicers label { min-width: 0; display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 700; }
.analytics-slicers select { min-width: 0; height: 34px; padding-left: 8px; font-size: 11px; }
.analytics-kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.analytics-kpi { min-height: 112px; padding: 14px; border: 1px solid var(--line); border-top: 4px solid var(--line); border-radius: 8px; background: white; box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: space-between; }
.analytics-kpi span, .analytics-kpi small { color: var(--muted); font-size: 11px; }
.analytics-kpi strong { font-size: 25px; font-variant-numeric: tabular-nums; }
.analytics-kpi > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.analytics-kpi > div svg { width: 19px; height: 19px; }
.analytics-kpi.blue { border-top-color: var(--blue); }
.analytics-kpi.blue > div svg { color: var(--blue); }
.analytics-kpi.amber { border-top-color: var(--amber); }
.analytics-kpi.amber > div svg { color: var(--amber); }
.analytics-kpi.teal { border-top-color: var(--teal); }
.analytics-kpi.teal > div svg { color: var(--teal); }
.analytics-kpi.green { border-top-color: var(--green); }
.analytics-kpi.green > div svg { color: var(--green); }
.analytics-tabs { width: fit-content; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 8px; background: white; display: flex; overflow: hidden; }
.analytics-tabs button { min-height: 36px; padding: 0 13px; border: 0; border-right: 1px solid var(--line); background: white; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; font-size: 11px; }
.analytics-tabs button:last-child { border-right: 0; }
.analytics-tabs button.active { background: var(--teal); color: white; }
.analytics-tabs svg { width: 15px; height: 15px; }
.analytics-tab-panel { display: none; }
.analytics-tab-panel.active { display: block; }
.analytics-spend-ranking-panel { margin-top: 12px; }
.analytics-spend-ranking-scroll { max-height: 520px; }
.analytics-spend-ranking-table { min-width: 1120px; table-layout: fixed; }
.analytics-spend-ranking-table th:nth-child(1) { width: 64px; }
.analytics-spend-ranking-table th:nth-child(2) { width: 150px; }
.analytics-spend-ranking-table th:nth-child(n+3) { width: 118px; }
.analytics-rank-number {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #eef2f3;
  color: #61737a;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}
.analytics-rank-number.top { background: #dceceb; color: #0f6963; }
.analytics-diagnosis-head {
  min-height: 62px;
  margin-bottom: 10px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.analytics-diagnosis-head > div { min-width: 0; display: grid; gap: 6px; }
.analytics-diagnosis-head > div > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}
.analytics-drill-path {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
.analytics-drill-path button,
.analytics-drill-current {
  min-height: 27px;
  padding: 0 8px;
  border: 1px solid #cad6d8;
  border-radius: 5px;
  background: #f8faf9;
  color: #53676e;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
}
.analytics-drill-path button { cursor: pointer; }
.analytics-drill-path button:hover {
  border-color: #82aaa5;
  color: var(--teal);
}
.analytics-drill-current {
  border-color: var(--teal);
  background: #e6f2ef;
  color: #14645f;
}
.analytics-drill-path > svg {
  width: 13px;
  height: 13px;
  color: #91a0a5;
}
.analytics-comparison-strip {
  min-height: 104px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(210px, 1.25fr) repeat(4, minmax(145px, 1fr));
  overflow: hidden;
}
.analytics-comparison-period,
.analytics-comparison-item {
  min-width: 0;
  padding: 13px 14px;
  border-right: 1px solid var(--line);
  display: grid;
  align-content: center;
  gap: 6px;
}
.analytics-comparison-item:last-child { border-right: 0; }
.analytics-comparison-period {
  background: #f7faf9;
}
.analytics-comparison-period span,
.analytics-comparison-item span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}
.analytics-comparison-period strong {
  color: #33474e;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.analytics-comparison-period small {
  color: #7d8d93;
  font-size: 9px;
  line-height: 1.45;
}
.analytics-comparison-item strong {
  color: #2f434a;
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}
.analytics-comparison-item em {
  color: #697c83;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}
.analytics-comparison-item em.good,
.analytics-diagnosis-change.good { color: #147d64; }
.analytics-comparison-item em.bad,
.analytics-diagnosis-change.bad { color: #b13f45; }
.analytics-comparison-item em.scale,
.analytics-diagnosis-change.scale { color: #2c68ae; }
.analytics-comparison-item em.neutral,
.analytics-diagnosis-change.neutral { color: #697c83; }
.analytics-diagnosis-layout {
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr);
  gap: 12px;
}
.analytics-impact-chart { height: 410px; }
.analytics-priority-list {
  max-height: 410px;
  overflow: auto;
}
.analytics-priority-item {
  position: relative;
  width: 100%;
  min-height: 92px;
  padding: 11px 38px 11px 13px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: white;
  color: var(--ink);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  gap: 5px 9px;
  text-align: left;
  cursor: pointer;
}
.analytics-priority-item:last-child { border-bottom: 0; }
.analytics-priority-item:hover { background: #f5f9f8; }
.analytics-priority-item:disabled {
  opacity: 1;
  cursor: default;
}
.analytics-priority-item:disabled:hover { background: white; }
.analytics-priority-item::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #9aabad;
  content: "";
}
.analytics-priority-item.urgent::before { background: #c94d54; }
.analytics-priority-item.warn::before { background: #d09237; }
.analytics-priority-item.good::before { background: #258066; }
.analytics-priority-item.new::before { background: #2c68ae; }
.analytics-priority-item.stopped::before { background: #75868d; }
.analytics-priority-rank {
  min-height: 22px;
  padding: 0 6px;
  border-radius: 5px;
  background: #edf1f2;
  color: #60747b;
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}
.analytics-priority-item.urgent .analytics-priority-rank { background: #f9e7e8; color: #a83e45; }
.analytics-priority-item.warn .analytics-priority-rank { background: #faedd9; color: #946016; }
.analytics-priority-item.good .analytics-priority-rank { background: #e0f1e7; color: #14765f; }
.analytics-priority-item.new .analytics-priority-rank { background: #e5edf7; color: #2c6094; }
.analytics-priority-item > strong {
  min-width: 0;
  overflow: hidden;
  color: #33474e;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.analytics-priority-item > small {
  grid-column: 1 / -1;
  min-width: 0;
  overflow: hidden;
  color: #74858b;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.analytics-priority-item > div {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.analytics-priority-item > div span {
  min-width: 0;
  color: #819097;
  font-size: 10px;
}
.analytics-priority-item > div b {
  margin-left: 3px;
  color: #53666e;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.analytics-priority-item > svg {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 16px;
  height: 16px;
  color: #819097;
  transform: translateY(-50%);
}
.analytics-diagnosis-table-panel { margin-bottom: 12px; }
.analytics-diagnosis-table {
  min-width: 1420px;
  table-layout: fixed;
}
.analytics-diagnosis-table th,
.analytics-diagnosis-table td {
  padding-left: 8px;
  padding-right: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.analytics-diagnosis-table th:nth-child(1) { width: 128px; }
.analytics-diagnosis-table th:nth-child(2) { width: 142px; }
.analytics-diagnosis-table th:nth-child(n+3):nth-child(-n+10) { width: 118px; }
.analytics-diagnosis-table th:nth-child(11) { width: 96px; }
.analytics-diagnosis-signal {
  min-height: 25px;
  width: fit-content;
  padding: 0 7px;
  border-radius: 5px;
  background: #edf1f2;
  color: #60747b;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.analytics-diagnosis-signal svg { width: 13px; height: 13px; }
.analytics-diagnosis-signal.urgent { background: #f9e7e8; color: #a83e45; }
.analytics-diagnosis-signal.warn { background: #faedd9; color: #946016; }
.analytics-diagnosis-signal.good { background: #e0f1e7; color: #14765f; }
.analytics-diagnosis-signal.new { background: #e5edf7; color: #2c6094; }
.analytics-diagnosis-change {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.analytics-diagnosis-empty {
  min-height: 100px;
  padding: 24px;
  color: var(--muted);
  display: grid;
  place-items: center;
  text-align: center;
}
.analytics-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .5fr); gap: 12px; }
.analytics-layout.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.echart { width: 100%; min-width: 0; }
.analytics-main-chart { height: 430px; }
.analytics-side-chart { height: 430px; }
.analytics-heatmap { height: clamp(430px, 62vh, 700px); }
.time-slot-view { max-width: 1880px; }
.time-slot-mode-switch {
  margin-bottom: 10px;
  padding: 4px;
  border: 1px solid #cfdbde;
  border-radius: 8px;
  background: #eaf0f1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}
.time-slot-mode-switch button {
  min-width: 0;
  min-height: 58px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #536970;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}
.time-slot-mode-switch button:hover { color: #214e54; background: rgba(255, 255, 255, .55); }
.time-slot-mode-switch button.active {
  border-color: #c5d5d7;
  background: white;
  color: #175f62;
  box-shadow: 0 2px 8px rgba(28, 62, 67, .08);
}
.time-slot-mode-switch svg { width: 19px; height: 19px; flex: 0 0 19px; }
.time-slot-mode-switch span { min-width: 0; display: grid; gap: 2px; }
.time-slot-mode-switch strong { font-size: 14px; }
.time-slot-mode-switch small { overflow: hidden; color: #73858b; font-size: 10px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
[data-time-slot-mode-panel][hidden],
[data-time-slot-single-control][hidden] { display: none !important; }
.time-slot-toolbar {
  position: sticky;
  top: 0;
  z-index: 12;
  min-height: 68px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 5px 18px rgba(27, 48, 56, .08);
  display: flex;
  align-items: end;
  gap: 10px;
}
.time-slot-toolbar label { min-width: 0; display: grid; gap: 5px; }
.time-slot-toolbar label > span { color: #60747b; font-size: 11px; font-weight: 800; }
.time-slot-toolbar select,
.time-slot-toolbar input {
  height: 38px;
  border: 1px solid #cbd6d9;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font-size: 13px;
  outline: none;
}
.time-slot-toolbar select:focus,
.time-slot-toolbar input:focus { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(29, 139, 126, .12); }
.time-slot-room-field { flex: 1 1 440px; max-width: 560px; }
.time-slot-room-field select { width: 100%; padding: 0 34px 0 11px; font-weight: 800; }
.time-slot-range-presets {
  height: 38px;
  display: grid;
  grid-template-columns: repeat(3, minmax(68px, 1fr));
  border: 1px solid #cbd6d9;
  border-radius: 6px;
  overflow: hidden;
}
.time-slot-range-presets button {
  border: 0;
  border-right: 1px solid #d9e1e3;
  background: white;
  color: #5f7279;
  font-size: 12px;
  font-weight: 750;
}
.time-slot-range-presets button:last-child { border-right: 0; }
.time-slot-range-presets button.active { background: var(--teal); color: white; }
.time-slot-date-fields { display: flex; align-items: end; gap: 7px; }
.time-slot-date-fields > span { height: 38px; color: #71838a; display: grid; place-items: center; font-size: 11px; }
.time-slot-date-fields input { width: 142px; padding: 0 9px; }
.time-slot-toolbar > .button { height: 38px; margin-left: auto; }
.time-slot-empty {
  min-height: 520px;
  border: 1px dashed #a9b9bd;
  border-radius: 8px;
  background: #f7faf9;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  text-align: left;
}
.time-slot-empty[hidden] { display: none; }
.time-slot-empty > svg { width: 34px; height: 34px; color: #547b82; }
.time-slot-empty h2 { margin: 0 0 5px; color: var(--ink); font-size: 18px; }
.time-slot-empty p { max-width: 520px; margin: 0; font-size: 13px; line-height: 1.6; }
.time-slot-head {
  min-height: 72px;
  margin-bottom: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.time-slot-title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.time-slot-title-line h2 { margin: 0; font-size: 18px; }
.time-slot-title-line span {
  min-height: 25px;
  padding: 4px 8px;
  border-radius: 5px;
  background: #e8f0f5;
  color: #315b76;
  font-size: 11px;
  font-weight: 750;
}
.time-slot-head p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.time-slot-kpi-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 12px;
}
.time-slot-kpi-grid article {
  min-width: 0;
  min-height: 104px;
  padding: 12px;
  border: 1px solid var(--line);
  border-top: 3px solid #2d6ca8;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.time-slot-kpi-grid article:nth-child(3) { border-top-color: #c8872d; }
.time-slot-kpi-grid article:nth-child(4) { border-top-color: #16816f; }
.time-slot-kpi-grid article:nth-child(n+5) { border-top-color: #3e8a58; }
.time-slot-kpi-grid span { color: var(--muted); font-size: 12px; font-weight: 750; }
.time-slot-kpi-grid strong { margin: 7px 0; color: var(--ink); font-size: 21px; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.time-slot-kpi-grid small { color: #718087; font-size: 11px; line-height: 1.35; }
.time-slot-chart-layout { margin-top: 12px; margin-bottom: 12px; }
.time-slot-chart { height: 420px; }
.time-slot-recommendation-panel,
.time-slot-summary-panel,
.time-slot-detail-panel { margin-top: 12px; }
.time-slot-recommendations {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.time-slot-recommendation {
  min-width: 0;
  padding: 11px 12px;
  border-left: 3px solid #6a8991;
  background: #f7faf9;
}
.time-slot-recommendation.good { border-left-color: #2b8a64; background: #f0f8f4; }
.time-slot-recommendation.danger { border-left-color: #be5557; background: #fbf2f2; }
.time-slot-recommendation.warning { border-left-color: #c0812d; background: #fbf6ec; }
.time-slot-recommendation h3 { margin: 0 0 8px; font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
.time-slot-recommendation h3 span { color: var(--muted); font-size: 11px; font-weight: 700; }
.time-slot-recommendation p { margin: 0; color: var(--muted); font-size: 12px; }
.time-slot-recommendation ol { margin: 0; padding: 0; list-style: none; }
.time-slot-recommendation li + li { margin-top: 5px; }
.time-slot-recommendation button {
  width: 100%;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  text-align: left;
  cursor: pointer;
}
.time-slot-recommendation button:hover strong { color: var(--blue); }
.time-slot-recommendation button strong { font-size: 13px; }
.time-slot-recommendation button span { color: var(--muted); font-size: 11px; line-height: 1.45; }
.time-slot-recommendation details { margin-top: 5px; border-top: 1px dashed #ccd8d9; }
.time-slot-recommendation details summary { padding-top: 7px; color: #315f70; font-size: 11px; font-weight: 750; cursor: pointer; }
.time-slot-recommendation details[open] summary { margin-bottom: 4px; }
.time-slot-summary-header { align-items: center; }
.time-slot-summary-disclosure > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.time-slot-summary-disclosure > summary::-webkit-details-marker { display: none; }
.time-slot-summary-disclosure:not([open]) > summary { border-bottom: 0; }
.time-slot-summary-toggle {
  flex: 0 0 auto;
  color: #41636d;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
}
.time-slot-summary-toggle svg { width: 17px; height: 17px; transition: transform .18s ease; }
.time-slot-summary-toggle .expanded-label { display: none; }
.time-slot-summary-disclosure[open] .time-slot-summary-toggle svg { transform: rotate(180deg); }
.time-slot-summary-disclosure[open] .time-slot-summary-toggle .collapsed-label { display: none; }
.time-slot-summary-disclosure[open] .time-slot-summary-toggle .expanded-label { display: inline; }
.time-slot-summary-actions {
  min-height: 48px;
  padding: 7px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.time-slot-analysis-scroll {
  max-height: min(720px, 72vh);
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.time-slot-summary-table {
  min-width: 1120px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.time-slot-summary-table th,
.time-slot-summary-table td { height: 42px; padding: 8px 9px; border-right: 1px solid #e9eef0; font-size: 12px; white-space: nowrap; }
.time-slot-summary-table th { position: sticky; z-index: 3; padding: 8px 9px; font-size: 12px; white-space: nowrap; text-align: center; }
.time-slot-summary-table thead tr:first-child th { top: 0; height: 38px; }
.time-slot-summary-table thead tr:nth-child(2) th { top: 38px; height: 38px; }
.time-slot-group-head th { color: #314a53; font-size: 13px; font-weight: 850; }
.time-slot-group-cost { background: #e9f1f7 !important; color: #305d79 !important; }
.time-slot-group-first { background: #edf4fb !important; color: #315d85 !important; }
.time-slot-group-24h { background: #edf5f2 !important; color: #2e6f60 !important; }
.time-slot-group-7d { background: #e6f2eb !important; color: #2b6d50 !important; }
.time-slot-summary-table thead tr:nth-child(2) th:nth-child(-n+4) { background: #f1f6fa; color: #40677d; }
.time-slot-summary-table thead tr:nth-child(2) th:nth-child(5) { background: #f3f7fc; color: #416888; }
.time-slot-summary-table thead tr:nth-child(2) th:nth-child(n+6):nth-child(-n+7) { background: #f0f7f4; color: #376d61; }
.time-slot-summary-table thead tr:nth-child(2) th:nth-child(n+8) { background: #eef6f1; color: #376c55; }
.time-slot-summary-table th:first-child,
.time-slot-summary-table td:first-child { position: sticky; left: 0; z-index: 2; }
.time-slot-summary-table th:nth-child(2),
.time-slot-summary-table td:nth-child(2) { position: sticky; left: 96px; z-index: 2; border-right: 1px solid #cddadd; box-shadow: 5px 0 9px rgba(29, 54, 62, .045); }
.time-slot-summary-table thead th:first-child,
.time-slot-summary-table thead th:nth-child(2) { z-index: 6; background: #e7efef; }
.time-slot-summary-table tbody tr { cursor: pointer; }
.time-slot-summary-table tbody tr:hover td { filter: brightness(.975); }
.time-slot-summary-table tbody tr.selected td { background: #e3f0ed !important; }
.time-slot-summary-table tbody tr.selected td:first-child { box-shadow: inset 3px 0 #16776f; }
.time-slot-total-row td { background: #f7faf9; font-weight: 700; }
.time-slot-total-row td:first-child,
.time-slot-total-row td:nth-child(2) { background: #edf4f2; }
.time-slot-anchor-row td { background: #fff; color: #43575e; }
.time-slot-anchor-row td:first-child,
.time-slot-anchor-row td:nth-child(2) { background: #fbfdfc; }
.time-slot-summary-table tbody td:nth-child(n+5):nth-child(-n+8) { background: #f6f9fc; }
.time-slot-summary-table tbody td:nth-child(9) { background: #f5f8fc; }
.time-slot-summary-table tbody td:nth-child(n+10):nth-child(-n+11) { background: #f4f9f7; }
.time-slot-summary-table tbody td:nth-child(n+12):nth-child(-n+13) { background: #f3f8f5; }
.time-slot-summary-table tbody td:nth-child(5),
.time-slot-summary-table tbody td:nth-child(9),
.time-slot-summary-table tbody td:nth-child(10),
.time-slot-summary-table tbody td:nth-child(12),
.time-slot-summary-table tbody td:nth-child(14) { border-left: 2px solid #d7e1e3; }
.time-slot-total-row td:nth-child(n+5):nth-child(-n+8) { background: #eef4f8; }
.time-slot-total-row td:nth-child(9) { background: #edf3fa; }
.time-slot-total-row td:nth-child(n+10):nth-child(-n+11) { background: #edf6f2; }
.time-slot-total-row td:nth-child(n+12):nth-child(-n+13) { background: #eaf4ee; }
.time-slot-slot-identity { display: flex; align-items: center; gap: 4px; }
.time-slot-toggle { width: 26px; height: 26px; border: 0; box-shadow: none; background: transparent; }
.time-slot-toggle svg { width: 15px; height: 15px; }
.time-slot-label-button {
  min-width: 0;
  padding: 2px 3px;
  border: 0;
  background: transparent;
  color: #203a43;
  display: grid;
  gap: 1px;
  text-align: left;
  cursor: pointer;
}
.time-slot-label-button strong { font-size: 13px; }
.time-slot-label-button small { color: #4a7482; font-size: 9px; font-weight: 750; }
.time-slot-label-button:hover strong { color: var(--teal); }
.time-slot-anchor-guide { width: 24px; height: 18px; margin-left: 30px; border-bottom: 1px solid #b8c9c8; border-left: 1px solid #b8c9c8; display: block; }
.time-slot-anchor-row td:nth-child(2) button {
  width: 100%;
  padding: 3px 2px;
  border: 0;
  background: transparent;
  color: #324f59;
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
  cursor: pointer;
}
.time-slot-anchor-row td:nth-child(2) button:hover { color: var(--teal); }
.time-slot-anchor-row td:nth-child(2) button svg { width: 14px; height: 14px; color: #769198; }
.time-slot-judgment {
  min-height: 24px;
  padding: 4px 7px;
  border-radius: 5px;
  background: #edf2f3;
  color: #53666d;
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
}
.time-slot-judgment.放大消耗 { background: #e5f3ea; color: #237153; }
.time-slot-judgment.缩减消耗 { background: #f8e8e8; color: #9a4148; }
.time-slot-judgment.等待7日回收 { background: #fbf0dc; color: #8a6321; }
.time-slot-judgment.维持消耗 { background: #eef2f7; color: #49647a; }
.time-slot-heat {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  transition: background-color .16s ease, color .16s ease;
}
.time-slot-summary-table td.time-slot-heat.heat-good-strong,
.time-slot-portfolio-table td.time-slot-heat.heat-good-strong { background: #c8ead5 !important; color: #105d3b !important; }
.time-slot-summary-table td.time-slot-heat.heat-good,
.time-slot-portfolio-table td.time-slot-heat.heat-good { background: #e2f3e8 !important; color: #256e4d !important; }
.time-slot-summary-table td.time-slot-heat.heat-bad,
.time-slot-portfolio-table td.time-slot-heat.heat-bad { background: #fae5e5 !important; color: #9b4248 !important; }
.time-slot-summary-table td.time-slot-heat.heat-bad-strong,
.time-slot-portfolio-table td.time-slot-heat.heat-bad-strong { background: #f3c9cb !important; color: #842e36 !important; }
.time-slot-summary-table td.time-slot-heat.heat-neutral,
.time-slot-portfolio-table td.time-slot-heat.heat-neutral { background: #f3f6f6 !important; color: #52666d !important; }
.time-slot-portfolio-panel { margin-bottom: 12px; }
.time-slot-portfolio-head { align-items: center; }
.time-slot-portfolio-kpis {
  padding: 0 14px 12px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}
.time-slot-portfolio-kpis article {
  min-width: 0;
  min-height: 92px;
  padding: 11px 12px;
  border: 1px solid #d9e2e4;
  border-top: 3px solid #39769b;
  border-radius: 7px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.time-slot-portfolio-kpis article:nth-child(4),
.time-slot-portfolio-kpis article:nth-child(5) { border-top-color: #278260; }
.time-slot-portfolio-kpis article:nth-child(6) { border-top-color: #b77b31; }
.time-slot-portfolio-kpis span { color: #667b82; font-size: 11px; font-weight: 800; }
.time-slot-portfolio-kpis strong { margin: 5px 0; color: #203a43; font-size: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.time-slot-portfolio-kpis small { overflow: hidden; color: #7a8a8f; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.time-slot-room-decisions {
  padding: 0 14px 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.time-slot-room-decision {
  min-width: 0;
  min-height: 104px;
  padding: 11px 12px;
  border: 1px solid #d7e0e2;
  border-top: 3px solid #758b91;
  border-radius: 7px;
  background: #f8faf9;
}
.time-slot-room-decision.good { border-top-color: #25845d; background: #f1f8f4; }
.time-slot-room-decision.bad { border-top-color: #b84b52; background: #fbf3f3; }
.time-slot-room-decision header { margin-bottom: 9px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.time-slot-room-decision header strong { color: #263e46; font-size: 14px; }
.time-slot-room-decision header span { color: #62777e; font-size: 11px; font-weight: 800; }
.time-slot-room-decision > div { display: flex; flex-wrap: wrap; gap: 6px; }
.time-slot-room-decision button {
  min-width: 0;
  padding: 5px 7px;
  border: 1px solid #d6e0e1;
  border-radius: 5px;
  background: white;
  color: #28424a;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.time-slot-room-decision button:hover { border-color: var(--teal); color: var(--teal); }
.time-slot-room-decision button b { font-size: 12px; }
.time-slot-room-decision button small { color: #6d7e83; font-size: 9px; font-variant-numeric: tabular-nums; }
.time-slot-room-decision p { margin: 21px 0 0; color: var(--muted); font-size: 12px; }
.time-slot-portfolio-scroll { max-height: min(520px, 60vh); scrollbar-gutter: stable; }
.time-slot-portfolio-table { min-width: 1290px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.time-slot-portfolio-table th,
.time-slot-portfolio-table td { height: 42px; padding: 8px 9px; border-right: 1px solid #e7edef; font-size: 12px; white-space: nowrap; }
.time-slot-portfolio-table th { position: sticky; top: 0; z-index: 3; background: #e8f0f1; color: #304d56; font-size: 12px; font-weight: 850; }
.time-slot-portfolio-table th:nth-child(1) { width: 88px; }
.time-slot-portfolio-table th:nth-child(2) { width: 96px; }
.time-slot-portfolio-table th:nth-child(3) { width: 88px; }
.time-slot-portfolio-table th:nth-child(4) { width: 78px; }
.time-slot-portfolio-table th:nth-child(5) { width: 78px; }
.time-slot-portfolio-table th:nth-child(6) { width: 96px; }
.time-slot-portfolio-table th:nth-child(7) { width: 116px; }
.time-slot-portfolio-table th:nth-child(8) { width: 94px; }
.time-slot-portfolio-table th:nth-child(9) { width: 96px; }
.time-slot-portfolio-table th:nth-child(10) { width: 160px; }
.time-slot-portfolio-table th:nth-child(11) { width: 116px; }
.time-slot-portfolio-table tbody tr:hover td { filter: brightness(.975); }
.time-slot-portfolio-room { padding: 2px 0; border: 0; background: transparent; color: #176b72; font-size: 12px; font-weight: 850; cursor: pointer; }
.time-slot-portfolio-room:hover { color: #0d5057; text-decoration: underline; }
.time-slot-previous { min-height: 24px; padding: 4px 7px; border-radius: 5px; display: inline-flex; align-items: center; font-size: 10px; font-weight: 800; }
.time-slot-previous.good { background: #e2f3e8; color: #256e4d; }
.time-slot-previous.bad { background: #fae5e5; color: #9b4248; }
.time-slot-previous.neutral { background: #edf2f3; color: #5f7279; }
.time-slot-portfolio-more { margin: 10px auto 13px; }
.time-slot-detail-panel { scroll-margin-top: 82px; }
.time-slot-detail-table { min-width: 980px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.time-slot-detail-table th,
.time-slot-detail-table td { padding: 9px; font-size: 12px; white-space: nowrap; }
.time-slot-detail-table th { position: sticky; z-index: 2; font-size: 12px; text-align: center; }
.time-slot-detail-table thead tr:first-child th { top: 0; height: 38px; }
.time-slot-detail-table thead tr:nth-child(2) th { top: 38px; height: 38px; }
.time-slot-detail-table thead tr:nth-child(2) th:nth-child(-n+3) { background: #f1f6fa; color: #40677d; }
.time-slot-detail-table thead tr:nth-child(2) th:nth-child(4) { background: #f3f7fc; color: #416888; }
.time-slot-detail-table thead tr:nth-child(2) th:nth-child(5) { background: #f0f7f4; color: #376d61; }
.time-slot-detail-table thead tr:nth-child(2) th:nth-child(6) { background: #eef6f1; color: #376c55; }
.time-slot-detail-table tbody td:nth-child(n+7):nth-child(-n+9) { background: #f6f9fc; }
.time-slot-detail-table tbody td:nth-child(10) { background: #f5f8fc; }
.time-slot-detail-table tbody td:nth-child(11) { background: #f4f9f7; }
.time-slot-detail-table tbody td:nth-child(12) { background: #f3f8f5; }
.time-slot-detail-table tbody td:nth-child(7),
.time-slot-detail-table tbody td:nth-child(10),
.time-slot-detail-table tbody td:nth-child(11),
.time-slot-detail-table tbody td:nth-child(12) { border-left: 2px solid #d7e1e3; }
.time-slot-chart-head { align-items: center; }
.time-slot-status {
  min-height: 23px;
  padding: 3px 7px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 750;
}
.time-slot-status.matched { background: #e3f2ea; color: #217353; }
.time-slot-status.missing { background: #f8e8e8; color: #a34449; }
.time-slot-missing-row td { color: #8a5659; background: #fdf8f8; }
.time-slot-immature { color: #8a969b; font-size: 10px; }
.hourly-insight-board { margin-top: 12px; }
.hourly-insight-head { margin-bottom: 9px; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.hourly-insight-head h2 { font-size: 16px; }
.hourly-insight-head span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.hourly-insight-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hourly-insight-card {
  min-width: 0;
  min-height: 142px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 10px;
}
.hourly-insight-card.good { border-top-color: var(--green); }
.hourly-insight-card.urgent { border-top-color: var(--red); }
.hourly-insight-card header { grid-column: 1 / -1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hourly-insight-card header span { color: var(--muted); display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 750; }
.hourly-insight-card header svg { width: 15px; height: 15px; }
.hourly-insight-card header strong { color: var(--ink); font-size: 11px; white-space: nowrap; }
.hourly-insight-card > b { grid-column: 1 / -1; font-size: 22px; font-variant-numeric: tabular-nums; }
.hourly-insight-card p { min-width: 0; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.hourly-insight-card .button { align-self: end; }
.hourly-insight-empty { grid-column: 1 / -1; min-height: 90px; display: grid; place-items: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; }
.chart-metric-select { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.chart-metric-select select { width: 150px; height: 34px; font-size: 11px; }
.analytics-table { min-width: 1420px; }
.daily-review-head { min-height: 56px; margin-bottom: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.daily-review-head span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.daily-date-picker { min-width: 190px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 700; }
.daily-date-picker input { height: 34px; min-width: 0; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink); font-size: 12px; }
.daily-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.daily-kpi { min-height: 118px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: var(--shadow); display: grid; align-content: space-between; gap: 10px; }
.daily-kpi span { color: var(--muted); font-size: 11px; }
.daily-kpi strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.daily-kpi > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.daily-change { min-height: 24px; padding: 0 7px; border-radius: 6px; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.daily-change.up { background: #def1e6; color: var(--green); }
.daily-change.down { background: #f7e2e2; color: var(--red); }
.daily-change.flat { background: var(--surface-soft); color: var(--muted); }
.daily-review-table {
  min-width: 1080px;
  table-layout: fixed;
}
.daily-review-table th,
.daily-review-table td {
  padding-left: 7px;
  padding-right: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.daily-review-table th:nth-child(1) { width: 92px; }
.daily-review-table th:nth-child(2) { width: 142px; }
.daily-review-table th:nth-child(3) { width: 58px; }
.daily-review-table th:nth-child(4) { width: 104px; }
.daily-review-table th:nth-child(5) { width: 88px; }
.daily-review-table th:nth-child(6) { width: 86px; }
.daily-review-table th:nth-child(7) { width: 88px; }
.daily-review-table th:nth-child(8) { width: 100px; }
.daily-review-table th:nth-child(9) { width: 78px; }
.daily-review-table th:nth-child(10) { width: 150px; }
.daily-review-table th:last-child,
.daily-review-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 1;
  min-width: 150px;
  background: white;
  box-shadow: -8px 0 12px -12px rgba(24, 48, 55, .55);
}
.daily-review-table th:last-child {
  z-index: 3;
  background: #f7faf9;
}
.daily-signal {
  min-height: 26px;
  width: fit-content;
  padding: 0 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}
.daily-signal svg { width: 14px; height: 14px; }
.daily-signal.urgent { color: var(--red); background: #f8e5e5; }
.daily-signal.warn { color: #996015; background: #faedd9; }
.daily-signal.good { color: var(--green); background: #e0f1e7; }
.daily-signal.info { color: var(--blue); background: #e3edf8; }
.daily-review-actions { flex-wrap: nowrap; }
.daily-review-actions .button { min-width: 62px; padding: 0 6px; }
.anchor-slicers { grid-template-columns: repeat(5, minmax(140px, 1fr)); }
.anchor-ranking-slicers { grid-template-columns: repeat(4, minmax(160px, 1fr)); }
.anchor-table { min-width: 1560px; }
.anchor-ranking-kpis {
  margin: 12px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.anchor-ranking-data-notice { margin-top: 12px; }
.anchor-ranking-panel { padding: 0; overflow: hidden; }
.anchor-ranking-header { padding: 15px 16px 12px; margin: 0; }
.anchor-ranking-header h2 { font-size: 18px; }
.anchor-ranking-header .panel-actions { align-items: end; }
.anchor-ranking-mode-filter { background: #e8f1f0; }
.anchor-ranking-mode-filter button.active { background: #176d66; color: #fff; }
.anchor-ranking-sort { min-width: 170px; display: grid; gap: 4px; }
.anchor-ranking-sort > span { color: var(--muted); font-size: 11px; font-weight: 800; }
.anchor-ranking-sort select { min-height: 34px; }
.anchor-ranking-rule-strip {
  min-height: 46px;
  padding: 8px 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f4f7f7;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #4b6268;
  font-size: 12px;
}
.anchor-ranking-rule-strip span { white-space: nowrap; }
.anchor-ranking-rule-strip strong { color: #176d66; font-size: 14px; }
.anchor-ranking-rule-strip small { margin-left: auto; color: var(--muted); font-weight: 700; }
.anchor-ranking-scroll { max-height: 610px; border-radius: 0; }
.anchor-ranking-table { min-width: 1660px; table-layout: fixed; }
.anchor-ranking-table th,
.anchor-ranking-table td { padding: 10px 11px; vertical-align: middle; }
.anchor-ranking-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #edf3f3;
  color: #263f46;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
  box-shadow: 0 1px 0 #c5d2d5;
}
.anchor-ranking-table th:nth-child(1) { width: 64px; }
.anchor-ranking-table th:nth-child(2) { width: 120px; }
.anchor-ranking-table th:nth-child(3) { width: 72px; }
.anchor-ranking-table th:nth-child(4) { width: 90px; }
.anchor-ranking-table th:nth-child(n+5):nth-child(-n+9) { width: 96px; }
.anchor-ranking-table th:nth-child(10) { width: 80px; }
.anchor-ranking-table th:nth-child(11) { width: 88px; }
.anchor-ranking-table th:nth-child(12),
.anchor-ranking-table th:nth-child(13) { width: 112px; }
.anchor-ranking-table th:nth-child(14) { width: 90px; }
.anchor-ranking-table th:nth-child(15) { width: 260px; }
.anchor-ranking-table td.number { font-size: 13px; font-variant-numeric: tabular-nums; }
.anchor-ranking-table .provisional-row { background: #fafbfb; color: #62757a; }
.anchor-ranking-rank strong { color: #176d66; font-size: 16px; }
.anchor-ranking-anchor { position: sticky; left: 0; z-index: 2; background: #fff; }
.anchor-ranking-table .provisional-row .anchor-ranking-anchor { background: #fafbfb; }
.anchor-ranking-anchor strong,
.anchor-ranking-overall strong { display: block; color: #203b42; font-size: 15px; }
.anchor-ranking-anchor small,
.anchor-ranking-overall small,
.anchor-ranking-day-count { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.anchor-ranking-level {
  min-width: 38px;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}
.anchor-ranking-level.level-s { background: #dcefe4; color: #146a49; }
.anchor-ranking-level.level-a { background: #e1edf7; color: #235f91; }
.anchor-ranking-level.level-b { background: #f5ead5; color: #8f5d13; }
.anchor-ranking-level.level-c { background: #fae7d5; color: #9b5b1d; }
.anchor-ranking-level.level-d { background: #f4dede; color: #a13d3d; }
.anchor-ranking-level.provisional { background: #e9eeee; color: #607378; }
.anchor-ranking-confidence {
  min-width: 44px;
  min-height: 25px;
  padding: 0 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 850;
}
.anchor-ranking-confidence.confidence-high { background: #dcefe4; color: #146a49; }
.anchor-ranking-confidence.confidence-medium { background: #e1edf7; color: #235f91; }
.anchor-ranking-confidence.confidence-low { background: #f5ead5; color: #8f5d13; }
.anchor-ranking-diagnosis { overflow: hidden; color: #41575d; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.anchors-view .anchor-period-panel { margin-top: 12px; }
.anchor-period-panel { padding: 0; overflow: hidden; }
.anchor-period-header { padding: 15px 16px 12px; margin: 0; }
.anchor-period-header h2 { font-size: 17px; }
.anchor-period-header .panel-actions { align-items: end; }
.anchor-period-sort { min-width: 190px; display: grid; gap: 4px; }
.anchor-period-sort > span { color: var(--muted); font-size: 11px; font-weight: 800; }
.anchor-period-sort select { min-height: 34px; }
.anchor-period-toolbar {
  min-height: 56px;
  padding: 9px 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f4f7f7;
  display: flex;
  align-items: center;
  gap: 14px;
}
.anchor-period-toolbar > strong { color: #324c53; font-size: 13px; }
.anchor-dimension-options { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.anchor-dimension-options label {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #cbd8da;
  border-radius: 5px;
  background: #fff;
  color: #3f555b;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.anchor-dimension-options label:has(input:checked) { border-color: #43817b; background: #e3f0ed; color: #155e58; }
.anchor-dimension-options label.fixed { background: #e8eeee; color: #52686e; cursor: default; }
.anchor-dimension-options input { width: 15px; height: 15px; accent-color: #176d66; }
.anchor-period-row-count { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 750; }
.anchor-period-scroll { max-height: clamp(460px, calc(100vh - 285px), 780px); border-radius: 0; }
.anchor-period-table { min-width: 2680px; table-layout: fixed; }
.anchor-period-table th,
.anchor-period-table td { padding: 9px 10px; vertical-align: middle; }
.anchor-period-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  border-bottom-color: #bacacd;
  background: #edf3f3;
  color: #263f46;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}
.anchor-period-table thead tr:nth-child(2) th { top: 36px; background: #f6f9f9; }
.anchor-period-table .anchor-period-group-head th {
  height: 36px;
  padding-block: 7px;
  border-bottom: 1px solid #c5d2d5;
  color: #315a5b;
  text-align: center;
  font-size: 12px;
}
.anchor-period-table .anchor-period-anchor { width: 92px; }
.anchor-period-table tbody .anchor-period-anchor {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  box-shadow: 7px 0 12px -13px #243e45;
}
.anchor-period-table thead .anchor-period-anchor { left: 0; z-index: 7; }
.anchor-period-table .anchor-period-dimension { width: 118px; }
.anchor-period-table tbody tr:hover .anchor-period-anchor { background: #f3f8f7; }
.anchor-period-table td.number { font-variant-numeric: tabular-nums; }
.anchor-period-mature-count { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.anchor-period-rate { min-width: 82px; display: grid; justify-items: center; gap: 2px; text-align: center; }
.anchor-period-rate strong { font-size: 13px; font-variant-numeric: tabular-nums; }
.anchor-period-rate small { color: var(--muted); font-size: 10px; white-space: nowrap; }
.anchor-period-rate.good strong { color: #167350; }
.anchor-period-rate.warn strong { color: #a66613; }
.anchor-period-rate.bad strong { color: #b24141; }
.anchor-period-rate.muted { min-width: 0; color: var(--muted); font-size: 11px; }
.anchor-period-decisions { min-width: 130px; display: flex; gap: 4px; white-space: nowrap; }
.anchor-period-decisions span { padding: 4px 6px; border-radius: 4px; font-size: 10px; font-weight: 850; }
.anchor-period-decisions .scale { background: #def0e6; color: #166b4b; }
.anchor-period-decisions .steady { background: #f5ead6; color: #8b5a13; }
.anchor-period-decisions .tighten { background: #f5dddd; color: #a03838; }
.overview-room-target-panel,
.anchor-room-target-panel { margin-top: 12px; }
.overview-room-target-scroll {
  max-height: clamp(360px, calc(100vh - 170px), 760px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.overview-room-target-table thead th {
  position: sticky;
  z-index: 6;
  top: 0;
  box-shadow: 0 1px 0 #cbd7da, 0 5px 12px rgba(24, 34, 39, .08);
}
.room-target-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.room-target-summary > div {
  min-height: 70px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
  display: grid;
  align-content: center;
  gap: 3px;
}
.room-target-summary span { color: var(--muted); font-size: 11px; font-weight: 700; }
.room-target-summary strong { color: var(--ink); font-size: 20px; font-variant-numeric: tabular-nums; }
.room-target-table { min-width: 920px; table-layout: fixed; }
.overview-room-target-table { min-width: 1370px; }
.overview-room-target-table th:nth-child(1) { width: 122px; }
.overview-room-target-table th:nth-child(2) { width: 110px; }
.overview-room-target-table th:nth-child(3) { width: 150px; }
.overview-room-target-table th:nth-child(4) { width: 82px; }
.overview-room-target-table th:nth-child(5) { width: 62px; }
.overview-room-target-table th:nth-child(6),
.overview-room-target-table th:nth-child(7) { width: 98px; }
.overview-room-target-table th:nth-child(8),
.overview-room-target-table th:nth-child(9) { width: 88px; }
.overview-room-target-table th:nth-child(10),
.overview-room-target-table th:nth-child(11) { width: 94px; }
.overview-room-target-table th:nth-child(12),
.overview-room-target-table th:nth-child(13) { width: 102px; }
.overview-room-target-table th:nth-child(1),
.overview-room-target-table td:nth-child(1) {
  position: sticky;
  left: 0;
}
.overview-room-target-table th:nth-child(2),
.overview-room-target-table td:nth-child(2) {
  position: sticky;
  left: 122px;
  box-shadow: 7px 0 12px -12px rgba(24, 48, 55, .55);
}
.overview-room-target-table th:nth-child(1),
.overview-room-target-table th:nth-child(2) { z-index: 8; }
.overview-room-target-table td:nth-child(1),
.overview-room-target-table td:nth-child(2) { z-index: 2; }
.anchor-room-target-table { min-width: 940px; }
.anchor-room-target-table th:nth-child(1) { width: 96px; }
.anchor-room-target-table th:nth-child(2) { width: 78px; }
.anchor-room-target-table th:nth-child(3) { width: 170px; }
.anchor-room-target-table th:nth-child(4) { width: 130px; }
.anchor-room-target-table th:nth-child(n + 5) { width: 82px; }
.anchor-room-daily-header { align-items: flex-end; }
.anchor-room-daily-header .panel-actions { align-items: flex-end; }
.anchor-room-daily-room-field {
  width: min(280px, 34vw);
  display: grid;
  gap: 5px;
}
.anchor-room-daily-room-field > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}
.anchor-room-daily-room-field select { width: 100%; min-height: 34px; }
.anchor-room-daily-empty {
  min-height: 180px;
  padding: 30px;
  color: #61767d;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: left;
}
.anchor-room-daily-empty > svg { width: 30px; height: 30px; color: #3f7773; }
.anchor-room-daily-empty > div { display: grid; gap: 5px; }
.anchor-room-daily-empty strong { color: #29484e; font-size: 17px; }
.anchor-room-daily-empty span { font-size: 13px; }
.anchor-room-daily-summary {
  min-height: 82px;
  border-bottom: 1px solid var(--line);
  background: #f7faf9;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.anchor-room-daily-summary > div {
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  display: grid;
  align-content: center;
  gap: 3px;
}
.anchor-room-daily-summary > div:last-child { border-right: 0; }
.anchor-room-daily-summary span { color: var(--muted); font-size: 11px; font-weight: 750; }
.anchor-room-daily-summary strong { color: #203c43; font-size: 17px; font-variant-numeric: tabular-nums; }
.anchor-room-daily-summary small { color: #6c7f84; font-size: 10px; }
.anchor-room-daily-scroll {
  max-height: min(720px, 70vh);
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.anchor-room-daily-table {
  min-width: 2030px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.anchor-room-daily-table th,
.anchor-room-daily-table td {
  height: 42px;
  padding: 8px 8px;
  border-right: 1px solid #e7edef;
  white-space: nowrap;
  text-align: center;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.anchor-room-daily-table thead th {
  position: sticky;
  z-index: 5;
  background: #edf3f4;
  color: #314d55;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 1px 0 #d2dcdf;
}
.anchor-room-daily-table thead tr:first-child th { top: 0; height: 38px; }
.anchor-room-daily-table thead tr:nth-child(2) th { top: 38px; height: 38px; }
.anchor-room-daily-group-head th:nth-child(3) { background: #edf2f7; color: #48647c; }
.anchor-room-daily-group-head th:nth-child(4) { background: #e8f1f5; color: #356477; }
.anchor-room-daily-group-head th:nth-child(5) { background: #edf5f1; color: #366a59; }
.anchor-room-daily-group-head th:nth-child(6) { background: #f6f0e6; color: #795f32; }
.anchor-room-daily-group-head th:nth-child(7) { background: #edf4ec; color: #416944; }
.anchor-room-daily-sticky-date,
.anchor-room-daily-date { position: sticky; left: 0; z-index: 3; }
.anchor-room-daily-sticky-anchor,
.anchor-room-daily-anchor {
  position: sticky;
  left: 118px;
  z-index: 3;
  box-shadow: 7px 0 11px -12px rgba(32, 57, 64, .75);
}
.anchor-room-daily-sticky-date,
.anchor-room-daily-sticky-anchor { z-index: 8 !important; }
.anchor-room-daily-total-row td { background: #eef5f5; font-weight: 700; }
.anchor-room-daily-anchor-row td { background: #fff; }
.anchor-room-daily-anchor-row:hover td { background: #f5f9f8; }
.anchor-room-daily-date button {
  width: 100%;
  min-height: 30px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #24494f;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  text-align: left;
}
.anchor-room-daily-date button svg { width: 15px; height: 15px; flex: 0 0 15px; }
.anchor-room-daily-total-row .anchor-room-daily-anchor { display: grid; justify-items: start; align-content: center; gap: 2px; }
.anchor-room-daily-total-row .anchor-room-daily-anchor small { color: var(--muted); font-size: 10px; }
.anchor-room-daily-anchor-row .anchor-room-daily-anchor {
  color: #315259;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-align: left;
}
.anchor-room-daily-anchor-row .anchor-room-daily-anchor svg { width: 14px; height: 14px; color: #5b7b80; }
.anchor-room-daily-tree-guide { width: 28px; height: 1px; margin-left: 28px; background: #b8c9cc; display: block; }
.anchor-room-daily-immature { color: #87979b; font-size: 10px; }
.room-target-table th,
.room-target-table td { padding-right: 9px; padding-left: 9px; }
.room-target-table td:nth-child(2),
.anchor-room-target-table td:nth-child(3),
.anchor-room-target-table td:nth-child(4) {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.45;
}
.overview-room-target-table th { padding-right: 7px; padding-left: 7px; }
.overview-room-target-table td { padding: 8px 7px; vertical-align: middle; }
.overview-room-target-table .overview-room-sort {
  width: 100%;
  min-height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  text-align: left;
  font: inherit;
  font-weight: 850;
  letter-spacing: 0;
  cursor: pointer;
}
.overview-room-target-table th.number .overview-room-sort { justify-content: center; text-align: center; }
.overview-room-target-table .overview-room-sort svg { width: 13px; height: 13px; flex: 0 0 13px; opacity: .52; }
.overview-room-target-table .overview-room-sort:hover,
.overview-room-target-table .overview-room-sort.active { color: #0b635d; }
.overview-room-target-table .overview-room-sort.active svg { opacity: 1; }
.overview-room-group-row td {
  border-top: 1px solid #c9d9d8;
  border-bottom-color: #d8e3e3;
  background: #eef6f5;
}
.overview-room-group-row:first-child td { border-top: 0; }
.overview-room-group-row.collapsed td { border-bottom-color: #c9d9d8; }
.overview-room-identity {
  min-width: 0;
  display: grid;
  gap: 1px;
}
.overview-room-toggle {
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #174f4c;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  cursor: pointer;
}
.overview-room-toggle svg { width: 15px; height: 15px; flex: 0 0 15px; }
.overview-room-toggle:hover { color: #0b756d; }
.overview-room-accounts {
  min-width: 0;
  padding-left: 20px;
  color: #567076;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.overview-room-projects {
  color: #274f54;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.overview-room-group-anchor,
.overview-room-group-metric {
  color: #3e5a60;
  font-size: 13px;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.overview-room-group-anchor strong,
.overview-room-group-metric strong {
  color: #173f43;
  font-size: 13px;
  font-weight: 850;
}
.overview-monthly-maturity {
  display: block;
  margin-top: 2px;
  color: #71868b;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}
.overview-monthly-not-applicable {
  color: #87979b;
  font-size: 11px;
  font-weight: 650;
}
.overview-room-anchor-row td { background: #fff; }
.overview-room-anchor-row:hover td { background: #f7faf9; }
.overview-room-guide { position: relative; }
.overview-room-guide::after {
  width: 1px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 22px;
  background: #c9dad8;
  content: "";
}
.overview-room-total-spacer { background: #fbfcfc !important; }
.overview-room-project-spacer { background: #f7faf9 !important; }
.overview-anchor-name { color: #293f48; font-size: 12px; }
.overview-room-anchor-row td.number { color: #3d5058; font-variant-numeric: tabular-nums; white-space: nowrap; }
.overview-room-anchor-row td.number strong { color: #253c45; }
.room-sdk-registrations { display: grid; gap: 3px; }
.room-sdk-registrations strong {
  color: var(--ink);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.room-sdk-registrations small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.45;
}
.room-private-source {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}
.room-overview-registration {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.room-overview-registration > strong {
  min-width: 36px;
  color: var(--ink);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.room-overview-registration > div { display: grid; gap: 3px; }
.room-overview-registration .room-target-change,
.room-achievement-rate {
  display: inline-flex;
  min-height: auto;
  justify-content: flex-start;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.35;
}
.room-achievement-rate.good { color: var(--green); }
.room-achievement-rate.bad { color: var(--red); }
.room-target-status,
.room-target-difference,
.room-target-change {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.room-target-status {
  min-width: 54px;
  padding: 0 8px;
  border-radius: 6px;
}
.room-target-status.good { color: var(--green); background: #e0f1e7; }
.room-target-status.bad { color: var(--red); background: #f8e5e5; }
.room-target-difference.good,
.room-target-change.good { color: var(--green); }
.room-target-difference.bad,
.room-target-change.bad { color: var(--red); }
.room-target-change.neutral { color: var(--muted); }
.compact-segmented { grid-template-columns: repeat(5, auto); }
.compact-segmented button { min-width: 54px; }

.quality-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.giant-kpi-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.giant-table th,
.giant-table td {
  min-width: 112px;
  text-align: center;
  vertical-align: middle;
}
.giant-table th:first-child,
.giant-table td:first-child { min-width: 104px; }
.quality-card { min-height: 106px; padding: 13px 14px; border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 8px; background: white; color: var(--ink); display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; gap: 6px 12px; text-align: left; box-shadow: var(--shadow); }
.quality-card:hover { border-color: #afbec3; }
.quality-card > span { color: var(--muted); font-size: 12px; }
.quality-card strong { grid-row: span 2; align-self: center; font-size: 26px; font-variant-numeric: tabular-nums; }
.quality-card small { align-self: end; color: var(--muted); font-size: 11px; }
.quality-card.bad { border-left-color: var(--red); }
.quality-card.warn { border-left-color: var(--amber); }
.quality-card.good { border-left-color: var(--green); }
.quality-card.active { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal), var(--shadow); }
.quality-panel { display: none; }
.quality-panel.active { display: block; }
.quality-attribution-table { min-width: 1320px; }
.quality-attribution-table td { vertical-align: middle; }
.quality-session-group-table { min-width: 1180px; }
.quality-session-group-identity { min-width: 150px; display: grid; gap: 2px; }
.quality-session-group-identity strong { color: #2d444c; font-size: 13px; }
.quality-session-group-identity span { color: #465b63; font-size: 12px; }
.quality-session-group-identity small { color: var(--muted); font-size: 10px; }
.quality-no-ad-session-row { display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: baseline; gap: 8px; line-height: 1.5; }
.quality-no-ad-session-row + .quality-no-ad-session-row { margin-top: 5px; padding-top: 5px; border-top: 1px dashed #dce4e6; }
.quality-no-ad-session-row strong { color: #2f464e; font-size: 12px; font-variant-numeric: tabular-nums; }
.quality-no-ad-session-row span { color: var(--muted); font-size: 10px; }
.quality-no-ad-session-details summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #53686f; }
.quality-no-ad-session-details summary strong { color: #9b4e2d; font-size: 12px; }
.quality-no-ad-session-details summary span { color: var(--teal); font-size: 10px; }
.quality-no-ad-session-list { margin-top: 8px; padding: 8px; border: 1px solid #dce4e6; border-radius: 6px; background: #f8faf9; }
.quality-paid-context { display: grid; gap: 3px; }
.quality-paid-context strong { color: #28745d; font-size: 13px; }
.quality-paid-context span { color: #52676f; font-size: 10px; white-space: nowrap; }
.quality-paid-context.empty strong { color: #9b4e2d; }
.quality-paid-context.empty span { color: var(--muted); }
.quality-attribution-header { align-items: flex-end; }
.quality-attribution-identity { min-width: 0; display: grid; gap: 3px; }
.quality-attribution-identity strong { font-size: 12px; }
.quality-attribution-identity small { color: var(--muted); font-size: 10px; }
.quality-attribution-problems { min-width: 220px; display: flex; flex-wrap: wrap; gap: 5px; }
.quality-attribution-review-note {
  width: 100%;
  padding-top: 5px;
  border-top: 1px dashed #d7e1e3;
  color: #65777d;
  font-size: 9px;
  line-height: 1.5;
}
.attribution-review-dialog { width: min(560px, calc(100vw - 24px)); }
.attribution-review-summary {
  margin: 14px 16px 0;
  padding: 11px 12px;
  border: 1px solid #d8e4e5;
  border-radius: 7px;
  background: #f7faf9;
  display: grid;
  gap: 4px;
}
.attribution-review-summary strong { font-size: 13px; }
.attribution-review-summary span { color: #52676f; font-size: 11px; }
.attribution-review-summary small { color: #8a5d20; font-size: 10px; line-height: 1.45; }
.attribution-review-note {
  margin: 12px 16px 0;
  color: #40535b;
  display: grid;
  gap: 6px;
  font-size: 11px;
  font-weight: 750;
}
.attribution-review-note small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}
.quality-subsection-divider { height: 12px; border-top: 1px solid var(--line); background: var(--soft); }
.inline-filter { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.inline-filter select { width: 210px; height: 34px; }
.quality-table { min-width: 940px; table-layout: fixed; }
.quality-table th:nth-child(1) { width: 200px; }
.quality-table th:nth-child(2) { width: 155px; }
.quality-table th:nth-child(3) { width: 95px; }
.quality-table th:nth-child(4) { width: 65px; }
.quality-table th:nth-child(6) { width: 102px; }
.quality-session-header { align-items: flex-end; }
.quality-session-actions { display: flex; align-items: flex-end; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.quality-status-tabs { grid-template-columns: repeat(2, auto); }
.quality-status-tabs button { display: inline-flex; align-items: center; gap: 7px; }
.quality-status-tabs strong { min-width: 22px; padding: 2px 6px; border-radius: 5px; background: rgba(64, 86, 93, .1); font-size: 10px; }
.quality-status-tabs button.active strong { background: rgba(255, 255, 255, .18); }
.quality-session-table { min-width: 920px; table-layout: fixed; }
.quality-session-table th:nth-child(1) { width: 42px; }
.quality-session-table th:nth-child(2) { width: 78px; }
.quality-session-table th:nth-child(3) { width: 105px; }
.quality-session-table th:nth-child(4) { width: 112px; }
.quality-session-table th:nth-child(5) { width: 76px; }
.quality-session-table th:nth-child(6) { width: 185px; }
.quality-session-table th:nth-child(7) { width: 70px; }
.quality-session-table th:nth-child(8) { width: 120px; }
.quality-session-table th:nth-child(9) { width: 112px; }
.quality-session-group-table th:nth-child(1) { width: 42px; }
.quality-session-group-table th:nth-child(2) { width: 88px; }
.quality-session-group-table th:nth-child(3) { width: 175px; }
.quality-session-group-table th:nth-child(4) { width: 120px; }
.quality-session-group-table th:nth-child(5) { width: 285px; }
.quality-session-group-table th:nth-child(6) { width: 150px; }
.quality-session-group-table th:nth-child(7) { width: 145px; }
.quality-session-group-table th:nth-child(8) { width: 112px; }
.quality-session-table .check-column input { width: 16px; height: 16px; }
.quality-session-table small { display: inline-block; margin-top: 4px; white-space: nowrap; }
.candidate-select { width: 100%; min-width: 0; height: 34px; font-size: 11px; }
.table-pagination { min-height: 52px; padding: 8px 12px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.table-pagination > div { display: flex; gap: 5px; }
.session-table-area { min-width: 0; display: flex; flex-direction: column; }
.compact-icon { width: 32px; height: 32px; flex-basis: 32px; }
.compact-icon:disabled, .button:disabled { cursor: not-allowed; opacity: .45; }

.keyword-stack { display: flex; flex-wrap: wrap; gap: 4px; max-width: 220px; }
.keyword { max-width: 200px; overflow: hidden; text-overflow: ellipsis; padding: 3px 6px; border-radius: 5px; background: var(--surface-soft); color: #425158; font-size: 10px; }
.user-status-tabs { width: fit-content; margin-bottom: 12px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: white; display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 3px; box-shadow: var(--shadow); }
.user-status-tabs button { min-height: 38px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); display: grid; grid-template-columns: 17px minmax(0, 1fr) auto; align-items: center; gap: 7px; text-align: left; font-size: 12px; }
.user-status-tabs button:hover { background: var(--surface-soft); color: var(--ink); }
.user-status-tabs button.active { background: var(--teal); color: white; }
.user-status-tabs svg { width: 16px; height: 16px; }
.user-status-tabs strong { min-width: 24px; height: 22px; padding: 0 5px; border-radius: 5px; background: var(--surface-soft); color: #48575d; display: grid; place-items: center; font-size: 10px; font-variant-numeric: tabular-nums; }
.user-status-tabs button.active strong { background: rgba(255,255,255,.18); color: white; }
.user-assignment-notice { margin-bottom: 12px; }
.user-assignment-notice .button.active { background: #e7f2ef; border-color: #9bc5b9; color: #1d6557; }
.user-login-risk-notice { margin-bottom: 12px; border-color: #e5b7b2; background: #fff4f2; }
.user-login-risk-notice .notice-icon { background: #b95852; }
.user-login-risk-notice .notice-icon svg { width: 16px; height: 16px; }
.user-login-risk-notice div span { color: #874b46; }
.user-login-risk-notice .button.active { background: #f8e2df; border-color: #d99c96; color: #913f39; }
.user-status-groups { display: grid; gap: 16px; }
.user-status-section { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: var(--shadow); }
.user-status-section.active { border-top: 3px solid #3e966a; }
.user-status-section.inactive { border-top: 3px solid #9aa7ac; }
.user-status-header { min-height: 70px; padding: 14px 16px; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 11px; }
.user-status-mark { width: 34px; height: 34px; border-radius: 7px; display: grid; place-items: center; }
.user-status-mark svg { width: 19px; height: 19px; }
.user-status-section.active .user-status-mark { background: #def1e6; color: #2f7b55; }
.user-status-section.inactive .user-status-mark { background: #edf0f1; color: #68777d; }
.user-status-header h3 { margin: 0; font-size: 16px; }
.user-status-header p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.user-status-header > strong { min-width: 72px; padding: 5px 8px; border-radius: 6px; background: var(--surface-soft); color: #405057; text-align: center; font-size: 11px; }
.user-role-list { border-top: 1px solid var(--line); }
.user-role-group { border-bottom: 1px solid var(--line); }
.user-role-group:last-child { border-bottom: 0; }
.user-role-group summary { min-height: 54px; padding: 8px 14px; cursor: pointer; list-style: none; display: grid; grid-template-columns: 18px 32px minmax(0, 1fr) auto; align-items: center; gap: 9px; user-select: none; }
.user-role-group summary::-webkit-details-marker { display: none; }
.user-role-group summary:hover { background: #f7faf9; }
.user-role-chevron { width: 16px; height: 16px; color: var(--muted); transition: transform .15s ease; }
.user-role-group[open] .user-role-chevron { transform: rotate(90deg); }
.user-role-icon { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; }
.user-role-icon svg { width: 16px; height: 16px; }
.user-role-icon.admin { background: #e1ebf6; color: #285c95; }
.user-role-icon.mapping { background: #f7ead6; color: #8b550f; }
.user-role-icon.execution { background: var(--teal-soft); color: var(--teal); }
.user-role-icon.operation { background: #e6f1ec; color: #28634f; }
.user-role-icon.media { background: #f9e7e2; color: #9b3f2d; }
.user-role-copy { min-width: 0; display: grid; gap: 2px; }
.user-role-copy strong { font-size: 13px; }
.user-role-copy small { color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-role-count { min-width: 70px; color: var(--muted); text-align: right; font-size: 11px; font-variant-numeric: tabular-nums; }
.user-role-table-wrap { border-top: 1px solid var(--line); }

.user-new-group {
  display: grid;
  grid-template-columns: 110px minmax(180px, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.media-staffing-header {
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}
.media-staffing-filters {
  min-width: 0;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.media-staffing-filter {
  min-width: 190px;
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.media-staffing-filter > span {
  margin: 0;
  font-size: 11px;
}
.media-staffing-filter select,
.media-staffing-filter input {
  width: 220px;
  height: 34px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink);
  font-size: 11px;
}
.media-staffing-date-filter { min-width: 230px; }
.media-staffing-date-filter > div { position: relative; }
.media-staffing-date-filter input {
  width: 230px;
  padding-left: 34px;
  cursor: pointer;
}
.media-staffing-date-filter svg {
  position: absolute;
  z-index: 1;
  top: 9px;
  left: 10px;
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}
.media-selection-summary {
  min-height: 30px;
  margin: 0;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.media-selection-summary.active {
  border-color: #9bc5b9;
  background: #e7f2ef;
  color: #1d6557;
}
#media-claim-button:disabled {
  border-color: #bdd0cc;
  background: #dce8e5;
  color: #315c54;
  opacity: 1;
}
.media-staffing-header #media-claim-button span,
.media-staffing-header #media-release-button span {
  margin-top: 0;
  color: inherit;
  font-size: inherit;
  font-weight: 700;
}
#media-release-button:disabled {
  border-color: #dccdab;
  background: #f7f1e5;
  color: #725b31;
  opacity: 1;
}

.media-staffing-table th,
.media-staffing-table td {
  white-space: nowrap;
}

.media-staffing-table td small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.advertiser-kpi-grid {
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}
.advertiser-kpi-grid .update-stat { min-width: 0; }
.advertiser-kpi-grid .update-stat strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.advertiser-ledger-panel { overflow: hidden; }
.advertiser-ledger-toolbar {
  min-height: 62px;
  align-items: center;
  gap: 14px;
}
.advertiser-status-tabs {
  flex: 0 0 auto;
  grid-template-columns: repeat(6, auto);
}
.advertiser-status-tabs button {
  min-width: 84px;
  height: 34px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.advertiser-status-tabs button b {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 5px;
  background: var(--surface-soft);
  color: #47575d;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.advertiser-status-tabs button.active b {
  background: rgba(255,255,255,.18);
  color: white;
}
.advertiser-ledger-filters {
  min-width: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.advertiser-ledger-filters .inline-filter {
  min-width: 210px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}
.advertiser-ledger-filters .inline-filter > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.advertiser-ledger-filters select { min-width: 0; }
.advertiser-search {
  width: 250px;
  min-width: 190px;
  position: relative;
  display: block;
}
.advertiser-search > svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 11px;
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%);
}
.advertiser-search input {
  width: 100%;
  height: 38px;
  padding-left: 34px;
}
.advertiser-backfill-notice { margin: 0 12px 12px; }
.advertiser-backfill-notice span { display: block; margin-top: 4px; }
.advertiser-ledger-table {
  width: 100%;
  min-width: 1129px;
  table-layout: fixed;
}
.advertiser-ledger-table th:nth-child(1) { width: 90px; }
.advertiser-ledger-table th:nth-child(2) { width: 126px; }
.advertiser-ledger-table th:nth-child(3) { width: 145px; }
.advertiser-ledger-table th:nth-child(4) { width: 180px; }
.advertiser-ledger-table th:nth-child(5) { width: 150px; }
.advertiser-ledger-table th:nth-child(6) { width: 96px; }
.advertiser-ledger-table th:nth-child(7) { width: 58px; }
.advertiser-ledger-table th:nth-child(8) { width: 88px; }
.advertiser-ledger-table th:nth-child(9) { width: 74px; }
.advertiser-ledger-table th:nth-child(10) { width: 122px; }
.advertiser-ledger-table th,
.advertiser-ledger-table td { vertical-align: middle; }
.advertiser-ledger-table td strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.advertiser-ledger-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}
.advertiser-ledger-table .advertiser-wrap-cell {
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.45;
}
.advertiser-auth-status {
  position: relative;
  padding-left: 13px;
  color: #45545a;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}
.advertiser-auth-status::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7d898e;
  transform: translateY(-50%);
}
.advertiser-auth-status.authorized { color: var(--green); }
.advertiser-auth-status.authorized::before { background: var(--green); }
.advertiser-auth-status.pending { color: var(--amber); }
.advertiser-auth-status.pending::before { background: var(--amber); }
.advertiser-auth-status.checking { color: var(--amber); }
.advertiser-auth-status.checking::before { background: var(--amber); }
.advertiser-auth-status.lost { color: var(--red); }
.advertiser-auth-status.lost::before { background: var(--red); }
.advertiser-row-pending td { background: #fffaf1; }
.advertiser-row-checking td { background: #fffaf1; }
.advertiser-row-lost td { background: #fafbfb; color: #59676d; }
.advertiser-active-dates {
  color: #34444b;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
}
.advertiser-active-dates > span { color: var(--muted); }
.muted-value { color: var(--muted); }

@media (max-width: 1180px) {
  .advertiser-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .advertiser-ledger-toolbar { align-items: flex-start; flex-direction: column; }
  .advertiser-ledger-filters { width: 100%; margin-left: 0; justify-content: flex-start; }
}

@media (max-width: 760px) {
  .advertiser-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .advertiser-ledger-toolbar { padding: 10px; }
  .advertiser-status-tabs {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }
  .advertiser-ledger-filters { align-items: stretch; flex-direction: column; }
  .advertiser-ledger-filters .inline-filter,
  .advertiser-search { width: 100%; min-width: 0; }
}

.operation-review-heading {
  align-items: center;
}

.operation-review-run-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #d9e0e2;
  border-radius: 6px;
  color: #56676e;
  background: #f7f9f9;
  font-size: 13px;
  font-weight: 700;
}

.operation-review-run-status.success {
  border-color: #b9d8cf;
  color: #126b5f;
  background: #eef7f4;
}

.operation-review-run-status.running,
.operation-review-run-status.partial {
  border-color: #e5c790;
  color: #8b5a0b;
  background: #fff8eb;
}

.operation-review-run-status.failed {
  border-color: #e3b4ae;
  color: #a13930;
  background: #fff2f0;
}

.operation-review-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.operation-review-kpis .update-stat {
  min-width: 0;
}

.operation-review-kpis .update-stat strong {
  font-size: 25px;
}

.operation-review-filters {
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 13px 15px;
  margin-bottom: 10px;
  border-top: 1px solid #dce3e5;
  border-bottom: 1px solid #dce3e5;
  background: #f8fafb;
}

.operation-review-mode {
  flex: 0 0 auto;
  align-self: center;
}

.operation-review-filters .inline-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  min-width: 145px;
  max-width: 220px;
}

.operation-review-filters .inline-filter > span {
  width: auto;
  color: #52636a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.operation-review-filters .inline-filter select {
  width: 100%;
}

.operation-review-filters .inline-filter:first-of-type {
  min-width: 210px;
  max-width: 290px;
}

.operation-review-search {
  flex: 1 1 220px;
  min-width: 190px;
}

.operation-review-note {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin-bottom: 12px;
  color: #5d6c72;
  font-size: 13px;
}

.operation-review-note svg {
  width: 17px;
  height: 17px;
  color: #2b6f8a;
}

.operation-learning-panel {
  margin-bottom: 12px;
}

.operation-learning-header {
  align-items: center;
}

.operation-learning-level {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid #d8c28f;
  border-radius: 5px;
  color: #795716;
  background: #fff8e9;
  font-size: 13px;
  font-weight: 800;
}

.operation-learning-level.ready {
  border-color: #afd2c8;
  color: #12665c;
  background: #edf7f4;
}

.operation-learning-overview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid #e2e8ea;
  border-bottom: 1px solid #e2e8ea;
}

.operation-learning-overview > div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid #e2e8ea;
}

.operation-learning-overview > div:last-child {
  border-right: 0;
}

.operation-learning-overview span,
.operation-learning-overview small {
  color: #64737a;
  font-size: 12px;
}

.operation-learning-overview strong {
  color: #1f3036;
  font-size: 23px;
  line-height: 1.2;
}

.operation-learning-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 14px;
  padding-top: 14px;
}

.operation-learning-tactics {
  min-width: 0;
}

.operation-learning-tactics .subsection-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.operation-learning-tactics .subsection-heading strong,
.operation-learning-boundary > strong {
  color: #23343a;
  font-size: 15px;
  font-weight: 800;
}

.operation-learning-tactics .subsection-heading span {
  color: #69787e;
  font-size: 12px;
}

.operation-learning-tactics table {
  min-width: 980px;
}

.operation-learning-tactics th,
.operation-learning-tactics td {
  padding: 9px 10px;
  font-size: 12px;
  vertical-align: middle;
}

.operation-learning-tactics th {
  font-size: 13px;
}

.operation-learning-tactics td:first-child {
  min-width: 130px;
}

.operation-learning-tactics td:first-child strong,
.operation-learning-tactics td:first-child small {
  display: block;
}

.operation-learning-tactics td:first-child small {
  margin-top: 2px;
  color: #728087;
}

.operation-learning-tactics .good-text {
  color: #157064;
  font-weight: 700;
}

.operation-learning-tactics .bad-text {
  color: #b03c34;
  font-weight: 700;
}

.operation-learning-boundary {
  padding-left: 14px;
  border-left: 1px solid #e1e7e9;
}

.operation-learning-boundary > div {
  display: grid;
  gap: 4px;
  margin: 10px 0 12px;
}

.operation-learning-boundary > div > div {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 31px;
  padding: 5px 0;
  border-bottom: 1px solid #edf1f2;
  color: #405159;
  font-size: 12px;
}

.operation-learning-boundary svg {
  width: 16px;
  height: 16px;
}

.operation-learning-boundary .enabled svg,
.operation-learning-boundary .enabled b {
  color: #157064;
}

.operation-learning-boundary .locked svg,
.operation-learning-boundary .locked b {
  color: #8b671f;
}

.operation-learning-boundary b {
  font-size: 11px;
}

.operation-learning-boundary p {
  margin: 0;
  color: #68777e;
  font-size: 12px;
  line-height: 1.65;
}

.operation-review-visuals {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(330px, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.operation-review-chart-panel,
.operation-review-operator-panel {
  min-width: 0;
}

.operation-review-chart {
  width: 100%;
  height: 310px;
}

.operation-review-operator-list {
  display: grid;
  gap: 3px;
  max-height: 310px;
  overflow: auto;
}

.operation-review-operator-row {
  display: grid;
  grid-template-columns: 26px minmax(135px, 1fr) minmax(70px, .7fr) 52px;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  padding: 5px 7px;
  border: 0;
  border-bottom: 1px solid #edf1f2;
  border-radius: 0;
  color: #2f3c42;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.operation-review-operator-row:hover {
  background: #f3f7f7;
}

.operation-review-operator-rank {
  color: #819097;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.operation-review-operator-name {
  min-width: 0;
}

.operation-review-operator-name strong,
.operation-review-operator-name small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operation-review-operator-name strong {
  font-size: 13px;
}

.operation-review-operator-name small {
  margin-top: 2px;
  color: #7a898f;
  font-size: 11px;
}

.operation-review-operator-bar {
  height: 7px;
  overflow: hidden;
  background: #e7ecee;
}

.operation-review-operator-bar i {
  display: block;
  height: 100%;
  background: #267870;
}

.operation-review-operator-row b {
  color: #27363c;
  font-size: 14px;
  text-align: right;
}

.operation-review-table-panel {
  min-width: 0;
}

.operation-review-table {
  width: 100%;
  min-width: 1500px;
  table-layout: fixed;
}

.operation-review-table th:nth-child(1) { width: 105px; }
.operation-review-table th:nth-child(2) { width: 135px; }
.operation-review-table th:nth-child(3) { width: 205px; }
.operation-review-table th:nth-child(4) { width: 215px; }
.operation-review-table th:nth-child(5) { width: 330px; }
.operation-review-table th:nth-child(6),
.operation-review-table th:nth-child(7) { width: 165px; }
.operation-review-table th:nth-child(8) { width: 205px; }

.operation-review-table td {
  vertical-align: top;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.operation-review-table td > strong,
.operation-review-table td > span,
.operation-review-table td > small {
  display: block;
}

.operation-review-table td > strong {
  color: #27363c;
  font-size: 13px;
}

.operation-review-table td > span,
.operation-review-table td > small {
  margin-top: 3px;
  color: #718087;
  font-size: 11px;
}

.operation-time span {
  margin-top: 2px;
  color: #576970;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.operation-account strong,
.operation-object strong {
  margin-top: 6px;
}

.operation-category,
.operation-impact-badge {
  display: inline-flex !important;
  width: fit-content;
  min-height: 22px;
  align-items: center;
  padding: 0 7px;
  border-radius: 4px;
  font-size: 11px !important;
  font-weight: 800;
}

.operation-category.budget { color: #9a5310; background: #fff1df; }
.operation-category.bid { color: #245f99; background: #eaf2fb; }
.operation-category.status { color: #993d35; background: #fff0ee; }
.operation-category.schedule { color: #6a5298; background: #f2edfa; }
.operation-category.targeting { color: #176a61; background: #eaf6f3; }
.operation-category.creative { color: #8b3f68; background: #faedf4; }
.operation-category.create { color: #456b24; background: #eff6e9; }
.operation-category.other { color: #59686f; background: #eef2f3; }

.operation-content strong {
  margin-bottom: 5px;
}

.operation-content span {
  position: relative;
  padding-left: 10px;
  color: #3f5057 !important;
  font-size: 12px !important;
}

.operation-content span::before {
  position: absolute;
  top: 8px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8b989e;
  content: "";
}

.operation-metric-cell strong,
.operation-metric-cell span {
  display: block;
}

.operation-metric-cell strong {
  margin-bottom: 5px;
  color: #4c5e65;
  font-size: 12px;
}

.operation-metric-cell span {
  margin-top: 3px;
  color: #34474e;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.operation-metric-cell.empty span {
  color: #9aa5aa;
}

.operation-impact-badge.good { color: #126b5f; background: #e8f5f1; }
.operation-impact-badge.bad { color: #a13930; background: #fff0ee; }
.operation-impact-badge.warn { color: #915c09; background: #fff4df; }
.operation-impact-badge.neutral { color: #355e7d; background: #edf4f8; }
.operation-impact-badge.muted { color: #68777e; background: #eef2f3; }

.operation-impact > strong {
  margin-top: 7px;
  font-size: 12px !important;
}

.operation-impact > small {
  color: #51636a !important;
  font-size: 11px !important;
}

@media (max-width: 1500px) {
  .operation-review-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .operation-learning-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .operation-learning-overview > div:nth-child(3) {
    border-right: 0;
  }

  .operation-learning-overview > div:nth-child(-n + 3) {
    border-bottom: 1px solid #e2e8ea;
  }

  .operation-review-filters {
    flex-wrap: wrap;
  }

  .operation-review-search {
    flex-basis: 300px;
  }
}

@media (max-width: 1050px) {
  .operation-review-visuals {
    grid-template-columns: 1fr;
  }

  .operation-learning-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .operation-learning-boundary {
    padding: 12px 0 0;
    border-top: 1px solid #e1e7e9;
    border-left: 0;
  }

  .operation-review-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .operation-review-kpis {
    grid-template-columns: 1fr;
  }

  .operation-learning-overview {
    grid-template-columns: 1fr;
  }

  .operation-learning-overview > div {
    border-right: 0;
    border-bottom: 1px solid #e2e8ea;
  }

  .operation-learning-overview > div:last-child {
    border-bottom: 0;
  }

  .operation-review-filters {
    align-items: stretch;
  }

  .operation-review-mode,
  .operation-review-filters .inline-filter,
  .operation-review-search {
    width: 100%;
    max-width: none;
  }
}
.media-target-board {
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 3px solid #8a6d35;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}
.media-target-head {
  min-height: 76px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.media-target-head > div:first-child { min-width: 0; display: grid; gap: 3px; }
.media-target-head h2 { color: #293f47; font-size: 19px; }
.media-target-head small { color: var(--muted); font-size: 11px; }
.media-target-head-actions { display: flex; align-items: center; gap: 8px; }
.media-target-cycle-mode { grid-template-columns: repeat(2, minmax(96px, 1fr)); }
.media-target-cycle-mode button { min-width: 96px; gap: 5px; font-size: 12px; font-weight: 800; }
.media-target-cycle-mode svg { width: 14px; height: 14px; }
.media-target-week-navigation { min-width: 0; display: flex; align-items: flex-end; gap: 5px; }
.media-target-week-navigation > .icon-button { width: 34px; height: 34px; flex: 0 0 34px; }
.media-target-week-navigation > .button { height: 34px; }
.media-target-basis { grid-template-columns: repeat(2, minmax(74px, 1fr)); }
.media-target-basis button { min-width: 74px; font-size: 12px; font-weight: 800; }
.media-target-week-field-head { min-width: 144px; }
.media-target-plan-status { border-bottom: 1px solid var(--line); background: #f8faf9; }
.media-target-plan-status > header {
  min-height: 64px;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.media-target-plan-status > header > div:first-child { min-width: 0; display: grid; gap: 2px; }
.media-target-plan-status h3 { color: #2d454d; font-size: 16px; }
.media-target-plan-status header small { color: var(--muted); font-size: 11px; }
.media-target-plan-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.media-target-plan-steps {
  border-top: 1px solid #e5ebea;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.media-target-plan-step {
  min-width: 0;
  min-height: 78px;
  padding: 13px 15px;
  border-left: 1px solid #e2e8e7;
  display: flex;
  align-items: center;
  gap: 10px;
}
.media-target-plan-step:first-child { border-left: 0; }
.media-target-plan-step > span {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  border-radius: 6px;
  background: #e9edef;
  color: #6e7c82;
  display: grid;
  place-items: center;
}
.media-target-plan-step > span svg { width: 16px; height: 16px; }
.media-target-plan-step.active > span { background: #f7ead8; color: #9b631d; }
.media-target-plan-step.complete > span { background: #dff0e9; color: #187257; }
.media-target-plan-step > div { min-width: 0; display: grid; gap: 3px; }
.media-target-plan-step small { color: #64767d; font-size: 10px; font-weight: 800; }
.media-target-plan-step strong { color: #2d444c; font-size: 17px; font-variant-numeric: tabular-nums; }
.media-target-plan-step > div > i { width: 100%; height: 4px; overflow: hidden; border-radius: 4px; background: #e2e8e9; }
.media-target-plan-step > div > i u { display: block; height: 100%; border-radius: inherit; background: #c08a3f; text-decoration: none; }
.media-target-plan-step.complete > div > i u { background: #2b8a70; }
.media-target-draft-panel { border-bottom: 1px solid var(--line); background: #fff; }
.media-target-draft-panel > header {
  min-height: 58px;
  padding: 10px 16px;
  border-top: 1px solid #edf1f1;
  border-bottom: 1px solid #e4eaeb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.media-target-draft-panel > header > div { min-width: 0; display: grid; gap: 2px; }
.media-target-draft-panel h3 { color: #2e454d; font-size: 15px; }
.media-target-draft-panel header small { color: var(--muted); font-size: 10px; }
.media-target-draft-panel header > span { padding: 4px 7px; border-radius: 5px; background: #f5ead9; color: #8f5c1c; font-size: 10px; font-weight: 850; }
.media-target-draft-list { max-height: 490px; overflow: auto; }
.media-target-draft-card {
  min-width: 0;
  min-height: 78px;
  padding: 11px 16px;
  border-bottom: 1px solid #edf1f2;
  box-shadow: inset 3px 0 0 #9eabb0;
  display: grid;
  grid-template-columns: minmax(170px, 1.1fr) minmax(120px, .7fr) minmax(150px, .85fr) minmax(200px, 1.1fr) 116px;
  align-items: center;
  gap: 13px;
}
.media-target-draft-card:last-child { border-bottom: 0; }
.media-target-draft-card.expand,
.media-target-draft-card.unbounded { box-shadow: inset 3px 0 0 #268169; }
.media-target-draft-card.reduce,
.media-target-draft-card.no-capacity { box-shadow: inset 3px 0 0 #b84e55; }
.media-target-draft-card.data-anomaly,
.media-target-draft-card.missing-standard { box-shadow: inset 3px 0 0 #bf7c2f; }
.media-target-draft-identity { min-width: 0; display: grid; gap: 3px; }
.media-target-draft-identity > span { min-width: 0; display: flex; align-items: center; gap: 7px; }
.media-target-draft-identity strong { overflow: hidden; color: #293f47; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.media-target-draft-identity small { color: #718188; font-size: 10px; }
.media-target-draft-metric { min-width: 0; display: grid; gap: 3px; }
.media-target-draft-metric small { color: #718188; font-size: 9px; font-weight: 750; }
.media-target-draft-metric strong { overflow: hidden; color: #2f454d; font-size: 13px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.media-target-draft-roi { min-width: 0; display: flex; align-items: center; gap: 12px; }
.media-target-draft-roi span { min-width: 0; color: #708087; display: grid; gap: 2px; font-size: 9px; }
.media-target-draft-roi strong { color: #30474f; font-size: 12px; font-variant-numeric: tabular-nums; }
.media-target-draft-action { display: flex; justify-content: flex-end; }
.media-target-draft-action .button { white-space: nowrap; }
.media-target-draft-state { color: #7b898e; font-size: 10px; font-weight: 750; text-align: right; }
.media-target-period-grid { padding: 14px 16px; background: #f6f8f8; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.media-target-period-empty { grid-column: 1 / -1; min-height: 112px; padding: 20px; border: 1px dashed #cfdada; border-radius: 7px; background: #fff; display: flex; align-items: center; justify-content: center; gap: 12px; color: #6d7f85; }
.media-target-period-empty svg { width: 24px; height: 24px; color: #2f8178; }
.media-target-period-empty span { display: grid; gap: 4px; }
.media-target-period-empty strong { color: #30474f; font-size: 15px; }
.media-target-period-empty small { color: var(--muted); font-size: 11px; }
.media-target-period-card { min-width: 0; overflow: hidden; border: 1px solid #dce5e5; border-radius: 7px; background: white; }
.media-target-period-card > header { min-height: 58px; padding: 10px 12px; border-bottom: 1px solid #e8eded; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.media-target-period-card > header > span { min-width: 0; display: grid; gap: 2px; }
.media-target-period-card > header strong { color: #2b4149; font-size: 15px; }
.media-target-period-card > header small { color: var(--muted); font-size: 10px; }
.media-target-period-card > header > em { padding: 4px 7px; border-radius: 5px; background: #eef2f3; color: #64747a; font-size: 10px; font-style: normal; font-weight: 850; white-space: nowrap; }
.media-target-period-card > header > em.good { background: #e5f3ee; color: #14775f; }
.media-target-period-card > header > em.warn { background: #fbefdf; color: #965c18; }
.media-target-period-metrics { padding: 11px 12px 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.media-target-progress-metric { min-width: 0; display: grid; gap: 6px; }
.media-target-progress-metric > span { min-width: 0; display: grid; gap: 2px; }
.media-target-progress-metric b { color: #52666d; font-size: 10px; }
.media-target-progress-metric em { overflow: hidden; color: #2f454d; font-size: 12px; font-style: normal; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.media-target-progress-metric > i { height: 5px; overflow: hidden; border-radius: 5px; background: #e8edef; }
.media-target-progress-metric > i > u { display: block; height: 100%; border-radius: inherit; background: #2a8b80; text-decoration: none; }
.media-target-period-card > footer { min-height: 42px; padding: 8px 12px; border-top: 1px solid #edf1f1; background: #fbfcfc; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #66787e; font-size: 10px; }
.media-target-period-card > footer strong { color: #30474f; font-size: 12px; }
.media-target-priority { border-top: 1px solid var(--line); background: #fff; }
.media-target-priority > header { min-height: 66px; padding: 11px 16px; border-bottom: 1px solid #e5ebec; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.media-target-priority > header > div:first-child { min-width: 0; display: grid; gap: 2px; }
.media-target-priority h3 { color: #30464e; font-size: 16px; }
.media-target-priority header small { color: var(--muted); font-size: 10px; }
.media-target-priority-filter { grid-template-columns: repeat(3, minmax(76px, 1fr)); }
.media-target-priority-filter button { min-width: 76px; font-size: 11px; font-weight: 800; }
.media-target-priority-list { max-height: 520px; overflow: auto; }
.media-target-priority-item { min-width: 0; min-height: 86px; padding: 10px 12px; border-bottom: 1px solid #edf1f2; display: grid; grid-template-columns: 28px minmax(150px, .85fr) minmax(190px, 1.15fr) minmax(330px, 1.8fr) auto; align-items: center; gap: 12px; }
.media-target-priority-item:last-child { border-bottom: 0; }
.media-target-priority-item.bad { box-shadow: inset 3px 0 0 #bd4c52; }
.media-target-priority-item.warn { box-shadow: inset 3px 0 0 #c98534; }
.media-target-priority-rank { width: 25px; height: 25px; border-radius: 50%; background: #eef2f3; color: #63747a; display: grid; place-items: center; font-size: 10px; font-weight: 900; }
.media-target-priority-item.bad .media-target-priority-rank { background: #f7e7e8; color: #a54047; }
.media-target-priority-item.warn .media-target-priority-rank { background: #fbefdf; color: #965c18; }
.media-target-priority-identity { min-width: 0; display: grid; gap: 3px; }
.media-target-priority-identity > span { min-width: 0; display: flex; align-items: center; gap: 6px; }
.media-target-priority-identity strong { overflow: hidden; color: #2d434b; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.media-target-priority-identity small { overflow: hidden; color: #718188; display: flex; align-items: center; gap: 4px; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.media-target-priority-identity svg { width: 11px; height: 11px; flex: 0 0 auto; }
.media-target-priority-diagnosis { min-width: 0; display: grid; gap: 4px; }
.media-target-priority-diagnosis strong { color: #3b5057; font-size: 11px; line-height: 1.45; }
.media-target-priority-diagnosis small { color: #809096; font-size: 9px; }
.media-target-priority-metrics { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(92px, 1fr)); }
.media-target-priority-metrics > span { min-width: 0; padding: 0 10px; border-left: 1px solid #e4eaeb; display: grid; gap: 2px; }
.media-target-priority-metrics small { color: #718188; font-size: 9px; }
.media-target-priority-metrics strong { color: #2e464e; font-size: 12px; font-variant-numeric: tabular-nums; }
.media-target-priority-metrics em { overflow: hidden; color: #839197; font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.media-target-priority-item > .button { justify-self: end; white-space: nowrap; }
.media-target-priority-empty { min-height: 120px; padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: #708187; }
.media-target-priority-empty svg { width: 24px; height: 24px; color: #378174; }
.media-target-priority-empty strong { color: #354b52; font-size: 13px; }
.media-target-priority-empty span { font-size: 10px; }
.media-target-tree-head { min-height: 64px; padding: 11px 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.media-target-tree-head > div { display: grid; gap: 3px; }
.media-target-tree-head h3 { color: #30464e; font-size: 15px; }
.media-target-tree-head > div > span { color: var(--muted); font-size: 10px; }
.media-target-week-field { display: grid; gap: 4px; }
.media-target-week-field > span { color: #677a80; font-size: 9px; font-weight: 800; }
.media-target-week-field input { width: 150px; height: 34px; font-size: 11px; }
.media-target-table-scroll { max-height: 620px; }
.media-target-table { min-width: 1130px; table-layout: fixed; }
.media-target-table th { height: 42px; padding: 0 10px; background: #f4f7f7; color: #334951; font-size: 12px; font-weight: 850; }
.media-target-table th:nth-child(1) { width: 145px; }
.media-target-table th:nth-child(2) { width: 170px; }
.media-target-table th:nth-child(3) { width: 135px; }
.media-target-table th:nth-child(4) { width: 150px; }
.media-target-table th:nth-child(5), .media-target-table th:nth-child(6) { width: 160px; }
.media-target-table th:nth-child(7) { width: 110px; }
.media-target-table th:nth-child(8) { width: 100px; }
.media-target-table td { min-height: 70px; padding: 9px 10px; vertical-align: middle; font-size: 11px; }
.media-target-row.level-project td { background: #fcfdfd; }
.media-target-row.is-focus td { animation: media-target-row-focus 1.8s ease; }
@keyframes media-target-row-focus {
  0%, 100% { background: inherit; }
  25%, 70% { background: #fff3d9; }
}
.media-target-identity { min-width: 0; position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 7px; }
.media-target-identity.level-room { padding-left: 16px; }
.media-target-identity.level-anchor { padding-left: 32px; }
.media-target-identity.level-room::before, .media-target-identity.level-anchor::before { content: ""; position: absolute; top: 8px; left: 3px; width: 8px; height: 10px; border-bottom: 1px solid #aebdc1; border-left: 1px solid #aebdc1; }
.media-target-identity.level-anchor::before { left: 19px; }
.media-target-level { grid-row: 1 / 3; padding: 3px 5px; border-radius: 4px; background: #e8f1f0; color: #317268; font-size: 9px; font-weight: 850; }
.media-target-identity.level-room .media-target-level { background: #e9eff5; color: #47708f; }
.media-target-identity.level-anchor .media-target-level { background: #f5ecdf; color: #956625; }
.media-target-identity strong { overflow: hidden; color: #2b4149; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.media-target-identity small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.media-target-values, .media-target-allocation { display: grid; gap: 3px; }
.media-target-values strong, .media-target-allocation strong { color: #344a52; font-size: 12px; }
.media-target-values small, .media-target-allocation small { color: #708188; font-size: 10px; }
.media-target-completion-cell { display: grid; gap: 3px; }
.media-target-completion-cell > span { display: flex; align-items: center; gap: 6px; }
.media-target-completion-cell > span > strong { color: #344b53; font-size: 12px; }
.media-target-completion-cell small { color: #708087; font-size: 10px; }
.media-target-status { padding: 3px 5px; border-radius: 4px; background: #eef2f3; color: #63747a; font-size: 9px; font-style: normal; font-weight: 850; }
.media-target-status.good { background: #e3f1ec; color: #14775f; }
.media-target-status.warn { background: #fbefdf; color: #965c18; }
.media-target-status.bad { background: #f8e6e7; color: #a33e45; }
.media-target-leaf { color: #8a989d; font-size: 10px; }
.media-target-row-actions { white-space: nowrap; }
.media-target-row-actions .icon-button { width: 30px; height: 30px; margin-right: 3px; }
.media-target-row-actions .icon-button.danger { color: #a84b50; }
.media-target-empty {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.media-target-empty strong { color: #31484f; font-size: 15px; }
.media-target-empty span { color: var(--muted); font-size: 11px; }
.media-target-empty .button { margin-top: 4px; }
.media-target-advice { display: grid; gap: 4px; }
.media-target-advice > span { display: flex; align-items: center; gap: 6px; }
.media-target-advice > span > em { padding: 3px 5px; border-radius: 4px; background: #edf1f2; color: #65757b; font-size: 9px; font-style: normal; font-weight: 850; }
.media-target-advice > span > em.expand, .media-target-advice > span > em.unbounded { background: #e3f2ec; color: #13735d; }
.media-target-advice > span > em.reduce, .media-target-advice > span > em.no-capacity { background: #f7e5e7; color: #a13d48; }
.media-target-advice > span > em.at-capacity { background: #e9eff5; color: #426c8b; }
.media-target-advice > span > em.data-anomaly, .media-target-advice > span > em.missing-standard { background: #fbefdf; color: #965c18; }
.media-target-advice > span > strong { color: #2f454d; font-size: 12px; }
.media-target-advice small { color: #6f8086; font-size: 10px; line-height: 1.45; }
.media-target-advice button { width: max-content; padding: 0; border: 0; background: transparent; color: #23766c; font-size: 9px; font-weight: 850; cursor: pointer; }
.media-target-dialog { width: min(760px, calc(100vw - 24px)); }
.media-target-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.media-target-model-hint { margin: 0 16px 12px; padding: 10px 12px; border: 1px solid #d8e5e3; border-radius: 6px; background: #f6faf9; color: #57716a; font-size: 10px; line-height: 1.55; }
.media-target-model-hint strong { color: #2f5f57; font-size: 11px; }
.media-target-model-hint .media-target-model-actions { margin-top: 7px; display: flex; align-items: center; gap: 8px; }
.media-target-parent-hint { margin: 0 16px 12px; padding: 9px 10px; border: 1px solid #d8e5e3; border-radius: 6px; background: #f2f8f6; color: #557068; font-size: 11px; }
.media-target-parent-hint strong { color: #2f5f57; }
.media-dashboard-command,
.media-dashboard-review {
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.media-dashboard-command { border-top: 3px solid #28796f; }
.media-dashboard-review { border-top: 3px solid #4d718a; }
.media-dashboard-command-head,
.media-dashboard-review-head,
.media-dashboard-analysis-head {
  min-height: 72px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.media-dashboard-command-head,
.media-dashboard-review-head { border-bottom: 1px solid var(--line); }
.media-dashboard-command-head > div:first-child,
.media-dashboard-review-head > div:first-child,
.media-dashboard-analysis-head > div:first-child { min-width: 0; display: grid; gap: 3px; }
.media-dashboard-command-head h2,
.media-dashboard-review-head h2,
.media-dashboard-analysis-head h2 { color: #293f47; font-size: 19px; }
.media-dashboard-command-head small,
.media-dashboard-review-head small,
.media-dashboard-analysis-head small { color: var(--muted); font-size: 11px; }
.media-dashboard-kicker {
  color: #668087;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}
.media-dashboard-live-status { display: flex; align-items: center; gap: 9px; }
.media-dashboard-live-status > span {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 5px;
  background: #e8f3f0;
  color: #176c60;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
}
.media-dashboard-live-status > span.warn { background: #fbefdf; color: #965c18; }
.media-dashboard-live-status > span.bad { background: #f9e7e8; color: #a33e45; }
.media-dashboard-live-kpis,
.media-dashboard-review-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.media-dashboard-live-kpi,
.media-dashboard-review-kpi {
  min-width: 0;
  min-height: 102px;
  padding: 14px 15px;
  border-right: 1px solid var(--line);
  display: grid;
  align-content: center;
  gap: 5px;
}
.media-dashboard-live-kpi:last-child,
.media-dashboard-review-kpi:last-child { border-right: 0; }
.media-dashboard-live-kpi > span,
.media-dashboard-review-kpi > span { color: #62757c; font-size: 11px; font-weight: 800; }
.media-dashboard-live-kpi > strong,
.media-dashboard-review-kpi > strong {
  overflow: hidden;
  color: #273c44;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-dashboard-live-kpi > small,
.media-dashboard-review-kpi > small { color: #7a8a8f; font-size: 10px; font-weight: 700; }
.media-dashboard-live-kpi > small.good,
.media-dashboard-review-kpi > small.good { color: #14775f; }
.media-dashboard-live-kpi > small.bad,
.media-dashboard-review-kpi > small.bad { color: #b13f45; }
.media-dashboard-live-kpi > small.info,
.media-dashboard-review-kpi > small.info { color: #356b97; }
.media-dashboard-command-body { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); }
.media-dashboard-workflow { border-right: 1px solid var(--line); }
.media-dashboard-subhead,
.media-dashboard-decision-head {
  min-height: 58px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.media-dashboard-subhead h3,
.media-dashboard-decision-head h3 { color: #344a52; font-size: 14px; }
.media-dashboard-subhead span,
.media-dashboard-decision-head span { color: var(--muted); font-size: 10px; }
#media-dashboard-workflow,
#media-dashboard-live-session-list { min-height: 214px; }
.media-workflow-row,
.media-live-session-row {
  min-height: 68px;
  padding: 10px 15px;
  border-bottom: 1px solid #edf1f2;
  display: grid;
  align-items: center;
  gap: 10px;
}
.media-workflow-row { grid-template-columns: 30px minmax(0, 1fr) auto; }
.media-workflow-row:last-child,
.media-live-session-row:last-child { border-bottom: 0; }
.media-workflow-index {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #edf3f2;
  color: #286f67;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
}
.media-workflow-row.warn .media-workflow-index { background: #fbefdf; color: #965c18; }
.media-workflow-row.bad .media-workflow-index { background: #f8e7e8; color: #a33e45; }
.media-workflow-row > div:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.media-workflow-row strong { color: #30464e; font-size: 12px; }
.media-workflow-row small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.media-live-session-row { grid-template-columns: minmax(130px, 1.15fr) repeat(4, minmax(74px, .7fr)) minmax(110px, 1fr); }
.media-live-session-account { min-width: 0; display: grid; gap: 3px; }
.media-live-session-account strong { overflow: hidden; color: #30464e; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.media-live-session-account small { color: var(--muted); font-size: 10px; }
.media-live-session-metric { min-width: 0; display: grid; gap: 2px; }
.media-live-session-metric span { color: #7a898e; font-size: 9px; font-weight: 800; }
.media-live-session-metric strong { color: #344950; font-size: 12px; font-variant-numeric: tabular-nums; }
.media-live-session-state,
.media-decision-tag {
  min-height: 25px;
  padding: 0 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}
.media-live-session-state.running { background: #e6f3ef; color: #14775f; }
.media-live-session-state.warn { background: #fbefdf; color: #965c18; }
.media-live-session-state.bad { background: #f8e7e8; color: #a33e45; }
.media-live-session-state.done { background: #eef2f3; color: #65767c; }
.media-dashboard-empty {
  min-height: 150px;
  padding: 24px;
  color: var(--muted);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 11px;
}
.media-dashboard-review-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.media-dashboard-review-kpi { min-height: 96px; padding: 12px 13px; }
.media-dashboard-review-kpi:nth-child(-n + 5) { border-bottom: 1px solid var(--line); }
.media-dashboard-review-kpi:nth-child(5) { border-right: 0; }
.media-dashboard-review-kpi > strong { font-size: 19px; }
.media-dashboard-buyer-review { border-bottom: 1px solid var(--line); }
.media-dashboard-buyer-review-list { padding: 8px 14px 14px; display: grid; gap: 7px; }
.media-buyer-review-row {
  min-height: 78px;
  padding: 10px 12px;
  border: 1px solid #e0e7e9;
  border-left: 3px solid #8ca0a6;
  border-radius: 6px;
  display: grid;
  grid-template-columns: minmax(130px, .85fr) repeat(3, minmax(92px, .55fr)) minmax(180px, 1.3fr) auto;
  align-items: center;
  gap: 12px;
}
.media-buyer-review-row.reduce { border-left-color: #b13f45; background: #fffafa; }
.media-buyer-review-row.expand { border-left-color: #14775f; background: #f9fdfb; }
.media-buyer-review-row.maintain { border-left-color: #bd7b24; }
.media-buyer-review-person { min-width: 0; display: grid; gap: 4px; }
.media-buyer-review-person strong { overflow: hidden; color: #2e454d; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.media-buyer-review-person small { color: var(--muted); font-size: 10px; }
.media-buyer-review-metric { min-width: 0; display: grid; gap: 3px; }
.media-buyer-review-metric span { color: #7a898e; font-size: 9px; font-weight: 800; }
.media-buyer-review-metric strong { color: #344950; font-size: 13px; font-variant-numeric: tabular-nums; }
.media-buyer-review-metric small { font-size: 9px; font-weight: 750; }
.media-buyer-review-reason { min-width: 0; display: grid; gap: 4px; }
.media-buyer-review-reason strong { color: #40565e; font-size: 11px; }
.media-buyer-review-reason small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.media-buyer-review-actions { display: grid; justify-items: end; gap: 6px; }
.media-buyer-review-actions .media-decision-tag { min-width: 68px; }
.media-decision-tag.stable { background: #eef2f3; color: #5e7178; }
.media-dashboard-benchmark {
  padding: 7px 10px;
  border: 1px solid #d9e2e5;
  border-radius: 6px;
  color: #587078;
  font-size: 10px;
  font-weight: 750;
}
.media-dashboard-decision-counts { display: flex; align-items: center; gap: 6px; }
.media-dashboard-decision-counts span { padding: 4px 7px; border-radius: 4px; background: #eef2f3; font-weight: 800; }
.media-dashboard-decision-counts .expand { background: #e6f3ef; color: #14775f; }
.media-dashboard-decision-counts .reduce { background: #f8e7e8; color: #a33e45; }
.media-dashboard-decisions { padding: 12px 14px 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.media-decision-row {
  min-width: 0;
  min-height: 84px;
  padding: 11px 12px;
  border: 1px solid #e0e7e9;
  border-radius: 6px;
  display: grid;
  grid-template-columns: minmax(110px, .8fr) minmax(0, 1.2fr) auto;
  align-items: center;
  gap: 12px;
}
.media-decision-account { min-width: 0; display: grid; gap: 3px; }
.media-decision-account strong { overflow: hidden; color: #30464e; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.media-decision-account small { color: var(--muted); font-size: 10px; }
.media-decision-reason { min-width: 0; display: grid; gap: 4px; }
.media-decision-reason strong { color: #455b63; font-size: 11px; }
.media-decision-reason small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.media-decision-tag.expand { background: #e6f3ef; color: #14775f; }
.media-decision-tag.reduce { background: #f8e7e8; color: #a33e45; }
.media-decision-tag.maintain { background: #eaf0f6; color: #356b97; }
.media-decision-tag.observe { background: #f1f3f4; color: #6d7b80; }
.media-dashboard-analysis-head {
  margin-top: 18px;
  margin-bottom: 10px;
  padding: 0 2px;
}
.media-dashboard-period-controls { display: flex; align-items: center; gap: 8px; }
.media-dashboard-date-field {
  width: 238px;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}
.media-dashboard-date-field svg { width: 15px; height: 15px; color: #60767d; }
.media-dashboard-date-field input { height: 34px; padding: 0; border: 0; background: transparent; font-size: 11px; outline: 0; }
.media-dashboard-period-presets { grid-template-columns: repeat(3, minmax(54px, 1fr)); }
.media-dashboard-period-presets button { min-width: 54px; font-size: 10px; font-weight: 800; }
.media-dashboard-toolbar {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}
.media-dashboard-toolbar-head {
  min-height: 62px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.media-dashboard-toolbar-head > div:first-child { min-width: 0; display: grid; gap: 4px; }
.media-dashboard-toolbar-head h2 { color: #2f454d; font-size: 17px; }
.media-dashboard-toolbar-head span { color: var(--muted); font-size: 11px; }
.media-dashboard-grain { grid-template-columns: repeat(3, minmax(52px, 1fr)); }
.media-dashboard-grain button { min-width: 52px; font-size: 12px; font-weight: 800; }
.media-dashboard-filters {
  padding: 11px 14px 13px;
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  align-items: end;
  gap: 9px;
}
.media-dashboard-filters label,
.media-dashboard-metric-field { min-width: 0; display: grid; gap: 5px; }
.media-dashboard-filters label > span,
.media-dashboard-metric-field > span {
  color: #5e7077;
  font-size: 11px;
  font-weight: 800;
}
.media-dashboard-filters select,
.media-dashboard-metric-field select { width: 100%; height: 38px; font-size: 12px; }
.media-dashboard-notice { margin-bottom: 12px; }
.media-dashboard-kpis {
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.media-dashboard-kpi {
  min-width: 0;
  min-height: 112px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-top: 3px solid #5a7c86;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label icon" "value value" "compare compare";
  align-content: center;
  gap: 6px 8px;
}
.media-dashboard-kpi > span:first-child {
  grid-area: label;
  color: #5c7077;
  font-size: 11px;
  font-weight: 800;
}
.media-dashboard-kpi-icon {
  grid-area: icon;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #edf2f3;
  color: #54727b;
  display: grid;
  place-items: center;
}
.media-dashboard-kpi-icon svg { width: 15px; height: 15px; }
.media-dashboard-kpi > strong {
  grid-area: value;
  min-width: 0;
  overflow: hidden;
  color: #253940;
  font-size: 21px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-dashboard-kpi > small {
  grid-area: compare;
  color: #7b8a90;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 750;
}
.media-dashboard-kpi > small svg { width: 12px; height: 12px; }
.media-dashboard-kpi > small.good { color: #14775f; }
.media-dashboard-kpi > small.bad { color: #b13f45; }
.media-dashboard-kpi > small.info { color: #356b97; }
.media-dashboard-kpi.blue { border-top-color: #3f75a6; }
.media-dashboard-kpi.blue .media-dashboard-kpi-icon { background: #e8f0f7; color: #356b97; }
.media-dashboard-kpi.teal { border-top-color: #168174; }
.media-dashboard-kpi.teal .media-dashboard-kpi-icon { background: #e5f3ef; color: #14775f; }
.media-dashboard-kpi.amber { border-top-color: #bd7b24; }
.media-dashboard-kpi.amber .media-dashboard-kpi-icon { background: #f9efe1; color: #9b611e; }
.media-dashboard-kpi.coral { border-top-color: #b85a58; }
.media-dashboard-kpi.coral .media-dashboard-kpi-icon { background: #f8e8e9; color: #a54147; }
.media-dashboard-kpi.indigo { border-top-color: #6672a8; }
.media-dashboard-kpi.indigo .media-dashboard-kpi-icon { background: #eceefa; color: #58659a; }
.media-dashboard-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.media-dashboard-chart-panel { overflow: hidden; }
.media-dashboard-chart-panel .panel-header h2,
.media-dashboard-dimension-panel .panel-header h2 { font-size: 16px; }
.media-dashboard-chart { width: 100%; height: 390px; }
.media-dashboard-dimension-panel { overflow: hidden; }
.media-dashboard-dimension-head { min-height: 68px; }
.media-dashboard-dimension-head > div:first-child { min-width: 0; display: grid; gap: 3px; }
.media-dashboard-drill-path { min-height: 22px; display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.media-dashboard-drill-path:empty { display: none; }
.media-dashboard-drill-path span {
  min-height: 22px;
  padding: 0 7px;
  border-radius: 4px;
  background: #edf3f2;
  color: #376860;
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 800;
}
.media-dashboard-drill-path button { padding: 0; border: 0; background: transparent; color: #2f776f; font-size: 9px; font-weight: 850; cursor: pointer; }
.media-dashboard-dimension-actions { display: flex; align-items: end; gap: 10px; }
.media-dashboard-dimensions { grid-template-columns: repeat(5, auto); }
.media-dashboard-dimensions button { min-width: 66px; font-size: 11px; font-weight: 800; }
.media-dashboard-metric-field { width: 160px; flex: 0 0 160px; }
.media-dashboard-metric-field select { height: 32px; }
.media-dashboard-ranking-chart { width: 100%; height: 420px; border-bottom: 1px solid var(--line); }
.media-dashboard-table-scroll { max-height: 520px; }
.media-dashboard-table { min-width: 1410px; }
.media-dashboard-table th {
  position: sticky;
  z-index: 2;
  top: 0;
  background: #f5f8f8;
  color: #3f535b;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}
.media-dashboard-table td { height: 50px; font-size: 12px; white-space: nowrap; }
.media-dashboard-table td:first-child { min-width: 160px; }
.media-dashboard-table td:first-child strong { display: block; color: #2e454d; font-size: 13px; }
.media-dashboard-table td:first-child small {
  display: block;
  max-width: 210px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-dashboard-table .media-table-change {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
}
.media-dashboard-table .media-table-change svg { width: 12px; height: 12px; }
.media-dashboard-table .media-table-change.good { color: #14775f; }
.media-dashboard-table .media-table-change.bad { color: #b13f45; }
.media-dashboard-table .media-table-change.info { color: #356b97; }
.media-dashboard-table .media-dashboard-drill-button { min-width: 82px; }
.media-dashboard-session-panel { overflow: hidden; }
.media-dashboard-session-head { min-height: 64px; }
.media-dashboard-session-head h2 { font-size: 16px; }
.media-dashboard-session-scroll { max-height: 520px; }
.media-dashboard-session-table { min-width: 1510px; }
.media-dashboard-session-table th {
  position: sticky;
  z-index: 2;
  top: 0;
  background: #f5f8f8;
  color: #3f535b;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}
.media-dashboard-session-table td { height: 52px; color: #455a62; font-size: 11px; white-space: nowrap; }
.media-dashboard-session-table td strong { display: block; color: #2f454d; font-size: 12px; }
.media-dashboard-session-table td small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }

@media (min-width: 901px) and (max-width: 1500px) {
  .media-target-head { align-items: stretch; flex-direction: column; }
  .media-target-head-actions { width: 100%; flex-wrap: wrap; }
  .media-target-head > div:first-child { width: 100%; }
}

@media (max-width: 1500px) {
  .weekly-entity-visuals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1400px) {
  .media-dashboard-live-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .media-dashboard-live-kpi:nth-child(3) { border-right: 0; }
  .media-dashboard-live-kpi:nth-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .media-dashboard-review-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .media-dashboard-review-kpi:nth-child(5) { border-right: 1px solid var(--line); }
  .media-dashboard-review-kpi:nth-child(3n) { border-right: 0; }
  .media-dashboard-review-kpi:nth-child(-n + 6) { border-bottom: 1px solid var(--line); }
  .media-dashboard-kpis { grid-template-columns: repeat(5, minmax(150px, 1fr)); }
  .media-buyer-review-row { grid-template-columns: minmax(125px, .8fr) repeat(2, minmax(90px, .5fr)) minmax(180px, 1.2fr) auto; }
  .media-buyer-review-row .media-buyer-review-metric:nth-of-type(4) { display: none; }
  .media-dashboard-filters { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .media-dashboard-dimension-head { align-items: stretch; flex-direction: column; }
  .media-dashboard-dimension-actions { width: 100%; justify-content: space-between; }
}
@media (max-width: 1100px) {
  .media-target-plan-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-target-plan-step:nth-child(3) { border-top: 1px solid #e2e8e7; border-left: 0; }
  .media-target-plan-step:nth-child(4) { border-top: 1px solid #e2e8e7; }
  .media-target-draft-card { grid-template-columns: minmax(170px, 1fr) repeat(2, minmax(125px, .75fr)) 112px; }
  .media-target-draft-roi { grid-column: 2 / 4; grid-row: 2; }
  .media-target-draft-action { grid-column: 4; grid-row: 1 / 3; }
  .media-target-period-metrics { grid-template-columns: 1fr; }
  .media-target-period-card > footer { align-items: flex-start; flex-direction: column; gap: 4px; }
  .media-target-priority-item { grid-template-columns: 28px minmax(150px, .8fr) minmax(180px, 1fr) auto; }
  .media-target-priority-metrics { grid-column: 2 / -1; grid-row: 2; }
  .media-dashboard-command-body { grid-template-columns: 1fr; }
  .media-dashboard-workflow { border-right: 0; border-bottom: 1px solid var(--line); }
  .media-dashboard-analysis-head { align-items: stretch; flex-direction: column; }
  .media-dashboard-period-controls { flex-wrap: wrap; }
  .media-dashboard-decisions { grid-template-columns: 1fr; }
  .media-buyer-review-row { grid-template-columns: minmax(130px, .8fr) repeat(2, minmax(90px, .55fr)) auto; }
  .media-buyer-review-reason { grid-column: 1 / -1; grid-row: 2; }
  .media-dashboard-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-dashboard-chart-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .media-target-head, .media-target-tree-head { align-items: stretch; flex-direction: column; }
  .media-target-head-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .media-target-cycle-mode,
  .media-target-basis { width: 100%; }
  .media-target-week-navigation { align-items: flex-end; }
  .media-target-week-navigation .media-target-week-field { flex: 1 1 auto; }
  .media-target-plan-status > header { align-items: flex-start; flex-direction: column; }
  .media-target-plan-actions { width: 100%; justify-content: flex-start; }
  .media-target-plan-steps { grid-template-columns: 1fr; }
  .media-target-plan-step { border-top: 1px solid #e2e8e7; border-left: 0; }
  .media-target-plan-step:first-child { border-top: 0; }
  .media-target-draft-panel > header { align-items: flex-start; }
  .media-target-draft-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-target-draft-identity { grid-column: 1 / -1; }
  .media-target-draft-roi { grid-column: 1 / -1; grid-row: auto; }
  .media-target-draft-action { grid-column: 1 / -1; grid-row: auto; justify-content: stretch; }
  .media-target-draft-action .button { width: 100%; }
  .media-target-period-grid { grid-template-columns: 1fr; }
  .media-target-priority > header { align-items: stretch; flex-direction: column; }
  .media-target-priority-filter { width: 100%; }
  .media-target-priority-item { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .media-target-priority-diagnosis { grid-column: 2 / -1; }
  .media-target-priority-metrics { grid-column: 1 / -1; grid-row: auto; }
  .media-target-priority-item > .button { grid-column: 1 / -1; width: 100%; }
  .media-target-week-field input { width: 100%; }
  .media-target-head { min-height: 0; padding: 14px; }
  .media-target-head h2 { font-size: 18px; line-height: 1.35; }
  .media-target-head small { max-width: 100%; white-space: normal; }
  .media-target-form-grid { grid-template-columns: 1fr; }
  .media-dashboard-command-head,
  .media-dashboard-review-head { align-items: flex-start; flex-direction: column; }
  .media-dashboard-live-kpis,
  .media-dashboard-review-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-dashboard-live-kpi,
  .media-dashboard-review-kpi { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .media-dashboard-live-kpi:nth-child(2n),
  .media-dashboard-review-kpi:nth-child(2n) { border-right: 0; }
  .media-live-session-row { grid-template-columns: minmax(120px, 1fr) repeat(2, minmax(70px, .7fr)); }
  .media-live-session-metric:nth-of-type(3),
  .media-live-session-metric:nth-of-type(4) { display: none; }
  .media-decision-row { grid-template-columns: 1fr auto; }
  .media-decision-reason { grid-column: 1 / -1; grid-row: 2; }
  .media-buyer-review-row { grid-template-columns: minmax(0, 1fr) auto; }
  .media-buyer-review-row .media-buyer-review-metric { display: grid; }
  .media-buyer-review-person, .media-buyer-review-reason { grid-column: 1 / -1; }
  .media-buyer-review-reason { grid-row: auto; }
  .media-buyer-review-actions { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: center; }
  .media-buyer-review-actions .button { width: 100%; }
  .media-dashboard-period-controls { width: 100%; display: grid; grid-template-columns: 1fr; }
  .media-dashboard-date-field { width: 100%; }
  .media-dashboard-toolbar-head { align-items: stretch; flex-direction: column; }
  .media-dashboard-filters { grid-template-columns: 1fr; }
  .media-dashboard-filters .icon-button { width: 100%; }
  .media-dashboard-kpis { grid-template-columns: 1fr; }
  .media-dashboard-dimension-actions { align-items: stretch; flex-direction: column; }
  .media-dashboard-dimensions { width: 100%; overflow-x: auto; grid-template-columns: repeat(5, minmax(88px, 1fr)); }
  .media-dashboard-metric-field { width: 100%; flex-basis: auto; }
  .media-dashboard-chart { height: 340px; }
  .media-dashboard-ranking-chart { height: 360px; }
}
@media (max-width: 520px) {
  .media-target-head-actions { align-items: stretch; flex-direction: column; }
  .media-target-basis, #media-target-add-project { width: 100%; }
  .media-target-week-navigation > .button { display: none; }
}
.media-limited-row td {
  background: #fafbfb;
}
.users-table { min-width: 820px; }
.users-table th:nth-child(1) { width: 18%; }
.users-table th:nth-child(2) { width: 14%; }
.users-table th:nth-child(3) { width: 38%; }
.users-table th:nth-child(4) { width: 16%; }
.users-table th:nth-child(5) { width: 14%; }
.users-table .user-room-cell { max-width: 420px; white-space: normal; }
.users-table .row-actions { justify-content: flex-end; }
.users-table tr.user-unassigned td { background: #fffaf0; }
.users-table tr.user-unassigned td:first-child { box-shadow: inset 3px 0 #d79a2b; }
.users-table tr.user-login-risk td { background: #fff7f6; }
.users-table tr.user-login-risk td:first-child { box-shadow: inset 3px 0 #c85c55; }
.user-login-state { display: grid; gap: 5px; }
.user-login-state > span { color: #4f5f65; }
.user-login-state > strong { width: fit-content; padding: 3px 6px; border-radius: 5px; background: #f7dfdc; color: #9b403a; display: inline-flex; align-items: center; gap: 4px; font-size: 10px; }
.user-login-state > strong svg { width: 13px; height: 13px; }
.user-status-empty { min-height: 72px; display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.action-page-head { min-height: 62px; }
.action-summary-grid {
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.action-summary-card {
  width: 100%;
  min-height: 100px;
  padding: 15px;
  border: 1px solid var(--line);
  border-top: 3px solid #6e858c;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.action-summary-card:hover { border-color: #9fb3b8; box-shadow: 0 8px 22px rgba(31, 52, 60, .09); transform: translateY(-1px); }
.action-summary-card:focus-visible { outline: 3px solid rgba(28, 127, 112, .2); outline-offset: 2px; }
.action-summary-card.active { border-color: #3c8f83; box-shadow: 0 0 0 2px rgba(28, 127, 112, .13), var(--shadow); }
.action-summary-card > span { width: 38px; height: 38px; border-radius: 7px; background: #edf2f3; color: #527079; display: grid; place-items: center; }
.action-summary-card > span svg { width: 19px; height: 19px; }
.action-summary-card > div { min-width: 0; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: baseline; }
.action-summary-card small { color: var(--muted); font-size: 11px; font-weight: 750; }
.action-summary-card strong { color: var(--ink); font-size: 24px; line-height: 1; }
.action-summary-card p { grid-column: 1 / -1; margin-top: 3px; color: #72858b; font-size: 10px; }
.action-summary-card.info { border-top-color: #477aa4; }
.action-summary-card.info > span { background: #e8f0f7; color: #386f9c; }
.action-summary-card.urgent { border-top-color: #b65055; }
.action-summary-card.urgent > span { background: #f8e8e9; color: #a54147; }
.action-summary-card.warn { border-top-color: #c07a1d; }
.action-summary-card.warn > span { background: #f9efe1; color: #a56520; }
.action-summary-card.good { border-top-color: #16806f; }
.action-summary-card.good > span { background: #e5f3ed; color: #137b62; }
.action-owner-overview {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}
.action-owner-overview-head {
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.action-owner-overview-head > div { min-width: 0; display: grid; gap: 3px; }
.action-owner-overview-head h3 { color: #2e444c; font-size: 14px; }
.action-owner-overview-head span { color: var(--muted); font-size: 10px; }
.action-owner-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 7px;
}
.action-owner-card {
  min-width: 0;
  min-height: 70px;
  padding: 10px;
  border: 1px solid #dbe4e5;
  border-left: 3px solid #6c8991;
  border-radius: 7px;
  background: #fafcfc;
  color: #40565e;
  display: grid;
  gap: 9px;
  text-align: left;
  cursor: pointer;
}
.action-owner-card:hover { border-color: #9fb6ba; background: white; }
.action-owner-card.active {
  border-color: #2f8177;
  box-shadow: 0 0 0 2px rgba(47, 129, 119, .12);
}
.action-owner-card.urgent { border-left-color: #b65055; }
.action-owner-card.warn { border-left-color: #c07a1d; }
.action-owner-card.good { border-left-color: #16806f; }
.action-owner-name {
  min-width: 0;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
}
.action-owner-name svg { width: 15px; height: 15px; color: #6d858c; }
.action-owner-name strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.action-owner-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}
.action-owner-metrics small {
  color: #71838a;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}
.action-owner-metrics small.urgent { color: #a64248; }
.action-owner-metrics b {
  display: block;
  margin-top: 2px;
  color: #344c54;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.action-owner-metrics small.urgent b { color: #a64248; }
@media (max-width: 640px) {
  .action-owner-overview-head {
    align-items: stretch;
    flex-direction: column;
  }
  .action-owner-overview-head .button { width: 100%; justify-content: center; }
  .action-owner-list { grid-template-columns: 1fr; }
}
.action-toolbar {
  margin-bottom: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: auto repeat(3, minmax(140px, .7fr)) minmax(200px, 1fr);
  gap: 9px;
  align-items: end;
}
.action-status-tabs { grid-template-columns: repeat(4, minmax(72px, 1fr)); align-self: end; }
.action-toolbar > label { min-width: 0; display: grid; gap: 5px; }
.action-toolbar > label > span:first-child { color: var(--muted); font-size: 10px; font-weight: 750; }
.action-toolbar select, .action-toolbar input { width: 100%; height: 36px; }
.action-search > span:last-child { height: 36px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; display: grid; grid-template-columns: 15px minmax(0, 1fr); gap: 7px; align-items: center; }
.action-search > span:last-child:focus-within { border-color: #5d8f91; box-shadow: 0 0 0 2px rgba(55, 128, 126, .12); }
.action-search svg { width: 14px; height: 14px; color: #789096; }
.action-search input { height: 32px; padding: 0; border: 0; outline: 0; box-shadow: none; }
.management-action-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.management-action-card { min-width: 0; padding: 15px; border: 1px solid var(--line); border-left: 4px solid #6f8b92; border-radius: 8px; background: white; box-shadow: var(--shadow); display: grid; gap: 13px; }
.management-action-card.overdue { border-left-color: #b65055; }
.management-action-card > header, .management-action-card > footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.management-action-tags { min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.action-priority-tag, .action-status-tag { min-height: 24px; padding: 0 8px; border-radius: 5px; display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 800; }
.action-priority-tag.urgent { background: #f8e8e9; color: #a53d44; }
.action-priority-tag.warn { background: #f9efe1; color: #9d621c; }
.action-priority-tag.normal { background: #edf1f2; color: #5d737a; }
.action-status-tag.neutral { background: #edf1f2; color: #5d737a; }
.action-status-tag.info { background: #e8f0f7; color: #386f9c; }
.action-status-tag.good { background: #e5f3ed; color: #137b62; }
.action-status-tag.muted { background: #f1f0ee; color: #756f67; }
.action-status-tag svg { width: 12px; height: 12px; }
.action-due { flex: 0 0 auto; color: #536a72; font-size: 11px; }
.action-due.today { color: #9d621c; }
.action-due.overdue { color: #a53d44; }
.management-action-copy { min-width: 0; display: grid; gap: 6px; }
.management-action-copy h3 { color: #263a41; font-size: 16px; line-height: 1.35; }
.management-action-copy p { color: #6c7f86; font-size: 11px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.management-action-meta { padding: 10px 0; border-top: 1px solid #edf1f2; border-bottom: 1px solid #edf1f2; display: grid; grid-template-columns: minmax(110px, .7fr) minmax(110px, .7fr) minmax(150px, 1.4fr); gap: 10px; }
.management-action-meta > span { min-width: 0; display: grid; grid-template-columns: 15px minmax(0, 1fr); gap: 2px 6px; align-items: center; }
.management-action-meta svg { grid-row: 1 / 3; width: 14px; height: 14px; color: #71878e; }
.management-action-meta small { color: #89999e; font-size: 9px; font-weight: 750; }
.management-action-meta strong { min-width: 0; color: #40565e; font-size: 11px; overflow-wrap: anywhere; }
.management-action-result { padding: 10px 11px; border-radius: 6px; background: #eef6f2; display: grid; gap: 4px; }
.management-action-result span { color: #247260; font-size: 10px; font-weight: 800; }
.management-action-result p { color: #405e55; font-size: 11px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.management-action-card > footer > span { color: #8a999e; font-size: 9px; }
.management-action-card .row-actions { flex: 0 0 auto; }
.management-action-card .row-actions .button { gap: 4px; }
.management-action-card .row-actions svg { width: 12px; height: 12px; }
.action-empty { grid-column: 1 / -1; min-height: 240px; padding: 30px; border: 1px dashed #bdcacc; border-radius: 8px; background: #f9fbfb; color: #7b8e94; display: grid; place-items: center; align-content: center; gap: 7px; text-align: center; }
.action-empty svg { width: 28px; height: 28px; }
.action-empty strong { color: #425a62; font-size: 14px; }
.action-empty span { font-size: 11px; }
.action-pagination { margin-top: 12px; }
.management-action-dialog { width: min(760px, calc(100vw - 28px)); }
.management-action-dialog label > small.warn { color: #a64f3d; }
.action-form-grid textarea { width: 100%; resize: vertical; }
.action-form-grid input, .action-form-grid select, .action-form-grid textarea { font-size: 12px; }
.audit-category-tabs {
  width: min(780px, 100%);
  margin-bottom: 12px;
  grid-template-columns: repeat(7, minmax(100px, 1fr));
}
.audit-toolbar { margin-bottom: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: white; display: grid; grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(160px, 1fr)); gap: 10px; align-items: end; }
.audit-toolbar label { min-width: 0; display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 750; }
.audit-toolbar input, .audit-toolbar select { width: 100%; height: 38px; }
.audit-table { min-width: 980px; }
.audit-table th:last-child, .audit-table td:last-child { min-width: 360px; }
.audit-detail-cell { white-space: normal; }
.audit-actor { display: grid; gap: 3px; }
.audit-actor span { color: var(--muted); font-size: 10px; }
.audit-session-summary { min-width: 210px; display: grid; gap: 3px; }
.audit-session-summary span, .audit-session-summary small { color: var(--muted); font-size: 10px; }
.audit-object-summary { min-width: 190px; display: grid; gap: 4px; }
.audit-object-summary strong { color: #30474f; font-size: 12px; }
.audit-object-summary span { color: var(--muted); font-size: 10px; line-height: 1.4; }
.audit-created { display: inline-flex; min-height: 25px; align-items: center; padding: 0 8px; border-radius: 6px; background: #def1e6; color: var(--green); font-size: 11px; font-weight: 700; }
.audit-deleted { display: inline-flex; min-height: 25px; align-items: center; padding: 0 8px; border-radius: 6px; background: #f7e2e2; color: var(--red); font-size: 11px; font-weight: 700; }
.audit-changes { display: grid; gap: 6px; }
.audit-change { display: grid; grid-template-columns: 72px minmax(100px, 1fr) 14px minmax(100px, 1fr); align-items: center; gap: 7px; font-size: 11px; }
.audit-change strong { color: var(--muted); font-size: 10px; }
.audit-change del, .audit-change ins { min-width: 0; padding: 4px 6px; border-radius: 5px; overflow-wrap: anywhere; text-decoration: none; }
.audit-change del { background: #f7e2e2; color: #8d3434; }
.audit-change ins { background: #def1e6; color: #296a49; }
.audit-change svg { width: 13px; height: 13px; color: var(--muted); }
.audit-event-detail { display: grid; justify-items: start; gap: 8px; }
#mappings-view .section-actions { min-height: 62px; }
#mappings-view .section-actions h2 { font-size: 18px; }
#mappings-view .table-scroll.tall { scrollbar-gutter: stable; }
.mapping-table { width: 100%; min-width: 1000px; table-layout: fixed; font-size: 13px; }
.mapping-table .mapping-col-room { width: 15%; }
.mapping-table .mapping-col-period { width: 20%; }
.mapping-table .mapping-col-operator { width: 12%; }
.mapping-table .mapping-col-project { width: 12%; }
.mapping-table .mapping-col-sources { width: 31%; }
.mapping-table .mapping-col-actions { width: 10%; }
.mapping-table th, .mapping-table td { padding: 12px 14px; white-space: normal; line-height: 1.45; }
.mapping-table th { font-size: 13px; font-weight: 800; }
.mapping-current-row > td { vertical-align: middle; }
.mapping-current-row > td:first-child { background: #f7faf9; }
.mapping-current-row > td:nth-child(3),
.mapping-current-row > td:nth-child(4) { overflow-wrap: anywhere; font-weight: 650; }
.mapping-current-row.mapping-focus-row > td {
  animation: mapping-focus-pulse 2.4s ease-out;
}

@keyframes mapping-focus-pulse {
  0%, 30% { background: #dff4ec; }
  100% { background: inherit; }
}
.mapping-room-cell { min-width: 0; display: grid; justify-items: start; gap: 4px; }
.mapping-room-cell > strong { font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.mapping-room-cell > span:not(.tag) { color: #35464d; font-size: 12px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mapping-room-cell > small { color: var(--muted); font-size: 11px; }
.mapping-room-cell .tag { margin-top: 3px; }
.mapping-period { display: grid; gap: 7px; }
.mapping-period > div { min-width: 0; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: baseline; gap: 7px; }
.mapping-period span { color: #4d6067; font-size: 12px; font-weight: 800; }
.mapping-period strong { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mapping-last-action {
  display: block;
  margin-top: 7px;
  color: #718087;
  font-size: 10px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.mapping-missing-row > td { background-color: #fffaf3; }
.mapping-missing-row > td:first-child { background-color: #fff5e7; }
.mapping-actions { display: grid; gap: 7px; }
.mapping-actions .button { width: 100%; min-width: 0; font-size: 12px; }
.mapping-source-summary { display: grid; min-width: 0; }
.mapping-source-summary-current { grid-template-columns: 1fr; }
.mapping-source-item { min-width: 0; display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: start; gap: 8px; padding: 5px 0; border-bottom: 1px solid #edf1ef; }
.mapping-source-item:last-child { border-bottom: 0; }
.mapping-source-item > strong { color: #4d6067; font-size: 12px; font-weight: 800; line-height: 24px; white-space: nowrap; }
.mapping-source-summary .keyword-stack { max-width: none; }
.mapping-source-summary .keyword { max-width: 100%; padding: 4px 7px; font-size: 11px; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }
.mapping-history-row > td { width: auto; max-width: 0; padding: 0 16px 16px; background: #f7faf9; }
.mapping-history-list { width: 100%; max-width: 100%; min-width: 0; contain: inline-size; display: grid; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.mapping-history-item { width: 100%; max-width: 100%; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: white; }
.mapping-history-item.is-current { border-left: 3px solid var(--teal); }
.mapping-history-item.has-version-changes:not(.is-current) { border-left: 3px solid #c77a19; }
.mapping-diff-legend { min-height: 38px; padding: 7px 10px; border: 1px solid #dce4e3; border-radius: 6px; background: #f8faf9; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; color: #53676d; font-size: 11px; }
.mapping-diff-legend > strong { color: #2d4848; font-size: 12px; }
.mapping-diff-legend > span { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.mapping-diff-legend > span > i { width: 10px; height: 10px; border: 1px solid; border-radius: 2px; }
.mapping-diff-legend > span > i.is-old { border-color: #e2aaaa; background: #f9dede; }
.mapping-diff-legend > span > i.is-new { border-color: #9fd0b2; background: #dff1e6; }
.mapping-diff-legend > small { margin-left: auto; color: #748288; font-size: 10px; }
.mapping-history-head { min-height: 48px; padding: 8px 12px; display: grid; grid-template-columns: minmax(126px, auto) minmax(340px, 1fr) auto; align-items: center; gap: 14px; background: #f9fbfa; border-bottom: 1px solid var(--line); }
.mapping-history-version { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.mapping-version-badge { min-width: max-content; color: #2d4848; font-size: 12px; font-weight: 800; }
.mapping-version-change-count { min-width: max-content; padding: 3px 6px; border: 1px solid; border-radius: 4px; font-size: 10px; font-weight: 800; line-height: 1.2; }
.mapping-version-change-count.has-changes { border-color: #e4be7d; background: #fff3dd; color: #8b5811; }
.mapping-version-change-count.is-unchanged,
.mapping-version-change-count.is-initial { border-color: #d7e0df; background: #f2f5f4; color: #68777b; }
.mapping-history-period { min-width: 0; display: grid; grid-template-columns: auto minmax(132px, auto) auto minmax(110px, auto); align-items: center; justify-content: start; gap: 7px; font-variant-numeric: tabular-nums; }
.mapping-history-period > span { color: #4d6067; font-size: 12px; font-weight: 800; }
.mapping-history-period > strong { color: #35464d; font-size: 13px; overflow-wrap: anywhere; }
.mapping-history-period > i { color: var(--muted); font-size: 11px; font-style: normal; }
.mapping-history-head .row-actions { justify-content: flex-end; flex-wrap: nowrap; }
.mapping-history-details { padding: 10px 12px; display: grid; grid-template-columns: minmax(150px, .7fr) minmax(160px, .8fr) minmax(260px, 1.5fr); gap: 10px; }
.mapping-history-details > div { min-width: 0; display: grid; align-content: start; gap: 3px; }
.mapping-history-details span,
.mapping-history-sources > span { color: #4d6067; font-size: 12px; font-weight: 800; }
.mapping-history-details strong { color: #263a40; font-size: 13px; overflow-wrap: anywhere; }
.mapping-history-details small { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.mapping-history-sources { padding: 9px 12px 11px; display: grid; gap: 7px; border-top: 1px solid #edf1ef; }
.mapping-source-summary-history { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.mapping-source-summary-history .mapping-source-item { display: grid; grid-template-columns: 1fr; align-content: start; gap: 4px; padding: 0 8px 0 0; border-right: 1px solid #edf1ef; border-bottom: 0; }
.mapping-source-summary-history .mapping-source-item:last-child { padding-right: 0; border-right: 0; }
.mapping-source-summary-history .mapping-source-item > strong { line-height: 20px; }
.mapping-source-summary-history .keyword { width: 100%; min-width: 0; }
.mapping-version-diff { padding: 10px 12px 12px; border-top: 1px solid #e7edeb; background: #fbfcfc; display: grid; gap: 8px; }
.mapping-version-diff-head { display: flex; align-items: center; gap: 8px; }
.mapping-version-diff-head > span { color: #4d6067; font-size: 12px; font-weight: 800; }
.mapping-version-diff-head > strong { padding: 3px 7px; border-radius: 4px; font-size: 10px; font-weight: 800; }
.mapping-version-diff.has-changes .mapping-version-diff-head > strong { background: #fff0d6; color: #8b5811; }
.mapping-version-diff.is-initial .mapping-version-diff-head > strong,
.mapping-version-diff.is-unchanged .mapping-version-diff-head > strong { background: #edf1f0; color: #66767b; }
.mapping-version-diff > p { margin: 0; color: #718087; font-size: 11px; line-height: 1.5; }
.mapping-version-diff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 10px; }
.mapping-diff-row { min-width: 0; padding: 7px; border: 1px solid #e2e9e7; border-radius: 5px; background: #ffffff; display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 8px; }
.mapping-diff-row > b { color: #40565b; font-size: 11px; overflow-wrap: anywhere; }
.mapping-diff-values { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr); align-items: stretch; gap: 5px; }
.mapping-diff-values > i { align-self: center; color: #8a989c; font-size: 12px; font-style: normal; text-align: center; }
.mapping-diff-value { min-width: 0; min-height: 36px; padding: 5px 7px; border: 1px solid; border-radius: 4px; display: grid; align-content: center; gap: 2px; }
.mapping-diff-value > small { font-size: 9px; font-weight: 800; line-height: 1.2; }
.mapping-diff-value > strong { font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.mapping-diff-value-old { border-color: #e8bcbc; background: #fff0f0; color: #973d3d; }
.mapping-diff-value-new { border-color: #b7dcc5; background: #eaf7ef; color: #226c47; }
.mapping-version-hint { margin: 0 0 14px; padding: 10px 12px; border-left: 3px solid var(--teal); background: var(--teal-soft); color: #285c5a; font-size: 11px; line-height: 1.6; }

@media (max-width: 1100px) {
  .mapping-diff-legend > small { width: 100%; margin-left: 0; }
  .mapping-version-diff-grid { grid-template-columns: 1fr; }
}
.room-manager-dialog { width: min(980px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: hidden; }
.room-manager-toolbar { min-height: 58px; padding: 10px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.room-manager-toolbar-actions { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.room-manager-tabs { grid-template-columns: repeat(3, auto); }
.room-manager-tabs button { min-width: 74px; height: 34px; font-size: 12px; }
.room-manager-search { width: min(300px, 45%); height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; display: grid; grid-template-columns: 17px minmax(0, 1fr); align-items: center; gap: 7px; color: var(--muted); }
.room-manager-search svg { width: 17px; height: 17px; }
.room-manager-search input { height: 34px; min-width: 0; padding: 0; border: 0; box-shadow: none; font-size: 12px; }
.room-manager-search input:focus { box-shadow: none; }
.room-manager-table-wrap { max-height: calc(100vh - 220px); }
.room-manager-table { min-width: 820px; table-layout: fixed; font-size: 13px; }
.room-manager-table th, .room-manager-table td { padding: 11px 12px; vertical-align: middle; }
.room-manager-table th:nth-child(1) { width: 20%; }
.room-manager-table th:nth-child(2) { width: 13%; }
.room-manager-table th:nth-child(3) { width: 29%; }
.room-manager-table th:nth-child(4) { width: 10%; }
.room-manager-table th:nth-child(5) { width: 10%; }
.room-manager-table th:nth-child(6) { width: 18%; }
.room-manager-name { min-width: 0; display: grid; gap: 3px; }
.room-manager-name strong { font-size: 13px; overflow-wrap: anywhere; }
.room-manager-name span { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.room-inactive-row { color: #6e7b81; background: #f8faf9; }
.room-usage { display: flex; flex-wrap: wrap; gap: 6px 11px; }
.room-usage span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.room-usage strong { margin-right: 3px; color: var(--ink); font-size: 12px; font-variant-numeric: tabular-nums; }
.room-manager-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.room-manager-actions .icon-button.danger { color: var(--red); border-color: #ebcaca; }
.room-retained { color: var(--muted); font-size: 11px; white-space: nowrap; }
.room-create-dialog { width: min(620px, calc(100vw - 24px)); overflow: hidden; }
.room-create-dialog form { display: grid; }
.room-create-fields { padding-bottom: 2px; }
.room-create-hint { margin: 12px 16px 0; padding: 10px 11px; border-left: 3px solid var(--teal); background: var(--teal-soft); color: #315e5d; display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: start; gap: 7px; font-size: 11px; line-height: 1.55; }
.room-create-hint svg { width: 15px; height: 15px; margin-top: 1px; }
.source-workbench { min-height: 128px; margin-bottom: 12px; padding: 16px; border: 1px solid #c9d7db; border-radius: 8px; background: linear-gradient(135deg, #ffffff 0%, #f4faf9 100%); display: flex; align-items: center; justify-content: space-between; gap: 18px; box-shadow: var(--shadow); }
.source-workbench-copy { max-width: 760px; display: grid; gap: 6px; }
.source-workbench-copy > span { width: max-content; padding: 4px 8px; border-radius: 6px; background: var(--teal-soft); color: var(--teal); font-size: 11px; font-weight: 800; }
.source-workbench-copy h2 { font-size: 20px; }
.source-workbench-copy p { max-width: 680px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.source-workbench-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.source-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.source-card { min-height: 132px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: var(--shadow); display: grid; align-content: space-between; gap: 14px; }
.source-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.source-card-head div { min-width: 0; display: grid; gap: 4px; }
.source-card-head span { color: var(--muted); font-size: 11px; line-height: 1.45; }
.source-card-head > strong { flex: 0 0 auto; font-size: 18px; font-variant-numeric: tabular-nums; }
.source-card-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.source-card-metrics div { min-height: 86px; padding: 9px 10px; border: 1px solid #edf1f2; border-radius: 7px; background: #fbfcfc; display: grid; align-content: space-between; gap: 4px; }
.source-card-metrics span { color: var(--muted); font-size: 11px; font-weight: 700; }
.source-card-metrics strong { font-size: 19px; font-variant-numeric: tabular-nums; }
.source-summary-review { width: 100%; min-height: 26px; border: 1px solid #cbd8dc; border-radius: 6px; background: white; color: #34434a; font-size: 11px; font-weight: 750; }
.source-summary-review:hover { border-color: var(--teal); color: var(--teal); background: #f4fbfa; }
.source-summary-review:disabled { cursor: not-allowed; opacity: .45; }
.source-review-filters { flex: 0 0 auto; grid-template-columns: repeat(3, auto); }
.source-review-filters button { min-width: 92px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.source-review-filters button strong { min-width: 18px; padding: 2px 5px; border-radius: 5px; background: #eef2f2; color: var(--ink); font-size: 10px; font-variant-numeric: tabular-nums; }
.panel-header .source-review-filters button.active span { color: white; }
.source-review-filters button.active strong { background: rgba(255, 255, 255, .22); color: white; }
.source-daily-list { padding: 12px; display: grid; gap: 10px; background: #f7faf9; }
.source-day-card { border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; box-shadow: 0 4px 14px rgba(24, 34, 39, .04); content-visibility: auto; contain-intrinsic-size: auto 300px; }
.source-day-head { padding: 12px 14px; border-bottom: 1px solid var(--line); background: #f8fbfb; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.source-day-head div { display: grid; gap: 3px; }
.source-day-head strong { font-size: 15px; }
.source-day-head span:not(.tag) { color: var(--muted); font-size: 11px; }
.source-platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.source-platform-card { min-width: 0; padding: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.source-platform-card:nth-child(2n) { border-right: 0; }
.source-platform-card:nth-last-child(-n + 2) { border-bottom: 0; }
.source-platform-card header { margin-bottom: 9px; font-size: 13px; font-weight: 800; color: #263238; }
.source-platform-metrics { display: grid; grid-template-columns: minmax(112px, .8fr) minmax(180px, 1.2fr); gap: 8px; }
.source-mini-metric { min-height: 82px; padding: 9px; border: 1px solid #edf1f2; border-radius: 7px; background: #fbfcfc; display: grid; align-content: space-between; justify-items: end; gap: 5px; }
.source-mini-metric span { justify-self: start; color: var(--muted); font-size: 10px; font-weight: 800; }
.source-mini-metric > strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.source-metric-stack { display: grid; justify-items: end; gap: 5px; max-width: 100%; }
.source-metric-stack strong { font-variant-numeric: tabular-nums; }
.source-order-metric { justify-items: stretch; }
.source-order-metric > span { justify-self: start; }
.source-order-values { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 8px; }
.source-order-values div { min-width: 0; display: grid; justify-items: end; gap: 3px; }
.source-order-values small { color: var(--muted); font-size: 10px; }
.source-order-values strong { font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.source-order-metric .source-review-button, .source-order-metric .source-review-complete { justify-self: end; }
.source-review-button { min-height: 25px; padding: 4px 8px; font-size: 10px; }
.source-review-tag { justify-self: end; }
.source-review-complete { max-width: 100%; display: grid; justify-items: end; gap: 3px; }
.source-review-complete small { max-width: 100%; overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.fetch-panel .panel-header .button { flex: 0 0 auto; }
.system-health-band { margin: 0 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #f8fbfa; overflow: hidden; box-shadow: var(--shadow); }
.system-health-head { min-height: 46px; padding: 9px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.system-health-head > div { display: flex; align-items: baseline; gap: 8px; }
.system-health-head strong { font-size: 13px; }
.system-health-head span { color: var(--muted); font-size: 10px; }
.system-health-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #e6ecec; }
.system-health-item { min-width: 0; min-height: 92px; padding: 12px 14px; border-right: 1px solid #e1e8e8; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.system-health-item:last-child { border-right: 0; }
.system-health-icon { width: 34px; height: 34px; border-radius: 7px; display: grid; place-items: center; background: #e9f4f0; color: var(--green); }
.system-health-icon svg { width: 18px; height: 18px; }
.system-health-copy { min-width: 0; display: grid; gap: 3px; }
.system-health-copy > span, .system-health-copy small { color: var(--muted); font-size: 10px; }
.system-health-copy strong { font-size: 14px; overflow-wrap: anywhere; }
.system-health-copy small { line-height: 1.35; }
.system-health-state { align-self: stretch; display: grid; align-content: space-between; justify-items: end; gap: 6px; }
.system-health-state em { padding: 3px 6px; border-radius: 5px; background: #e8f4ee; color: #147d64; font-size: 9px; font-style: normal; font-weight: 800; }
.system-health-state small { color: var(--muted); font-size: 9px; white-space: nowrap; }
.system-health-item.warn .system-health-icon, .system-health-item.info .system-health-icon { background: #fff3d9; color: #9a6811; }
.system-health-item.warn .system-health-state em, .system-health-item.info .system-health-state em { background: #fff1d1; color: #8c5d0b; }
.system-health-item.critical .system-health-icon { background: #fae8e8; color: var(--red); }
.system-health-item.critical .system-health-state em { background: #f9e3e3; color: var(--red); }
.system-health-empty { grid-column: 1 / -1; padding: 20px; color: var(--muted); text-align: center; font-size: 11px; }
.update-summary { padding: 14px 14px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.update-stat { min-height: 86px; padding: 12px; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 8px; background: #fbfcfc; display: grid; align-content: space-between; gap: 7px; }
.update-stat span, .update-stat small { color: var(--muted); font-size: 11px; }
.update-stat strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.update-stat.good { border-top-color: var(--green); }
.update-stat.warn { border-top-color: var(--amber); }
.update-status-wrap { border-top: 1px solid var(--line); }
.update-status-table { min-width: 900px; }
.source-rerun { margin: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfc; overflow: visible; }
.source-rerun-heading { min-height: 58px; padding: 10px 12px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.source-rerun-heading > div { display: grid; gap: 3px; }
.source-rerun-heading strong { color: var(--ink); font-size: 14px; }
.source-rerun-heading > div > span { color: var(--muted); font-size: 11px; line-height: 1.45; }
.source-status-date { min-width: 190px; display: grid; grid-template-columns: auto 122px; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 750; }
.source-status-date input { height: 34px; }
.source-rerun-window { padding: 12px; display: grid; grid-template-columns: minmax(220px, 1fr) 28px minmax(220px, 1fr); align-items: end; gap: 10px; }
.source-rerun-window label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 750; }
.source-rerun-window input { height: 40px; font-variant-numeric: tabular-nums; }
.source-rerun-arrow { width: 28px; height: 40px; display: grid; place-items: center; color: #7b8b91; }
.source-rerun-arrow svg { width: 17px; height: 17px; }
.source-rerun-platforms { padding: 0 12px 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.source-rerun-platform { position: relative; min-width: 0; min-height: 164px; padding: 12px; border: 1px solid #dce4e6; border-radius: 7px; background: white; display: grid; grid-template-rows: auto auto auto; align-content: start; gap: 10px; }
.source-rerun-platform.active { border-color: #9ec7c1; box-shadow: 0 0 0 2px rgba(26, 121, 109, .08); }
.source-rerun-platform-copy { min-width: 0; display: grid; gap: 4px; }
.source-rerun-platform-copy strong { color: var(--ink); font-size: 14px; }
.source-rerun-platform-copy small { min-height: 28px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.source-rerun-metrics { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.source-rerun-metrics label { min-width: 0; min-height: 36px; padding: 0 8px; border: 1px solid #dce4e6; border-radius: 6px; background: #f8faf9; display: flex; align-items: center; gap: 7px; color: #314247; font-size: 11px; font-weight: 750; cursor: pointer; }
.source-rerun-metrics label:has(input:checked) { border-color: #8bbcb5; background: #eff8f6; color: #17695f; }
.source-rerun-metrics input, .source-account-option input { width: 15px; height: 15px; margin: 0; padding: 0; accent-color: var(--teal); }
.source-account-picker { position: relative; min-width: 0; }
.source-account-picker summary { min-height: 38px; padding: 0 10px; border: 1px solid #d7e0e1; border-radius: 6px; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #2d4248; font-size: 11px; font-weight: 800; cursor: pointer; list-style: none; }
.source-account-picker summary::-webkit-details-marker { display: none; }
.source-account-picker summary svg { width: 15px; height: 15px; transition: transform .16s ease; }
.source-account-picker[open] summary { border-color: #73aaa2; box-shadow: 0 0 0 3px rgba(21, 121, 106, .1); }
.source-account-picker[open] summary svg { transform: rotate(180deg); }
.source-account-picker.disabled { pointer-events: none; opacity: .48; }
.source-account-menu { position: absolute; z-index: 30; top: calc(100% + 5px); left: 0; right: 0; padding: 6px; border: 1px solid #d7e0e1; border-radius: 7px; background: #fff; box-shadow: 0 12px 30px rgba(25, 49, 57, .16); display: grid; gap: 3px; }
.source-account-option { min-width: 0; min-height: 42px; padding: 6px 8px; border-radius: 5px; display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: center; gap: 8px; cursor: pointer; }
.source-account-option:hover { background: #f1f7f5; }
.source-account-option > span { min-width: 0; display: grid; gap: 2px; }
.source-account-option strong { color: #24383e; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-account-option small { color: var(--muted); font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-account-menu-empty { padding: 10px; color: var(--muted); font-size: 10px; text-align: center; }
.source-account-static { min-height: 38px; padding: 0 10px; border: 1px solid #e0e6e7; border-radius: 6px; background: #f7f9f9; display: flex; align-items: center; gap: 7px; color: #64757a; font-size: 11px; font-weight: 750; }
.source-account-static svg { width: 15px; height: 15px; }
.source-rerun-footer { min-height: 58px; padding: 10px 12px; border-top: 1px solid var(--line); background: white; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.source-rerun-footer > div { display: flex; align-items: center; gap: 8px; color: #51656b; font-size: 11px; line-height: 1.45; }
.source-rerun-footer > div svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--teal); }
.source-rerun-footer .button { flex: 0 0 auto; }
.fetch-credentials { padding: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fetch-credentials fieldset { min-width: 0; margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 8px; }
.fetch-credentials legend { padding: 0 4px; color: var(--muted); font-size: 11px; font-weight: 750; }
.fetch-log { min-height: 160px; max-height: 320px; margin: 0; padding: 12px 14px; border-top: 1px solid var(--line); background: #182227; color: #dcefed; overflow: auto; font-size: 11px; line-height: 1.55; white-space: pre-wrap; }

dialog { width: min(720px, calc(100vw - 24px)); border: 0; border-radius: 8px; padding: 0; box-shadow: 0 24px 70px rgba(15,25,30,.28); }
#mapping-dialog { width: min(820px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: hidden; }
#mapping-dialog form { max-height: calc(100vh - 24px); overflow-y: auto; }
#mapping-dialog .dialog-header { position: sticky; top: 0; z-index: 2; background: white; }
#mapping-dialog .dialog-actions { position: sticky; bottom: 0; z-index: 2; border-top: 1px solid var(--line); background: white; }
#mapping-dialog .form-grid label > span, #mapping-dialog .keyword-grid label > span { font-size: 12px; }
#mapping-dialog input, #mapping-dialog select, #mapping-dialog textarea { font-size: 13px; }
.compact-dialog { width: min(560px, calc(100vw - 24px)); }
.live-session-dialog { width: min(620px, calc(100vw - 24px)); }
dialog::backdrop { background: rgba(16, 25, 29, .48); }
.dialog-header { min-height: 66px; padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dialog-header .icon-button { border: 0; }
.form-grid, .keyword-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 16px 0; }
.form-grid label, .keyword-grid label { display: grid; gap: 6px; }
.form-grid label > span, .keyword-grid label > span { color: var(--muted); font-size: 11px; font-weight: 700; }
.form-grid .wide { grid-column: span 2; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); outline: 0; }
input, select { height: 40px; padding: 0 10px; }
textarea { resize: vertical; min-height: 72px; padding: 9px 10px; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.form-error { margin: 12px 16px 0; padding: 9px 10px; border-radius: 7px; background: #f8e4e4; color: var(--red); font-size: 12px; }
.form-success { margin: 12px 16px 0; padding: 9px 10px; border-radius: 7px; background: #def1e6; color: var(--green); display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 750; }
.form-success svg { width: 16px; height: 16px; }
.dialog-actions { padding: 16px; display: flex; justify-content: flex-end; gap: 8px; }
.password-dialog { width: min(480px, calc(100vw - 24px)); }
.password-form-fields { padding: 16px 16px 0; display: grid; gap: 13px; }
.password-form-fields label { display: grid; gap: 6px; color: #40535b; font-size: 12px; font-weight: 800; }
.password-form-fields label > small { color: var(--muted); font-size: 10px; font-weight: 600; }
.secure-input { position: relative; display: block; }
.secure-input input { padding-right: 46px; }
.secure-input .password-visibility { top: 2px; right: 2px; }
.session-entry-fields { padding: 16px 16px 0; display: grid; gap: 12px; }
.session-entry-fields label { display: grid; gap: 6px; }
.session-entry-fields label > span { color: var(--muted); font-size: 11px; font-weight: 700; }
.session-entry-fields .session-field-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.session-entry-fields .session-field-label small { color: var(--teal); font-size: 10px; font-weight: 750; }
.session-screenshot-field { padding: 12px 16px 0; display: grid; gap: 6px; }
.session-entry-fields input[readonly] {
  border-color: #d7dfe1;
  background: #f2f5f5;
  color: #66777d;
  cursor: not-allowed;
}
.session-screenshot-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; font-weight: 700; }
.session-screenshot-label small { color: var(--red); font-size: 10px; font-weight: 700; }
.screenshot-dropzone { min-height: 116px; padding: 10px; border: 1px dashed #afbdc1; border-radius: 8px; background: #fbfcfc; cursor: pointer; outline: 0; display: grid; place-items: center; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.screenshot-dropzone:hover, .screenshot-dropzone:focus, .screenshot-dropzone.dragging { border-color: var(--teal); background: var(--teal-soft); box-shadow: 0 0 0 3px var(--teal-soft); }
.screenshot-dropzone-empty { display: grid; justify-items: center; gap: 5px; color: var(--muted); text-align: center; }
.screenshot-dropzone-empty svg { width: 24px; height: 24px; color: var(--teal); }
.screenshot-dropzone-empty strong { color: var(--ink); font-size: 12px; }
.screenshot-dropzone-empty span { font-size: 10px; }
.screenshot-upload-preview { width: 100%; min-width: 0; display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: 12px; }
.screenshot-upload-preview[hidden] { display: none; }
.screenshot-upload-preview img { width: 132px; height: 88px; border: 1px solid var(--line); border-radius: 6px; background: white; object-fit: contain; }
.screenshot-upload-preview div { min-width: 0; display: grid; gap: 5px; }
.screenshot-upload-preview strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.screenshot-upload-preview span { color: var(--muted); font-size: 10px; }
.session-screenshot-thumb { width: 58px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: white; cursor: zoom-in; overflow: hidden; display: block; }
.session-screenshot-thumb:hover, .session-screenshot-thumb:focus { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal-soft); outline: 0; }
.session-screenshot-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.screenshot-preview-dialog { width: min(1100px, calc(100vw - 24px)); max-height: calc(100vh - 24px); background: #11181b; color: white; }
.screenshot-preview-header { min-height: 62px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.14); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.screenshot-preview-header h2 { color: white; }
.screenshot-preview-header span { color: #b9c4c8; font-size: 11px; }
.screenshot-preview-header .icon-button { border-color: rgba(255,255,255,.18); background: #1b2529; color: white; }
.screenshot-preview-canvas { height: min(78vh, 820px); padding: 14px; display: grid; place-items: center; overflow: auto; }
.screenshot-preview-canvas img { max-width: 100%; max-height: 100%; object-fit: contain; }
.toggle-row { height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 12px; }
.toggle-row input { width: 16px; height: 16px; padding: 0; }
.room-assignment { margin: 16px 16px 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.room-assignment legend { padding: 0 5px; color: var(--muted); font-size: 11px; font-weight: 750; }
#user-room-checkboxes { max-height: 260px; overflow: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
#user-room-checkboxes label { min-width: 0; min-height: 38px; padding: 0 8px; border: 1px solid #edf1f2; border-radius: 6px; display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 7px; }
#user-room-checkboxes input { width: 16px; height: 16px; padding: 0; }
#user-room-checkboxes span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
#user-room-checkboxes small { color: var(--muted); font-size: 9px; }

.operator-shell { min-height: 100vh; background: var(--bg); }
.operator-topbar { height: 68px; padding: 0 max(20px, calc((100vw - 1360px) / 2)); border-bottom: 1px solid var(--line); background: white; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.operator-topbar .login-brand { margin: 0; }
.operator-account-actions { display: flex; align-items: center; gap: 8px; }
.operator-main { width: min(1360px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 40px; }
.operator-heading { margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.operator-heading h1 { font-size: 23px; }
.operator-heading p { margin-top: 5px; color: var(--muted); font-size: 12px; }
.operator-view-tabs { width: 480px; height: 40px; margin-bottom: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.operator-view-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.operator-view-tabs strong { min-width: 21px; height: 21px; padding: 0 6px; border-radius: 10px; background: var(--line); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.operator-view-tabs button.active strong { background: rgba(255, 255, 255, .2); color: white; }
.completion-status-cards { margin-bottom: 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.completion-status-card { min-width: 0; min-height: 78px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); cursor: pointer; display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 11px; text-align: left; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.completion-status-card:hover { border-color: #9aafb5; box-shadow: 0 3px 10px rgba(24, 44, 51, .06); }
.completion-status-card.active { border-color: var(--teal); background: var(--teal-soft); box-shadow: inset 0 0 0 1px var(--teal); }
.completion-status-card > span:last-child { min-width: 0; display: grid; gap: 4px; }
.completion-status-card small { color: var(--muted); font-size: 12px; font-weight: 750; line-height: 1.25; }
.completion-status-card strong { color: var(--ink); font-size: 22px; line-height: 1; }
.completion-status-card.active small, .completion-status-card.active .completion-status-icon { color: var(--teal); }
.completion-status-icon { width: 38px; height: 38px; border-radius: 7px; background: #edf2f3; color: var(--muted); display: grid; place-items: center; }
.completion-status-icon svg { width: 19px; height: 19px; }
.completion-status-card.active .completion-status-icon { background: rgba(20, 125, 116, .12); }
.completion-handler-workload {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.completion-handler-workload[hidden] { display: none; }
.completion-handler-head { min-width: 112px; display: grid; gap: 3px; }
.completion-handler-head strong { font-size: 12px; }
.completion-handler-head span { color: var(--muted); font-size: 10px; }
.completion-handler-list {
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.completion-handler-pill {
  min-width: max-content;
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafb;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 2px 8px;
  text-align: left;
}
.completion-handler-pill span { font-size: 11px; font-weight: 750; }
.completion-handler-pill strong { font-size: 12px; }
.completion-handler-pill small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
}
.completion-handler-pill:hover,
.completion-handler-pill.active { border-color: var(--teal); background: var(--teal-soft); }
.completion-handler-pill.active { box-shadow: inset 0 0 0 1px var(--teal); }
.completion-handler-pill.urgent:not(.active) { border-color: #e3b5b1; background: #fff8f7; }
.completion-handler-pill.urgent small { color: #a54a43; }
.operator-toolbar { margin-bottom: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: white; display: grid; grid-template-columns: minmax(240px, 1fr) 240px; gap: 10px; align-items: end; }
.operator-toolbar label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 750; }
.operator-date-presets { height: 40px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.completion-claim-note { margin-bottom: 12px; padding: 10px 12px; border: 1px solid #c8dcda; border-radius: 7px; background: #f3f9f8; color: #315f5b; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 650; line-height: 1.5; }
.completion-claim-note svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--teal); }
.completion-filter-group { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.completion-filter-group .inline-filter { width: auto; }
.completion-filter-group select { width: 220px; }
.completion-filter-group #completion-handler-filter { width: 180px; }
.completion-filter-group .completion-ownership-filter select { width: 140px; }
.operator-pending-filter { margin-bottom: 12px; display: grid; grid-template-columns: minmax(220px, 360px) 160px; justify-content: flex-end; gap: 10px; }
.operator-pending-filter label { width: min(360px, 100%); display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 750; }
.operator-pending-filter select { width: 100%; }
.operator-table { min-width: 980px; }
.operator-table th:last-child, .operator-table td:last-child { width: 80px; text-align: right; }
.operator-batch-bar { margin-bottom: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: white; display: grid; grid-template-columns: minmax(150px, 1fr) minmax(150px, .7fr) minmax(150px, .7fr) auto auto; align-items: end; gap: 10px; }
.operator-batch-bar > div { align-self: center; display: grid; gap: 4px; }
.operator-batch-bar > div strong { font-size: 13px; }
.operator-batch-bar > div span { color: var(--muted); font-size: 11px; }
.operator-batch-bar label, .operator-record-filter label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 750; }
.operator-batch-bar input, .operator-batch-bar select { min-width: 0; }
.completion-waive-button { color: #9a4d11; border-color: #dfb184; background: #fff8ef; }
.completion-waive-button:hover:not(:disabled) { border-color: #bd722f; background: #fff1df; }
.operator-record-filter { width: min(320px, 100%); margin-bottom: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.operator-record-table th:last-child, .operator-record-table td:last-child { width: 260px; }
.operator-record-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.operator-return-button { border-color: #dfb184; background: #fff8ef; color: #9a4d11; }
.operator-return-button:hover:not(:disabled) { border-color: #bd722f; background: #fff1df; }
.operator-pending-table { min-width: 0; table-layout: fixed; }
.operator-pending-table th, .operator-pending-table td { padding-right: 8px; padding-left: 8px; white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
.operator-pending-table .check-column { width: 42px; text-align: center; }
.operator-pending-table th:nth-child(2) { width: 10%; }
.operator-pending-table th:nth-child(3) { width: 8%; }
.operator-pending-table th:nth-child(4), .operator-pending-table th:nth-child(5) { width: 13%; }
.operator-pending-table th:nth-child(6) { width: 7%; }
.operator-pending-table th:nth-child(7) { width: 9%; }
.operator-pending-table th:nth-child(8), .operator-pending-table th:nth-child(9), .operator-pending-table th:nth-child(10) { width: 7%; }
.operator-pending-table th:last-child, .operator-pending-table td:last-child { width: 92px; }
.operator-pending-table .check-column input { width: 16px; height: 16px; }
.operator-pending-table td { vertical-align: middle; }
.operator-pending-table .pending-value { display: grid; gap: 3px; }
.operator-pending-table .pending-value small { color: var(--muted); }
.candidate-assignment-meta { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 650; line-height: 1.35; }
.candidate-assignment-meta.overdue { color: #a54a43; }
.candidate-source-note.overdue { color: #a54a43; }
.operator-pending-table .missing-value { color: var(--red); font-weight: 750; }
.operator-pending-table .complete-value { color: var(--green); font-weight: 750; }
.fan-group-cell { white-space: nowrap; }
.fan-group-count { color: var(--ink); font-size: 13px; font-weight: 800; }
.fan-group-unit { margin-left: 3px; color: var(--muted); font-size: 10px; }

@media (max-width: 1400px) {
  .topbar { display: block; }
  .top-actions { margin-top: 12px; justify-content: flex-end; flex-wrap: wrap; }
  .source-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .action-toolbar { grid-template-columns: minmax(320px, 1.4fr) repeat(3, minmax(130px, 1fr)); }
  .action-search { grid-column: 1 / -1; }
}

@media (min-width: 701px) and (max-width: 1400px) {
  .topbar.account-mode,
  .topbar.weekly-mode,
  .topbar.monthly-mode,
  .topbar.media-dashboard-mode { display: flex; }
  .topbar.account-mode .top-actions,
  .topbar.weekly-mode .top-actions,
  .topbar.monthly-mode .top-actions,
  .topbar.media-dashboard-mode .top-actions { margin-top: 0; }
}

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 74px minmax(0, 1fr); }
  .sidebar { padding: 16px 9px; }
  .brand { display: none; }
  .nav-search { display: none; }
  .brand-copy, .nav button[data-view] > span, .side-status div, .side-user > div { display: none; }
  .nav { margin-top: 0; }
  .nav-section-toggle { display: none; }
  .nav-section-items { display: grid; gap: 4px; }
  .nav button[data-view] { justify-content: center; padding: 0; }
  .nav-count { position: absolute; transform: translate(13px, -13px); margin: 0; }
  .side-user { grid-template-columns: 32px; justify-content: center; padding-right: 0; padding-left: 0; }
  .side-status { display: flex; justify-content: center; padding: 15px 0 0; }
  .top-actions { align-items: flex-start; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .weekly-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-column, .source-grid, .analytics-layout { grid-template-columns: 1fr; }
  .analytics-layout.even { grid-template-columns: 1fr; }
  .analytics-slicers { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
  .analytics-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-target-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-comparison-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .analytics-comparison-period {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .analytics-comparison-item:nth-child(3) { border-right: 0; }
  .analytics-comparison-item:nth-child(4),
  .analytics-comparison-item:nth-child(5) { border-top: 1px solid var(--line); }
  .analytics-diagnosis-layout { grid-template-columns: 1fr; }
  .daily-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hourly-insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .source-workbench { align-items: stretch; flex-direction: column; }
  .source-workbench-actions { justify-content: flex-end; }
  .source-platform-grid { grid-template-columns: 1fr; }
  .source-platform-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .source-platform-card:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .source-platform-card:last-child { border-bottom: 0; }
  .update-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .system-health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .system-health-item:nth-child(2) { border-right: 0; }
  .system-health-item:nth-child(-n + 2) { border-bottom: 1px solid #e1e8e8; }
  .source-rerun-platforms { grid-template-columns: 1fr; }
  .fetch-credentials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quality-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); overflow-x: auto; padding-bottom: 4px; }
  .audit-toolbar { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .audit-category-tabs { width: 100%; overflow-x: auto; }
  .action-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .management-action-list { grid-template-columns: 1fr; }
  .weekly-account-driver-grid { grid-template-columns: 1fr; }
  .weekly-driver-list-section { border-top: 1px solid var(--line); border-left: 0; }
  .weekly-driver-list { max-height: 520px; }
  .weekly-standard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .weekly-standard-item { border-bottom: 1px solid var(--line); }
  .weekly-analysis-path {
    grid-template-columns: minmax(145px, auto) 14px repeat(3, minmax(120px, 1fr));
    gap: 6px;
  }
  .weekly-analysis-path .weekly-path-chevron:nth-of-type(2),
  .weekly-analysis-path .weekly-path-chevron:nth-of-type(3) { display: none; }
  .weekly-project-context-grid { grid-template-columns: 1fr; }
  .weekly-project-diagnosis { grid-template-columns: 1fr; }
  .weekly-diagnosis-summary { border-right: 0; border-bottom: 1px solid #e2e9eb; }
  .weekly-entity-visuals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weekly-scorecard-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .weekly-score-metric { border-bottom: 1px solid #edf1f2; }
}

@media (max-width: 1100px) {
  .weekly-project-visual-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weekly-target-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .media-staffing-header {
    align-items: stretch;
    flex-direction: column;
  }
  .media-staffing-filters,
  .media-staffing-header > .panel-actions { width: 100%; }
  .media-staffing-header > .panel-actions { justify-content: flex-start; }
  .operator-pending-table { min-width: 1040px; table-layout: auto; }
  .operator-pending-table th, .operator-pending-table td { white-space: nowrap; overflow-wrap: normal; }
}

@media (max-width: 700px) {
  .media-staffing-filters {
    display: grid;
    grid-template-columns: 1fr;
  }
  .media-staffing-filters .segmented {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .media-staffing-filter,
  .media-staffing-date-filter { width: 100%; min-width: 0; }
  .media-staffing-filter select,
  .media-staffing-filter input,
  .media-staffing-date-filter input { width: 100%; }
  .media-staffing-header > .panel-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .media-staffing-header .inline-filter,
  .media-staffing-header .inline-filter select,
  .media-staffing-header .button { width: 100%; }
  .media-selection-summary { justify-content: center; }
  .account-watermark,
  body.has-account-watermark dialog[open]::after { background-size: 280px 158px; }
  .login-layout { grid-template-columns: 1fr; }
  .login-identity { min-height: 204px; padding: 24px; }
  .login-identity-copy { margin-top: 38px; padding: 0; }
  .login-identity-copy > span { font-size: 10px; }
  .login-identity-copy h1 { margin-top: 8px; font-size: 26px; line-height: 1.28; }
  .login-data-visual { display: none; }
  .login-live-status { margin-top: auto; padding-top: 18px; }
  .login-panel { width: min(420px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 44px; }
  .login-form-heading h2 { font-size: 24px; }
  .app-shell { display: block; }
  .sidebar { position: static; height: auto; padding: 8px; }
  .brand, .side-status, .side-user { display: none; }
  .nav-search { display: none; }
  .nav {
    display: flex;
    flex: 0 0 52px;
    align-items: stretch;
    gap: 4px;
    height: 52px;
    margin: 0;
    padding: 0 0 2px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-gutter: auto;
    overscroll-behavior-x: contain;
  }
  .nav-section,
  .nav-section-items,
  .sidebar-collapsed .nav-section,
  .sidebar-collapsed .nav-section-items,
  .nav .nav-section.open .nav-section-items { display: contents; }
  .nav-section-toggle { display: none; }
  .nav button[data-view] { flex: 0 0 52px; width: 52px; min-height: 48px; }
  .main { padding: 15px 10px 28px; }
  .workspace-header { margin: 0 0 12px; }
  .workspace-tabs { padding-right: 0; padding-left: 0; }
  .room-target-summary { grid-template-columns: 1fr 1fr; }
  .room-target-summary > div { min-height: 64px; padding: 9px 10px; }
  .room-target-summary strong { font-size: 17px; }
  .weekly-driver-summary { grid-template-columns: 1fr; }
  .weekly-driver-summary-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .weekly-driver-summary-item:last-child { border-bottom: 0; }
  .weekly-driver-slicer { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
  .weekly-driver-slicer button { flex: 0 0 auto; }
  .weekly-driver-row-metrics { grid-template-columns: minmax(0, 1.5fr) 1fr .65fr; }
  .weekly-driver-causes { grid-template-columns: auto minmax(54px, 1fr); }
  .weekly-project-standard-head,
  .weekly-room-analysis-panel > .panel-header { align-items: stretch; flex-direction: column; }
  .weekly-project-standard-head .button { align-self: flex-start; }
  .weekly-standard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weekly-account-spend-head { align-items: flex-start; }
  .weekly-account-spend-head > span { align-items: flex-start; flex-direction: column; gap: 2px; }
  .weekly-entity-volume { grid-template-columns: 1fr; }
  .weekly-entity-visuals.multi-week { grid-template-columns: 1fr; }
  .weekly-anchor-decision-grid { grid-template-columns: 1fr; }
  .weekly-anchor-decision-grid > div {
    min-height: 64px;
    border-right: 0;
    border-bottom: 1px solid #e4eaec;
  }
  .weekly-anchor-decision-grid > div:last-child { border-bottom: 0; }
  .weekly-anchor-target-review,
  .weekly-anchor-target-review.empty {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .weekly-entity-visuals {
    padding: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .weekly-account-spend-composition { grid-column: 1 / -1; }
  .weekly-entity-chart { min-height: 174px; }
  .weekly-account-spend-weeks { grid-template-columns: 1fr; gap: 10px; }
  .weekly-scorecard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weekly-score-metric { min-height: 104px; }
  .top-actions { justify-content: flex-start; }
  .topbar.attendance-mode .attendance-anchor-search { flex: 1 1 220px; }
  .date-range-control { width: 100%; flex: 1 0 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; }
  .date-range-control label { min-width: 0; height: 38px; padding: 0 8px; grid-template-columns: auto minmax(0, 1fr); gap: 6px; }
  .date-range-control input { min-width: 0; height: 34px; font-size: 11px; }
  .date-presets { width: auto; flex: 1 1 190px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .date-presets button { padding: 0 6px; }
  .top-actions .month-select { width: 112px; flex: 0 0 112px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-snapshot-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .overview-snapshot-actions { width: 100%; justify-content: space-between; }
  .overview-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-kpi { min-height: 132px; }
  .overview-dimension-tabs { width: 100%; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .overview-dimension-tabs button { min-width: 0; padding: 0 5px; }
  .weekly-page-head { align-items: stretch; }
  .weekly-page-actions { width: 100%; justify-content: stretch; flex-wrap: wrap; }
  .weekly-page-actions > .button { flex: 0 0 auto; }
  .weekly-project-picker,
  .weekly-group-picker { flex: 1 1 190px; }
  .weekly-project-picker > .button,
  .weekly-group-picker > .button { width: 100%; }
  .weekly-project-filter-panel,
  .weekly-group-filter-panel { right: 0; left: auto; width: min(320px, calc(100vw - 20px)); }
  .weekly-target-board-head { align-items: stretch; flex-direction: column; }
  .weekly-target-mode { width: 100%; }
  .weekly-target-toolbar { align-items: stretch; flex-direction: column; }
  .weekly-target-toolbar-main { align-items: stretch; flex-direction: column; }
  .weekly-target-toolbar label,
  .weekly-target-toolbar select { width: 100%; min-width: 0; }
  .weekly-target-status-filter {
    width: 100%;
    overflow-x: auto;
    grid-template-columns: repeat(4, minmax(92px, 1fr));
  }
  .weekly-picker { width: auto; flex: 1 1 auto; }
  .weekly-picker > .button { width: 100%; }
  .weekly-picker-panel { right: auto; left: 0; width: min(360px, calc(100vw - 20px)); }
  .weekly-kpi-grid { grid-template-columns: 1fr; }
  .weekly-analysis-path {
    top: 4px;
    grid-template-columns: repeat(3, minmax(130px, 1fr));
    overflow-x: auto;
  }
  .weekly-path-weeks,
  .weekly-path-chevron { display: none; }
  .weekly-analysis-path label { min-width: 130px; }
  .weekly-diagnosis-summary {
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
  }
  .weekly-diagnosis-summary > b { grid-column: 2; justify-self: start; }
  .weekly-diagnosis-summary em { white-space: normal; }
  .weekly-diagnosis-metrics {
    grid-template-columns: repeat(5, minmax(112px, 1fr));
    overflow-x: auto;
  }
  .weekly-project-options .weekly-project-option { min-width: 230px; }
  .weekly-hierarchy-options button { min-width: 288px; }
  .weekly-project-slicer-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .weekly-review-stage-context { justify-items: start; text-align: left; }
  .weekly-review-stage-context strong,
  .weekly-review-stage-context small { max-width: min(620px, calc(100vw - 48px)); }
  .weekly-project-options { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .weekly-project-options button { flex: 0 0 auto; }
  .weekly-project-visual-grid { grid-template-columns: 1fr; }
  .weekly-visual-header { align-items: stretch; }
  .weekly-metric-slicer { max-width: none; justify-content: flex-start; }
  .weekly-project-chart { height: 310px; }
  .weekly-scatter-chart { height: 360px; }
  .weekly-detail-disclosure summary small { display: none; }
  .panel-header { align-items: flex-start; flex-direction: column; }
  #session-filter { margin-left: 0; }
  .chart { gap: 5px; padding-left: 8px; padding-right: 8px; }
  .section-actions { align-items: flex-start; }
  .action-page-head { align-items: stretch; }
  .action-page-head .button { width: 100%; justify-content: center; }
  .action-toolbar { grid-template-columns: 1fr; }
  .action-status-tabs, .action-search { grid-column: auto; width: 100%; }
  .management-action-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .management-action-meta .action-scope { grid-column: 1 / -1; }
  .management-action-card > footer { align-items: stretch; flex-direction: column; }
  .management-action-card > footer .row-actions { justify-content: flex-start; }
  .user-status-tabs { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #mappings-view .section-actions { display: grid; }
  #mappings-view .section-actions .panel-actions { width: 100%; }
  #mappings-view .section-actions .panel-actions .button { flex: 1 1 0; min-width: 0; padding: 0 8px; }
  .room-manager-toolbar { align-items: stretch; flex-direction: column; }
  .room-manager-toolbar-actions { width: 100%; }
  .room-manager-tabs { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .room-manager-tabs button { min-width: 0; }
  .room-manager-search { width: 100%; max-width: none; }
  .room-manager-toolbar-actions .button { flex: 0 0 auto; }
  .analytics-actions { display: grid; }
  .analytics-slicers { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 9px; }
  .analytics-tabs { width: 100%; overflow-x: auto; }
  .analytics-tabs button {
    min-width: max-content;
    flex: 0 0 auto;
    justify-content: center;
    padding: 0 12px;
    white-space: nowrap;
  }
  .analytics-diagnosis-head {
    align-items: stretch;
    flex-direction: column;
  }
  .analytics-diagnosis-head .button { align-self: flex-start; }
  .analytics-comparison-strip { grid-template-columns: 1fr; }
  .analytics-comparison-period,
  .analytics-comparison-item {
    grid-column: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    border-top: 0;
  }
  .analytics-comparison-item:last-child { border-bottom: 0; }
  .analytics-impact-chart { height: 360px; }
  .analytics-priority-list { max-height: none; }
  .analytics-main-chart, .analytics-side-chart { height: 380px; }
  .hourly-insight-grid { grid-template-columns: 1fr; }
  .daily-review-head { align-items: stretch; flex-direction: column; }
  .daily-date-picker { min-width: 0; grid-template-columns: 48px minmax(0, 1fr); }
  .chart-metric-select { width: 100%; justify-content: space-between; }
  .source-workbench-actions { flex-direction: column; align-items: stretch; }
  .source-review-filters { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .source-review-filters button { min-width: 0; padding: 0 6px; }
  .source-platform-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .update-summary { grid-template-columns: 1fr; }
  .system-health-head { align-items: flex-start; flex-direction: column; }
  .system-health-grid { grid-template-columns: 1fr; }
  .system-health-item { border-right: 0; border-bottom: 1px solid #e1e8e8; }
  .system-health-item:last-child { border-bottom: 0; }
  .source-rerun-heading, .source-rerun-footer { align-items: stretch; flex-direction: column; }
  .source-status-date { min-width: 0; grid-template-columns: 1fr; }
  .source-rerun-window { grid-template-columns: 1fr; }
  .source-rerun-arrow { width: 100%; height: 20px; transform: rotate(90deg); }
  .source-rerun-platform { min-height: 0; }
  .source-account-menu { position: static; margin-top: 5px; box-shadow: none; }
  .source-rerun-footer .button { width: 100%; }
  .fetch-credentials { grid-template-columns: 1fr; }
  .section-actions:has(.quality-tabs) { display: grid; }
  .quality-tabs { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quality-summary { grid-template-columns: repeat(2, minmax(210px, 1fr)); }
  .giant-kpi-summary { grid-template-columns: repeat(4, minmax(180px, 1fr)); }
  .quality-card { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .quality-card strong { grid-row: auto; }
  .quality-session-actions { width: 100%; justify-content: flex-start; }
  .quality-status-tabs { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quality-status-tabs button { justify-content: center; }
  .inline-filter { width: 100%; justify-content: space-between; }
  .inline-filter select { width: min(220px, 65vw); }
  .session-layout { display: block; }
  .session-room-nav { max-height: none; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); }
  .session-room-title { position: static; padding-bottom: 6px; border-bottom: 0; }
  #session-room-menu { display: flex; overflow-x: auto; padding: 0 8px 9px; }
  #session-room-menu button { width: auto; min-width: max-content; grid-template-columns: auto auto; border: 1px solid var(--line); background: white; }
  .form-grid, .keyword-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  #user-room-checkboxes { grid-template-columns: 1fr; }
  .operator-topbar { padding: 0 12px; }
  .operator-main { width: calc(100% - 20px); padding-top: 18px; }
  .operator-heading { align-items: flex-start; }
  .operator-toolbar { grid-template-columns: 1fr; }
  .operator-pending-filter { grid-template-columns: 1fr; justify-content: stretch; }
  .operator-pending-filter label { width: 100%; }
  .completion-filter-group { width: 100%; display: grid; grid-template-columns: 1fr; }
  .completion-filter-group .inline-filter { width: 100%; }
  .completion-filter-group select,
  .completion-filter-group #completion-handler-filter,
  .completion-filter-group .completion-ownership-filter select { width: min(260px, 65vw); }
  .operator-view-tabs { width: 100%; }
  .completion-status-cards {
    grid-template-columns: repeat(4, minmax(108px, 1fr));
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .completion-status-card {
    min-height: 82px;
    padding: 10px;
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .completion-status-icon { display: none; }
  .completion-status-card small { font-size: 10px; }
  .completion-status-card strong { font-size: 19px; }
  .completion-handler-workload { grid-template-columns: 1fr; }
  .completion-handler-list { justify-content: flex-start; }
  .operator-batch-bar { grid-template-columns: 1fr; }
  .operator-batch-bar .button { width: 100%; }
  .operator-pending-table {
    min-width: 0;
    table-layout: auto;
  }
  .operator-pending-table thead { display: none; }
  .operator-pending-table tbody {
    display: grid;
    gap: 10px;
    padding: 10px;
  }
  .operator-pending-table tr.operator-candidate-card {
    position: relative;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .operator-pending-table tr.operator-candidate-card td {
    width: auto;
    padding: 0;
    border: 0;
    display: grid;
    align-content: start;
    gap: 3px;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: left;
  }
  .operator-pending-table tr.operator-candidate-card td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
    line-height: 1.2;
  }
  .operator-pending-table tr.operator-candidate-card td:nth-child(2) {
    grid-column: 1 / -1;
    padding-right: 34px;
  }
  .operator-pending-table tr.operator-candidate-card .check-column {
    position: absolute;
    top: 13px;
    right: 13px;
    display: block;
  }
  .operator-pending-table tr.operator-candidate-card .check-column::before { display: none; }
  .operator-pending-table tr.operator-candidate-card .operator-candidate-action {
    grid-column: 1 / -1;
  }
  .operator-pending-table tr.operator-candidate-card .operator-candidate-action::before { display: none; }
  .operator-pending-table tr.operator-candidate-card .operator-candidate-action .button {
    width: 100%;
    justify-content: center;
  }
  .operator-pending-table .empty-row {
    display: block;
    padding: 28px 12px;
    border: 0;
  }
  .operator-record-table {
    min-width: 0;
    table-layout: auto;
  }
  .operator-record-table thead { display: none; }
  .operator-record-table tbody {
    display: grid;
    gap: 10px;
    padding: 10px;
  }
  .operator-record-table tr.operator-record-card {
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .operator-record-table tr.operator-record-card td {
    width: auto;
    padding: 0;
    border: 0;
    display: grid;
    align-content: start;
    gap: 3px;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: left;
  }
  .operator-record-table tr.operator-record-card td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
    line-height: 1.2;
  }
  .operator-record-table tr.operator-record-card td:first-child {
    grid-column: 1 / -1;
  }
  .operator-record-table tr.operator-record-card .operator-record-action {
    grid-column: 1 / -1;
  }
  .operator-record-table tr.operator-record-card .operator-record-action::before { display: none; }
  .operator-record-table tr.operator-record-card .operator-record-action .button {
    width: 100%;
    justify-content: center;
  }
  .operator-record-actions { width: 100%; display: grid; grid-template-columns: 1fr; }
  .operator-record-table .empty-row {
    display: block;
    padding: 28px 12px;
    border: 0;
  }
  .audit-toolbar { grid-template-columns: 1fr; }
  .audit-category-tabs {
    grid-template-columns: repeat(6, minmax(108px, 1fr));
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .quality-summary { grid-template-columns: 1fr; overflow-x: visible; }
  .login-identity { min-height: 176px; padding: 20px; }
  .login-brand-inverse strong { font-size: 19px; }
  .login-brand-inverse small { font-size: 12px; }
  .login-identity-copy { margin-top: 28px; }
  .login-identity-copy h1 { font-size: 22px; }
  .login-live-status { display: none; }
  .login-panel { width: calc(100% - 32px); padding-top: 28px; gap: 17px; }
  .login-form-heading { margin-bottom: 4px; }
  .date-range-control label { height: 38px; padding: 0 8px; grid-template-columns: 15px minmax(0, 1fr); gap: 6px; }
  .date-range-control input { height: 34px; }
  .date-presets { flex-basis: calc(100% - 46px); }
  .top-actions .month-select { width: auto; flex: 1 1 calc(100% - 46px); }
  .topbar.attendance-mode .attendance-anchor-search { flex-basis: 100%; }
  .kpi-grid { grid-template-columns: 1fr; }
  .overview-kpi > strong { font-size: 21px; }
  .overview-trend-chart { height: 300px; }
  .analytics-kpi-grid { grid-template-columns: 1fr 1fr; }
  .daily-kpi-grid { grid-template-columns: 1fr 1fr; }
  .source-platform-metrics, .source-card-metrics { grid-template-columns: 1fr; }
  .source-order-values { grid-template-columns: 1fr; }
  .analytics-kpi { min-height: 102px; padding: 12px; }
  .analytics-kpi strong { font-size: 21px; }
  .daily-kpi strong { font-size: 20px; }
  .action-summary-grid { grid-template-columns: 1fr; }
  .management-action-card > header { align-items: flex-start; }
  .management-action-card > footer .row-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .management-action-card > footer .button { justify-content: center; }
}
.candidate-source-note {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.organization-section-actions {
  align-items: center;
}
.organization-mode-tabs {
  width: fit-content;
  margin-bottom: 16px;
}
.organization-mode-tabs button { min-width: 120px; }
.organization-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.organization-kpi {
  min-height: 86px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 13px;
}
.organization-kpi > span {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 6px;
  background: #e7eef3;
  color: var(--blue);
  display: grid;
  place-items: center;
}
.organization-kpi.warn > span { background: #f8ead8; color: var(--amber); }
.organization-kpi.good > span { background: #e0efe7; color: var(--green); }
.organization-kpi svg { width: 19px; height: 19px; }
.organization-kpi > div { display: grid; gap: 3px; }
.organization-kpi small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}
.organization-kpi strong {
  font-size: 24px;
  line-height: 1;
}
.organization-toolbar {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 160px 170px minmax(300px, .9fr);
  align-items: end;
  gap: 12px;
}
.media-organization-toolbar {
  grid-template-columns: minmax(260px, 1fr) 180px minmax(300px, .9fr);
}
.organization-toolbar label {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.organization-toolbar label > span:first-child,
.organization-group-head label > span {
  color: #46565d;
  font-size: 12px;
  font-weight: 800;
}
.organization-toolbar input,
.organization-toolbar select,
.organization-group-head input,
.organization-group-head select,
.organization-table select {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  color: var(--ink);
}
.organization-toolbar input,
.organization-group-head input { padding: 0 10px; }
.organization-toolbar select,
.organization-group-head select,
.organization-table select { padding: 0 30px 0 10px; }
.organization-search .input-with-icon { position: relative; display: block; }
.organization-search .input-with-icon svg {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 10px;
  width: 17px;
  height: 17px;
  color: var(--muted);
}
.organization-search .input-with-icon input { padding-left: 34px; }
.organization-new-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}
.organization-new-group .button { height: 38px; }
.organization-groups {
  display: grid;
  gap: 14px;
}
.organization-group {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  overflow: hidden;
}
.organization-group.has-issue { border-color: #dfc7a4; }
.organization-group-head {
  min-height: 76px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  background: #f6f8f9;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(230px, .8fr) minmax(150px, .55fr) auto;
  align-items: end;
  gap: 12px;
}
.organization-group-title {
  min-width: 0;
  align-self: center;
  display: flex;
  align-items: center;
  gap: 11px;
}
.organization-group-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 6px;
  background: var(--teal-soft);
  color: var(--teal);
  display: grid;
  place-items: center;
}
.organization-group-icon svg { width: 19px; height: 19px; }
.organization-group-title > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.organization-group-title strong,
.organization-group-name {
  font-size: 17px;
  font-weight: 800;
}
.organization-group-name {
  height: 34px !important;
  max-width: 260px;
  padding-left: 8px !important;
  background: transparent !important;
  border-color: transparent !important;
}
.organization-group-name:hover,
.organization-group-name:focus {
  background: white !important;
  border-color: var(--line) !important;
}
.organization-group-title small {
  color: var(--muted);
  font-size: 12px;
}
.organization-group-head label {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.organization-table-wrap { overflow-x: auto; }
.organization-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  table-layout: fixed;
}
.organization-table th,
.organization-table td {
  padding: 11px 13px;
  border-bottom: 1px solid #e5eaec;
  text-align: left;
  vertical-align: middle;
}
.organization-table th {
  background: #fbfcfc;
  color: #3c4c53;
  font-size: 13px;
  font-weight: 850;
}
.organization-table th:nth-child(1) { width: 10%; }
.organization-table th:nth-child(2) { width: 15%; }
.organization-table th:nth-child(3) { width: 19%; }
.organization-table th:nth-child(4) { width: 23%; }
.organization-table th:nth-child(5) { width: 20%; }
.organization-table th:nth-child(6) { width: 13%; }
.organization-table tbody tr:last-child td { border-bottom: 0; }
.organization-table tbody tr:hover { background: #f8fbfb; }
.organization-table td > strong { font-size: 14px; }
.organization-table td > small {
  margin-top: 3px;
  color: var(--muted);
  display: block;
  font-size: 11px;
}
.organization-room-issue { background: #fffaf3; }
.media-organization-table th:nth-child(1) { width: 25%; }
.media-organization-table th:nth-child(2) { width: 25%; }
.media-organization-table th:nth-child(3) { width: 32%; }
.media-organization-table th:nth-child(4) { width: 18%; }
.venue-swatch {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 4px;
  background: #e8eff4;
  color: #355f7b;
  font-size: 12px;
  font-weight: 800;
}
.organization-empty {
  min-height: 180px;
  border: 1px dashed #c8d2d6;
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255,255,255,.55);
  display: grid;
  place-items: center;
}
.user-scope-divider {
  margin: 0 5px 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}
.keyword.subtle { background: #e8eef3; color: #4b6472; }

/* 主播考勤 */
.attendance-view.active { display: grid; gap: 12px; }
.attendance-rule-strip {
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 26px;
}
.attendance-rule-strip > div:not(.attendance-rule-legend) {
  min-width: 190px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.attendance-rule-strip > div > span:last-child { display: grid; gap: 3px; }
.attendance-rule-strip strong { color: #294047; font-size: 14px; font-weight: 850; }
.attendance-rule-strip small { color: var(--muted); font-size: 11px; }
.attendance-rule-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 7px;
  background: #e6eef7;
  color: var(--blue);
  display: grid;
  place-items: center;
}
.attendance-rule-icon.effective { background: #e2f2e9; color: var(--green); }
.attendance-rule-icon svg { width: 19px; height: 19px; }
.attendance-rule-legend {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.attendance-rule-legend span { display: inline-flex; align-items: center; gap: 6px; }
.attendance-rule-legend i { width: 9px; height: 9px; border-radius: 2px; }
.attendance-rule-legend i.good { background: #3b9a68; }
.attendance-rule-legend i.partial { background: #d39331; }
.attendance-rule-legend i.review { background: #c95050; }

.attendance-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.attendance-summary-item {
  min-width: 0;
  min-height: 100px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-top: 3px solid #8aa0aa;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 13px;
}
.attendance-summary-item.primary { border-top-color: var(--blue); }
.attendance-summary-item.effective { border-top-color: var(--green); }
.attendance-summary-item.review { border-top-color: var(--red); }
.attendance-summary-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 7px;
  background: #edf2f4;
  color: #57707a;
  display: grid;
  place-items: center;
}
.attendance-summary-item.primary .attendance-summary-icon { background: #e6eef7; color: var(--blue); }
.attendance-summary-item.effective .attendance-summary-icon { background: #e2f2e9; color: var(--green); }
.attendance-summary-item.review .attendance-summary-icon { background: #f8e7e7; color: var(--red); }
.attendance-summary-icon svg { width: 20px; height: 20px; }
.attendance-summary-item > span:last-child { min-width: 0; display: grid; gap: 3px; }
.attendance-summary-item small { color: var(--muted); font-size: 11px; font-style: normal; }
.attendance-summary-item strong {
  color: #203238;
  font-size: 24px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.attendance-summary-item em {
  overflow: hidden;
  color: #7a888e;
  font-size: 10px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attendance-attention-section {
  margin-top: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid #ead9cb;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.attendance-attention-head {
  min-height: 66px;
  padding: 12px 15px;
  border-bottom: 1px solid #eee3da;
  background: #fffaf5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.attendance-attention-head > div { min-width: 0; display: grid; gap: 2px; }
.attendance-attention-head span { color: #a96625; font-size: 9px; font-weight: 850; }
.attendance-attention-head h2 { color: #3c4649; font-size: 17px; }
.attendance-attention-head small { color: #7b8589; font-size: 11px; }
.attendance-attention-head > strong { flex: 0 0 auto; color: #ad4b45; font-size: 19px; font-variant-numeric: tabular-nums; }
.attendance-attention-list { max-height: 286px; overflow: auto; overscroll-behavior: contain; }
.attendance-attention-item {
  min-height: 62px;
  padding: 9px 14px;
  border-top: 1px solid #ece7e2;
  display: grid;
  grid-template-columns: 112px minmax(180px, 1fr) 170px 86px;
  align-items: center;
  gap: 12px;
}
.attendance-attention-item:first-child { border-top: 0; }
.attendance-attention-date,
.attendance-attention-anchor { min-width: 0; display: grid; gap: 3px; }
.attendance-attention-date strong,
.attendance-attention-anchor strong { color: #344a52; font-size: 13px; }
.attendance-attention-date small,
.attendance-attention-anchor small { overflow: hidden; color: #7a898e; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.attendance-attention-counts { display: flex; align-items: baseline; gap: 12px; color: #738187; font-size: 11px; }
.attendance-attention-counts span:first-child { color: #a26021; }
.attendance-attention-counts b { font-size: 18px; font-variant-numeric: tabular-nums; }
.attendance-attention-gap { color: #7b898e; font-size: 11px; text-align: right; }
.attendance-attention-gap strong { color: #b04444; font-size: 17px; }
.attendance-attention-empty { min-height: 72px; color: #28725f; display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 12px; }
.attendance-attention-empty svg { width: 18px; height: 18px; }

.attendance-matrix-section {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.attendance-matrix-header {
  min-height: 64px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.attendance-matrix-header > div { min-width: 0; display: grid; gap: 4px; }
.attendance-matrix-header h2 { margin: 0; color: #273c43; font-size: 17px; font-weight: 850; }
.attendance-matrix-header span { color: var(--muted); font-size: 11px; }
.attendance-matrix-range {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 6px;
  background: #edf3f4;
  color: #40575f !important;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.attendance-matrix-wrap {
  max-height: calc(100vh - 400px);
  min-height: 260px;
  overflow: auto;
  overscroll-behavior: contain;
}
.attendance-matrix-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 12px;
}
.attendance-matrix-table th,
.attendance-matrix-table td {
  height: 64px;
  padding: 8px 10px;
  border-right: 1px solid #e1e7e9;
  border-bottom: 1px solid #e1e7e9;
  text-align: center;
  vertical-align: middle;
}
.attendance-matrix-table thead th {
  position: sticky;
  z-index: 4;
  top: 0;
  height: 62px;
  background: #eef3f4;
  color: #344a52;
  box-shadow: inset 0 -1px 0 #ced9dc;
}
.attendance-anchor-column { width: 126px; min-width: 126px; max-width: 126px; }
.attendance-anchor-column strong,
.attendance-anchor-column small { display: block; overflow: hidden; text-overflow: ellipsis; }
.attendance-anchor-column strong { font-size: 14px; font-weight: 850; }
.attendance-anchor-column small { margin-top: 4px; color: #74838a; font-size: 10px; font-weight: 650; }
.attendance-date-column {
  position: sticky !important;
  z-index: 3;
  left: 0;
  width: 144px;
  min-width: 144px;
  max-width: 144px;
  background: #f7f9f9;
  box-shadow: inset -1px 0 0 #ced9dc;
}
.attendance-matrix-table thead .attendance-date-column { z-index: 7; background: #e8eff0; }
.attendance-date-column strong,
.attendance-date-column small { display: block; }
.attendance-date-column strong { color: #293e46; font-size: 13px; font-weight: 850; font-variant-numeric: tabular-nums; }
.attendance-date-column small { margin-top: 4px; color: #77868c; font-size: 10px; font-weight: 650; }
.attendance-total-column {
  position: sticky !important;
  z-index: 3;
  right: 0;
  width: 150px;
  min-width: 150px;
  max-width: 150px;
  background: #edf3f4;
  box-shadow: inset 1px 0 0 #ced9dc;
}
.attendance-matrix-table thead .attendance-total-column { z-index: 7; background: #e4edef; }
.attendance-total-column > strong,
.attendance-total-column > small { display: block; }
.attendance-total-column > strong { font-size: 13px; font-weight: 850; }
.attendance-total-column > small { margin-top: 4px; color: #718087; font-size: 10px; }
.attendance-cell { width: 126px; min-width: 126px; max-width: 126px; }
.attendance-cell.empty { background: #fbfcfc; }
.attendance-cell.good { background: #edf8f2; }
.attendance-cell.partial { background: #fff7e8; }
.attendance-cell.review { background: #fff0f0; }
.attendance-cell-counts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.attendance-cell-counts > span { min-width: 34px; display: grid; gap: 2px; justify-items: center; }
.attendance-cell-counts strong { color: #30444b; line-height: 1; font-variant-numeric: tabular-nums; }
.attendance-cell-counts small { color: #75848a; font-size: 9px; font-weight: 700; }
.attendance-cell-counts .effective-metric strong { font-size: 22px; font-weight: 850; }
.attendance-cell-counts .effective-metric small { font-size: 10px; }
.attendance-cell-counts .session-metric { min-width: 28px; }
.attendance-cell-counts .session-metric strong { color: #6d7d83; font-size: 14px; font-weight: 750; }
.attendance-cell-counts .session-metric small { font-size: 8px; }
.attendance-cell.good .effective-metric strong { color: #187247; }
.attendance-cell.partial .effective-metric strong { color: #9a5b0b; }
.attendance-cell.review .effective-metric strong { color: #ae3434; }
.attendance-cell-counts.total .effective-metric strong { color: #25505e; }
.attendance-daily-presence {
  display: block;
  margin-top: 5px;
  color: #506970;
  font-size: 9px;
  font-weight: 800;
}
.attendance-matrix-table thead .attendance-days-summary-row th {
  position: sticky;
  z-index: 5;
  top: 62px;
  height: 52px;
  border-top: 1px solid #cbd7da;
  border-bottom: 2px solid #b8c9cc;
  background: #e9f0f1;
  box-shadow: 0 3px 7px rgba(24, 34, 39, .07);
}
.attendance-matrix-table thead .attendance-days-summary-row .attendance-date-column,
.attendance-matrix-table thead .attendance-days-summary-row .attendance-total-column { z-index: 8; }
.attendance-days-label strong { font-size: 13px; }
.attendance-days-label small { white-space: normal; }
.attendance-days-cell strong,
.attendance-days-grand-total strong {
  display: inline-block;
  color: #1f6658;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}
.attendance-days-cell small,
.attendance-days-grand-total small {
  margin-left: 3px;
  color: #61737a;
  font-size: 9px;
  font-weight: 750;
}
.attendance-matrix-table tbody tr:hover .attendance-date-column { background: #eef4f3; }
.attendance-matrix-table tbody tr:hover .attendance-total-column { background: #e6efef; }

/* 薪资结算 */
.payroll-view.active { display: grid; gap: 14px; }
.payroll-section-actions { margin-bottom: 0; }
.payroll-month-filter input { width: 132px; }
.payroll-summary-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) repeat(4, minmax(145px, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  box-shadow: var(--shadow);
}
.payroll-summary-card {
  min-width: 0;
  min-height: 88px;
  padding: 15px 16px;
  border-left: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.payroll-summary-card:first-child { border-left: 0; }
.payroll-summary-card.primary { background: #edf5f3; }
.payroll-summary-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #42637a;
  background: #edf3f7;
}
.payroll-summary-card.good .payroll-summary-icon { color: #1a754e; background: #e5f4eb; }
.payroll-summary-card.warn .payroll-summary-icon { color: #9a5c0d; background: #fff3da; }
.payroll-summary-card.primary .payroll-summary-icon { color: #126e65; background: #d9ebe6; }
.payroll-summary-icon svg { width: 18px; height: 18px; }
.payroll-summary-card > span:last-child { min-width: 0; display: grid; gap: 3px; }
.payroll-summary-card small { color: var(--muted); font-size: 11px; font-weight: 800; }
.payroll-summary-card strong { color: #273d4a; font-size: 19px; line-height: 1.08; font-variant-numeric: tabular-nums; }
.payroll-summary-card.primary strong { color: #125f59; font-size: 24px; }
.payroll-summary-card em { color: #74858e; font-size: 10px; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.payroll-roster-panel { margin-bottom: 0; overflow: hidden; }
.payroll-roster-header { min-height: 68px; gap: 16px; }
.payroll-roster-header h2 { font-size: 16px; }
.payroll-roster-actions { flex-wrap: wrap; justify-content: flex-end; }
.payroll-roster-tabs {
  padding: 0 16px;
  border-top: 1px solid #edf1f2;
  border-bottom: 1px solid var(--line);
  background: #f8fafb;
  display: flex;
  align-items: stretch;
  gap: 2px;
  overflow-x: auto;
}
.payroll-roster-tabs button {
  min-height: 48px;
  padding: 0 13px;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #62767e;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.payroll-roster-tabs button:hover { color: #245e5a; background: #f0f6f5; }
.payroll-roster-tabs button.active { border-bottom-color: #1d8277; color: #155f59; background: #edf6f4; }
.payroll-roster-tabs strong {
  min-width: 23px;
  height: 22px;
  padding: 0 6px;
  border-radius: 5px;
  color: #5f737b;
  background: #e6ecee;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.payroll-roster-tabs button.active strong { color: white; background: #277f76; }
.payroll-roster-list { max-height: 360px; overflow-y: auto; }
.payroll-roster-row {
  min-width: 860px;
  min-height: 66px;
  padding: 9px 16px;
  border-bottom: 1px solid #edf1f2;
  display: grid;
  grid-template-columns: minmax(125px, 1.05fr) 92px 128px minmax(170px, 1.2fr) minmax(145px, 1fr) minmax(190px, auto);
  align-items: center;
  gap: 12px;
}
.payroll-roster-row:last-child { border-bottom: 0; }
.payroll-roster-row:hover { background: #fafcfc; }
.payroll-roster-row.candidates { box-shadow: inset 3px 0 #d49332; }
.payroll-roster-row.included { box-shadow: inset 3px 0 #278373; }
.payroll-roster-row.previous { box-shadow: inset 3px 0 #5b7fa1; }
.payroll-roster-row.excluded { box-shadow: inset 3px 0 #a65a5e; background: #fffafa; }
.payroll-roster-person,
.payroll-roster-metric,
.payroll-roster-period,
.payroll-roster-status { min-width: 0; display: grid; gap: 3px; }
.payroll-roster-person strong { overflow: hidden; color: #283f48; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.payroll-roster-row small { color: #849399; font-size: 9px; font-weight: 750; }
.payroll-roster-metric strong { color: #334d56; font-size: 14px; font-variant-numeric: tabular-nums; }
.payroll-roster-period span,
.payroll-roster-status span { overflow: hidden; color: #5c7179; font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.payroll-roster-row.excluded .payroll-roster-status span { color: #99484d; }
.payroll-roster-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.payroll-roster-empty { min-height: 96px; color: #71848b; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; }
.payroll-roster-empty svg { width: 18px; height: 18px; color: #3f8a7e; }
.payroll-roster-dialog { width: min(620px, calc(100vw - 28px)); }
.payroll-roster-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.payroll-roster-reason-field { margin: 16px; display: grid; gap: 6px; color: #50656d; font-size: 11px; font-weight: 800; }
.payroll-roster-reason-field textarea { width: 100%; resize: vertical; }
.payroll-table-panel { margin-bottom: 0; }
.payroll-table-header { min-height: 68px; gap: 18px; }
.payroll-table-tools { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.payroll-search-field {
  width: 210px;
  height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: white;
  display: flex;
  align-items: center;
  gap: 7px;
}
.payroll-search-field:focus-within { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(29, 139, 126, .12); }
.payroll-search-field svg { width: 15px; height: 15px; color: #7c8e95; }
.payroll-search-field input { min-width: 0; width: 100%; padding: 0; border: 0; outline: 0; background: transparent; font-size: 12px; }
.payroll-status-filter { flex: 0 0 auto; }
.payroll-table-scroll {
  max-height: calc(100vh - 304px);
  scrollbar-gutter: stable;
  background: #f8faf9;
}
.payroll-table {
  --payroll-anchor-width: 92px;
  --payroll-day-width: 102px;
  --payroll-standard-width: 98px;
  min-width: 1490px;
  border-spacing: 0;
  border-collapse: separate;
  table-layout: fixed;
}
.payroll-table th,
.payroll-table td {
  border-right: 1px solid rgba(116, 137, 143, .18);
  white-space: nowrap;
}
.payroll-table th:last-child,
.payroll-table td:last-child { border-right: 0; }
.payroll-table th {
  padding: 7px 8px;
  text-align: center;
  vertical-align: middle;
  font-size: 12px;
  line-height: 1.25;
}
.payroll-table td {
  height: 48px;
  padding: 8px 9px;
  vertical-align: middle;
  background: white;
}
.payroll-col-anchor { width: var(--payroll-anchor-width); }
.payroll-col-days { width: var(--payroll-day-width); }
.payroll-col-guarantee { width: 106px; }
.payroll-col-base { width: 88px; }
.payroll-col-registrations { width: 78px; }
.payroll-col-rate { width: 76px; }
.payroll-col-money { width: 94px; }
.payroll-col-comprehensive { width: 116px; }
.payroll-col-sessions { width: 74px; }
.payroll-col-session-total { width: 116px; }
.payroll-col-final { width: 112px; }
.payroll-col-plan { width: var(--payroll-standard-width); }

.payroll-header-main > th { top: 0; height: 38px; }
.payroll-header-groups > th { top: 38px; height: 38px; }
.payroll-header-fields > th { top: 76px; height: 42px; }
.payroll-header-main > th,
.payroll-header-groups > th,
.payroll-header-fields > th { z-index: 5; }
.payroll-identity-head { color: white; background: #177f75; }
.payroll-identity-head:first-child { background: #2b67c8; }
.payroll-decision-head {
  color: white;
  background: #bb6507;
  font-size: 13px;
  font-weight: 900;
}
.payroll-guarantee-head { color: #473960; background: #e9e0f4; }
.payroll-registration-head,
.payroll-registration-field { color: #5e3549; background: #f5dce8; }
.payroll-session-head,
.payroll-session-field { color: #664519; background: #f7d9ae; }
.payroll-final-head { color: white; background: #79a500; }
.payroll-standard-head { color: #3f5057; background: #eef2f3; }

.payroll-sticky-left-1,
.payroll-sticky-left-2,
.payroll-sticky-left-3,
.payroll-sticky-right-1,
.payroll-sticky-right-2 { position: sticky; }
.payroll-sticky-left-1 { left: 0; }
.payroll-sticky-left-2 { left: var(--payroll-anchor-width); }
.payroll-sticky-left-3 {
  left: calc(var(--payroll-anchor-width) + var(--payroll-day-width));
  box-shadow: 8px 0 12px -12px rgba(24, 48, 55, .75);
}
.payroll-sticky-right-1 { right: 0; }
.payroll-sticky-right-2 {
  right: var(--payroll-standard-width);
  box-shadow: -8px 0 12px -12px rgba(24, 48, 55, .75);
}
.payroll-table thead .payroll-sticky-left-1,
.payroll-table thead .payroll-sticky-left-2,
.payroll-table thead .payroll-sticky-left-3,
.payroll-table thead .payroll-sticky-right-1,
.payroll-table thead .payroll-sticky-right-2 { z-index: 8; }
.payroll-table tbody .payroll-sticky-left-1,
.payroll-table tbody .payroll-sticky-left-2,
.payroll-table tbody .payroll-sticky-left-3,
.payroll-table tbody .payroll-sticky-right-1,
.payroll-table tbody .payroll-sticky-right-2 { z-index: 3; }
.payroll-identity-cell { background: #f7fbfa !important; }
.payroll-guarantee-cell { background: #f6f2fa !important; }
.payroll-registration-cell { background: #fff5f9 !important; }
.payroll-session-cell { background: #fff8ed !important; }
.payroll-final-cell { background: #f2f7df !important; }
.payroll-standard-cell { background: #f7f9f9 !important; }
.payroll-result-cell { font-weight: 800; }
.payroll-table tbody tr:hover .payroll-identity-cell { background: #eaf5f2 !important; }
.payroll-table tbody tr:hover .payroll-guarantee-cell { background: #eee6f6 !important; }
.payroll-table tbody tr:hover .payroll-registration-cell { background: #fce8f1 !important; }
.payroll-table tbody tr:hover .payroll-session-cell { background: #ffeed5 !important; }
.payroll-table tbody tr:hover .payroll-final-cell { background: #e7f0c9 !important; }
.payroll-table tbody tr:hover .payroll-standard-cell { background: #edf2f2 !important; }
.payroll-sort-button {
  width: 100%;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
  font: inherit;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.25;
  cursor: pointer;
}
.payroll-sort-button span { min-width: 0; white-space: normal; }
.payroll-sort-button svg { width: 13px; height: 13px; flex: 0 0 13px; color: currentColor; opacity: .62; }
.payroll-sort-button:hover { color: var(--teal); }
.payroll-sort-button:hover svg { color: var(--teal); }
.payroll-sort-button.active { color: #0d5e58; }
.payroll-identity-head .payroll-sort-button.active,
.payroll-final-head .payroll-sort-button.active { color: white; text-decoration: underline; text-underline-offset: 3px; }
.payroll-sort-button.active svg { color: currentColor; opacity: 1; }
.payroll-table .money-cell { font-variant-numeric: tabular-nums; }
.payroll-table .payroll-status {
  display: inline-flex;
  max-width: 120px;
  padding: 4px 7px;
  border-radius: 5px;
  background: #e6f5ec;
  color: #176842;
  font-size: 11px;
  font-weight: 800;
}
.payroll-table .payroll-status.pending { background: #fff1e7; color: #a94e15; }
.payroll-table tr.payroll-pending { background: #fffcf7; }
.payroll-table tr.payroll-pending .payroll-sticky-left-1 { box-shadow: inset 3px 0 #d79536; }
.payroll-anchor-cell { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.payroll-table .payroll-anchor {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.payroll-table .payroll-anchor strong { overflow: hidden; color: #273d4a; font-size: 13px; font-weight: 850; text-overflow: ellipsis; }
.payroll-table .payroll-anchor small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; }
.payroll-cell-stack { display: grid; justify-items: center; gap: 2px; text-align: center; }
.payroll-cell-stack strong { font-size: 13px; }
.payroll-cell-stack small { color: var(--muted); font-size: 9px; font-weight: 700; }
.payroll-final-cell strong { color: #365600; font-size: 14px; }
.payroll-plan-badge {
  display: inline-flex;
  min-height: 24px;
  padding: 0 7px;
  border-radius: 5px;
  align-items: center;
  font-size: 10px;
  font-weight: 850;
}
.payroll-plan-badge.registration { background: #e3f2e9; color: #176845; }
.payroll-plan-badge.session { background: #e5eef7; color: #285e88; }
.payroll-plan-badge.guarantee { background: #fff0d2; color: #8c5b12; }
.payroll-plan-badge.pending { background: #edf0f1; color: #697a81; }
.payroll-detail-button { width: 26px; height: 26px; flex: 0 0 26px; margin: 0; border-color: transparent; color: #4f6f7d; }
.payroll-detail-button:hover { border-color: #b9cfcc; background: #eaf4f2; color: var(--teal); }
.payroll-detail-button svg { width: 14px; height: 14px; }

.payroll-detail-dialog {
  width: min(900px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow: hidden;
}
.payroll-detail-dialog form { max-height: calc(100vh - 28px); display: flex; flex-direction: column; }
.payroll-detail-header { flex: 0 0 auto; }
.payroll-detail-scroll { min-height: 0; padding: 16px 18px; overflow-y: auto; display: grid; gap: 18px; }
.payroll-result-strip {
  min-height: 92px;
  padding: 16px 18px;
  border: 1px solid #c8dcd8;
  border-left: 4px solid var(--teal);
  border-radius: 7px;
  background: #eff6f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.payroll-result-strip > div:first-child { display: grid; gap: 3px; }
.payroll-result-strip small { color: #587069; font-size: 11px; font-weight: 800; }
.payroll-result-strip > div:first-child > strong { color: #155f59; font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.payroll-result-strip > div:first-child > span { color: var(--muted); font-size: 10px; }
.payroll-result-meta { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.payroll-detail-section { display: grid; gap: 10px; }
.payroll-detail-section-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.payroll-detail-section-title h3 { margin: 0; color: #2b414a; font-size: 14px; }
.payroll-detail-section-title span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.payroll-plan-comparison { padding: 12px 14px; border: 1px solid var(--line); border-radius: 7px; display: grid; gap: 11px; }
.payroll-plan-row { display: grid; grid-template-columns: 124px minmax(140px, 1fr) 112px; align-items: center; gap: 12px; }
.payroll-plan-label { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; }
.payroll-plan-label em { padding: 2px 5px; border-radius: 4px; background: #dff0e9; color: #176845; font-size: 8px; font-style: normal; }
.payroll-plan-track { height: 8px; overflow: hidden; border-radius: 4px; background: #edf1f2; }
.payroll-plan-track span { display: block; height: 100%; border-radius: inherit; background: #aebdc3; }
.payroll-plan-row.winner.registration .payroll-plan-track span { background: #4c9a73; }
.payroll-plan-row.winner.session .payroll-plan-track span { background: #5d8fb8; }
.payroll-plan-row.winner.guarantee .payroll-plan-track span { background: #c69a4a; }
.payroll-plan-row > strong { text-align: right; color: #334951; font-size: 13px; font-variant-numeric: tabular-nums; }
.payroll-plan-row.winner > strong { color: #155f59; font-size: 14px; }
.payroll-config-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.payroll-config-grid label { display: grid; gap: 5px; color: #52666e; font-size: 10px; font-weight: 800; }
.payroll-config-grid input {
  width: 100%;
  height: 36px;
  padding: 0 9px;
  border: 1px solid #d6c283;
  border-radius: 6px;
  outline: 0;
  background: #fff8df;
  color: #303c43;
  text-align: right;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.payroll-config-grid input:focus { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(29, 139, 126, .12); }
.payroll-calculation-grid { border: 1px solid var(--line); border-radius: 7px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.payroll-calculation-grid > section { min-width: 0; padding: 13px 14px; border-left: 1px solid var(--line); }
.payroll-calculation-grid > section:first-child { border-left: 0; }
.payroll-calculation-grid h4 { margin: 0 0 10px; color: #334951; display: flex; align-items: center; gap: 6px; font-size: 11px; }
.payroll-calculation-grid h4 svg { width: 15px; height: 15px; color: var(--teal); }
.payroll-calculation-grid section > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; }
.payroll-detail-metric { min-width: 0; display: grid; gap: 2px; }
.payroll-detail-metric small { color: var(--muted); font-size: 9px; font-weight: 700; }
.payroll-detail-metric strong { overflow: hidden; color: #344b54; font-size: 12px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.payroll-detail-metric.emphasis strong { color: #155f59; font-size: 13px; }
.payroll-attendance-note { padding: 10px 12px; border-radius: 6px; background: #f3f6f6; color: #60747c; display: flex; align-items: flex-start; gap: 8px; font-size: 10px; line-height: 1.5; }
.payroll-attendance-note svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 1px; }
.payroll-attendance-note span { display: grid; gap: 2px; }
.payroll-attendance-note strong { color: #40555d; font-size: 10px; }
.payroll-detail-actions { flex: 0 0 auto; border-top: 1px solid var(--line); }
#payroll-detail-error { flex: 0 0 auto; margin: 0; padding: 9px 18px; border-top: 1px solid #efd2cd; background: #fff5f3; }

@media (max-width: 1320px) {
  .payroll-summary-card { padding-right: 12px; padding-left: 12px; }
}

@media (max-width: 1100px) {
  .payroll-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .payroll-summary-card:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .payroll-summary-card:nth-child(4) { border-left: 0; }
  .payroll-table-scroll { max-height: calc(100vh - 342px); }
  .payroll-table-header { align-items: flex-start; flex-direction: column; }
  .payroll-roster-header { align-items: flex-start; flex-direction: column; }
  .payroll-roster-actions { width: 100%; justify-content: flex-start; }
  .payroll-table-tools { width: 100%; justify-content: flex-start; }
  .attendance-rule-strip { align-items: flex-start; flex-wrap: wrap; gap: 14px 24px; }
  .attendance-rule-legend { width: 100%; margin-left: 0; justify-content: flex-start; }
  .attendance-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .attendance-matrix-wrap { max-height: calc(100vh - 430px); }
}

@media (max-width: 760px) {
  .payroll-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payroll-summary-card:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .payroll-summary-card:nth-child(odd) { border-left: 0; }
  .payroll-summary-card:nth-child(even) { border-left: 1px solid var(--line); }
  .payroll-section-actions { align-items: stretch; flex-direction: column; }
  .payroll-section-actions .panel-actions { width: 100%; }
  .payroll-section-actions .payroll-month-filter { flex: 1; }
  .payroll-roster-tabs { padding: 0 8px; }
  .payroll-roster-list { overflow-x: auto; }
  .payroll-roster-actions { align-items: stretch; flex-direction: column; }
  .payroll-roster-actions .button { width: 100%; justify-content: center; }
  .payroll-roster-form-grid { grid-template-columns: 1fr; }
  .payroll-table-tools { align-items: stretch; flex-direction: column; }
  .payroll-search-field { width: 100%; }
  .payroll-status-filter { width: 100%; }
  .payroll-status-filter button { flex: 1; }
  .payroll-table-scroll { max-height: 62vh; }
  .payroll-table .payroll-sticky-left-2,
  .payroll-table .payroll-sticky-left-3,
  .payroll-table .payroll-sticky-right-1,
  .payroll-table .payroll-sticky-right-2 {
    position: static;
    box-shadow: none;
  }
  .payroll-result-strip { align-items: flex-start; flex-direction: column; }
  .payroll-result-meta { justify-content: flex-start; }
  .payroll-plan-row { grid-template-columns: 106px minmax(90px, 1fr) 96px; gap: 8px; }
  .payroll-config-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payroll-calculation-grid { grid-template-columns: 1fr; }
  .payroll-calculation-grid > section { border-top: 1px solid var(--line); border-left: 0; }
  .payroll-calculation-grid > section:first-child { border-top: 0; }
  .attendance-rule-strip { display: grid; grid-template-columns: 1fr; }
  .attendance-rule-legend { align-items: flex-start; flex-direction: column; gap: 8px; }
  .attendance-summary-grid { grid-template-columns: 1fr; }
  .attendance-attention-head { align-items: flex-start; }
  .attendance-attention-item { grid-template-columns: 100px minmax(0, 1fr); }
  .attendance-attention-counts,
  .attendance-attention-gap { text-align: left; }
  .attendance-matrix-header { align-items: flex-start; flex-direction: column; }
  .attendance-matrix-range { width: 100%; text-align: center; }
  .attendance-matrix-wrap { max-height: 58vh; }
}

@media (max-width: 1200px) {
  .organization-toolbar {
    grid-template-columns: minmax(240px, 1fr) 150px 160px;
  }
  .organization-new-group { grid-column: 1 / -1; }
  .media-organization-toolbar { grid-template-columns: 1fr 1fr; }
  .organization-group-head {
    grid-template-columns: minmax(240px, 1fr) minmax(220px, .8fr) minmax(150px, .55fr);
  }
  .organization-group-head > .icon-button { position: absolute; right: 14px; }
}

@media (max-width: 760px) {
  .organization-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .organization-toolbar { grid-template-columns: 1fr 1fr; }
  .media-organization-toolbar { grid-template-columns: 1fr; }
  .organization-search,
  .organization-new-group { grid-column: 1 / -1; }
  .organization-group-head { grid-template-columns: 1fr; align-items: stretch; }
  .organization-group-name { max-width: none; }
}

/* 责任运营奖金 */
.operator-bonus-view { gap: 14px; }
.operator-bonus-actions .panel-actions { flex-wrap: wrap; }
.operator-bonus-month-filter input { width: 142px; }
.operator-bonus-summary-grid {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  box-shadow: 0 3px 12px rgba(24, 34, 39, .04);
}
.operator-bonus-summary-card {
  min-width: 0;
  min-height: 104px;
  padding: 16px;
  border-left: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 11px;
}
.operator-bonus-summary-card:first-child { border-left: 0; }
.operator-bonus-summary-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 7px;
  background: #edf3f4;
  color: #4e6872;
  display: grid;
  place-items: center;
}
.operator-bonus-summary-icon svg { width: 17px; height: 17px; }
.operator-bonus-summary-card > span:last-child { min-width: 0; display: grid; gap: 3px; }
.operator-bonus-summary-card small { color: var(--muted); font-size: 11px; font-weight: 800; }
.operator-bonus-summary-card strong { overflow: hidden; color: #253a43; font-size: 21px; line-height: 1.15; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.operator-bonus-summary-card em { overflow: hidden; color: #7a898f; font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.operator-bonus-summary-card.primary .operator-bonus-summary-icon { background: #dcefed; color: #0e766f; }
.operator-bonus-summary-card.primary strong { color: #0d665f; }
.operator-bonus-summary-card.good .operator-bonus-summary-icon { background: #e5f3ea; color: #187948; }
.operator-bonus-summary-card.warn .operator-bonus-summary-icon { background: #fff0df; color: #a65d0c; }
.operator-bonus-summary-card.warn strong { color: #a65316; }
.operator-bonus-summary-card.bad .operator-bonus-summary-icon { background: #fae9e7; color: #b34743; }
.operator-bonus-summary-card.bad strong { color: #a73d39; }

.operator-bonus-table-panel,
.operator-bonus-detail-panel,
.operator-bonus-unassigned-panel { overflow: hidden; }
.operator-bonus-table-header { align-items: center; }
.operator-bonus-search-field {
  width: min(310px, 100%);
  height: 36px;
  position: relative;
  display: block;
}
.operator-bonus-search-field svg { position: absolute; top: 10px; left: 11px; width: 16px; height: 16px; color: #7b8b91; pointer-events: none; }
.operator-bonus-search-field input { height: 36px; padding-left: 34px; font-size: 12px; }
.operator-bonus-table-scroll { max-height: 44vh; }
.operator-bonus-detail-scroll { max-height: 40vh; }
.operator-bonus-table,
.operator-bonus-detail-table { width: 100%; min-width: 1060px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.operator-bonus-table { min-width: 1635px; }
.operator-bonus-detail-table { min-width: 1680px; }
.operator-bonus-table th,
.operator-bonus-detail-table th {
  position: sticky;
  z-index: 2;
  top: 0;
  padding: 9px 10px;
  border-bottom: 1px solid #cad5d9;
  background: #e8eff1;
  color: #31464f;
  text-align: left;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
}
.operator-bonus-table th:nth-child(1) { width: 112px; }
.operator-bonus-table th:nth-child(2) { width: 86px; }
.operator-bonus-table th:nth-child(3) { width: 190px; }
.operator-bonus-table th:nth-child(4) { width: 160px; }
.operator-bonus-table th:nth-child(5) { width: 82px; }
.operator-bonus-table th:nth-child(6),
.operator-bonus-table th:nth-child(7) { width: 112px; }
.operator-bonus-table th:nth-child(8),
.operator-bonus-table th:nth-child(9) { width: 154px; }
.operator-bonus-table th:nth-child(10) { width: 155px; }
.operator-bonus-table th:nth-child(11) { width: 92px; }
.operator-bonus-table th:nth-child(12) { width: 118px; }
.operator-bonus-table td,
.operator-bonus-detail-table td {
  height: 46px;
  padding: 9px 10px;
  border-bottom: 1px solid #e2e8ea;
  background: white;
  color: #344951;
  vertical-align: middle;
  font-size: 12px;
  line-height: 1.4;
}
.operator-bonus-table tbody tr:hover td,
.operator-bonus-detail-table tbody tr:hover td { background: #f2f8f7; }
.operator-bonus-table th.number,
.operator-bonus-table td.number,
.operator-bonus-detail-table th.number,
.operator-bonus-detail-table td.number { text-align: center; font-variant-numeric: tabular-nums; }
.operator-bonus-table th button {
  width: 100%;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: inherit;
  gap: 4px;
  text-align: inherit;
  font: inherit;
  font-weight: 850;
  letter-spacing: 0;
}
.operator-bonus-table th.number button { justify-content: center; text-align: center; }
.operator-bonus-table th button svg { width: 13px; height: 13px; flex: 0 0 13px; opacity: .55; }
.operator-bonus-table th button:hover,
.operator-bonus-table th button.active { color: #0d665f; }
.operator-bonus-name { color: #233d48; font-size: 13px; }
.operator-bonus-list { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.operator-bonus-allocated strong { color: #0e6c65; font-size: 13px; }
.operator-bonus-goal-cell {
  min-width: 0;
  display: grid;
  gap: 3px;
  justify-items: center;
}
.operator-bonus-goal-cell strong { font-size: 13px; line-height: 1.15; }
.operator-bonus-goal-cell small {
  overflow: hidden;
  width: 100%;
  color: #75858b;
  font-size: 9px;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.operator-bonus-goal-track {
  overflow: hidden;
  width: 78px;
  max-width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #e5ebed;
}
.operator-bonus-goal-track i { height: 100%; background: currentColor; display: block; }
.operator-bonus-goal-cell.good { color: #187948; }
.operator-bonus-goal-cell.warn { color: #a65d0c; }
.operator-bonus-goal-cell.bad { color: #b34743; }
.operator-bonus-goal-cell.neutral { color: #7b898f; }
.operator-bonus-score-cell {
  min-width: 0;
  display: grid;
  gap: 4px;
  justify-items: center;
}
.operator-bonus-score-cell strong { font-size: 14px; line-height: 1.15; }
.operator-bonus-score-cell small {
  overflow: hidden;
  width: 100%;
  color: #75858b;
  font-size: 9px;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.operator-bonus-score-cell.good strong { color: #187948; }
.operator-bonus-score-cell.warn strong { color: #a65d0c; }
.operator-bonus-score-cell.bad strong { color: #b34743; }
.operator-bonus-score-cell.neutral strong { color: #7b898f; }
.operator-bonus-amount { background: #f2f7df !important; }
.operator-bonus-amount strong { color: #436500; font-size: 14px; }
.operator-bonus-detail-table td small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.operator-bonus-unassigned-panel .panel-header { border-left: 4px solid #c07822; }

/* Live schedule */
.schedule-panel { min-width: 0; }
.schedule-panel-header { align-items: center; }
.schedule-panel-header h2 { font-size: 18px; }
.schedule-actions { flex-wrap: nowrap; }
.schedule-actions #schedule-save {
  min-width: 126px;
  border-color: #0b6b63;
  background: #0b6b63;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  opacity: 1;
}
.schedule-actions #schedule-save > span,
.schedule-actions #schedule-save > svg { color: inherit; }
.schedule-actions #schedule-save:disabled {
  border-color: #c5d4d0;
  background: #e7eeec;
  color: #4a625c;
  opacity: 1;
}
.schedule-date-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.schedule-date-control > label {
  height: 38px;
  min-width: 162px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.schedule-date-control > label svg { width: 16px; height: 16px; color: var(--muted); }
.schedule-date-control input {
  min-width: 0;
  width: 126px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}
.schedule-status-bar {
  min-height: 46px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  background: #fafcfc;
  display: flex;
  align-items: center;
  gap: 14px;
}
.schedule-summary { display: flex; align-items: center; gap: 0; min-width: 0; }
.schedule-summary > span {
  min-height: 24px;
  padding: 2px 12px;
  border-right: 1px solid var(--line);
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.schedule-summary > span:first-child { padding-left: 0; }
.schedule-summary > span:last-child { border-right: 0; }
.schedule-summary strong { color: var(--ink); font-size: 15px; }
.schedule-summary .assigned strong { color: #28735d; }
.schedule-summary .unassigned strong { color: #9b5f23; }
.schedule-loading svg { width: 15px; height: 15px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.schedule-version {
  min-width: 0;
  margin-left: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.schedule-version.dirty { color: #a65f1b; font-weight: 700; }
.schedule-pagination { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.schedule-pagination > span { min-width: 116px; text-align: center; color: var(--muted); font-size: 12px; }
.schedule-board-wrap { width: 100%; min-width: 0; overflow: visible; }
.schedule-board {
  --schedule-columns: 5;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(var(--schedule-columns), minmax(0, 1fr));
  background: white;
}
.schedule-room-column {
  min-width: 0;
  border-right: 1px solid var(--line);
  background: white;
}
.schedule-room-column:last-child { border-right: 0; }
.schedule-room-header {
  position: sticky;
  top: 114px;
  z-index: 3;
  min-width: 0;
  padding: 10px 8px 0;
  border-bottom: 1px solid var(--line);
  background: #f7faf9;
  box-shadow: 0 1px 0 rgba(24, 44, 41, .03);
}
.schedule-room-title {
  min-width: 0;
  height: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr);
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.schedule-room-title > span { color: #9aa8a5; font-weight: 400; }
.schedule-room-title > b {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
}
.schedule-room-title input {
  min-width: 0;
  width: 100%;
  height: 28px;
  padding: 0 4px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
}
.schedule-room-title input:first-child { text-align: right; }
.schedule-room-title input:last-child { text-align: left; }
.schedule-room-title input.editing { border-color: #79a89b; background: white; outline: 2px solid rgba(71, 133, 115, .14); }
.schedule-room-meta {
  min-width: 0;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
}
.schedule-room-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-shift-heading,
.schedule-shift-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 78px 78px minmax(76px, 1fr);
  align-items: center;
  gap: 5px;
}
.schedule-shift-heading {
  height: 27px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}
.schedule-shift-row {
  height: 34px;
  padding: 3px 8px;
  border-bottom: 1px solid #edf1f0;
}
.schedule-shift-row:nth-child(even) { background: #fbfcfc; }
.schedule-shift-row input {
  min-width: 0;
  width: 100%;
  height: 27px;
  padding: 0 4px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #344742;
  font-size: 11px;
  text-align: center;
}
.schedule-shift-row input.editing {
  border-color: #79a89b;
  background: white;
  outline: 2px solid rgba(71, 133, 115, .14);
}
.schedule-time-field { position: relative; min-width: 0; }
.schedule-time-field > small {
  position: absolute;
  right: 3px;
  bottom: 0;
  color: #76539a;
  font-size: 8px;
  line-height: 1;
  pointer-events: none;
}
.schedule-shift-row.next-day .schedule-time-field input { padding-right: 20px; }
.schedule-shift-row .schedule-anchor-input {
  border-color: var(--schedule-anchor-border, transparent);
  background: var(--schedule-anchor-bg, transparent);
  color: var(--schedule-anchor-ink, #344742);
  font-size: 12px;
  font-weight: 800;
}
.schedule-shift-row.unassigned .schedule-anchor-input {
  border-color: #d9dfdd;
  background: #f1f3f2;
  color: #87918f;
  font-weight: 600;
}
.schedule-room-empty {
  min-height: 680px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}
.schedule-empty-state {
  min-height: 430px;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}
.schedule-empty-state > svg { width: 34px; height: 34px; color: #8ea39d; }
.schedule-empty-state > strong { color: var(--ink); font-size: 16px; }
.schedule-empty-state > span { max-width: 480px; font-size: 12px; }
.operator-schedule-view { min-width: 0; }
.operator-schedule-view .schedule-room-header { top: 0; }
.operator-schedule-view .schedule-panel-header { flex-direction: row; align-items: center; }

@media (max-width: 1260px) {
  .schedule-panel-header { align-items: stretch; flex-direction: column; }
  .schedule-actions { width: 100%; flex-wrap: wrap; }
  .schedule-version { display: none; }
}

@media (max-width: 720px) {
  .schedule-actions { display: grid; grid-template-columns: 1fr auto auto; }
  .schedule-date-control { grid-column: 1 / -1; }
  .schedule-date-control > label { flex: 1; }
  .schedule-date-control input { width: 100%; }
  .schedule-actions .button { min-width: 0; }
  .schedule-status-bar { align-items: flex-start; flex-direction: column; }
  .schedule-summary { width: 100%; overflow-x: auto; }
  .schedule-pagination { width: 100%; justify-content: space-between; }
  .schedule-pagination > span { flex: 1; }
  .schedule-room-header { top: 104px; }
}
.operator-bonus-unassigned-panel .operator-bonus-detail-table td:last-child strong { color: #a65316; }

@media (max-width: 1180px) {
  .operator-bonus-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .operator-bonus-summary-card:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .operator-bonus-summary-card:nth-child(4) { border-left: 0; }
}

@media (max-width: 760px) {
  .operator-bonus-actions { align-items: stretch; flex-direction: column; }
  .operator-bonus-actions .panel-actions { width: 100%; }
  .operator-bonus-month-filter { flex: 1; }
  .operator-bonus-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operator-bonus-summary-card { min-height: 94px; padding: 12px; }
  .operator-bonus-summary-card:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .operator-bonus-summary-card:nth-child(odd) { border-left: 0; }
  .operator-bonus-summary-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .operator-bonus-table-header { align-items: stretch; flex-direction: column; }
  .operator-bonus-search-field { width: 100%; }
}

/* Dashboard focus navigation keeps each analysis page centered on one question. */
.dashboard-focus-switch {
  width: 100%;
  min-height: 48px;
  margin: 12px 0 14px;
  padding: 4px;
  border: 1px solid #d4dfe2;
  border-radius: 7px;
  background: #edf2f3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}
.dashboard-focus-switch button {
  min-width: 0;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #586b72;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
}
.dashboard-focus-switch button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}
.dashboard-focus-switch button:hover {
  background: rgba(255, 255, 255, .62);
  color: #23434a;
}
.dashboard-focus-switch button.active {
  border-color: #2d736d;
  background: #176d66;
  color: #fff;
  box-shadow: 0 2px 7px rgba(20, 79, 75, .16);
}
.dashboard-focus-switch-prominent {
  margin-top: 0;
  margin-bottom: 16px;
}
.overview-dashboard-switch { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.weekly-dashboard-switch { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.anchors-view [data-dashboard-switch="anchors"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.overview-dashboard-switch,
[data-dashboard-panel="overview"] {
  overflow-anchor: none;
}
.dashboard-panel-inactive {
  display: none !important;
}

.dashboard-notice-grid {
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 8px;
}
.dashboard-notice-grid:empty { display: none; }
.dashboard-notice-grid > .notice {
  min-width: 0;
  min-height: 56px;
  margin: 0;
  padding: 9px 11px;
}
.dashboard-notice-grid > .notice > div { min-width: 0; }
.dashboard-notice-grid > .notice strong,
.dashboard-notice-grid > .notice span { line-height: 1.35; }
.dashboard-notice-grid > .notice .button { flex: 0 0 auto; }

.formal-period-empty {
  min-height: 190px;
  margin-bottom: 14px;
  padding: 26px 28px;
  border: 1px dashed #bccfd0;
  border-radius: 8px;
  background: #f7faf9;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}
.formal-period-empty[hidden] { display: none; }
.formal-period-empty > span { width: 46px; height: 46px; border-radius: 8px; background: #e2efed; color: var(--teal); display: grid; place-items: center; }
.formal-period-empty > span svg { width: 24px; height: 24px; }
.formal-period-empty > div:not(.formal-period-empty-actions) { display: grid; gap: 7px; }
.formal-period-empty strong { color: #29434a; font-size: 18px; }
.formal-period-empty p { max-width: 680px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.formal-period-empty p b { color: #3f5e65; }
.formal-period-empty-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
#analytics-view.no-complete-period #analytics-kpis,
#analytics-view.no-complete-period #analytics-tabs,
#analytics-view.no-complete-period [data-analytics-panel],
#anchors-view.no-complete-period #anchor-kpis,
#anchors-view.no-complete-period [data-dashboard-switch="anchors"],
#anchors-view.no-complete-period [data-dashboard-panel="anchors"] { display: none !important; }

.dashboard-filter-disclosure {
  margin-bottom: 12px;
  border: 1px solid #d7e0e3;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(25, 48, 56, .035);
}
.dashboard-filter-disclosure > summary {
  min-height: 48px;
  padding: 10px 14px;
  list-style: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.dashboard-filter-disclosure > summary::-webkit-details-marker { display: none; }
.dashboard-filter-disclosure > summary > span {
  color: #2c454e;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 850;
}
.dashboard-filter-disclosure > summary > span svg,
.dashboard-filter-disclosure > summary > svg {
  width: 16px;
  height: 16px;
}
.dashboard-filter-disclosure > summary > strong {
  overflow: hidden;
  color: #63777e;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dashboard-filter-disclosure > summary > svg {
  color: #71848b;
  transition: transform .16s ease;
}
.dashboard-filter-disclosure[open] > summary > svg { transform: rotate(180deg); }
.dashboard-filter-disclosure > .analytics-slicers {
  margin: 0;
  border: 0;
  border-top: 1px solid #e1e7e9;
  border-radius: 0 0 7px 7px;
  box-shadow: none;
}

.page-top-button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #b9cdca;
  border-radius: 7px;
  background: rgba(255, 255, 255, .96);
  color: var(--teal);
  box-shadow: 0 8px 24px rgba(25, 55, 61, .16);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.page-top-button:hover { border-color: var(--teal); background: #f0f7f5; }
.page-top-button svg { width: 19px; height: 19px; }
.page-top-button[hidden] { display: none; }

/* Feishu collaboration */
.collaboration-view { display: none; gap: 14px; }
.collaboration-view.active { display: grid; }
.collaboration-page-head { min-height: 50px; margin-bottom: 0; }
.collaboration-page-head h2 { font-size: 21px; }
.collaboration-page-head > div > span { color: var(--muted); font-size: 12px; }
.collaboration-readiness {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.collaboration-readiness-item {
  min-width: 0;
  min-height: 92px;
  padding: 14px 16px;
  border: 1px solid #dce5e6;
  border-left: 4px solid #d09a43;
  border-radius: 6px;
  background: #fff;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}
.collaboration-readiness-item.good { border-left-color: #2b9174; }
.collaboration-readiness-item > span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff6e6;
  color: #9a6720;
  display: grid;
  place-items: center;
}
.collaboration-readiness-item.good > span { background: #e7f5f0; color: #1d765f; }
.collaboration-readiness-item svg { width: 18px; height: 18px; }
.collaboration-readiness-item div { min-width: 0; display: grid; gap: 3px; }
.collaboration-readiness-item small { color: #7b898d; font-size: 11px; font-weight: 700; }
.collaboration-readiness-item strong { color: #263a40; font-size: 15px; }
.collaboration-readiness-item p { margin: 0; color: #65767c; font-size: 12px; line-height: 1.55; }
.collaboration-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.collaboration-kpi {
  min-width: 0;
  min-height: 70px;
  padding: 11px 14px;
  border: 1px solid #dce5e6;
  border-radius: 6px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 11px;
}
.collaboration-kpi > span {
  width: 32px;
  height: 32px;
  border-radius: 5px;
  background: #eef3f3;
  color: #566b72;
  display: grid;
  place-items: center;
}
.collaboration-kpi.info > span { background: #e8f1fb; color: #3972a4; }
.collaboration-kpi.warn > span { background: #fbecee; color: #ad4851; }
.collaboration-kpi.good > span { background: #e8f4ee; color: #287960; }
.collaboration-kpi svg { width: 17px; height: 17px; }
.collaboration-kpi > div { min-width: 0; display: grid; gap: 2px; }
.collaboration-kpi small { color: #75858a; font-size: 11px; font-weight: 700; }
.collaboration-kpi strong { color: #293e44; font-size: 21px; line-height: 1; font-variant-numeric: tabular-nums; }
.collaboration-workspace {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  align-items: stretch;
  gap: 12px;
}
.collaboration-compose,
.collaboration-contacts { min-width: 0; margin: 0; }
.collaboration-selection-count {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 4px;
  background: #eef5f3;
  color: #32705f;
  font-size: 11px;
  font-weight: 800;
}
.collaboration-form-body { padding: 14px 16px 16px; display: grid; gap: 12px; }
.collaboration-recipient-field {
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid #dce5e6;
  border-radius: 5px;
}
.collaboration-recipient-field legend,
.collaboration-field > span {
  color: #435960;
  font-size: 12px;
  font-weight: 800;
}
.collaboration-recipient-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}
.collaboration-recipient-toolbar .input-with-icon,
.collaboration-contact-search,
.collaboration-task-tools .input-with-icon {
  min-width: 0;
  height: 34px;
  padding: 0 9px;
  border: 1px solid #dce5e6;
  border-radius: 5px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 7px;
}
.collaboration-recipient-toolbar svg,
.collaboration-contact-search svg,
.collaboration-task-tools svg { width: 15px; height: 15px; color: #819095; }
.collaboration-recipient-toolbar input,
.collaboration-contact-search input,
.collaboration-task-tools input {
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
}
.collaboration-recipient-list {
  max-height: 184px;
  margin-top: 8px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.collaboration-recipient {
  min-width: 0;
  min-height: 50px;
  padding: 7px 8px;
  border: 1px solid #e2e9ea;
  border-radius: 5px;
  background: #fbfcfc;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
}
.collaboration-recipient:has(input:checked) { border-color: #6da999; background: #eef7f4; }
.collaboration-recipient.unbound { cursor: not-allowed; opacity: .58; }
.collaboration-recipient > input { width: 15px; height: 15px; accent-color: #327965; }
.collaboration-recipient-avatar,
.collaboration-contact-person > span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e4eeec;
  color: #3c655a;
  font-size: 12px;
  font-weight: 900;
  display: grid;
  place-items: center;
}
.collaboration-recipient > span:not(.collaboration-recipient-avatar),
.collaboration-contact-person > div { min-width: 0; display: grid; gap: 1px; }
.collaboration-recipient strong,
.collaboration-contact-person strong { overflow: hidden; color: #33484e; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.collaboration-recipient small,
.collaboration-contact-person small { overflow: hidden; color: #819095; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.collaboration-recipient em { color: #39735f; font-size: 10px; font-style: normal; font-weight: 800; }
.collaboration-recipient.unbound em { color: #8b9699; }
.collaboration-field { min-width: 0; display: grid; gap: 5px; }
.collaboration-field input,
.collaboration-field select,
.collaboration-field textarea {
  min-width: 0;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #d7e1e2;
  border-radius: 5px;
  background: #fff;
  color: #30444a;
  font: inherit;
  line-height: 1.45;
}
.collaboration-field textarea { resize: vertical; }
.collaboration-field input:focus,
.collaboration-field select:focus,
.collaboration-field textarea:focus { border-color: #629c8d; outline: 2px solid rgba(62, 133, 113, .12); }
.collaboration-form-row { display: grid; grid-template-columns: minmax(120px, .6fr) minmax(220px, 1fr); gap: 10px; }
.collaboration-send-button { width: 100%; min-height: 40px; justify-content: center; font-weight: 850; }
#collaboration-form-error.success { border-color: #add7c8; background: #edf8f4; color: #24715d; }
.collaboration-contacts { display: flex; flex-direction: column; }
.collaboration-contact-guide {
  margin: 12px 14px 8px;
  padding: 9px 10px;
  border-left: 3px solid #6f9f92;
  background: #f2f7f5;
  color: #62757a;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
}
.collaboration-contact-guide svg { width: 16px; height: 16px; }
.collaboration-contact-guide p { margin: 0; font-size: 11px; line-height: 1.55; }
.collaboration-contact-search { margin: 0 14px 8px; }
.collaboration-contact-list { max-height: 506px; padding: 0 14px 14px; overflow-y: auto; display: grid; gap: 7px; }
.collaboration-contact-row {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e1e8e9;
  border-radius: 5px;
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(110px, .9fr) auto;
  align-items: center;
  gap: 8px;
}
.collaboration-contact-person { min-width: 0; display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 8px; }
.collaboration-contact-state { min-width: 0; color: #7b888c; font-size: 10px; display: flex; align-items: center; gap: 5px; }
.collaboration-contact-state.bound { color: #29725d; }
.collaboration-contact-state svg { width: 14px; height: 14px; flex: 0 0 auto; }
.collaboration-contact-actions { display: flex; justify-content: flex-end; }
.collaboration-contact-actions .button { white-space: nowrap; }
.collaboration-binding-command {
  grid-column: 1 / -1;
  padding: 8px;
  border-radius: 4px;
  background: #f5f7f7;
  display: grid;
  grid-template-columns: auto minmax(100px, 1fr) auto;
  align-items: center;
  gap: 6px;
}
.collaboration-binding-command > span,
.collaboration-binding-command > small { color: #728287; font-size: 10px; }
.collaboration-binding-command > small { grid-column: 2; }
.collaboration-binding-command code { color: #263f46; font-size: 12px; font-weight: 850; }
.collaboration-empty { grid-column: 1 / -1; margin: 12px 0; color: #819095; font-size: 12px; text-align: center; }
.collaboration-tasks { min-width: 0; margin: 0; }
.collaboration-task-head { align-items: center; }
.collaboration-task-tools { width: min(320px, 42vw); }
.collaboration-status-tabs { margin: 12px 14px 8px; width: fit-content; max-width: calc(100% - 28px); overflow-x: auto; }
.collaboration-status-tabs button { min-width: 76px; }
.collaboration-task-table-wrap { max-height: 520px; }
.collaboration-task-table { min-width: 980px; }
.collaboration-task-table th { position: sticky; top: 0; z-index: 2; text-align: left; }
.collaboration-task-table th:nth-child(3),
.collaboration-task-table th:nth-child(4),
.collaboration-task-table th:nth-child(7),
.collaboration-task-table td:nth-child(3),
.collaboration-task-table td:nth-child(4),
.collaboration-task-table td:nth-child(7) { text-align: center; }
.collaboration-task-table td:first-child { max-width: 430px; }
.collaboration-task-table td > strong,
.collaboration-task-table td > small,
.collaboration-task-table td > em { display: block; }
.collaboration-task-table td > strong { color: #33484e; font-size: 12px; }
.collaboration-task-table td > small { margin-top: 3px; color: #718187; font-size: 10px; line-height: 1.45; white-space: normal; }
.collaboration-task-table td > em { margin-top: 4px; color: #ae434c; font-size: 10px; font-style: normal; }
.collaboration-task-table td.overdue { color: #aa414a; font-weight: 800; }
.collaboration-task-table td.overdue svg { width: 13px; height: 13px; margin-right: 4px; vertical-align: -2px; }
.collaboration-task-table tr.is-overdue { background: #fff9f9; }
.collaboration-priority,
.collaboration-task-status {
  display: inline-flex;
  min-width: 58px;
  padding: 4px 7px;
  border-radius: 4px;
  justify-content: center;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}
.collaboration-priority.normal { background: #edf1f2; color: #61747a; }
.collaboration-priority.high { background: #fff2dc; color: #94611b; }
.collaboration-priority.urgent { background: #fbe7e9; color: #a13a44; }
.collaboration-task-status.pending { background: #e8f1fb; color: #3b6f9d; }
.collaboration-task-status.active { background: #e8f4f0; color: #26715c; }
.collaboration-task-status.completed { background: #e4f5eb; color: #20704e; }
.collaboration-task-status.blocked,
.collaboration-task-status.failed { background: #fbe7e9; color: #a23e47; }
.collaboration-task-status.cancelled { background: #edf0f1; color: #758388; }

@media (max-width: 1180px) {
  .collaboration-workspace { grid-template-columns: 1fr; }
  .collaboration-contact-list { max-height: 420px; }
}

@media (max-width: 720px) {
  .collaboration-readiness { grid-template-columns: 1fr; }
  .collaboration-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collaboration-recipient-list { grid-template-columns: 1fr; }
  .collaboration-form-row { grid-template-columns: 1fr; }
  .collaboration-contact-row { grid-template-columns: minmax(0, 1fr) auto; }
  .collaboration-contact-state { grid-column: 1 / -1; }
  .collaboration-contact-actions { grid-column: 2; grid-row: 1; }
  .collaboration-task-head { align-items: stretch; flex-direction: column; }
  .collaboration-task-tools { width: 100%; }
}

@media (max-width: 900px) {
  .dashboard-focus-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .anchors-view [data-dashboard-switch="anchors"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .anchor-period-header { align-items: stretch; }
  .anchor-period-header .panel-actions { width: 100%; }
  .anchor-period-sort { flex: 1; }
  .anchor-period-toolbar { align-items: flex-start; flex-direction: column; gap: 8px; }
  .anchor-period-row-count { margin-left: 0; }
  .anchor-ranking-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .anchor-ranking-header { align-items: stretch; }
  .anchor-ranking-header .panel-actions { width: 100%; flex-wrap: wrap; }
  .anchor-ranking-sort { flex: 1; }
  .anchor-ranking-rule-strip { align-items: flex-start; flex-direction: column; gap: 6px; }
  .anchor-ranking-rule-strip small { margin-left: 0; }
  .anchor-room-daily-header { align-items: stretch; }
  .anchor-room-daily-header .panel-actions { width: 100%; align-items: stretch; }
  .anchor-room-daily-room-field { width: 100%; }
  .anchor-room-daily-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .anchor-room-daily-summary > div:nth-child(2n) { border-right: 0; }
}

@media (max-width: 560px) {
  .dashboard-focus-switch button {
    padding-inline: 7px;
    font-size: 12px;
  }
  .dashboard-filter-disclosure > summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
  }
  .dashboard-notice-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1500px) {
  .time-slot-kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .time-slot-recommendations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1320px) {
  .time-slot-toolbar { position: static; flex-wrap: wrap; }
  .time-slot-room-field { max-width: none; flex-basis: 100%; }
  .time-slot-date-fields { order: 3; }
  .time-slot-toolbar > .button { order: 4; }
  .time-slot-chart-layout { grid-template-columns: 1fr; }
  .time-slot-chart { height: 440px; }
  .time-slot-room-decisions { grid-template-columns: 1fr; }
  .time-slot-portfolio-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .time-slot-mode-switch { grid-template-columns: 1fr; }
  .time-slot-toolbar { align-items: stretch; }
  .time-slot-room-field,
  .time-slot-range-presets,
  .time-slot-date-fields { width: 100%; flex-basis: 100%; }
  .time-slot-date-fields { align-items: end; }
  .time-slot-date-fields label { flex: 1 1 0; }
  .time-slot-date-fields input { width: 100%; }
  .time-slot-toolbar > .button { width: 100%; margin-left: 0; justify-content: center; }
  .time-slot-head { align-items: stretch; flex-direction: column; }
  .time-slot-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .time-slot-portfolio-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .time-slot-recommendations { grid-template-columns: 1fr; }
  .time-slot-empty { min-height: 360px; padding: 22px; }
}
/* The auditor can use every read-side control, while business mutations stay unavailable. */
body.auditor-readonly #add-live-session-button,
body.auditor-readonly #completion-view .operator-batch-bar,
body.auditor-readonly #completion-view .check-column,
body.auditor-readonly #completion-view .operator-candidate-action,
body.auditor-readonly #quality-session-batch-action,
body.auditor-readonly #quality-view .check-column,
body.auditor-readonly #fetch-run-inline-button,
body.auditor-readonly #organization-view .organization-new-group,
body.auditor-readonly #add-mapping-button,
body.auditor-readonly #add-room-button,
body.auditor-readonly #add-room-from-manager-button,
body.auditor-readonly #manage-rooms-button,
body.auditor-readonly #weekly-standard-edit,
body.auditor-readonly #weekly-target-standard-action,
body.auditor-readonly #media-target-add-project,
body.auditor-readonly [data-media-target-apply],
body.auditor-readonly [data-media-target-edit],
body.auditor-readonly [data-media-target-delete],
body.auditor-readonly [data-media-target-child],
body.auditor-readonly [data-media-target-empty-add],
body.auditor-readonly [data-action-start],
body.auditor-readonly [data-action-complete],
body.auditor-readonly [data-action-reopen],
body.auditor-readonly [data-action-edit],
body.auditor-readonly [data-hourly-insight-action],
body.auditor-readonly [data-daily-review-action],
body.auditor-readonly [data-weekly-target-action],
body.auditor-readonly [data-overview-insight-action] {
  display: none !important;
}

body.auditor-readonly #organization-view select:disabled,
body.auditor-readonly #organization-view input:disabled,
body.auditor-readonly #payroll-detail-form input:disabled {
  color: var(--ink);
  opacity: 1;
  cursor: default;
}

/* Decision-centered dashboard structure */
.decision-horizon {
  margin-bottom: 14px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e9eef0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 5px;
}
.decision-horizon > button {
  min-width: 0;
  min-height: 54px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #566970;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.decision-horizon > button:hover { background: rgba(255,255,255,.68); color: var(--ink); }
.decision-horizon > button.active {
  border-color: #c8d6d9;
  background: white;
  color: var(--ink);
  box-shadow: 0 3px 10px rgba(31, 49, 56, .07);
}
.decision-horizon > button > svg { width: 19px; height: 19px; flex: 0 0 19px; color: #657b83; }
.decision-horizon > button.active > svg { color: var(--teal); }
.decision-horizon > button > span { min-width: 0; display: grid; gap: 2px; }
.decision-horizon small { color: #7b8b91; font-size: 10px; font-weight: 750; }
.decision-horizon strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }

#overview-view.active { display: flex; flex-direction: column; }
#overview-view > .management-center { order: 0; }
#overview-view > .overview-live-monitor { order: 1; }
#overview-view > .overview-decision-brief { order: 2; }
#overview-view > .overview-snapshot-head { order: 3; }
#overview-view > .overview-data-confidence { order: 4; }
#overview-view > .overview-kpi-grid { order: 5; }
#overview-view > .overview-dashboard-switch { order: 6; }
#overview-view > [data-dashboard-panel="overview"] { order: 7; }
#overview-view > .overview-role-focus { order: 8; }

.overview-kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.overview-kpi { min-height: 128px; }
.overview-decision-brief {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}
.overview-decision-brief-head {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.overview-decision-brief-head > div { display: grid; gap: 3px; }
.overview-decision-brief-head span { color: var(--teal); font-size: 9px; font-weight: 850; }
.overview-decision-brief-head h2 { font-size: 17px; }
.overview-decision-brief-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px; }
.overview-decision-brief-list > article {
  min-width: 0;
  min-height: 82px;
  padding: 11px;
  border: 1px solid var(--line);
  border-left: 4px solid #668aa1;
  border-radius: 7px;
  background: #fafcfc;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
}
.overview-decision-brief-list > article.good { border-left-color: #25805f; }
.overview-decision-brief-list > article.urgent { border-left-color: #b64c49; }
.overview-decision-brief-list > article > span { width: 32px; height: 32px; border-radius: 6px; background: #e8f0f3; color: #4a7289; display: grid; place-items: center; }
.overview-decision-brief-list > article.good > span { background: #e7f4ee; color: #28785c; }
.overview-decision-brief-list > article.urgent > span { background: #fae9e8; color: #a64340; }
.overview-decision-brief-list svg { width: 17px; height: 17px; }
.overview-decision-brief-list article > div { min-width: 0; display: grid; gap: 5px; }
.overview-decision-brief-list strong { font-size: 13px; }
.overview-decision-brief-list small { color: var(--muted); font-size: 11px; line-height: 1.55; }
.overview-decision-brief-list button {
  width: max-content;
  margin-top: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #356d75;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
}
.overview-decision-brief-list button:hover { color: var(--teal); }
.overview-decision-brief-list button svg { width: 14px; height: 14px; }

.metric-rule-disclosure {
  margin: -2px 0 12px;
  border: 1px solid #d7e0e2;
  border-radius: 7px;
  background: #f6f8f9;
}
.metric-rule-disclosure > summary {
  min-height: 38px;
  padding: 8px 11px;
  color: #586c73;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  list-style: none;
}
.metric-rule-disclosure > summary::-webkit-details-marker { display: none; }
.metric-rule-disclosure > summary svg { width: 15px; height: 15px; }
.metric-rule-disclosure > summary svg:last-child { margin-left: auto; transition: transform .18s ease; }
.metric-rule-disclosure[open] > summary svg:last-child { transform: rotate(180deg); }
.metric-rule-disclosure > div {
  padding: 0 11px 10px 33px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
}
.metric-rule-disclosure > div span {
  position: relative;
  color: #687b81;
  font-size: 10px;
}
.metric-rule-disclosure > div span::before { content: ""; position: absolute; left: -10px; top: 6px; width: 4px; height: 4px; border-radius: 50%; background: #6f9c96; }
.weekly-metric-rule-disclosure { margin-top: -4px; }

.dashboard-page-head h2 { font-size: 20px; }
.dashboard-page-head span { font-size: 12px; }
.monthly-page-head { min-height: 44px; margin-bottom: 10px; }
.monthly-decision-grid {
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, .8fr);
  gap: 12px;
}
.monthly-decision-grid > .panel { margin: 0; }
.monthly-project-portfolio { display: grid; gap: 7px; }
.monthly-project-filter {
  margin-bottom: 9px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f0f4f5;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.monthly-project-filter button {
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #5c7077;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 750;
}
.monthly-project-filter button strong { min-width: 20px; padding: 2px 5px; border-radius: 4px; background: #dfe8ea; color: #53666c; font-size: 10px; }
.monthly-project-filter button.active { border-color: #b8d0cc; background: white; color: #1f6259; box-shadow: 0 2px 7px rgba(31,49,56,.05); }
.monthly-project-filter button.active strong { background: #dcefe9; color: #1f6d5d; }
.monthly-project-filter-empty { min-height: 100px; border: 1px dashed #c6d1d3; border-radius: 7px; color: var(--muted); display: grid; place-items: center; font-size: 11px; }
.monthly-project-row {
  min-width: 0;
  min-height: 86px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfc;
  color: var(--ink);
  display: grid;
  grid-template-columns: minmax(180px, 1.35fr) repeat(5, minmax(112px, .8fr)) 18px;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.monthly-project-row:hover { border-color: #a9babf; background: white; box-shadow: 0 4px 13px rgba(31,49,56,.07); }
.monthly-project-main { min-width: 0; display: grid; gap: 6px; }
.monthly-project-title { min-width: 0; display: flex; align-items: center; gap: 7px; }
.monthly-project-title strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.monthly-project-title em { flex: 0 0 auto; padding: 3px 6px; border-radius: 5px; background: #edf2f3; color: #64757c; font-size: 10px; font-style: normal; font-weight: 800; }
.monthly-project-title em.scale { background: #e6f4ec; color: #1f7755; }
.monthly-project-title em.tighten { background: #fae8e7; color: #a23d3b; }
.monthly-project-title em.observe { background: #fff2db; color: #956119; }
.monthly-project-title em.missing { background: #eaf0f5; color: #4f7086; }
.monthly-project-main > small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.monthly-project-metric { min-width: 0; display: grid; gap: 4px; }
.monthly-project-metric > small { color: var(--muted); font-size: 10px; }
.monthly-project-metric > strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.monthly-project-metric > em { min-width: 0; color: #78888e; font-size: 9px; font-style: normal; white-space: nowrap; }
.monthly-project-metric > em span.good { color: var(--green); }
.monthly-project-metric > em span.bad { color: var(--red); }
.monthly-project-row > svg { width: 17px; height: 17px; color: #87969b; }

.monthly-source-mix { display: grid; gap: 15px; }
.monthly-source-total { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.monthly-source-total > span { padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: #f7f9fa; display: grid; gap: 4px; }
.monthly-source-total small { color: var(--muted); font-size: 10px; }
.monthly-source-total strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.monthly-source-stack { height: 12px; border-radius: 4px; background: #e8edef; display: flex; overflow: hidden; }
.monthly-source-stack i { min-width: 0; height: 100%; }
.monthly-source-stack .wanxin, .monthly-source-list i.wanxin { background: #2f70aa; }
.monthly-source-stack .huiyou, .monthly-source-list i.huiyou { background: #16806f; }
.monthly-source-stack .jiujiu, .monthly-source-list i.jiujiu { background: #c1842b; }
.monthly-source-stack .upstream, .monthly-source-list i.upstream { background: #a85d6c; }
.monthly-source-list { display: grid; gap: 8px; }
.monthly-source-list > div { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto 50px; align-items: center; gap: 8px; }
.monthly-source-list i { width: 9px; height: 9px; border-radius: 2px; }
.monthly-source-list span { color: #50636a; font-size: 11px; }
.monthly-source-list strong, .monthly-source-list em { font-size: 11px; font-variant-numeric: tabular-nums; }
.monthly-source-list em { color: var(--muted); font-style: normal; text-align: right; }

.strategy-loop-grid {
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.strategy-loop-grid > button {
  min-width: 0;
  min-height: 76px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
}
.strategy-loop-grid > button:hover { border-color: #9eb3b8; box-shadow: var(--shadow); }
.strategy-loop-grid > button.active { border-color: #9fc6bf; background: #f0f7f5; }
.strategy-loop-grid > button > span { min-width: 0; display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-areas: "icon small" "icon strong"; align-items: center; gap: 3px 9px; }
.strategy-loop-grid > button > span > svg { grid-area: icon; width: 30px; height: 30px; padding: 6px; border-radius: 6px; background: #e9f0f2; color: #557581; }
.strategy-loop-grid > button > span small { grid-area: small; color: var(--muted); font-size: 10px; }
.strategy-loop-grid > button > span strong { grid-area: strong; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.strategy-loop-grid > button > svg { width: 17px; height: 17px; color: #85959a; }

.action-suggestion-panel {
  margin-bottom: 14px;
  padding: 13px;
  border: 1px solid #c8d9d6;
  border-radius: 8px;
  background: #f3f8f6;
}
.action-suggestion-head { margin-bottom: 9px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.action-suggestion-head > div { display: grid; gap: 2px; }
.action-suggestion-head span { color: var(--teal); font-size: 9px; font-weight: 850; }
.action-suggestion-head h3 { font-size: 15px; }
.action-suggestion-head small { color: var(--muted); font-size: 10px; }
.action-suggestion-list { display: grid; gap: 7px; }
.action-suggestion-list > article {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #d5e0de;
  border-left: 4px solid #668aa1;
  border-radius: 6px;
  background: white;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}
.action-suggestion-list > article.good { border-left-color: #25805f; }
.action-suggestion-list > article.urgent { border-left-color: #b64c49; }
.action-suggestion-list > article > span { width: 28px; height: 28px; border-radius: 5px; background: #e8f0f3; color: #4a7289; display: grid; place-items: center; }
.action-suggestion-list > article > span svg { width: 15px; height: 15px; }
.action-suggestion-list > article > div { min-width: 0; display: grid; gap: 3px; }
.action-suggestion-list strong { font-size: 12px; }
.action-suggestion-list small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.action-empty-actions { margin-top: 7px; display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }

.weekly-level-jump {
  margin-bottom: 12px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f4f7f8;
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 5px;
}
.weekly-level-jump > span { padding: 0 8px; color: var(--muted); font-size: 10px; font-weight: 800; }
.weekly-level-jump button { min-height: 36px; padding: 7px 10px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #4f666e; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 11px; font-weight: 800; }
.weekly-level-jump button:hover { border-color: #c4d3d5; background: white; color: var(--teal); }
.weekly-level-jump button b { width: 20px; height: 20px; border-radius: 5px; background: #dde8ea; color: #536b72; display: grid; place-items: center; font-size: 10px; }

.weekly-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.weekly-kpi-values > div:has(.weekly-maturity) { grid-template-areas: "week change" "value value" "maturity maturity"; }
.weekly-maturity { grid-area: maturity; color: #7a898f; font-size: 9px; }

/* OKR operating system */
.okr-page-head { margin-bottom: 12px; }
.okr-toolbar {
  margin-bottom: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
}
.okr-toolbar > label { min-width: 0; display: grid; gap: 5px; }
.okr-toolbar > label > span { color: #526971; font-size: 11px; font-weight: 800; }
.okr-toolbar select { width: 100%; height: 38px; }
.okr-summary-grid {
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.okr-summary-card {
  min-width: 0;
  min-height: 94px;
  padding: 13px;
  border: 1px solid var(--line);
  border-top: 3px solid #66818b;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  text-align: left;
}
.okr-summary-card[data-okr-health-shortcut] { cursor: pointer; }
.okr-summary-card:hover { border-color: #a9bbbf; box-shadow: var(--shadow); }
.okr-summary-card.active { border-color: #3c8f83; box-shadow: 0 0 0 2px rgba(28, 127, 112, .12); }
.okr-summary-card > span { width: 38px; height: 38px; border-radius: 7px; background: #edf2f3; color: #54717a; display: grid; place-items: center; }
.okr-summary-card > span svg { width: 19px; height: 19px; }
.okr-summary-card > div { min-width: 0; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 3px 8px; }
.okr-summary-card small { color: var(--muted); font-size: 12px; font-weight: 800; }
.okr-summary-card strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.okr-summary-card p { grid-column: 1 / -1; color: #74868c; font-size: 11px; line-height: 1.45; }
.okr-summary-card.info { border-top-color: #3f78a6; }
.okr-summary-card.info > span { background: #e8f0f7; color: #386f9c; }
.okr-summary-card.urgent { border-top-color: #b65055; }
.okr-summary-card.urgent > span { background: #f8e8e9; color: #a54147; }
.okr-summary-card.warn { border-top-color: #bd781d; }
.okr-summary-card.warn > span { background: #f9efe1; color: #a56520; }

.okr-focus-panel { margin-bottom: 12px; padding: 13px; border: 1px solid #cfdcdd; border-radius: 8px; background: #f7faf9; }
.okr-focus-head { margin-bottom: 9px; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.okr-focus-head > div { display: grid; gap: 2px; }
.okr-focus-head span { color: var(--teal); font-size: 11px; font-weight: 900; }
.okr-focus-head h3 { color: #30484f; font-size: 16px; }
.okr-focus-head > small { color: var(--muted); font-size: 11px; }
.okr-focus-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 7px; }
.okr-focus-item { min-width: 0; min-height: 78px; padding: 10px; border: 1px solid #d7e1e2; border-left: 4px solid #648592; border-radius: 7px; background: white; color: var(--ink); display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 16px; align-items: center; gap: 9px; text-align: left; }
.okr-focus-item:hover { border-color: #9fb4b8; box-shadow: 0 4px 12px rgba(35, 55, 62, .07); }
.okr-focus-item.urgent { border-left-color: #b65055; }
.okr-focus-item.warn { border-left-color: #bd781d; }
.okr-focus-item.info { border-left-color: #3f78a6; }
.okr-focus-item > span { width: 30px; height: 30px; border-radius: 6px; background: #edf2f3; color: #56747d; display: grid; place-items: center; }
.okr-focus-item > span svg { width: 16px; height: 16px; }
.okr-focus-item > div { min-width: 0; display: grid; gap: 2px; }
.okr-focus-item small { overflow: hidden; color: #77898f; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.okr-focus-item strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.okr-focus-item p { overflow: hidden; color: #667b82; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.okr-focus-item em { color: #536a72; font-size: 11px; font-style: normal; font-weight: 800; white-space: nowrap; }
.okr-focus-item > svg { width: 16px; height: 16px; color: #87979c; }

.okr-objective-tree { display: grid; gap: 11px; }
.okr-objective-card { min-width: 0; border: 1px solid #cfdadd; border-left: 4px solid #63808a; border-radius: 8px; background: white; box-shadow: 0 3px 12px rgba(35, 55, 62, .05); overflow: hidden; }
.okr-objective-card.good { border-left-color: #16806f; }
.okr-objective-card.warn { border-left-color: #bd781d; }
.okr-objective-card.urgent { border-left-color: #b65055; }
.okr-objective-card.info { border-left-color: #3f78a6; }
.okr-objective-card.muted { border-left-color: #8a8d8d; }
.okr-objective-header { min-height: 116px; padding: 14px; display: grid; grid-template-columns: 28px minmax(300px, 1.6fr) minmax(140px, .65fr) minmax(180px, .75fr) auto; align-items: center; gap: 12px; }
.okr-objective-toggle { width: 28px; height: 34px; border: 0; border-radius: 5px; background: #eef3f4; color: #60777e; display: grid; place-items: center; }
.okr-objective-toggle:hover { background: #e1e9eb; color: var(--teal); }
.okr-objective-toggle svg { width: 17px; height: 17px; }
.okr-objective-copy { min-width: 0; display: grid; gap: 6px; }
.okr-objective-copy > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.okr-objective-copy > div > span { padding: 3px 6px; border-radius: 4px; background: #edf2f3; color: #63777e; font-size: 11px; font-weight: 800; }
.okr-objective-copy h3 { color: #273d45; font-size: 17px; line-height: 1.35; overflow-wrap: anywhere; }
.okr-objective-copy p { color: #6d8087; font-size: 12px; line-height: 1.55; }
.okr-status-tag.info { background: #e8f0f7 !important; color: #386f9c !important; }
.okr-status-tag.good { background: #e5f3ed !important; color: #137b62 !important; }
.okr-status-tag.muted { background: #f0f0ee !important; color: #706f69 !important; }
.okr-objective-owner { min-width: 0; padding-left: 12px; border-left: 1px solid #e6ecee; display: grid; gap: 4px; }
.okr-objective-owner small, .okr-objective-score small { color: #809096; font-size: 11px; font-weight: 800; }
.okr-objective-owner strong { overflow: hidden; color: #3c545c; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.okr-objective-owner span { color: #70838a; font-size: 11px; white-space: nowrap; }
.okr-objective-score { min-width: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 8px; }
.okr-objective-score > strong { color: #314950; font-size: 23px; font-variant-numeric: tabular-nums; }
.okr-objective-score > small { text-align: right; }
.okr-objective-score .okr-progress-track { grid-column: 1 / -1; }
.okr-objective-actions { display: flex; align-items: center; gap: 6px; }
.okr-health-tag { width: max-content; min-height: 24px; padding: 0 7px; border-radius: 5px; background: #edf2f3; color: #5a727a; display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 850; white-space: nowrap; }
.okr-health-tag svg { width: 12px; height: 12px; }
.okr-health-tag.good { background: #e5f3ed; color: #137b62; }
.okr-health-tag.warn { background: #f9efe1; color: #996019; }
.okr-health-tag.urgent { background: #f8e8e9; color: #a54147; }
.okr-health-tag.info { background: #e8f0f7; color: #386f9c; }
.okr-health-tag.muted { background: #f0f0ee; color: #706f69; }
.okr-progress-track { position: relative; width: 100%; height: 8px; border-radius: 3px; background: #e6ecee; overflow: visible; }
.okr-progress-track > i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: #3a8c7d; }
.okr-progress-track > b { position: absolute; top: -3px; width: 2px; height: 14px; border-radius: 1px; background: #273d45; transform: translateX(-1px); }
.okr-objective-body { padding: 0 14px 14px 54px; border-top: 1px solid #edf1f2; }
.okr-objective-context { padding: 9px 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.okr-objective-context span { color: #78898f; font-size: 12px; }
.okr-objective-context b { color: #40575f; font-size: 12px; }
.okr-review-note { margin-bottom: 9px; padding: 10px 11px; border-left: 3px solid #6e8e98; border-radius: 5px; background: #f2f6f7; display: grid; gap: 4px; }
.okr-review-note span { color: #526e77; font-size: 11px; font-weight: 850; }
.okr-review-note p { color: #566c73; font-size: 12px; line-height: 1.6; white-space: pre-wrap; }
.okr-key-result-list { display: grid; gap: 8px; }
.okr-kr-row { min-width: 0; padding: 11px; border: 1px solid #dce5e6; border-left: 3px solid #66818b; border-radius: 7px; background: #fbfcfc; display: grid; grid-template-columns: minmax(230px, 1.35fr) minmax(170px, .85fr) minmax(175px, .9fr) minmax(220px, 1.2fr) auto; align-items: center; gap: 11px; }
.okr-kr-row.good { border-left-color: #16806f; }
.okr-kr-row.warn { border-left-color: #bd781d; }
.okr-kr-row.urgent { border-left-color: #b65055; }
.okr-kr-row.info { border-left-color: #3f78a6; }
.okr-kr-identity { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 7px; align-items: center; }
.okr-kr-identity > small { overflow: hidden; color: #788a90; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.okr-kr-identity h4 { grid-column: 1 / -1; color: #314850; font-size: 15px; line-height: 1.4; }
.okr-kr-identity p { grid-column: 1 / -1; color: #72858b; display: flex; align-items: center; gap: 4px; font-size: 11px; }
.okr-kr-identity p svg { width: 12px; height: 12px; }
.okr-kr-result, .okr-kr-progress, .okr-kr-update { min-width: 0; display: grid; gap: 5px; }
.okr-kr-result small, .okr-kr-progress > small, .okr-kr-update > small { color: #839399; font-size: 11px; font-weight: 800; }
.okr-kr-result strong { color: #324b53; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.okr-kr-result strong i { color: #8a9a9f; font-size: 10px; font-style: normal; }
.okr-kr-result > span, .okr-kr-progress > span { color: #76888e; font-size: 11px; }
.okr-kr-progress > small { display: flex; justify-content: space-between; }
.okr-kr-progress > small b { color: #3c555d; font-size: 11px; }
.okr-kr-progress > span.bad { color: #aa454b; }
.okr-kr-update p { overflow: hidden; color: #556b72; font-size: 12px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.okr-kr-update em { overflow: hidden; color: #a5464b; display: flex; align-items: center; gap: 4px; font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.okr-kr-update em svg { width: 11px; height: 11px; flex: 0 0 11px; }
.okr-kr-update > span { color: #55757e; font-size: 10px; }
.okr-kr-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.okr-checkin-history { grid-column: 1 / -1; border-top: 1px solid #e4eaec; }
.okr-checkin-history > summary { padding-top: 8px; color: #617980; display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; cursor: pointer; }
.okr-checkin-history > summary svg { width: 12px; height: 12px; }
.okr-checkin-history > div { padding-top: 7px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.okr-checkin-history article { padding: 8px; border-radius: 5px; background: white; display: grid; gap: 4px; }
.okr-checkin-history header { display: flex; justify-content: space-between; gap: 8px; }
.okr-checkin-history strong { font-size: 11px; }
.okr-checkin-history header span, .okr-checkin-history small { color: #849399; font-size: 10px; }
.okr-checkin-history p, .okr-checkin-history em { color: #5e737a; font-size: 11px; font-style: normal; line-height: 1.45; }
.okr-checkin-history em { color: #a5464b; }
.okr-kr-empty { min-height: 70px; padding: 12px; border: 1px dashed #c6d2d4; border-radius: 7px; color: #72858b; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; }
.okr-child-objectives { margin-top: 12px; padding-left: 13px; border-left: 2px solid #d7e1e3; display: grid; gap: 9px; }
.okr-child-label { color: #6d838a; font-size: 10px; font-weight: 850; }
.okr-child-objectives .okr-objective-header { min-height: 104px; }
.okr-child-objectives .okr-objective-body { padding-left: 46px; }
.okr-empty { min-height: 300px; padding: 32px; border: 1px dashed #bdcacc; border-radius: 8px; background: #f9fbfb; color: #7b8e94; display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; }
.okr-empty > span { width: 46px; height: 46px; border-radius: 8px; background: #e9f0f1; color: #55747d; display: grid; place-items: center; }
.okr-empty svg { width: 23px; height: 23px; }
.okr-empty h3 { color: #3b545c; font-size: 16px; }
.okr-empty p { max-width: 520px; font-size: 12px; line-height: 1.6; }
.okr-empty .button { margin-top: 4px; }

.okr-dialog { width: min(860px, calc(100vw - 28px)); }
.okr-kr-dialog { width: min(800px, calc(100vw - 28px)); }
.okr-checkin-dialog { width: min(720px, calc(100vw - 28px)); }
.okr-objective-form-grid, .okr-key-result-form-grid, .okr-checkin-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.weekly-project-goal-dialog { width: min(760px, calc(100vw - 24px)); }
.weekly-project-goal-dialog form { max-height: calc(100vh - 28px); overflow-y: auto; }
.weekly-project-goal-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.weekly-project-goal-form-grid .suffix-input {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}
.weekly-project-goal-form-grid .suffix-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(17, 122, 105, 0.1);
}
.weekly-project-goal-form-grid .suffix-input input {
  min-width: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.weekly-project-goal-form-grid .suffix-input input:focus { box-shadow: none; }
.weekly-project-goal-form-grid .suffix-input > span {
  padding: 0 11px 0 7px;
  color: #6d7f85;
  font-size: 11px;
  font-weight: 800;
}
.weekly-project-goal-derived {
  min-height: 70px;
  align-content: center;
  padding: 9px 11px;
  border: 1px solid #dce4e4;
  border-radius: 5px;
  background: #f7f9f9;
}
.weekly-project-goal-derived strong { color: #263e46; font-size: 17px; }
.weekly-project-goal-derived small { color: #7b8b90; font-size: 10px; font-weight: 650; }
.weekly-project-goal-path-field {
  min-height: 70px;
  align-content: center;
  padding: 9px 11px;
  border: 1px solid #d6e2e2;
  border-radius: 5px;
  background: #f1f7f6;
}
.weekly-project-goal-path-field strong { color: #24484c; font-size: 14px; }
.weekly-project-goal-path-field small { color: #71858a; font-size: 10px; line-height: 1.45; }
.weekly-project-goal-late-warning {
  margin: 14px 16px 0;
  padding: 10px 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ead2ae;
  border-radius: 5px;
  background: #fff8eb;
  color: #895d20;
  font-size: 11px;
  font-weight: 750;
}
.weekly-project-goal-late-warning svg { width: 16px; height: 16px; flex: 0 0 16px; }
.okr-dialog textarea { width: 100%; resize: vertical; }
.okr-dialog label > small { color: #7d8d92; font-size: 11px; line-height: 1.45; }
.dialog-action-spacer { flex: 1; }
.button.danger-subtle { border-color: #e3c2c4; background: #fff8f8; color: #a44248; }
.button.danger-subtle:hover { border-color: #c98c90; background: #faeded; }
.okr-confidence-input { min-height: 38px; display: grid; grid-template-columns: minmax(0, 1fr) 46px; align-items: center; gap: 9px; }
.okr-confidence-input input { width: 100%; }
.okr-confidence-input strong { color: #3d5961; font-size: 12px; text-align: right; }
.okr-checkin-current { margin-bottom: 10px; padding: 11px; border: 1px solid #d6e1e2; border-radius: 7px; background: #f4f8f7; display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 8px; }
.okr-checkin-current span { color: #688087; font-size: 10px; font-weight: 800; }
.okr-checkin-current strong { color: #284a45; font-size: 20px; }
.okr-checkin-current small { color: #7d8e93; font-size: 9px; text-align: right; }

@media (max-width: 1500px) {
  .monthly-decision-grid { grid-template-columns: 1fr; }
  .monthly-project-row { grid-template-columns: minmax(170px, 1.3fr) repeat(5, minmax(100px, .8fr)) 18px; }
  .okr-objective-header { grid-template-columns: 28px minmax(270px, 1.5fr) minmax(130px, .6fr) minmax(165px, .7fr) auto; }
  .okr-kr-row { grid-template-columns: minmax(220px, 1.25fr) minmax(155px, .75fr) minmax(165px, .8fr) minmax(190px, 1fr) auto; }
}

@media (max-width: 1100px) {
  .overview-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-decision-brief-list { grid-template-columns: 1fr; }
  .weekly-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .monthly-project-row { grid-template-columns: minmax(165px, 1.25fr) repeat(4, minmax(95px, .8fr)) 18px; }
  .monthly-project-row .metric-registrations { display: none; }
  .weekly-level-jump { grid-template-columns: 1fr 1fr 1fr; }
  .weekly-project-goal-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weekly-level-jump > span { display: none; }
  .okr-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .okr-focus-list { grid-template-columns: 1fr; }
  .okr-objective-header { grid-template-columns: 28px minmax(0, 1fr) minmax(165px, .7fr) auto; }
  .okr-objective-owner { display: none; }
  .okr-kr-row { grid-template-columns: minmax(220px, 1fr) minmax(170px, .8fr) auto; }
  .okr-kr-progress, .okr-kr-update { grid-column: span 1; }
  .okr-kr-update { grid-column: 1 / 3; }
  .okr-kr-actions { grid-column: 3; grid-row: 1 / 3; }
}

@media (max-width: 700px) {
  .decision-horizon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-kpi-grid, .weekly-kpi-grid, .strategy-loop-grid,
  .weekly-project-goal-summary { grid-template-columns: 1fr; }
  .weekly-project-goal-head { align-items: stretch; flex-direction: column; }
  .weekly-project-goal-actions { justify-content: flex-start; }
  .monthly-project-row { grid-template-columns: minmax(0, 1fr) auto; }
  .monthly-project-row .monthly-project-metric { display: none; }
  .monthly-source-total { grid-template-columns: 1fr; }
  .action-suggestion-head { align-items: flex-start; }
  .action-suggestion-head .button { width: 36px; padding: 0; font-size: 0; }
  .action-suggestion-list > article { grid-template-columns: 28px minmax(0, 1fr); }
  .action-suggestion-list > article > .button { grid-column: 2; width: max-content; }
  .weekly-level-jump { grid-template-columns: 1fr; }
  .formal-period-empty { padding: 20px; grid-template-columns: 40px minmax(0, 1fr); }
  .formal-period-empty > span { width: 40px; height: 40px; }
  .formal-period-empty-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .okr-toolbar, .okr-summary-grid { grid-template-columns: 1fr; }
  .okr-page-head { align-items: stretch; }
  .okr-page-head .panel-actions { width: 100%; }
  .okr-page-head .button { flex: 1; justify-content: center; }
  .okr-focus-head { align-items: flex-start; flex-direction: column; }
  .okr-focus-item { grid-template-columns: 30px minmax(0, 1fr) 16px; }
  .okr-focus-item em { grid-column: 2; }
  .okr-focus-item > svg { grid-column: 3; grid-row: 1 / 3; }
  .okr-objective-header { grid-template-columns: 28px minmax(0, 1fr) auto; align-items: start; }
  .okr-objective-score { grid-column: 2; }
  .okr-objective-actions { grid-column: 3; grid-row: 1 / 3; flex-direction: column; }
  .okr-objective-actions .button { width: 34px; padding: 0; font-size: 0; }
  .okr-objective-body, .okr-child-objectives .okr-objective-body { padding-left: 14px; }
  .okr-kr-row { grid-template-columns: 1fr auto; align-items: start; }
  .okr-kr-result, .okr-kr-progress, .okr-kr-update { grid-column: 1; }
  .okr-kr-actions { grid-column: 2; grid-row: 1 / 5; flex-direction: column; }
  .okr-kr-actions .button { width: 34px; padding: 0; font-size: 0; }
  .okr-checkin-history { grid-column: 1 / -1; }
  .okr-checkin-history > div { grid-template-columns: 1fr; }
  .okr-objective-form-grid, .okr-key-result-form-grid, .okr-checkin-form-grid,
  .weekly-project-goal-form-grid { grid-template-columns: 1fr; }
  .okr-checkin-current { grid-template-columns: 1fr auto; }
  .okr-checkin-current small { grid-column: 1 / -1; text-align: left; }
}
.giant-background-status { margin-top: 20px; border-top: 1px solid #e2e7ec; padding: 16px; }
.giant-background-status:empty { display: none; }
.giant-background-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.giant-background-heading strong { font-size: 18px; }
.giant-background-heading span { font-size: 14px; color: #58646c; }
.giant-background-table-wrap { width: 100%; overflow-x: auto; }
.giant-background-table-wrap table { width: 100%; table-layout: fixed; min-width: 760px; border-collapse: collapse; }
.giant-background-table-wrap th, .giant-background-table-wrap td { padding: 12px 10px; text-align: left; vertical-align: middle; white-space: normal; overflow-wrap: anywhere; border-bottom: 1px solid #e2e7ec; font-size: 15px; }
.giant-background-table-wrap th { font-size: 16px; font-weight: 700; background: #f5f7f8; }
.giant-background-table-wrap th:nth-child(1) { width: 23%; }
.giant-background-table-wrap th:nth-child(2) { width: 15%; }
.giant-background-table-wrap th:nth-child(3) { width: 37%; }
.giant-background-table-wrap th:nth-child(4) { width: 9%; }
.giant-background-table-wrap th:nth-child(5) { width: 16%; }
.giant-background-error { display: block; color: #a34521; font-size: 13px; margin-top: 5px; max-height: 60px; overflow-y: auto; }
@media (min-width: 1280px) {
  #source-rerun-view .system-health-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Owner navigation groups existing pages without changing other role workspaces. */
.owner-secondary-routes { display: none !important; }
.owner-section-tabs {
  display: flex;
  align-items: stretch;
  gap: 20px;
  min-width: 0;
  margin: 0 0 18px;
  border-bottom: 1px solid var(--line, #dce4e6);
  overflow-x: auto;
}
.owner-section-tabs[hidden] { display: none; }
.owner-section-tabs > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 46px;
  padding: 8px 4px 11px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: #53666c;
  background: transparent;
  font-size: 15px;
  font-weight: 650;
}
.owner-section-tabs > button:hover { color: var(--teal); background: #f1f7f5; }
.owner-section-tabs > button.active { color: #106759; border-bottom-color: #147d6c; font-weight: 800; }
.owner-section-tabs > button:focus-visible { outline: 2px solid #147d6c; outline-offset: -2px; }
.owner-section-tabs svg { width: 18px; height: 18px; }
.owner-section-tabs strong { padding: 2px 5px; border-radius: 4px; background: #fbe9e9; color: #a7373f; font-size: 12px; }
.owner-advanced-navigation > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  list-style: none;
}
.owner-advanced-navigation > summary::-webkit-details-marker { display: none; }
.owner-advanced-navigation > summary svg { width: 17px; height: 17px; flex: 0 0 auto; }
.owner-advanced-navigation > summary svg:last-child { margin-left: auto; }
.owner-advanced-navigation[open] > summary svg:last-child { transform: rotate(180deg); }
.owner-advanced-navigation > button { width: 100%; }
.sidebar-collapsed .owner-advanced-navigation > summary span,
.sidebar-collapsed .owner-advanced-navigation > summary svg:last-child { display: none; }
.owner-workspace .decision-horizon,
.owner-workspace #weekly-analysis-path,
.owner-workspace [data-dashboard-switch="anchors"] [data-dashboard-section="targets"],
.owner-workspace [data-dashboard-switch="anchors"] [data-dashboard-section="roomDaily"] { display: none; }
.owner-workspace [data-dashboard-switch="anchors"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.owner-workspace [data-dashboard-switch="rooms"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.weekly-context-disclosures { display: contents; }
.owner-workspace .weekly-context-disclosures { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin-bottom: 12px; }
.owner-workspace .weekly-context-disclosures > details { margin: 0; min-width: 0; }
.owner-workspace .weekly-context-disclosures > details[open] { grid-column: 1 / -1; }
.owner-workspace .weekly-context-disclosures > details > summary { min-height: 42px; padding: 8px 10px; }
.owner-workspace .weekly-context-disclosures summary strong,
.owner-workspace .weekly-context-disclosures summary > span { font-size: 14px; }
.owner-workspace .weekly-context-disclosures summary small { font-size: 12px; }
.owner-workspace .weekly-selected-weeks { margin-bottom: 10px; }
.owner-workspace .weekly-level-jump { margin: 8px 0 10px; }
.owner-workspace .weekly-level-jump button { font-size: 14px; }
.owner-workspace .weekly-level-jump > span { font-size: 12px; }
.owner-workspace .weekly-review-stage-slicer { margin-top: 12px; }
.owner-workspace .owner-room-analysis > .dashboard-page-head { align-items: end; margin-bottom: 16px; }
.owner-workspace #room-analysis-room-field { flex: 0 1 460px; min-width: 0; }
.owner-workspace #room-analysis-room-field .anchor-room-daily-room-field { width: 100%; max-width: 100%; }
.owner-workspace #room-analysis-room-field select { min-height: 40px; font-size: 15px; }
.owner-workspace #room-analysis-room-field label > span { font-size: 13px; }
.owner-workspace #room-analysis-panels > .panel { margin-top: 14px; border-radius: 0; box-shadow: none; }
.owner-workspace .owner-room-analysis .anchor-room-daily-summary span { font-size: 13px; }
.owner-workspace .owner-room-analysis .anchor-room-daily-summary strong { font-size: 20px; }
.owner-workspace .owner-room-analysis .anchor-room-daily-summary small { font-size: 12px; }
.owner-workspace .owner-room-analysis .anchor-room-daily-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .owner-workspace .owner-room-analysis > .dashboard-page-head { flex-wrap: wrap; }
  .owner-workspace #room-analysis-room-field { flex-basis: 100%; }
  .owner-workspace .owner-room-analysis .anchor-room-daily-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .owner-section-tabs { gap: 14px; }
  .owner-workspace .weekly-context-disclosures { grid-template-columns: 1fr; }
  .owner-workspace [data-dashboard-switch="anchors"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .owner-workspace .weekly-page-head { flex-direction: column; gap: 12px; }
  .owner-workspace .weekly-page-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .owner-workspace .weekly-page-actions > * { width: 100%; min-width: 0; }
  .owner-workspace .weekly-page-actions .button { width: 100%; padding-inline: 8px; }
  .owner-workspace .weekly-review-stage-context { width: 100%; max-width: 100%; grid-template-columns: minmax(0, 1fr); justify-items: start; text-align: left; }
  .owner-workspace .weekly-review-stage-context strong,
  .owner-workspace .weekly-review-stage-context small { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
}
