:root {
  --c-primary: #588b8b;
  --c-bg: #ffffff;
  --c-soft: #ffd5c2;
  --c-accent: #f28f3b;
  --c-danger: #c8553d;
  --c-text: #1c1c1c;
  --c-muted: rgba(28, 28, 28, 0.65);

  --radius: 14px;
  --gap: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Quicksand", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: transparent;
}

.hero {
  padding-top: 10px;
}

.hero-box {
  height: 256px;
  border-radius: var(--radius);
  border: 1px solid rgba(28, 28, 28, 0.08);
  box-shadow: var(--shadow);
  background: url('/assets/uploads/Banner.png');
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-content {
  padding: 18px;
  max-width: 720px;
  margin-left: auto;
  text-align: right;
}

.hero-eyebrow {
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(28, 28, 28, 0.70);
}

.hero-title {
  margin: 6px 0 6px;
  font-size: 26px;
  line-height: 1.15;
}

.hero-text {
  margin: 0;
  color: rgba(28, 28, 28, 0.75);
  font-weight: 600;
  line-height: 1.5;
}

.cal-day.is-today {
  border-color: rgba(28, 28, 28, 0.28);
  font-weight: 700;
}

.cal-day.has-event {
  position: relative;
  border-color: rgba(39, 124, 246, 0.35);
}

.cal-day.has-event::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(39, 124, 246, 0.95);
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
}

.cal-day.has-event:hover {
  border-color: rgba(39, 124, 246, 0.75);
}

.cal-day.has-markers {
  position: relative;
}

.cal-markers {
  display: flex;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  justify-content: center;
  pointer-events: none;
}

.cal-marker {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(28, 28, 28, 0.35);
}

.cal-marker.is-event {
  background: #00a7e1;
}

.cal-marker.is-activity {
  background: #f26a8d;
}

.cal-marker.is-activity_sport {
  background: #5a189a;
}

.cal-marker.is-activity_culture {
  background: #f26a8d;
}

.cal-marker.is-activity_association {
  background: #f26a8d;
}

.cal-marker.is-activity_other {
  background: #f26a8d;
}

.cal-marker.is-rental_pending {
  background: rgba(255, 140, 0, 0.95);
}

.cal-marker.is-rental_option {
  background: #ee964b;
}

.cal-marker.is-rental_paid {
  background: rgba(0, 136, 204, 0.95);
}

.cal-marker.is-rental_approved {
  background: #f95738;
}

.cal-marker.is-youth {
  background: #548c2f;
}

.cal-tooltip {
  position: absolute;
  z-index: 9999;
  background: rgba(17, 24, 39, 0.96);
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  font-size: 13px;
  line-height: 1.25;
  pointer-events: none;
}

.cal-tooltip-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.cal-tooltip-item {
  margin: 3px 0;
}

.cal-tooltip-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cal-tooltip-more {
  margin-top: 6px;
  opacity: 0.85;
}

.week-planner {
  display: grid;
  gap: 12px;
}

.week-planner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.week-planner-title {
  font-weight: 700;
  color: rgba(28, 28, 28, 0.85);
}

.week-planner-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.week-day {
  border: 1px solid rgba(28, 28, 28, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.75);
  padding: 10px;
  min-height: 140px;
}

.week-day-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  font-weight: 700;
}

.week-day-date {
  font-weight: 600;
  color: rgba(28, 28, 28, 0.6);
  font-size: 12px;
}

.activity-item {
  border: 1px solid rgba(39, 124, 246, 0.18);
  background: rgba(39, 124, 246, 0.06);
  border-radius: 12px;
  padding: 8px;
  margin: 0 0 8px;
}

.activity-time {
  font-weight: 700;
  font-size: 12px;
  color: rgba(28, 28, 28, 0.75);
}

.activity-name {
  font-weight: 700;
  margin-top: 2px;
}

.activity-meta {
  font-size: 12px;
  color: rgba(28, 28, 28, 0.65);
  margin-top: 2px;
}

.clubs-list {
  display: grid;
  gap: var(--gap);
}

