    /* ========== UNIFIED BASE THEME ========== */
    :root {
      --ice-blue: #eef1ea;
      --ice-blue-dark: #cfd7d0;
      --frost-white: #fbfaf7;
      --snow-pure: #fffdfb;
      --glass-bg: rgba(251, 249, 245, 0.92);
      --glass-border: rgba(88, 71, 57, 0.1);
      --shadow-soft: 0 14px 28px rgba(41, 31, 24, 0.06);
      --shadow-glow: 0 10px 20px rgba(41, 31, 24, 0.04);
      /* Weekly template scale-down */
      --template-header-title-size: 0.8rem;
      --template-header-text-size: 0.72rem;
      --template-week-header-size: 0.72rem;
      --template-btn-size: 0.72rem;
      --template-day-size: 0.7rem;
      --template-pool-title-size: 0.8rem;
      --template-instruction-size: 0.72rem;
    }

    body {
      background: linear-gradient(180deg, #f7f6f0 0%, #eef4ee 100%);
      background-attachment: fixed;
      min-height: 100vh;
      overflow-x: hidden;
    }

    /* Container constraint */
    .container {
      max-width: 100%;
      overflow-x: hidden;
    }

    /* ========== HIERARCHY: MONTH TEXT IS LARGEST ========== */
    /* Month text is the visual anchor - everything else is smaller */
    .calendar-month {
      font-size: 1.125rem !important; /* 18px - LARGEST TEXT */
      font-weight: 700 !important;
    }

    /* Improve readability across UI text rendering */
    body, button, input, select, textarea {
      font-family: 'Noto Sans', 'Source Sans 3', 'IBM Plex Sans', 'Segoe UI', sans-serif !important;
      -webkit-font-smoothing: auto;
      -moz-osx-font-smoothing: auto;
      text-rendering: optimizeLegibility;
    }

    /* Headers must be smaller than month */
    .app-header h1, .header h1 {
      font-size: 2rem !important;
      font-weight: 800 !important;
      letter-spacing: 0.01em !important;
      text-shadow: none !important;
    }

    .header-subtitle {
      font-size: 1rem !important;
      font-weight: 500 !important;
      color: #6d5e52 !important;
    }

    /* Modal titles smaller than month */
    .modal-title {
      font-size: 0.95rem !important; /* 15.2px */
    }

    /* Stats smaller than month */
    .stat-value {
      font-size: 1rem !important; /* 16px */
    }

    .stat-label {
      font-size: 0.625rem !important; /* 10px */
    }

    /* Child cards smaller */
    .child-name {
      font-size: 0.95rem !important; /* 15.2px */
    }

    /* Calendar elements subordinate to month */
    .calendar-day-number {
      font-size: 0.95rem !important; /* 15.2px - smaller than month */
    }

    .calendar-day-header {
      font-size: 0.8rem !important; /* 12.8px */
    }

    .iso-week {
      font-size: 0.875rem !important; /* 14px */
    }

    .rotation-week {
      font-size: 0.7rem !important; /* 11.2px */
    }

    /* Decorative snow theme removed in favour of a cleaner premium surface. */
    @keyframes snowfall {
      0% {
        transform: translateY(-10vh) translateX(0) rotate(0deg);
        opacity: 0;
      }
      10% {
        opacity: 0.8;
      }
      90% {
        opacity: 0.8;
      }
      100% {
        transform: translateY(110vh) translateX(100px) rotate(360deg);
        opacity: 0;
      }
    }

    @keyframes snowdrift {
      0%, 100% { transform: translateX(0); }
      50% { transform: translateX(20px); }
    }

    body::before,
    body::after,
    .container::before,
    .container::after {
      content: none !important;
      display: none !important;
    }

    /* ========== CLEAN SURFACES ========== */
    .card, .modal-content, .tab-content {
      background: var(--glass-bg) !important;
      border: 1px solid var(--glass-border) !important;
      box-shadow: var(--shadow-soft) !important;
      position: relative;
      overflow: hidden;
    }

    .card::before, .modal-content::before, .tab-content::before {
      content: none;
      display: none;
    }

    @keyframes frost-shimmer {
      0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
      100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    }

    /* Header surface */
    .app-header {
      background: rgba(251, 249, 245, 0.92) !important;
      border: 1px solid rgba(88, 71, 57, 0.1) !important;
      border-radius: 16px !important;
      padding: 2rem !important;
      box-shadow: 0 14px 28px rgba(41, 31, 24, 0.08) !important;
      position: relative;
      overflow: hidden;
    }

    .app-header::before {
      content: none;
      display: none;
    }

    @keyframes frost-aurora {
      0% { transform: translate(0, 0); }
      25% { transform: translate(30%, 30%); }
      50% { transform: translate(0, 60%); }
      75% { transform: translate(-30%, 30%); }
      100% { transform: translate(0, 0); }
    }

    /* Header title */
    .app-header h1 {
      font-size: 1.1rem;
      font-weight: 300;
      letter-spacing: 0.1em;
      color: #2f5a56;
      text-shadow: none;
      position: relative;
      animation: frost-glow 4s infinite ease-in-out;
    }

    @keyframes frost-glow {
      0%, 100% {
        text-shadow:
          0 2px 10px rgba(25, 118, 210, 0.3),
          0 0 20px rgba(144, 202, 249, 0.4),
          0 0 40px rgba(227, 242, 253, 0.2);
      }
      50% {
        text-shadow:
          0 2px 15px rgba(25, 118, 210, 0.4),
          0 0 30px rgba(144, 202, 249, 0.6),
          0 0 60px rgba(227, 242, 253, 0.3);
      }
    }

    .header {
      padding: 0.95rem 1.2rem !important;
      min-height: auto;
    }

    .header-with-stats {
      display: flex;
      align-items: stretch;
      justify-content: space-between;
      gap: 0.9rem;
      margin-bottom: 0.8rem;
    }

    .header-main {
      display: flex;
      flex-direction: column;
      justify-content: center;
      min-width: 220px;
    }

    .header-actions {
      display: flex;
      gap: 0.5rem;
      margin-top: 0.75rem;
      flex-wrap: wrap;
      align-items: end;
    }

    .header-facility-switcher {
      display: grid;
      gap: 0.3rem;
      min-width: min(100%, 220px);
    }

    .header-facility-label {
      font-size: 0.75rem;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: rgba(15, 23, 42, 0.74);
      font-weight: 700;
    }

    .header-facility-select {
      min-width: 220px;
      background: rgba(255, 255, 255, 0.86);
    }

    .header h1 {
      font-size: 2rem !important;
      display: flex !important;
      align-items: center !important;
      gap: 0.75rem !important;
    }

    .header-subtitle {
      font-size: 1rem !important;
      margin: 0;
    }

    .header-logo {
      font-size: 2.25rem !important;
      color: #1e88e5;
      filter: drop-shadow(0 2px 6px rgba(30, 136, 229, 0.25));
    }

    .header-stats {
      flex: 1;
      display: grid;
      grid-template-columns: repeat(4, minmax(98px, 1fr));
      gap: 0.4rem;
      min-width: min(100%, 540px);
      align-content: center;
    }

    .header-stat {
      background: rgba(255, 255, 255, 0.44);
      border: 1px solid rgba(255, 255, 255, 0.55);
      border-radius: 10px;
      padding: 0.34rem 0.5rem;
      text-align: center;
      backdrop-filter: blur(8px);
    }

    .header-stat-label {
      font-size: 0.54rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: #5d7488;
      font-weight: 700;
    }

    .header-stat-value {
      font-size: 0.95rem;
      font-weight: 800;
      line-height: 1.25;
      color: #1d2b38;
    }

    /* Stats smaller (shared utility cards) */
    .stats {
      gap: 1rem !important;
    }

    .stat {
      padding: 0.75rem 1rem !important;
    }

    .stat-label {
      font-size: 0.625rem !important;
    }

    .stat-value {
      font-size: 1rem !important;
    }

    @media (max-width: 1280px) {
      .header-with-stats {
        flex-direction: column;
      }

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

    @media (max-width: 640px) {
      .header {
        padding: 0.8rem 0.9rem !important;
      }

      .header h1 {
        font-size: 1.6rem !important;
      }

      .header-subtitle {
        font-size: 0.84rem !important;
      }

      .header-stat {
        padding: 0.3rem 0.42rem;
      }

      .header-stat-label {
        font-size: 0.5rem;
      }

      .header-stat-value {
        font-size: 0.86rem;
      }
    }
    /* Child card styles */
    .child-card {
      position: relative;
      cursor: pointer;
      transition: all 200ms ease;
    }

    .child-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    }

    .child-card-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 1rem;
    }

    .child-name {
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--fg-primary);
    }

    .child-age-uv {
      font-size: 0.875rem;
      color: var(--fg-muted);
      margin-top: 0.25rem;
    }

    .capacity-badge {
      font-size: 1rem;
      font-weight: 700;
      padding: 0.5rem 1rem;
      border-radius: 8px;
    }

    .capacity-0-5 { background: rgba(80, 200, 120, 0.2); color: var(--success); }
    .capacity-0-75 { background: rgba(255, 215, 0, 0.2); color: #d4af37; }
    .capacity-1-0 { background: rgba(255, 107, 107, 0.2); color: var(--error); }

    .child-info {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-top: 1rem;
    }

    .child-interests {
      display: flex;
      flex-wrap: wrap;
      gap: 0.25rem;
      margin-top: 0.5rem;
    }

    .interest-tag {
      font-size: 0.75rem;
      padding: 0.25rem 0.5rem;
      background: rgba(74, 158, 255, 0.1);
      border: 1px solid rgba(74, 158, 255, 0.2);
      border-radius: 4px;
      color: var(--accent-primary);
    }

    /* Group card styles */
    .group-card {
      border-left: 4px solid var(--accent-primary);
    }

    .group-card.warning {
      border-left-color: var(--warning);
    }

    .group-card.error {
      border-left-color: var(--error);
    }

    .group-children {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      margin-top: 1rem;
    }

    .group-child-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.75rem;
      background: var(--bg-secondary);
      border-radius: 8px;
      border: 1px solid var(--border-light);
    }

    .group-child-name {
      font-weight: 500;
    }

    .group-warnings {
      margin-top: 1rem;
      padding: 1rem;
      background: rgba(255, 215, 0, 0.1);
      border-left: 3px solid var(--warning);
      border-radius: 4px;
    }

    .group-errors {
      margin-top: 1rem;
      padding: 1rem;
      background: rgba(255, 107, 107, 0.1);
      border-left: 3px solid var(--error);
      border-radius: 4px;
    }

    .warning-item,
    .error-item {
      display: flex;
      align-items: flex-start;
      gap: 0.5rem;
      margin-bottom: 0.5rem;
      font-size: 0.875rem;
    }

    .warning-item:last-child,
    .error-item:last-child {
      margin-bottom: 0;
    }


    /* Empty state */
    .empty-state {
      text-align: center;
      padding: 3rem 1rem;
      color: var(--fg-muted);
    }

    .empty-state-icon {
      font-size: 4rem;
      margin-bottom: 1rem;
    }

    .empty-state-text {
      font-size: 1.125rem;
      margin-bottom: 1.5rem;
    }

    /* Calendar styles */
    .calendar-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 2rem;
      padding: 1rem 1.5rem;
      background: var(--glass-bg);
      backdrop-filter: blur(20px);
      border-radius: 16px;
      border: 1px solid var(--glass-border);
      box-shadow: var(--shadow-soft);
      flex-wrap: wrap;
      gap: 1rem;
    }

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

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

    .calendar-month {
      font-size: 1.125rem;
      font-weight: 600;
      letter-spacing: 0.05em;
      min-width: 180px;
      text-align: center;
      color: var(--shell-text);
    }

    /* View toggle */
    .view-toggle {
      display: flex;
      gap: 0.5rem;
      background: rgba(255, 255, 255, 0.5);
      padding: 0.25rem;
      border-radius: 12px;
      border: 1px solid var(--glass-border);
    }

    .view-toggle-btn {
      padding: 0.4rem 0.875rem;
      border: none;
      background: transparent;
      border-radius: 10px;
      cursor: pointer;
      font-weight: 500;
      color: var(--shell-accent);
      transition: all 200ms ease;
      font-size: 0.75rem;
    }

    .view-toggle-btn.active {
      background: rgba(47, 90, 86, 0.12);
      box-shadow: 0 2px 8px rgba(41, 31, 24, 0.08);
    }

    .view-toggle-btn:hover:not(.active) {
      background: rgba(255, 255, 255, 0.8);
    }

    .calendar-layout {
      display: flex;
      align-items: flex-start;
      gap: 1rem;
      margin-bottom: 2rem;
    }

    .calendar-grid {
      display: flex;
      flex-direction: column;
      gap: 0;
      border-radius: 16px;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.3);
      box-shadow: var(--shadow-soft);
      flex: 1;
      min-width: 0;
    }

    .calendar-usage-panel {
      width: 230px;
      flex: 0 0 230px;
      background: rgba(255, 255, 255, 0.52);
      border: 1px solid var(--glass-border);
      border-radius: 14px;
      padding: 0.75rem;
      box-shadow: var(--shadow-soft);
    }

    .calendar-usage-title {
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--fg-secondary);
      margin-bottom: 0.5rem;
      letter-spacing: 0.02em;
    }

    .calendar-usage-list {
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
      max-height: 70vh;
      overflow: auto;
      padding-right: 0.2rem;
    }

    .calendar-usage-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 0.5rem;
      padding: 0.35rem 0.5rem;
      border-radius: 8px;
      border: 1px solid rgba(50, 90, 120, 0.18);
      background: rgba(255, 255, 255, 0.72);
      font-size: 0.75rem;
      line-height: 1.2;
      color: #2b3d4f;
      font-weight: 600;
    }

    .calendar-usage-item.over-limit {
      background: rgba(255, 107, 107, 0.2);
      border-color: rgba(255, 107, 107, 0.55);
      color: #8a1717;
      box-shadow: 0 0 0 1px rgba(255, 107, 107, 0.35);
    }

    .calendar-usage-name {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .calendar-usage-value {
      display: inline-flex;
      align-items: center;
      font-variant-numeric: tabular-nums;
      font-weight: 700;
    }

    .calendar-usage-alert {
      margin-left: 0.35rem;
      font-size: 0.68rem;
      border-radius: 999px;
      background: rgba(255, 107, 107, 0.25);
      color: #8a1717;
      padding: 0.1rem 0.35rem;
      font-weight: 700;
      letter-spacing: 0.02em;
    }

    .calendar-usage-empty {
      font-size: 0.78rem;
      color: var(--fg-muted);
      padding: 0.4rem;
    }

    .monthly-sheet-controls {
      display: grid;
      grid-template-columns: minmax(220px, 1.4fr) minmax(150px, 1fr) auto;
      gap: 0.75rem;
      align-items: end;
      margin-bottom: 1rem;
    }

    .monthly-sheet-preview {
      border: 1px solid var(--border-light);
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.7);
      padding: 0.9rem;
      min-height: 220px;
      max-height: 58vh;
      overflow: auto;
    }

    .monthly-sheet-header {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      gap: 1rem;
      margin-bottom: 0.5rem;
    }

    .monthly-sheet-title {
      margin: 0;
      font-size: 1.02rem;
      color: #2b3d4f;
    }

    .monthly-sheet-period {
      font-size: 0.82rem;
      color: var(--fg-secondary);
      font-weight: 600;
    }

    .monthly-sheet-stats {
      display: flex;
      flex-wrap: wrap;
      gap: 0.6rem;
      margin-bottom: 0.8rem;
    }

    .monthly-sheet-stat {
      border-radius: 999px;
      padding: 0.22rem 0.6rem;
      font-size: 0.76rem;
      background: rgba(74, 158, 255, 0.12);
      color: #1f4f80;
      font-weight: 600;
    }

    .monthly-sheet-stat.warning {
      background: rgba(255, 215, 0, 0.2);
      color: #6b5300;
    }

    .monthly-sheet-stat.danger {
      background: rgba(255, 107, 107, 0.24);
      color: #8a1717;
    }

    .monthly-sheet-month-highlights {
      margin-bottom: 0.62rem;
      border: 1px solid var(--border-light);
      border-radius: 8px;
      padding: 0.36rem 0.44rem;
      background: rgba(255, 255, 255, 0.82);
    }

    .monthly-sheet-month-highlights-title {
      font-size: 0.64rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.03em;
      color: #334b62;
      margin-bottom: 0.22rem;
    }

    .monthly-sheet-month-highlights-list {
      display: flex;
      flex-wrap: wrap;
      gap: 0.22rem;
    }

    .monthly-sheet-month-highlight {
      display: inline-flex;
      align-items: center;
      gap: 0.2rem;
      border-radius: 999px;
      border: 1px solid transparent;
      padding: 0.08rem 0.35rem;
      font-size: 0.64rem;
      font-weight: 700;
      line-height: 1.2;
      max-width: 100%;
    }

    .monthly-sheet-month-highlight-text {
      white-space: normal;
    }

    .monthly-sheet-month-highlight .monthly-sheet-break-icon {
      width: 0.66rem;
      height: 0.66rem;
    }

    .monthly-sheet-month-highlight.holiday {
      background: #ffe4e4;
      border-color: #efb8b8;
      color: #8a1717;
    }

    .monthly-sheet-month-highlight.study-day {
      background: #e5f3ff;
      border-color: #b7d5f3;
      color: #0f4d8f;
    }

    .monthly-sheet-month-highlight.school-break {
      background: #e8f6dc;
      border-color: #c5dfab;
      color: #2f5f0f;
    }

    .monthly-sheet-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.8rem;
    }

    .monthly-sheet-legend {
      display: flex;
      flex-wrap: wrap;
      gap: 0.45rem;
      margin-bottom: 0.65rem;
    }

    .monthly-sheet-calendar {
      border: 1px solid var(--border-light);
      border-radius: 10px;
      overflow: hidden;
      background: #f7f8fa;
      margin-bottom: 0.75rem;
    }

    .monthly-sheet-calendar-head,
    .monthly-sheet-day-row {
      display: grid;
      grid-template-columns: 54px 136px 84px minmax(0, 1fr);
      align-items: stretch;
    }

    .monthly-sheet-calendar-head {
      background: #253448;
      color: #f3f6fb;
      font-size: 0.71rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .monthly-sheet-calendar-head-cell {
      padding: 0.4rem 0.5rem;
      border-right: 1px solid rgba(255, 255, 255, 0.15);
    }

    .monthly-sheet-calendar-head-cell:last-child {
      border-right: none;
    }

    .monthly-sheet-day-row {
      min-height: 34px;
      border-top: 1px solid rgba(18, 32, 46, 0.1);
      background: #f5f7fb;
    }

    .monthly-sheet-day-row.rotation-1 {
      border-left: 6px solid #f16c6c;
    }

    .monthly-sheet-day-row.rotation-2 {
      border-left: 6px solid #ffb865;
    }

    .monthly-sheet-day-row.rotation-3 {
      border-left: 6px solid #c2db74;
    }

    .monthly-sheet-day-row.rotation-4 {
      border-left: 6px solid #61c99a;
    }

    .monthly-sheet-day-row.weekend {
      background: #edf1f8;
    }

    .monthly-sheet-day-row.holiday {
      background: #f5f7fb;
    }

    .monthly-sheet-day-row.holiday .monthly-sheet-day-name,
    .monthly-sheet-day-row.holiday .monthly-sheet-day-date {
      color: #273b4d;
      font-weight: 700;
    }

    .monthly-sheet-day-row.study-day {
      background: #eef9ff;
    }

    .monthly-sheet-day-row.school-break {
      background: #f1faed;
    }

    .monthly-sheet-day-row.decision-study-day {
      background: #f3ecff;
    }

    .monthly-sheet-day-row.booked {
      background: #dff3ec;
    }

    .monthly-sheet-day-row.cancelled-booking {
      background: #fff3d8;
    }

    .monthly-sheet-day-row.removed-booking {
      background: #ffe5e5;
    }

    .monthly-sheet-day-row.arrival-day {
      background-image: linear-gradient(90deg, #f5f7fb 0%, #d6f0e8 62%, #a9dfd2 100%);
    }

    .monthly-sheet-day-row.stay-day {
      background: #dff3ec;
    }

    .monthly-sheet-day-row.departure-day {
      background-image: linear-gradient(90deg, #a9dfd2 0%, #c6e8df 48%, #f5f7fb 100%);
    }

    .monthly-sheet-day-row.holiday.booked,
    .monthly-sheet-day-row.holiday.stay-day {
      background: #dff3ec;
    }

    .monthly-sheet-day-row.holiday.arrival-day {
      background-image: linear-gradient(90deg, #f5f7fb 0%, #d6f0e8 62%, #a9dfd2 100%);
    }

    .monthly-sheet-day-row.holiday.departure-day {
      background-color: #f5f7fb;
      background-image: linear-gradient(90deg, #a9dfd2 0%, #c6e8df 48%, #f5f7fb 100%);
    }

    .monthly-sheet-day-row.holiday.school-break,
    .monthly-sheet-day-row.holiday.school-break.booked,
    .monthly-sheet-day-row.holiday.school-break.arrival-day,
    .monthly-sheet-day-row.holiday.school-break.stay-day,
    .monthly-sheet-day-row.holiday.school-break.departure-day {
      background: #f1faed;
      background-image: none;
    }

    .monthly-sheet-day-week,
    .monthly-sheet-day-name,
    .monthly-sheet-day-date,
    .monthly-sheet-day-plan {
      padding: 0.32rem 0.45rem;
      border-right: 1px solid rgba(18, 32, 46, 0.1);
      display: flex;
      align-items: center;
      gap: 0.35rem;
      min-width: 0;
    }

    .monthly-sheet-day-week {
      justify-content: center;
      font-weight: 800;
      color: #213548;
      font-variant-numeric: tabular-nums;
      background: rgba(255, 255, 255, 0.65);
    }

    .monthly-sheet-day-name {
      font-weight: 700;
      color: #273b4d;
      white-space: nowrap;
    }

    .monthly-sheet-day-date {
      font-weight: 700;
      color: #41586e;
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
    }

    .monthly-sheet-day-flags {
      display: inline-flex;
      align-items: center;
      gap: 0.2rem;
      margin-left: 0.25rem;
    }

    .monthly-sheet-day-flag {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 0.95rem;
      height: 0.95rem;
      border-radius: 999px;
      font-size: 0.56rem;
      font-weight: 800;
      line-height: 1;
      border: 1px solid transparent;
    }

    .monthly-sheet-day-flag.holiday {
      background: #ffe0e0;
      color: #8a1717;
      border-color: #efb3b3;
    }

    .monthly-sheet-day-flag.study-day {
      background: #dff2ff;
      color: #0f4d8f;
      border-color: #a9d7f5;
    }

    .monthly-sheet-day-flag.school-break {
      background: #e6f5d8;
      color: #2f5f0f;
      border-color: #bdd9a0;
    }

    .monthly-sheet-day-flag.decision-study-day {
      background: #e8ddff;
      color: #5f2f9f;
      border-color: #c6b3eb;
    }

    .monthly-sheet-day-flag.half-day {
      background: #fff5cf;
      color: #7a5b00;
      border-color: #ead48f;
    }

    .monthly-sheet-day-plan {
      border-right: none;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 0.35rem;
    }

    .monthly-sheet-day-row.has-segment .monthly-sheet-day-date {
      position: relative;
      padding-right: 0.85rem;
    }

    .monthly-sheet-day-row.has-segment .monthly-sheet-day-date::after {
      content: "";
      position: absolute;
      top: 0.14rem;
      bottom: 0.14rem;
      right: 0.24rem;
      width: 0.18rem;
      border-radius: 999px;
      background: var(--segment-color, #4A9EFF);
    }

    .monthly-sheet-day-row.segment-start .monthly-sheet-day-date::after,
    .monthly-sheet-day-row.segment-single .monthly-sheet-day-date::after {
      top: 50%;
      bottom: 0.14rem;
    }

    .monthly-sheet-day-row.segment-middle .monthly-sheet-day-date::after,
    .monthly-sheet-day-row.segment-end .monthly-sheet-day-date::after {
      top: 0.14rem;
      bottom: 0.14rem;
    }

    .monthly-sheet-day-row.segment-departure .monthly-sheet-day-date::after {
      top: 0.14rem;
      bottom: 50%;
    }

    .monthly-sheet-day-plan-main {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.35rem;
      min-width: 0;
    }

    .monthly-sheet-day-plan-side {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      flex-wrap: nowrap;
      gap: 0.25rem;
      min-width: 0;
      max-width: none;
    }

    .monthly-sheet-plan-chip {
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      padding: 0.16rem 0.5rem;
      font-size: 0.71rem;
      font-weight: 700;
      line-height: 1.3;
      max-width: 100%;
      white-space: normal;
    }

    .monthly-sheet-plan-chip.arrival {
      background: rgba(87, 166, 255, 0.18);
      color: #0f4d8f;
    }

    .monthly-sheet-plan-chip.stay {
      background: rgba(112, 180, 96, 0.2);
      color: #295e23;
    }

    .monthly-sheet-plan-chip.end {
      background: rgba(250, 196, 98, 0.25);
      color: #704600;
    }

    .monthly-sheet-plan-chip.session {
      background: rgba(184, 131, 255, 0.24);
      color: #5b2c91;
    }

    .monthly-sheet-plan-chip.departure {
      background: rgba(255, 155, 104, 0.25);
      color: #7d2f00;
    }

    .monthly-sheet-plan-chip.cancelled {
      background: rgba(244, 191, 73, 0.28);
      color: #7a5200;
    }

    .monthly-sheet-plan-chip.removed {
      background: rgba(236, 103, 103, 0.22);
      color: #8a1717;
    }

    .monthly-sheet-plan-chip.special {
      background: rgba(255, 143, 170, 0.25);
      color: #8a2148;
    }

    .monthly-sheet-plan-chip.side-note {
      padding: 0.12rem 0.46rem;
      font-size: 0.66rem;
      line-height: 1.25;
      max-width: 100%;
      white-space: normal;
    }

    .monthly-sheet-plan-chip.symbol {
      min-width: 1.42rem;
      justify-content: center;
      font-size: 0.86rem;
      line-height: 1.05;
      padding: 0.08rem 0.34rem;
      font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Segoe UI", sans-serif;
    }

    .monthly-sheet-plan-chip.symbol.iconized {
      display: inline-flex;
      align-items: center;
      justify-content: flex-start;
      gap: 0.14rem;
      font-family: "Segoe UI", Arial, sans-serif;
      min-width: 1.8rem;
      padding-inline: 0.28rem;
      max-width: 100%;
    }

    .monthly-sheet-plan-chip.side-note.iconized {
      white-space: nowrap;
    }

    .monthly-sheet-break-icon {
      width: 0.72rem;
      height: 0.72rem;
      display: inline-block;
      flex-shrink: 0;
    }

    .monthly-sheet-icon-code {
      font-size: 0.53rem;
      font-weight: 800;
      letter-spacing: 0.01em;
      line-height: 1;
    }

    .monthly-sheet-plan-chip.none {
      background: rgba(148, 163, 184, 0.23);
      color: #4b5f72;
    }

    .monthly-sheet-detail-wrap {
      margin-top: 0.55rem;
      border: 1px solid var(--border-light);
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.82);
    }

    .monthly-sheet-detail-summary {
      cursor: pointer;
      font-size: 0.77rem;
      font-weight: 700;
      color: #35506b;
      padding: 0.45rem 0.55rem;
      list-style: none;
    }

    .monthly-sheet-detail-summary::-webkit-details-marker {
      display: none;
    }

    .monthly-sheet-detail-summary::before {
      content: "▸ ";
      font-size: 0.8rem;
    }

    .monthly-sheet-detail-wrap[open] .monthly-sheet-detail-summary::before {
      content: "▾ ";
    }

    .monthly-sheet-table th,
    .monthly-sheet-table td {
      border-bottom: 1px solid var(--border-light);
      padding: 0.38rem 0.42rem;
      text-align: left;
      vertical-align: top;
    }

    .monthly-sheet-table th {
      font-size: 0.73rem;
      text-transform: uppercase;
      letter-spacing: 0.03em;
      color: var(--fg-secondary);
      background: rgba(255, 255, 255, 0.8);
      position: sticky;
      top: 0;
      z-index: 1;
    }

    .monthly-sheet-empty {
      color: var(--fg-muted);
      font-size: 0.84rem;
      padding: 0.4rem 0;
    }

    .school-days-grid {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 0.45rem;
      margin-top: 0.45rem;
    }

    .school-day-option {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.35rem;
      border: 1px solid var(--border-light);
      border-radius: 8px;
      padding: 0.3rem 0.45rem;
      background: rgba(255, 255, 255, 0.85);
      font-size: 0.8rem;
      color: var(--fg-secondary);
      font-weight: 600;
    }

    .school-day-option input {
      margin: 0;
    }

    .school-days-help,
    .booking-departure-hint {
      display: block;
      margin-top: 0.35rem;
      font-size: 0.76rem;
      color: var(--fg-muted);
    }

    @media (max-width: 1280px) {
      .calendar-layout {
        flex-direction: column;
      }

      .calendar-usage-panel {
        width: 100%;
        flex: 0 0 auto;
      }

      .calendar-usage-list {
        max-height: none;
      }
    }

    @media (max-width: 900px) {
      .monthly-sheet-controls {
        grid-template-columns: 1fr;
      }

      .monthly-sheet-calendar-head,
      .monthly-sheet-day-row {
        grid-template-columns: 44px 90px 66px minmax(0, 1fr);
      }

      .monthly-sheet-day-name,
      .monthly-sheet-day-date {
        font-size: 0.73rem;
      }

      .monthly-sheet-plan-chip {
        font-size: 0.67rem;
      }

      .school-days-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }

    .calendar-header-row {
      display: grid;
      grid-template-columns: 80px repeat(7, 1fr);
      gap: 0;
      border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    }

    .calendar-week-number-header {
      background: var(--bg-card);
      border-right: 2px solid var(--border-light);
    }

    .calendar-week-row {
      display: grid;
      grid-template-columns: 80px repeat(7, 1fr);
      gap: 0;
      border-bottom: 1px solid var(--border-light);
    }

    .calendar-week-number {
      background: var(--bg-secondary);
      border-right: 2px solid var(--border-light);
      padding: 0.75rem 0.45rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
    }

    .iso-week {
      font-weight: 700;
      font-size: 0.875rem;
      color: var(--fg-primary);
    }

    .rotation-week {
      font-size: 0.75rem;
      color: var(--fg-secondary);
      margin-top: 0.25rem;
    }

    .calendar-day-header {
      text-align: center;
      font-weight: 600;
      padding: 0.85rem;
      background: linear-gradient(180deg, rgba(244, 249, 255, 0.96), rgba(236, 244, 255, 0.88));
      border-radius: 10px;
      color: var(--shell-muted);
      font-size: 0.95rem;
      border: 1px solid rgba(110, 144, 191, 0.12);
    }

    .calendar-day {
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 250, 255, 0.92));
      border-right: 1px solid rgba(110, 144, 191, 0.12);
      border-bottom: 1px solid rgba(110, 144, 191, 0.1);
      padding: 0.28rem 0.3rem;
      min-height: 68px;
      cursor: pointer;
      transition: background-color 180ms ease;
      position: relative;
      display: flex;
      flex-direction: column;
      overflow: visible;
    }

    .calendar-day:last-child {
      border-right: none;
    }

    .calendar-day:hover {
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 255, 0.96));
      transform: none;
      box-shadow: none;
    }

    .calendar-day:hover::after {
      content: none;
      display: none;
    }

    @keyframes frost-float {
      0% {
        opacity: 0;
        transform: translateY(10px) rotate(0deg);
      }
      50% {
        opacity: 0.15;
        transform: translateY(-5px) rotate(180deg);
      }
      100% {
        opacity: 0;
        transform: translateY(-10px) rotate(360deg);
      }
    }

    .calendar-day.other-month {
      opacity: 0.3;
      pointer-events: none;
    }

    .calendar-day.today {
      border: 2px solid rgba(90, 136, 230, 0.34);
      background: linear-gradient(180deg, rgba(237, 245, 255, 0.98), rgba(229, 240, 255, 0.94));
      box-shadow: 0 12px 22px rgba(67, 96, 145, 0.08);
    }

    /* Today marker */
    .calendar-day.today::before {
      content: '';
      position: absolute;
      top: 0.75rem;
      right: 0.75rem;
      width: 0.55rem;
      height: 0.55rem;
      border-radius: 999px;
      background: var(--shell-accent);
      opacity: 0.9;
      animation: none;
      text-shadow: none;
    }

    @keyframes frost-pulse {
      0%, 100% {
        opacity: 0.3;
        transform: scale(1) rotate(0deg);
      }
      50% {
        opacity: 0.6;
        transform: scale(1.1) rotate(10deg);
      }
    }

    .calendar-day-number {
      font-weight: 700;
      font-size: 0.95rem;
      margin-bottom: 0.02rem;
      color: var(--shell-text);
      display: flex;
      align-items: center;
      gap: 0.28rem;
      flex-wrap: nowrap;
      min-width: 0;
    }

    .calendar-day.weekend .calendar-day-number {
      color: #4d6fae;
    }

    .calendar-day-need {
      margin-left: auto;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 0.95rem;
      padding: 0.02rem 0.28rem;
      border-radius: 999px;
      font-size: 0.56rem;
      font-weight: 800;
      line-height: 1.1;
      letter-spacing: 0.01em;
      background: rgba(90, 136, 230, 0.12);
      color: #32588f;
      border: 1px solid rgba(90, 136, 230, 0.2);
      white-space: nowrap;
    }

    .calendar-day.weekend .calendar-day-need {
      background: rgba(124, 165, 236, 0.17);
      border-color: rgba(124, 165, 236, 0.24);
      color: #486ca6;
    }

    .calendar-day.weekend {
      background: linear-gradient(180deg, rgba(249, 252, 255, 0.94), rgba(241, 247, 255, 0.96));
    }

    .calendar-day.holiday {
      box-shadow: inset 0 0 0 1px rgba(194, 129, 146, 0.18);
      background: linear-gradient(180deg, rgba(255, 248, 250, 0.9), rgba(250, 240, 246, 0.9));
    }

    .calendar-day.study-day {
      box-shadow: inset 0 0 0 1px rgba(110, 165, 232, 0.22);
      background: linear-gradient(180deg, rgba(239, 248, 255, 0.92), rgba(231, 243, 255, 0.94));
    }

    .calendar-day.school-break {
      box-shadow: inset 0 0 0 1px rgba(140, 164, 222, 0.2);
      background: linear-gradient(180deg, rgba(245, 248, 255, 0.94), rgba(237, 242, 255, 0.94));
    }

    .calendar-day.holiday.study-day {
      background: linear-gradient(165deg, rgba(255, 246, 249, 0.9), rgba(234, 244, 255, 0.92));
    }

    .calendar-day.holiday.school-break {
      background: linear-gradient(165deg, rgba(255, 246, 249, 0.9), rgba(238, 244, 255, 0.92));
    }

    .calendar-day.study-day.school-break {
      background: linear-gradient(165deg, rgba(234, 244, 255, 0.92), rgba(239, 245, 255, 0.94));
    }

    .calendar-day-markers {
      margin-left: 0.15rem;
      display: inline-flex;
      align-items: center;
      gap: 0.2rem;
      flex-wrap: nowrap;
      min-width: 0;
      overflow: hidden;
    }

    .calendar-day-marker {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: auto;
      height: auto;
      min-height: 0.95rem;
      max-width: 8ch;
      padding: 0.05rem 0.24rem;
      border-radius: 999px;
      font-size: 0.55rem;
      font-weight: 800;
      line-height: 1.1;
      border: 1px solid transparent;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .calendar-day-marker.holiday-name {
      max-width: 10.5ch;
    }

    .calendar-day-marker.holiday {
      background: #fff1f5;
      color: #9b5c72;
      border-color: #e9c4d0;
    }

    .calendar-day-marker.study-day {
      background: #edf6ff;
      color: #4871b0;
      border-color: #c5dbf7;
    }

    .calendar-day-marker.school-break {
      background: #f1f5ff;
      color: #6a7fb0;
      border-color: #d6def4;
    }

    .week-badge {
      font-size: 0.75rem;
      font-weight: 500;
      background: var(--accent-secondary);
      color: var(--fg-primary);
      padding: 0.125rem 0.5rem;
      border-radius: 12px;
      opacity: 0.7;
    }

    .calendar-day.weekend .week-badge {
      background: var(--accent-primary);
      color: white;
    }

    .calendar-day-capacity {
      font-size: 0.75rem;
      padding: 0.25rem 0.5rem;
      border-radius: 4px;
      margin-bottom: 0.5rem;
      text-align: center;
      font-weight: 600;
    }

    .capacity-low {
      background: rgba(80, 200, 120, 0.2);
      color: var(--success);
    }

    .capacity-medium {
      background: rgba(255, 215, 0, 0.2);
      color: #d4af37;
    }

    .capacity-high {
      background: rgba(255, 150, 50, 0.2);
      color: #ff9632;
    }

    .capacity-full {
      background: rgba(255, 107, 107, 0.2);
      color: var(--error);
    }

    .calendar-bookings {
      font-size: 0.75rem;
      color: var(--fg-muted);
    }

    .calendar-child-chip {
      display: inline-block;
      padding: 0.125rem 0.375rem;
      margin: 0.125rem;
      background: rgba(74, 158, 255, 0.1);
      border-radius: 4px;
      font-size: 0.6875rem;
      color: var(--accent-primary);
    }

    /* ========== Booking Blocks ========== */
    .calendar-bookings-container {
      display: flex;
      flex-direction: column;
      gap: 0.18rem;
      margin-top: 0.32rem;
      flex-grow: 1;
    }

    /* Time-based booking visualization */
    .bookings-timeline {
      position: relative;
      height: 34px;
      margin-top: 0;
      display: flex;
      align-items: flex-end;
      border-top: 1px solid rgba(110, 144, 191, 0.1);
      padding-top: 0;
    }

    .time-block {
      position: absolute;
      bottom: 0;
      height: 34px;
      padding: 0 11px 0 13px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
      color: var(--shell-text);
      font-weight: 600;
      font-size: 0.84rem;
      text-shadow: none;
      cursor: pointer;
      transition: opacity 120ms ease;
      overflow: visible;
      white-space: nowrap;
      border-radius: 10px;
      opacity: 0.96;
      border: 1px solid rgba(110, 144, 191, 0.16);
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 255, 0.94));
      box-shadow: 0 4px 10px rgba(56, 78, 118, 0.08);
    }

    .time-block:hover {
      z-index: 10;
      opacity: 1;
      transform: none;
      box-shadow: 0 6px 12px rgba(56, 78, 118, 0.12);
    }

    .time-block::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 4px;
      border-radius: inherit;
      border-top-right-radius: 0;
      border-bottom-right-radius: 0;
      background: var(--booking-color, #8ebfff);
    }

    .time-block.arrival {
      border-radius: 10px 6px 6px 10px;
      z-index: 100 !important;
    }

    .time-block.departure {
      border-radius: 6px 10px 10px 6px;
      z-index: 1 !important;
    }

    .time-block.status {
      border-radius: 8px;
      justify-content: center;
      gap: 0.45rem;
      border: 1px solid rgba(110, 144, 191, 0.16);
    }

    .time-block.status-cancelled {
      background: linear-gradient(180deg, rgba(255, 249, 236, 0.98), rgba(255, 242, 212, 0.95)) !important;
      color: #7f5a1c;
      text-shadow: none;
      box-shadow: inset 0 0 0 1px rgba(255, 248, 220, 0.4), 0 4px 10px rgba(127, 90, 28, 0.08);
    }

    .time-block.status-removed {
      background:
        repeating-linear-gradient(
          135deg,
          rgba(255, 255, 255, 0.22) 0 8px,
          rgba(255, 255, 255, 0.06) 8px 16px
        ),
        linear-gradient(180deg, rgba(255, 245, 247, 0.98), rgba(250, 228, 233, 0.95)) !important;
      color: #874f63;
      text-shadow: none;
      border: 1px dashed rgba(185, 125, 145, 0.45);
      box-shadow: inset 0 0 0 1px rgba(255, 235, 235, 0.24), 0 4px 10px rgba(135, 79, 99, 0.08);
    }

    .time-block.status-cancelled .time-label-initials,
    .time-block.status-removed .time-label-initials {
      left: 8px;
      transform: translateY(-50%);
      text-align: left;
    }

    .time-block.status-cancelled .time-label-status,
    .time-block.status-removed .time-label-status {
      right: 8px;
      letter-spacing: 0.03em;
    }

    .time-block.session-block {
      padding-left: 12px;
      padding-right: 8px;
    }

    /* ========== Time Labels ========== */
    .time-label {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      text-shadow: none;
    }

    .time-label-start {
      left: 5px;
      font-size: 0.64rem;
      opacity: 0.9;
      font-weight: 700;
      color: #486280;
      font-variant-numeric: tabular-nums;
    }

    .time-label-end {
      right: 5px;
      font-size: 0.64rem;
      opacity: 0.92;
      font-weight: 700;
      color: #486280;
      font-variant-numeric: tabular-nums;
    }

    .time-label-status {
      right: 6px;
      font-size: 0.62rem;
      opacity: 0.95;
      font-weight: 700;
      letter-spacing: 0.01em;
    }

    .calendar-booking-menu {
      position: absolute;
      z-index: 1200;
      min-width: 10rem;
      display: grid;
      gap: 0.3rem;
      padding: 0.55rem;
      border-radius: 0.8rem;
      background: rgba(22, 33, 46, 0.96);
      color: #f5fbff;
      border: 1px solid rgba(255, 255, 255, 0.12);
      box-shadow: 0 14px 30px rgba(17, 24, 39, 0.3);
      backdrop-filter: blur(10px);
    }

    .calendar-booking-menu-label {
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: #cfe3ef;
      padding: 0 0.15rem 0.15rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .calendar-booking-menu-action {
      border: none;
      border-radius: 0.6rem;
      padding: 0.55rem 0.7rem;
      text-align: left;
      font: inherit;
      font-size: 0.86rem;
      font-weight: 600;
      color: inherit;
      background: rgba(255, 255, 255, 0.08);
      cursor: pointer;
      transition: background 120ms ease;
    }

    .calendar-booking-menu-action:hover {
      background: rgba(255, 255, 255, 0.16);
    }

    .time-label-initials {
      left: 50%;
      transform: translate(-50%, -50%);
      font-size: 0.8rem;
      font-weight: 800;
      letter-spacing: 0.02em;
      color: var(--shell-text);
      text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
    }

    .time-label-session-initials {
      left: 8px;
      transform: translateY(-50%);
      font-size: 0.68rem;
      font-weight: 800;
      letter-spacing: 0.02em;
      color: var(--shell-text);
    }

    .time-label-session-range {
      left: 56%;
      transform: translate(-50%, -50%);
      font-size: 0.66rem;
      font-weight: 700;
      letter-spacing: 0.01em;
      color: #486280;
      font-variant-numeric: tabular-nums;
    }

    /* ========== Drag & Drop Styles ========== */
    .time-block.draggable {
      cursor: grab;
    }

    .time-block.dragging {
      opacity: 0.5;
      cursor: grabbing;
      z-index: 1000;
    }

    .calendar-day.drop-zone {
      position: relative;
    }

    .calendar-day.drop-zone::after {
      content: '';
      position: absolute;
      inset: 0;
      background: rgba(90, 136, 230, 0.08);
      border: 2px dashed rgba(90, 136, 230, 0.42);
      border-radius: 8px;
      pointer-events: none;
      opacity: 0;
      transition: opacity 150ms ease;
    }

    .calendar-day.drop-zone.drag-over::after {
      opacity: 1;
    }

    .edit-mode-active .time-block {
      cursor: grab;
    }

    .edit-mode-active .time-block:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    }

    /* ========== Edit Mode Toggle ========== */
    .edit-mode-toggle-container {
      display: flex;
      align-items: center;
      gap: 0.7rem;
      min-height: 38px;
      padding: 0.32rem 0.38rem 0.32rem 0.72rem;
      background: rgba(255, 255, 255, 0.82);
      backdrop-filter: blur(14px);
      border-radius: 999px;
      border: 1px solid rgba(110, 144, 191, 0.16);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
      transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
    }

    .edit-mode-toggle-container:hover {
      background: rgba(255, 255, 255, 0.92);
      border-color: rgba(110, 144, 191, 0.22);
      box-shadow: 0 6px 14px rgba(56, 78, 118, 0.06);
    }

    .toggle-switch {
      position: relative;
      display: inline-block;
      width: 34px;
      height: 18px;
      flex-shrink: 0;
    }

    .toggle-switch input {
      opacity: 0;
      width: 0;
      height: 0;
    }

    .toggle-slider {
      position: absolute;
      cursor: pointer;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(156, 173, 198, 0.24);
      border: 1px solid rgba(156, 173, 198, 0.36);
      transition: all 220ms ease;
      border-radius: 999px;
    }

    .toggle-slider:before {
      content: "";
      position: absolute;
      height: 12px;
      width: 12px;
      left: 2px;
      bottom: 2px;
      background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
      transition: all 220ms ease;
      border-radius: 50%;
      box-shadow:
        0 1px 4px rgba(56, 78, 118, 0.18),
        inset 0 1px 0 rgba(255,255,255,0.86);
    }

    input:checked + .toggle-slider {
      background: rgba(90, 136, 230, 0.24);
      border-color: rgba(90, 136, 230, 0.34);
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    }

    input:checked + .toggle-slider:before {
      transform: translateX(16px);
      background: #ffffff;
    }

    .toggle-label {
      font-weight: 700;
      color: var(--shell-muted);
      font-size: 0.72rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      user-select: none;
      cursor: pointer;
      transition: color 180ms ease;
    }

    .toggle-label:hover {
      color: var(--shell-text);
    }

    /* ========== Children Pool ========== */
    .children-pool-container {
      margin-top: 2rem;
      padding: 2rem;
      background: var(--glass-bg);
      border-radius: 16px;
      border: 1px dashed rgba(90, 136, 230, 0.24);
      box-shadow: var(--shadow-soft);
      transition: all 300ms ease;
    }

    .children-pool-container:hover {
      border-color: rgba(90, 136, 230, 0.32);
      box-shadow: 0 12px 22px rgba(56, 78, 118, 0.06);
    }

    .children-pool-header {
      margin-bottom: 1.5rem;
    }

    .children-pool-header h3 {
      margin: 0 0 0.5rem 0;
      color: var(--shell-text);
      font-weight: 400;
      font-size: 0.95rem;
    }

    .children-pool-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
    }

    /* ❄️ CHILD CHIPS - FROSTED CRYSTALS */
    .child-chip {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.875rem 1.25rem;
      background: rgba(255, 255, 255, 0.6);
      backdrop-filter: blur(12px) saturate(150%);
      border: 1px solid rgba(25, 118, 210, 0.25);
      border-radius: 12px;
      cursor: grab;
      transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
      user-select: none;
      box-shadow:
        0 2px 8px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.5);
      position: relative;
      overflow: hidden;
    }

    .child-chip::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 60%
      );
      transform: translateX(-100%) translateY(-100%);
      transition: transform 600ms ease;
    }

    .child-chip:hover::before {
      transform: translateX(100%) translateY(100%);
    }

    .child-chip:hover {
      transform: translateY(-4px) scale(1.02);
      box-shadow:
        0 8px 20px rgba(90, 136, 230, 0.14),
        0 0 20px rgba(90, 136, 230, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.8);
      border-color: rgba(90, 136, 230, 0.22);
      background: rgba(255, 255, 255, 0.85);
    }

    .child-chip.dragging {
      opacity: 0.7;
      cursor: grabbing;
      transform: rotate(5deg) scale(1.08);
      box-shadow:
        0 12px 30px rgba(25, 118, 210, 0.4),
        0 0 40px rgba(144, 202, 249, 0.5);
    }

    .child-chip-color {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    .child-chip-info {
      display: flex;
      flex-direction: column;
      gap: 0.125rem;
    }

    .child-chip-name {
      font-weight: 600;
      font-size: 0.875rem;
      color: var(--fg-primary);
    }

    .child-chip-details {
      font-size: 0.75rem;
      color: var(--fg-secondary);
    }

    /* ========== Delete Zone ========== */
    .delete-zone {
      min-width: 220px;
      padding: 2.5rem 2rem;
      background: rgba(255, 235, 238, 0.6);
      backdrop-filter: blur(15px);
      border: 2px dashed rgba(244, 67, 54, 0.4);
      border-radius: 16px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.75rem;
      transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 4px 16px rgba(244, 67, 54, 0.1);
    }

    .delete-zone.drag-over {
      background: rgba(255, 205, 210, 0.8);
      border-color: #F44336;
      border-width: 3px;
      transform: scale(1.08);
      box-shadow: 0 8px 32px rgba(244, 67, 54, 0.3), 0 0 30px rgba(244, 67, 54, 0.2);
    }

    .delete-zone-icon {
      font-size: 3.5rem;
      opacity: 0.5;
      transition: all 400ms ease;
      filter: drop-shadow(0 2px 8px rgba(244, 67, 54, 0.2));
    }

    .delete-zone.drag-over .delete-zone-icon {
      opacity: 1;
      transform: scale(1.3) rotate(10deg);
      filter: drop-shadow(0 4px 16px rgba(244, 67, 54, 0.4));
    }

    .delete-zone-text {
      font-weight: 500;
      color: #D32F2F;
      text-align: center;
      font-size: 0.875rem;
    }

    /* Old styles kept for backwards compatibility but hidden */
    .booking-block {
      display: none;
    }

    .overnight-bookings-container {
      display: none;
    }

    .overnight-block {
      display: none;
    }

    /* ========== Weekly Template ========== */
    .template-header {
      margin-bottom: 2rem;
    }

    .template-header h2 {
      margin-bottom: 0.5rem;
      font-size: var(--template-header-title-size) !important;
    }

    .template-header p {
      font-size: var(--template-header-text-size);
    }

    .template-header .btn {
      font-size: var(--template-btn-size);
      padding: 0.5rem 1rem;
    }

    /* Week section styling */
    .template-week-section {
      margin-bottom: 1.1rem;
      border-radius: 16px;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.3);
      box-shadow: var(--shadow-soft);
      background: rgba(255, 255, 255, 0.3);
      backdrop-filter: blur(10px);
      padding: 0.4rem;
    }

    .template-week-header {
      margin-bottom: 0.4rem;
      padding: 0.4rem 0.85rem;
      background: linear-gradient(135deg, rgba(25, 118, 210, 0.8), rgba(66, 165, 245, 0.8));
      border-radius: 12px;
      box-shadow: 0 2px 8px rgba(25, 118, 210, 0.2);
    }

    .template-week-header h3 {
      margin: 0;
      color: white;
      font-size: var(--template-week-header-size);
      font-weight: 600;
    }

    .btn-week {
      padding: 0.75rem 1.5rem;
      font-weight: 600;
      border: 2px solid var(--border-light);
    }

    .btn-week.active {
      background: var(--accent-primary);
      border-color: var(--accent-primary);
      color: white;
    }

    .children-pool {
      padding: 1rem;
      background: var(--bg-card);
      border: 2px dashed var(--border-light);
      border-radius: 12px;
    }

    .children-pool h3 {
      font-size: var(--template-pool-title-size);
      margin-bottom: 1rem;
    }

    .children-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-top: 1rem;
    }

    .draggable-child {
      padding: 0.5rem 1rem;
      background: var(--accent-secondary);
      color: var(--fg-primary);
      border-radius: 8px;
      cursor: grab;
      transition: all 200ms ease;
      font-weight: 500;
      font-size: var(--child-chip-details-size);
    }

    .draggable-child:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    .draggable-child:active {
      cursor: grabbing;
    }

    .template-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 0.4rem;
    }

    .template-day {
      background: rgba(255, 255, 255, 0.9);
      border: 1px solid rgba(255, 255, 255, 0.3);
      border-radius: 12px;
      padding: 0.4rem;
      min-height: 104px;
      transition: all 300ms ease;
    }

    .template-day.weekend {
      background: rgba(74, 158, 255, 0.03);
    }

    .template-day.drag-over {
      border-color: var(--accent-primary);
      background: rgba(74, 158, 255, 0.1);
    }

    .template-day-header {
      font-weight: 600;
      font-size: var(--template-day-size);
      color: var(--fg-secondary);
      margin-bottom: 0.3rem;
      padding-bottom: 0.2rem;
      border-bottom: 1px solid var(--border-light);
    }

    .template-day-children {
      display: flex;
      flex-direction: column;
      gap: 0.3rem;
      flex: 1;
    }

    /* Template timeline - like calendar timeline */
    .template-timeline {
      display: grid;
      gap: 0.2rem;
      position: relative;
      overflow: visible;
    }

    .template-time-label {
      font-size: 0.68rem;
      font-weight: 600;
      color: var(--fg-muted);
      line-height: 1;
      margin-top: 0.1rem;
    }

    .template-time-slot {
      display: flex;
      flex-direction: column;
      gap: 0.15rem;
      min-height: 24px;
      position: relative;
      overflow: visible;
    }

    .template-slot-empty {
      color: var(--fg-muted);
      font-size: 0.75rem;
      line-height: 1.5;
      opacity: 0.7;
    }

    .template-time-block {
      height: 24px;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-weight: 600;
      font-size: 0.68rem;
      position: relative;
      cursor: pointer;
      transition: all 200ms ease;
      box-shadow: none;
      overflow: visible;
      z-index: 2;
    }

    .template-time-block.overnight-span {
      z-index: 4;
      box-shadow: none;
    }

    .template-time-block:hover {
      transform: translateY(-1px);
      box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    }

    .template-block-remove {
      position: absolute;
      right: 2px;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(0,0,0,0.3);
      border: none;
      color: white;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      cursor: pointer;
      font-size: 0.875rem;
      line-height: 1;
      display: none;
      align-items: center;
      justify-content: center;
      transition: all 150ms ease;
    }

    .template-time-block:hover .template-block-remove {
      display: flex;
    }

    .template-block-remove:hover {
      background: rgba(0,0,0,0.5);
      transform: translateY(-50%) scale(1.1);
    }

    .combined-week-toolbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 1rem;
      flex-wrap: wrap;
      margin-bottom: 1rem;
    }

    .combined-week-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 0.9rem;
    }

    .combined-week-empty {
      color: var(--fg-muted);
      padding: 1rem;
      border-radius: var(--radius-md);
      border: 1px dashed var(--border-light);
      background: rgba(255, 255, 255, 0.04);
    }

    .combined-day-card {
      border: 1px solid var(--border-light);
      border-radius: var(--radius-md);
      background: rgba(255, 255, 255, 0.04);
      padding: 0.8rem;
      display: flex;
      flex-direction: column;
      gap: 0.65rem;
      min-height: 300px;
    }

    .combined-day-card.weekend {
      border-color: rgba(210, 113, 69, 0.45);
      background: rgba(210, 113, 69, 0.08);
    }

    .combined-day-title {
      font-size: 0.94rem;
      font-weight: 700;
      color: var(--fg-primary);
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      gap: 0.5rem;
    }

    .combined-day-date {
      color: var(--fg-muted);
      font-size: 0.78rem;
      font-weight: 500;
    }

    .combined-day-kpi {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
    }

    .combined-kpi-chip {
      font-size: 0.74rem;
      border-radius: 999px;
      padding: 0.18rem 0.55rem;
      background: rgba(116, 192, 252, 0.18);
      color: #8bc8ff;
      border: 1px solid rgba(116, 192, 252, 0.4);
      white-space: nowrap;
    }

    .combined-kpi-chip.neutral {
      background: rgba(255, 255, 255, 0.08);
      color: var(--fg-secondary);
      border-color: var(--border-light);
    }

    .combined-kpi-chip.negative {
      background: rgba(233, 92, 92, 0.18);
      color: #ffb3b3;
      border-color: rgba(233, 92, 92, 0.45);
    }

    .combined-kpi-chip.positive {
      background: rgba(108, 196, 124, 0.18);
      color: #b7efc1;
      border-color: rgba(108, 196, 124, 0.45);
    }

    .combined-section {
      display: flex;
      flex-direction: column;
      gap: 0.3rem;
    }

    .combined-section h4 {
      font-size: 0.79rem;
      color: var(--fg-muted);
      text-transform: uppercase;
      letter-spacing: 0.04em;
      margin: 0;
    }

    .combined-section-list {
      display: flex;
      flex-direction: column;
      gap: 0.28rem;
      margin: 0;
      padding-left: 0;
      list-style: none;
    }

    .combined-section-list li {
      font-size: 0.77rem;
      border-radius: 8px;
      padding: 0.28rem 0.4rem;
      background: rgba(255, 255, 255, 0.06);
      display: flex;
      justify-content: space-between;
      gap: 0.4rem;
      align-items: flex-start;
      color: var(--fg-secondary);
    }

    .combined-list-label {
      color: var(--fg-primary);
      font-weight: 600;
      flex-shrink: 0;
      padding-top: 0.12rem;
    }

    .combined-list-meta {
      color: var(--fg-muted);
      font-size: 0.72rem;
      text-align: right;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 0.2rem;
      min-width: 0;
      flex: 1;
    }

    .combined-shift-row {
      display: flex;
      align-items: center;
      gap: 0.3rem;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .combined-shift-text {
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
      font-size: 0.69rem;
      color: var(--fg-secondary);
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: 999px;
      padding: 0.08rem 0.45rem;
    }

    .combined-shift-status {
      font-size: 0.66rem;
      border-radius: 999px;
      padding: 0.06rem 0.42rem;
      border: 1px solid transparent;
      line-height: 1.2;
      white-space: nowrap;
    }

    .combined-shift-status.included {
      color: #b7efc1;
      background: rgba(108, 196, 124, 0.22);
      border-color: rgba(108, 196, 124, 0.45);
    }

    .combined-shift-status.outside {
      color: #e2e7ef;
      background: rgba(255, 255, 255, 0.12);
      border-color: rgba(255, 255, 255, 0.2);
    }

    .combined-shift-status.excluded {
      color: #ffcc98;
      background: rgba(210, 113, 69, 0.22);
      border-color: rgba(210, 113, 69, 0.45);
    }

    /* Tab-knappar - måste vara mindre än månad */
    .tab {
      font-size: 0.875rem !important; /* 14px - mindre än månad 18px */
    }

    /* Card titles - måste vara mindre än månad */
    .card-title {
      font-size: var(--group-card-title-size) !important;
    }

    /* Groups view specific styling */
    #tab-groups .text-muted {
      font-size: var(--group-instruction-size);
    }

    #tab-groups .form-label {
      font-size: var(--group-label-size);
    }

    #tab-groups .form-select {
      font-size: var(--group-select-size);
    }

    #tab-groups .btn {
      font-size: var(--group-btn-size);
    }

    .group-child-info {
      font-size: var(--group-child-info-size);
    }

    /* Minimalistiska navigation-knappar */
    .calendar-nav .btn {
      padding: 0.3rem 0.6rem;
      font-size: 0.875rem;
      min-width: unset;
    }

    /* Mindre + knapp med mildare isblå färg */
    .header .btn-primary {
      padding: 0.3rem 0.6rem;
      font-size: 0.75rem;
      background: rgba(47, 90, 86, 0.1);
      border: 1px solid rgba(47, 90, 86, 0.18);
      color: var(--shell-accent);
      transition: all 200ms ease;
    }

    .header .btn-primary:hover {
      background: rgba(47, 90, 86, 0.14);
      border-color: rgba(47, 90, 86, 0.24);
    }

    /* Även kalender + knappen */
    .calendar-header .btn-primary {
      padding: 0.3rem 0.6rem;
      font-size: 0.75rem;
      background: rgba(47, 90, 86, 0.1);
      border: 1px solid rgba(47, 90, 86, 0.18);
      color: var(--shell-accent);
      min-width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .calendar-header .btn-primary:hover {
      background: rgba(47, 90, 86, 0.14);
      border-color: rgba(47, 90, 86, 0.24);
    }

    /* Inline-style migration helpers (CSP prep) */
    .header-admin-link {
      display: inline-flex;
    }

    .tab-icon {
      color: var(--shell-accent);
    }

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

    .children-sort-controls {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .template-apply-actions {
      display: flex;
      gap: 1rem;
      margin-top: 1rem;
    }

    .children-pool-spaced {
      margin-bottom: 2rem;
    }

    .calendar-header-actions {
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    .children-pool-layout {
      display: flex;
      justify-content: space-between;
      gap: 2rem;
    }

    .children-pool-main {
      flex: 1;
    }

    .children-pool-help {
      color: var(--fg-secondary);
      font-size: 0.875rem;
    }

    .combined-week-actions {
      display: flex;
      gap: 0.6rem;
    }

    .checkbox-inline-label {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      cursor: pointer;
    }

    .uv-auto-text {
      color: var(--accent-primary);
    }

    .uv-auto-disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }

    .decision-history-box {
      max-height: 240px;
      overflow: auto;
      border: 1px solid var(--border-light);
      border-radius: 8px;
      padding: 0.75rem;
    }

    .monthly-sheet-dialog {
      max-width: 980px;
    }

    .form-group-tight {
      margin-bottom: 0;
    }

    .initials-highlight {
      font-weight: 700;
      color: var(--accent-primary);
    }

    .icon-toilet {
      color: var(--shell-accent);
    }

    .uv-follows-age-mark {
      color: var(--accent-primary);
    }

    .weekly-distribution-card {
      margin-top: 1rem;
      padding: 0.75rem;
      background: var(--bg-secondary);
      border-radius: 8px;
      border: 1px solid var(--border-light);
    }

    .weekly-distribution-title {
      font-size: 0.875rem;
      font-weight: 600;
      margin-bottom: 0.5rem;
      color: var(--fg-secondary);
    }

    .weekly-distribution-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      font-size: 0.875rem;
    }

    .child-actions-row {
      display: flex;
      gap: 0.5rem;
      margin-top: 1rem;
    }

    .group-child-label {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.5rem;
      background: var(--bg-secondary);
      border-radius: 8px;
      cursor: pointer;
      border-left: 4px solid transparent;
    }

    .group-errors-title {
      margin-bottom: 0.75rem;
      color: var(--error);
    }

    .group-warnings-title {
      margin-bottom: 0.75rem;
      color: #d4af37;
    }

    .decision-history-entry {
      border: 1px solid var(--border-light);
      border-radius: 8px;
      padding: 0.75rem;
      margin-bottom: 0.5rem;
    }

    .decision-history-entry-header {
      display: flex;
      justify-content: space-between;
      gap: 0.75rem;
      align-items: center;
    }

    .decision-history-status {
      font-weight: 600;
    }

    .decision-history-status-active {
      color: var(--success);
    }

    .decision-history-status-inactive {
      color: var(--fg-muted);
    }

    .decision-history-meta {
      font-size: 0.875rem;
      color: var(--fg-secondary);
      margin-top: 0.25rem;
    }

    .decision-history-submeta {
      font-size: 0.875rem;
      color: var(--fg-muted);
      margin-top: 0.25rem;
    }

    .decision-history-actions {
      margin-top: 0.5rem;
    }

    .room-accent-1 { border-left-color: #FFD700; }
    .room-accent-2 { border-left-color: #FF69B4; }
    .room-accent-3 { border-left-color: #FF8C42; }
    .room-accent-4 { border-left-color: #7ca2a0; }
    .room-accent-5 { border-left-color: #66BB6A; }
    .room-accent-6 { border-left-color: #3F51B5; }
    .room-accent-default { border-left-color: #4A9EFF; }

    .room-bg-1 { background-color: #FFD700; }
    .room-bg-2 { background-color: #FF69B4; }
    .room-bg-3 { background-color: #FF8C42; }
    .room-bg-4 { background-color: #7ca2a0; }
    .room-bg-5 { background-color: #66BB6A; }
    .room-bg-6 { background-color: #3F51B5; }
    .room-bg-default { background-color: #4A9EFF; }

    .template-room-dot {
      display: inline-block;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      margin-right: 6px;
      border: 1px solid rgba(0, 0, 0, 0.2);
      flex-shrink: 0;
    }

    .app-notification-container {
      position: fixed;
      top: 1rem;
      right: 1rem;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      width: min(360px, calc(100vw - 2rem));
      z-index: 2200;
      pointer-events: none;
    }

    .app-toast {
      pointer-events: auto;
      background: rgba(255, 255, 255, 0.95);
      border: 1px solid rgba(74, 129, 170, 0.24);
      border-left-width: 4px;
      border-radius: 12px;
      box-shadow: 0 14px 30px rgba(23, 51, 78, 0.18);
      color: #12344d;
      font-size: 0.9rem;
      line-height: 1.4;
      padding: 0.75rem 0.9rem;
      transform: translate3d(0, -8px, 0);
      opacity: 0;
      transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .app-toast.is-visible {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }

    .app-toast.is-closing {
      opacity: 0;
      transform: translate3d(0, -6px, 0);
    }

    .app-toast-success {
      border-left-color: #2e7d32;
    }

    .app-toast-error {
      border-left-color: #c62828;
    }

    .app-toast-warning {
      border-left-color: #ef6c00;
    }

    .app-toast-info {
      border-left-color: #1565c0;
    }

    @media (max-width: 640px) {
      .app-notification-container {
        top: auto;
        bottom: 0.75rem;
        left: 0.75rem;
        right: 0.75rem;
        width: auto;
      }
    }

    /* ========== 2026 UNIFIED APP SHELL ========== */
    :root {
      --shell-bg: #f3f7fd;
      --shell-bg-alt: #e8f0fb;
      --shell-surface: rgba(249, 252, 255, 0.94);
      --shell-surface-strong: rgba(255, 255, 255, 0.98);
      --shell-border: rgba(110, 144, 191, 0.14);
      --shell-shadow: 0 22px 46px rgba(39, 58, 92, 0.08);
      --shell-shadow-soft: 0 10px 22px rgba(39, 58, 92, 0.05);
      --shell-text: #233a57;
      --shell-muted: #6e8098;
      --shell-soft: #91a4bc;
      --shell-accent: #5a88e6;
      --shell-accent-soft: #eaf2ff;
      --shell-warm: #ba8740;
      --shell-success: #6c8fe6;
      --shell-danger: #a55d4e;
      --shell-radius-xl: 28px;
      --shell-radius-lg: 20px;
      --shell-radius-md: 14px;
      --shell-radius-sm: 10px;
    }

    body {
      background:
        radial-gradient(circle at top right, rgba(214, 228, 255, 0.9), transparent 28%),
        radial-gradient(circle at left center, rgba(234, 244, 255, 0.72), transparent 24%),
        linear-gradient(180deg, var(--shell-bg) 0%, var(--shell-bg-alt) 100%) !important;
      color: var(--shell-text) !important;
      font-family: "Aptos", "Source Sans 3", "Noto Sans", "Segoe UI", sans-serif !important;
      min-height: 100vh;
      margin: 0;
    }

    body::before,
    body::after,
    .container::before,
    .container::after {
      content: none !important;
      display: none !important;
    }

    .app-shell {
      position: relative;
      z-index: 2;
      display: grid;
      grid-template-columns: minmax(188px, 202px) minmax(0, 1fr);
      gap: 1.5rem;
      min-height: 100vh;
      padding: 1.25rem;
    }

    .app-sidebar,
    .workspace-topbar,
    .planning-hub,
    .tab-content,
    .card,
    .modal-content,
    .calendar-usage-panel,
    .children-pool-container {
      background: var(--shell-surface) !important;
      border: 1px solid var(--shell-border) !important;
      box-shadow: var(--shell-shadow-soft) !important;
    }

    .app-sidebar {
      display: flex;
      flex-direction: column;
      gap: 0.9rem;
      padding: 1rem 0.8rem;
      border-radius: var(--shell-radius-xl);
      position: sticky;
      top: 1.25rem;
      height: calc(100vh - 2.5rem);
    }

    .sidebar-brand h1 {
      display: flex;
      align-items: center;
      gap: 0.55rem;
      margin: 0.1rem 0 0.15rem;
      font-family: "Fraunces", "Iowan Old Style", "Georgia", serif !important;
      font-size: 1.52rem !important;
      font-weight: 600 !important;
      letter-spacing: -0.03em !important;
      color: var(--shell-text) !important;
      text-shadow: none !important;
    }

    .sidebar-kicker,
    .workspace-kicker,
    .planning-hub-kicker,
    .section-shell-kicker,
    .sidebar-nav-label {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      font-size: 0.72rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.16em;
      color: var(--shell-soft);
    }

    .sidebar-kicker {
      display: none;
    }

    .sidebar-copy,
    .workspace-heading p,
    .planning-hub-copy,
    .section-shell-header p,
    .sidebar-context-card p {
      color: var(--shell-muted) !important;
      line-height: 1.55;
      margin: 0;
    }

    .sidebar-nav {
      display: grid;
      gap: 0.7rem;
      margin-top: 0.25rem;
    }

    .sidebar-nav-group {
      display: grid;
      gap: 0.42rem;
    }

    .sidebar-workspace-block {
      display: grid;
      gap: 0.14rem;
    }

    .workspace-nav-btn,
    .sidebar-tab,
    .sidebar-admin-link {
      display: grid;
      grid-template-columns: 1fr;
      gap: 0;
      align-items: center;
      width: 100%;
      padding: 0.5rem 0.42rem;
      border-radius: 10px;
      border: 1px solid transparent;
      background: transparent;
      color: inherit;
      text-align: left;
      text-decoration: none;
      font: inherit;
      cursor: pointer;
      appearance: none;
      transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    }

    .workspace-nav-btn:hover,
    .workspace-nav-btn:focus-visible,
    .sidebar-tab:hover,
    .sidebar-admin-link:hover,
    .sidebar-tab:focus-visible,
    .sidebar-admin-link:focus-visible {
      background: rgba(255, 255, 255, 0.52);
      border-color: transparent;
      box-shadow: none;
    }

    .workspace-nav-btn.active,
    .sidebar-tab.active {
      background: rgba(234, 242, 255, 0.72);
      border-color: transparent;
      box-shadow: inset 2px 0 0 var(--shell-accent);
    }

    .workspace-nav-btn.active .sidebar-tab-text strong,
    .sidebar-admin-link:hover .sidebar-tab-text strong,
    .sidebar-admin-link:focus-visible .sidebar-tab-text strong {
      color: var(--shell-accent);
    }

    .sidebar-admin-link {
      box-shadow: none;
    }

    .workspace-nav-btn.active .sidebar-tab-icon,
    .workspace-nav-btn:hover .sidebar-tab-icon,
    .workspace-nav-btn:focus-visible .sidebar-tab-icon,
    .sidebar-admin-link:hover .sidebar-tab-icon,
    .sidebar-admin-link:focus-visible .sidebar-tab-icon {
      background: rgba(90, 136, 230, 0.1);
      color: var(--shell-accent);
      box-shadow: inset 0 0 0 1px rgba(90, 136, 230, 0.08);
    }

    .sidebar-tab-icon {
      display: none;
      align-items: center;
      justify-content: center;
      width: 2.5rem;
      height: 2.5rem;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.82);
      color: var(--shell-accent);
      box-shadow: inset 0 0 0 1px rgba(90, 136, 230, 0.08);
    }

    .sidebar-tab-text {
      display: grid;
      gap: 0;
    }

    .sidebar-tab-text strong,
    .sidebar-admin-link strong {
      font-size: 0.88rem;
      color: var(--shell-text);
    }

    .sidebar-tab-text small,
    .sidebar-admin-link small {
      font-size: 0.82rem;
      color: var(--shell-muted);
      line-height: 1.45;
    }

    .sidebar-subnav-group {
      display: grid;
      gap: 0.08rem;
      padding-left: 0.35rem;
    }

    .sidebar-subnav-link {
      display: inline-flex;
      align-items: center;
      justify-content: flex-start;
      min-height: 0;
      padding: 0.2rem 0.42rem;
      border-radius: 8px;
      border: 1px solid transparent;
      background: transparent;
      color: var(--shell-muted);
      font-size: 0.74rem !important;
      font-weight: 600;
      transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    }

    .sidebar-subnav-link:hover,
    .sidebar-subnav-link:focus-visible {
      background: rgba(255, 255, 255, 0.48);
      border-color: transparent;
      color: var(--shell-text);
    }

    .sidebar-subnav-link.active {
      background: rgba(234, 242, 255, 0.62);
      border-color: transparent;
      color: var(--shell-accent);
      box-shadow: inset 2px 0 0 rgba(90, 136, 230, 0.62);
    }

    .sidebar-copy {
      display: none;
    }

    .app-main {
      display: grid;
      gap: 1.25rem;
      min-width: 0;
      align-content: start;
    }

    .workspace-topbar {
      display: flex;
      justify-content: space-between;
      gap: 1.4rem;
      align-items: flex-start;
      padding: 1.5rem 1.6rem;
      border-radius: var(--shell-radius-xl);
      box-shadow: var(--shell-shadow);
    }

    .workspace-heading {
      max-width: 620px;
      display: grid;
      gap: 0.5rem;
    }

    .workspace-heading h2,
    .planning-hub h3,
    .section-shell-header h3 {
      margin: 0;
      font-family: "Fraunces", "Iowan Old Style", "Georgia", serif;
      font-weight: 600;
      letter-spacing: -0.03em;
      color: var(--shell-text);
    }

    .workspace-heading h2 {
      font-size: clamp(2rem, 3vw, 3rem);
      line-height: 0.96;
    }

    .workspace-toolbar {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
      align-items: stretch;
      justify-content: flex-end;
    }

    .workspace-toolbar-group {
      display: flex;
      gap: 0.75rem;
      align-items: center;
      flex-wrap: wrap;
    }

    .workspace-toolbar-group-facility {
      padding: 0.85rem 1rem;
      border-radius: var(--shell-radius-md);
      background: var(--shell-surface-strong);
      border: 1px solid rgba(110, 144, 191, 0.12);
    }

    .workspace-facility-summary {
      display: grid;
      gap: 0.15rem;
    }

    .workspace-facility-label {
      font-size: 0.76rem;
      color: var(--shell-soft);
      text-transform: uppercase;
      letter-spacing: 0.12em;
    }

    #active-facility-name {
      font-size: 1rem;
      color: var(--shell-text);
      max-width: 240px;
    }

    .workspace-facility-switcher {
      display: flex;
      align-items: center;
      gap: 0.55rem;
    }

    .workspace-subnav {
      display: flex;
      align-items: center;
      min-height: 44px;
      padding: 0.15rem 0.2rem 0.25rem;
    }

    .workspace-subnav-group {
      display: flex;
      flex-wrap: wrap;
      gap: 0.25rem;
      min-width: 0;
    }

    .workspace-subnav-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.38rem 0.62rem;
      border-radius: 999px;
      border: 1px solid transparent;
      background: transparent;
      color: var(--shell-muted);
      font-size: 0.8rem !important;
      font-weight: 600;
      letter-spacing: -0.01em;
      box-shadow: none;
      transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    }

    .workspace-subnav-btn i {
      color: var(--shell-accent);
    }

    .workspace-subnav-btn:hover,
    .workspace-subnav-btn:focus-visible {
      background: rgba(234, 242, 255, 0.58);
      border-color: transparent;
      color: var(--shell-text);
      box-shadow: none;
    }

    .workspace-subnav-btn.active {
      background: rgba(234, 242, 255, 0.82);
      border-color: rgba(110, 144, 191, 0.14);
      color: var(--shell-accent);
    }

    .workspace-action-btn,
    .planning-action-card,
    .calendar-prev-btn,
    .calendar-next-btn {
      box-shadow: none !important;
    }

    .planning-hub {
      display: none;
      gap: 1.1rem;
      padding: 1.45rem 1.55rem;
      border-radius: var(--shell-radius-xl);
      overflow: hidden;
    }

    body[data-current-tab="schedule"] .planning-hub {
      display: grid;
    }

    .planning-hub-header {
      display: flex;
      justify-content: flex-start;
      gap: 1rem;
      align-items: end;
    }

    .planning-hub-header h3 {
      font-size: 1.5rem;
    }

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

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

    .planning-stat-card,
    .planning-action-card {
      border-radius: var(--shell-radius-lg);
      padding: 1.15rem;
      background: var(--shell-surface-strong);
      border: 1px solid rgba(110, 144, 191, 0.12);
      min-width: 0;
    }

    .planning-stat-card {
      display: grid;
      gap: 0.45rem;
    }

    .planning-stat-label {
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.13em;
      color: var(--shell-soft);
      font-weight: 700;
    }

    .planning-stat-value {
      font-size: clamp(1.8rem, 2.8vw, 2.5rem);
      line-height: 1;
      color: var(--shell-text);
      font-weight: 700;
    }

    .planning-stat-note {
      display: none;
    }

    .planning-action-card {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 0.95rem;
      align-items: start;
      width: 100%;
      text-align: left;
      color: inherit;
      cursor: pointer;
      transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    }

    .planning-action-card:hover,
    .planning-action-card:focus-visible {
      border-color: rgba(47, 90, 86, 0.14);
      box-shadow: 0 10px 18px rgba(41, 31, 24, 0.05);
    }

    .planning-action-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 2.75rem;
      height: 2.75rem;
      border-radius: 1rem;
      background: var(--shell-accent-soft);
      color: var(--shell-accent);
      font-size: 1rem;
    }

    .planning-action-text {
      display: grid;
      gap: 0.25rem;
    }

    .planning-action-text strong {
      font-size: 1rem;
      color: var(--shell-text);
    }

    .planning-action-text small {
      color: var(--shell-muted);
      line-height: 1.45;
      font-size: 0.88rem;
    }

    .workspace-summary-grid {
      display: grid;
      gap: 1rem;
      grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
      margin-bottom: 1rem;
    }

    .workspace-summary-grid-compact {
      grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    }

    .workspace-summary-card,
    .workspace-panel,
    .workspace-note-panel {
      background: var(--shell-surface-strong);
      border: 1px solid rgba(110, 144, 191, 0.12);
      box-shadow: none;
    }

    .workspace-summary-card {
      display: grid;
      gap: 0.28rem;
      padding: 0.82rem 0.9rem;
      border-radius: var(--shell-radius-lg);
      min-width: 0;
    }

    .workspace-summary-label {
      font-size: 0.76rem;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--shell-soft);
    }

    .workspace-summary-value {
      margin: 0;
      font-family: "Fraunces", "Iowan Old Style", "Georgia", serif;
      font-size: clamp(1.45rem, 2vw, 2rem);
      line-height: 1;
      color: var(--shell-text);
    }

    .workspace-summary-copy {
      display: none;
    }

    .workspace-shell-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
      gap: 1rem;
      align-items: start;
    }

    .workspace-shell-main,
    .workspace-shell-rail {
      min-width: 0;
    }

    .workspace-shell-main {
      display: grid;
      gap: 1rem;
    }

    .workspace-shell-rail {
      display: grid;
      gap: 1rem;
      align-content: start;
    }

    .workspace-panel {
      padding: 1rem 1.05rem 1.1rem;
      border-radius: var(--shell-radius-lg);
    }

    .workspace-note-panel {
      display: grid;
      gap: 0.65rem;
      padding: 1rem 1.05rem;
      border-radius: var(--shell-radius-lg);
    }

    .workspace-note-panel-accent {
      background: var(--shell-accent-soft);
    }

    .workspace-note-kicker {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--shell-soft);
    }

    .workspace-note-panel h4 {
      margin: 0;
      font-size: 1.05rem;
      color: var(--shell-text);
    }

    .workspace-note-panel p {
      margin: 0;
      color: var(--shell-muted);
      line-height: 1.55;
      font-size: 0.92rem;
    }

    .workspace-note-list {
      margin: 0;
      padding-left: 1rem;
      display: grid;
      gap: 0.45rem;
      color: var(--shell-muted);
      font-size: 0.9rem;
      line-height: 1.5;
    }

    .children-toolbar-actions {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      flex-wrap: wrap;
      margin-left: auto;
    }

    .workspace-search-field {
      display: inline-flex;
      align-items: center;
      gap: 0.65rem;
      min-width: min(100%, 320px);
      padding: 0.55rem 0.8rem;
      border-radius: 999px;
      border: 1px solid rgba(110, 144, 191, 0.14);
      background: rgba(255, 255, 255, 0.88);
      color: var(--shell-soft);
    }

    .workspace-search-field i {
      color: var(--shell-accent);
    }

    .workspace-search-input {
      min-width: 220px;
      border: none !important;
      background: transparent !important;
      padding: 0 !important;
      box-shadow: none !important;
    }

    .workspace-search-input:focus {
      box-shadow: none !important;
    }

    .workspace-results-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 42px;
      padding: 0.35rem 0.8rem;
      border-radius: 999px;
      background: rgba(90, 136, 230, 0.1);
      color: var(--shell-accent);
      font-size: 0.84rem;
      font-weight: 700;
      white-space: nowrap;
    }

    .workspace-empty-panel {
      grid-column: 1 / -1;
      display: grid;
      gap: 0.45rem;
      justify-items: center;
      padding: 2.2rem 1.2rem;
      border-radius: var(--shell-radius-lg);
      border: 1px dashed rgba(110, 144, 191, 0.2);
      background: rgba(255, 255, 255, 0.62);
      text-align: center;
    }

    .workspace-empty-panel strong {
      font-size: 1rem;
      color: var(--shell-text);
    }

    .workspace-empty-panel p {
      margin: 0;
      max-width: 36ch;
      color: var(--shell-muted);
      line-height: 1.5;
    }

    .child-card {
      display: grid;
      gap: 0.95rem;
      padding: 1rem !important;
      border-color: rgba(110, 144, 191, 0.12) !important;
      background: rgba(255, 255, 255, 0.96) !important;
      box-shadow: 0 14px 24px rgba(33, 45, 39, 0.055) !important;
    }

    .child-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 16px 28px rgba(33, 45, 39, 0.07) !important;
    }

    .child-card-header {
      margin-bottom: 0;
      gap: 0.9rem;
    }

    .child-name {
      font-size: 1.04rem;
      line-height: 1.25;
      color: var(--shell-text);
    }

    .child-age-uv {
      color: var(--shell-muted);
      margin-top: 0.35rem;
    }

    .capacity-badge {
      min-width: 68px;
      text-align: center;
      border-radius: 999px;
      padding: 0.5rem 0.9rem;
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    }

    .child-status-row {
      display: flex;
      flex-wrap: wrap;
      gap: 0.45rem;
    }

    .child-status-chip {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      min-height: 32px;
      padding: 0.3rem 0.7rem;
      border-radius: 999px;
      border: 1px solid rgba(110, 144, 191, 0.14);
      background: rgba(255, 255, 255, 0.72);
      color: var(--shell-muted);
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.02em;
    }

    .child-status-chip.active {
      background: rgba(90, 136, 230, 0.12);
      color: var(--shell-success);
      border-color: rgba(90, 136, 230, 0.2);
    }

    .child-status-chip.inactive {
      background: rgba(181, 77, 43, 0.1);
      color: var(--shell-danger);
      border-color: rgba(181, 77, 43, 0.18);
    }

    .child-status-chip.warning {
      background: rgba(188, 108, 37, 0.12);
      color: var(--shell-warm);
      border-color: rgba(188, 108, 37, 0.18);
    }

    .child-status-chip.neutral {
      color: var(--shell-text);
    }

    .child-meta-grid,
    .child-highlight-grid {
      display: grid;
      gap: 0.45rem 1rem;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      padding-top: 0.72rem;
      border-top: 1px solid rgba(110, 144, 191, 0.1);
    }

    .child-highlight-grid {
      grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    }

    .child-meta-item {
      display: grid;
      gap: 0.18rem;
      padding: 0.05rem 0;
      border-radius: 0;
      border: 0;
      background: transparent;
      min-width: 0;
    }

    .child-meta-item.info {
      background: transparent;
      border: 0;
    }

    .child-meta-item.success {
      background: transparent;
      border: 0;
    }

    .child-meta-item.warning {
      background: transparent;
      border: 0;
    }

    .child-meta-label {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--shell-soft);
    }

    .child-meta-value {
      font-size: 0.95rem;
      line-height: 1.35;
      color: var(--shell-text);
      font-weight: 700;
    }

    .weekly-distribution-card {
      margin-top: 0;
      padding: 0.72rem 0 0;
      background: transparent;
      border-radius: 0;
      border: 0;
      border-top: 1px solid rgba(82, 100, 91, 0.08);
    }

    .weekly-distribution-title {
      margin-bottom: 0.55rem;
      color: var(--shell-text);
      letter-spacing: 0.02em;
    }

    .child-support-grid {
      display: grid;
      gap: 0.75rem;
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      padding-top: 0.72rem;
      border-top: 1px solid rgba(110, 144, 191, 0.1);
    }

    .child-tag-section {
      display: grid;
      gap: 0.55rem;
      padding: 0;
      border-radius: 0;
      background: transparent;
      border: 0;
    }

    .child-tag-section-warning {
      background: transparent;
      border: 0;
    }

    .child-tag-section-note {
      background: transparent;
    }

    .child-tag-title {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--shell-soft);
    }

    .child-interests {
      gap: 0.35rem;
      margin-top: 0;
    }

    .interest-tag {
      display: inline-flex;
      align-items: center;
      min-height: 28px;
      padding: 0.22rem 0.55rem;
      border-radius: 999px;
      background: rgba(90, 136, 230, 0.08);
      border: 1px solid rgba(90, 136, 230, 0.14);
      color: var(--shell-accent);
      font-size: 0.76rem;
      font-weight: 600;
    }

    .interest-tag-warning {
      background: rgba(188, 108, 37, 0.1);
      border-color: rgba(188, 108, 37, 0.15);
      color: var(--shell-warm);
    }

    .child-note-preview {
      margin: 0;
      color: var(--shell-muted);
      line-height: 1.55;
      font-size: 0.88rem;
    }

    .child-actions-row {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 0.6rem;
      margin-top: 0;
      padding-top: 0.8rem;
      border-top: 1px solid rgba(110, 144, 191, 0.1);
    }

    .child-actions-row .btn {
      justify-content: center;
      min-height: 44px;
    }

    .group-result-card {
      padding: 0.2rem !important;
      background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 255, 0.98)) !important;
      box-shadow: 0 20px 44px rgba(39, 58, 92, 0.09) !important;
    }

    .group-card.success {
      border-left-color: var(--shell-success);
    }

    .group-result-header {
      display: grid;
      gap: 0.75rem;
      padding-bottom: 1rem;
      border-bottom: 1px solid rgba(112, 77, 53, 0.08);
    }

    .group-result-heading {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      flex-wrap: wrap;
    }

    .group-status-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 34px;
      padding: 0.3rem 0.75rem;
      border-radius: 999px;
      border: 1px solid transparent;
      font-size: 0.76rem;
      font-weight: 700;
      letter-spacing: 0.03em;
      white-space: nowrap;
    }

    .group-status-pill.success {
      background: rgba(61, 127, 90, 0.12);
      border-color: rgba(61, 127, 90, 0.2);
      color: var(--shell-success);
    }

    .group-status-pill.warning {
      background: rgba(188, 108, 37, 0.12);
      border-color: rgba(188, 108, 37, 0.18);
      color: var(--shell-warm);
    }

    .group-status-pill.error {
      background: rgba(181, 77, 43, 0.1);
      border-color: rgba(181, 77, 43, 0.18);
      color: var(--shell-danger);
    }

    .group-summary-lead {
      margin: 0;
      color: var(--shell-muted);
      line-height: 1.55;
      font-size: 0.92rem;
    }

    .group-summary-grid {
      display: grid;
      gap: 0.75rem;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .group-summary-stat {
      display: grid;
      gap: 0.3rem;
      padding: 0.9rem;
      border-radius: var(--shell-radius-sm);
      background: rgba(255, 255, 255, 0.72);
      border: 1px solid rgba(110, 144, 191, 0.12);
    }

    .group-summary-stat-label {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--shell-soft);
    }

    .group-summary-stat-value {
      font-family: "Fraunces", "Iowan Old Style", "Georgia", serif;
      font-size: 1.35rem;
      line-height: 1;
      color: var(--shell-text);
      font-weight: 600;
    }

    .group-summary-stat-note {
      color: var(--shell-muted);
      font-size: 0.82rem;
      line-height: 1.45;
    }

    .group-section-title {
      margin-bottom: 0;
      color: var(--shell-text);
      font-size: 1rem;
    }

    .group-children {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 0.75rem;
      margin-top: 0;
    }

    .group-child-item {
      align-items: flex-start;
      gap: 0.75rem;
      padding: 0.95rem;
      background: rgba(255, 255, 255, 0.74);
      border-radius: var(--shell-radius-sm);
      border: 1px solid rgba(112, 77, 53, 0.1);
    }

    .group-child-main {
      display: grid;
      gap: 0.5rem;
      min-width: 0;
    }

    .group-child-name {
      color: var(--shell-text);
      font-weight: 700;
      line-height: 1.35;
    }

    .group-child-facts {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
    }

    .group-child-fact {
      display: inline-flex;
      align-items: center;
      min-height: 28px;
      padding: 0.18rem 0.5rem;
      border-radius: 999px;
      background: rgba(21, 95, 99, 0.06);
      color: var(--shell-muted);
      font-size: 0.76rem;
      font-weight: 600;
    }

    .group-issue-panel {
      display: grid;
      gap: 0.65rem;
      margin-top: 1rem;
      padding: 0.95rem 1rem;
      border-radius: var(--shell-radius-sm);
      border: 1px solid rgba(112, 77, 53, 0.1);
    }

    .group-issue-panel.error {
      background: rgba(255, 242, 240, 0.92);
      border-color: rgba(181, 77, 43, 0.18);
    }

    .group-issue-panel.warning {
      background: rgba(255, 249, 240, 0.94);
      border-color: rgba(188, 108, 37, 0.18);
    }

    .group-issue-panel.success {
      background: rgba(239, 247, 242, 0.94);
      border-color: rgba(61, 127, 90, 0.16);
    }

    .group-issue-title {
      margin: 0;
      color: var(--shell-text);
      font-size: 0.98rem;
    }

    .group-issue-item {
      padding-left: 0.75rem;
      border-left: 2px solid rgba(110, 144, 191, 0.22);
      color: var(--shell-muted);
      font-size: 0.9rem;
      line-height: 1.5;
    }

    .group-issue-panel.error .group-issue-item {
      border-left-color: rgba(181, 77, 43, 0.32);
    }

    .group-issue-panel.warning .group-issue-item {
      border-left-color: rgba(188, 108, 37, 0.3);
    }

    .calendar-header {
      background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(234, 242, 255, 0.98)) !important;
      box-shadow: 0 18px 32px rgba(39, 58, 92, 0.07) !important;
      align-items: flex-start;
    }

    .calendar-month {
      font-family: "Fraunces", "Iowan Old Style", "Georgia", serif;
      font-size: clamp(1.2rem, 2vw, 1.55rem);
      font-weight: 600;
      letter-spacing: -0.02em;
      min-width: 210px;
      color: var(--shell-text);
    }

    .view-toggle {
      background: rgba(255, 255, 255, 0.82);
      padding: 0.32rem;
      border-radius: 999px;
      border-color: rgba(110, 144, 191, 0.14);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }

    .view-toggle-btn {
      padding: 0.52rem 0.9rem;
      border-radius: 999px;
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--shell-muted);
    }

    .view-toggle-btn.active {
      background: linear-gradient(135deg, rgba(90, 136, 230, 0.16), rgba(255, 255, 255, 0.98));
      color: var(--shell-text);
      box-shadow: 0 10px 18px rgba(90, 136, 230, 0.08);
    }

    .calendar-header-actions,
    .combined-week-actions {
      margin-left: auto;
      flex-wrap: wrap;
    }

    .calendar-usage-panel {
      width: 184px;
      flex: 0 0 184px;
      position: sticky;
      top: 1rem;
      padding: 0.72rem;
      border-radius: 16px !important;
      background: rgba(255, 255, 255, 0.9) !important;
      box-shadow: 0 12px 24px rgba(39, 58, 92, 0.05) !important;
    }

    .calendar-usage-kicker,
    .calendar-usage-title {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--shell-soft);
    }

    .calendar-usage-kicker {
      margin-bottom: -0.2rem;
    }

    .calendar-usage-heading {
      margin: 0;
      font-family: "Fraunces", "Iowan Old Style", "Georgia", serif;
      font-size: 1.2rem;
      line-height: 1.15;
      color: var(--shell-text);
    }

    .calendar-usage-copy {
      margin: 0;
      color: var(--shell-muted);
      font-size: 0.72rem;
      line-height: 1.35;
    }

    .calendar-usage-copy-muted {
      margin-bottom: 0.42rem;
    }

    .calendar-usage-title {
      margin-bottom: 0.18rem;
      font-size: 0.68rem;
      letter-spacing: 0.15em;
    }

    .calendar-usage-list {
      gap: 0.22rem;
      padding-right: 0.1rem;
    }

    .calendar-usage-item {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 0.28rem;
      padding: 0.3rem 0.36rem;
      border-radius: 8px;
      border-color: rgba(110, 144, 191, 0.14);
      background: rgba(246, 250, 255, 0.96);
      font-size: 0.68rem;
      color: var(--shell-text);
    }

    .calendar-usage-name {
      font-weight: 600;
      color: var(--shell-text);
    }

    .calendar-usage-value {
      color: var(--shell-accent);
      font-size: 0.68rem;
    }

    .combined-week-empty {
      border-radius: var(--shell-radius-sm);
      border: 1px dashed rgba(110, 144, 191, 0.18);
      background: rgba(255, 255, 255, 0.72);
      color: var(--shell-muted);
    }

    .combined-day-card {
      gap: 0.85rem;
      padding: 1rem;
      border-radius: var(--shell-radius-lg);
      background: linear-gradient(165deg, rgba(255, 255, 255, 0.9), rgba(238, 245, 255, 0.96));
      border-color: rgba(110, 144, 191, 0.12);
      box-shadow: 0 18px 34px rgba(39, 58, 92, 0.08);
    }

    .combined-day-card.delta-negative {
      border-color: rgba(181, 77, 43, 0.2);
    }

    .combined-day-card.delta-positive {
      border-color: rgba(108, 143, 230, 0.24);
    }

    .combined-day-card.weekend {
      background: linear-gradient(165deg, rgba(247, 250, 255, 0.94), rgba(239, 246, 255, 0.98));
    }

    .combined-day-title {
      color: var(--shell-text);
      font-size: 1rem;
    }

    .combined-day-date {
      color: var(--shell-muted);
      font-size: 0.8rem;
    }

    .combined-day-summary {
      margin: 0;
      color: var(--shell-muted);
      font-size: 0.88rem;
      line-height: 1.5;
    }

    .combined-kpi-chip {
      background: rgba(90, 136, 230, 0.1);
      color: var(--shell-accent);
      border-color: rgba(90, 136, 230, 0.16);
      font-weight: 700;
    }

    .combined-kpi-chip.neutral {
      background: rgba(255, 255, 255, 0.78);
      color: var(--shell-muted);
      border-color: rgba(110, 144, 191, 0.14);
    }

    .combined-kpi-chip.negative {
      background: rgba(181, 77, 43, 0.1);
      color: var(--shell-danger);
      border-color: rgba(181, 77, 43, 0.18);
    }

    .combined-kpi-chip.positive {
      background: rgba(108, 143, 230, 0.14);
      color: var(--shell-success);
      border-color: rgba(108, 143, 230, 0.2);
    }

    .combined-section {
      gap: 0.5rem;
    }

    .combined-section-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.5rem;
    }

    .combined-section h4 {
      color: var(--shell-soft);
      font-size: 0.72rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
    }

    .combined-section-count {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 1.9rem;
      min-height: 1.9rem;
      padding: 0.2rem 0.5rem;
      border-radius: 999px;
      background: rgba(21, 95, 99, 0.08);
      color: var(--shell-accent);
      font-size: 0.74rem;
      font-weight: 700;
    }

    .combined-section-list li {
      padding: 0.45rem 0.55rem;
      border-radius: 12px;
      border: 1px solid rgba(112, 77, 53, 0.1);
      background: rgba(255, 255, 255, 0.78);
      color: var(--shell-muted);
    }

    .combined-list-label {
      color: var(--shell-text);
    }

    .combined-list-meta {
      color: var(--shell-muted);
    }

    .combined-shift-text {
      background: rgba(255, 255, 255, 0.9);
      border-color: rgba(112, 77, 53, 0.12);
      color: var(--shell-text);
    }

    .combined-shift-status.outside {
      color: var(--shell-muted);
      background: rgba(255, 255, 255, 0.86);
      border-color: rgba(112, 77, 53, 0.12);
    }

    .tab-content {
      border-radius: var(--shell-radius-xl) !important;
      padding: 1.45rem !important;
      overflow: hidden;
    }

    .tab-content::before,
    .card::before,
    .modal-content::before {
      display: none !important;
    }

    .section-shell-header {
      display: flex;
      justify-content: space-between;
      gap: 1rem;
      align-items: end;
      margin-bottom: 1.2rem;
      padding-bottom: 1rem;
      border-bottom: 1px solid rgba(112, 77, 53, 0.08);
    }

    .section-shell-header-inline {
      margin-top: 0.1rem;
    }

    .section-shell-header-inline p {
      display: none;
    }

    .section-shell-header h3 {
      font-size: 1.45rem;
    }

    .calendar-header,
    .combined-week-toolbar,
    .template-apply-section,
    .children-pool,
    .card,
    .calendar-layout,
    .combined-week-grid {
      border-radius: var(--shell-radius-lg) !important;
    }

    .calendar-layout {
      gap: 1rem;
    }

    .calendar-grid,
    .calendar-usage-panel,
    .combined-week-grid {
      background: rgba(255, 255, 255, 0.58) !important;
      border: 1px solid rgba(112, 77, 53, 0.08) !important;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }

    .calendar-header,
    .combined-week-toolbar,
    .template-header,
    .children-sort-row {
      background: rgba(255, 255, 255, 0.58);
      border: 1px solid rgba(112, 77, 53, 0.08);
      padding: 1rem 1.1rem;
    }

    .btn,
    .form-input,
    .form-select,
    .toggle-slider,
    .template-day,
    .child-card {
      border-radius: var(--shell-radius-sm) !important;
    }

    .btn {
      border: 1px solid rgba(110, 144, 191, 0.14) !important;
      font-weight: 600 !important;
    }

    .btn-primary {
      background: linear-gradient(135deg, #5a88e6, #79a5ff) !important;
      border-color: rgba(90, 136, 230, 0.24) !important;
      color: #f7fbfb !important;
    }

    .btn-secondary {
      background: rgba(255, 255, 255, 0.82) !important;
      color: var(--shell-text) !important;
      border-color: rgba(110, 144, 191, 0.14) !important;
    }

    .btn-success {
      background: linear-gradient(135deg, #6c8fe6, #88a8ff) !important;
      border-color: rgba(108, 143, 230, 0.22) !important;
      color: #f7f9ff !important;
    }

    .header-admin-link,
    .workspace-action-btn,
    .planning-action-card {
      min-height: 52px;
    }

    .form-input,
    .form-select,
    textarea {
      background: rgba(255, 255, 255, 0.78) !important;
      border-color: rgba(110, 144, 191, 0.16) !important;
      color: var(--shell-text) !important;
      box-shadow: none !important;
    }

    .form-input:focus,
    .form-select:focus,
    textarea:focus {
      border-color: rgba(21, 95, 99, 0.34) !important;
      box-shadow: 0 0 0 4px rgba(21, 95, 99, 0.08) !important;
    }

    .modal-overlay {
      background: rgba(33, 24, 18, 0.34) !important;
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
    }

    .modal-content {
      border-radius: 28px !important;
      background: var(--shell-surface-strong) !important;
      box-shadow: 0 32px 70px rgba(43, 30, 22, 0.18) !important;
    }

    .app-toast {
      border-radius: 16px;
      background: rgba(255, 250, 245, 0.95);
      color: var(--shell-text);
    }

    @media (max-width: 1200px) {
      .planning-stats-grid,
      .planning-actions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .workspace-topbar,
      .section-shell-header,
      .planning-hub-header {
        align-items: start;
        flex-direction: column;
      }

      .workspace-shell-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 960px) {
      .app-shell {
        grid-template-columns: 1fr;
      }

      .app-sidebar {
        position: static;
        height: auto;
      }

      .sidebar-nav-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .workspace-toolbar {
        width: 100%;
        justify-content: flex-start;
      }

      .workspace-subnav {
        align-items: flex-start;
      }

      .children-toolbar-actions {
        width: 100%;
        margin-left: 0;
      }
    }

    @media (max-width: 720px) {
      .app-shell {
        padding: 0.8rem;
      }

      .app-sidebar,
      .workspace-topbar,
      .planning-hub,
      .tab-content {
        padding: 1rem !important;
        border-radius: 22px !important;
      }

      .sidebar-nav-group,
      .planning-stats-grid,
      .planning-actions-grid {
        grid-template-columns: 1fr;
      }

      .workspace-subnav,
      .workspace-subnav-group {
        flex-direction: column;
        align-items: stretch;
      }

      .workspace-subnav-btn {
        justify-content: center;
      }

      .workspace-summary-grid {
        grid-template-columns: 1fr;
      }

      .workspace-search-field {
        width: 100%;
      }

      .workspace-search-input {
        min-width: 0;
        width: 100%;
      }

      .children-toolbar-actions {
        align-items: stretch;
      }

      .child-meta-grid,
      .child-highlight-grid,
      .child-support-grid,
      .group-summary-grid,
      .group-children,
      .child-actions-row {
        grid-template-columns: 1fr;
      }

      .calendar-usage-panel {
        position: static;
        width: 100%;
        flex-basis: auto;
      }

      .workspace-heading h2 {
        font-size: 2.15rem;
      }

      .section-shell-header {
        gap: 0.6rem;
      }
    }
