:root {
  --blue: #465eff;
  --deep: #3333bd;
  --yellow: #fcfc30;
  --ink: #202535;
  --muted: #626979;
  --bg: #f5f6f9;
  --line: #e6e8ef;
  --surface: #fff;
  --lightblue: #eef0ff;
  --cyan: #54dcfc;
  --green: #00ebd0;
  --radius: 22px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  font-size: 16px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
a {
  color: var(--deep);
}
[hidden] {
  display: none !important;
}
.skip {
  position: fixed;
  top: -80px;
  background: var(--yellow);
  z-index: 100;
  padding: 12px;
}
.skip:focus {
  top: 0;
}
.topbar {
  height: 90px;
  padding: 0 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo-box {
  height: 52px;
  display: flex;
  align-items: center;
  padding: 12px 17px;
  background: var(--yellow);
  border-radius: 3px;
}
.logo-box img {
  width: 184px;
  height: auto;
}
.brand-divider {
  height: 30px;
  width: 1px;
  background: var(--line);
}
.brand strong {
  font-size: 20px;
  letter-spacing: -0.4px;
}
.brand-sub {
  font-size: 12px;
  font-weight: 500;
  display: block;
  color: var(--muted);
  letter-spacing: 0.1px;
  margin-top: 3px;
}
.topright {
  display: flex;
  align-items: center;
  gap: 20px;
}
.local-label {
  font-size: 13px;
  color: var(--muted);
}
.icon-button {
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-weight: 600;
}
.tip-anchor {
  position: relative;
  display: inline-flex;
}
.settings-button {
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: var(--deep);
  background: #f8f9ff;
  cursor: pointer;
}
.settings-button:hover {
  background: var(--lightblue);
}
.settings-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
/* Hover or keyboard focus shows the name at once: the icon has no visible text. */
.tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 30;
  padding: 5px 9px;
  border-radius: 6px;
  background: #202535;
  box-shadow: 0 0 0 1px #ffffff26;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -2px);
  transition:
    opacity 120ms ease-out,
    transform 120ms ease-out;
}
.tip-anchor:hover .tooltip,
.settings-button:focus-visible + .tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (prefers-reduced-motion: reduce) {
  .tooltip {
    transition: none;
  }
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.7px;
  color: var(--deep);
  margin-bottom: 10px;
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 38px 4% 0;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 26px;
}
h1 {
  font-size: 38px;
  line-height: 1.1;
  font-weight: 650;
  letter-spacing: -1.5px;
  margin: 0;
}
p {
  line-height: 1.5;
  margin: 0;
}
.lead {
  font-size: 15px;
  color: var(--muted);
  margin-top: 10px;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.button {
  border: 1px solid #dfe2eb;
  background: #fff;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 550;
  white-space: nowrap;
  transition: transform 120ms cubic-bezier(0.16, 1, 0.3, 1);
}
.button:hover {
  background: #f0f2f8;
}
.button.primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 4px 9px #465eff1a;
}
.button.primary:hover {
  background: var(--deep);
}
.navline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  gap: 12px;
}
nav {
  display: flex;
  gap: 30px;
}
.nav-tab {
  padding: 14px 0 15px;
  position: relative;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.nav-tab.active {
  color: var(--deep);
}
.nav-tab.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue);
  border-radius: 3px;
}
.count {
  background: #e9ebf4;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 11px;
  margin-left: 6px;
}
.source-label {
  font-size: 12px;
  color: var(--muted);
  max-width: 50%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.filterbar {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.filterbar label,
.compact-label {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  gap: 7px;
}
select,
input,
textarea {
  border: 1px solid #dfe2eb;
  background: #fff;
  border-radius: 9px;
  color: var(--ink);
  padding: 10px 12px;
  min-height: 42px;
  font-size: 14px;
}
select {
  min-width: 195px;
  max-width: 310px;
}
#goal-filter {
  width: 280px;
}
.search-label {
  flex: 1;
  min-width: 190px;
}
.search-label input {
  width: 100%;
}
.text-button {
  font-size: 13px;
  color: var(--deep);
  padding: 11px 0;
  text-align: left;
}
.text-button:hover {
  text-decoration: underline;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.summary-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 18px;
}
.progress-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 28px;
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  overflow: hidden;
  gap: 8px;
  min-height: 218px;
}
.card-kicker {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 1px;
  line-height: 1.5;
}
.progress-card .card-kicker {
  color: #fff;
}
.hero-number {
  font-size: 65px;
  letter-spacing: -3px;
  line-height: 1.1;
  font-weight: 620;
  margin: 7px 0;
}
.hero-number .decimal {
  font-size: 46px;
  letter-spacing: -2px;
}
.progress-card p {
  font-size: 12px;
  color: #eef0ff;
  max-width: 235px;
}
.method-link {
  font-size: 12px;
  color: #fff;
  padding: 0;
  margin-top: 18px;
  opacity: 0.94;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ring-wrap {
  width: 156px;
  min-width: 130px;
  position: relative;
}
.progress-ring {
  width: 100%;
  display: block;
  transform: rotate(-90deg);
}
.progress-ring circle {
  fill: none;
  stroke-width: 11;
}
.ring-bg {
  stroke: #ffffff2b;
}
#ring-value {
  stroke: var(--yellow);
  stroke-linecap: round;
  stroke-dasharray: 0 100;
  transition: none;
}
.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ring-center strong {
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -1px;
}
.ring-center span {
  font-size: 11px;
  color: #fff;
}
.metric {
  padding: 23px 24px;
  position: relative;
}
.metric .card-kicker {
  color: var(--muted);
  margin-top: 16px;
  font-size: 10px;
  letter-spacing: 0.7px;
}
.metric-icon {
  display: flex;
  background: #e9f9f5;
  color: #006557;
  border-radius: 10px;
  width: 31px;
  height: 31px;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.pending-icon {
  background: #f4f1df;
  color: #6b5c0d;
}
.metric-number {
  font-size: 42px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -1.6px;
  margin: 6px 0;
}
.metric p {
  font-size: 12px;
  color: var(--muted);
}
.mini-progress {
  height: 4px;
  background: #eceef4;
  border-radius: 9px;
  margin-top: 14px;
  overflow: hidden;
}
.mini-progress i {
  height: 100%;
  display: block;
  background: var(--blue);
}
.status-inline {
  font-size: 11px;
  margin-top: 13px;
  color: var(--muted);
}
.middle-grid {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 18px;
  margin-top: 20px;
}
.fronts-card,
.status-card {
  padding: 25px 27px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 22px;
}
h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.45px;
  margin: 0;
}
.small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.team-bar {
  width: 100%;
  display: grid;
  grid-template-columns: 112px 1fr 53px;
  gap: 16px;
  align-items: center;
  padding: 9px 0;
  text-align: left;
}
.team-bar:hover .bar-track {
  background: #e4e7f3;
}
.team-name {
  font-size: 13px;
  font-weight: 550;
}
.bar-track {
  height: 9px;
  background: #f0f1f6;
  border-radius: 10px;
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: 10px;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.team-bar:nth-child(2) .bar-fill {
  background: var(--deep);
}
.team-bar:nth-child(3) .bar-fill {
  background: var(--cyan);
}
.team-bar:nth-child(4) .bar-fill {
  background: var(--green);
}
.team-percent {
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.status-stack {
  height: 24px;
  display: flex;
  gap: 4px;
  margin-top: 34px;
  margin-bottom: 23px;
  border-radius: 7px;
  overflow: hidden;
  background: #f0f1f6;
}
.status-stack span {
  min-width: 0;
}
.status-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.legend-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}
.swatch {
  height: 7px;
  width: 7px;
  border-radius: 2px;
  display: inline-block;
  flex: none;
}
.legend-value {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.6px;
}
.legend-value span {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 5px;
}
.focus-note {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.focus-note strong {
  color: var(--ink);
  font-weight: 600;
}
.goals-section {
  margin-top: 30px;
}
.goals-section .section-heading {
  margin-bottom: 16px;
}
.goals-section p {
  margin-top: 5px;
}
.pill {
  border: 1px solid #dfe2eb;
  border-radius: 20px;
  padding: 6px 11px;
  font-size: 12px;
  white-space: nowrap;
}
.goal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.goal-card {
  text-align: left;
  padding: 23px 22px;
  position: relative;
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 220px;
  display: flex;
  flex-direction: column;
}
.goal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px #282e5010;
  border-color: #c9cef7;
}
.goal-code {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.goal-code .external {
  font-size: 18px;
  color: var(--blue);
}
.goal-card h3 {
  font-size: 16px;
  line-height: 1.4;
  margin: 13px 0 20px;
  letter-spacing: -0.2px;
  font-weight: 550;
  flex: 1;
}
.goal-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}
.goal-bottom strong {
  font-size: 24px;
  letter-spacing: -0.8px;
  font-weight: 600;
}
.goal-bottom span {
  font-size: 11px;
  color: var(--muted);
}
.goal-card .bar-track {
  height: 5px;
}
.empty {
  padding: 36px;
  text-align: center;
  color: var(--muted);
  grid-column: 1 / -1;
}
.table-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 25px 0 20px;
}
.table-toolbar p {
  margin-top: 6px;
}
.table-container {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th {
  text-align: left;
  background: #f9faff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 15px 14px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
th:not(:first-child),
td:not(:first-child) {
  text-align: center;
}
td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  min-width: 80px;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fafbff;
}
th:first-child,
td:first-child {
  min-width: 290px;
  max-width: 510px;
  width: 45%;
}
.activity-button {
  text-align: left;
  display: block;
  padding: 0;
  width: 100%;
  line-height: 1.5;
}
.activity-button small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 4px;
}
.activity-button:hover {
  color: var(--deep);
}
.cell-percent {
  font-size: 12px;
  font-weight: 550;
  display: inline-block;
  min-width: 48px;
  padding: 6px;
  border-radius: 7px;
  background: #f1f2f7;
  color: var(--muted);
}
.cell-percent.complete {
  color: var(--deep);
  background: #ebeeff;
}
.cell-percent.progress {
  background: #fffdcf;
  color: #666009;
}
.cell-percent.na {
  background: none;
  color: #7c8393;
  font-weight: 400;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-size: 12px;
  color: var(--muted);
}
.pagination > div {
  display: flex;
  gap: 8px;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
footer p {
  max-width: 800px;
}
dialog {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  max-width: 660px;
  width: calc(100% - 32px);
  max-height: 88dvh;
  box-shadow: 0 25px 90px #17213b33;
}
dialog::backdrop {
  background: #1520415e;
  backdrop-filter: blur(5px);
}
.dialog-inner {
  padding: 30px;
}
.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.dialog-header h2 {
  font-size: 24px;
}
.close-button {
  border-radius: 50%;
  width: 32px;
  height: 32px;
  background: #f1f2f6;
  font-size: 22px;
  flex: none;
}
.dialog-inner p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
}
.dialog-inner h3 {
  font-size: 16px;
  margin-top: 24px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid label,
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.form-grid input,
.form-grid select {
  width: 100%;
  min-width: 0;
  max-width: none;
}
.field {
  margin-top: 16px;
}
.field textarea {
  min-height: 85px;
  resize: vertical;
}
.dropzone {
  border: 1.5px dashed #b9c2eb;
  padding: 28px;
  text-align: center;
  border-radius: 14px;
  background: #f8f9ff;
  margin: 22px 0;
}
.dropzone.dragover {
  background: #e9edff;
  border-color: var(--blue);
}
.dropzone input {
  max-width: 100%;
  font-size: 13px;
  background: #fff;
}
.dropzone p {
  margin-top: 12px;
  font-size: 12px;
}
.error-message {
  color: #aa223e !important;
  background: #fff0f2;
  padding: 12px;
  border-radius: 10px;
  font-size: 13px;
}
.sheet-picker {
  margin: 0 0 12px;
  max-width: 320px;
}
.import-preview {
  padding: 15px;
  background: #eff7f4;
  border-radius: 12px;
  font-size: 14px;
}
.checkline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin: 15px 0;
}
.checkline input {
  min-height: 18px;
  width: 18px;
}
.export-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.export-options button {
  padding: 24px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 18px;
  font-weight: 600;
  background: #f9faff;
}
.export-options small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 8px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #252a40;
  color: white;
  border-radius: 12px;
  padding: 13px 20px;
  font-size: 14px;
  box-shadow: 0 8px 30px #20254025;
  max-width: 90%;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 99;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.owner-text {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 7px;
}
.method-list {
  font-size: 14px;
  line-height: 1.65;
  padding-left: 20px;
  color: var(--muted);
}
.info-line {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 20px !important;
}
.dialog-inner code {
  background: #f0f2f8;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 12px;
}
.saved-note {
  font-size: 12px !important;
  color: var(--deep) !important;
}
.selected-team {
  opacity: 0.45;
}
.selected-team.active-team {
  opacity: 1;
}
.checks {
  margin: 16px 0;
}
.checks label {
  font-size: 13px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (min-width: 1600px) {
  main {
    padding-left: 24px;
    padding-right: 24px;
  }
}
@media (max-width: 1150px) {
  .summary-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  .progress-card {
    padding: 24px;
  }
  .ring-wrap {
    min-width: 112px;
    width: 125px;
  }
  .hero-number {
    font-size: 56px;
  }
  .metric {
    padding: 22px 18px;
  }
  .goal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .goal-card {
    min-height: 190px;
  }
  .actions .button {
    padding: 10px 12px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .card-kicker {
    font-size: 10px;
  }
}
@media (max-width: 900px) {
  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }
  .progress-card {
    grid-column: 1 / -1;
    min-height: 215px;
  }
  .ring-wrap {
    width: 170px;
  }
  .metric {
    min-height: 210px;
  }
  .middle-grid {
    grid-template-columns: 1fr;
  }
  .page-heading {
    flex-direction: column;
  }
  .actions {
    width: 100%;
  }
  .topbar {
    padding: 0 5%;
    height: 78px;
  }
  .logo-box img {
    width: 150px;
  }
  .logo-box {
    height: 46px;
  }
  .brand {
    gap: 16px;
  }
  main {
    padding-top: 28px;
  }
  .ring-center strong {
    font-size: 36px;
  }
  .hero-number {
    font-size: 70px;
  }
  .card-kicker {
    font-size: 11px;
  }
  .metric .card-kicker {
    font-size: 11px;
  }
  .local-label {
    display: none;
  }
  .source-label {
    max-width: 42%;
  }
}
@media (max-width: 600px) {
  :root {
    --radius: 17px;
  }
  main {
    padding: 26px 18px 0;
  }
  .topbar {
    padding: 0 18px;
  }
  .brand-sub {
    display: none;
  }
  .brand strong {
    font-size: 18px;
  }
  .brand-divider {
    display: none;
  }
  .brand {
    gap: 16px;
  }
  .logo-box {
    padding: 10px;
  }
  .logo-box img {
    width: 125px;
  }
  .topright {
    gap: 0;
  }
  h1 {
    font-size: 32px;
  }
  .page-heading {
    gap: 22px;
  }
  .lead {
    font-size: 14px;
  }
  .actions {
    gap: 7px;
  }
  .actions .button {
    flex: 1;
    font-size: 12px;
    padding: 11px 8px;
  }
  .navline {
    align-items: flex-end;
  }
  .nav-tab {
    font-size: 13px;
  }
  nav {
    gap: 20px;
  }
  .source-label {
    display: none;
  }
  .filterbar {
    gap: 12px;
  }
  .filterbar label {
    flex: 1;
    min-width: 0;
  }
  .filterbar select {
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    font-size: 13px;
  }
  .filterbar .search-label {
    flex-basis: 100%;
  }
  .summary-grid {
    gap: 12px;
  }
  .progress-card {
    padding: 24px 20px;
    min-height: 215px;
  }
  .hero-number {
    font-size: 56px;
  }
  .hero-number .decimal {
    font-size: 38px;
  }
  .progress-card p {
    max-width: 165px;
    font-size: 11px;
  }
  .ring-wrap {
    min-width: 105px;
    width: 135px;
  }
  .ring-center strong {
    font-size: 28px;
  }
  .ring-center span {
    font-size: 10px;
  }
  .metric {
    padding: 20px 16px;
    min-height: 205px;
  }
  .metric .card-kicker {
    font-size: 9px;
    letter-spacing: 0.6px;
  }
  .metric-number {
    font-size: 38px;
  }
  .metric p {
    font-size: 11px;
  }
  .status-inline {
    font-size: 10px;
  }
  .middle-grid {
    gap: 14px;
    margin-top: 14px;
  }
  .fronts-card,
  .status-card {
    padding: 22px 20px;
  }
  .section-heading h2 {
    font-size: 17px;
  }
  .section-heading > .small {
    font-size: 10px;
  }
  .team-bar {
    grid-template-columns: 103px 1fr 44px;
    gap: 10px;
  }
  .team-percent {
    font-size: 13px;
  }
  .team-name {
    font-size: 12px;
  }
  .status-legend {
    gap: 7px;
  }
  .legend-label {
    font-size: 10px;
    gap: 4px;
  }
  .legend-value {
    font-size: 22px;
  }
  .legend-value span {
    font-size: 10px;
  }
  .goal-grid {
    grid-template-columns: 1fr;
  }
  .goal-card {
    min-height: 175px;
  }
  .goal-card h3 {
    font-size: 17px;
    margin-bottom: 20px;
  }
  .goal-bottom strong {
    font-size: 26px;
  }
  .goal-bottom span {
    font-size: 12px;
  }
  .goal-card {
    padding: 22px;
  }
  .table-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .compact-label {
    width: 100%;
  }
  .compact-label select {
    width: 100%;
    max-width: none;
  }
  .pagination {
    gap: 8px;
  }
  .pagination .button {
    font-size: 12px;
    padding: 9px 12px;
  }
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .dialog-inner {
    padding: 24px 20px;
  }
  .dialog-header h2 {
    font-size: 22px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .export-options {
    gap: 8px;
  }
  .export-options button {
    font-size: 16px;
    padding: 22px 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.sync-banner {
  padding: 14px 18px;
  background: #eef0ff;
  color: #3333bd;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
}
.sync-banner.error {
  background: #fff6de;
  color: #6a5300;
}
.progress-card > div:first-child {
  min-width: 0;
}
.dialog-inner a {
  overflow-wrap: anywhere;
}
.dialog-inner strong {
  overflow-wrap: anywhere;
}
.team-name {
  font-size: 14px;
}
.team-percent {
  font-size: 14px;
}
.filterbar label,
.compact-label {
  font-size: 14px;
}
.nav-tab {
  font-size: 14px;
}
.activity-button {
  font-size: 14px;
}
.cell-percent {
  font-size: 14px;
}
.source-label {
  flex: 1;
  max-width: 35%;
  text-align: right;
}
.status-legend:has(> div:nth-child(4)) {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 600px) {
  .hero-number {
    font-size: clamp(44px, 10vw, 56px);
  }
  .navline {
    flex-wrap: wrap;
  }
  .navline #refresh-data {
    margin-left: auto;
    font-size: 12px;
  }
  .status-legend:has(> div:nth-child(4)) {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-name {
    font-size: 13px;
  }
  .filterbar label {
    font-size: 12px;
  }
  .source-label {
    display: none;
  }
}
@media (max-width: 420px) {
  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .actions .primary {
    grid-column: 1 / -1;
  }
  .ring-wrap {
    width: 110px;
  }
  .progress-card .card-kicker {
    font-size: 10px;
  }
  .progress-card {
    gap: 4px;
  }
  .hero-number {
    letter-spacing: -2px;
  }
  .team-bar {
    grid-template-columns: 102px 1fr 48px;
    gap: 7px;
  }
}
.edit-hint {
  display: block;
  color: var(--deep);
  font-size: 12px;
  font-weight: 500;
  margin-top: 7px;
}
.evidence-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.evidence-link {
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: 7px;
  background: var(--lightblue);
  padding: 7px 10px;
  white-space: nowrap;
}
.evidence-link:hover {
  text-decoration: underline;
}
.evidence-edit {
  font-size: 12px;
  padding: 4px;
}
.team-evidence-head {
  line-height: 1.35;
}
td.team-evidence {
  min-width: 112px;
}
td.team-evidence .evidence-link {
  font-size: 12px;
  padding: 5px 8px;
}
.progress-field > label.team-evidence-field {
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.team-evidence-field input {
  display: block;
  width: 100%;
  margin-top: 5px;
  font-size: 13px;
  font-weight: 400;
}
.progress-fields {
  border: 0;
  padding: 0;
  margin: 24px 0;
}
.progress-fields legend {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 7px;
}
.progress-fields > p {
  margin-bottom: 15px;
}
.progress-field {
  background: #f7f8fc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px;
}
.progress-field > label {
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}
.progress-field select {
  font-size: 13px;
}
.percent-input {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
}
.percent-input input {
  width: 100%;
  min-width: 0;
}
.percent-input input:disabled {
  background: #e9ecf3;
  color: var(--muted);
}
.percent-input > span {
  font-size: 14px;
}
.field-hint {
  font-size: 12px !important;
  line-height: 1.6;
  color: var(--muted);
  margin: 8px 0 0 !important;
}
.audit-fields {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 4px;
}
.optional {
  font-weight: 400;
  font-size: 12px;
}
.history-shortcut {
  margin-right: auto;
}
.history-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.history-select {
  max-width: 650px;
  margin: 0 0 12px;
}
.history-select select {
  max-width: 100%;
  width: 100%;
}
.history-list {
  display: grid;
  gap: 13px;
  margin-top: 22px;
}
.history-event {
  overflow: hidden;
}
.history-event summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  list-style: none;
}
.history-event summary::-webkit-details-marker {
  display: none;
}
.history-event summary:after {
  content: "+";
  font-size: 24px;
  color: var(--blue);
  margin-left: 8px;
}
.history-event[open] summary:after {
  content: "−";
}
.history-event summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: -4px;
}
.history-event-main {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.history-kind {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.revision {
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 6px;
  color: var(--muted);
}
.history-actor {
  font-size: 13px;
  color: var(--muted);
}
.history-change-count {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.history-reason {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--muted);
}
.history-changes {
  border-top: 1px solid var(--line);
}
.history-change {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.history-change:last-child {
  border-bottom: 0;
}
.history-field strong {
  display: block;
  font-size: 14px;
  line-height: 1.5;
}
.history-field > span {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 5px;
}
.change-heading {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  font-weight: 600;
}
.history-change pre {
  font:
    13px / 1.6 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 7px 0 0;
}
.history-after {
  background: #eef2ff;
  border-radius: 8px;
  padding: 10px 12px;
}
.history-before {
  padding: 10px 0;
}
.history-after .change-heading {
  color: var(--deep);
}
#activity-form .dialog-actions {
  position: sticky;
  bottom: -30px;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 16px 0 4px;
}
#activity-form > .field:first-child {
  margin-top: 0;
}
.table-container table {
  min-width: 1110px;
}
.table-container th:first-child,
.table-container td:first-child {
  min-width: 310px;
  width: 38%;
}
.history-list[aria-busy="true"] {
  opacity: 0.65;
}
@media (max-width: 900px) {
  .topright {
    gap: 10px;
  }
  .source-label {
    display: none;
  }
  .navline {
    flex-wrap: wrap;
  }
  .history-change {
    grid-template-columns: 1fr 1fr;
  }
  .history-field {
    grid-column: 1 / -1;
  }
}
@media (max-width: 600px) {
  nav {
    gap: 17px;
  }
  .nav-tab {
    font-size: 13px;
  }
  .nav-tab .count {
    display: none;
  }
  .topbar .brand {
    gap: 10px;
  }
  .topright {
    gap: 8px;
  }
  .history-tools {
    width: 100%;
  }
  .history-tools .button {
    font-size: 12px;
    flex: 1;
  }
  .history-event summary {
    padding: 18px;
    gap: 10px;
  }
  .history-kind {
    font-size: 14px;
  }
  .history-actor {
    font-size: 12px;
  }
  .history-change {
    padding: 18px;
    gap: 12px;
  }
  .history-event summary:after {
    margin-left: 0;
  }
  .history-reason {
    padding: 0 18px 18px;
  }
  .history-shortcut {
    width: 100%;
    margin: 0;
  }
  .dialog-actions {
    flex-wrap: wrap;
  }
  #activity-form .dialog-actions {
    bottom: -24px;
    padding-bottom: 4px;
  }
  .progress-field {
    padding: 14px;
  }
  .history-select {
    max-width: 100%;
  }
}
@media (max-width: 380px) {
  .topbar .brand > strong {
    display: none;
  }
  .history-change {
    grid-template-columns: 1fr;
  }
  .history-field {
    grid-column: auto;
  }
  .history-change-count {
    display: none;
  }
}
/* Loading is tied to actual work. Reduced motion preserves every status label. */
:root {
  --motion-enter: 180ms;
  --motion-exit: 110ms;
  --motion-ease: cubic-bezier(0.16, 1, 0.3, 1);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skeleton-dashboard {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 18px;
  margin: 24px 0;
  min-height: 240px;
}
.skeleton-list {
  display: grid;
  gap: 14px;
}
.skeleton-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  min-height: 120px;
  overflow: hidden;
  position: relative;
}
.skeleton-card i {
  display: block;
  border-radius: 6px;
  background: #e9ecf5;
  height: 16px;
  margin: 10px 0;
  width: 75%;
}
.skeleton-card i:first-child {
  width: 44%;
}
.skeleton-card i:nth-child(2) {
  height: 36px;
  width: 62%;
}
.skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent, #fff9, transparent);
  transform: translateX(-100%);
  animation: skeleton-sweep 1.5s linear 3;
}
@keyframes skeleton-sweep {
  to {
    transform: translateX(100%);
  }
}
.booting #overview-view,
.booting #activities-view,
.booting #history-view,
.data-unavailable #overview-view,
.data-unavailable #activities-view,
.data-unavailable #history-view {
  display: none !important;
}
.booting .filterbar,
.data-unavailable .filterbar {
  visibility: hidden;
}
.operation-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #edf0ff;
  color: var(--deep);
  font-size: 13px;
  margin: 12px 0;
}
.operation-track {
  width: 100px;
  height: 3px;
  background: #cdd5ff;
  overflow: hidden;
  border-radius: 3px;
}
.operation-track i {
  display: block;
  width: 40%;
  height: 100%;
  background: var(--blue);
  animation: work-progress 1s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes work-progress {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(350%);
  }
}
[aria-busy="true"] {
  cursor: progress;
}
.goals-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 300px;
}
html[data-input="keyboard"] *,
html[data-input="keyboard"] *::before,
html[data-input="keyboard"] *::after {
  animation: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .goal-card:hover,
  button:active:not(:disabled) {
    transform: none;
  }
  .operation-track i {
    width: 100%;
  }
}
@media (max-width: 600px) {
  .skeleton-dashboard {
    grid-template-columns: 1fr;
  }
  .operation-status {
    align-items: flex-start;
  }
  .topright {
    gap: 8px;
  }
  .brand {
    gap: 8px;
  }
  .brand-divider {
    display: none;
  }
  .logo-box {
    padding: 8px;
  }
  .logo-box img {
    width: 120px;
  }
}
/* Goal scoring */
.score-summary {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: 24px;
  padding: 26px 28px;
  margin-bottom: 18px;
}
.score-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  align-content: center;
}
.score-breakdown div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--lightblue);
  font-variant-numeric: tabular-nums;
}
.score-breakdown strong {
  font-size: 22px;
  font-weight: 600;
}
.score-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.score-goals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}
.score-goal {
  padding: 22px;
}
.score-goal-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.score-goal-heading h3 {
  margin: 10px 0 0;
  font-size: 16px;
  font-weight: 550;
  line-height: 1.4;
}
.score-goal-points {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.score-goal-points strong {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1;
}
.score-steps {
  display: flex;
  gap: 6px;
  margin: 16px 0 6px;
}
.score-steps i {
  flex: 1;
  height: 6px;
  border-radius: 6px;
  background: currentColor;
  opacity: 0.14;
}
.score-steps i.on {
  background: var(--blue);
  opacity: 1;
}
.score-levels,
.score-rules,
.score-gaps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.score-level {
  border-top: 1px solid var(--line);
}
.score-level summary {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  cursor: pointer;
}
.score-level-number {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.score-level.reached .score-level-number {
  color: var(--blue);
}
.score-level-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.score-level-progress b {
  min-width: 4ch;
  text-align: right;
  font-weight: 600;
}
.score-level-progress i {
  position: relative;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  overflow: hidden;
}
.score-level-progress i::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0.14;
}
.score-level-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--blue);
  border-radius: 4px;
}
.score-level.next .pill {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #202535;
}
.score-level.reached .pill {
  background: var(--lightblue);
  border-color: var(--lightblue);
}
.score-rules {
  padding: 0 0 14px;
  display: grid;
  gap: 10px;
}
.score-rule {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  font-size: 14px;
}
.score-mark {
  color: var(--muted);
}
.score-rule.met .score-mark {
  color: var(--blue);
  font-weight: 700;
}
.score-gaps {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  display: grid;
  gap: 2px;
}
.score-confirm {
  display: block;
  margin-top: 8px;
}
@media (max-width: 900px) {
  .score-summary,
  .score-goals {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .score-summary {
    padding: 20px;
  }
  .score-goal-heading {
    flex-direction: column;
  }
  .score-goal-points {
    align-items: flex-start;
  }
  .score-level summary {
    grid-template-columns: auto 1fr;
  }
  .score-level-progress,
  .score-level summary .pill {
    grid-column: 2;
    justify-self: start;
  }
}