.club-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(28, 28, 28, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.75);
  padding: 12px;
}

.club-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(28, 28, 28, 0.08);
  background: rgba(28, 28, 28, 0.03);
  overflow: hidden;
}

.club-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.club-name {
  font-weight: 800;
  margin: 0;
}

.club-meta {
  color: rgba(28, 28, 28, 0.65);
  font-weight: 600;
  font-size: 12px;
  margin-top: 2px;
}

.club-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .week-planner-grid {
    grid-template-columns: 1fr;
  }
}

.header-box {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(28, 28, 28, 0.08);
  border-radius: var(--radius);
  margin-top: 10px;
  position: relative;
}

.header-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: var(--gap);
  padding: 14px 16px;
}

.logo {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.logo img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.hamburger {
  display: none;
  font-weight: 800;
}

@media (max-width: 820px) {
  .header-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .header-actions {
    justify-self: end;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .logo {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .logo img {
    height: 48px;
  }

  .header-actions {
    flex: 0 0 auto;
  }

  .header-actions .button {
    white-space: nowrap;
  }

  .hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    display: none;
  }

  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 10px);
    padding: 10px;
    background: var(--c-bg);
    border: 1px solid rgba(28, 28, 28, 0.10);
    border-radius: 14px;
    box-shadow: var(--shadow);
    z-index: 20;
  }

  .main-nav.is-open a {
    padding: 10px 10px;
  }
}

.main-nav a {
  padding: 8px 10px;
  border-radius: 10px;
}

.main-nav a:hover {
  background: rgba(88, 139, 139, 0.10);
  text-decoration: none;
}

.auth {
  display: flex;
  justify-content: flex-end;
}

.user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  padding: 6px;
  background: var(--c-bg);
  border: 1px solid rgba(28, 28, 28, 0.10);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

#userMenuButton {
  font: inherit;
  letter-spacing: inherit;
}

.menu-item {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  min-height: 40px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.menu-item:hover {
  background: rgba(88, 139, 139, 0.10);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--c-accent);
  color: var(--c-bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font: inherit;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(242, 143, 59, 0.25);
}

.button:hover {
  text-decoration: none;
  background: var(--c-danger);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 16px rgba(200, 85, 61, 0.28);
}

.button:disabled,
.button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.button:disabled:hover,
.button[disabled]:hover {
  background: var(--c-accent);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: none;
}

.button-outline {
  background: transparent;
  color: var(--c-text);
  box-shadow: none;
  border: 1px solid rgba(28, 28, 28, 0.18);
}

.button.button-outline:hover {
  background: rgba(88, 139, 139, 0.10);
  color: var(--c-text);
  border-color: rgba(28, 28, 28, 0.18);
  box-shadow: none;
}

.button.button-outline:disabled:hover,
.button.button-outline[disabled]:hover {
  background: transparent;
  color: var(--c-text);
  border-color: rgba(28, 28, 28, 0.18);
}

.site-main {
  padding: 22px 0 40px;
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--gap);
  align-items: start;
}

.layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: start;
}

.layout-col {
  display: grid;
  gap: var(--gap);
  align-items: start;
}

