:root {
  color-scheme: light;
  --ink: #202722;
  --muted: #58655e;
  --line: #d9dfd8;
  --paper: #f4f6f1;
  --card: #fff;
  --amber: #f2c45b;
  --dark: #202923;
  --green: #23583e;
  font: 15px/1.5 Inter, "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

[hidden] {
  display: none !important;
}

button, input, select {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  opacity: .48;
  cursor: default;
}

a {
  color: inherit;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #a06c10;
  outline-offset: 3px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}

h1,h2,h3,p,dl,dd {
  margin: 0;
}

h1 {
  font-size: clamp(2.15rem,3.8vw,3.3rem);
  line-height: 1.04;
  letter-spacing: -.065em;
  font-weight: 700;
}

h2 {
  font-size: 1.12rem;
  letter-spacing: -.035em;
  line-height: 1.25;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 224px minmax(0,1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  height: 100dvh;
  color: #edf1e9;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  padding: 33px 17px 25px;
}

.brand-row {
  padding: 0 7px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1.19rem;
  letter-spacing: -.045em;
  font-weight: 700;
  white-space: nowrap;
}

.mark {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 2px;
  width: 35px;
  height: 35px;
  background: var(--amber);
  border-radius: 10px;
  padding: 8px 6px;
  flex-shrink: 0;
}

.mark i {
  width: 4px;
  border-radius: 2px;
  background: var(--dark);
  transform: skewX(-11deg);
}

.mark i:nth-child(1) {
  height: 8px;
}

.mark i:nth-child(2) {
  height: 13px;
}

.mark i:nth-child(3) {
  height: 19px;
}

.nav-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}

nav {
  display: grid;
  gap: 5px;
  margin-top: 58px;
}

nav a {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: .97rem;
  color: #d3dcd3;
}

nav a:hover {
  background: #2b382e;
}

nav a[aria-current="page"] {
  background: #374638;
  color: #ffdb81;
  font-weight: 650;
}

.ico {
  display: inline-block;
  position: relative;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.grid::after {
  position: absolute;
  content: "";
  left: 1px;
  top: 1px;
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 9px 0,0 9px,9px 9px;
}

.lines {
  border: 1.6px solid;
  border-radius: 2px;
  height: 15px;
}

.lines::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 4px;
  width: 8px;
  height: 1.5px;
  background: currentColor;
  box-shadow: 0 4px;
}

.link::before,.link::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 5px;
  border: 1.6px solid;
  border-radius: 8px;
  transform: rotate(-38deg);
}

.link::before {
  top: 2px;
  left: 5px;
}

.link::after {
  top: 8px;
  left: 0;
}

.clock {
  border: 1.6px solid;
  border-radius: 50%;
}

.clock::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 5px;
  left: 6px;
  top: 3px;
  border-left: 1.5px solid;
  border-bottom: 1.5px solid;
}

.lock::before {
  content: "";
  position: absolute;
  top: 0;
  left: 4px;
  width: 7px;
  height: 8px;
  border: 1.6px solid;
  border-radius: 7px;
}

.lock::after {
  content: "";
  position: absolute;
  left: 1px;
  top: 7px;
  width: 13px;
  height: 8px;
  border: 1.6px solid;
  border-radius: 3px;
  background: var(--dark);
}

.identity {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding: 19px 7px 0;
  border-top: 1px solid #445046;
  font-size: .84rem;
}

.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #536454;
  border-radius: 50%;
  background: #364539;
  font-weight: 650;
}

.identity b,.plain {
  display: block;
}

.plain {
  background: none;
  color: #cdd7ce;
  padding: 0;
  border: 0;
  font-size: .82rem;
}

.plain:hover {
  text-decoration: underline;
}

.mobile-menu {
  display: none;
}

