:root {
  --color-primary: #008500;
  --color-accent: #ffd200;
  --color-background: #fffdf2;
  --color-text: #243024;
  --black: var(--color-text);
  --yellow: var(--color-accent);
  --green: var(--color-primary);
  --green-dark: #006b00;
  --green-light: #e8f6e8;
  --yellow-light: #fff4b8;
  --background: var(--color-background);
  --text: var(--color-text);
  --muted: #63705f;
  --border: #e4e0d8;
  --danger: #b7333c;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body,
button,
input,
select,
textarea {
  max-width: 100%;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--green);
  overflow-wrap: anywhere;
}

.site-header {
  background:
    linear-gradient(90deg, var(--green-light), var(--yellow-light)),
    var(--white);
  padding: 1rem;
  border-bottom: 5px solid var(--green);
}

.site-header h1,
.form-panel h1,
.admin-header h1 {
  margin: 0.15rem 0 0.5rem;
  color: var(--green-dark);
  line-height: 1.1;
}

.hero-content {
  max-width: 54rem;
  margin: 0 auto;
}

.hero-main {
  display: grid;
  gap: 1rem;
}

.hero-content h1 {
  max-width: 40rem;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.hero-copy {
  max-width: 44rem;
  display: grid;
  gap: 0.3rem;
  margin-top: 0.65rem;
  font-size: 0.98rem;
}

.hero-copy p {
  margin: 0;
}

.hero-badge {
  width: 8.5rem;
  min-height: 5.5rem;
  display: grid;
  place-content: center;
  justify-self: end;
  border: 2px solid var(--green-dark);
  border-radius: 8px;
  background: var(--yellow-light);
  color: var(--green-dark);
  text-align: center;
  transform: rotate(1deg);
  box-shadow: 6px 6px 0 var(--green);
}

.hero-side {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.poster-thumbnail {
  width: 4.75rem;
  padding: 0.2rem;
  border: 2px solid var(--green-dark);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--green);
  cursor: zoom-in;
  transform: rotate(-1deg);
}

.poster-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.poster-dialog {
  position: relative;
  width: min(92vw, 480px);
  max-width: 480px;
  max-height: 92vh;
  padding: 0.75rem;
  border: 0;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.poster-dialog::backdrop {
  background: rgba(12, 24, 12, 0.78);
}

.poster-dialog img {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 1.5rem);
  width: auto;
  height: auto;
  margin: auto;
}

.poster-dialog-close {
  position: absolute;
  z-index: 1;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid var(--green-dark);
  border-radius: 50%;
  background: var(--white);
  color: var(--green-dark);
  font: inherit;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.hero-badge span {
  display: block;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-badge strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1;
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(79, 143, 58, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--green-dark);
  font-size: 0.95rem;
  font-weight: 700;
  max-width: 100%;
}

.contact-chip a {
  color: var(--green);
  overflow-wrap: anywhere;
}

.compact-user-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: var(--white);
  box-shadow: 0 6px 16px rgba(47, 95, 37, 0.08);
}

.compact-user-identity {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  align-items: baseline;
  min-width: 0;
}

.compact-user-club {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.compact-user-identity strong {
  color: var(--green-dark);
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}

.compact-user-actions,
.compact-user-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  justify-content: flex-end;
}

.compact-user-actions form {
  margin: 0;
}

.compact-user-actions .contact-chip {
  margin: 0;
  padding: 0.35rem 0.55rem;
  font-size: 0.78rem;
}

.compact-user-actions .button {
  width: auto;
  min-height: 2.2rem;
  padding: 0.4rem 0.7rem;
  font-size: 0.82rem;
}

.site-header,
.page {
  max-width: 72rem;
  margin: 0 auto;
}

.page {
  padding: 0.8rem;
  width: 100%;
}

.site-footer {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.5rem 1rem 1.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.site-footer a {
  color: var(--muted);
  text-decoration-thickness: 1px;
}

.narrow {
  max-width: 42rem;
}

.welcome-panel,
.helper-bar,
.my-shifts {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(47, 95, 37, 0.08);
}

.welcome-panel {
  max-width: 44rem;
  margin: 0 auto;
}

.welcome-panel h2,
.helper-bar h2,
.my-shifts h2 {
  margin: 0.2rem 0 0.5rem;
  color: var(--green-dark);
}

.helper-bar {
  display: grid;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1rem;
}

.my-shifts {
  margin-bottom: 1rem;
}

.my-shifts ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.my-shift-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0;
  border-top: 1px solid var(--border);
}

.my-shift-item > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.my-shift-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  justify-self: end;
}

