.workspace,
.view-check {
  --green: #2f50cd;
  --jungle: #1c305f;
  --pale: #e9edff;
  --sub: #526077;
  --line: #d6deeb;
  --paper: #fff;
  --mono: "SFMono-Regular", Consolas, monospace;
  background: #f5f7fc;
  color: var(--ink);
}
.workspace .top-inner {
  width: auto;
  margin: 0;
  padding: 0 30px;
  gap: 18px;
}
.mast-divider {
  height: 24px;
  border-left: 1px solid var(--border);
}
.workspace-name {
  color: #354864;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.account {
  margin: 0;
}
.account small {
  color: #4d5c74;
}
.work-grid {
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
  min-height: calc(100vh - 73px);
}
.work-rail {
  border-right: 1px solid #d8dfec;
  background: #fbfcff;
  display: flex;
  flex-direction: column;
  padding: 27px 13px;
  gap: 9px;
}
.rail-title {
  margin: 0 0 4px 12px;
  color: #53637d;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
}
.rail-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: auto;
  gap: 3px;
}
.rail-nav a,
.rail-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  height: auto;
  min-height: 46px;
  padding: 8px 13px;
  color: #44536b;
  text-decoration: none;
  font-size: 14px;
  border: 0;
  border-radius: 9px;
  font-weight: 530;
}
.rail-nav a.active,
.rail-nav a[aria-current="page"] {
  background: #e4e9ff;
  color: #273fa6;
  font-weight: 650;
}
.rail-nav a:hover,
.rail-bottom:hover {
  background: #eef1fa;
}
.rail-nav .icon,
.rail-bottom .icon {
  font-size: 21px;
}
.rail-bottom {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  border-radius: 0;
  padding-top: 18px;
}
.work-main {
  width: 100%;
  max-width: 1510px;
  margin: 0 auto;
  padding: 35px clamp(18px, 3vw, 48px) 60px;
  min-width: 0;
}
.work-main .heading h1,
.view-check .heading h1 {
  font-size: clamp(27px, 3vw, 39px);
  letter-spacing: -0.045em;
}
.work-main .heading {
  margin-bottom: 20px;
}
.workspace .card,
.view-check .card,
.metric {
  box-shadow: 0 2px 6px #18274805;
  border-radius: 14px;
}
.workspace .auth {
  max-width: 455px;
  margin: 5vh auto;
}
.workspace button,
.view-check button,
.workspace .btn,
.view-check .btn {
  min-height: 44px;
}
.workspace .mini {
  min-height: 38px;
}
.primary,
.btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.primary:hover:not(:disabled),
.btn.primary:hover {
  background: #243eac;
}
.workspace a,
.view-check a {
  color: var(--green);
}
.workspace a.wordmark,
.view-check a.wordmark {
  color: #142443;
}
.workspace .rail-nav a,
.workspace .rail-bottom,
.workspace .workspace-name {
  color: #465572;
}
.workspace .rail-nav a.active,
.workspace .rail-nav a[aria-current="page"] {
  color: #253fa4;
}
.workspace .pub-nav a,
.view-check .pub-nav a {
  color: #39475e;
}
.choice:has(:checked),
.pay-option:has(:checked) {
  background: #eff2ff;
}
.note,
.queue-filters button[aria-pressed="true"] {
  background: #ecf1fb;
  color: #334b75;
}
.tag {
  background: #e9edf6;
  color: #3b4e6e;
}
.note.bad,
.tag.bad {
  color: #892d28;
  background: #ffebe7;
}
.note.warn,
.tag.warn {
  color: #774600;
  background: #fff0d1;
}
.tag.good {
  color: #195a45;
  background: #dcf3e9;
}
.ticket {
  background: linear-gradient(140deg, #213864, #1c2d54);
  border-color: #243961;
}
.ticket .help,
.ticket small,
.ticket .kv > div > span:first-child,
.sumline.secondary {
  color: #c7d4ed;
}
.ticket code {
  color: #fff;
}
.ticket .seal {
  color: #c8ddff;
  border-color: #7b93b7;
}
.qr-checkout,
pre,
th {
  background: #f2f5fa;
}
.workspace code,
.view-check code {
  color: #334971;
}
.workspace .flow .current {
  background: #304cc1;
}
.workspace .card input[type="checkbox"],
.view-check .card input[type="checkbox"] {
  accent-color: #304cc1;
}
.subnav {
  padding: 0 0 10px;
  gap: 4px;
}
.subnav a {
  color: #455572;
  min-height: 42px;
}
.subnav a[aria-current="page"] {
  background: #dee6ff;
  color: #233da3;
}
.work-main .metrics {
  display: grid;
  gap: 12px;
}
.metric {
  min-width: 0;
  background: #fff;
  padding: 16px;
}
.metric b {
  font-size: 29px;
  color: #243956;
  font-variant-numeric: tabular-nums;
}
.metric small {
  color: #435570;
}
.admin-priorities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}
.priority-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
}
.priority-link strong {
  font-size: 27px;
  color: #213450;
}
.priority-link small {
  font-weight: 400;
}
.priority-link:hover {
  border-color: #647dd7;
}
.view-check #monitor {
  max-width: 1050px;
  padding-top: 38px;
}
.view-check .card h2,
.workspace .card h2 {
  font-size: 21px;
}
.view-check .card h3 {
  font-size: 17px;
}
.view-check #entry {
  border-top: 3px solid #3b58c9;
}
.view-check #monitor .actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.view-check .heading .intro {
  margin-top: 8px;
}
.view-check #monitor .card p {
  margin: 0.55rem 0;
}
.view-check .field small {
  display: block;
  margin-top: 6px;
}
.view-check .site-footer .wordmark,
.view-check .head-console {
  color: #233c9e;
}
#main-content {
  height: 0;
}
#main-content:focus-visible {
  outline: 0;
}
.menu-button .icon {
  pointer-events: none;
}
@media (max-width: 1060px) {
  .work-grid {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .work-rail {
    padding-left: 8px;
    padding-right: 8px;
  }
  .workspace .layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(210px, 0.75fr);
  }
  .work-main {
    padding: 28px 18px 48px;
  }
  .workspace .billing-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 840px) {
  .work-grid {
    display: block;
    min-height: 75vh;
  }
  .work-rail {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 7;
    padding: 13px 18px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 16px #243c5614;
  }
  .menu-open .work-rail {
    display: flex;
  }
  .workspace .top-inner {
    padding: 0 18px;
    gap: 10px;
  }
  .workspace .account small,
  .workspace .account .tag {
    display: none;
  }
  .work-rail .rail-bottom {
    margin-top: 4px;
  }
  .workspace .account .quiet {
    min-height: 44px;
  }
}
@media (max-width: 680px) {
  .workspace .layout,
  .admin-priorities {
    grid-template-columns: minmax(0, 1fr);
  }
  .admin-priorities {
    gap: 7px;
  }
  .priority-link {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 10px 13px;
    align-items: center;
  }
  .priority-link small {
    grid-column: 1;
  }
  .priority-link strong {
    grid-column: 2;
    grid-row: 1/3;
  }
  .work-main {
    padding: 24px 14px 48px;
  }
  .work-main .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workspace .top-inner {
    gap: 7px;
    padding: 0 12px;
  }
  .workspace-name,
  .mast-divider {
    display: none;
  }
  .workspace .account .btn {
    min-height: 42px;
  }
  .view-check #monitor {
    padding-top: 24px;
  }
  .work-main .subnav {
    gap: 1px;
  }
  .work-main .subnav a {
    padding: 7px 10px;
  }
  .workspace .sett-data,
  .workspace .scroll {
    max-width: 100%;
  }
}