.workspace {
  min-width: 0;
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: clamp(32px,5vw,76px) clamp(20px,4.4vw,74px);
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.sub,.hint,.card-body>p {
  color: var(--muted);
}

.sub {
  margin-top: 10px;
  font-size: .98rem;
}

.date {
  color: #516456;
  font-size: .81rem;
  font-weight: 650;
  margin-bottom: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 7px;
  padding: 10px 15px;
  border: 1px solid transparent;
  line-height: 1.3;
  font-weight: 650;
  font-size: .91rem;
  white-space: nowrap;
  min-height: 41px;
}

.primary {
  background: var(--amber);
  color: #292819;
  border-color: #d3a842;
}

.primary:hover:not(:disabled) {
  background: #f8cd70;
}

.secondary {
  background: var(--card);
  color: var(--ink);
  border-color: #c8d1c7;
}

.secondary:hover:not(:disabled) {
  background: #f1f4ef;
}

.text-btn {
  background: transparent;
  color: #46594a;
}

.text-btn:hover {
  text-decoration: underline;
}

.small {
  padding: 6px 11px;
  min-height: 32px;
  font-size: .82rem;
}

.full {
  width: 100%;
}

.actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.wrap {
  flex-wrap: wrap;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 14px;
  margin-bottom: 23px;
}

.metric {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 22px 23px;
  display: flex;
  gap: 20px;
  flex-direction: column;
}

.metric h2 {
  font-size: .93rem;
  letter-spacing: -.01em;
  font-weight: 580;
  color: var(--muted);
  border: 0;
}

.metric strong {
  font-size: 2.55rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.07em;
  font-variant-numeric: tabular-nums;
}

.main-metric {
  background: #e7eccf;
  border-color: #cdd6ad;
}

.main-metric h2 {
  color: #495733;
}

.metric-mark {
  display: grid;
  place-items: center;
  position: absolute;
  bottom: 23px;
  right: 20px;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 15px;
}

.yes {
  color: var(--green);
  background: #e5f1e6;
}

.empty-mark {
  background: #f0f1eb;
  color: #687467;
}

.bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
}

.bars i {
  width: 4px;
  background: #6e8045;
  border-radius: 2px;
}

.bars i:nth-child(1) {
  height: 8px;
}

.bars i:nth-child(2) {
  height: 13px;
}

.bars i:nth-child(3) {
  height: 19px;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0,1.8fr) minmax(215px,.9fr);
  gap: 16px;
  align-items: start;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 13px;
  min-width: 0;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.text-link {
  color: #365641;
  font-size: .81rem;
  text-decoration: none;
  font-weight: 650;
  white-space: nowrap;
}

.text-link:hover {
  text-decoration: underline;
}

.facts {
  padding: 5px 22px;
}

.facts div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #e7ebe5;
  font-size: .85rem;
}

.facts div:last-child {
  border: 0;
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  font-weight: 600;
  overflow-wrap: anywhere;
  text-align: right;
}

.empty {
  padding: 48px 18px;
  text-align: center;
  color: var(--muted);
}

.empty b {
  color: var(--ink);
  font-size: 1rem;
  display: block;
  margin-bottom: 4px;
}

.empty span {
  font-size: .87rem;
}

.empty .folder {
  display: block;
  width: 32px;
  height: 22px;
  margin: 0 auto 17px;
  border: 2px solid #88947b;
  border-radius: 4px;
  background: #f1f3e8;
  position: relative;
}

.folder::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -2px;
  height: 5px;
  width: 14px;
  border: 2px solid #88947b;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}

.filters {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
}

.filters label {
  flex: 1 1 125px;
}

.filters label:last-child {
  flex-grow: 1.6;
}

label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-weight: 600;
  font-size: .86rem;
  color: #35433a;
}

input:not([type=checkbox]),select {
  width: 100%;
  min-width: 0;
  border-radius: 6px;
  border: 1px solid #bac6bb;
  padding: 10px 11px;
  color: var(--ink);
  background: #fff;
  font-weight: 400;
  font-size: .95rem;
}

input::placeholder {
  color: #69756d;
}

.check {
  display: flex;
  align-items: center;
  flex-direction: row;
  font-weight: 450;
  gap: 9px;
}

.check input {
  width: 16px;
  height: 16px;
  accent-color: #506d47;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.records-table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  font-size: .88rem;
}

.records-table th,.records-table td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid #e7ebe5;
}

.records-table th {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  background: #f8faf6;
}

.records-table tbody tr:last-child td {
  border-bottom: 0;
}

.number,code {
  font-family: "IBM Plex Mono",ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size: .87em;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  line-height: 1.3;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 20px;
  background: #edf0eb;
  color: #556158;
  white-space: nowrap;
}

