    /* BLU Kalender — scoped styles; existing views are unchanged. */
    #calendar {
      --cal-blue: #2563eb;
      --cal-border: #e2e8f0;
      color: #17243b;
      font-size: 14px
    }

    #calendar *,
    .blu-cal-dialog * {
      box-sizing: border-box
    }

    .cal-toolbar,
    .cal-row {
      display: flex;
      gap: 10px;
      align-items: center;
      flex-wrap: wrap
    }

    .cal-toolbar {
      justify-content: space-between;
      margin-bottom: 20px
    }

    .cal-toolbar h2 {
      margin: 0;
      font-size: 24px
    }

    .cal-muted {
      color: #64748b;
      line-height: 1.6
    }

    .cal-layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 320px;
      gap: 20px
    }

    .cal-card {
      background: white;
      border: 1px solid var(--cal-border, #e2e8f0);
      border-radius: 12px;
      padding: 20px;
      min-width: 0;
      margin-bottom: 16px
    }

    .cal-card h3 {
      margin: 0 0 12px;
      font-size: 17px
    }

    .cal-week,
    .cal-grid {
      display: grid;
      grid-template-columns: repeat(7, minmax(0, 1fr))
    }

    .cal-week div {
      text-align: center;
      color: #64748b;
      padding: 12px 0;
      font-weight: 600
    }

    .cal-grid {
      border-left: 1px solid #e2e8f0;
      border-top: 1px solid #e2e8f0
    }

    .cal-day {
      min-height: 108px;
      padding: 8px;
      border-bottom: 1px solid #e2e8f0;
      border-right: 1px solid #e2e8f0;
      min-width: 0;
      cursor: pointer;
      background: white
    }

    .cal-day:focus-visible {
      outline: 2px solid #2563eb;
      outline-offset: -2px
    }

    .cal-day.cal-off {
      background: #f8fafc;
      color: #94a3b8
    }

    .cal-date {
      display: block;
      font-weight: 600;
      margin-bottom: 8px
    }

    .cal-today .cal-date {
      color: #2563eb
    }

    .cal-selected {
      background: #eff6ff !important
    }

    .cal-chip {
      display: block;
      width: 100%;
      text-align: left;
      border: 0;
      border-radius: 5px;
      background: #dbeafe;
      color: #1e40af;
      font-size: 12px;
      padding: 4px;
      margin-top: 4px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      cursor: pointer
    }

    .cal-item {
      border-top: 1px solid #e2e8f0;
      padding: 14px 0;
      overflow-wrap: anywhere
    }

    .cal-item:first-of-type {
      border-top: 0
    }

    .cal-item strong {
      display: block;
      margin-bottom: 5px
    }

    .cal-tabs {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin: 0 0 20px
    }

    .cal-btn {
      font: inherit;
      font-weight: 600;
      min-height: 44px;
      padding: 10px 14px;
      border-radius: 8px;
      border: 1px solid #dbe2ed;
      background: white;
      color: #334155;
      cursor: pointer
    }

    .cal-btn:hover {
      background: #f1f5f9
    }

    .cal-btn.primary,
    .cal-btn.selected {
      background: #2563eb;
      border-color: #2563eb;
      color: white
    }

    .cal-btn.danger {
      color: #b91c1c
    }

    .cal-btn:disabled {
      opacity: .55;
      cursor: not-allowed
    }

    .cal-btn:focus-visible {
      outline: 3px solid #93c5fd;
      outline-offset: 2px
    }

    .cal-empty {
      padding: 24px 0;
      color: #64748b;
      line-height: 1.6
    }

    .cal-note {
      padding: 12px 16px;
      border: 1px solid #bfdbfe;
      background: #eff6ff;
      border-radius: 8px;
      line-height: 1.6;
      margin-bottom: 16px
    }

    .cal-slots {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
      gap: 10px;
      margin-top: 16px
    }

    .blu-cal-dialog {
      border: 1px solid #e2e8f0;
      border-radius: 14px;
      padding: 0;
      max-width: 640px;
      width: calc(100% - 32px);
      max-height: 90vh;
      color: #17243b;
      box-shadow: 0 12px 48px #17243b26;
      font: 14px system-ui
    }

    .blu-cal-dialog::backdrop {
      background: #0f172a80
    }

    .cal-dialog-head {
      padding: 20px;
      border-bottom: 1px solid #e2e8f0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px
    }

    .cal-dialog-head h2 {
      font-size: 20px;
      margin: 0
    }

    .cal-dialog-body {
      padding: 20px
    }

    .cal-form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px
    }

    .cal-field {
      display: flex;
      flex-direction: column;
      gap: 6px;
      min-width: 0
    }

    .cal-field.wide {
      grid-column: 1/-1
    }

    .cal-field label {
      font-weight: 600
    }

    .cal-field input:not([type=checkbox]),
    .cal-field select,
    .cal-field textarea {
      width: 100%;
      min-height: 44px;
      border: 1px solid #cbd5e1;
      border-radius: 8px;
      padding: 10px;
      font: inherit;
      background: white;
      color: #17243b
    }

    .cal-field textarea {
      min-height: 85px;
      resize: vertical
    }

    .cal-form-actions {
      display: flex;
      justify-content: flex-end;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 20px
    }

    .cal-error {
      color: #b91c1c;
      line-height: 1.5;
      margin-top: 12px
    }

    .cal-checks {
      display: flex;
      flex-wrap: wrap;
      gap: 12px
    }

    .cal-checks label {
      min-height: 44px;
      display: flex;
      align-items: center;
      gap: 5px
    }

    .cal-reminder {
      position: fixed;
      right: 20px;
      bottom: 52px;
      z-index: 100010;
      background: white;
      border: 1px solid #bfdbfe;
      border-left: 4px solid #2563eb;
      border-radius: 10px;
      padding: 16px;
      max-width: 360px;
      width: calc(100% - 40px);
      box-shadow: 0 6px 24px #17243b20;
      overflow-wrap: anywhere
    }

    .cal-reminder strong {
      display: block
    }

    .cal-url {
      overflow-wrap: anywhere;
      user-select: all
    }

    .cal-files a {
      display: block;
      margin: 8px 0;
      color: #1d4ed8
    }

    .cal-label {
      font-size: 12px;
      color: #1d4ed8;
      background: #eff6ff;
      padding: 4px 8px;
      border-radius: 4px
    }

    @media(max-width:1100px) {
      .cal-layout {
        grid-template-columns: minmax(0, 1fr)
      }

      .cal-day {
        min-height: 88px
      }
    }

    @media(max-width:600px) {
      #calendar .cal-card {
        padding: 12px
      }

      .cal-form-grid {
        grid-template-columns: 1fr
      }

      .cal-field.wide {
        grid-column: auto
      }

      .cal-day {
        min-height: 64px;
        padding: 4px
      }

      .cal-chip {
        font-size: 10px;
        padding: 3px
      }

      .cal-week div {
        font-size: 12px
      }

      .cal-toolbar h2 {
        font-size: 20px
      }

      .cal-dialog-body {
        padding: 16px
      }

      .cal-toolbar .cal-row {
        width: 100%
      }

      .cal-tabs .cal-btn {
        flex: 1
      }

      .cal-grid {
        font-size: 12px
      }
    }
