:root {
  --ink: #09263d;
  --blue: #0b4d88;
  --gold: #c9952f;
  --line: #dbe5ec;
  --muted: #607484;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f4f7fa;
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
[hidden] {
  display: none !important;
}
header {
  height: 92px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 max(24px, calc((100% - 1160px) / 2));
  border-bottom: 1px solid var(--line);
  background: white;
}
header img {
  width: 155px;
}
header > span {
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--muted);
}
header button {
  margin-left: auto;
}
main {
  width: min(1160px, calc(100% - 48px));
  margin: 48px auto;
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  font-family: Georgia, serif;
  font-size: 44px;
  line-height: 1.1;
  font-weight: 500;
  margin-bottom: 15px;
}
h2 {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 600;
}
.eyebrow {
  display: block;
  color: var(--blue);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .12em;
  margin-bottom: 14px;
}
p {
  color: var(--muted);
}
button,
input {
  font: inherit;
}
button {
  border: 0;
  border-radius: 9px;
  background: var(--blue);
  color: white;
  padding: 12px 19px;
  cursor: pointer;
  font-weight: 650;
  transition: transform .2s, opacity .2s;
}
button:hover {
  transform: translateY(-2px);
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button.secondary,
header button {
  background: #e6eef5;
  color: var(--blue);
}
input {
  width: 100%;
  padding: 13px;
  border: 1px solid #c7d5df;
  border-radius: 7px;
  background: white;
  color: var(--ink);
}
input:focus-visible,
button:focus-visible {
  outline: 3px solid #c9952f;
  outline-offset: 3px;
}
.login {
  max-width: 480px;
  margin: 64px auto;
  background: white;
  border: 1px solid var(--line);
  padding: 38px;
  border-radius: 16px;
}
.login label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}
.login form button {
  width: 100%;
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
}
.login > p {
  font-size: 14px;
}
.login #login-error {
  margin: 14px 0 0;
  color: #a32c2c;
}
.login #login-error.local-access {
  color: var(--blue);
}
.local-access a {
  color: var(--blue);
  font-weight: 700;
}
.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.page-title p {
  margin: 0;
}
#sync-status {
  font-size: 12px;
  margin: 20px 0;
}
.overview {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 22px;
  margin-bottom: 30px;
}
.occupation,
.metrics,
.roster {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.occupation {
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.donut {
  --pct: 0;
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  border-radius: 50%;
  background: conic-gradient(var(--blue) calc(var(--pct) * 1%), #e6edf2 0);
  position: relative;
}
.donut:before {
  content: "";
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  background: white;
}
.donut > div {
  position: relative;
  text-align: center;
}
.donut strong {
  display: block;
  font-size: 38px;
  letter-spacing: -.04em;
}
.donut span {
  font-size: 12px;
  color: var(--muted);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 11px;
  color: var(--muted);
}
.legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}
.legend span + span i {
  background: #e6edf2;
}
.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 28px;
  gap: 22px;
}
.metrics div + div {
  border-left: 1px solid var(--line);
  padding-left: 22px;
}
.metrics span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.metrics strong {
  display: block;
  font-size: 50px;
  line-height: 1.3;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.cadence {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 30px;
}
.cadence-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.cadence-heading h2 {
  margin: 0 0 5px;
}
.cadence-heading p {
  margin: 0;
  font-size: 13px;
}
.secondary-link {
  flex-shrink: 0;
  color: var(--blue);
  background: #e6eef5;
  border-radius: 9px;
  padding: 11px 15px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition: transform .2s, background .2s;
}
.secondary-link:hover {
  transform: translateY(-2px);
  background: #d9e7f2;
}
.cadence-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding-top: 22px;
}
.cadence-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfd;
}
.cadence-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 13px;
}
.cadence-label {
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.cadence-timing {
  color: var(--muted);
  font-size: 11px;
}
.cadence-item h3 {
  margin: 0 0 9px;
  font-size: 15px;
  line-height: 1.25;
}
.cadence-message {
  flex: 1;
  margin: 0;
  color: #4f6575;
  font-size: 12px;
  line-height: 1.55;
}
.cadence-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 17px;
}
.cadence-actions button,
.cadence-actions a {
  width: 100%;
  padding: 9px 10px;
  border-radius: 7px;
  text-align: center;
  font-size: 11px;
  line-height: 1.2;
}
.cadence-copy {
  background: #e6eef5;
  color: var(--blue);
}
.cadence-send {
  background: var(--blue);
  color: white;
  text-decoration: none;
  font-weight: 700;
  transition: transform .2s, opacity .2s;
}
.cadence-send:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}
.cadence-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.roster {
  overflow: hidden;
}
.roster-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding: 25px;
}
.roster-heading h2 {
  margin-bottom: 4px;
}
.roster-heading p {
  font-size: 12px;
  margin: 0;
}
.search {
  width: min(360px, 100%);
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 13px;
}
th {
  background: #f7f9fb;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}
th,
td {
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
td:first-child {
  font-weight: 650;
  min-width: 170px;
}
td:nth-child(4),
td:nth-child(5) {
  white-space: nowrap;
}
.phone-link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.phone-link:hover {
  color: #083961;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#empty {
  padding: 30px;
  text-align: center;
  font-size: 14px;
}
.note {
  font-size: 12px;
  margin-top: 20px;
  max-width: 760px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
#dashboard {
  animation: enter .35s ease both;
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 800px) {
  .overview {
    grid-template-columns: 1fr;
  }
  .occupation {
    justify-content: center;
  }
  .metrics {
    padding: 22px;
  }
  .metrics strong {
    font-size: 38px;
  }
  .page-title h1 {
    font-size: 34px;
  }
  .roster-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .search {
    width: 100%;
  }
  .cadence-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  header {
    height: 76px;
    padding: 0 20px;
    gap: 12px;
  }
  header img {
    width: 125px;
  }
  header > span {
    font-size: 8px;
  }
  main {
    width: calc(100% - 32px);
    margin: 30px auto;
  }
  .login {
    margin: 20px 0;
    padding: 25px;
  }
  .login h1 {
    font-size: 37px;
  }
  .page-title {
    align-items: flex-start;
    flex-direction: column;
  }
  .occupation {
    padding: 23px;
    gap: 18px;
  }
  .donut {
    width: 125px;
    height: 125px;
  }
  .donut:before {
    inset: 11px;
  }
  .donut strong {
    font-size: 30px;
  }
  .occupation-copy h2 {
    font-size: 19px;
  }
  .occupation-copy .eyebrow {
    font-size: 8px;
  }
  .legend {
    font-size: 9px;
    gap: 5px;
  }
  .metrics {
    gap: 15px;
  }
  .metrics div + div {
    padding-left: 15px;
  }
  .cadence {
    padding: 21px;
  }
  .cadence-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }
  .secondary-link {
    text-align: center;
  }
  .cadence-list {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