.chip.good {
  background: #e4f1e5;
  color: #295a3b;
}

.chip.good::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background: #408159;
}

.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 13px 18px;
  font-size: .84rem;
  color: var(--muted);
}

.settings-card {
  max-width: 780px;
  margin-bottom: 18px;
}

.card-body {
  padding: 21px 23px;
}

.card-body>p {
  font-size: .94rem;
}

.endpoints {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  background: #f3f6ef;
  border: 1px solid #e1e7db;
  border-radius: 7px;
  margin: 14px 0;
}

.endpoints code {
  color: #35523e;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 15px;
}

.stack {
  display: grid;
  gap: 14px;
}

.hint {
  font-size: .81rem;
  line-height: 1.5;
}

.rule {
  border-top: 1px solid var(--line);
  margin: 3px 0;
}

.key-box {
  border-radius: 8px;
  border: 1px solid #cedbbd;
  background: #f4f7ed;
  margin-top: 18px;
  padding: 14px;
}

.key-box .actions {
  margin-top: 10px;
}

.event-list {
  padding: 0 22px;
  margin: 0;
  list-style: none;
}

.event-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.event-list li:last-child {
  border-bottom: 0;
}

.event-list time {
  font-size: .81rem;
  color: var(--muted);
  text-align: right;
  flex-shrink: 0;
}

.event-list span {
  font-weight: 500;
  font-size: .93rem;
}

.notice,.feedback {
  border: 1px solid #ccdac3;
  background: #eaf3e4;
  color: #234b31;
  padding: 11px 14px;
  border-radius: 7px;
  font-size: .91rem;
}

.notice {
  margin-bottom: 18px;
}

.notice.bad,.feedback.bad {
  border-color: #e6c4b6;
  background: #fcf0e9;
  color: #763721;
}