.main-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.card {
  background: var(--c-bg);
  border: 1px solid rgba(28, 28, 28, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.blog {
  padding: 18px;
}

.section-title {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
}

.post {
  padding: 16px 0;
  border-top: 1px solid rgba(28, 28, 28, 0.08);
}

.post-with-thumb {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  overflow: hidden;
}

.post-thumb {
  height: 100%;
  width: auto;
  aspect-ratio: 1 / 1;
  align-self: stretch;
  max-width: 220px;
  background: linear-gradient(135deg, rgba(88, 139, 139, 0.20), rgba(242, 143, 59, 0.20));
  border-radius: 14px;
  border: 1px solid rgba(28, 28, 28, 0.08);
}

.post-body {
  min-width: 0;
}

@media (max-width: 560px) {
  .post-with-thumb {
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: start;
  }

  .post-thumb {
    width: 84px;
    height: 84px;
    max-width: none;
    align-self: start;
  }
}

@media (min-width: 560px) {
  .post-thumb {
    height: 100%;
  }
}

@media (min-width: 560px) {
  .blog-news .post-with-thumb {
    align-items: start;
  }

  .blog-news .post-thumb {
    width: 120px;
    height: 120px;
    align-self: start;
  }
}

@media (min-width: 560px) {
  .blog-events .post-with-thumb {
    align-items: start;
  }

  .blog-events .post-thumb {
    height: 120px;
    align-self: start;
  }
}

.post:first-of-type {
  border-top: 0;
}

.post-title {
  margin: 0 0 6px;
  font-size: 18px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0 6px;
  border-top: 1px solid rgba(28, 28, 28, 0.08);
}

.page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(28, 28, 28, 0.12);
  background: rgba(255, 255, 255, 0.85);
  font-weight: 700;
}

.page:hover {
  text-decoration: none;
  background: rgba(88, 139, 139, 0.10);
}

.page.is-active {
  background: var(--c-accent);
  color: var(--c-bg);
  border-color: rgba(0, 0, 0, 0.06);
}

.page.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.post-meta {
  margin: 0 0 10px;
  color: var(--c-muted);
  font-size: 14px;
}

.post-excerpt {
  margin: 0;
  line-height: 1.55;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(28, 28, 28, 0.10);
  background: rgba(88, 139, 139, 0.12);
  color: rgba(28, 28, 28, 0.85);
}

.tag[data-tag="Site"],
.tag[data-tag="Agenda"],
.tag[data-tag="Répertoire"],
.tag[data-tag="Salles"] {
  background: rgba(88, 139, 139, 0.14);
}

.tag[data-tag="Vie du village"],
.tag[data-tag="Associations"] {
  background: rgba(255, 213, 194, 0.55);
}

.tag[data-tag="Technique"],
.tag[data-tag="Modération"],
.tag[data-tag="Phase 2"] {
  background: rgba(242, 143, 59, 0.18);
}

.tag[data-tag="Roadmap"],
.tag[data-tag="Événements"],
.tag[data-tag="Réservation"],
.tag[data-tag="Annonces"],
.tag[data-tag="Brocante"] {
  background: rgba(200, 85, 61, 0.16);
}

.sidebar {
  display: grid;
  gap: var(--gap);
}

.widget {
  padding: 16px;
}

.widget-title {
  margin: 0 0 8px;
  font-size: 16px;
}

.widget-text {
  margin: 0 0 12px;
  color: var(--c-muted);
  line-height: 1.5;
}

.calendar {
  display: grid;
  gap: 10px;
}

.calendar-header {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  gap: 10px;
}

.calendar-month {
  text-align: center;
  font-weight: 700;
}

.icon-button {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(28, 28, 28, 0.12);
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-dow {
  text-align: center;
  font-size: 12px;
  color: var(--c-muted);
  padding: 2px 0;
}

.cal-day {
  text-align: center;
  padding: 10px 8px;
  min-height: 64px;
  border-radius: 10px;
  background: rgba(88, 139, 139, 0.10);
  border: 1px solid rgba(88, 139, 139, 0.16);
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.cal-day.is-today {
  background: rgba(242, 143, 59, 0.22);
  border-color: rgba(242, 143, 59, 0.45);
}

.cal-day.is-busy {
  background: rgba(200, 85, 61, 0.14);
  border-color: rgba(200, 85, 61, 0.30);
}

.cal-day.is-pending {
  background: rgba(255, 153, 51, 0.28);
  border-color: rgba(255, 140, 0, 0.60);
}

.cal-day.is-paid {
  background: rgba(0, 136, 204, 0.18);
  border-color: rgba(0, 136, 204, 0.55);
}

.cal-day.is-approved {
  background: rgba(22, 163, 74, 0.18);
  border-color: rgba(22, 163, 74, 0.55);
}

.cal-day.is-cancelled,
.cal-day.is-rejected {
  background: rgba(200, 85, 61, 0.16);
  border-color: rgba(200, 85, 61, 0.45);
  opacity: 0.85;
}

.cal-day.is-muted {
  opacity: 0.35;
}

.site-footer {
  border-top: 1px solid rgba(28, 28, 28, 0.08);
  padding: 16px 0;
  color: var(--c-muted);
}

.modal-overlay[hidden] {
  display: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 100;
}

.modal {
  width: min(520px, 100%);
  background: var(--c-bg);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25);
}

.modal-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 14px 14px 0;
  gap: var(--gap);
}

.modal-title {
  font-weight: 800;
  font-size: 18px;
}

.modal-body {
  padding: 14px;
}

.form {
  display: grid;
  gap: 10px;
}

.label {
  font-weight: 700;
  font-size: 14px;
}

.label.is-invalid {
  color: rgba(200, 85, 61, 0.95);
}

.input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(28, 28, 28, 0.15);
  font: inherit;
}