.my-shift-actions form {
  margin: 0;
}

.report-entries {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.8rem;
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
}

.report-entries p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.report-entry-form {
  display: grid;
  gap: 0.55rem;
  align-items: end;
}

.report-entry-form .button {
  width: auto;
}

.my-shift-actions .button {
  width: auto;
  min-height: 2.2rem;
  padding: 0.4rem 0.7rem;
}

.day-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.8rem;
  overflow: visible;
  padding: 0.2rem 0;
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--background);
}

.day-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.42rem 0.65rem;
  border: 1px solid var(--green);
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  flex: 1 1 calc(50% - 0.5rem);
  min-width: 0;
  text-align: center;
}

.day-nav a.is-active {
  background: var(--green);
  color: var(--white);
}

.helper-form {
  margin-top: 1rem;
}

.bot-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.eyebrow,
.day {
  margin: 0;
  color: var(--green);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.shift-grid,
.shift-list {
  display: grid;
  gap: 0.8rem;
}

.day-section {
  margin: 0 0 1.2rem;
}

.day-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.55rem;
  padding: 0.55rem 0 0.35rem;
  border-bottom: 3px solid var(--green);
}

.day-heading h2 {
  margin: 0;
  color: var(--green-dark);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.1;
}

.day-heading .eyebrow {
  margin-bottom: 0.1rem;
}

.shift-card,
.edit-card,
.form-panel,
.admin-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem;
  box-shadow: 0 8px 20px rgba(47, 95, 37, 0.08);
}

.shift-card {
  display: grid;
  gap: 0.7rem;
}

.edit-card {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.edit-card h2 {
  margin: 0;
  color: var(--green-dark);
}

.shift-card h2,
.admin-section h2 {
  margin: 0.25rem 0;
  color: var(--green-dark);
}

.shift-card h2 {
  font-size: 1.25rem;
}

.time-range {
  margin: 0;
  color: var(--black);
  font-weight: 800;
}

.count {
  font-size: 1rem;
  font-weight: 800;
  margin: 0.35rem 0 0;
}

.free {
  display: inline-block;
  margin: 0.3rem 0 0;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: var(--yellow-light);
  color: var(--green-dark);
  font-weight: 700;
}

.is-full .free {
  background: #f8e0e2;
  color: var(--danger);
}

.helpers h3 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
}

.helpers ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  list-style: none;
}

.helpers li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: var(--green-light);
}

.compact-shift {
  gap: 0.45rem;
  padding: 0.65rem;
}

.shift-details {
  display: grid;
  gap: 0.45rem;
}

.shift-details:not([open]) > .task-row-list {
  display: none;
}

.compact-shift-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto auto;
  gap: 0.55rem;
  align-items: center;
  list-style: none;
  cursor: pointer;
  min-width: 0;
}

.compact-shift-summary::-webkit-details-marker {
  display: none;
}

.shift-summary-main {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
}

.shift-title {
  color: var(--green-dark);
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.shift-summary-helpers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  min-width: 0;
  font-size: 0.78rem;
}

.summary-helper {
  padding: 0.2rem 0.35rem;
  border-radius: 6px;
  background: var(--green-light);
  overflow-wrap: anywhere;
}

.summary-helper small {
  color: var(--muted);
}

.summary-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: 0.4rem 0.7rem;
  border-radius: 7px;
  background: var(--green);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.summary-toggle-close {
  display: none;
}

.shift-details[open] .summary-toggle-open {
  display: none;
}

.shift-details[open] .summary-toggle-close {
  display: inline;
}

.shift-occupancy {
  display: grid;
  gap: 0.2rem;
  max-width: 100%;
  margin-top: 0.4rem;
}

.compact-shift-summary .shift-occupancy {
  margin-top: 0;
}