dialog {
  width: min(460px,calc(100% - 30px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 23px;
  color: var(--ink);
  box-shadow: 0 10px 80px #101e172a;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.close {
  background: transparent;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
}

.dialog-head h2 {
  font-size: 1.35rem;
}

.stack>p {
  color: var(--muted);
  font-size: .9rem;
}

.stack>.feedback {
  color: #234b31;
}

.stack>.feedback.bad {
  color: #763721;
}

dialog::backdrop {
  background: #17251dd0;
}

input[type=file] {
  font-size: .86rem;
}

.login-layout {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 18px;
  background: #e9ede5;
}

.login-card {
  width: min(100%,410px);
  background: #fff;
  border: 1px solid #cdd7cc;
  border-radius: 17px;
  padding: 33px;
  border-top: 5px solid var(--amber);
}

.login-card .wordmark {
  margin-bottom: 36px;
}

.login-card h1 {
  font-size: 2.25rem;
}

.login-card form {
  margin-top: 26px;
}

.form-error {
  color: #903816;
  font-size: .87rem;
  margin: 11px 0;
}

.login-card .btn {
  margin-top: 5px;
}

@media(max-width:1110px) {
  .shell {
    grid-template-columns: 190px minmax(0,1fr);
  }
  .workspace {
    padding-left: 28px;
    padding-right: 28px;
  }
  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .overview-grid {
    grid-template-columns: minmax(0,1.5fr) minmax(205px,.85fr);
  }
  .card-head {
    padding: 16px;
  }
  .records-table th,.records-table td {
    padding: 12px 13px;
  }
  .facts {
    padding: 4px 15px;
  }
  .metric {
    padding: 18px;
  }
}

@media(max-width:880px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .overview-grid .facts {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
  }
  .overview-grid .facts div {
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    border: 0;
  }
  .overview-grid .facts dd {
    text-align: left;
  }
  .page-head {
    align-items: flex-start;
  }
  .metric h2 {
    font-size: .84rem;
  }
}

@media(max-width:720px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 13px 17px;
    width: 100%;
  }
  .brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
  }
  .mark {
    width: 31px;
    height: 31px;
    padding: 6px;
  }
  .mobile-menu {
    display: block;
    border: 1px solid #627365;
    background: transparent;
    color: #edf3eb;
    border-radius: 6px;
    padding: 5px 11px;
    font-size: .86rem;
  }
  .nav-wrap {
    display: none;
  }
  .sidebar.open .nav-wrap {
    display: flex;
  }
  .sidebar nav {
    margin: 15px 0 9px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .sidebar nav a {
    padding: 8px 9px;
    gap: 8px;
  }
  .identity {
    padding: 10px 0 0;
    gap: 8px;
  }
  .identity>div {
    display: flex;
    gap: 14px;
    align-items: center;
  }
  .avatar {
    width: 27px;
    height: 27px;
  }
  .workspace {
    padding: 27px 16px 40px;
  }
  .page-head {
    margin-bottom: 20px;
  }
  .metrics {
    gap: 8px;
    margin-bottom: 13px;
  }
  .metric {
    padding: 12px 10px;
    gap: 11px;
    border-radius: 9px;
  }
  .metric strong {
    font-size: 1.9rem;
  }
  .metric-mark {
    display: none;
  }
  .metric h2 {
    font-size: .74rem;
    line-height: 1.3;
  }
  .overview-grid {
    gap: 13px;
  }
  .filters {
    padding: 13px;
    gap: 9px;
  }
  .filters label {
    flex: 1 1 110px;
  }
  .filters label:last-child {
    flex: 1 1 110px;
  }
  .event-list {
    padding: 0 13px;
  }
  .event-list li {
    flex-wrap: wrap;
    gap: 3px 10px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .card-body {
    padding: 16px;
  }
  .date {
    font-size: .75rem;
  }
  .table-footer {
    padding: 11px;
  }
  .btn {
    padding: 9px 12px;
  }
  .overview-grid .facts {
    gap: 13px;
  }
  .facts div {
    font-size: .77rem;
  }
}

@media(max-width:520px) {
  .page-head {
    flex-wrap: wrap;
    gap: 14px;
  }
  .actions {
    flex-wrap: wrap;
  }
  .sub {
    font-size: .89rem;
  }
  .records-table th,.records-table td {
    padding: 11px 10px;
    font-size: .8rem;
  }
  .records-table th {
    font-size: .71rem;
  }
  .records-table .chip {
    font-size: .69rem;
  }
  .record-card .records-table td:nth-child(4) {
    white-space: normal;
    min-width: 100px;
  }
  .filters label:last-child {
    flex-basis: 100%;
  }
  .card-head h2 {
    font-size: 1.01rem;
  }
  .event-list time {
    font-size: .74rem;
  }
  .login-card {
    padding: 24px;
  }
  .overview-grid .facts {
    gap: 8px;
  }
  .btn.small {
    min-height: 33px;
  }
}

.button-link {
  text-decoration: none;
}
.worker-icon::before, .worker-icon::after {
  content: "";
  position: absolute;
  top: 2px;
  height: 12px;
  border-left: 3px solid currentColor;
  border-radius: 2px;
}
.worker-icon::before { left: 3px; }
.worker-icon::after { right: 3px; }
.worker-controls {
  display: grid;
  gap: 16px;
  padding: 22px;
  margin-bottom: 16px;
  border-top: 3px solid #c0a04c;
}
.worker-banner, .control-row, .work-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.worker-banner h2 { margin-bottom: 5px; }
.control-row {
  justify-content: flex-start;
  align-items: flex-end;
  flex-wrap: wrap;
}
.control-row label { min-width: 145px; }
.worker-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.worker-metrics .metric { gap: 12px; }
.worker-metrics small, .work-list small {
  display: block;
  font-size: .8rem;
  line-height: 1.4;
  color: var(--muted);
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}
.work-list {
  list-style: none;
  padding: 0 20px;
  margin: 0;
}
.work-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.work-list li:last-child { border-bottom: 0; }
.work-list strong { font-size: .9rem; }
.work-list small { margin-top: 3px; }
.work-list div { min-width: 0; overflow-wrap: anywhere; }
.error-chip { background: #f7e7df; color: #793d25; }
.compact-select select { padding: 6px 9px; font-size: .83rem; }
@media (max-width: 900px) {
  .worker-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .worker-controls { padding: 16px; }
  .worker-metrics { gap: 8px; }
  .worker-metrics small { font-size: .73rem; }
  .worker-banner { align-items: flex-start; }
  .work-list { padding: 0 14px; }
}
