:root {
  --wr-ink: #132033;
  --wr-navy: #183153;
  --wr-blue: #2563eb;
  --wr-cream: #f6f0e6;
  --wr-card-border: #d1d5db;
}
body {
  background: #ffffff;
  color: var(--wr-ink);
  min-height: 100vh;
  padding-bottom: 2.75rem;
}
main {
  padding-bottom: 3rem;
}
.navbar {
  box-shadow: 0 10px 28px rgba(19, 32, 51, 0.16);
}
.navbar-brand {
  font-weight: 800;
  letter-spacing: -0.03em;
}
.card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--wr-card-border);
  border-radius: 5px;
  box-shadow: 0 16px 40px rgba(24, 49, 83, 0.09);
  margin-bottom: 1.25rem;
  padding: 1.35rem;
}
.card .card {
  background: #fff;
  box-shadow: none;
}
h1, h2, h3 {
  letter-spacing: -0.03em;
}
h1 {
  font-weight: 800;
}
h2 {
  font-size: 1.35rem;
  font-weight: 750;
  margin-bottom: 1rem;
}
h3 {
  font-size: 1.08rem;
  font-weight: 700;
}
.muted {
  color: #667085;
}
a {
  color: #1d4ed8;
  font-weight: 600;
}
label {
  color: #344054;
  display: block;
  font-weight: 650;
  margin-bottom: 0.35rem;
}
input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  background-color: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  box-sizing: border-box;
  display: block;
  margin-bottom: 1rem;
  padding: 0.72rem 0.9rem;
  width: 100%;
}
textarea {
  min-height: 8rem;
}
input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.14);
  outline: 0;
}
input[type="checkbox"],
input[type="radio"] {
  margin-right: 0.45rem;
}
button {
  background: var(--wr-navy);
  border: 0;
  border-radius: 0.75rem;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  padding: 0.68rem 1rem;
}
button:hover {
  background: #10243f;
}
form[action*="retire"] button,
form[action*="cancel"] button,
form[action*="delete"] button,
form[action*="remove"] button,
form[action*="suspension"] button {
  background: #b42318;
}
form[action*="retire"] button:hover,
form[action*="cancel"] button:hover,
form[action*="delete"] button:hover,
form[action*="remove"] button:hover,
form[action*="suspension"] button:hover {
  background: #912018;
}
.logout-form button,
.logout-form button:hover {
  background: rgba(255,255,255,0.12);
}
form + form {
  margin-top: 0.75rem;
}
.form-check-label,
label:has(input[type="checkbox"]) {
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
  padding: 0.7rem 0.85rem;
}
.form-grid {
  display: grid;
  gap: 0 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.form-grid .full-width {
  grid-column: 1 / -1;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  grid-column: 1 / -1;
}
.auth-card {
  margin: 2.25rem auto;
  max-width: 34rem;
}
.turnstile-widget {
  margin: 0 0 1rem;
}
.success {
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  border-radius: 0.75rem;
  color: #166534;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
}
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
}
.link-row a {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  text-decoration: none;
}
.link-row a.danger-link {
  background: #b42318;
  border-color: #912018;
  color: #fff;
}
.link-row a.danger-link:hover {
  background: #912018;
}
.link-row a.active-filter {
  background: var(--wr-navy);
  border-color: var(--wr-navy);
  color: #fff;
}
.text-link-row {
  color: #667085;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.text-link-row a {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  text-decoration: underline;
}
.text-link-row .separator {
  color: #98a2b3;
}
.entity-badge,
.team-badge {
  --team-bg: #ffffff;
  --team-text: #000000;
  --team-border: #808080;
  align-items: center;
  background: var(--team-bg);
  border: 1px solid var(--team-border);
  border-radius: 5px;
  color: var(--team-text);
  display: inline-flex;
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  font-weight: 800;
  gap: 0.65rem;
  line-height: 1.1;
  max-width: 100%;
  min-height: 3.35rem;
  padding: 0.45rem 1rem 0.45rem 0.45rem;
  text-decoration: none;
  vertical-align: middle;
  word-break: break-word;
}
a.entity-badge:hover,
a.team-badge:hover {
  color: var(--team-text);
  text-decoration: none;
}
.entity-badge-icon,
.team-badge-icon {
  align-items: center;
  aspect-ratio: 1;
  border-radius: 5px;
  display: inline-flex;
  flex: 0 0 clamp(2.25rem, 7vw, 4.5rem);
  justify-content: center;
  max-height: 300px;
  max-width: 300px;
  overflow: hidden;
  width: clamp(2.25rem, 7vw, 4.5rem);
}
.entity-badge-icon img,
.team-badge-icon img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.entity-badge-name,
.team-badge-name {
  min-width: 0;
}
.team-badge-small {
  font-size: 0.95rem;
  min-height: 2.4rem;
  padding: 0.32rem 0.75rem 0.32rem 0.32rem;
}
.team-badge-small .team-badge-icon {
  flex-basis: 1.8rem;
  width: 1.8rem;
}
.user-badge {
  width: 450px;
  max-width: 100%;
}
@media (max-width: 720px) {
  .user-badge {
    width: 350px;
  }
}
.team-badge-preview {
  align-items: center;
  display: flex;
  min-height: 5.5rem;
}
.team-branding-field input[type="file"],
.team-branding-field input[type="color"] {
  height: 5.25rem;
}
.team-branding-field input[type="file"] {
  align-content: center;
}
.team-branding-field input[type="color"] {
  cursor: pointer;
  padding: 0.45rem;
}
.image-gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  margin-bottom: 1rem;
}
.image-gallery-item {
  margin: 0;
}
.image-gallery-item img {
  aspect-ratio: 4 / 3;
  border: 1px solid #d0d5dd;
  border-radius: 5px;
  display: block;
  height: auto;
  max-height: 480px;
  max-width: 640px;
  object-fit: cover;
  width: 100%;
}
.image-gallery-item figcaption {
  color: #667085;
  font-size: 0.9rem;
  margin-top: 0.35rem;
  min-height: 1.4rem;
}
.editable-image-description {
  cursor: text;
  white-space: pre-wrap;
}
.editable-image-description:empty::before {
  color: #98a2b3;
  content: "Add image description";
}
.image-description-editor {
  font-size: 0.9rem;
  margin-top: 0.35rem;
  min-height: 5rem;
  resize: vertical;
  width: 100%;
}
.toast-message {
  border-radius: 0.75rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  font-weight: 700;
  max-width: min(24rem, calc(100vw - 2rem));
  padding: 0.85rem 1rem;
  position: fixed;
  right: 1rem;
  top: 5rem;
  z-index: 1080;
}
.toast-message.success {
  margin-bottom: 0;
}
.toast-message.error {
  margin-bottom: 0;
}
.branding-image-list {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  margin-bottom: 1rem;
}
.branding-image-list label {
  margin-bottom: 0;
}
.branding-image-list img {
  aspect-ratio: 4 / 3;
  border-radius: 5px;
  display: block;
  margin-bottom: 0.45rem;
  object-fit: cover;
  width: 100%;
}
.messages-link.has-unseen {
  color: #fecaca !important;
  font-weight: 800;
}
.message-unseen {
  border-left: 0.35rem solid #dc2626;
}
.dashboard-section-card {
  align-items: flex-start;
  display: grid;
  gap: 1rem;
  grid-template-columns: 4.5rem minmax(0, 1fr);
}
.dashboard-section-icon-wrap {
  align-items: center;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 0.3rem;
}
.dashboard-section-icon {
  align-items: center;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 0.75rem;
  color: var(--wr-navy);
  display: flex;
  height: 3.35rem;
  justify-content: center;
  padding: 0.55rem;
  width: 3.35rem;
}
.dashboard-section-icon svg {
  height: 100%;
  width: 100%;
}
.dashboard-section-icon-label {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
}
.dashboard-section-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  margin-bottom: 0;
  padding-left: 0;
}
.dashboard-section-empty {
  margin-bottom: 0;
}
@media (max-width: 420px) {
  .dashboard-section-card {
    gap: 0.75rem;
    grid-template-columns: 4rem minmax(0, 1fr);
  }
}
.calendar-summary-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  list-style: none;
  margin-top: 0.75rem;
  padding: 0;
}
.calendar-summary-list li {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.calendar-summary-name {
  font-weight: 600;
}
.calendar-summary-meta {
  color: #6b7280;
  font-size: 0.875rem;
}
.room-summary-table {
  border-collapse: collapse;
  width: 100%;
}
.room-summary-table tr {
  border-bottom: 1px solid #e5e7eb;
}
.room-summary-table tr:last-child {
  border-bottom: none;
}
.room-summary-badge {
  padding: 0.6rem 1rem 0.6rem 0;
  vertical-align: middle;
  white-space: nowrap;
  width: 1%;
}
.room-summary-config {
  padding: 0.6rem 0;
  vertical-align: middle;
}
.room-config-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.room-config-list li {
  color: #374151;
  font-size: 0.85rem;
}
.config-missing {
  color: #9ca3af;
}
.details-grid {
  column-gap: 1.5rem;
  display: grid;
  grid-template-columns: max-content 1fr;
  margin: 0;
  row-gap: 0.35rem;
}
.details-grid dt {
  color: #6b7280;
  font-weight: 600;
}
.details-grid dd {
  margin: 0;
  word-break: break-word;
}
.assigned-room {
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
}
.assigned-room strong {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
}
.week-table {
  table-layout: fixed;
}
.week-table th,
.week-table td {
  border-left: 1px solid #d0d5dd;
}
.week-table th:first-child,
.week-table td:first-child {
  border-left: 0;
}
.week-table td {
  vertical-align: top;
}
.week-room {
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
}
.week-room strong {
  display: block;
  margin-bottom: 0.35rem;
}
.status-pill {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-left: 0.35rem;
  padding: 0.15rem 0.5rem;
  text-transform: capitalize;
}
.status-free {
  background: #dcfce7;
  color: #166534;
}
.status-partial {
  background: #fef3c7;
  color: #92400e;
}
.status-full {
  background: #fee2e2;
  color: #991b1b;
}
.status-none {
  background: #e5e7eb;
  color: #374151;
}
.error {
  background: #fef3f2;
  border: 1px solid #fecaca;
  border-radius: 0.75rem;
  color: #b42318;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
}
.danger-card {
  background: #fef3f2;
  border-color: #fecaca;
  color: #7a271a;
}
.danger-card .muted {
  color: #b42318;
}
.danger-card a {
  color: #991b1b;
}
table {
  --bs-table-bg: transparent;
  background: #fff;
  border-radius: 0.85rem;
  overflow: hidden;
  width: 100%;
}
th {
  background: #f8fafc;
  color: #475467;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
th, td {
  border-bottom: 1px solid #e5e7eb;
  padding: 0.7rem;
  text-align: left;
}
.table-wrap {
  overflow-x: auto;
}
.logout-form {
  margin: 0;
}
.logout-form button {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.45rem 0.8rem;
}
.navbar-standard {
  background: #183153;
}
.navbar-superadmin {
  background: #111;
  --bs-navbar-color: #d4af37;
  --bs-navbar-hover-color: #f0c040;
  --bs-navbar-active-color: #f0c040;
  --bs-navbar-brand-color: #d4af37;
  --bs-navbar-brand-hover-color: #f0c040;
  --bs-navbar-toggler-border-color: rgba(212,175,55,0.4);
}
.home-hero {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  padding: 2rem 0 1rem;
}
.home-hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 1;
  margin-bottom: 1rem;
}
.home-lede {
  color: #344054;
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 44rem;
}
.home-visual {
  background: #f8fafc;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  box-shadow: 0 16px 40px rgba(24, 49, 83, 0.09);
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}
.home-calendar-grid {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(3, 1fr);
}
.home-calendar-cell {
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 5px;
  min-height: 4.2rem;
  padding: 0.45rem;
}
.home-booking-bar {
  background: #2563eb;
  border-radius: 5px;
  color: #fff;
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0.4rem;
  padding: 0.35rem;
}
.home-booking-bar.alt {
  background: #166534;
}
.home-booking-bar.warn {
  background: #b42318;
}
.site-footer {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  bottom: 0;
  left: 0;
  position: fixed;
  right: 0;
  z-index: 1000;
}
.env-badge {
  background: #1d4ed8;
  border-radius: 0.4rem 0 0 0;
  bottom: 0;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  pointer-events: none;
  position: fixed;
  right: 0;
  z-index: 9999;
}
.home-section {
  margin-top: 2rem;
}
.home-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.home-feature {
  border-left: 4px solid #2563eb;
}
.home-feature h3 {
  margin-bottom: 0.4rem;
}
@media (max-width: 720px) {
  .card {
    border-radius: 5px;
    padding: 1rem;
  }
  .home-hero {
    grid-template-columns: 1fr;
  }
  th, td {
    white-space: nowrap;
  }
}

.room-badge { width: fit-content; max-width: 100%; }