.input.is-invalid {
  border-color: rgba(200, 85, 61, 0.65);
}

.input:focus {
  outline: 3px solid rgba(88, 139, 139, 0.25);
  border-color: rgba(88, 139, 139, 0.35);
}

.form-hint {
  color: var(--c-muted);
  line-height: 1.4;
  font-size: 14px;
}

.form-hint.is-invalid {
  color: rgba(200, 85, 61, 0.95);
}

.checkbox.is-invalid {
  color: rgba(200, 85, 61, 0.95);
}

.checkbox input.is-invalid {
  outline: 2px solid rgba(200, 85, 61, 0.55);
  outline-offset: 3px;
}

.flash {
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(28, 28, 28, 0.10);
  background: rgba(88, 139, 139, 0.10);
  font-weight: 700;
  margin: 0 0 14px;
}

.flash.is-error {
  background: rgba(200, 85, 61, 0.12);
}

.flash.is-success {
  background: rgba(88, 139, 139, 0.10);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(28, 28, 28, 0.10);
  line-height: 1.2;
}

.badge-neutral {
  background: rgba(28, 28, 28, 0.06);
}

.badge-warning {
  background: rgba(255, 153, 51, 0.30);
  border-color: rgba(255, 140, 0, 0.55);
}

.badge-info {
  background: rgba(0, 136, 204, 0.22);
  border-color: rgba(0, 136, 204, 0.55);
}

.badge-success {
  background: rgba(22, 163, 74, 0.22);
  border-color: rgba(22, 163, 74, 0.55);
}

.badge-danger {
  background: rgba(220, 38, 38, 0.20);
  border-color: rgba(220, 38, 38, 0.55);
}

.rental-capsule-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rental-capsule {
  display: block;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(28, 28, 28, 0.10);
  background: rgba(28, 28, 28, 0.03);
  color: inherit;
  text-decoration: none;
}

.rental-capsule:hover {
  background: rgba(28, 28, 28, 0.06);
}

.rental-capsule-line1 {
  font-weight: 700;
  color: rgba(28, 28, 28, 0.85);
}

.rental-capsule-line2 {
  margin-top: 6px;
  color: rgba(28, 28, 28, 0.85);
}

.rental-capsule-line3 {
  margin-top: 8px;
}

.rental-capsule-line4 {
  margin-top: 6px;
  color: rgba(28, 28, 28, 0.75);
}

.profile-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(28, 28, 28, 0.08);
  margin-bottom: 14px;
}

.page-member .profile-header {
  border-bottom: 0;
  margin-bottom: 0;
}

.profile-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.profile-meta .post-meta {
  margin: 0;
}

.profile-meta .post-meta:first-child {
  font-size: 26px;
  line-height: 1.1;
}

.member-name {
  font-size: 44px;
  line-height: 1.05;
}

@media (max-width: 560px) {
  .member-name {
    font-size: 34px;
  }
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(28, 28, 28, 0.10);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.85);
}

.page-profile .profile-header .avatar {
  width: 96px;
  height: 96px;
  border-radius: 18px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(120px 120px at 30% 30%, rgba(255, 213, 194, 0.9), rgba(255, 255, 255, 0) 60%),
    radial-gradient(140px 140px at 80% 70%, rgba(88, 139, 139, 0.35), rgba(255, 255, 255, 0) 62%),
    rgba(88, 139, 139, 0.10);
}

