:root {
      --accent: #00375c;
      --accent-light: #00558d;
      --bg: #f4f7fb;
      --card-bg: #ffffff;
      --text: #1f2933;
      --muted: #4b5563;
      --border: #d1d9e0;
      --error: #d93025;
      --success: #0ba360;
    }

    *, *::before, *::after {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      min-height: 100vh;
      display: flex;
      justify-content: center;
      align-items: flex-start;
      padding: 2rem 1.5rem 3rem;
      font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
      background: var(--bg);
      color: var(--text);
    }

    .page {
      width: 100%;
      max-width: 960px;
      display: flex;
      flex-direction: column;
      gap: 2rem;
    }

    .tabs-container {
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
    }

    .tabs {
      display: inline-flex;
      flex-wrap: wrap;
      gap: 0.5rem;
    }

    .site-header {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 1.5rem;
      justify-content: space-between;
      width: 100%;
    }

    .site-header-left {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      flex-wrap: wrap;
    }

    .site-header-home {
      display: inline-flex;
      align-items: center;
      gap: 0.75rem;
      flex-wrap: wrap;
      color: inherit;
      text-decoration: none;
    }

    .site-header-home:focus-visible {
      outline: 3px solid rgba(0, 55, 92, 0.28);
      outline-offset: 4px;
      border-radius: 8px;
    }

    .site-header-left img {
      height: 72px;
      width: auto;
      max-width: 200px;
      object-fit: contain;
    }

    .site-header h1 {
      margin: 0;
      font-size: clamp(1.75rem, 2.8vw, 2.4rem);
      color: var(--accent);
      font-weight: 700;
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.55rem;
    }

    .environment-heading-badge {
      display: inline-flex;
      align-items: center;
      border: 1px solid #f59e0b;
      border-radius: 999px;
      padding: 0.22rem 0.55rem;
      background: #fff7ed;
      color: #92400e;
      font-size: 0.78rem;
      font-weight: 800;
      line-height: 1;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .test-site-notice {
      border: 1px solid #f59e0b;
      border-radius: 8px;
      padding: 0.85rem 1rem;
      background: #fff7ed;
      color: #7c2d12;
      font-size: 0.98rem;
      font-weight: 700;
      line-height: 1.45;
    }

    .booking-detail-test-notice {
      margin-bottom: 1.25rem;
    }

    .language-toggle {
      display: inline-flex;
      align-items: center;
      margin-left: auto;
    }

    .site-header-actions {
      display: inline-flex;
      align-items: center;
      gap: 0.6rem;
      margin-left: auto;
    }

    .site-header-actions .language-toggle {
      margin-left: 0;
    }

    .language-menu {
      position: relative;
      display: inline-flex;
    }

    .language-button {
      border: 1px solid var(--border);
      border-radius: 10px;
      width: 3rem;
      height: 2.4rem;
      padding: 0;
      background: #fff;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .language-button img {
      width: 28px;
      height: 20px;
      border-radius: 4px;
      object-fit: cover;
      pointer-events: none;
    }

    .language-button:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(0, 55, 92, 0.14);
    }

    .language-button:hover {
      border-color: var(--accent);
      background: #fff;
      box-shadow: none;
    }

    .user-menu-button {
      border: 1px solid var(--border);
      border-radius: 10px;
      width: 2.4rem;
      height: 2.4rem;
      padding: 0;
      background: #fff;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .user-menu-button img {
      width: 20px;
      height: 20px;
      pointer-events: none;
      opacity: 0.72;
    }

    .user-menu-button:hover,
    .user-menu-button:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(0, 55, 92, 0.14);
    }

    .language-options {
      position: absolute;
      top: calc(100% + 0.35rem);
      right: 0;
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 0.35rem;
      list-style: none;
      margin: 0;
      display: none;
      gap: 0.25rem;
      box-shadow: 0 10px 24px rgba(0, 30, 60, 0.18);
      z-index: 25;
    }

    .language-menu.open .language-options {
      display: flex;
      flex-direction: column;
    }

    .language-options li {
      margin: 0;
      list-style: none;
    }

    .language-option {
      border: none;
      background: transparent;
      padding: 0.25rem;
      border-radius: 8px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s ease, transform 0.1s ease;
    }

    .language-option img {
      width: 28px;
      height: 20px;
      border-radius: 4px;
      object-fit: cover;
    }

    .language-option:hover,
    .language-option:focus {
      background: rgba(0, 55, 92, 0.08);
      outline: none;
    }

    .language-option[aria-selected="true"] {
      box-shadow: 0 0 0 2px var(--accent);
      background: rgba(0, 55, 92, 0.12);
    }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    .card {
      background: var(--card-bg);
      border-radius: 18px;
      box-shadow: 0 16px 40px rgba(0, 30, 60, 0.12);
      padding: clamp(1.5rem, 4vw, 2.75rem);
      display: grid;
      gap: 1.5rem;
      border: 1px solid rgba(0, 55, 92, 0.06);
    }

    form {
      display: grid;
      gap: 1.25rem;
    }

    label {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-weight: 600;
      font-size: 0.95rem;
      color: var(--muted);
    }

    select,
    input,
    textarea {
      width: 100%;
      margin-top: 0.35rem;
      padding: 0.65rem 0.75rem;
      border: 1px solid var(--border);
      border-radius: 10px;
      background-color: #fff;
      font-size: 1rem;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
      color: var(--text);
    }

    select:focus,
    input:focus,
    textarea:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(0, 55, 92, 0.14);
    }

    #email[readonly] {
      background-color: #f3f6f8;
      color: var(--muted);
      cursor: not-allowed;
    }

    #email[readonly]:focus {
      border-color: var(--border);
      box-shadow: none;
    }

    .prefill-field {
      position: relative;
    }

    .employee-lookup-control {
      position: relative;
    }

    .employee-lookup-results {
      position: absolute;
      top: calc(100% + 0.25rem);
      left: 0;
      right: 0;
      z-index: 30;
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: #fff;
      box-shadow: 0 12px 28px rgba(0, 30, 60, 0.16);
    }

    .employee-lookup-option {
      width: 100%;
      display: grid;
      gap: 0.15rem;
      justify-items: start;
      border: 0;
      border-radius: 0;
      padding: 0.65rem 0.75rem;
      background: #fff;
      color: var(--text);
      box-shadow: none;
      text-align: left;
      transform: none;
    }

    .employee-lookup-option:hover:not(:disabled),
    .employee-lookup-option:focus-visible,
    .employee-lookup-option.is-active {
      outline: none;
      background: rgba(0, 55, 92, 0.08);
      box-shadow: none;
      transform: none;
    }

    .employee-lookup-option__name {
      font-weight: 700;
      line-height: 1.25;
    }

    .employee-lookup-option__meta {
      color: var(--muted);
      font-size: 0.85rem;
      font-weight: 500;
      line-height: 1.3;
    }

    .prefill-field.is-loading input {
      padding-right: 2.6rem;
      background-color: #f9fbfd;
      cursor: progress;
    }

    .prefill-field.is-loading::after {
      content: "";
      position: absolute;
      top: 2.55rem;
      right: 0.85rem;
      width: 1rem;
      height: 1rem;
      background: url("../images/spinner.svg") center / contain no-repeat;
      animation: prefill-spinner 0.85s linear infinite;
      pointer-events: none;
    }

    @keyframes prefill-spinner {
      to {
        transform: rotate(360deg);
      }
    }

    input.invalid,
    textarea.invalid,
    select.invalid {
      border-color: var(--error);
    }

    textarea {
      resize: vertical;
      min-height: 110px;
      line-height: 1.5;
    }

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

    .booking-employee-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(9rem, 13rem);
      gap: 1rem;
      align-items: start;
    }

    .help {
      color: var(--error);
      font-size: 0.85rem;
      min-height: 1.25em;
      margin-top: 0.35rem;
    }

    .note {
      color: var(--accent);
      font-size: 1rem;
      font-weight: 600;
      min-height: 1.25em;
      display: none;
    }

    .note .note-line {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      align-items: baseline;
      margin-bottom: 0.25rem;
      font-weight: 600;
      color: var(--accent);
    }

    .note .note-line:last-child {
      margin-bottom: 0;
    }

    #price_note {
      margin-bottom: 1.5rem;
    }

    .flatpickr-day.summer-selectable-day:not(.flatpickr-disabled):not(.disabled) {
      cursor: pointer;
    }

    .flatpickr-day.summer-week-preview:not(.flatpickr-disabled):not(.disabled) {
      border-color: rgba(0, 55, 92, 0.18);
      background: rgba(0, 85, 141, 0.16);
      color: var(--accent);
    }

    .flatpickr-day.summer-week-preview-start:not(.flatpickr-disabled):not(.disabled) {
      border-top-left-radius: 999px;
      border-bottom-left-radius: 999px;
      background: rgba(0, 85, 141, 0.22);
      font-weight: 700;
    }

    .flatpickr-day.summer-week-preview-end:not(.flatpickr-disabled):not(.disabled) {
      border-top-right-radius: 999px;
      border-bottom-right-radius: 999px;
      background: rgba(0, 85, 141, 0.22);
      font-weight: 700;
    }

    .note .note-label {
      color: var(--muted);
      /*text-transform: uppercase;*/
      letter-spacing: 0.04em;
      font-size: 0.95rem;
    }

    .note .note-value {
      color: var(--text);
      font-size: 0.95rem;
      letter-spacing: 0;
    }

    .status-message {
      font-size: 0.95rem;
      font-weight: 600;
      min-height: 1.25em;
      color: var(--success);
      transition: color 0.2s ease;
    }

    .status-message.error {
      color: var(--error);
    }

    button {
      cursor: pointer;
      border: none;
      border-radius: 999px;
      padding: 0.85rem 1.5rem;
      font-size: 1rem;
      font-weight: 600;
      background: var(--accent);
      color: #fff;
      transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
      justify-self: start;
    }

    button:hover:not(:disabled) {
      transform: translateY(-1px);
      background: var(--accent-light);
      box-shadow: 0 10px 24px rgba(0, 55, 92, 0.25);
    }

    fieldset {
      border: none;
      padding: 0;
      margin: 0;
      min-inline-size: 0;
    }

    button:disabled {
      opacity: 0.7;
      cursor: progress;
      box-shadow: none;
    }

    .tab-button {
      border: 1px solid var(--border);
      background: transparent;
      color: var(--muted);
      padding: 0.65rem 1.5rem;
      border-radius: 999px;
      justify-self: unset;
      box-shadow: none;
      font-weight: 600;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.45rem;
    }

    .tab-button-link {
      margin-left: auto;
      text-decoration: none;
    }

    .tab-button-icon {
      width: 14px;
      height: 14px;
      opacity: 0.72;
      pointer-events: none;
    }

    .tab-button:hover:not(:disabled) {
      background: rgba(0, 55, 92, 0.08);
      color: var(--accent);
      border-color: var(--accent);
      transform: none;
      box-shadow: none;
    }

    .tab-button.active {
      background: var(--accent);
      color: #fff;
      border-color: var(--accent);
    }

    .tab-button:focus-visible {
      outline: none;
      box-shadow: 0 0 0 3px rgba(0, 55, 92, 0.18);
    }

    .tab-panel[hidden] {
      display: none;
    }

    .about-card {
      display: grid;
      gap: 1.5rem;
    }

    .about-card h2 {
      margin: 0;
      color: var(--accent);
      font-size: clamp(1.4rem, 3vw, 1.75rem);
    }

    .about-section {
      display: grid;
      gap: 0.5rem;
    }

    .about-section h3 {
      margin: 0;
      font-size: 1.05rem;
      color: var(--text);
    }

    .about-section p {
      margin: 0;
      color: var(--muted);
      line-height: 1.5;
    }

    .rules-link {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      color: var(--accent);
      text-decoration: none;
      font-weight: 600;
    }

    .rules-link:hover {
      text-decoration: underline;
    }

    .about-photo-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      gap: 1rem;
    }

    .about-photo {
      margin: 0;
      border-radius: 14px;
      overflow: hidden;
      border: 1px solid var(--border);
      background: #f8fafc;
    }

    .about-photo-button {
      border: none;
      padding: 0;
      background: transparent;
      width: 100%;
      height: 100%;
      cursor: pointer;
      display: block;
    }

    .about-photo-button:focus-visible {
      outline: 3px solid rgba(0, 55, 92, 0.4);
      outline-offset: 2px;
    }

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

    .about-empty {
      color: var(--muted);
      font-style: italic;
      margin: 0;
    }

    body.modal-open {
      overflow: hidden;
    }

    .user-modal {
      position: fixed;
      inset: 0;
      z-index: 45;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 1rem;
    }

    .user-modal.is-open {
      display: flex;
    }

    .user-modal__overlay {
      position: absolute;
      inset: 0;
      background: rgba(5, 20, 32, 0.48);
    }

    .user-modal__dialog {
      position: relative;
      width: min(100%, 360px);
      background: #fff;
      border-radius: 8px;
      padding: 1.35rem;
      box-shadow: 0 18px 48px rgba(0, 30, 60, 0.24);
    }

    .user-modal__close {
      position: absolute;
      top: 0.5rem;
      right: 0.5rem;
      width: 2rem;
      height: 2rem;
      border: none;
      border-radius: 999px;
      background: transparent;
      color: var(--muted);
      font-size: 1.5rem;
      line-height: 1;
      padding: 0;
    }

    .user-modal__close:hover,
    .user-modal__close:focus {
      outline: none;
      background: rgba(0, 55, 92, 0.08);
      color: var(--accent);
    }

    .user-modal h2 {
      margin: 0 2rem 1rem 0;
      color: var(--accent);
      font-size: 1.25rem;
      line-height: 1.2;
    }

    .user-modal__details {
      display: grid;
      gap: 0.8rem;
      margin: 0 0 1.25rem;
    }

    .user-modal__details div {
      display: grid;
      gap: 0.2rem;
    }

    .user-modal__details dt {
      color: var(--muted);
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0;
      text-transform: uppercase;
    }

    .user-modal__details dd {
      margin: 0;
      color: var(--text);
      font-size: 1rem;
      overflow-wrap: anywhere;
    }

    .user-modal__signout {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 2.4rem;
      border-radius: 8px;
      padding: 0.65rem 0.95rem;
      background: var(--accent);
      color: #fff;
      font-weight: 700;
      text-decoration: none;
    }

    .user-modal__signout:hover,
    .user-modal__signout:focus {
      outline: none;
      background: #002b49;
      color: #fff;
    }

    .photo-modal {
      position: fixed;
      inset: 0;
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 2000;
    }

    .photo-modal.is-open {
      display: flex;
    }

    .photo-modal__overlay {
      position: absolute;
      inset: 0;
      background: rgba(15, 23, 42, 0.65);
      backdrop-filter: blur(4px);
    }

    .photo-modal__dialog {
      position: relative;
      display: flex;
      align-items: center;
      gap: 0.75rem;
      max-width: min(960px, 95vw);
      width: 100%;
      max-height: 90vh;
      padding: clamp(1rem, 3vw, 1.25rem);
      border-radius: 20px;
      background: var(--card-bg);
      box-shadow: 0 25px 60px rgba(15, 23, 42, 0.15);
      border: 1px solid rgba(0, 55, 92, 0.12);
    }

    .photo-modal__figure {
      margin: 0;
      flex: 1;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .photo-modal__figure img {
      max-width: 100%;
      max-height: 80vh;
      border-radius: 16px;
      width: 100%;
      object-fit: contain;
      box-shadow: 0 12px 35px rgba(15, 23, 42, 0.18);
      background: #000;
    }

    .photo-modal__nav {
      border: none;
      background: var(--accent);
      color: #fff;
      width: 42px;
      height: 42px;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      cursor: pointer;
      transition: background 0.2s ease;
      z-index: 1;
    }

    .photo-modal__nav:hover {
      background: var(--accent-light);
    }

    .photo-modal__close {
      position: absolute;
      top: 0.5rem;
      right: 0.75rem;
      border: none;
      background: transparent;
      color: var(--text);
      font-size: 2rem;
      cursor: pointer;
      z-index: 2;
      line-height: 1;
    }

    .photo-modal__close:hover {
      color: var(--accent);
    }


    .language-wrap {
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
    }

    .footer-note {
      font-size: 0.85rem;
      color: var(--muted);
      text-align: center;
    }

    .bookings-card {
      overflow: hidden;
    }

    .booking-detail-card {
      display: grid;
      gap: 1.5rem;
    }

    .booking-detail-subheading {
      margin: 0.35rem 0 0;
      color: var(--muted);
      font-size: 1rem;
    }

    .booking-detail-meta {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 0.2rem;
      font-size: 0.9rem;
      color: var(--muted);
    }

    .booking-detail-meta-label {
      font-weight: 600;
      color: var(--text);
    }

    .booking-detail-meta-value {
      font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
      font-size: 0.95rem;
    }

    .booking-detail-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 1.25rem;
    }

    .booking-detail-sections {
      display: grid;
      gap: 1.5rem;
    }

    .booking-detail-section h3 {
      margin: 0 0 0.75rem;
      font-size: 1.05rem;
      color: var(--accent);
    }

    .bookings-list-sections .booking-detail-section h4 {
      margin: 0 0 0.5rem;
      font-size: 1rem;
      color: var(--accent);
    }

    .booking-detail-actions {
      margin-top: 1rem;
      display: flex;
      justify-content: flex-end;
      gap: 0.75rem;
      flex-wrap: wrap;
    }

    .booking-detail-canceled {
      margin: 0;
      font-weight: 600;
      color: var(--error);
    }

    .btn-danger {
      border: none;
      border-radius: 999px;
      padding: 0.7rem 1.6rem;
      font-weight: 600;
      cursor: pointer;
      background: var(--accent);
      color: #fff;
      transition: opacity 0.2s ease, transform 0.15s ease;
    }

    .btn-danger:hover:not(:disabled) {
      background: var(--accent-light);
      transform: translateY(-1px);
    }

    .btn-danger:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none;
    }

    .btn-success {
      border: none;
      border-radius: 999px;
      padding: 0.7rem 1.6rem;
      font-weight: 600;
      cursor: pointer;
      background: transparent;
      color: var(--success);
      border: 1px solid var(--success);
      transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
    }

    .btn-success:hover:not(:disabled),
    .btn-success.is-paid {
      background: var(--success);
      color: #fff;
      transform: translateY(-1px);
    }

    .btn-success:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none;
    }

    .booking-paid-btn.is-paid {
      background: var(--success);
      border-color: var(--success);
      color: #fff;
    }

    .booking-paid-btn.is-paid:hover:not(:disabled) {
      background: var(--success);
      border-color: var(--success);
      color: #fff;
    }

    .btn-secondary,
    .booking-detail-actions a {
      border-radius: 999px;
      border: 1px solid var(--accent);
      padding: 0.7rem 1.6rem;
      font-weight: 600;
      text-decoration: none;
      color: var(--accent);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
    }

    .btn-secondary:hover,
    .booking-detail-actions a:hover {
      background: var(--accent);
      color: #fff;
      transform: translateY(-1px);
    }

    .confirm-modal {
      position: fixed;
      inset: 0;
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 2100;
    }

    .confirm-modal.is-open {
      display: flex;
    }

    .confirm-modal__overlay {
      position: absolute;
      inset: 0;
      background: rgba(15, 23, 42, 0.55);
    }

    .confirm-modal__dialog {
      position: relative;
      background: var(--card-bg);
      padding: clamp(1.25rem, 3vw, 1.75rem);
      border-radius: 18px;
      width: min(420px, 92vw);
      box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2);
      border: 1px solid rgba(0, 55, 92, 0.08);
    }

    .confirm-modal__close {
      position: absolute;
      top: 0.5rem;
      right: 0.75rem;
      border: none;
      background: transparent;
      font-size: 1.75rem;
      cursor: pointer;
      color: var(--muted);
    }

    .confirm-modal__close:hover,
    .confirm-modal__close:focus {
      background: var(--accent);
      color: #fff;
    }

    .confirm-modal__content h3 {
      margin: 0 0 0.5rem;
      font-size: 1.2rem;
      color: var(--accent);
    }

    .confirm-modal__content p {
      margin: 0 0 1rem;
      color: var(--text);
    }

    .confirm-modal__actions {
      display: flex;
      justify-content: flex-end;
      gap: 0.75rem;
    }

    .confirm-modal__message {
      min-height: 1.25rem;
      font-size: 0.95rem;
      color: var(--error);
      margin-bottom: 0.5rem;
    }

    .booking-status-badge {
      margin-left: 0.5rem;
      padding: 0.15rem 0.5rem;
      border-radius: 999px;
      font-size: 0.75rem;
      font-weight: 600;
      background: rgba(220, 53, 69, 0.15);
      color: var(--error);
    }

    .booking-status-badge--paid {
      background: rgba(11, 163, 96, 0.15);
      color: var(--success);
    }

    .booking-canceled {
      opacity: 0.85;
    }

    .booking-detail-field dt {
      margin: 0;
      font-size: 0.85rem;
      letter-spacing: 0.02em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .booking-detail-field dd {
      margin: 0.25rem 0 0;
      font-size: 1.05rem;
      color: var(--text);
      word-break: break-word;
    }

    .card-header {
      display: grid;
      gap: 0.75rem;
    }

    .card-header h2 {
      margin: 0;
      font-size: clamp(1.25rem, 2vw, 1.6rem);
      color: var(--accent);
    }

    .card-header p {
      margin: 0;
      color: var(--muted);
      font-size: 0.95rem;
    }

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

    .bookings-controls {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      align-items: center;
      gap: 1rem;
    }

    .btn-secondary {
      border-radius: 999px;
      border: 1px solid var(--accent);
      color: var(--accent);
      background: transparent;
      padding: 0.75rem 1.4rem;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
    }

    .btn-secondary:hover:not(:disabled) {
      background: var(--accent);
      color: #fff;
      transform: translateY(-1px);
    }

    .btn-secondary:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none;
    }


    .accordion {
      display: grid;
      gap: 1rem;
    }

    .calendar-card {
      display: grid;
      gap: 1.5rem;
    }

    .public-calendar-card {
      align-self: stretch;
      width: 100%;
    }

    .calendar-nav {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .view-switch-btn {
      width: 2.75rem;
      height: 2.75rem;
      border-radius: 999px;
      border: 1px solid var(--accent);
      color: var(--accent);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      background: transparent;
      transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
    }

    .view-switch-btn:hover,
    .view-switch-btn:focus-visible {
      background: rgba(0, 55, 92, 0.1);
      box-shadow: 0 8px 20px rgba(0, 55, 92, 0.12);
      outline: none;
      transform: translateY(-1px);
    }

    .view-switch-btn-icon {
      width: 1.2rem;
      height: 1.2rem;
      background-color: currentColor;
      mask: center / contain no-repeat;
      -webkit-mask: center / contain no-repeat;
    }

    .view-switch-btn--calendar .view-switch-btn-icon {
      mask-image: url("../images/calendar-days-regular-full.svg");
      -webkit-mask-image: url("../images/calendar-days-regular-full.svg");
    }

    .view-switch-btn--list .view-switch-btn-icon {
      mask-image: url("../images/list-solid-full.svg");
      -webkit-mask-image: url("../images/list-solid-full.svg");
    }

    .settings-icon-link img,
    .settings-add-button img {
      width: 18px;
      height: 18px;
      pointer-events: none;
    }

    .settings-card {
      display: grid;
      gap: 1.25rem;
    }

    .settings-form {
      display: grid;
      gap: 1.25rem;
    }

    .settings-tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
    }

    .settings-panel {
      display: grid;
      gap: 1.25rem;
    }

    .settings-panel[hidden] {
      display: none;
    }

    .settings-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 1rem;
    }

    .settings-booking-grid {
      grid-template-columns: 1fr;
    }

    .settings-toggle-row {
      display: grid;
      grid-template-columns: minmax(220px, max-content) minmax(220px, 1fr);
      gap: 1rem;
      align-items: center;
      padding: 1rem;
      border: 1px solid rgba(0, 55, 92, 0.12);
      border-radius: 8px;
      background: rgba(0, 55, 92, 0.035);
    }

    .settings-toggle {
      display: inline-flex;
      align-items: center;
      gap: 0.75rem;
      min-height: 2.9rem;
      font-weight: 600;
      color: var(--accent);
      cursor: pointer;
      user-select: none;
    }

    .settings-toggle input {
      position: absolute;
      width: 1px;
      height: 1px;
      margin: -1px;
      overflow: hidden;
      clip: rect(0 0 0 0);
      white-space: nowrap;
      border: 0;
    }

    .settings-toggle-switch {
      position: relative;
      flex: 0 0 auto;
      width: 3rem;
      height: 1.65rem;
      border-radius: 999px;
      background: #cbd5e1;
      box-shadow: inset 0 0 0 1px rgba(0, 55, 92, 0.1);
      transition: background 0.2s ease, box-shadow 0.2s ease;
    }

    .settings-toggle-switch::after {
      content: "";
      position: absolute;
      top: 0.2rem;
      left: 0.2rem;
      width: 1.25rem;
      height: 1.25rem;
      border-radius: 50%;
      background: #fff;
      box-shadow: 0 2px 6px rgba(0, 30, 60, 0.25);
      transition: transform 0.2s ease;
    }

    .settings-toggle input:checked + .settings-toggle-switch {
      background: var(--accent);
      box-shadow: inset 0 0 0 1px rgba(0, 55, 92, 0.2);
    }

    .settings-toggle input:checked + .settings-toggle-switch::after {
      transform: translateX(1.35rem);
    }

    .settings-toggle input:focus-visible + .settings-toggle-switch {
      box-shadow: 0 0 0 3px rgba(0, 85, 141, 0.22), inset 0 0 0 1px rgba(0, 55, 92, 0.2);
    }

    .settings-toggle-text {
      line-height: 1.25;
    }

    .settings-block-after[hidden] {
      display: none;
    }

    .settings-subsection {
      display: grid;
      gap: 1rem;
      padding-top: 0.25rem;
    }

    .settings-subsection h3,
    .settings-summer-header h3 {
      margin: 0;
      color: var(--accent);
      font-size: 1.05rem;
    }

    .settings-summer-list {
      display: grid;
      gap: 1.1rem;
    }

    .settings-summer-row {
      display: grid;
      gap: 1rem;
      padding: 1rem;
      border: 1px solid rgba(0, 55, 92, 0.14);
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.7);
    }

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

    .settings-delete-button {
      padding: 0.55rem 1rem;
    }

    .settings-add-button {
      justify-self: start;
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
    }

    .settings-actions {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      gap: 0.75rem;
      flex-wrap: wrap;
      padding-top: 0.25rem;
    }

    .settings-refresh-status {
      margin-right: auto;
      color: #065f46;
      font-weight: 600;
    }

    .settings-refresh-status.is-error {
      color: var(--error);
    }

    .settings-refresh-employees-button {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
    }

    .settings-refresh-employees-button.is-loading::before {
      content: "";
      width: 1rem;
      height: 1rem;
      flex: 0 0 auto;
      background: url("../images/spinner.svg") center / contain no-repeat;
      filter: brightness(0) invert(1);
      animation: prefill-spinner 0.85s linear infinite;
    }

    .settings-message {
      padding: 0.75rem 1rem;
      border-radius: 8px;
      background: rgba(11, 163, 96, 0.12);
      color: #065f46;
      font-weight: 600;
    }

    .settings-message--error {
      background: rgba(217, 48, 37, 0.1);
      color: var(--error);
    }

    .settings-message p {
      margin: 0.2rem 0;
    }

    .settings-help {
      margin: 0.4rem 0 0;
      color: var(--muted);
      font-size: 0.85rem;
    }

    .calendar-nav-btn {
      border: 1px solid var(--accent);
      background: transparent;
      color: var(--accent);
      border-radius: 999px;
      width: 2.4rem;
      height: 2.4rem;
      font-size: 1.1rem;
      font-weight: 700;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    }

    .calendar-nav-btn:hover:not(:disabled) {
      background: var(--accent);
      color: #fff;
    }

    .calendar-nav-btn:disabled {
      opacity: 0.4;
      cursor: not-allowed;
    }

    .calendar-nav-label {
      font-weight: 700;
      color: var(--accent);
      min-width: 8rem;
      text-align: center;
      text-transform: capitalize;
    }

    .calendar-view {
      display: grid;
      gap: 1.5rem;
    }

    @media (min-width: 900px) {
      .calendar-view {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      }

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

    .calendar-empty {
      margin: 0;
      padding: 1.5rem;
      background: rgba(0, 55, 92, 0.06);
      border-radius: 12px;
      text-align: center;
      color: var(--muted);
      font-weight: 600;
    }

    .calendar-month {
      background: #fff;
      border: 1px solid rgba(0, 55, 92, 0.08);
      border-radius: 14px;
      box-shadow: 0 12px 24px rgba(0, 30, 60, 0.08);
      padding: 1.25rem;
      display: grid;
      gap: 0.75rem;
    }

    .calendar-month-header {
      margin: 0;
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--accent);
      text-transform: capitalize;
    }

    .calendar-weekdays {
      display: grid;
      grid-template-columns: repeat(7, minmax(0, 1fr));
      gap: 0.35rem;
      text-align: center;
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--muted);
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .calendar-grid {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }

    .calendar-week {
      display: grid;
      gap: 0.35rem;
      position: relative;
    }

    .calendar-week-grid {
      display: grid;
      grid-template-columns: repeat(7, minmax(0, 1fr));
      gap: 0.35rem;
      position: relative;
      z-index: 1;
    }

    .calendar-day {
      min-height: 72px;
      border-radius: 10px;
      padding: 0.4rem;
      border: 1px solid rgba(0, 55, 92, 0.08);
      background: rgba(0, 55, 92, 0.02);
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
      position: relative;
    }

    .calendar-day.empty {
      border: none;
      background: transparent;
    }

    .calendar-day-number {
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--accent);
      position: relative;
      z-index: 3;
    }

    .calendar-day.has-bookings {
      border-color: rgba(0, 55, 92, 0.22);
      background: rgba(0, 55, 92, 0.02);
    }

    .calendar-day.calendar-day--covered-full {
      background: rgba(0, 55, 92, 0.08);
    }

    .calendar-day.calendar-day--covered-morning {
      background: linear-gradient(
        to right,
        rgba(0, 55, 92, 0.08) 0,
        rgba(0, 55, 92, 0.08) 50%,
        rgba(0, 55, 92, 0.02) 50%,
        rgba(0, 55, 92, 0.02) 100%
      );
    }

    .calendar-day.calendar-day--covered-afternoon {
      background: linear-gradient(
        to right,
        rgba(0, 55, 92, 0.02) 0,
        rgba(0, 55, 92, 0.02) 50%,
        rgba(0, 55, 92, 0.08) 50%,
        rgba(0, 55, 92, 0.08) 100%
      );
    }

    .calendar-day.calendar-day--blocked {
      border-color: rgba(75, 85, 99, 0.16);
      background: repeating-linear-gradient(
        -45deg,
        rgba(75, 85, 99, 0.08),
        rgba(75, 85, 99, 0.08) 6px,
        rgba(75, 85, 99, 0.03) 6px,
        rgba(75, 85, 99, 0.03) 12px
      );
    }

    .calendar-day.calendar-day--blocked .calendar-day-number {
      color: rgba(75, 85, 99, 0.62);
    }

    .calendar-day-events {
      position: absolute;
      top: 50%;
      transform: translateY(-20%);
      left: 0;
      right: 0;
      display: grid;
      grid-template-columns: repeat(14, minmax(0, 1fr));
      column-gap: 0;
      row-gap: 0.35rem;
      grid-auto-rows: minmax(1.5rem, auto);
      z-index: 2;
      pointer-events: auto;
    }

    .calendar-day-events.empty {
      display: none;
    }

    .calendar-day-event {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0.2rem 0.45rem;
      border-radius: 999px;
      background: rgba(0, 55, 92, 0.9);
      color: #fff;
      font-size: 0.7rem;
      font-weight: 600;
      line-height: 1.1;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      height: 100%;
      cursor: pointer;
      transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

    .calendar-day-event--continues-before {
      border-top-left-radius: 0;
      border-bottom-left-radius: 0;
    }

    .calendar-day-event--continues-after {
      border-top-right-radius: 0;
      border-bottom-right-radius: 0;
    }

    .calendar-day-event:hover,
    .calendar-day-event.is-linked-hover {
      box-shadow: 0 6px 16px rgba(0, 55, 92, 0.25);
      transform: translateY(-1px);
    }

    .calendar-day-event:focus-visible {
      outline: 2px solid #fff;
      outline-offset: -2px;
      box-shadow: 0 0 0 2px rgba(0, 55, 92, 0.7);
    }

    .booking-modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.55);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1rem;
      z-index: 2000;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s ease;
    }

    .booking-modal-overlay.open {
      opacity: 1;
      pointer-events: auto;
    }

    .booking-modal {
      background: #fff;
      border-radius: 16px;
      padding: 1.75rem;
      width: min(750px, 100%);
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
      position: relative;
    }

    .booking-modal-close {
      position: absolute;
      top: 0.5rem;
      right: 0.75rem;
      border: none;
      background: transparent;
      font-size: 1.75rem;
      cursor: pointer;
      color: var(--muted);
    }

    .booking-modal-close:hover,
    .booking-modal-close:focus-visible {
      background: var(--accent);
      color: #fff;
      outline: none;
    }

    .booking-modal-body {
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
    }

    .booking-modal-header h3 {
      margin: 0;
      font-size: 1.3rem;
      color: var(--accent);
    }

    .booking-modal-range {
      margin: 0.25rem 0 0;
      color: var(--muted);
      font-weight: 600;
    }

    .booking-modal-details {
      margin: 0;
      display: grid;
      gap: 0.75rem;
    }

    .booking-modal-details dt {
      font-size: 0.75rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
      margin: 0;
    }

    .booking-modal-details dd {
      margin: 0.15rem 0 0.35rem;
      font-weight: 600;
      color: var(--accent);
    }

    .booking-modal-details a {
      color: inherit;
      text-decoration: underline;
    }

    .accordion-item {
      border: 1px solid rgba(0, 55, 92, 0.08);
      border-radius: 12px;
      background: #fff;
      box-shadow: 0 8px 20px rgba(0, 30, 60, 0.08);
      overflow: hidden;
      transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

    .accordion-item[open] {
      transform: translateY(-2px);
      box-shadow: 0 18px 36px rgba(0, 30, 60, 0.16);
    }

    .accordion-summary {
      list-style: none;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 1rem;
      padding: 1rem 1.25rem;
      cursor: pointer;
      font-weight: 600;
      color: var(--accent);
      position: relative;
      flex-wrap: wrap;
    }

    .accordion-summary::marker {
      display: none;
      content: "";
    }

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

    .accordion-summary::after {
      content: "▾";
      font-size: 1.1rem;
      color: var(--accent);
      transition: transform 0.2s ease;
    }

    .accordion-item[open] .accordion-summary::after {
      transform: rotate(-180deg);
    }

    .accordion-summary .date-range {
      font-size: 1rem;
    }

    .accordion-summary .summary-left {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .accordion-summary .summary-right {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-left: auto;
      min-width: 180px;
      justify-content: flex-end;
    }

    .accordion-summary .summary-middle {
      flex: 1;
      display: flex;
      justify-content: center;
      align-items: center;
      min-width: 140px;
    }

    .accordion-summary .name {
      font-size: 0.95rem;
      color: var(--muted);
      font-weight: 500;
    }

    .accordion-body {
      padding: 1rem 1.5rem 1.25rem;
      border-top: 1px solid rgba(0, 55, 92, 0.08);
      background: linear-gradient(180deg, rgba(0, 55, 92, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
    }

    .hidden-canceled {
      display: none !important;
    }

    .booking-list-actions {
      display: flex;
      justify-content: flex-end;
      gap: 0.75rem;
      margin-top: 1rem;
      flex-wrap: wrap;
    }

    .booking-resend-email-btn,
    .booking-invoice-btn {
      width: 2.6rem;
      height: 2.6rem;
      border-radius: 999px;
      border: 1px solid var(--accent);
      background: transparent;
      color: var(--accent);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
    }

    .booking-resend-email-btn:hover,
    .booking-resend-email-btn:focus-visible,
    .booking-invoice-btn:hover,
    .booking-invoice-btn:focus-visible {
      background: rgba(0, 55, 92, 0.1);
      box-shadow: 0 8px 20px rgba(0, 55, 92, 0.12);
      outline: none;
      transform: translateY(-1px);
    }

    .booking-resend-email-btn img,
    .booking-invoice-btn img {
      width: 18px;
      height: 18px;
      pointer-events: none;
    }

    .invoice-language-actions {
      justify-content: flex-start;
      flex-wrap: wrap;
    }

    dl {
      margin: 0;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 1rem 1.5rem;
    }

    dt {
      font-size: 0.8rem;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 0.35rem;
      font-weight: 600;
    }

    dd {
      margin: 0;
      font-size: 0.95rem;
      color: var(--text);
      word-break: break-word;
    }

    .footer-note a {
      color: var(--accent);
      text-decoration: none;
      font-weight: 600;
    }

    .footer-note a:hover {
      text-decoration: underline;
    }

    @media (max-width: 720px) {
      body {
        padding: 1.5rem 1rem 2.5rem;
      }
      .card {
        padding: 1.5rem;
      }
      .row,
      .booking-employee-row {
        grid-template-columns: 1fr;
      }
      button {
        width: 100%;
        justify-self: stretch;
      }
      a {
        width: 100%;
        justify-self: stretch;
        text-align: center;
      }
      .site-header {
        justify-content: center;
        text-align: center;
      }
  .site-header-left img {
    height: 60px;
  }
  .site-header-left {
    justify-content: center;
  }
  .site-header-home {
    justify-content: center;
  }
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
  .card-header-row {
    flex-direction: column;
    align-items: stretch;
  }
  .language-toggle {
    margin-left: 0;
    justify-content: center;
    margin-top: 0.75rem;
  }
  .site-header-actions {
    margin-left: 0;
    justify-content: center;
  }
  .site-header-actions .language-toggle {
    margin-top: 0;
  }
  .language-button,
  .language-option,
  .user-menu-button,
  .user-modal__close {
    width: revert;
    justify-self: auto;
  }
  .language-button {
    width: 3rem;
  }
  .user-menu-button {
    width: 2.4rem;
  }
  .user-modal__close {
    width: 2rem;
  }
  .user-modal__signout {
    width: 100%;
  }
  .settings-toggle-row {
    grid-template-columns: 1fr;
  }
  .settings-actions {
    justify-content: stretch;
  }
  .settings-refresh-status {
    width: 100%;
    margin-right: 0;
  }
  .settings-actions button,
  .settings-add-button,
  .settings-delete-button {
    width: 100%;
  }
}