.occupancy-circles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.18rem;
  max-width: 100%;
  line-height: 1;
}

.occupancy-circle {
  flex: 0 0 auto;
  font-size: 1rem;
}

.occupancy-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.shift-occupancy.is-complete .occupancy-text {
  color: var(--green-dark);
}

.task-list-title {
  margin: 0.35rem 0 0.1rem;
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 900;
}

.direct-shift-action {
  justify-self: end;
}

.direct-shift-action form {
  margin: 0;
}

.direct-shift-action .button {
  width: auto;
  min-height: 2.15rem;
  padding: 0.4rem 0.7rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

.compact-shift-header {
  display: grid;
  gap: 0.1rem;
}

.compact-shift-header h3 {
  margin: 0;
  color: var(--green-dark);
  font-size: 1.05rem;
}

.task-row-list {
  display: grid;
  gap: 0.35rem;
}

.task-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 0.5rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
  background: var(--white);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.task-main,
.task-helpers,
.task-action {
  min-width: 0;
}

.task-main h4 {
  margin: 0;
  color: var(--green-dark);
  font-size: 0.98rem;
}

.task-description {
  margin: 0.05rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.25;
}

.task-helpers {
  grid-column: 1 / 2;
  font-size: 0.82rem;
  line-height: 1.25;
}

.helper-inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.helper-inline-list li {
  border-radius: 999px;
  padding: 0.15rem 0.38rem;
  background: var(--green-light);
  font-weight: 700;
}

.helper-inline-list span {
  color: var(--green-dark);
  font-size: 0.8rem;
}

.task-status {
  justify-self: end;
  text-align: right;
  border-radius: 999px;
  background: var(--yellow-light);
  color: var(--green-dark);
  padding: 0.18rem 0.45rem;
  min-width: 3.75rem;
}

.task-status strong,
.task-status span {
  display: block;
  line-height: 1.1;
}

.task-status span {
  font-size: 0.72rem;
  font-weight: 800;
}

.is-full .task-status {
  background: #f8e0e2;
  color: var(--danger);
}

.task-action {
  grid-column: 2 / 3;
  justify-self: end;
}

.task-action form {
  margin: 0;
}

.task-action .button {
  width: auto;
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.88rem;
}

.helper-name {
  font-weight: 800;
}

.helper-club {
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.6rem 0.85rem;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
}

.button:hover {
  background: var(--green-dark);
}

.button.secondary {
  background: var(--yellow-light);
  color: var(--green-dark);
}

.button.danger,
.small-danger {
  background: var(--danger);
  color: var(--white);
}

.button:disabled,
.button-disabled,
.button:disabled:hover,
.button-disabled:hover {
  background: #aab5a6;
  cursor: not-allowed;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 700;
}

.stacked-form {
  display: grid;
  gap: 1rem;
}

.compact-form {
  grid-template-columns: 1fr;
}

.shift-form {
  grid-template-columns: 1fr;
}

.mail-settings-form {
  grid-template-columns: 1fr;
  margin-top: 1rem;
}

.mail-test-form {
  margin-top: 0.75rem;
}

.mail-test-form .button {
  width: auto;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-label input {
  width: auto;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  color: var(--text);
  font: inherit;
  background: var(--white);
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--yellow-light);
  border-color: var(--yellow);
}

.notice {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
}

.notice p {
  margin: 0.2rem 0;
}

.success {
  background: var(--green-light);
  border: 1px solid var(--green);
}

.error {
  background: #f8e0e2;
  border: 1px solid var(--danger);
}

.warning {
  background: var(--yellow-light);
  border: 1px solid var(--yellow);
}

.delete-form {
  margin-top: 1rem;
}

.admin-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-header .button {
  width: auto;
}

.admin-tabs {
  display: flex;
  gap: 0.35rem;
  max-width: 100%;
  margin: 0 0 1rem;
  padding: 0.2rem 0 0.45rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.admin-tabs a {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  background: var(--white);
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.admin-tabs a.active {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.settings-subtabs {
  margin-top: -0.45rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--green-light);
}

.settings-subtabs a {
  padding: 0.42rem 0.7rem;
  font-size: 0.92rem;
}

.admin-section {
  margin: 1rem 0;
}

.admin-tab-panel {
  margin-top: 0;
}

.admin-section-heading,
.admin-overview-shift-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.admin-overview-grid,
.planning-shift-grid {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.data-download-grid,
.reset-options {
  display: grid;
  gap: 0.7rem;
}

.data-download-grid {
  margin-top: 0.8rem;
}

.data-download-item {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--white);
  color: var(--green-dark);
  text-decoration: none;
}

.data-download-item:hover {
  border-color: var(--green);
  background: var(--green-light);
}

.data-download-item span {
  color: var(--muted);
  font-size: 0.82rem;
}

.danger-zone {
  border-color: #d9a4a8;
}

.reset-option {
  display: grid;
  gap: 0.65rem;
  align-content: start;
  padding: 0.8rem;
  border: 1px solid #e6c5c8;
  border-radius: 7px;
  background: #fffafa;
}

.reset-option h3,
.reset-option p {
  margin: 0;
}

.reset-option .button {
  width: auto;
  justify-self: start;
}

.reset-option-all {
  border-color: var(--danger);
}

.admin-overview-day {
  min-width: 0;
  border-top: 4px solid var(--green);
  border-radius: 6px;
  background: var(--background);
  padding: 0.65rem;
}

.admin-overview-day h3 {
  margin: 0 0 0.35rem;
  color: var(--green-dark);
  font-size: 1rem;
}

.admin-overview-shift {
  border-top: 1px solid var(--border);
  padding: 0.5rem 0;
}

.admin-overview-shift-head > div {
  display: grid;
  min-width: 0;
}

.admin-overview-shift-head strong,
.admin-overview-shift-head span {
  overflow-wrap: anywhere;
}

.admin-overview-shift-head span {
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-overview-shift-head b {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
  background: var(--yellow-light);
  color: var(--green-dark);
  font-size: 0.82rem;
}

.admin-overview-tasks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.35rem;
}

.admin-task-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.12rem 0.38rem;
  background: var(--white);
  font-size: 0.75rem;
  line-height: 1.25;
}

.admin-task-chip.overbooked {
  border-color: var(--danger);
  color: var(--danger);
}

.admin-tool {
  margin-top: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
}

.admin-tool > summary {
  cursor: pointer;
  padding: 0.75rem;
  color: var(--green-dark);
  font-weight: 800;
}

.admin-tool-body {
  border-top: 1px solid var(--border);
  padding: 0.8rem;
}

details.admin-section > summary {
  cursor: pointer;
  color: var(--green-dark);
  font-size: 1.1rem;
  font-weight: 800;
}

.admin-subsection {
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  padding-top: 1rem;
}

.admin-compact-grid {
  display: grid;
  gap: 0.8rem;
}

.admin-day-heading {
  margin: 1.25rem 0 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 3px solid var(--green);
}

.admin-day-heading h2 {
  margin: 0;
  color: var(--green-dark);
}

.admin-section h2 span {
  color: var(--green);
  font-size: 1rem;
}

.admin-nested-block,
.admin-task-block {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  background: var(--white);
}

.admin-task-block {
  background: var(--background);
}

.admin-nested-block h3,
.admin-task-block h4 {
  margin: 0 0 0.6rem;
  color: var(--green-dark);
}

.admin-task-block h4 span,
.admin-task-row span {
  color: var(--muted);
  font-size: 0.95rem;
  margin-left: 0.5rem;
}

.admin-task-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
  align-items: center;
  border-top: 1px solid var(--border);
  padding: 0.7rem 0;
}

.plain-list {
  margin: 0;
  padding-left: 1.2rem;
}

.status-pill {
  display: inline-block;
  margin-left: 0.4rem;
  border-radius: 999px;
  background: var(--yellow-light);
  color: var(--green-dark);
  font-size: 0.78rem;
  padding: 0.12rem 0.45rem;
}

.warning-pill {
  background: var(--yellow);
}

.admin-row-head {
  margin-top: 1rem;
  border-top: 0;
}

.table-wrap {
  overflow-x: auto;
}

.club-settings {
  display: grid;
  gap: 0.75rem;
}

.club-settings h3,
.club-settings p {
  margin: 0;
}

.club-settings-table {
  min-width: 36rem;
}

.club-settings-table input {
  width: 100%;
}

.club-settings-table th:last-child,
.club-settings-table td:last-child {
  width: 7.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 42rem;
}

th,
td {
  text-align: left;
  padding: 0.7rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  color: var(--green-dark);
  background: var(--green-light);
}

.small-danger {
  border: 0;
  border-radius: 6px;
  padding: 0.45rem 0.65rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.small-link {
  display: inline-block;
  margin: 0 0 0.4rem;
  font-weight: 700;
}

@media (max-width: 719px) {
  .compact-user-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.55rem;
  }

  .compact-user-actions,
  .compact-user-contacts {
    justify-content: flex-start;
  }

  .compact-user-actions .contact-chip {
    width: auto;
  }

  .compact-shift-summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .summary-toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .direct-shift-action {
    grid-column: 2;
    grid-row: 1;
  }

  .shift-summary-helpers,
  .compact-shift-summary .shift-occupancy {
    grid-column: 1 / -1;
  }

  .shift-summary-helpers {
    grid-row: 2;
  }

  .compact-shift-summary .shift-occupancy {
    grid-row: 3;
  }

  .site-header {
    border-radius: 0 0 12px 12px;
  }

  .hero-content h1 {
    font-size: clamp(1.7rem, 11vw, 2.35rem);
  }

  .contact-chip {
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
    border-radius: 8px;
  }

  .welcome-panel,
  .helper-bar,
  .my-shifts,
  .shift-card,
  .edit-card,
  .form-panel,
  .admin-section {
    padding: 0.8rem;
  }

  .admin-header {
    display: grid;
    align-items: stretch;
  }

  .admin-header .button {
    width: 100%;
  }

  .table-wrap {
    overflow: visible;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  tr {
    margin: 0 0 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 4px 14px rgba(9, 5, 3, 0.05);
    overflow: hidden;
  }

  td {
    display: grid;
    grid-template-columns: minmax(7rem, 38%) minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border);
    overflow-wrap: anywhere;
  }

  td:last-child {
    border-bottom: 0;
  }

  td::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 800;
  }

  td form {
    margin: 0;
  }

  .small-danger {
    width: 100%;
  }
}

