:root {
  color-scheme: light;
  font-family: Inter, Arial, sans-serif;
  background: #f4f6f8;
  color: #17202a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  background: #1f6f5b;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

button.secondary {
  background: #263644;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  background: #ffffff;
  border-bottom: 1px solid #d9e1e8;
}

.topbar-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 12px;
}

.token-form {
  display: flex;
  align-items: end;
  gap: 8px;
}

.token-form label {
  width: min(260px, 42vw);
  margin-bottom: 0;
}

.eyebrow {
  margin: 0 0 4px;
  color: #b34d2f;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 18px;
}

.shell {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.dashboard article,
.panel {
  background: #ffffff;
  border: 1px solid #d9e1e8;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(30, 42, 54, 0.06);
}

.dashboard article {
  min-height: 104px;
  padding: 18px;
}

.dashboard span,
.panel-head span,
.meta {
  color: #627180;
  font-size: 13px;
}

.dashboard strong {
  display: block;
  margin-top: 10px;
  font-size: 25px;
}

.workspace,
.lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.panel {
  padding: 18px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: #2a3642;
  font-size: 13px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #c9d3dc;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: #17202a;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 12px;
}

.list {
  display: grid;
  gap: 10px;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px;
  border: 1px solid #e1e7ed;
  border-radius: 8px;
  background: #fbfcfd;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.row strong {
  display: block;
  margin-bottom: 3px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  background: #e7efe9;
  color: #1f6f5b;
  font-size: 12px;
  font-weight: 800;
}

#toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: min(420px, calc(100vw - 40px));
  padding: 14px 16px;
  border-radius: 8px;
  background: #263644;
  color: #fff;
  box-shadow: 0 12px 36px rgba(23, 32, 42, 0.25);
  opacity: 0;
  transform: translateY(10px);
  transition: 160ms ease;
}

#toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.tablet-shell {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 28px;
}

.service-summary {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #d9e1e8;
  border-radius: 8px;
  background: #fbfcfd;
}

.checks label {
  grid-template-columns: auto 1fr;
  align-items: center;
  font-weight: 600;
}

.checks input {
  width: 20px;
  min-height: 20px;
}

@media (max-width: 860px) {
  .topbar,
  .topbar-actions,
  .token-form,
  .workspace,
  .lists,
  .dashboard,
  .split {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
  }
}
