:root {
  --ink: #1f2329;
  --muted: #646a73;
  --subtle: #8f959e;
  --line: #e1e5ec;
  --line-strong: #c9d8ff;
  --paper: #f4f7fb;
  --panel: #ffffff;
  --forest: #1456f0;
  --forest-2: #3370ff;
  --mint: #e8f0ff;
  --lime: #3370ff;
  --amber: #d46b08;
  --amber-soft: #fff7e6;
  --red: #d83931;
  --red-soft: #fdeeee;
  --blue: #1456f0;
  --cyan: #14c0ff;
  --green: #20a162;
  --green-soft: #e7f7ee;
  --shadow: 0 8px 28px rgba(31, 35, 41, 0.07);
  --shadow-hover: 0 14px 34px rgba(20, 86, 240, 0.12);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.4, 0, 1, 1);
  --duration-fast: 150ms;
  --duration: 220ms;
  --duration-slow: 320ms;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html {
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  interpolate-size: allow-keywords;
}
body { min-height: 100vh; margin: 0; font-size: 14px; line-height: 1.5; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
.app-shell { display: grid; grid-template-columns: 218px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 21px 15px 16px;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: #f7f8fa;
  border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; margin: 0 7px 24px; text-decoration: none; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #3370ff, #14c0ff);
  box-shadow: 0 7px 18px rgba(51, 112, 255, .18);
  font-size: 17px;
  font-weight: 850;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; letter-spacing: .04em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.sidebar nav { display: grid; gap: 16px; }
.nav-group { display: grid; gap: 3px; }
.nav-group-label {
  padding: 0 10px 5px;
  color: #8f959e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}
.sidebar nav a {
  padding: 9px 11px;
  border-radius: 8px;
  color: #4e5969;
  text-decoration: none;
  font-size: 14px;
  transition: .15s ease;
}
.sidebar nav a:hover { color: var(--blue); background: #eef3ff; }
.sidebar nav a.active { color: #fff; background: var(--blue); font-weight: 750; }
.nav-submenu {
  max-height: 220px;
  margin: 3px 0 0 12px;
  padding: 2px 0 2px 9px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  border-left: 1px solid #c9d8ff;
}
.sidebar nav .nav-submenu a {
  width: 100%;
  padding: 7px 9px;
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar nav .nav-submenu a:hover { color: var(--blue); background: #eef3ff; }
.sidebar nav .nav-submenu a.sub-active {
  color: var(--blue);
  background: #e8f0ff;
  box-shadow: inset 2px 0 var(--blue);
  font-weight: 750;
}
.sidebar-foot { margin-top: auto; padding: 13px 9px 3px; border-top: 1px solid var(--line); }
.sidebar-foot strong { display: block; margin: 5px 0 9px; font-size: 14px; }
.sidebar-foot button { padding: 0; border: 0; color: var(--muted); background: transparent; font-size: 12px; }
.role-label {
  padding: 3px 6px;
  border: 1px solid #adc6ff;
  border-radius: 5px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

main { min-width: 0; padding: 0 24px 34px; }
.topbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.topbar-with-back { min-height: 118px; }
.page-heading { min-width: 0; }
.page-back {
  width: fit-content;
  margin: 0 0 7px;
  padding: 7px 10px 7px 0;
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 7px;
  color: var(--blue);
  text-decoration: none;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.2;
}
.page-back span { font-size: 20px; line-height: 1; }
.page-back:hover { color: #1456d9; text-decoration: underline; text-underline-offset: 3px; }
.page-back:focus-visible { outline: 3px solid rgba(51, 112, 255, .24); outline-offset: 2px; }
.title-line { display: flex; align-items: center; gap: 10px; }
.topbar h1 { margin: 3px 0 0; font-size: clamp(22px, 2.5vw, 30px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.eyebrow { color: var(--forest-2); font-size: 11px; font-weight: 850; letter-spacing: .13em; }
.freshness { text-align: right; }
.freshness span, .freshness strong { display: block; }
.freshness span { color: var(--muted); font-size: 12px; }
.freshness strong { margin-top: 3px; color: var(--forest); font-size: 14px; }
.data-banner {
  margin-top: 13px;
  padding: 9px 12px;
  border: 1px solid #eccd89;
  border-radius: 9px;
  color: #78551e;
  background: var(--amber-soft);
  font-size: 13px;
}
.data-banner strong { margin-right: 7px; }
.data-banner-demo { border-color: #adc6ff; color: #10275c; background: #eef3ff; }
.content { padding-top: 14px; }
.date-line { margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.help-details { position: relative; display: inline-block; vertical-align: middle; margin-left: 5px; }
.help-details summary {
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #8f959e;
  border-radius: 50%;
  color: var(--forest-2);
  background: #fff;
  list-style: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}
.help-details summary::-webkit-details-marker { display: none; }
.help-details[open] summary { color: #fff; background: var(--forest-2); }
.help-card {
  position: absolute;
  z-index: 20;
  top: 23px;
  right: 0;
  width: 330px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 18px 50px rgba(31, 35, 41, .18);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
}
.help-card strong { display: block; margin-bottom: 7px; font-size: 14px; }
.help-card ul { margin: 0; padding-left: 17px; }
.help-card li + li { margin-top: 5px; }
.page-help { margin-top: 3px; }
.metric-help summary { width: 14px; height: 14px; font-size: 8px; }
.metric-help .help-card { right: auto; left: 0; width: 260px; }

.status-overview {
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid #c9d8ff;
  border-radius: 11px;
  background: #fff;
  box-shadow: var(--shadow);
}
.status-overview-head {
  min-height: 50px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #c9d8ff;
  background: #eef3ff;
}
.status-overview-head strong,
.status-overview-head span { display: block; }
.status-overview-head strong { color: #10275c; font-size: 14px; }
.status-overview-head > div:first-child > span { margin-top: 3px; color: #5f6f91; font-size: 11px; }
.status-legend { display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.status-legend span { display: flex; align-items: center; gap: 5px; }
.status-legend i { width: 8px; height: 8px; border-radius: 50%; }
.legend-normal { background: var(--blue); }
.legend-risk { background: var(--red); }
.status-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}
.status-overview-actions { display: flex; align-items: center; gap: 12px; }
.status-all-metrics {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #c9d8ff;
  border-radius: 7px;
  color: var(--blue);
  background: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
.status-all-metrics:hover,
.status-all-metrics.is-active { border-color: var(--blue); background: #e8f0ff; }
.stat-item {
  min-width: 0;
  min-height: 86px;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 0;
  border-right: 1px solid var(--line);
  color: inherit;
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
button.stat-item:last-of-type { border-right: 0; }
.stat-item.stat-accent { background: #f7faff; }
.stat-item.stat-danger { background: #fff3f1; }
.stat-item.stat-warning { background: #fff8eb; }
.stat-item:nth-of-type(even):not(.stat-accent):not(.stat-danger):not(.stat-warning) { background: #fbfcff; }
.stat-item:hover:not(:disabled) { background: #eef3ff; }
.stat-item:disabled { opacity: 1; cursor: default; }
.stat-label {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.stat-label em { color: var(--blue); font-size: 10px; font-style: normal; }
.stat-value-line {
  min-width: 0;
  margin-top: 7px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.stat-value-line > strong {
  flex: 0 0 auto;
  font-size: 27px;
  line-height: 1;
  letter-spacing: -.04em;
}
.stat-value-line > small {
  min-width: 0;
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.stat-accent .stat-value-line > strong { color: var(--forest-2); }
.stat-danger .stat-value-line > strong { color: var(--red); }
.stat-warning .stat-value-line > strong { color: var(--amber); }
.stat-item.is-active { background: #e8f0ff; box-shadow: inset 0 -3px var(--blue); }
.status-detail-panel {
  background: #fff;
  box-shadow: inset 0 2px var(--blue);
  overflow: hidden;
  opacity: 1;
  transform: translateY(0) scaleY(1);
  transform-origin: top;
  will-change: height, opacity, transform;
  transition:
    height 800ms cubic-bezier(.4, 0, .2, 1),
    opacity 800ms cubic-bezier(.4, 0, .2, 1),
    transform 800ms cubic-bezier(.4, 0, .2, 1);
}
.status-detail-panel[hidden] { display: none; }
.status-detail-panel.is-opening,
.status-detail-panel.is-closing {
  opacity: 0;
  transform: translateY(-8px) scaleY(.96);
}
.status-detail-panel.is-switching {
  opacity: .12;
  transform: translateY(-6px) scale(.995);
  transition-duration: 400ms;
}
.status-detail-panel.is-entering {
  animation: detail-panel-enter 400ms var(--ease-out);
}
.metric-detail-content { animation: detail-reveal 400ms var(--ease-out); }
@keyframes detail-reveal {
  from { opacity: 0; transform: translateY(-10px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes detail-panel-enter {
  from { opacity: .2; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.stat-drawer-head {
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: #f7f9ff;
}
.stat-drawer-head strong, .stat-drawer-head span { display: block; }
.stat-drawer-head strong { font-size: 15px; }
.stat-drawer-head span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.stat-drawer-head button { width: 28px; height: 28px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 20px; }
.stat-drawer-head button:hover { color: var(--ink); background: #e8e9eb; }
.metric-detail-list {
  display: grid;
  grid-template-columns: 1fr;
  max-height: 310px;
  overflow: auto;
}
.metric-detail-row {
  min-width: 0;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.metric-detail-row > div:first-child { min-width: 0; }
.metric-detail-row strong { display: block; overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.metric-detail-row span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.metric-detail-complex { display: block; }
.metric-row-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.metric-row-actions a {
  padding: 6px 8px;
  border: 1px solid #c9d8ff;
  border-radius: 6px;
  color: var(--blue);
  background: #fff;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.metric-row-actions a:hover { border-color: var(--blue); background: #eef3ff; }
.metric-row-actions a.detail-lark { border-color: var(--blue); color: #fff; background: var(--blue); }
.metric-row-actions a.detail-lark:hover { background: #1456d9; }
.detail-lines { margin-top: 10px; display: grid; gap: 7px; }
.detail-line {
  padding: 9px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.detail-line > div:first-child { min-width: 0; }
.detail-line strong { font-size: 11px; white-space: normal; }
.detail-line span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.metric-detail-footer {
  padding: 10px 15px;
  color: var(--muted);
  background: #f8f9fb;
  font-size: 11px;
  line-height: 1.45;
}
.detail-empty { padding: 24px; color: var(--muted); font-size: 13px; text-align: center; }
.all-metrics-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.all-metric-row {
  min-height: 76px;
  padding: 12px 15px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.all-metric-row:nth-child(3n) { border-right: 0; }
.all-metric-row span { color: var(--muted); font-size: 12px; font-weight: 650; }
.all-metric-row strong { color: var(--ink); font-size: 22px; line-height: 1; }
.all-metric-row small { grid-column: 1 / -1; color: var(--muted); font-size: 10px; line-height: 1.4; }

.management-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.action-panel { grid-column: 1 / -1; }
.week-panel,
.exception-panel { grid-column: 1 / -1; }
.week-table td:first-child {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.week-table td:nth-child(3) { min-width: 180px; }
.week-table td:nth-child(4) { min-width: 88px; }
.exception-list {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.exception-card {
  min-width: 0;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.exception-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.exception-card-head a {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.exception-card-head a:hover { color: var(--blue); }
.exception-card > p {
  margin: 9px 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.exception-card-foot {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.exception-card-foot > span small,
.exception-card-foot > span strong { display: block; }
.exception-card-foot > span small { margin-bottom: 3px; color: var(--muted); font-size: 10px; }
.exception-card-foot > span strong { font-size: 12px; }
.exception-card-foot .row-actions {
  min-width: 0;
  justify-content: flex-end;
}
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-bottom: 12px; }
.metric {
  min-height: 105px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.metric-label { display: flex; align-items: center; color: var(--muted); font-size: 12px; }
.metric > strong { margin: 9px 0 6px; font-size: 28px; line-height: 1; letter-spacing: -.04em; }
.metric-note { margin-top: auto; color: var(--muted); font-size: 11px; }
.metric-accent { border-color: #adc6ff; background: linear-gradient(145deg, #fff, #eef3ff); }
.metric-danger { border-color: #e0aaa4; background: linear-gradient(145deg, #fff, #fff1ef); }
.metric-warning { border-color: #ead2a4; background: linear-gradient(145deg, #fff, #fff8e9); }
.two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.project-detail-stack {
  margin-bottom: 12px;
  display: grid;
  gap: 12px;
}
.project-detail-stack > .panel { margin-bottom: 0; }
.panel {
  overflow: visible;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.panel-head {
  min-height: 57px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.2; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.panel-action, .project-link { color: var(--blue); text-decoration: none; font-weight: 700; }
.panel-action { font-size: 12px; white-space: nowrap; }
.table-wrap { overflow: auto; border-radius: 0 0 11px 11px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  padding: 9px 10px;
  border-bottom: 1px solid #c9d8ff;
  color: #405174;
  background: #eef3ff;
  font-size: 12px;
  font-weight: 750;
  text-align: left;
  white-space: nowrap;
}
.table-help { margin-left: 6px; }
.table-help summary {
  width: 16px;
  height: 16px;
  border-color: #9db5ef;
  color: var(--blue);
  background: #fff;
  font-size: 9px;
}
.table-help .help-card { right: auto; left: 0; width: 310px; white-space: normal; }
th:nth-last-child(-n + 2) .table-help .help-card { right: 0; left: auto; }
td { padding: 11px 10px; border-top: 1px solid #edf1ee; vertical-align: top; }
tbody tr:nth-child(even) td { background: #fbfcff; }
tbody tr:hover td { background: #f4f7ff; }
td strong, td small { display: block; }
td strong { font-size: 13px; }
td small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.exception-facts {
  margin-top: 8px;
  padding: 8px 10px;
  border-left: 3px solid #d8e1f2;
  border-radius: 0 6px 6px 0;
  color: #516079;
  background: #f6f8fc;
  font-size: 11px;
  line-height: 1.55;
}
.exception-facts > div + div { margin-top: 2px; }
.exception-project-groups {
  padding: 14px;
  display: grid;
  gap: 14px;
  background: #f4f6fa;
}
.exception-project-group {
  overflow: hidden;
  border: 1px solid #dce3ee;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(31, 35, 41, .05);
}
.exception-project-head {
  min-height: 48px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #c9d8ff;
  background: linear-gradient(180deg, #f7f9ff, #edf3ff);
}
.exception-project-head h3 {
  margin: 0;
  color: #243757;
  font-size: 15px;
  line-height: 1.3;
}
.exception-project-head span {
  color: #596982;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.exception-project-table { border-radius: 0; }
.exception-project-table th { background: #f8faff; }
td a { color: var(--blue); }
.entity-link, .source-link { text-decoration: none; }
.entity-link { display: block; width: fit-content; }
.entity-link strong { color: var(--blue); }
.entity-link strong::after { content: " ›"; }
.entity-link:hover strong, .entity-link:hover small, .source-link:hover { color: var(--blue); text-decoration: underline; }
.source-link, .source-pending { display: inline-block; font-size: 11px; line-height: 1.45; }
.source-link { font-weight: 700; }
.source-pending { color: var(--muted); }
.dense-table table { min-width: 760px; }
.pill {
  min-height: 19px;
  padding: 2px 6px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}
.pill-neutral { color: #4e5969; background: #f0f1f2; }
.pill-accent { color: var(--forest); background: var(--mint); }
.pill-success { color: #246044; background: #e3f4e8; }
.pill-warning { color: #80591d; background: var(--amber-soft); }
.pill-danger { color: #8b342d; background: var(--red-soft); }
.conclusion-line { display: block; margin-bottom: 2px; color: var(--muted); font-size: 11px; }
.empty-state { min-height: 155px; padding: 25px; display: grid; place-items: center; align-content: center; text-align: center; }
.empty-state .empty-mark { color: var(--forest-2); font-size: 58px; line-height: .2; }
.empty-state strong { margin-top: 17px; font-size: 14px; }
.empty-state p { max-width: 420px; margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.action-list { display: grid; }
.action-item {
  padding: 14px;
  display: grid;
  grid-template-columns: 92px minmax(180px, .8fr) minmax(190px, 1fr) minmax(230px, 1.3fr) auto;
  gap: 14px;
  align-items: center;
  border-top: 1px solid var(--line);
}
.action-item:first-child { border-top: 0; }
.action-priority span, .action-subject span, .action-reason span, .action-do span { display: block; }
.action-priority > span { margin-top: 7px; color: var(--muted); font-size: 11px; }
.action-subject a { color: var(--ink); font-size: 14px; font-weight: 750; text-decoration: none; }
.action-subject a:hover { color: var(--blue); }
.action-subject span { margin-top: 5px; color: var(--muted); font-size: 12px; }
.action-reason span, .action-do span { margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.action-reason strong, .action-do strong { font-size: 13px; line-height: 1.45; }
.action-do { padding: 10px 12px; border-radius: 8px; color: #10275c; background: #eef3ff; }
.action-entry { justify-self: end; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 210px; }
.button {
  min-height: 30px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.button-primary { border-color: var(--blue); color: #fff; background: var(--blue); }
.button-primary:hover { background: #0c43c7; }
.button-secondary { border-color: #c9cdd4; color: var(--ink); background: #fff; }
.button-secondary:hover { border-color: #82a7fc; color: var(--blue); background: #f7f9ff; }
.button-disabled { border-color: #e5e6eb; color: #a2a8b1; background: #f7f8fa; cursor: not-allowed; }

.notification-dialog {
  width: min(540px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 24px 80px rgba(31, 35, 41, .28);
}
.notification-dialog::backdrop { background: rgba(31, 35, 41, .42); }
.notification-dialog form { padding: 20px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.dialog-head strong, .dialog-head span { display: block; }
.dialog-head strong { font-size: 18px; }
.dialog-head span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.dialog-head > button { width: 30px; height: 30px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 20px; }
.notification-dialog label { display: block; margin-top: 13px; color: var(--muted); font-size: 12px; font-weight: 650; }
.notification-dialog input, .notification-dialog textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #f7f8fa;
  font: 13px/1.55 var(--font);
  resize: vertical;
}
.dialog-note { margin-top: 13px; padding: 10px 11px; border-radius: 7px; color: #8f5b00; background: #fff7e6; font-size: 12px; line-height: 1.5; }
.dialog-actions { margin-top: 18px; display: flex; justify-content: flex-end; gap: 8px; }

.project-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  box-shadow: var(--shadow);
}
.project-summary > div { padding: 10px 12px; border-right: 1px solid var(--line); }
.project-summary > div:last-child { border-right: 0; }
.project-summary span, .project-summary strong { display: block; }
.project-summary span { color: var(--muted); font-size: 11px; }
.project-summary strong { margin-top: 5px; font-size: 14px; }
.gantt-shell {
  max-width: 100%;
}
.schedule-calendar-body .portfolio-project-group {
  width: calc(235px + var(--timeline-width));
}
.schedule-calendar-body .portfolio-project-band > div {
  position: sticky;
  left: 12px;
}
.schedule-calendar-row.gantt-version .gantt-label {
  padding-left: 20px;
  background: #f4f7ff;
}
.schedule-calendar-row.gantt-version .gantt-label strong::before {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  display: inline-grid;
  place-items: center;
  content: "版";
  border-radius: 5px;
  color: #fff;
  background: #5c73a7;
  font-size: 9px;
}
.schedule-calendar-row .gantt-label small {
  font-size: 10px;
}
.gantt-sticky-header {
  position: sticky;
  top: 0;
  z-index: 12;
  max-width: 100%;
  background: #fff;
  box-shadow: 0 5px 12px rgba(31, 35, 41, .08);
}
.gantt-panbar {
  min-height: 38px;
  padding: 6px 12px;
  display: none;
  grid-template-columns: auto 30px minmax(120px, 1fr) 30px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #d9e3f6;
  color: #526581;
  background: #f7f9fd;
  font-size: 11px;
  font-weight: 700;
}
.gantt-shell.has-horizontal-overflow .gantt-panbar { display: grid; }
.gantt-panbar button {
  width: 30px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid #b7cbf8;
  border-radius: 6px;
  color: var(--blue);
  background: #fff;
  cursor: pointer;
  transition: color var(--duration-fast) ease, background var(--duration-fast) ease, transform var(--duration-fast) var(--ease-out);
}
.gantt-panbar button:hover {
  color: #fff;
  background: var(--blue);
  transform: translateY(-1px);
}
.gantt-top-scroll {
  height: 18px;
  overflow-x: scroll;
  overflow-y: hidden;
  border: 1px solid #c8d7f4;
  border-radius: 999px;
  background: #e9effb;
  scrollbar-color: #7da3f8 #e9effb;
  scrollbar-width: auto;
}
.gantt-top-scroll-inner {
  width: calc(var(--timeline-width) + 259px);
  height: 1px;
}
.gantt-top-scroll::-webkit-scrollbar { height: 12px; }
.gantt-top-scroll::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #e9effb;
}
.gantt-top-scroll::-webkit-scrollbar-thumb {
  border: 2px solid #e9effb;
  border-radius: 999px;
  background: #7da3f8;
}
.gantt-header-scroll {
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
}
.gantt-scroll {
  max-width: 100%;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  border-radius: 0 0 11px 11px;
  -webkit-overflow-scrolling: touch;
}
.gantt {
  width: max-content;
  min-width: 100%;
  padding: 8px 12px 13px;
}
.gantt-header-only { padding-bottom: 0; }
.gantt-body { padding-top: 0; }
.gantt-header,
.gantt-row {
  display: grid;
  grid-template-columns: 235px var(--timeline-width);
}
.gantt-header { position: relative; z-index: 3; background: #fff; }
.gantt-row { min-height: 51px; border-top: 1px solid #edf1ee; }
.gantt-entry {
  width: 100%;
}
.gantt-entry > summary {
  list-style: none;
  cursor: pointer;
}
.gantt-entry > summary::-webkit-details-marker { display: none; }
.gantt-entry > summary .gantt-detail-action::after {
  margin-left: 5px;
  display: inline-block;
  content: "⌄";
  color: var(--blue);
  font-weight: 800;
  transition: transform var(--duration) var(--ease-out);
}
.gantt-entry[open] > summary .gantt-detail-action::after {
  transform: rotate(180deg);
}
.gantt-entry[open] > summary .gantt-label,
.gantt-entry[open] > summary .gantt-track {
  background-color: #e8f0ff;
}
.gantt-entry::details-content {
  block-size: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px) scaleY(.96);
  transform-origin: top;
  will-change: block-size, opacity, transform;
  transition:
    block-size 800ms cubic-bezier(.4, 0, .2, 1),
    content-visibility 800ms allow-discrete,
    opacity 800ms cubic-bezier(.4, 0, .2, 1),
    transform 800ms cubic-bezier(.4, 0, .2, 1);
}
.gantt-entry[open]::details-content {
  block-size: auto;
  overflow: visible;
  opacity: 1;
  transform: translateY(0) scaleY(1);
}
.gantt-result-row {
  min-height: 150px;
  padding: 12px;
  border-top: 1px solid #c9d8ff;
  border-bottom: 1px solid #dce5f7;
  background: linear-gradient(100deg, #f5f8ff, #fbfdff);
}
.gantt-result-card {
  position: sticky;
  left: 12px;
  width: min(
    calc(var(--gantt-viewport-width, 900px) - 24px),
    calc(235px + var(--timeline-width))
  );
  max-width: calc(100% - 24px);
  padding: 13px 14px;
  border: 1px solid #b7cbf8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(20, 86, 240, .1);
  animation: gantt-result-enter 800ms cubic-bezier(.4, 0, .2, 1);
}
.gantt-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.gantt-result-head strong,
.gantt-result-head span { display: block; }
.gantt-result-head strong { color: #10275c; font-size: 14px; }
.gantt-result-head span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.gantt-result-facts {
  margin: 11px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.gantt-result-facts > div {
  min-width: 0;
  padding: 8px 9px;
  border-radius: 7px;
  background: #f5f7fb;
}
.gantt-result-facts dt {
  color: var(--muted);
  font-size: 10px;
}
.gantt-result-facts dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.gantt-result-facts .gantt-result-wide { grid-column: 1 / -1; }
.gantt-deliverable-fact dd {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.gantt-deliverable-fact dd > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.deliverable-availability {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.5;
}
.deliverable-availability.has-deliverable {
  color: #287d52;
  background: #e7f7ee;
}
.deliverable-availability.no-deliverable {
  color: #646a73;
  background: #f2f3f5;
}
.gantt-result-facts .has-issue { color: #8f2f28; background: #fff1ef; }
.gantt-result-facts .has-issue dt,
.gantt-result-facts .has-issue dd { color: inherit; }
.gantt-result-source {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  font-size: 11px;
  font-weight: 750;
}
@keyframes gantt-result-enter {
  from { opacity: 0; transform: translateY(-8px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.gantt-version-head {
  min-height: 52px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid #c6d7fb;
  background: linear-gradient(90deg, #e8f0ff, #f7faff);
}
.gantt-version-head strong,
.gantt-version-head span { display: block; }
.gantt-version-head strong { color: #10275c; font-size: 14px; }
.gantt-version-head > div > span { margin-top: 3px; color: #526581; font-size: 11px; }
.gantt-version-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.gantt-view-tabs {
  padding: 10px 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border-bottom: 1px solid #d9e3f6;
  background: #f7f9fd;
}
.gantt-view-tabs button {
  min-height: 52px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #d5def0;
  border-radius: 9px;
  color: #526581;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition:
    color var(--duration-fast) ease,
    border-color var(--duration-fast) ease,
    background var(--duration-fast) ease,
    box-shadow var(--duration-fast) ease,
    transform var(--duration-fast) var(--ease-out);
}
.gantt-view-tabs button:hover {
  border-color: #9ab5f5;
  color: var(--blue);
  transform: translateY(-1px);
}
.gantt-view-tabs button:focus-visible {
  outline: 3px solid rgba(20, 86, 240, .2);
  outline-offset: 1px;
}
.gantt-view-tabs button.is-active {
  border-color: #7da3f8;
  color: #10275c;
  background: linear-gradient(100deg, #e8f0ff, #f5f8ff);
  box-shadow: inset 3px 0 0 var(--blue), 0 6px 16px rgba(20, 86, 240, .09);
}
.gantt-view-tabs span,
.gantt-view-tabs strong,
.gantt-view-tabs small { display: block; }
.gantt-view-tabs strong { font-size: 13px; }
.gantt-view-tabs small {
  margin-top: 3px;
  color: #7b879d;
  font-size: 10px;
}
.gantt-view-tabs em {
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #526581;
  background: #eef2f8;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}
.gantt-view-tabs button.is-active em {
  color: #fff;
  background: var(--blue);
}
.gantt-tab-panels,
.gantt-tab-panel {
  width: max-content;
  min-width: 100%;
}
.gantt-tab-panel[hidden] { display: none; }
.gantt-tab-panel.is-entering {
  animation: gantt-tab-enter 800ms cubic-bezier(.4, 0, .2, 1);
}
.gantt-tab-empty {
  position: sticky;
  left: 12px;
  width: min(calc(var(--gantt-viewport-width, 900px) - 24px), 520px);
  margin: 12px;
  padding: 18px;
  border: 1px dashed #b7c8eb;
  border-radius: 9px;
  color: #667085;
  background: #f8faff;
  text-align: center;
  font-size: 12px;
}
@keyframes gantt-tab-enter {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: translateX(0); }
}
.gantt-label {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 0;
  padding: 9px 10px 9px 2px;
}
.gantt-header .gantt-label {
  z-index: 4;
  background: #fff;
}
.gantt-label strong, .gantt-label span, .gantt-label small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gantt-label strong { font-size: 13px; }
.gantt-label span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.gantt-label small { margin-top: 3px; color: #8b9991; font-size: 10px; }
.gantt-label .gantt-detail-action {
  margin-left: 7px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
}
.gantt-entry > summary:hover .gantt-detail-action {
  color: var(--blue-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.gantt-item .gantt-label { padding-left: 20px; }
.gantt-item .gantt-label strong::before {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  display: inline-grid;
  place-items: center;
  content: "执";
  border-radius: 5px;
  color: #fff;
  background: #3370ff;
  font-size: 9px;
}
.gantt-gate .gantt-label { padding-left: 20px; background: #fafbfc; }
.gantt-gate .gantt-label strong::before {
  content: "节";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  border-radius: 50%;
  color: #fff;
  background: #7b8aa5;
  font-size: 9px;
}
.gantt-gate .gantt-track { background-color: #fbfcfe; }
.gantt-shuttle .gantt-label { padding-left: 20px; background: #f4f7ff; }
.gantt-shuttle .gantt-label strong::before {
  content: "班";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  border-radius: 5px;
  color: #fff;
  background: var(--blue);
  font-size: 9px;
}
.gantt-shuttle .gantt-track { background-color: #f8faff; }
.gantt-shuttle .gantt-bar { color: #10275c; background: #adc6ff; }
.gantt-source { color: var(--blue); text-decoration: none; }
.gantt-source:hover { text-decoration: underline; }
.sop-route-panel { margin-bottom: 12px; }
.sop-version-route + .sop-version-route { border-top: 1px solid var(--line); }
.sop-version-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  color: #405174;
  background: #eef3ff;
}
.sop-version-head strong, .sop-version-head span { display: block; }
.sop-version-head strong { color: var(--ink); font-size: 14px; }
.sop-version-head div > span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.sop-version-head > span { font-size: 12px; font-weight: 750; white-space: nowrap; }
.sop-lifecycle {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--gate-count), minmax(0, 1fr));
  padding: 17px 10px 14px;
  overflow-x: auto;
}
.sop-lifecycle-summary {
  max-width: 620px;
  grid-template-columns: repeat(var(--gate-count), minmax(180px, 1fr));
  overflow: visible;
}
.sop-lifecycle-summary .lifecycle-role {
  order: -1;
  margin: 0 0 5px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
}
.sop-lifecycle::before {
  position: absolute;
  top: 29px;
  right: 4.5%;
  left: 4.5%;
  height: 2px;
  content: "";
  background: #cfd6e4;
}
.lifecycle-node {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
}
.lifecycle-node[href]:hover strong { color: var(--blue); }
.lifecycle-dot {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #aab3c2;
  box-shadow: 0 0 0 1px #cfd6e4;
  font-size: 8px;
  font-weight: 850;
}
.node-success .lifecycle-dot { background: #36a269; box-shadow: 0 0 0 1px #36a269; }
.node-accent .lifecycle-dot { background: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.node-warning .lifecycle-dot { background: #d99a25; box-shadow: 0 0 0 1px #d99a25; }
.node-danger .lifecycle-dot { background: var(--red); box-shadow: 0 0 0 1px var(--red); }
.lifecycle-node strong {
  margin-top: 7px;
  font-size: 10px;
  line-height: 1.25;
  white-space: nowrap;
}
.lifecycle-node small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.lifecycle-node em { margin-top: 2px; color: #7c8798; font-size: 9px; font-style: normal; }
.node-success em { color: #287d52; }
.node-accent em { color: var(--blue); font-weight: 700; }
.node-warning em { color: #9a6817; }
.node-danger em { color: var(--red); }
.gantt-days {
  display: grid;
  grid-template-columns: repeat(var(--days), minmax(34px, 1fr));
  align-items: stretch;
  border-left: 1px solid var(--line);
}
.gantt-days button {
  min-height: 54px;
  padding: 8px 2px 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  border: 0;
  border-right: 1px solid #edf1ee;
  color: var(--muted);
  background: #fff;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--duration-fast) ease, background var(--duration-fast) ease;
}
.gantt-days button:hover,
.gantt-days button:focus-visible {
  color: var(--blue);
  background: #edf3ff;
  outline: none;
}
.gantt-days button.is-selected {
  color: #fff;
  background: linear-gradient(180deg, #3370ff, #1456f0);
  font-weight: 800;
}
.gantt-days button strong { font-size: 10px; }
.gantt-days button small { color: #8b98ab; font-size: 9px; }
.gantt-days button.is-selected small { color: rgba(255, 255, 255, .82); }
.gantt-track {
  position: relative;
  min-height: 50px;
  border-left: 1px solid var(--line);
  background-color: #fff;
  background-image: linear-gradient(to right, transparent calc(100% - 1px), #edf1ee calc(100% - 1px));
  background-repeat: repeat-x;
  background-size: calc(100% / var(--days)) 100%;
}
.gantt.has-selected-day .gantt-track::after {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: calc(var(--selected-day-index) * (100% / var(--days)));
  width: calc(100% / var(--days));
  content: "";
  pointer-events: none;
  background: rgba(20, 86, 240, .1);
  box-shadow: inset 1px 0 rgba(20, 86, 240, .28), inset -1px 0 rgba(20, 86, 240, .28);
}
.gantt-row.is-odd .gantt-label,
.gantt-row.is-odd .gantt-track { background-color: #fff; }
.gantt-row.is-even .gantt-label,
.gantt-row.is-even .gantt-track { background-color: #f2f6ff; }
.gantt-row:hover .gantt-label,
.gantt-row:hover .gantt-track { background-color: #e7efff; }
.gantt-bar {
  position: absolute;
  z-index: 1;
  left: var(--left);
  top: 50%;
  translate: 0 -50%;
  width: max(var(--width), 24px);
  min-width: 24px;
  height: 38px;
  padding: 4px 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
  border-radius: 6px;
  font-weight: 800;
  text-align: center;
}
.gantt-bar strong,
.gantt-bar small {
  max-width: 100%;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gantt-bar strong { font-size: 9px; line-height: 1.15; }
.gantt-bar small { font-size: 8px; font-weight: 650; line-height: 1.15; opacity: .82; }
.bar-neutral { color: #4e5969; background: #e5e6eb; }
.bar-accent { color: #10275c; background: #adc6ff; }
.bar-success { color: #245c42; background: #bfe6cc; }
.bar-warning { color: #71501e; background: #f3d99d; }
.bar-danger { color: #7d342d; background: #eabbb5; }

.diff-before, .diff-after { display: block; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.diff-before { color: #98635f; text-decoration: line-through; }
.diff-after { color: #245844; font-weight: 700; }
.diff-arrow { display: block; color: #9aa69f; line-height: 1.3; }
.project-change-list {
  padding: 10px;
  display: grid;
  gap: 10px;
}
.project-change-controls {
  padding: 2px 2px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.project-change-controls > span {
  color: var(--muted);
  font-size: 11px;
}
.project-change-controls > div { display: flex; flex-wrap: wrap; gap: 7px; }
.project-change-controls .button { min-height: 32px; padding: 6px 11px; }
.project-change-batch {
  overflow: hidden;
  border: 1px solid #cfdcf4;
  border-radius: 12px;
  background: #f7f9fd;
}
.project-change-batch-head {
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #dbe5f6;
  background: linear-gradient(100deg, #eef4ff, #f8fbff);
}
.project-change-batch-head div { min-width: 0; display: grid; gap: 4px; }
.project-change-batch-head strong { color: #1d2b45; font-size: 14px; }
.project-change-batch-head span { color: #647086; font-size: 11px; }
.project-change-batch-head time {
  display: grid;
  flex: none;
  gap: 1px;
  color: #536078;
  font-size: 11px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.project-change-batch-head time small { color: var(--muted); font-size: 11px; }
.project-change-batch-summary {
  padding: 9px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid #e2e8f3;
  background: #fff;
}
.project-change-batch-summary > span {
  padding: 5px 8px;
  color: #41506a;
  border-radius: 7px;
  background: #f0f4fb;
  font-size: 11px;
}
.project-change-batch-summary > span > strong { color: #25344f; }
.project-change-batch-summary > span > b {
  margin-left: 6px;
  padding: 1px 5px;
  color: #1456f0;
  border-radius: 999px;
  background: #e3ebff;
  font-size: 10px;
}
.project-change-records { padding: 9px; display: grid; gap: 8px; }
.project-change-more { margin: 0; padding: 5px 4px; color: var(--muted); font-size: 11px; text-align: center; }
.project-change-card {
  overflow: hidden;
  border: 1px solid #dbe4f5;
  border-radius: 11px;
  background: #fff;
}
.project-change-card > header {
  padding: 11px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e6ecf7;
  background: linear-gradient(100deg, #f5f8ff, #fbfdff);
}
.project-change-card > header div { min-width: 0; display: grid; gap: 3px; }
.project-change-card > header strong {
  overflow: hidden;
  color: #1f2633;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-change-card > header span,
.project-change-card > header time small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.project-change-card > header time {
  display: grid;
  flex: none;
  gap: 1px;
  color: #5f6b7c;
  font-size: 11px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.project-change-fields { display: grid; }
.project-change-field {
  padding: 11px 12px;
  display: grid;
  grid-template-columns: minmax(86px, .55fr) minmax(0, 1.8fr);
  align-items: center;
  gap: 12px;
}
.project-change-field + .project-change-field { border-top: 1px solid #edf1f7; }
.project-change-field > strong { color: #30394a; font-size: 12px; }
.project-change-values {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  align-items: stretch;
  gap: 5px;
}
.project-change-value {
  min-width: 0;
  padding: 7px 9px;
  display: grid;
  align-content: center;
  gap: 2px;
  border-radius: 8px;
}
.project-change-value small { font-size: 9px; font-weight: 700; }
.project-change-value del,
.project-change-value b {
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.45;
}
.project-change-value-old { color: #92524c; background: #fff3f1; }
.project-change-value-old small { color: #b27771; }
.project-change-value-new { color: #245844; background: #edf8f1; }
.project-change-value-new small { color: #5f8b76; }
.project-change-arrow {
  display: grid;
  place-items: center;
  color: #1456f0;
  font-size: 17px;
  font-weight: 800;
}
@media (max-width: 720px) {
  .project-change-controls { align-items: flex-start; flex-direction: column; }
  .project-change-batch-head { align-items: center; }
  .project-change-batch-head span { line-height: 1.5; }
  .project-change-field { grid-template-columns: 1fr; gap: 7px; }
  .project-change-values { grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr); }
}
.quota-panel { padding-bottom: 15px; }
.quota-track { height: 10px; margin: 0 14px; overflow: hidden; border-radius: 999px; background: #edf1ef; }
.quota-track span { display: block; min-width: 2px; height: 100%; border-radius: inherit; }
.quota-accent { background: var(--forest-2); }
.quota-warning { background: var(--amber); }
.quota-danger { background: var(--red); }

.people-view-tabs {
  margin-bottom: 14px;
  padding: 4px;
  display: flex;
  gap: 4px;
  width: fit-content;
  border: 1px solid #c9d8ff;
  border-radius: 9px;
  background: #eef3ff;
}
.people-view-tabs a {
  min-height: 34px;
  padding: 7px 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 6px;
  color: #4e5969;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}
.people-view-tabs a:hover { color: var(--blue); background: #fff; }
.people-view-tabs a.is-active {
  color: #fff;
  background: var(--blue);
}
.people-view-tabs a span {
  min-width: 19px;
  padding: 1px 5px;
  border-radius: 999px;
  color: var(--red);
  background: #fff;
  text-align: center;
  font-size: 10px;
}
.people-filter-panel { margin-bottom: 14px; }
.people-filter-form {
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(260px, 480px) auto;
  align-items: end;
  gap: 12px;
  border-top: 1px solid var(--line);
  background: #fbfcff;
}
.people-filter-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.people-filter-form select {
  width: 100%;
  height: 38px;
  padding: 0 34px 0 10px;
  border: 1px solid #c9ced6;
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}
.people-filter-form select:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(51, 112, 255, .14);
}
.people-filter-form .button {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.person-picker-grid {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px solid var(--line);
}
.person-picker-card {
  min-width: 0;
  padding: 13px 14px;
  display: grid;
  gap: 5px;
  border: 1px solid #d9dde4;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
}
.person-picker-card:hover {
  border-color: #82a7fc;
  background: #f7f9ff;
}
.person-picker-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.person-picker-card strong { color: var(--blue); font-size: 14px; }
.person-picker-card span { color: #4e5969; font-size: 12px; }
.person-picker-card small { color: var(--muted); font-size: 10px; }
.people-calendar-panel { overflow: hidden; }
.people-calendar-controls {
  padding: 10px 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
  background: #fbfcff;
}
.people-calendar-controls .button {
  min-height: 32px;
  padding: 6px 10px;
}

.calendar-filter-panel { margin-bottom: 14px; }
.calendar-filter-form {
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto auto;
  align-items: end;
  gap: 12px;
  border-top: 1px solid var(--line);
  background: #fbfcff;
}
.calendar-filter-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.calendar-filter-form select {
  width: 100%;
  height: 38px;
  padding: 0 34px 0 10px;
  border: 1px solid #c9ced6;
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}
.calendar-filter-form select:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(51, 112, 255, .14);
}
.calendar-filter-form .button {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.calendar-filter-summary {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #d6e1ff;
  color: #10275c;
  background: #eef3ff;
  font-size: 12px;
}
.calendar-filter-summary strong { font-size: 13px; }
.portfolio-calendar-panel { overflow: hidden; }
.portfolio-calendar-scroll { max-width: 100%; overflow: auto; }
.portfolio-calendar {
  --calendar-label-width: 300px;
  --calendar-day-width: 72px;
  min-width: calc(var(--calendar-label-width) + (var(--days) * var(--calendar-day-width)));
}
.portfolio-calendar-head,
.portfolio-calendar-row {
  display: grid;
  grid-template-columns:
    var(--calendar-label-width)
    calc(var(--days) * var(--calendar-day-width));
}
.portfolio-calendar-head {
  position: sticky;
  top: 0;
  z-index: 4;
  min-height: 53px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f5f7fb;
}
.portfolio-calendar-head > div:first-child {
  position: sticky;
  left: 0;
  z-index: 6;
  padding: 10px 14px;
  display: grid;
  align-content: center;
  border-right: 1px solid #cfd6e4;
  background: #edf2ff;
}
.portfolio-calendar-head strong,
.portfolio-calendar-head span { display: block; }
.portfolio-calendar-head strong { font-size: 12px; }
.portfolio-calendar-head > div:first-child span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}
.portfolio-calendar-days {
  display: grid;
  grid-template-columns: repeat(var(--days), var(--calendar-day-width));
}
.calendar-day-button {
  min-width: 0;
  padding: 0;
  border: 0;
  border-right: 1px solid #e6e8eb;
  color: var(--muted);
  background: transparent;
  text-align: center;
  font-size: 10px;
}
.calendar-day-button:hover,
.calendar-day-button:focus-visible {
  color: var(--blue);
  background: #edf3ff;
  outline: none;
}
.calendar-day-button.is-today {
  color: var(--blue);
  background: #e8f0ff;
  font-weight: 850;
}
.calendar-panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.calendar-panel-actions .button { min-height: 32px; padding: 6px 10px; }
.portfolio-project-group { min-width: 100%; }
.portfolio-project-band {
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  list-style: none;
  border-bottom: 1px solid #c7d6ff;
  background: #e8f0ff;
  cursor: pointer;
}
.portfolio-project-band::-webkit-details-marker { display: none; }
.portfolio-project-band > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.portfolio-project-band strong {
  color: #10275c;
  font-size: 13px;
}
.project-chevron {
  display: inline-block;
  color: var(--blue);
  font-size: 20px;
  line-height: 1;
  transition: transform .15s ease;
}
.portfolio-project-group[open] .project-chevron { transform: rotate(90deg); }
.portfolio-project-group[open] .portfolio-project-band {
  border-bottom-color: #82a7fc;
  background: #dce8ff;
}
.portfolio-project-band a {
  color: var(--blue);
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
}
.portfolio-project-band a:hover { text-decoration: underline; text-underline-offset: 2px; }
.portfolio-project-band span { color: #4e5969; font-size: 11px; }
.portfolio-calendar-row { min-height: 66px; border-bottom: 1px solid #eceef1; }
.portfolio-calendar-row:last-child { border-bottom: 0; }
.portfolio-calendar-label {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 0;
  padding: 7px 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  column-gap: 7px;
  border-right: 1px solid #d7dbe2;
  background: #fff;
}
.calendar-kind {
  align-self: start;
  padding: 2px 5px;
  border-radius: 4px;
  color: #4e5969;
  background: #f2f3f5;
  font-size: 9px;
  font-weight: 800;
}
.portfolio-calendar-label strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.portfolio-calendar-label small,
.calendar-source {
  grid-column: 2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}
.portfolio-calendar-label small { margin-top: 2px; color: var(--muted); }
.calendar-source {
  width: fit-content;
  max-width: 100%;
  margin-top: 3px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
}
.calendar-source:hover { text-decoration: underline; text-underline-offset: 2px; }
.calendar-source-missing { color: #8f959e; font-weight: 500; }
.calendar-version .portfolio-calendar-label { background: #f7f9ff; }
.calendar-shuttle .portfolio-calendar-label { background: #f5f9ff; }
.portfolio-calendar-track {
  position: relative;
  min-height: 66px;
  background:
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent calc((100% / var(--days)) - 1px),
      #edf0f3 calc((100% / var(--days)) - 1px),
      #edf0f3 calc(100% / var(--days))
    );
}
.portfolio-calendar-bar {
  position: absolute;
  top: 21px;
  left: var(--left);
  width: max(var(--width), 22px);
  min-width: 22px;
  height: 23px;
  padding: 4px 7px;
  overflow: hidden;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  line-height: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calendar-day-dialog {
  width: min(700px, calc(100vw - 32px));
  max-height: min(78vh, 760px);
  padding: 0;
  overflow: hidden;
  border: 1px solid #c9d8ff;
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 20px 56px rgba(31, 35, 41, .22);
}
.calendar-day-dialog::backdrop { background: rgba(31, 35, 41, .42); }
.calendar-day-dialog form {
  max-height: min(78vh, 760px);
  display: flex;
  flex-direction: column;
}
.calendar-day-dialog .dialog-head {
  margin: 0;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
  background: #eef3ff;
}
.calendar-day-dialog-content {
  padding: 14px 18px 18px;
  overflow: auto;
}
.calendar-day-list { display: grid; gap: 10px; }
.calendar-day-item {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}
.calendar-day-item-head,
.calendar-day-item-head > div,
.calendar-day-item-foot {
  display: flex;
  align-items: center;
}
.calendar-day-item-head,
.calendar-day-item-foot { justify-content: space-between; gap: 12px; }
.calendar-day-item-head > div { gap: 7px; }
.calendar-day-item-head a,
.calendar-day-item-foot a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 750;
}
.calendar-day-item > strong { display: block; margin-top: 9px; font-size: 14px; }
.calendar-day-item p {
  margin: 4px 0 9px;
  color: var(--muted);
  font-size: 12px;
}
.calendar-day-item-foot {
  padding-top: 9px;
  border-top: 1px solid #f0f1f2;
  color: var(--muted);
  font-size: 11px;
}

.login-body {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 70% 15%, rgba(20, 192, 255, .22), transparent 24%),
    linear-gradient(145deg, #10275c, #1456f0);
}
.login-card {
  width: min(880px, 100%);
  min-height: 520px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  padding: 32px;
  border-radius: 24px;
  background: #f7f8fa;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .28);
}
.login-brand { grid-column: 1 / -1; align-self: start; display: flex; align-items: center; gap: 11px; }
.login-brand strong, .login-brand span { display: block; }
.login-brand span { margin-top: 2px; color: var(--muted); font-size: 12px; }
.login-copy { align-self: center; padding: 18px 42px 36px 8px; }
.login-copy h1 { margin: 11px 0 13px; font-size: 39px; font-weight: 850; line-height: 1.05; letter-spacing: -.04em; }
.login-copy p { max-width: 380px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.login-form { align-self: center; padding: 28px; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: var(--shadow); }
.login-form label { display: block; margin-bottom: 14px; color: var(--muted); font-size: 13px; }
.login-form input { width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid #cfd9d3; border-radius: 9px; color: var(--ink); background: #fbfcfb; outline: none; }
.login-form input:focus { border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(36, 88, 68, .12); }
.login-form button { width: 100%; margin-top: 6px; padding: 11px; border: 0; border-radius: 9px; color: white; background: var(--forest); font-weight: 800; }
.login-error { margin: 0 0 16px; padding: 9px 11px; border: 1px solid #f3c4c0; border-radius: 8px; color: #8b342d; background: var(--red-soft); font-size: 13px; }
.form-error { padding: 9px 11px; border-radius: 8px; color: #8b342d; background: var(--red-soft); font-size: 13px; }

@media (max-width: 1220px) {
  .status-strip { grid-template-columns: repeat(5, minmax(90px, 1fr)); }
  button.stat-item:nth-of-type(5) { border-right: 0; }
  button.stat-item:nth-of-type(n + 6) { border-top: 1px solid var(--line); }
  .management-grid { grid-template-columns: 1fr; }
  .action-panel, .week-panel, .exception-panel { grid-column: 1; }
  .action-item { grid-template-columns: 90px minmax(170px, .8fr) minmax(190px, 1fr) minmax(220px, 1.2fr); }
  .action-entry { grid-column: 2 / -1; justify-self: start; }
  .project-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .project-summary > div:nth-child(3) { border-right: 0; }
  .project-summary > div:nth-child(n + 4) { border-top: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { position: static; width: 100%; height: auto; padding: 13px 15px; }
  .brand { margin-bottom: 11px; }
  .sidebar nav { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 4px; }
  .nav-group { display: flex; align-items: center; gap: 3px; flex: 0 0 auto; }
  .nav-group-label { display: none; }
  .sidebar nav a { flex: 0 0 auto; padding: 8px 9px; }
  .nav-submenu { max-width: 280px; max-height: none; margin: 0; padding: 0; flex-direction: row; overflow-x: auto; overflow-y: hidden; border-left: 0; }
  .sidebar nav .nav-submenu a { width: auto; }
  .sidebar-foot { display: none; }
  main { padding: 0 14px 28px; }
  .topbar { min-height: 76px; }
  .freshness { display: none; }
  .status-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .status-overview-head { align-items: flex-start; }
  .status-overview-actions { align-items: flex-end; flex-direction: column; }
  .status-legend { display: none; }
  button.stat-item { border-top: 1px solid var(--line); }
  button.stat-item:nth-of-type(-n + 3) { border-top: 0; }
  button.stat-item:nth-of-type(3n) { border-right: 0; }
  .metric-detail-list { grid-template-columns: 1fr; }
  .all-metrics-list { grid-template-columns: 1fr; }
  .all-metric-row, .all-metric-row:nth-child(3n) { border-right: 0; }
  .metric-detail-row { border-right: 0; }
  .management-grid, .two-columns { grid-template-columns: 1fr; }
  .action-panel { grid-column: auto; }
  .action-item { grid-template-columns: 1fr; gap: 10px; }
  .action-entry { grid-column: auto; justify-self: start; }
  .action-do { padding: 10px; }
  .row-actions { min-width: 0; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people-view-tabs { width: 100%; }
  .people-view-tabs a { flex: 1; justify-content: center; }
  .people-filter-form { grid-template-columns: 1fr; }
  .people-filter-form .button { width: 100%; }
  .person-picker-grid { grid-template-columns: 1fr; }
  .calendar-filter-form { grid-template-columns: 1fr 1fr; }
  .calendar-filter-form .button { width: 100%; }
  .calendar-filter-summary { align-items: flex-start; flex-direction: column; gap: 3px; }
  .help-card { position: fixed; top: 100px; right: 15px; left: 15px; width: auto; }
  .login-card { min-height: 0; grid-template-columns: 1fr; padding: 23px; }
  .login-brand { grid-column: 1; margin-bottom: 38px; }
  .login-copy { padding: 0 4px 18px; }
  .login-copy h1 { font-size: 32px; }
  .login-form { padding: 22px; }
}

/* v18 · Lark Blue Executive Command Center */
html { scroll-behavior: smooth; }
body {
  max-width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% -10%, rgba(20, 192, 255, .08), transparent 28%),
    var(--paper);
}
body::before {
  position: fixed;
  z-index: 10000;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, #1456f0, #14c0ff);
  transform: scaleX(0);
  transform-origin: left;
}
body.is-navigating::before {
  opacity: 1;
  animation: route-progress 1.2s var(--ease-out) both;
}
@keyframes route-progress {
  0% { transform: scaleX(.08); }
  55% { transform: scaleX(.68); }
  100% { transform: scaleX(.92); }
}
a, button, summary, select { touch-action: manipulation; }
a:focus-visible,
button:focus-visible,
summary:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(20, 86, 240, .25);
  outline-offset: 2px;
}

.app-shell { grid-template-columns: 232px minmax(0, 1fr); }
.sidebar {
  padding: 20px 14px 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(247, 249, 252, .98));
  box-shadow: 4px 0 24px rgba(31, 35, 41, .025);
  view-transition-name: app-sidebar;
}
.brand,
.sidebar-foot { flex: 0 0 auto; }
.sidebar > nav {
  min-height: 0;
  padding: 0 4px 12px 0;
  flex: 1 1 auto;
  align-content: start;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #c9d8ff transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}
.sidebar > nav::-webkit-scrollbar { width: 6px; }
.sidebar > nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #c9d8ff;
}
.sidebar > nav::-webkit-scrollbar-track { background: transparent; }
.brand {
  min-height: 48px;
  margin: 0 6px 25px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1456f0 0%, #3370ff 52%, #14c0ff 100%);
  box-shadow: 0 9px 24px rgba(20, 86, 240, .23);
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}
.brand:hover .brand-mark {
  transform: translateY(-2px) rotate(-3deg);
  box-shadow: 0 13px 28px rgba(20, 86, 240, .28);
}
.brand strong { font-size: 15px; letter-spacing: 0; }
.brand small { font-size: 12px; }
.nav-group-label { padding-left: 12px; color: #a0a6b0; font-size: 10px; }
.sidebar nav a {
  min-height: 42px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 560;
  transition:
    color var(--duration-fast) ease,
    background var(--duration-fast) ease,
    border-color var(--duration-fast) ease,
    transform var(--duration-fast) var(--ease-out);
}
.sidebar nav a:hover {
  border-color: #dce7ff;
  background: #f1f5ff;
  transform: translateX(2px);
}
.sidebar nav a.active {
  border-color: #1456f0;
  background: linear-gradient(120deg, #1456f0, #3370ff);
  box-shadow: 0 8px 20px rgba(20, 86, 240, .2);
  view-transition-name: active-navigation;
}
.nav-icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}
.nav-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidebar nav .nav-submenu a {
  min-height: 36px;
  padding-left: 11px;
}
.sidebar-foot {
  margin-top: auto;
  padding: 16px 7px 3px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  align-items: end;
  gap: 10px;
}
.account-summary { min-width: 0; }
.account-summary > strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-summary form button {
  min-height: 40px;
  padding-right: 0;
  text-align: left;
  white-space: nowrap;
}
.sync-widget {
  width: 120px;
  min-height: 54px;
  padding: 7px 10px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 1px solid #d7e1f5;
  border-radius: 10px;
  color: #42526e;
  background: #fff;
  box-shadow: 0 5px 16px rgba(31, 35, 41, .05);
  text-align: left;
}
button.sync-widget {
  font: inherit;
  cursor: pointer;
  transition:
    border-color var(--duration-fast) ease,
    background var(--duration-fast) ease,
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) ease;
}
button.sync-widget:hover:not(:disabled) {
  border-color: #91aff6;
  background: #f5f8ff;
  box-shadow: 0 8px 20px rgba(20, 86, 240, .1);
  transform: translateY(-1px);
}
button.sync-widget:disabled { cursor: not-allowed; opacity: .82; }
.sync-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: #e8f0ff;
}
.sync-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sync-copy { min-width: 0; }
.sync-copy strong,
.sync-copy small { display: block; }
.sync-copy strong {
  color: #263653;
  font-size: 11px;
  line-height: 1.25;
}
.sync-copy small {
  margin-top: 2px;
  color: #8a94a6;
  font-size: 9px;
  line-height: 1.35;
}
.sync-loading {
  border-color: #b8cbf8;
  background: #f5f8ff;
}
.sync-loading .sync-icon svg { animation: sync-spin .8s linear infinite; }
.sync-error { border-color: #f0b5b1; background: #fff7f6; }
.sync-error .sync-icon { color: var(--red); background: var(--red-soft); }
.sync-error .sync-copy strong { color: #9f332d; }
@keyframes sync-spin { to { transform: rotate(360deg); } }

main { padding: 0 28px 42px; }
.topbar {
  position: relative;
  min-height: 96px;
  view-transition-name: app-topbar;
}
.topbar::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, #1456f0 0, #14c0ff 28%, transparent 72%);
  opacity: .48;
}
.topbar h1 {
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 800;
  letter-spacing: -.035em;
}
.eyebrow {
  color: #1456f0;
  font-size: 10px;
  letter-spacing: .19em;
}
.freshness {
  min-width: 84px;
  min-height: 58px;
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid #dce7ff;
  border-radius: 10px;
  background: rgba(255, 255, 255, .75);
  text-align: center;
}
.freshness span,
.freshness strong {
  width: 100%;
  text-align: center;
}
.freshness strong { color: #1456f0; line-height: 1.15; }
.data-banner {
  min-height: 42px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  border-radius: 10px;
}
.data-banner-demo {
  border-color: #b7ccff;
  background:
    linear-gradient(100deg, rgba(232, 240, 255, .96), rgba(245, 249, 255, .96));
}
.content {
  max-width: 1600px;
  margin: 0 auto;
  padding-top: 18px;
  view-transition-name: app-content;
}
.date-line {
  margin-bottom: 12px;
  color: #7a828e;
  font-size: 13px;
}

.help-details summary {
  width: 28px;
  height: 28px;
  border-color: #b8c4d7;
  color: #1456f0;
  transition:
    color var(--duration-fast) ease,
    background var(--duration-fast) ease,
    border-color var(--duration-fast) ease,
    transform var(--duration-fast) var(--ease-out);
}
.help-details summary:hover {
  border-color: #1456f0;
  background: #eef3ff;
  transform: scale(1.05);
}
.metric-help summary,
.table-help summary {
  width: 24px;
  height: 24px;
  margin: -4px 0;
  font-size: 10px;
}
.help-card {
  border-color: #d7dfec;
  box-shadow: 0 22px 60px rgba(23, 43, 77, .2);
  animation: popover-enter var(--duration) var(--ease-out);
  transform-origin: top right;
}
@keyframes popover-enter {
  from { opacity: 0; transform: translateY(-5px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.decision-brief {
  min-height: 132px;
  margin-bottom: 14px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) minmax(300px, .8fr) auto;
  gap: 24px;
  align-items: center;
  overflow: hidden;
  position: relative;
  border: 1px solid #9fbcff;
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 20%, rgba(20, 192, 255, .35), transparent 26%),
    linear-gradient(120deg, #0c43c7 0%, #1456f0 54%, #3370ff 100%);
  box-shadow: 0 18px 44px rgba(20, 86, 240, .22);
}
.decision-brief::before {
  position: absolute;
  top: -90px;
  right: 16%;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  content: "";
}
.decision-brief.is-clear {
  background:
    radial-gradient(circle at 82% 20%, rgba(20, 192, 255, .3), transparent 26%),
    linear-gradient(120deg, #0b5b8f, #1479b8 55%, #14a9d4);
}
.decision-brief-copy,
.decision-signals,
.decision-action { position: relative; z-index: 1; }
.decision-kicker {
  color: rgba(255, 255, 255, .72);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}
.decision-brief h2 {
  margin: 5px 0 3px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -.04em;
}
.decision-brief p {
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.decision-signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(74px, 1fr));
  gap: 8px;
}
.decision-signals span {
  min-height: 72px;
  padding: 11px;
  display: grid;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 11px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(8px);
}
.decision-signals small { color: rgba(255, 255, 255, .7); font-size: 11px; }
.decision-signals strong {
  margin-top: 4px;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}
.decision-action {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 10px;
  color: #1456f0;
  background: #fff;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) ease;
}
.decision-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .18);
}
.decision-action:active { transform: scale(.98); }

.status-overview,
.panel,
.project-summary,
.metric {
  border-color: #dfe5ee;
  border-radius: 13px;
}
.status-overview {
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(31, 35, 41, .055);
}
.status-overview-head {
  min-height: 54px;
  border-color: #d5e1fb;
  background:
    linear-gradient(100deg, #f1f5ff 0%, #f8fbff 72%, #edf8ff 100%);
}
.status-overview-head strong { font-size: 15px; }
.status-strip { grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); }
.stat-item {
  min-height: 96px;
  padding: 13px;
  position: relative;
  transition:
    background var(--duration-fast) ease,
    box-shadow var(--duration-fast) ease,
    transform var(--duration-fast) var(--ease-out);
}
.stat-item:hover:not(:disabled) {
  z-index: 1;
  background: #f1f5ff;
  box-shadow: 0 10px 24px rgba(20, 86, 240, .1);
  transform: translateY(-2px);
}
.stat-item:active:not(:disabled) { transform: scale(.985); }
.stat-label { font-size: 12px; font-weight: 520; }
.stat-label em { font-size: 11px; font-weight: 700; }
.stat-value-line > strong {
  font-size: 31px;
  font-variant-numeric: tabular-nums;
}
.stat-value-line > small {
  font-size: 11px;
  line-height: 1.35;
}
.stat-danger::after,
.stat-warning::after,
.stat-accent::after {
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  content: "";
  opacity: .55;
}
.stat-danger::after { background: var(--red); }
.stat-warning::after { background: var(--amber); }
.stat-accent::after { background: var(--blue); }
.metric-detail-content { animation: detail-reveal var(--duration) var(--ease-out); }
.stat-drawer-head button,
.dialog-head > button { width: 44px; height: 44px; }
.metric-detail-row { min-height: 64px; }
.metric-row-actions a,
.button {
  min-height: 38px;
  padding: 8px 12px;
}

.action-panel-anchor {
  min-width: 0;
  grid-column: 1 / -1;
  position: relative;
  scroll-margin-top: 24px;
}
.action-panel-anchor::before {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: 13px;
  content: "";
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(110deg, rgba(20, 86, 240, .24), rgba(51, 112, 255, .12));
}
.action-panel-anchor.is-focus-pulse::before {
  animation: action-focus-wash 1000ms linear;
}
.management-grid > *,
.two-columns > * { min-width: 0; }
.action-panel-anchor .action-panel {
  margin-bottom: 0;
  overflow: hidden;
  border-color: #9fbcff;
}
.panel {
  box-shadow: 0 8px 26px rgba(31, 35, 41, .055);
  transition: box-shadow var(--duration) ease, border-color var(--duration) ease;
}
.panel:hover { border-color: #d3dce9; }
.panel-head {
  min-height: 64px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #fff, #fcfdff);
}
.panel-head h2 { font-size: 18px; letter-spacing: -.015em; }
.panel-head p { font-size: 12px; }
.action-panel .panel-head {
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 84% 18%, rgba(20, 192, 255, .26), transparent 28%),
    linear-gradient(120deg, #0c43c7, #1456f0 58%, #3370ff);
}
.action-panel .panel-head p { color: rgba(255, 255, 255, .78); }
@keyframes action-focus-wash {
  0% { opacity: 1; }
  18% { opacity: 1; }
  100% { opacity: 0; }
}
.week-panel {
  overflow: hidden;
  border-color: #9fbcff;
  background: #fbfdff;
}
.week-panel .panel-head {
  color: #fff;
  border-bottom-color: #1456f0;
  background:
    radial-gradient(circle at 84% 18%, rgba(20, 192, 255, .26), transparent 28%),
    linear-gradient(120deg, #0c43c7, #1456f0 58%, #3370ff);
}
.week-panel .panel-head h2 { color: #fff; }
.week-panel .panel-head p { color: rgba(255, 255, 255, .78); }
.week-panel tbody tr:nth-child(odd) td { background: #fff; }
.week-panel tbody tr:nth-child(even) td { background: #f2f6ff; }
.week-panel tbody tr:hover td { background: #e7efff; }
.action-list {
  padding: 14px;
  gap: 14px;
  background: #f4f6fa;
}
.action-item {
  min-height: 0;
  padding: 0;
  display: block;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 8px 22px rgba(31, 35, 41, .09),
    0 1px 3px rgba(31, 35, 41, .06);
  transition:
    box-shadow var(--duration-fast) ease,
    transform var(--duration-fast) var(--ease-out);
}
.action-item::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  content: "";
  background: var(--blue);
}
.action-item:hover {
  box-shadow:
    0 12px 28px rgba(20, 86, 240, .14),
    0 2px 5px rgba(31, 35, 41, .07);
  transform: translateY(-1px);
}
.action-item-head {
  min-height: 72px;
  padding: 15px 18px 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}
.action-priority {
  min-width: 118px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.action-priority > span {
  display: grid;
  gap: 1px;
  margin-top: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.action-priority > span small {
  color: #7a879b;
  font-size: 10px;
  font-weight: 650;
}
.action-priority > span strong {
  color: #344563;
  font-size: 12px;
}
.action-subject a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px;
  font-size: 16px;
  line-height: 1.35;
}
.action-subject a span { color: #596982; font-size: 14px; font-weight: 600; }
.action-subject .action-owner {
  margin-top: 7px;
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: #596982;
  font-size: 12px;
}
.action-owner small { color: #8b96a8; font-size: 11px; }
.action-owner strong { color: #344563; font-weight: 750; }
.action-item-body {
  padding: 0 18px 18px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr);
  gap: 10px;
}
.action-reason,
.action-do {
  min-height: 70px;
  padding: 12px 14px;
  border-radius: 9px;
}
.action-reason {
  border: 1px solid #e1e6ee;
  background: #f7f8fa;
}
.action-reason span,
.action-do span {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
}
.action-reason strong,
.action-do strong {
  display: block;
  font-size: 13px;
  line-height: 1.5;
}
.action-do {
  border: 1px solid #dce7ff;
  background: linear-gradient(135deg, #f4f7ff, #eef4ff);
}
.action-do span { color: #1456f0; }
.action-entry { justify-self: end; }
.exception-card {
  position: relative;
  background: linear-gradient(90deg, #fffafa, #fff);
}
.exception-card::before {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  content: "";
  background: var(--red);
}

.table-wrap { border-radius: 0 0 13px 13px; }
table { font-size: 13px; font-variant-numeric: tabular-nums; }
th {
  height: 44px;
  padding: 10px 12px;
  border-bottom-color: #bfd0f6;
  color: #344563;
  background:
    linear-gradient(180deg, #edf3ff 0%, #e8f0ff 100%);
  font-size: 12px;
}
td {
  padding: 13px 12px;
  border-top-color: #edf0f4;
}
tbody tr:nth-child(odd) td { background: #fff; }
tbody tr:nth-child(even) td { background: #f2f6ff; }
tbody tr {
  transition: background var(--duration-fast) ease, transform var(--duration-fast) var(--ease-out);
}
tbody tr:hover td { background: #f0f5ff; }
.dense-table tbody tr:nth-child(odd) td { background: #fff; }
.dense-table tbody tr:nth-child(even) td { background: #f2f6ff; }
.dense-table tbody tr:hover td { background: #e7efff; }
.panel-action,
.project-link,
.source-link,
.entity-link strong {
  transition: color var(--duration-fast) ease;
}

.metric-grid { gap: 13px; margin-bottom: 14px; }
.metric {
  min-height: 120px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.metric::after {
  position: absolute;
  right: -28px;
  bottom: -38px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  content: "";
  background: rgba(20, 86, 240, .045);
}
.metric > strong {
  position: relative;
  z-index: 1;
  font-size: 34px;
  font-variant-numeric: tabular-nums;
}
.metric-accent {
  border-color: #a9c1fb;
  background: linear-gradient(145deg, #fff, #edf3ff);
}
.metric-danger { background: linear-gradient(145deg, #fff, #fff2f0); }
.metric-warning { background: linear-gradient(145deg, #fff, #fff7e8); }

.project-summary {
  overflow: hidden;
  border-color: #d7e0ed;
}
.project-summary > div {
  min-height: 76px;
  padding: 14px;
  background: linear-gradient(180deg, #fff, #fcfdff);
}
.project-summary strong { font-size: 17px; }
.sop-route-panel,
.portfolio-calendar-panel,
.people-calendar-panel { overflow: hidden; }
.sop-version-head {
  background: linear-gradient(90deg, #edf3ff, #f8fbff);
}
.sop-lifecycle {
  min-height: 104px;
  padding-top: 22px;
}
.lifecycle-node {
  transition: transform var(--duration-fast) var(--ease-out);
}
.lifecycle-node:hover { transform: translateY(-3px); }
.lifecycle-dot {
  width: 26px;
  height: 26px;
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) ease;
}
.lifecycle-node:hover .lifecycle-dot { transform: scale(1.08); }
.portfolio-project-band {
  min-height: 48px;
  padding: 10px 15px;
  transition: background var(--duration) ease, border-color var(--duration) ease;
}
.project-chevron { transition: transform var(--duration) var(--ease-out); }
.portfolio-calendar-bar,
.gantt-bar {
  transform-origin: left center;
  animation: bar-enter var(--duration-slow) var(--ease-out) both;
}
@keyframes bar-enter {
  from { opacity: 0; transform: scaleX(.45); }
  to { opacity: 1; transform: scaleX(1); }
}
.calendar-day-button {
  min-width: 56px;
  min-height: 48px;
  transition:
    color var(--duration-fast) ease,
    background var(--duration-fast) ease,
    transform var(--duration-fast) var(--ease-out);
}
.calendar-day-button:hover { transform: translateY(-2px); }
.people-view-tabs {
  width: 100%;
  margin-bottom: 18px;
  padding: 0 4px;
  gap: 8px;
  border: 0;
  border-bottom: 1px solid #d8e0ec;
  border-radius: 0;
  background: transparent;
}
.people-view-tabs a {
  min-height: 50px;
  padding: 0 16px;
  position: relative;
  justify-content: center;
  border-radius: 0;
  color: #59677b;
  font-size: 14px;
  font-weight: 700;
  transition: color var(--duration-fast) ease, background var(--duration-fast) ease;
}
.people-view-tabs a::after {
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  content: "";
  background: #1456f0;
  transform: scaleX(0);
  transition: transform var(--duration) var(--ease-out);
}
.people-view-tabs a:hover {
  color: #1456f0;
  background: linear-gradient(180deg, transparent, rgba(20, 86, 240, .055));
}
.people-view-tabs a.is-active {
  color: #1456f0;
  background: linear-gradient(180deg, transparent, rgba(20, 86, 240, .08));
  box-shadow: none;
  view-transition-name: active-people-tab;
}
.people-view-tabs a.is-active::after { transform: scaleX(1); }
.people-view-tabs a em {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #b83a32;
  background: #feeceb;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

@view-transition {
  navigation: auto;
}

::view-transition-group(root),
::view-transition-group(app-sidebar),
::view-transition-group(app-topbar),
::view-transition-group(app-content),
::view-transition-group(active-navigation),
::view-transition-group(active-people-tab) {
  animation-duration: var(--duration-slow);
  animation-timing-function: var(--ease-out);
}

::view-transition-old(root),
::view-transition-new(root),
::view-transition-old(app-sidebar),
::view-transition-new(app-sidebar),
::view-transition-old(app-topbar),
::view-transition-new(app-topbar),
::view-transition-old(app-content),
::view-transition-new(app-content),
::view-transition-old(active-navigation),
::view-transition-new(active-navigation),
::view-transition-old(active-people-tab),
::view-transition-new(active-people-tab) {
  mix-blend-mode: normal;
}

::view-transition-old(root) {
  animation: route-root-out 140ms ease-in both;
}
::view-transition-new(root) {
  animation: route-root-in 260ms var(--ease-out) both;
}
::view-transition-old(app-sidebar),
::view-transition-new(app-sidebar) {
  animation: none;
}
::view-transition-old(app-topbar) {
  animation: route-header-out 130ms ease-in both;
}
::view-transition-new(app-topbar) {
  animation: route-header-in 260ms 45ms var(--ease-out) both;
}
::view-transition-old(app-content) {
  animation: route-content-out 150ms ease-in both;
}
::view-transition-new(app-content) {
  animation: route-content-in 300ms 35ms var(--ease-out) both;
}
::view-transition-old(active-navigation),
::view-transition-new(active-navigation),
::view-transition-old(active-people-tab),
::view-transition-new(active-people-tab) {
  animation-duration: 280ms;
  animation-timing-function: var(--ease-out);
}

@keyframes route-root-out {
  to { opacity: .94; }
}
@keyframes route-root-in {
  from { opacity: .96; }
  to { opacity: 1; }
}
@keyframes route-header-out {
  to { opacity: 0; transform: translateY(-4px); }
}
@keyframes route-header-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes route-content-out {
  to { opacity: 0; transform: translateX(-8px) scale(.995); }
}
@keyframes route-content-in {
  from { opacity: 0; transform: translateX(12px) scale(.995); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.portfolio-project-group::details-content {
  block-size: 0;
  overflow: clip;
  opacity: 0;
  transition:
    block-size var(--duration-slow) var(--ease-out),
    opacity var(--duration) ease,
    content-visibility var(--duration-slow) allow-discrete;
}
.portfolio-project-group[open]::details-content {
  block-size: auto;
  opacity: 1;
}
.calendar-filter-form select,
.people-filter-form select {
  min-height: 44px;
  border-color: #cdd5e2;
  border-radius: 9px;
  background: #fff;
}

.system-hero {
  min-height: 142px;
  margin-bottom: 14px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  position: relative;
  border: 1px solid #b9cdfc;
  border-radius: 16px;
  color: #10275c;
  background:
    radial-gradient(circle at 82% 12%, rgba(20, 192, 255, .16), transparent 26%),
    linear-gradient(120deg, #f0f5ff, #fff 64%);
  box-shadow: 0 12px 32px rgba(20, 86, 240, .09);
}
.system-hero::after {
  position: absolute;
  right: -46px;
  bottom: -86px;
  width: 220px;
  height: 220px;
  border: 34px solid rgba(20, 86, 240, .05);
  border-radius: 50%;
  content: "";
}
.system-kicker {
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .17em;
}
.system-hero h2 {
  margin: 5px 0;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -.03em;
}
.system-hero p {
  max-width: 720px;
  margin: 0;
  color: #5a6881;
}
.system-hero-fact {
  min-width: 190px;
  padding: 14px 16px;
  position: relative;
  z-index: 1;
  border: 1px solid #d6e2ff;
  border-radius: 12px;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(8px);
}
.system-hero-fact small,
.system-hero-fact strong,
.system-hero-fact span { display: block; }
.system-hero-fact small { color: var(--muted); font-size: 11px; }
.system-hero-fact strong { margin-top: 4px; font-size: 20px; }
.system-hero-fact span { margin-top: 3px; color: var(--blue); font-size: 12px; }
.sync-hero.is-healthy {
  border-color: #a9dec0;
  background: linear-gradient(120deg, #eefaf3, #fff 64%);
}
.sync-hero.is-healthy .system-kicker,
.sync-hero.is-healthy .system-hero-fact span { color: #18864b; }
.quota-hero {
  color: #fff;
  background:
    radial-gradient(circle at 78% 20%, rgba(20, 192, 255, .3), transparent 26%),
    linear-gradient(120deg, #0c43c7, #1456f0 58%, #3370ff);
}
.quota-hero p,
.quota-hero .system-kicker { color: rgba(255, 255, 255, .75); }
.quota-state-warning {
  border-color: #e6b96e;
  background: linear-gradient(120deg, #9f5b08, #d46b08);
}
.quota-state-danger {
  border-color: #e5a19c;
  background: linear-gradient(120deg, #9e2f28, #d83931);
}
.quota-orbit {
  width: 102px;
  height: 102px;
  padding: 8px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  border-radius: 50%;
  background: conic-gradient(#fff calc(var(--quota) * 1%), rgba(255, 255, 255, .2) 0);
}
.quota-orbit::before {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  content: "";
  background: #1456f0;
}
.quota-state-warning .quota-orbit::before { background: #b96306; }
.quota-state-danger .quota-orbit::before { background: #b62f28; }
.quota-orbit span { position: relative; z-index: 1; text-align: center; }
.quota-orbit strong,
.quota-orbit small { display: block; }
.quota-orbit strong { font-size: 23px; }
.quota-orbit small { color: rgba(255, 255, 255, .72); font-size: 10px; }
.quota-track span {
  transition: width var(--duration-slow) var(--ease-out);
}

.notification-dialog,
.calendar-day-dialog {
  opacity: 0;
  transform: translateY(10px) scale(.98);
  transition:
    opacity var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out),
    overlay var(--duration) allow-discrete,
    display var(--duration) allow-discrete;
}
.notification-dialog[open],
.calendar-day-dialog[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.notification-dialog::backdrop,
.calendar-day-dialog::backdrop {
  opacity: 0;
  backdrop-filter: blur(0);
  transition:
    opacity var(--duration) ease,
    backdrop-filter var(--duration) ease,
    overlay var(--duration) allow-discrete,
    display var(--duration) allow-discrete;
}
.notification-dialog[open]::backdrop,
.calendar-day-dialog[open]::backdrop {
  opacity: 1;
  backdrop-filter: blur(5px);
}
@starting-style {
  .notification-dialog[open],
  .calendar-day-dialog[open] {
    opacity: 0;
    transform: translateY(10px) scale(.98);
  }
  .notification-dialog[open]::backdrop,
  .calendar-day-dialog[open]::backdrop {
    opacity: 0;
    backdrop-filter: blur(0);
  }
}

.login-body {
  min-height: 100dvh;
  padding: 28px;
  background:
    radial-gradient(circle at 16% 18%, rgba(20, 192, 255, .28), transparent 24%),
    radial-gradient(circle at 84% 76%, rgba(51, 112, 255, .28), transparent 24%),
    linear-gradient(145deg, #071e4e, #0c43c7 54%, #1456f0);
}
.login-card {
  width: min(480px, 100%);
  min-height: auto;
  padding: 34px;
  display: block;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 24px;
  background: rgba(250, 252, 255, .97);
  box-shadow: 0 34px 90px rgba(4, 20, 55, .34);
  animation: login-enter var(--duration-slow) var(--ease-out);
}
@keyframes login-enter {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.login-brand {
  margin-bottom: 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.login-brand strong { font-size: 17px; }
.login-copy {
  padding: 0;
  text-align: left;
}
.login-copy h1 {
  margin: 0 0 8px;
  font-size: 32px;
}
.login-copy p {
  margin: 0;
  font-size: 13px;
}
.login-form {
  margin-top: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.login-form label {
  margin-bottom: 16px;
  color: #4e5969;
  font-size: 13px;
  font-weight: 650;
}
.login-form input {
  min-height: 48px;
  margin-top: 7px;
  padding: 12px 13px;
  border-color: #c7cfdb;
  background: #fff;
}
.login-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(20, 86, 240, .12);
}
.login-form button {
  min-height: 48px;
  margin-top: 4px;
  background: linear-gradient(120deg, #1456f0, #3370ff);
  box-shadow: 0 8px 20px rgba(20, 86, 240, .2);
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) ease;
}
.login-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(20, 86, 240, .26);
}
.login-form button:active { transform: scale(.985); }
.login-error {
  margin: -2px 0 16px;
  padding: 10px 12px;
  border-left: 3px solid var(--red);
  animation: error-enter var(--duration) var(--ease-out);
}
@keyframes error-enter {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.notification-log-hero {
  border-color: #244b9c;
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(20, 192, 255, .2), transparent 30%),
    linear-gradient(125deg, #10275c, #1456f0);
}
.notification-log-hero .system-kicker,
.notification-log-hero p { color: rgba(255, 255, 255, .8); }
.notification-log-hero .system-hero-fact {
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
  background: rgba(255, 255, 255, .11);
}
.notification-log-hero .system-hero-fact small,
.notification-log-hero .system-hero-fact span { color: rgba(255, 255, 255, .78); }
.notification-filter-panel { margin-bottom: 14px; }
.notification-filter-form {
  padding: 14px;
  display: grid;
  grid-template-columns: 150px minmax(170px, 1fr) 150px 150px 150px auto auto;
  align-items: end;
  gap: 10px;
  border-top: 1px solid var(--line);
  background: #fbfcff;
}
.notification-filter-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.notification-filter-form input,
.notification-filter-form select {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #c9ced6;
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}
.notification-filter-form select { padding-right: 30px; }
.notification-filter-form .button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}
.notification-log-list { display: grid; gap: 10px; }
.notification-log-entry {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(31, 35, 41, .04);
}
.notification-log-entry > summary {
  min-height: 92px;
  padding: 15px 17px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  list-style: none;
  cursor: pointer;
}
.notification-log-entry > summary::-webkit-details-marker { display: none; }
.notification-log-entry > summary:hover { background: #f7f9ff; }
.notification-log-entry[open] > summary {
  border-bottom: 1px solid #dbe4f5;
  background: #f2f6ff;
}
.notification-log-primary { min-width: 0; display: grid; gap: 4px; }
.notification-log-primary > span { color: var(--muted); font-size: 11px; }
.notification-log-primary > strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notification-log-primary > small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notification-log-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.notification-log-detail { padding: 16px 17px 18px; display: grid; gap: 14px; }
.notification-log-facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--line);
}
.notification-log-facts > div { padding: 10px 12px; background: #fff; }
.notification-log-facts dt { color: var(--muted); font-size: 10px; font-weight: 800; }
.notification-log-facts dd { margin: 3px 0 0; overflow-wrap: anywhere; font-size: 12px; }
.notification-log-api,
.notification-log-message {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfcff;
}
.notification-log-api h3,
.notification-log-message h3 { margin: 0 0 9px; font-size: 13px; }
.notification-log-api ul { margin: 0; padding: 0; display: grid; gap: 7px; list-style: none; }
.notification-log-api li { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.notification-log-api li span { color: var(--muted); text-align: right; }
.notification-log-message pre {
  max-height: 440px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  border-radius: 7px;
  color: #17233d;
  background: #f2f4f7;
  font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.notification-log-technical { color: var(--muted); font-size: 11px; }
.notification-log-technical > summary { width: fit-content; cursor: pointer; font-weight: 750; }
.notification-log-technical p { margin: 6px 0 0; overflow-wrap: anywhere; }

.ops-data-hero {
  min-height: 108px;
  padding: 17px 20px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(92, 161, 255, .38), transparent 34%),
    linear-gradient(135deg, #132a58 0%, #174ca7 58%, #0f6cbd 100%);
}
.ops-data-hero h2 { font-size: 25px; }
.ops-data-hero .system-kicker,
.ops-data-hero p { color: rgba(255, 255, 255, .82); }
.ops-data-hero .system-hero-fact {
  min-width: 220px;
  border-color: rgba(255, 255, 255, .86);
  background: #fff;
  color: #102a56;
  box-shadow: 0 12px 30px rgba(7, 29, 72, .25);
  backdrop-filter: none;
}
.ops-data-hero .system-hero-fact small { color: #526786; }
.ops-data-hero .system-hero-fact strong { color: #102a56; }
.ops-data-hero .system-hero-fact span { color: #2861b7; }
.ops-workspace {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}
.ops-data-sidebar {
  position: sticky;
  top: 14px;
  display: grid;
  gap: 10px;
}
.ops-data-main { min-width: 0; }
.ops-live-badge {
  padding: 5px 9px;
  border-radius: 999px;
  color: #0c5e39;
  background: #e8f7ef;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.ops-project-tabs {
  margin: 0 0 14px;
  padding: 8px;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(31, 35, 41, .04);
}
.ops-project-tab {
  min-width: 108px;
  padding: 8px 10px;
  flex: 1 0 108px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
}
.ops-project-tab:hover { border-color: #aac2f7; }
.ops-project-tab.active {
  border-color: #9dbbff;
  background: #f3f7ff;
  box-shadow: inset 0 -3px 0 var(--blue);
}
.ops-project-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #1557d5, #3888ff);
  font-size: 11px;
  font-weight: 850;
}
.ops-project-tab strong,
.ops-project-tab small { display: block; }
.ops-project-tab strong,
.ops-project-tab small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-project-tab strong { font-size: 12px; }
.ops-project-tab small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.ops-module-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.ops-module-tabs a {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(31, 35, 41, .035);
}
.ops-module-tabs a:hover { border-color: #aac2f7; }
.ops-module-tabs a.active {
  border-color: #8fb1fb;
  color: #124cad;
  background: #edf4ff;
  box-shadow: inset 3px 0 0 var(--blue);
}
.ops-module-tabs strong,
.ops-module-tabs small { display: block; }
.ops-module-tabs strong { font-size: 12px; }
.ops-module-tabs small { margin-top: 4px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.ops-query-error {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.ops-query-error strong { white-space: nowrap; }
.ops-query-panel { margin-bottom: 14px; }
.ops-query-panel .panel-head { padding: 12px 16px 10px; }
.ops-query-form {
  padding: 11px 16px 13px;
  display: grid;
  grid-template-columns: repeat(3, minmax(168px, 260px));
  justify-content: start;
  gap: 9px 11px;
}
.ops-date-presets {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.ops-date-preset {
  min-height: 30px;
  padding: 6px 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #41516c;
  background: #fff;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}
.ops-date-preset:hover { border-color: #9dbbff; color: #124cad; }
.ops-date-preset.active {
  border-color: #8fb1fb;
  color: #124cad;
  background: #edf4ff;
}
.ops-date-preset.is-disabled {
  color: #9aa3b2;
  background: #f5f6f8;
  cursor: not-allowed;
}
.ops-query-form label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}
.ops-query-form input,
.ops-query-form select {
  min-width: 0;
  height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  color: var(--ink);
  background: #fff;
  font: inherit;
}
.ops-query-form input:focus,
.ops-query-form select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20, 80, 190, .1);
}
.ops-query-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ops-query-actions .button { min-height: 34px; padding: 6px 13px; }
.ops-query-actions span { color: var(--muted); font-size: 11px; }
.ops-summary-grid {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.ops-summary-grid article {
  padding: 12px;
  border: 1px solid #dce5f6;
  border-radius: 9px;
  background: #f7f9fe;
  text-align: center;
}
.ops-summary-grid span,
.ops-summary-grid strong { display: block; }
.ops-summary-grid span { color: var(--muted); font-size: 10px; }
.ops-summary-grid strong {
  margin-top: 5px;
  color: #102a56;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.ops-empty-panel { margin-top: 0; }
.ops-result-panel { overflow: hidden; }
.ops-result-head {
  padding: 16px 16px 13px;
  display: grid;
  place-items: stretch;
  border-bottom: 1px solid var(--line);
  text-align: left;
  background: linear-gradient(180deg, #fff, #fbfcff);
}
.ops-result-primary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.ops-result-title { min-width: 0; }
.ops-result-labels { margin-bottom: 4px; display: flex; align-items: center; gap: 7px; }
.ops-result-primary small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.ops-result-primary h2 { margin: 0; font-size: 18px; }
.ops-result-primary p { margin: 0; color: var(--muted); font-size: 10px; }
.ops-result-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px 18px;
}
.ops-result-meta span { color: var(--muted); font-size: 9px; }
.ops-result-meta strong { margin-left: 4px; color: var(--ink); font-size: 10px; }
.ops-table-head {
  padding: 11px 16px 7px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}
.ops-table-head h3 { margin: 0; font-size: 13px; }
.ops-table-head p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.ops-trend { border-bottom: 1px solid var(--line); }
.ops-trend-label {
  padding: 9px 16px 0;
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 6px;
  text-align: left;
}
.ops-trend-label strong { font-size: 12px; }
.ops-trend-label span { color: var(--muted); font-size: 9px; }
.ops-line-chart {
  height: 180px;
  position: relative;
}
.ops-line-plot { position: absolute; inset: 40px 28px 29px; }
.ops-trend-line {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: block;
  overflow: visible;
}
.ops-trend-grid { stroke: #e5ebf4; stroke-width: 1; vector-effect: non-scaling-stroke; }
.ops-trend-area { fill: rgba(51, 112, 255, .09); }
.ops-trend-path {
  fill: none;
  stroke: #286fea;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.ops-line-point {
  width: 12px;
  height: 12px;
  padding: 0;
  position: absolute;
  z-index: 2;
  border: 3px solid #286fea;
  border-radius: 50%;
  outline: 0;
  background: #fff;
  box-shadow: 0 2px 7px rgba(23, 88, 212, .24);
  transform: translate(-50%, -50%);
}
.ops-line-point:is(:hover, :focus-visible) {
  border-color: #124cad;
  box-shadow: 0 0 0 4px rgba(51, 112, 255, .18);
}
.ops-line-tooltip {
  min-width: 132px;
  padding: 8px 10px;
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 17px;
  border: 1px solid #d6e2fa;
  border-radius: 8px;
  color: #fff;
  background: #102a56;
  box-shadow: 0 9px 24px rgba(16, 42, 86, .24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  text-align: left;
  transform: translate(-50%, 3px);
  transition: opacity .14s ease, transform .14s ease;
  white-space: nowrap;
}
.ops-line-tooltip b,
.ops-line-tooltip span { display: block; }
.ops-line-tooltip b { font-size: 10px; }
.ops-line-tooltip span { margin-top: 2px; color: #d9e6ff; font-size: 9px; font-weight: 700; }
.ops-line-point:is(:hover, :focus-visible) .ops-line-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -3px);
}
.ops-line-point.is-first .ops-line-tooltip { left: -4px; transform: translate(0, 3px); }
.ops-line-point.is-first:is(:hover, :focus-visible) .ops-line-tooltip { transform: translate(0, -3px); }
.ops-line-point.is-last .ops-line-tooltip { right: -4px; left: auto; transform: translate(0, 3px); }
.ops-line-point.is-last:is(:hover, :focus-visible) .ops-line-tooltip { transform: translate(0, -3px); }
.ops-line-dates {
  position: absolute;
  right: 22px;
  bottom: 7px;
  left: 22px;
  display: grid;
  grid-template-columns: repeat(var(--ops-point-count), minmax(0, 1fr));
  color: var(--muted);
  font-size: 8px;
  text-align: center;
}
.ops-data-table th:not(:first-child),
.ops-data-table td:not(:first-child) { text-align: center; }
.ops-data-table td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ops-pagination {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}
.ops-pagination > div { display: flex; gap: 7px; }
.ops-pagination form { margin: 0; }
.ops-pagination .button { min-height: 32px; padding: 6px 10px; }
.ops-pagination .button:disabled { opacity: .42; cursor: not-allowed; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.agent-workspace {
  min-height: calc(100vh - 132px);
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow);
}
.agent-conversation-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #f7f8fa;
}
.agent-sidebar-head {
  min-height: 76px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.agent-sidebar-head strong,
.agent-sidebar-head small { display: block; }
.agent-sidebar-head strong { font-size: 15px; }
.agent-sidebar-head small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.agent-new-conversation { min-height: 34px; padding: 6px 9px; font-size: 11px; }
.agent-conversation-list { padding: 12px 9px 20px; overflow-y: auto; }
.agent-conversation-group + .agent-conversation-group { margin-top: 15px; }
.agent-conversation-group h3 {
  margin: 0 8px 5px;
  color: var(--subtle);
  font-size: 10px;
  font-weight: 800;
}
.agent-conversation-item {
  margin-bottom: 3px;
  padding: 9px 10px;
  display: block;
  border: 1px solid transparent;
  border-radius: 9px;
  text-decoration: none;
}
.agent-conversation-item:hover { border-color: #d9e4ff; background: #fff; }
.agent-conversation-item.is-active { border-color: #c8d8ff; background: #eaf1ff; }
.agent-conversation-item span,
.agent-conversation-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-conversation-item span { color: #28344d; font-size: 12px; font-weight: 700; }
.agent-conversation-item small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.agent-conversation-empty { padding: 20px 10px; color: var(--muted); font-size: 11px; text-align: center; }
.agent-chat {
  min-width: 0;
  max-height: calc(100vh - 132px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.agent-chat-head {
  min-height: 76px;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.agent-chat-head h2 { margin: 0; font-size: 16px; }
.agent-chat-head p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.agent-chat-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.agent-model-badge {
  padding: 5px 8px;
  border: 1px solid #c8d8ff;
  border-radius: 999px;
  color: #31538f;
  background: #f2f6ff;
  font-size: 10px;
  font-weight: 750;
}
.agent-delete-button {
  padding: 5px 2px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
}
.agent-delete-button:hover { color: var(--red); }
.agent-message-list { padding: 24px clamp(18px, 5vw, 70px); overflow-y: auto; scroll-behavior: auto; }
.agent-turn + .agent-turn { margin-top: 24px; }
.agent-message { display: grid; gap: 6px; }
.agent-message-user { max-width: 78%; margin-left: auto; justify-items: end; }
.agent-message-label { color: var(--muted); font-size: 10px; font-weight: 800; }
.agent-message-user .agent-message-body {
  padding: 10px 13px;
  border-radius: 13px 13px 3px 13px;
  color: #fff;
  background: var(--blue);
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.agent-message-assistant { margin-top: 13px; }
.agent-message-assistant .agent-message-body {
  color: #17233d;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.agent-message-assistant.agent-job-running [data-agent-answer]::after {
  width: 7px;
  height: 7px;
  margin-left: 5px;
  display: inline-block;
  content: "";
  vertical-align: 1px;
  border-radius: 50%;
  background: var(--blue);
  animation: agent-cursor-breathe 1.35s ease-in-out infinite;
}
@keyframes agent-cursor-breathe {
  0%, 100% { opacity: .35; transform: scale(.78); box-shadow: 0 0 0 0 rgba(20, 86, 240, 0); }
  50% { opacity: 1; transform: scale(1.12); box-shadow: 0 0 0 5px rgba(20, 86, 240, .12); }
}
.agent-message-meta { display: flex; gap: 9px; color: var(--subtle); font-size: 9px; }
.agent-job-failed .agent-message-body { color: var(--red); }
.agent-chat-empty {
  min-height: 100%;
  display: grid;
  place-content: center;
  color: var(--muted);
  text-align: center;
}
.agent-chat-empty strong { color: var(--ink); font-size: 18px; }
.agent-chat-empty p { max-width: 430px; margin: 7px 0 0; font-size: 12px; }
.agent-composer { padding: 12px 18px 16px; border-top: 1px solid var(--line); background: #fff; }
.agent-question-form {
  padding: 8px 9px 8px 13px;
  display: grid;
  gap: 7px;
  border: 1px solid #cfd6e2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(31, 35, 41, .06);
}
.agent-question-form textarea {
  min-height: 52px;
  max-height: 160px;
  padding: 3px 0;
  resize: vertical;
  border: 0;
  outline: none;
  color: var(--ink);
  background: #fff;
  font: inherit;
  line-height: 1.65;
}
.agent-question-form textarea:focus {
  box-shadow: none;
}
.agent-question-form > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.agent-question-form > div span { color: var(--muted); font-size: 9px; }
.agent-question-form .button { min-height: 34px; padding: 6px 15px; }

@media (max-width: 1220px) {
  .decision-brief {
    grid-template-columns: minmax(260px, 1fr) minmax(300px, .8fr);
  }
  .decision-action { grid-column: 1 / -1; width: fit-content; }
  .status-strip { grid-template-columns: repeat(5, minmax(100px, 1fr)); }
  .notification-filter-form { grid-template-columns: repeat(3, minmax(140px, 1fr)); }
  .ops-workspace { grid-template-columns: 190px minmax(0, 1fr); }
  .ops-query-form { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
}

@media (max-width: 820px) {
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 6px 18px rgba(31, 35, 41, .08);
  }
  .brand { min-height: 40px; margin: 0 0 8px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
  .sidebar nav { max-width: 100%; gap: 8px; }
  .sidebar > nav {
    min-height: auto;
    padding-right: 0;
    flex: 0 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: auto;
  }
  .sidebar nav a {
    min-height: 40px;
    padding: 8px 10px;
  }
  .sidebar-foot { display: none; }
  .nav-icon { display: none; }
  main { padding: 0 14px 32px; }
  .topbar h1 { font-size: 27px; }
  .content { padding-top: 14px; }
  .data-banner {
    display: block;
    line-height: 1.55;
  }
  .data-banner strong {
    display: inline-block;
    white-space: nowrap;
  }
  .decision-brief {
    padding: 18px;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .decision-brief h2 { font-size: 29px; }
  .decision-action { grid-column: 1; width: 100%; justify-content: space-between; }
  .action-panel-anchor { scroll-margin-top: 122px; }
  .action-item-head {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }
  .action-priority { grid-column: 1 / -1; }
  .action-item-body { grid-template-columns: 1fr; }
  .status-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  button.stat-item:nth-of-type(-n + 3) { border-top: 1px solid var(--line); }
  button.stat-item:nth-of-type(-n + 2) { border-top: 0; }
  button.stat-item:nth-of-type(3n) { border-right: 1px solid var(--line); }
  button.stat-item:nth-of-type(2n) { border-right: 0; }
  .stat-item { min-height: 100px; }
  .system-hero {
    padding: 18px;
    align-items: flex-start;
    flex-direction: column;
  }
  .system-hero-fact { width: 100%; }
  .quota-orbit { align-self: center; }
  .metric-grid { grid-template-columns: 1fr; }
  .project-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-summary > div:nth-child(2n) { border-right: 0; }
  .project-summary > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .gantt-result-facts { grid-template-columns: 1fr; }
  .gantt-result-facts .gantt-result-wide { grid-column: 1; }
  .help-card { top: 84px; }
  .login-body { padding: 16px; }
  .login-card { padding: 24px; border-radius: 18px; }
  .login-brand { margin-bottom: 25px; }
  .notification-filter-form { grid-template-columns: 1fr; }
  .notification-filter-form .button { width: 100%; }
  .notification-log-entry > summary { grid-template-columns: 1fr; gap: 10px; }
  .notification-log-primary > strong,
  .notification-log-primary > small { white-space: normal; }
  .notification-log-badges { justify-content: flex-start; }
  .notification-log-facts { grid-template-columns: 1fr; }
  .notification-log-api li { align-items: flex-start; flex-direction: column; gap: 2px; }
  .notification-log-api li span { text-align: left; }
  .ops-query-form { grid-template-columns: 1fr; }
  .ops-query-actions { align-items: stretch; flex-direction: column; }
  .ops-query-actions .button { width: 100%; }
  .ops-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-result-primary { align-items: flex-start; flex-direction: column; }
  .ops-result-meta { justify-content: flex-start; }
  .ops-module-tabs { grid-template-columns: 1fr; }
  .ops-query-context { grid-template-columns: 1fr; }
  .ops-pagination { align-items: flex-start; flex-direction: column; }
  .ops-pagination > div,
  .ops-pagination form,
  .ops-pagination .button { width: 100%; }
  .agent-workspace {
    min-height: 720px;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(600px, 1fr);
  }
  .agent-conversation-sidebar {
    max-height: 210px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .agent-conversation-list { padding-bottom: 10px; }
  .agent-chat { max-height: none; }
  .agent-chat-head { align-items: flex-start; flex-direction: column; }
  .agent-chat-actions { width: 100%; justify-content: space-between; }
  .agent-message-list { padding: 20px 16px; }
  .agent-message-user { max-width: 90%; }
  .agent-composer { padding: 10px; }
}

.revision-notice {
  margin: 14px 32px 0;
  padding: 12px 14px;
  border: 1px solid #b9cdfd;
  border-radius: 12px;
  background: #eef4ff;
  color: #23406f;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.revision-notice[hidden] { display: none; }

.revision-notice button {
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .ops-workspace { grid-template-columns: 1fr; }
  .ops-data-sidebar {
    position: static;
  }
  .ops-module-tabs {
    grid-template-columns: repeat(5, minmax(160px, 1fr));
    overflow-x: auto;
  }
  .ops-module-tabs a.active { box-shadow: inset 0 -3px 0 var(--blue); }
  .revision-notice {
    margin: 12px 16px 0;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @view-transition { navigation: none; }
  body.is-navigating::before { animation: none; opacity: 0; }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Public schedule and reviewer workflow */
.public-schedule-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(51, 112, 255, .13), transparent 34%),
    linear-gradient(180deg, #f7f9ff 0, #f3f6fb 46%, #edf2f8 100%);
}
.public-schedule-shell { width: min(1480px, calc(100% - 40px)); margin: 0 auto; padding: 44px 0 32px; }
.public-schedule-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  padding: 26px 28px;
  border: 1px solid rgba(201, 216, 255, .9);
  border-radius: 20px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow);
}
.public-schedule-hero h1 { margin: 3px 0 4px; font-size: clamp(25px, 4vw, 38px); line-height: 1.15; }
.public-schedule-hero p { margin: 0; color: var(--muted); }
.public-timeline-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.public-timeline-overview > div {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid rgba(201, 216, 255, .9);
  border-radius: 14px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 8px 24px rgba(31, 56, 108, .06);
}
.public-timeline-overview span,
.public-timeline-overview strong,
.public-timeline-overview small { display: block; }
.public-timeline-overview span { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .06em; }
.public-timeline-overview strong { margin-top: 4px; color: #16213b; font-size: 24px; line-height: 1.1; }
.public-timeline-overview small { margin-top: 5px; overflow: hidden; color: var(--subtle); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.public-view-switch {
  width: fit-content;
  margin: 0 auto 18px;
  padding: 4px;
  display: flex;
  gap: 4px;
  border: 1px solid #cfdbf2;
  border-radius: 12px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 8px 22px rgba(31, 56, 108, .06);
}
.public-view-switch button {
  min-width: 118px;
  padding: 9px 16px;
  border: 0;
  border-radius: 9px;
  color: #65718a;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.public-view-switch button[aria-selected="true"] { color: #fff; background: var(--blue); box-shadow: 0 6px 14px rgba(20, 86, 240, .2); }
.public-calendar-panel {
  margin-bottom: 22px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(201, 216, 255, .95);
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 14px 36px rgba(31, 56, 108, .08);
}
.public-calendar-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.public-calendar-toolbar > div:first-child { display: grid; gap: 2px; }
.public-calendar-toolbar > div:first-child > span { color: var(--blue); font-size: 9px; font-weight: 850; letter-spacing: .13em; }
.public-calendar-toolbar h2 { margin: 0; color: #17223b; font-size: 24px; }
.public-calendar-toolbar p { margin: 0; color: var(--muted); font-size: 11px; }
.public-calendar-navigation { display: flex; gap: 7px; }
.public-calendar-navigation button {
  padding: 8px 12px;
  border: 1px solid #c9d8f8;
  border-radius: 9px;
  color: var(--blue);
  background: #f4f7ff;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
.public-calendar-navigation button:hover:not(:disabled) { border-color: var(--blue); background: #eaf1ff; }
.public-calendar-navigation button:disabled { color: #abb5c6; background: #f5f6f8; cursor: not-allowed; }
.public-calendar-legend {
  margin-bottom: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  border-radius: 10px;
  color: #475571;
  background: #f7f9fd;
  font-size: 10px;
}
.public-calendar-legend span { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.public-calendar-legend i { width: 9px; height: 9px; border-radius: 3px; }
.public-calendar-legend .is-planning { background: #7c63d8; }
.public-calendar-legend .is-development { background: #2f6eed; }
.public-calendar-legend .is-testing { background: #18856f; }
.public-calendar-legend .is-external-delivery { background: #c45b18; }
.public-calendar-legend small { margin-left: auto; color: var(--subtle); }
.public-calendar-month { overflow: hidden; border: 1px solid #dce5f4; border-radius: 13px; }
.public-calendar-gantt .gantt-header,
.public-calendar-gantt .gantt-row { grid-template-columns: 205px var(--timeline-width); }
.public-calendar-gantt .gantt { padding-right: 0; padding-left: 0; }
.public-calendar-gantt .gantt-label { padding-left: 12px; background: #fff; }
.public-calendar-project-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.public-calendar-project-header > div { min-width: 0; }
.public-calendar-project-header > div small { margin-top: 3px; }
.public-calendar-project-header .public-calendar-click-hint {
  min-width: 0;
  margin: 0;
  padding: 5px 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border: 1px solid #78a2ff;
  border-radius: 8px;
  color: #154fb7;
  background: #e9f1ff;
  box-shadow: 0 3px 10px rgba(47, 110, 237, .16);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-overflow: clip;
  white-space: normal;
}
.public-calendar-gantt .gantt-row.is-even .gantt-label { background: #f7f9fd; }
.public-calendar-gantt .gantt-row:hover .gantt-label { background: #edf3ff; }
.public-calendar-gantt .gantt-days button { min-width: 0; }
.public-calendar-gantt .gantt-days button.is-today { box-shadow: inset 0 0 0 2px #f0a12b; }
.public-calendar-today-mark {
  min-width: 18px;
  padding: 1px 5px;
  border-radius: 999px;
  color: #8a4c00;
  background: #fff0ca;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.25;
}
.public-calendar-gantt .gantt-days button.is-selected .public-calendar-today-mark { color: #18479e; background: #fff; }
.public-calendar-gantt .gantt-days button.has-projects strong { color: var(--blue); }
.public-calendar-gantt .gantt-days button.is-selected strong { color: #fff; }
.public-calendar-project-row { min-height: 100px; }
.public-calendar-project-row.is-expired { opacity: .46; }
.public-calendar-project-row .gantt-label { display: grid; align-content: center; }
.public-calendar-project-title { display: flex; align-items: center; gap: 7px; min-width: 0; }
.public-calendar-project-title strong { min-width: 0; }
.public-calendar-project-title .public-calendar-project-status {
  flex: 0 0 auto;
  margin: 0;
  padding: 2px 6px;
  overflow: visible;
  border: 1px solid #67758c;
  border-radius: 999px;
  color: #fff;
  background: #44526a;
  font-size: 8px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: clip;
}
.public-calendar-project-row .gantt-label strong { color: #17223b; font-size: 12px; }
.public-calendar-project-row .gantt-track { min-height: 100px; }
.public-calendar-range {
  position: absolute;
  z-index: 1;
  top: calc(7px + (var(--stage-index) * 22px));
  left: var(--range-left);
  width: max(var(--range-width), 20px);
  height: 19px;
  padding: 2px 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #2f6eed;
  border-radius: 5px;
  color: #fff;
  background: linear-gradient(135deg, #3370ff, #1456f0);
  box-shadow: 0 3px 8px rgba(20, 86, 240, .16);
}
.public-calendar-range-planning { border-color: #6d54c8; background: linear-gradient(135deg, #8d76e5, #6d54c8); box-shadow: 0 3px 8px rgba(109, 84, 200, .16); }
.public-calendar-range-development { border-color: #2f6eed; background: linear-gradient(135deg, #3370ff, #1456f0); }
.public-calendar-range-testing { border-color: #147562; background: linear-gradient(135deg, #24a287, #147562); box-shadow: 0 3px 8px rgba(20, 117, 98, .16); }
.public-calendar-range-external-delivery { border-color: #a94a12; background: linear-gradient(135deg, #dc742e, #a94a12); box-shadow: 0 3px 8px rgba(169, 74, 18, .16); }
.public-calendar-range strong { max-width: 100%; overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.public-calendar-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: min(82vh, 780px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: #fbfcff;
  box-shadow: 0 24px 72px rgba(23, 34, 59, .28);
}
.public-calendar-dialog::backdrop { background: rgba(31, 35, 41, .48); backdrop-filter: blur(4px); }
.public-calendar-dialog form { max-height: min(82vh, 780px); display: flex; flex-direction: column; }
.public-calendar-dialog .dialog-head { margin: 0; padding: 18px 20px 14px; border-bottom: 1px solid #e2e8f3; }
.public-calendar-dialog .public-calendar-details { min-height: 0; padding: 16px 20px; overflow-y: auto; }
.public-calendar-dialog .dialog-actions { margin: 0; padding: 12px 20px 16px; border-top: 1px solid #e2e8f3; }
.public-calendar-detail {
  padding: 16px;
  border: 1px solid #dce5f4;
  border-radius: 13px;
  background: #fbfcff;
}
.public-calendar-detail header > span { color: var(--blue); font-size: 8px; font-weight: 850; letter-spacing: .12em; }
.public-calendar-detail h3 { margin: 2px 0 0; color: #1b2943; font-size: 16px; }
.public-calendar-detail > p { margin: 12px 0 0; padding: 15px; border-radius: 9px; color: var(--muted); background: #f1f4f8; text-align: center; font-size: 11px; }
.public-calendar-detail ul { margin: 13px 0 0; padding: 0; display: grid; gap: 7px; list-style: none; }
.public-calendar-detail li {
  min-width: 0;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e2e8f3;
}
.public-calendar-detail-stage { padding: 4px 7px; border-radius: 6px; color: var(--blue); background: #edf3ff; font-size: 9px; font-weight: 800; }
.public-calendar-detail li > div { min-width: 0; display: grid; gap: 2px; }
.public-calendar-detail li > div strong { overflow: hidden; color: #25334f; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.public-calendar-detail li > div span { color: var(--muted); font-size: 10px; }
.public-calendar-detail li > b { padding: 4px 7px; border-radius: 6px; color: #b13c30; background: #ffe9e5; font-size: 9px; }
.public-calendar-detail li > small { color: var(--subtle); font-size: 9px; }
.public-schedule-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}
.public-project-directory {
  min-width: 0;
  position: sticky;
  top: 18px;
}
.public-project-directory-card {
  max-height: calc(100vh - 36px);
  padding: 18px 12px 12px;
  overflow-y: auto;
  border: 1px solid rgba(201, 216, 255, .95);
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 30px rgba(31, 56, 108, .08);
}
.public-project-directory-card > span {
  padding: 0 6px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .14em;
}
.public-project-directory-card h2 { margin: 3px 6px 14px; color: #17223b; font-size: 20px; }
.public-sort-toggle {
  position: relative;
  width: 100%;
  margin-bottom: 12px;
  padding: 10px 11px;
  display: grid;
  justify-items: start;
  gap: 2px;
  border: 1px solid #cbdafb;
  border-radius: 11px;
  color: #2d3d5b;
  background: #f4f7ff;
  text-align: left;
  cursor: pointer;
}
.public-sort-toggle:hover { border-color: var(--blue); background: #edf3ff; }
.public-sort-toggle span { color: var(--muted); font-size: 9px; font-weight: 700; }
.public-sort-toggle strong { color: var(--blue); font-size: 12px; }
.public-sort-toggle small { color: var(--subtle); font-size: 9px; }
.public-sort-toggle[aria-pressed="true"]::after {
  position: absolute;
  width: 6px;
  height: 6px;
  margin: 6px 0 0 174px;
  border-radius: 50%;
  content: "";
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(20, 86, 240, .12);
}
.public-project-directory nav { display: grid; gap: 5px; }
.public-project-directory a {
  min-width: 0;
  padding: 9px 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  border-radius: 10px;
  color: #33415e;
  transition: color var(--duration-fast) ease, background var(--duration-fast) ease;
}
.public-project-directory a:hover,
.public-project-directory a.is-active { color: var(--blue); background: #edf3ff; }
.public-project-directory a.is-expired { opacity: .52; }
.public-project-directory-name { min-width: 0; overflow: hidden; font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.public-project-directory-status { padding: 3px 6px; border-radius: 999px; color: #7d8798; background: #eef0f3; font-size: 9px; font-weight: 700; white-space: nowrap; }
.public-project-list { min-width: 0; display: grid; gap: 22px; }
.public-project-timeline {
  scroll-margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(201, 216, 255, .95);
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 14px 36px rgba(31, 56, 108, .08);
}
.public-project-timeline.is-expired { opacity: .52; }
.public-project-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid #dce6f7;
  background: linear-gradient(110deg, color-mix(in srgb, var(--project-accent) 9%, #fff), #fff 58%);
}
.public-project-index {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--project-accent);
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--project-accent) 28%, transparent);
}
.public-project-heading > div:nth-child(2) > span,
.public-version-heading span {
  color: var(--project-accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
}
.public-project-title { min-width: 0; }
.public-project-title-row { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.public-project-heading h2 { margin: 2px 0 0; color: #17223b; font-size: 22px; line-height: 1.2; }
.public-project-range { display: grid; justify-items: end; gap: 3px; text-align: right; }
.public-project-range span { color: var(--muted); font-size: 11px; }
.public-project-range strong { color: #22304d; font-size: 13px; font-variant-numeric: tabular-nums; }
.public-project-range small { color: var(--subtle); }
.public-delivery-date {
  width: fit-content;
  padding: 5px 9px;
  border: 0;
  border-radius: 8px;
  color: #f8fbff;
  background: color-mix(in srgb, var(--project-accent) 82%, #17223b);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--project-accent) 18%, transparent);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}
.public-version-list { min-width: 0; display: grid; }
.public-version-timeline { width: 100%; min-width: 0; overflow: hidden; }
.public-version-timeline + .public-version-timeline { border-top: 1px solid #e3eaf5; }
.public-version-heading {
  padding: 14px 22px 8px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.public-version-heading h3 { margin: 1px 0 0; color: #17223b; font-size: 16px; }
.public-version-heading p { margin: 0; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.public-version-meta { display: grid; justify-items: end; gap: 7px; }
.public-stage-list { min-width: 0; padding: 0 18px 18px; display: grid; gap: 9px; }
.public-stage {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce5f4;
  border-radius: 13px;
  background: #fbfcff;
}
.public-stage > summary {
  min-width: 0;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 10px;
  list-style: none;
  cursor: pointer;
}
.public-stage > summary::-webkit-details-marker { display: none; }
.public-stage > summary:hover { background: #f2f6ff; }
.public-stage[open] { border-color: color-mix(in srgb, var(--project-accent) 35%, #dce5f4); background: #fff; }
.public-stage[open] > summary { background: color-mix(in srgb, var(--project-accent) 6%, #fff); }
.public-stage-index {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--project-accent);
  background: color-mix(in srgb, var(--project-accent) 10%, #fff);
  font-size: 10px;
  font-weight: 850;
}
.public-stage-title { min-width: 0; display: grid; gap: 2px; }
.public-stage-title small { color: var(--project-accent); font-size: 8px; font-weight: 850; letter-spacing: .12em; }
.public-stage-title strong { color: #1c2942; font-size: 14px; }
.public-stage-meta { display: grid; justify-items: end; gap: 2px; text-align: right; font-variant-numeric: tabular-nums; }
.public-stage-meta small { color: var(--subtle); font-size: 9px; }
.public-stage-meta strong { color: #34425d; font-size: 10px; }
.public-stage-chevron { color: var(--project-accent); font-size: 18px; font-weight: 800; transition: transform var(--duration-fast) ease; }
.public-stage[open] .public-stage-chevron { transform: rotate(180deg); }
.public-stage-body { min-width: 0; padding-top: 10px; border-top: 1px solid #e5ebf5; }
.public-stage-body > .public-timeline-controls { padding: 0 14px 5px; }
.public-stage-empty { padding: 13px 14px; border-top: 1px solid #e5ebf5; color: var(--subtle); font-size: 10px; }
.public-timeline-controls { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.public-timeline-controls > span { margin-right: 3px; color: var(--subtle); font-size: 9px; font-weight: 650; letter-spacing: 0; }
.public-timeline-controls button {
  width: 30px;
  height: 28px;
  padding: 0;
  border: 1px solid #c9d8f8;
  border-radius: 8px;
  color: var(--blue);
  background: #f3f7ff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.public-timeline-controls button:hover:not(:disabled) { border-color: var(--blue); background: #e7efff; }
.public-timeline-controls button:disabled { color: #aab5c7; background: #f5f6f8; cursor: not-allowed; opacity: .62; }
.public-milestone-scroll {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 4px 22px 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-gutter: stable;
  scrollbar-color: #a8bff4 #eef3fd;
  cursor: grab;
}
.public-milestone-scroll::-webkit-scrollbar { height: 10px; }
.public-milestone-scroll::-webkit-scrollbar-track { border-radius: 999px; background: #eef3fd; }
.public-milestone-scroll::-webkit-scrollbar-thumb { border: 2px solid #eef3fd; border-radius: 999px; background: #9fb8ef; }
.public-milestone-scroll.is-dragging { cursor: grabbing; user-select: none; scroll-behavior: auto; }
.public-milestone-scroll:focus-visible { outline: 2px solid rgba(20, 86, 240, .28); outline-offset: -3px; }
.public-milestone-flow {
  position: relative;
  min-width: max(100%, var(--timeline-min-width));
  display: grid;
  grid-template-columns: repeat(var(--milestones), minmax(210px, 1fr));
  gap: 14px;
}
.public-milestone-flow::before {
  position: absolute;
  top: 58px;
  right: calc(50% / var(--milestones));
  left: calc(50% / var(--milestones));
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--project-accent), color-mix(in srgb, var(--project-accent) 32%, #dce6f7));
}
.public-milestone { position: relative; min-width: 0; display: grid; grid-template-rows: 43px 30px minmax(94px, auto); }
.public-milestone time { display: grid; justify-items: center; align-content: center; color: #283958; font-variant-numeric: tabular-nums; }
.public-milestone time strong { font-size: 11px; white-space: nowrap; }
.public-milestone time span { margin-top: 2px; color: var(--subtle); font-size: 9px; }
.public-milestone-marker { position: relative; z-index: 1; display: grid; place-items: center; }
.public-milestone-marker i {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--project-accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--project-accent) 28%, #dce6f7);
  font-size: 8px;
  font-style: normal;
  font-weight: 850;
}
.public-milestone-card {
  margin-top: 5px;
  padding: 13px 14px;
  border: 1px solid #dce5f4;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(31, 56, 108, .06);
}
.public-milestone-kicker { color: var(--project-accent); font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.public-milestone-card h4 { margin: 4px 0 0; color: #17223b; font-size: 14px; }
.public-milestone-card p { margin: 7px 0 0; padding-top: 7px; border-top: 1px dashed #dce5f4; color: #5a6881; font-size: 11px; line-height: 1.55; }
.public-schedule-footer { padding: 20px 0; display: grid; gap: 5px; color: var(--muted); text-align: center; font-size: 12px; }
.public-release-version { color: var(--subtle); font-size: 10px; font-weight: 500; }
.schedule-review-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.schedule-review-steps span { padding: 12px 14px; color: var(--muted); text-align: center; font-weight: 700; }
.schedule-review-steps span + span { border-left: 1px solid var(--line); }
.schedule-review-steps .is-current { color: var(--blue); background: #eef4ff; }
.schedule-review-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.schedule-change-panel { margin-bottom: 18px; }
.schedule-change-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}
.schedule-change-card:first-of-type { border-top: 0; }
.schedule-change-kind { min-width: 48px; padding: 6px 8px; border-radius: 8px; text-align: center; font-size: 12px; font-weight: 800; }
.change-added { color: #17724a; background: var(--green-soft); }
.change-changed { color: #995400; background: var(--amber-soft); }
.change-removed { color: var(--red); background: var(--red-soft); }
.schedule-change-copy { display: grid; gap: 3px; min-width: 0; }
.schedule-change-copy span { color: var(--muted); }
.schedule-change-copy b { color: var(--blue); font-size: 16px; line-height: 1; }
.schedule-change-copy small { color: var(--subtle); }
.schedule-change-actions, .schedule-release-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.schedule-change-actions form, .schedule-release-actions form { margin: 0; }
.schedule-preview-panel { margin-bottom: 18px; }
.schedule-pending-release-panel { margin-bottom: 18px; }
.schedule-draft-card { align-items: start; }
.schedule-draft-card .schedule-change-copy span small { margin-right: 7px; color: var(--subtle); font-size: 10px; font-weight: 750; }
.schedule-draft-controls { min-width: 430px; display: grid; justify-items: end; gap: 8px; }
.schedule-draft-form {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  align-items: end;
  gap: 8px;
}
.schedule-draft-form label, .schedule-adjustment-selectors label, .schedule-adjustment-fields label { display: grid; gap: 5px; }
.schedule-draft-form label span, .schedule-adjustment-selectors label span, .schedule-adjustment-fields label span { color: var(--muted); font-size: 11px; font-weight: 650; }
.schedule-draft-form input, .schedule-adjustment-selectors select, .schedule-adjustment-fields input {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.schedule-draft-form input:focus, .schedule-adjustment-selectors select:focus, .schedule-adjustment-fields input:focus { outline: 2px solid rgba(20, 86, 240, .2); border-color: var(--blue); }
.schedule-draft-note { grid-column: 1 / -1; }
.schedule-draft-form button { grid-column: 1 / -1; justify-self: end; }
.schedule-draft-remove { margin: 0; }
.schedule-release-change-index { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--blue); background: #edf3ff; font-size: 11px; font-weight: 800; }
.schedule-release-summary { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); background: #f6f8fc; }
.schedule-release-summary strong { color: #17223b; font-size: 18px; }
.schedule-release-summary span { color: var(--muted); font-size: 12px; }
.schedule-adjustment-dialog {
  width: min(760px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(22, 34, 57, .22);
}
.schedule-adjustment-dialog::backdrop { background: rgba(31, 35, 41, .48); }
.schedule-adjustment-dialog form { padding: 22px; }
.schedule-adjustment-selectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.schedule-adjustment-current { margin-top: 14px; padding: 11px 12px; border-radius: 9px; color: #44516a; background: #f2f5fa; font-size: 12px; }
.schedule-adjustment-fields { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.schedule-adjustment-fields label:last-child { grid-column: 1 / -1; }
.schedule-panel-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.schedule-panel-actions form { margin: 0; }
.panel-kicker { color: var(--muted); font-size: 12px; }

@media (max-width: 860px) {
  .public-schedule-shell { width: min(100% - 24px, 1480px); padding-top: 18px; }
  .public-schedule-hero { grid-template-columns: auto 1fr; padding: 20px; }
  .public-timeline-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .public-schedule-layout { grid-template-columns: minmax(0, 1fr); }
  .public-project-directory { position: static; }
  .public-project-directory-card { max-height: none; }
  .public-project-directory nav { grid-template-columns: repeat(3, minmax(170px, 1fr)); overflow-x: auto; }
  .public-project-heading { grid-template-columns: auto minmax(0, 1fr); }
  .public-project-range { grid-column: 1 / -1; justify-items: start; text-align: left; }
  .schedule-review-metrics { grid-template-columns: repeat(2, 1fr); }
  .schedule-change-card { grid-template-columns: auto minmax(0, 1fr); }
  .schedule-change-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .schedule-draft-controls { grid-column: 1 / -1; width: 100%; min-width: 0; }
}

@media (max-width: 560px) {
  .public-timeline-overview { gap: 8px; }
  .public-timeline-overview > div { padding: 13px 14px; }
  .public-timeline-overview strong { font-size: 20px; }
  .public-view-switch { width: 100%; }
  .public-view-switch button { min-width: 0; flex: 1; }
  .public-calendar-panel { padding: 14px 10px; border-radius: 15px; }
  .public-calendar-toolbar { align-items: stretch; flex-direction: column; gap: 10px; }
  .public-calendar-toolbar h2 { font-size: 20px; }
  .public-calendar-navigation { display: grid; grid-template-columns: 1fr 1fr; }
  .public-calendar-legend { gap: 8px 12px; }
  .public-calendar-legend small { width: 100%; margin-left: 0; }
  .public-calendar-gantt .gantt-header,
  .public-calendar-gantt .gantt-row { grid-template-columns: 138px var(--timeline-width); }
  .public-calendar-gantt .gantt-label { padding-right: 7px; padding-left: 8px; }
  .public-calendar-project-header { gap: 4px; }
  .public-calendar-project-header > div small { display: none; }
  .public-calendar-project-header .public-calendar-click-hint { padding: 4px; font-size: 8px; }
  .public-calendar-project-row .gantt-label strong { font-size: 10px; }
  .public-calendar-project-row .gantt-label span { font-size: 8px; }
  .public-calendar-project-title { gap: 4px; }
  .public-calendar-project-title .public-calendar-project-status { padding: 2px 4px; font-size: 7px; }
  .public-calendar-range { padding: 3px; }
  .public-calendar-dialog { width: calc(100% - 20px); max-height: 88vh; }
  .public-calendar-dialog form { max-height: 88vh; }
  .public-calendar-dialog .dialog-head { padding: 15px 14px 12px; }
  .public-calendar-dialog .public-calendar-details { padding: 12px 14px; }
  .public-calendar-dialog .dialog-actions { padding: 10px 14px 14px; }
  .public-calendar-detail { padding: 12px; }
  .public-calendar-detail li { grid-template-columns: auto minmax(0, 1fr); }
  .public-calendar-detail li > b,
  .public-calendar-detail li > small { grid-column: 2; justify-self: start; }
  .public-project-list { gap: 14px; }
  .public-project-directory-card { padding: 14px 10px 10px; }
  .public-project-directory-card h2 { margin-bottom: 10px; font-size: 17px; }
  .public-sort-toggle[aria-pressed="true"]::after { display: none; }
  .public-project-directory nav { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .public-project-directory a { grid-template-columns: minmax(0, 1fr) auto; padding: 7px 8px; }
  .public-project-directory-name { font-size: 10px; }
  .public-project-heading { padding: 17px; }
  .public-project-heading h2 { font-size: 19px; }
  .public-project-title-row { gap: 8px; }
  .public-delivery-date { padding: 4px 8px; font-size: 10px; }
  .public-version-heading { padding: 14px 17px 10px; align-items: flex-start; flex-direction: column; gap: 5px; }
  .public-version-meta { justify-items: start; }
  .public-stage-list { padding: 0 10px 10px; }
  .public-stage > summary { grid-template-columns: 32px minmax(0, 1fr) 18px; padding: 10px; gap: 8px; }
  .public-stage-meta { grid-column: 2 / -1; grid-row: 2; justify-items: start; text-align: left; }
  .public-stage-chevron { grid-column: 3; grid-row: 1; }
  .public-timeline-controls { display: none; }
  .public-milestone-scroll { padding: 2px 12px 14px; overflow: visible; }
  .public-milestone-flow { min-width: 0; display: grid; grid-template-columns: 1fr; gap: 0; }
  .public-milestone-flow::before { top: 43px; right: auto; bottom: 34px; left: 11px; width: 2px; height: auto; }
  .public-milestone {
    min-width: 0;
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 9px;
    padding-bottom: 13px;
  }
  .public-milestone:last-child { padding-bottom: 0; }
  .public-milestone time { grid-column: 2; grid-row: 1; justify-items: start; align-content: end; min-height: 34px; }
  .public-milestone-marker { grid-column: 1; grid-row: 1 / 3; align-self: start; margin-top: 30px; }
  .public-milestone-card { grid-column: 2; grid-row: 2; margin-top: 6px; }
  .schedule-review-steps { grid-template-columns: repeat(2, 1fr); }
  .schedule-review-steps span:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .schedule-review-steps span:nth-child(4) { border-top: 1px solid var(--line); }
  .schedule-review-metrics { grid-template-columns: 1fr; }
  .schedule-adjustment-selectors, .schedule-adjustment-fields { grid-template-columns: 1fr; }
  .schedule-adjustment-fields label:last-child { grid-column: auto; }
  .schedule-draft-form { grid-template-columns: 1fr; }
  .schedule-draft-note, .schedule-draft-form button { grid-column: auto; }
  .schedule-release-summary { align-items: flex-start; flex-direction: column; }
}