@media (min-width: 720px) {
  .site-header {
    padding: 1.6rem 2rem 1.8rem;
    border-radius: 0 0 14px 14px;
  }

  .hero-side {
    flex-direction: column;
    justify-self: end;
  }

  .poster-thumbnail {
    width: 5.5rem;
  }

  .page {
    padding: 1.5rem 2rem;
  }

  .shift-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .day-nav {
    flex-wrap: wrap;
    margin: 0 0 1rem;
    overflow: visible;
    padding: 0;
    position: static;
  }

  .day-nav a {
    flex: 0 1 auto;
  }

  .task-row {
    grid-template-columns: minmax(9rem, 1.2fr) minmax(10rem, 2fr) auto minmax(8rem, auto);
  }

  .task-helpers,
  .task-action {
    grid-column: auto;
  }

  .task-action .button {
    width: auto;
  }

  .helper-bar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .helper-bar .button {
    width: auto;
  }

  .report-entries,
  .report-entry-form {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .data-download-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reset-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-main {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .hero-badge {
    display: grid;
  }

  .compact-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shift-form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .mail-settings-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mail-settings-form .mail-enabled-field,
  .mail-settings-form .mail-debug-field,
  .mail-settings-form .button {
    grid-column: 1 / -1;
  }

  .compact-form textarea,
  .compact-form .button {
    grid-column: 1 / -1;
  }

  .shift-form label:nth-of-type(2),
  .shift-form .checkbox-label,
  .shift-form .button,
  .shift-form .button.secondary {
    grid-column: span 2;
  }
}

@media (min-width: 1040px) {
  .site-header,
  .compact-user-header,
  .page,
  .site-footer {
    max-width: 86rem;
  }

  .shift-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-overview-grid,
  .planning-shift-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .site-header,
  .compact-user-header,
  .page,
  .site-footer {
    max-width: 96rem;
  }

  .shift-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