.profile-form {
  display: grid;
  gap: 12px;
}

.profile-header .form-grid {
  margin: 0;
}

.form-row {
  display: grid;
  gap: 8px;
}

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

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

@media (max-width: 640px) {
  .form-row.form-row-2 {
    grid-template-columns: 1fr;
  }

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

.rentals-table .col-dates {
  display: none;
}

@media (max-width: 640px) {
  .rentals-table .col-address,
  .rentals-table .col-email,
  .rentals-table .col-type,
  .rentals-table .col-spaces,
  .rentals-table .col-start,
  .rentals-table .col-end,
  .rentals-table .col-amount {
    display: none;
  }

  .rentals-table .col-dates {
    display: table-cell;
  }
}

.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.field {
  display: grid;
  gap: 8px;
}

.field-inline {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
}

.field-inline .radio-inline {
  margin-left: auto;
}

.radio-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.radio-inline .menu-item {
  width: auto;
  display: inline-flex;
}

.field-label {
  font-weight: 800;
  font-size: 14px;
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 6px;
}

.mail-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: 520px;
  border: 1px solid rgba(28, 28, 28, 0.08);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
}

.mail-list {
  border-right: 1px solid rgba(28, 28, 28, 0.08);
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
}

.mail-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid rgba(28, 28, 28, 0.08);
  background: rgba(255, 255, 255, 0.7);
}

.mail-items {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px;
  overflow: auto;
}

.mail-item {
  text-align: left;
  border: 1px solid rgba(28, 28, 28, 0.10);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 12px;
  padding: 10px 10px;
  cursor: pointer;
  font: inherit;
}

.mail-item:hover {
  border-color: rgba(88, 139, 139, 0.35);
}

.mail-item.is-active {
  background: rgba(88, 139, 139, 0.10);
  border-color: rgba(88, 139, 139, 0.22);
}

.mail-item-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.mail-item-from {
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-item-date {
  color: var(--c-muted);
  font-size: 12px;
  white-space: nowrap;
}

.mail-item-subject {
  font-weight: 800;
  margin-top: 6px;
}

.mail-item-excerpt {
  color: var(--c-muted);
  font-size: 13px;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mail-thread {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
}

.mail-thread-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid rgba(28, 28, 28, 0.08);
  background: rgba(255, 255, 255, 0.7);
}

.mail-thread-subject {
  font-weight: 900;
  font-size: 18px;
}

.mail-thread-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mail-thread-body {
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: auto;
}

.mail-bubble {
  max-width: min(540px, 100%);
  border: 1px solid rgba(28, 28, 28, 0.10);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  padding: 10px 12px;
}

.mail-bubble.is-me {
  justify-self: end;
  background: rgba(88, 139, 139, 0.10);
  border-color: rgba(88, 139, 139, 0.22);
}

.mail-bubble-meta {
  color: var(--c-muted);
  font-size: 12px;
  margin-bottom: 6px;
  font-weight: 700;
}

.mail-bubble-text {
  line-height: 1.4;
}

.mail-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid rgba(28, 28, 28, 0.08);
  background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 900px) {
  .mail-layout {
    grid-template-columns: 1fr;
  }

  .mail-list {
    border-right: 0;
    border-bottom: 1px solid rgba(28, 28, 28, 0.08);
  }
}

@media (max-width: 560px) {
  .profile-header {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .profile-header .form-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

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

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--gap);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-links a[aria-label="Facebook"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(28, 28, 28, 0.06);
  color: inherit;
  transition: background 0.15s ease, transform 0.15s ease;
}

.footer-links a[aria-label="Facebook"]:hover {
  background: rgba(28, 28, 28, 0.12);
  transform: translateY(-1px);
}

.footer-links a[aria-label="Facebook"] svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 900px) {
  .header-grid {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .auth {
    justify-content: flex-start;
  }

  .main-grid {
    grid-template-columns: 1fr;
  }

  .layout {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
