body {
        font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        margin: 0;
        padding: 0;
        background: #f5f5f7;
      }
      .container {
        max-width: 1100px;
        margin: 0 auto;
        padding: 1rem;
      }
      .topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        margin-bottom: 0.5rem;
      }
      .brand {
        display: flex;
        align-items: center;
        gap: 0.6rem;
      }
      .brand a {
        text-decoration: none;
        font-weight: 700;
        color: #0b1f33;
        font-size: 1.05rem;
      }
      .burger {
        display: none;
        width: 38px;
        height: 38px;
        border-radius: 10px;
        border: 1px solid #d8dce2;
        background: #fff;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
      }
      .burger span {
        width: 18px;
        height: 2px;
        background: #0b1f33;
        display: block;
        transition: transform 0.2s ease, opacity 0.2s ease;
      }
      .burger.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
      }
      .burger.open span:nth-child(2) {
        opacity: 0;
      }
      .burger.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
      }
      .nav-menu {
        display: flex;
        align-items: center;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: flex-end;
        width: 100%;
      }
      .nav-links,
      .nav-actions {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        flex-wrap: wrap;
      }
      .nav-links a,
      .nav-actions a {
        text-decoration: none;
        color: #0b63ce;
        font-weight: 600;
        font-size: 0.92rem;
      }
      .user-chip {
        background: #eef2f8;
        border: 1px solid #d8dce2;
        padding: 0.35rem 0.6rem;
        border-radius: 999px;
        font-size: 0.85rem;
        color: #1b2748;
      }
      .page-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 0.5rem 0 1rem;
        gap: 0.5rem;
      }
      .month-nav {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        flex-wrap: wrap;
      }
      .month-nav a {
        text-decoration: none;
        padding: 0.35rem 0.6rem;
        border-radius: 999px;
        border: 1px solid #ddd;
        font-size: 0.85rem;
        background: #fff;
      }
      h1 {
        font-size: 1.25rem;
        margin: 0;
      }
      .messages {
        list-style: disc;
        padding-left: 1.2rem;
        margin: 0 0 1rem 0;
      }
      .messages li {
        padding: 0.6rem 2.2rem 0.6rem 0.6rem;
        border-radius: 0.5rem;
        margin-bottom: 0.4rem;
        font-size: 0.9rem;
        list-style-position: inside;
        position: relative;        
      }
      .messages li.success {
        background: #e6f6e9;
        border: 1px solid #9ed3a6;
      }
      .messages li.error {
        background: #fde8e8;
        border: 1px solid #f5a3a3;
      }
      .messages li.info {
        background: #e7f1ff;
        border: 1px solid #aac6ff;
      }
      .message-close {
        position: absolute;
        top: 0.35rem;
        right: 0.35rem;
        background: none;
        border: none;
        font-size: 1rem;
        color: #444;
        cursor: pointer;
        line-height: 1;
      }
      .message-close:hover,
      .message-close:focus-visible {
        color: #000;
      }
      .repricing-box {
        background: #fff7e6;
        border: 1px solid #ffd699;
        border-radius: 0.7rem;
        padding: 0.8rem 0.9rem;
        margin: 0 0 1rem 0;
      }
      .repricing-box h2 {
        margin: 0 0 0.35rem 0;
        font-size: 1rem;
      }
      .repricing-list {
        margin: 0;
        padding-left: 1.2rem;
        font-size: 0.9rem;
      }
      .repricing-list li {
        margin-bottom: 0.25rem;
      }
      .calendar-note {
        margin-top: 0.75rem;
        font-size: 0.8rem;
        color: #666;
      }

      .calendar-shell {
        background: #fff;
        border-radius: 1rem;
        border: 1px solid #e9edf3;
        box-shadow: 0 3px 10px rgba(0,0,0,0.05);
        overflow: hidden;
      }

      .calendar-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        background: #fafafa;
        border-bottom: 1px solid #eee;
      }

      .calendar-table-wrap {
        overflow-x: hidden;
      }

      .calendar-carousel {
        display: none;
        padding: 0.75rem 1rem 1rem;
        --day-card-min: 240px;
      }

      .calendar-carousel-controls {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
      }

      .calendar-page-nav {
        width: 36px;
        height: 36px;
        border-radius: 999px;
        border: 1px solid #d7dde5;
        background: #fff;
        font-size: 1.1rem;
        line-height: 1;
        color: #0b63ce;
        cursor: pointer;
      }

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

      .calendar-page-status {
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .calendar-date-button {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 9.25rem;
        padding: 0.45rem 0.95rem;
        border-radius: 999px;
        border: 1px solid #d7dde5;
        background: #fff;
        font-size: 0.85rem;
        font-weight: 600;
        color: #1b2748;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
      }

      .calendar-date-button span {
        pointer-events: none;
      }

      .calendar-date-button:hover,
      .calendar-date-button:focus-within {
        border-color: #0b63ce;
        box-shadow: 0 6px 14px rgba(11, 99, 206, 0.15);
      }

      .calendar-date-input {
        position: absolute;
        inset: 0;
        opacity: 0.01;
        z-index: 1;
        cursor: pointer;
        -webkit-appearance: none;
        appearance: none;
        background: transparent;
        border: none;
      }

      .calendar-carousel-viewport {
        overflow: hidden;
      }

      .calendar-carousel-track {
        display: flex;
        gap: 0.75rem;
        transition: transform 0.3s ease;
        will-change: transform;
      }

      .day-card {
        flex: 0 0 var(--day-card-width, 260px);
        border-radius: 0.9rem;
        border: 1px solid #eef1f6;
        padding: 0.6rem;
        background: #fff;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
      }

      .day-card.other-month {
        opacity: 0.7;
      }

      .day-card .day-header {
        margin-bottom: 0.35rem;
      }

      .day-card .day-number {
        font-size: 1rem;
      }

      table.calendar {
        width: 100%;
        border-collapse: collapse;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        table-layout: fixed;
      }
      table.calendar thead {
        background: #fafafa;
      }
      table.calendar th {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
        font-weight: 600;
        text-align: center;
        border-bottom: 1px solid #eee;
      }
      table.calendar td {
        vertical-align: top;
        border-bottom: 1px solid #f1f1f1;
        border-right: 1px solid #f1f1f1;
        padding: 0.3rem;
        min-height: calc(150px + var(--workspace-count, 0) * 6px);
        height: auto;
        overflow: hidden;
      }
      table.calendar th,
      table.calendar td {
        width: 14.285%;
      }
      table.calendar tr:last-child td {
        border-bottom: none;
      }
      table.calendar td:last-child {
        border-right: none;
      }
      .day-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.2rem;
      }

      .day-title {
        display: flex;
        align-items: baseline;
        gap: 0.35rem;
      }

      .day-weekday {
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #7a8599;
      }
      .day-number {
        font-size: 0.85rem;
        font-weight: 600;
      }
      .tag-today {
        font-size: 0.7rem;
        padding: 0.05rem 0.35rem;
        border-radius: 999px;
        background: #007bff;
        color: #fff;
      }
      .other-month {
        background: #fafafa;
        color: #b0b0b0;
      }

      .workspace-list {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
      }

      .workspace-chip {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: 999px;
        padding: 0.1rem 0.4rem;
        font-size: 0.7rem;
        border: 1px solid #ddd;
        background: #fff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
      }

      .workspace-chip.group-primary-booking {
        border: 2px solid #e74c3c;
        box-shadow: 0 0 0 2px #fdecec;
      }

      .workspace-chip.free {
        background: #e9f8ec;
      }
      .workspace-chip.booked {
        background: #f4f4f4;
        color: #888;
      }

      .workspace-chip .name {
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
      }

      .workspace-chip .workspace-link {
        color: inherit;
        text-decoration: underline;
        text-decoration-style: dashed;
        text-decoration-thickness: 1px;
        text-decoration-color: rgba(11, 31, 51, 0.35);
        text-underline-offset: 0.2rem;
      }

      .workspace-chip.booked .workspace-link {
        text-decoration-color: rgba(136, 136, 136, 0.6);
      }

      .workspace-chip .workspace-link:hover,
      .workspace-chip .workspace-link:focus-visible {
        color: #0b63ce;
        text-decoration-color: #0b63ce;
      }

      .workspace-chip .right {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        margin-left: 0.25rem;
        flex-shrink: 0;
      }

      .workspace-chip .status {
        font-size: 0.65rem;
      }

      .workspace-chip .status.admin-name {
        color: #d04c3c;
        font-weight: 600;
      }

      .workspace-chip a.book-link {
        font-size: 0.65rem;
        padding: 0.1rem 0.35rem;
        border-radius: 999px;
        text-decoration: none;
        background: #007bff;
        color: #fff;
      }
      .workspace-chip .book-link.disabled {
        background: #d3d3d3;
        color: #777;
        pointer-events: none;
        cursor: not-allowed;
      }
      .day-actions {
        margin-top: 0.4rem;
      }

      .day-cta {
        display: inline-block;
        padding: 0.25rem 0.55rem;
        border-radius: 0.6rem;
        text-decoration: none;
        font-size: 0.75rem;
        background: #007bff;
        color: #fff;
        border: 1px solid #007bff;
      }

      .day-cta.secondary {
        background: #fff;
        color: #007bff;
      }

      @media (max-width: 800px) {
        table.calendar td {
          min-height: 160px;
        }
      }

      @media (max-width: 980px) {
        .calendar-table-wrap {
          display: none;
        }
        .calendar-carousel {
          display: block;
        }
      }

      @media (max-width: 600px) {
        .topbar {
          flex-wrap: wrap;
          align-items: flex-start;
        }
        .burger {
          display: inline-flex;
        }
        .nav-menu {
          display: none;
          width: 100%;
          flex-direction: column;
          align-items: flex-start;
          gap: 0.5rem;
          padding: 0.75rem;
          background: #fff;
          border: 1px solid #e1e4ea;
          border-radius: 0.75rem;
          box-shadow: 0 4px 14px rgba(0,0,0,0.06);
        }
        .nav-menu.open {
          display: flex;
        }
        .nav-links,
        .nav-actions {
          width: 100%;
          flex-direction: column;
          align-items: flex-start;
        }
        .page-header {
          flex-direction: column;
          align-items: flex-start;
        }
        .calendar-toolbar {
          flex-direction: column;
          align-items: flex-start;
          gap: 0.5rem;
        }
        .calendar-carousel {
          padding: 0.75rem;
        }
        table.calendar th {
          font-size: 0.75rem;
        }
        table.calendar td {
          min-height: 150px;
        }
      }
