:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7fb;
  color: #18202f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  border-radius: 6px;
  background: #3345d8;
  color: #fff;
  cursor: pointer;
  padding: 8px 12px;
}

button.secondary {
  background: #e7eaf5;
  color: #26304d;
}

button.danger {
  background: #f5d6dc;
  color: #9f1d35;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

input,
select {
  border: 1px solid #d7dce8;
  border-radius: 6px;
  min-height: 36px;
  padding: 7px 10px;
}

label {
  color: #6c7485;
  display: grid;
  font-size: 12px;
  gap: 4px;
}

.hidden {
  display: none !important;
}

.shell {
  min-height: 100vh;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-panel {
  background: #fff;
  border: 1px solid #e1e5ee;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgb(27 36 62 / 10%);
  display: grid;
  gap: 14px;
  max-width: 380px;
  padding: 24px;
  width: 100%;
}

.login-panel h1,
.topbar h1 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
}

.app-screen {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.topbar {
  align-items: center;
  background: #fff;
  border: 1px solid #e1e5ee;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  min-height: 64px;
  padding: 12px 16px;
}

.topbar p {
  color: #6c7485;
  font-size: 13px;
  margin: 3px 0 0;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toolbar,
.inline-form {
  align-items: end;
  background: #fff;
  border: 1px solid #e1e5ee;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
}

.status,
.muted {
  color: #6c7485;
  font-size: 13px;
}

.table-wrap {
  background: #fff;
  border: 1px solid #e1e5ee;
  border-radius: 8px;
  overflow: auto;
}

table {
  border-collapse: collapse;
  min-width: 920px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid #edf0f6;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  color: #6c7485;
  font-size: 12px;
  text-transform: uppercase;
}

.chip {
  background: #eef2ff;
  border-radius: 4px;
  color: #29499e;
  display: inline-block;
  font-size: 12px;
  padding: 3px 6px;
}

.row-actions {
  display: flex;
  gap: 6px;
}

@media (max-width: 720px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  nav,
  .toolbar,
  .inline-form {
    align-items: stretch;
    flex-direction: column;
  }
}
