body {
  color: #183c33;
  background: #f2f5f2;
  font-size: 16px;
}
button, input, select, textarea, summary {
  min-height: 48px;
  font-size: 16px;
}
button, summary {
  touch-action: manipulation;
}
summary {
  cursor: pointer;
  padding: 12px 0;
}
.text-button {
  font-size: 15px;
  padding: 10px;
}
.leader-layout {
  width: min(900px, 100%);
  margin: auto;
  padding: 0 24px 100px;
}
.leader-header, .screen-title, .day-controls, .roster-tools, .recorded-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.leader-header {
  padding: 24px 0 12px;
}
.leader-header h1 {
  font-size: 30px;
  margin-top: 6px;
}
.leader-header > button {
  max-width: 55%;
  text-align: right;
}
.day-controls {
  color: #536c63;
  font-size: 15px;
  align-items: flex-start;
}
.day-controls > span {
  padding-top: 13px;
}
.day-controls details {
  min-width: 105px;
}
.day-controls summary {
  text-align: right;
}
.day-controls label {
  margin-bottom: 10px;
}
.line-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.line-options [aria-pressed="true"] {
  background: #174d3e;
  color: white;
}
.screen-title {
  margin: 12px 0 8px;
}
.screen-title h2 {
  font-size: 22px;
}
.save-status {
  color: #285e45;
  background: #e6f0e7;
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 14px;
}
.save-error, #login-error {
  color: #8e352d;
  background: #fbe9e5;
}
.quick-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.quick-filters button {
  background: white;
  border: 1px solid #cbd9cf;
  border-radius: 12px;
  color: #244d3e;
  padding: 12px 6px;
}
.quick-filters strong {
  display: block;
  font-size: 28px;
  margin-bottom: 4px;
}
.quick-filters span {
  font-size: 14px;
}
.quick-filters .selected {
  background: #174d3e;
  color: white;
  border-color: #174d3e;
}
.roster-tools {
  align-items: flex-start;
  margin: 2px 0;
}
.roster-tools > button[aria-pressed="true"] {
  font-weight: 700;
  text-decoration: underline;
}
.summary-detail {
  font-size: 14px;
}
.summary-detail summary {
  text-align: right;
  font-size: 14px;
}
.search {
  width: 100%;
  margin-bottom: 14px;
}
.search input {
  font-size: 16px;
  min-height: 50px;
}
.roster-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.worker-card {
  padding: 14px 16px 10px;
}
.worker-top {
  margin-bottom: 10px;
  justify-content: space-between;
}
.worker-name h3 {
  font-size: 18px;
}
.worker-name > span {
  font-size: 13px;
  color: #617669;
}
.attendance {
  min-height: 52px;
  color: #244f3b;
  font-size: 15px;
}
.attendance.present {
  background: #e8f3e8;
  border-color: #b5cfb7;
  font-weight: 700;
}
.recorded-status {
  padding: 0 0 0 10px;
  border-radius: 8px;
  background: #eaf4ea;
}
.recorded-status.leave {
  background: #fff3d6;
}
.recorded-status.absent {
  background: #f9eae6;
}
.presence-panel, .leave-note, .transfer-badge {
  font-size: 14px;
}
.presence-actions button {
  font-size: 15px;
  min-height: 48px;
}
.card-meta {
  font-size: 12px;
  color: #577062;
}
.return-button {
  width: 100%;
  margin-bottom: 4px;
}
.detail-actions {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.leader-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 100%);
  display: flex;
  background: #fff;
  border-top: 1px solid #cad8cd;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  gap: 10px;
  z-index: 5;
}
.leader-nav button {
  flex: 1;
  justify-content: center;
  font-size: 16px;
}
.login-page {
  display: grid;
  grid-template-columns: minmax(0, 460px);
  justify-content: center;
  padding: 24px;
}
.login-choices {
  width: 100%;
  padding: 30px 0;
}
.login-choices h1 {
  margin: 32px 0 10px;
}
#login-form {
  margin: 25px 0;
}
#login-form label {
  font-size: 16px;
  margin: 18px 0 8px;
}
#login-form > button {
  width: 100%;
  margin-top: 20px;
}
.password-field {
  display: flex;
  gap: 8px;
}
#login-error {
  padding: 10px;
  margin-top: 12px;
}
dialog p, dialog label, .form-actions button {
  font-size: 16px;
}
.icon-button {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
@media (max-width: 650px) {
  .leader-layout {
    padding: 0 14px 100px;
  }
  .leader-header {
    padding-top: 16px;
  }
  .leader-header .eyebrow {
    font-size: 10px;
    letter-spacing: .5px;
  }
  .leader-header h1 {
    font-size: 27px;
  }
  .roster-list {
    grid-template-columns: 1fr;
  }
}
