:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  background: #f6f7f3;
  color: #17201a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: 6px;
  background: #176a4a;
  color: #fff;
  cursor: pointer;
  padding: 10px 14px;
}

button:hover {
  background: #0f5138;
}

input,
select,
textarea {
  border: 1px solid #c7d0c5;
  border-radius: 6px;
  padding: 10px;
  width: 100%;
}

a {
  color: #176a4a;
  font-weight: 700;
}

.shell {
  margin: 0 auto;
  max-width: 1120px;
  padding: 24px;
}

.toast {
  border-radius: 6px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 16%);
  color: #fff;
  font-weight: 700;
  max-width: 520px;
  padding: 14px 16px;
  position: fixed;
  right: 24px;
  top: 24px;
  z-index: 10;
}

.toast.success {
  background: #176a4a;
}

.toast.error {
  background: #a72f25;
}

.narrow {
  max-width: 760px;
}

.topbar {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: 32px;
  margin-bottom: 4px;
}

h2 {
  font-size: 18px;
}

.band,
.panel {
  background: #fff;
  border: 1px solid #dde4da;
  border-radius: 8px;
  margin-bottom: 18px;
  padding: 18px;
}

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

.grid-form {
  display: grid;
  gap: 14px;
}

.list,
.messages {
  display: grid;
  gap: 10px;
}

.item,
.attendance-row {
  background: #f9faf7;
  border: 1px solid #e2e8de;
  border-radius: 6px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.attendance-row {
  align-items: center;
  grid-template-columns: 1fr 150px 180px;
}

small {
  color: #647067;
  display: block;
  font-size: 12px;
  margin-top: 4px;
}

.muted,
.status {
  color: #647067;
}

.leave-note {
  color: #8f3d17;
  font-weight: 700;
}

.leave-item {
  border-color: #e6b79f;
  background: #fff7f2;
}

.actions {
  display: flex;
  gap: 12px;
}

@media (max-width: 720px) {
  .columns,
  .attendance-row {
    grid-template-columns: 1fr;
  }

  .topbar,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }
}
