/* Stage110_9 split stylesheet: calendar grid, modal shell, agenda, and shared core feature styling (from rail-signal-calendar-v82.css lines 721-1811) */

    .calendar-frame {
      border: 1px solid var(--line-strong);
      border-radius: 18px;
      overflow: hidden;
      background: rgba(255,255,255,0.96);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.84);
    }

    .weekdays {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      background: rgba(255,255,255,0.96);
      border-bottom: 1px solid var(--line-strong);
    }

    .weekdays div {
      text-align: center;
      font-size: 12px;
      font-weight: 600;
      color: var(--muted);
      padding: 11px 4px;
      border-right: 1px solid var(--line);
      letter-spacing: 0.01em;
    }

    .weekdays div:last-child {
      border-right: none;
    }

    .weekdays .weekend-label {
      color: var(--weekend);
    }

    #calendarGrid {
      display: block;
      background: #fff;
    }

    .week-row {
      position: relative;
      --lane-count: 0;
      --bar-space: 8px;
    }

    .week-row + .week-row {
      border-top: 1px solid var(--line);
    }

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

    .day {
      position: relative;
      min-height: 152px;
      border-right: 1px solid var(--line);
      background: #fff;
      padding: 0;
      text-align: left;
      cursor: pointer;
      transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
      outline: none;
    }

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

    .day:hover {
      background: #fcfdff;
    }

    .day:focus-visible {
      box-shadow: inset 0 0 0 2px #c7dafc;
    }

    .day.weekend-column {
      background:
        linear-gradient(180deg, var(--weekend-bg) 0, #fff 36px);
    }

    .day.other-month {
      background:
        linear-gradient(180deg, var(--other-month-bg-2) 0, var(--other-month-bg) 40px, var(--other-month-bg-3) 100%);
      color: var(--other-month-text);
    }

    .day.other-prev {
      background:
        linear-gradient(135deg, rgba(228, 235, 244, 0.78) 0%, rgba(228, 235, 244, 0) 34%),
        linear-gradient(180deg, var(--other-month-bg-2) 0, var(--other-month-bg) 40px, var(--other-month-bg-3) 100%);
    }

    .day.other-next {
      background:
        linear-gradient(225deg, rgba(228, 235, 244, 0.78) 0%, rgba(228, 235, 244, 0) 34%),
        linear-gradient(180deg, var(--other-month-bg-2) 0, var(--other-month-bg) 40px, var(--other-month-bg-3) 100%);
    }

    .day.other-month.weekend-column {
      background:
        linear-gradient(180deg, #eef3f8 0, var(--other-month-bg) 40px, var(--other-month-bg-3) 100%);
    }

    .day.other-month .day-number:not(.holiday):not(.weekend) {
      color: var(--other-month-text);
    }

    .day.other-month .day-number.weekend,
    .day.other-month .day-number.holiday {
      color: #d67b75;
    }

    .day.other-month .holiday-name {
      color: #d17a73;
      opacity: 0.82;
    }

    .day.other-month .day-count {
      background: rgba(255,255,255,0.78);
      color: #8e96a2;
      border-color: rgba(224, 229, 236, 0.88);
    }

    .day.other-month .event-chip {
      opacity: 0.88;
    }

    .day.other-month .event-chip:hover {
      background: var(--other-month-chip);
    }

    .day.other-month.selected {
      background:
        linear-gradient(180deg, #eef4ff 0, #f7faff 100%);
      color: var(--text);
    }

    .day.other-month.selected .day-count {
      background: rgba(255,255,255,0.92);
      color: var(--muted);
    }

    .day.selected {
      box-shadow: inset 0 0 0 2px #d2e3fc;
      background: #f7faff;
      z-index: 1;
    }

    body.calendar-dragging {
      cursor: crosshair;
      user-select: none;
    }

    body.calendar-dragging .day {
      cursor: crosshair;
    }

    .day.drag-range {
      background:
        linear-gradient(180deg, rgba(232, 240, 254, 0.86), rgba(247, 250, 255, 0.92));
    }

    .day.drag-range::after {
      content: "";
      position: absolute;
      inset: 4px;
      border: 1px dashed rgba(26, 115, 232, 0.32);
      border-radius: 16px;
      pointer-events: none;
      z-index: 1;
    }

    .day.drag-start::after,
    .day.drag-end::after {
      border-style: solid;
      border-color: rgba(26, 115, 232, 0.48);
    }

    .day-head {
      position: absolute;
      top: 8px;
      left: 8px;
      right: 8px;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 8px;
      z-index: 3;
      pointer-events: none;
    }

    .day-head-left {
      min-width: 0;
      pointer-events: none;
    }

    .day-head-right {
      display: flex;
      align-items: center;
      gap: 6px;
      pointer-events: auto;
    }

    .day-number {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 28px;
      height: 28px;
      border-radius: 999px;
      font-size: 14px;
      font-weight: 600;
      line-height: 1;
      color: var(--text);
      letter-spacing: -0.01em;
    }

    .day-number.weekend,
    .day-number.holiday {
      color: var(--holiday);
    }

    .today-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 28px;
      height: 28px;
      border-radius: 999px;
      background: var(--primary);
      color: #fff;
      box-shadow: 0 6px 12px rgba(26, 115, 232, 0.25);
    }

    .holiday-name {
      margin-top: 5px;
      max-width: 100%;
      font-size: 11px;
      color: var(--holiday);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      letter-spacing: -0.01em;
    }

    .day-count {
      min-width: 22px;
      height: 22px;
      padding: 0 7px;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: rgba(241, 243, 244, 0.95);
      color: var(--muted);
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0;
      border: 1px solid rgba(226, 229, 234, 0.95);
      opacity: 0.92;
    }

    .day-add-btn {
      width: 22px;
      height: 22px;
      padding: 0;
      display: inline-grid;
      place-items: center;
      background: rgba(255,255,255,0.95);
      color: var(--muted);
      border: 1px solid rgba(226, 229, 234, 0.95);
      box-shadow: 0 1px 2px rgba(60, 64, 67, 0.12);
      font-size: 15px;
      line-height: 1;
      opacity: 0;
      transform: scale(0.9);
    }

    .day:hover .day-add-btn,
    .day.selected .day-add-btn,
    .day:focus-within .day-add-btn {
      opacity: 1;
      transform: scale(1);
    }

    .day-add-btn:hover {
      background: var(--primary-soft);
      color: var(--primary);
      border-color: #d2e3fc;
    }

    .day-body {
      margin-top: var(--bar-space);
      padding: 44px 8px 10px;
    }

    .event-chip {
      display: flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
      margin-bottom: 4px;
      padding: 4px 6px 4px 4px;
      border-radius: 9px;
      background: transparent;
      color: var(--chip-text, var(--text));
      font-size: 12px;
      line-height: 1.25;
      transition: background 0.12s ease;
    }

    .event-chip:hover {
      background: var(--chip-soft, rgba(26, 115, 232, 0.06));
    }

    .event-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--chip-dot, var(--primary));
      flex: none;
      margin-top: 1px;
      box-shadow: 0 0 0 3px color-mix(in srgb, var(--chip-dot, var(--primary)) 14%, white);
    }

    .event-chip-time {
      color: var(--muted);
      flex: none;
      font-variant-numeric: tabular-nums;
      letter-spacing: -0.01em;
    }

    .event-chip-title {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-weight: 500;
      letter-spacing: -0.01em;
    }

    .event-chip.more-chip {
      justify-content: center;
      background: rgba(241, 243, 244, 0.95);
      color: var(--muted);
      font-weight: 600;
      border: 1px solid rgba(226, 229, 234, 0.95);
      padding: 5px 8px;
      cursor: pointer;
    }

    .week-bars {
      position: absolute;
      left: 0;
      right: 0;
      top: 40px;
      height: calc(var(--lane-count) * 24px);
      pointer-events: none;
      z-index: 2;
    }

    .event-bar {
      position: absolute;
      height: 20px;
      line-height: 20px;
      border-radius: 8px;
      border: none;
      padding: 0 10px;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: -0.01em;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      pointer-events: auto;
      cursor: pointer;
      text-align: left;
      box-shadow: inset 0 -1px 0 rgba(0,0,0,0.08), 0 1px 2px rgba(60, 64, 67, 0.12);
      transition: filter 0.12s ease, transform 0.12s ease;
    }

    .event-bar:hover {
      filter: brightness(0.98);
    }

    .event-bar.cont-left {
      border-top-left-radius: 3px;
      border-bottom-left-radius: 3px;
    }

    .event-bar.cont-right {
      border-top-right-radius: 3px;
      border-bottom-right-radius: 3px;
    }

    .event-bar-title,
    .week-all-day-bar-title {
      display: block;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      pointer-events: none;
    }

    .focused-event {
      box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.3), inset 0 -1px 0 rgba(0,0,0,0.08), 0 2px 6px rgba(60, 64, 67, 0.16);
    }

    .week-event.focused-event {
      box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.28), 0 18px 30px rgba(15, 23, 42, 0.18);
    }

    .resizing-event {
      opacity: 0.96;
      transition: none !important;
    }

    .resizing-event,
    .resizing-event:hover {
      transform: none !important;
    }

    .resize-pass-through {
      pointer-events: none !important;
    }

    .event-resize-handle {
      position: absolute;
      z-index: 4;
      opacity: 0;
      transition: opacity 0.12s ease, background 0.12s ease;
      border: none;
      background: rgba(255,255,255,0.18);
      touch-action: none;
    }

    .event-bar:hover .event-resize-handle,
    .week-all-day-bar:hover .event-resize-handle,
    .week-event:hover .event-resize-handle,
    .focused-event .event-resize-handle,
    .resizing-event .event-resize-handle {
      opacity: 1;
    }

    .event-resize-handle:hover {
      background: rgba(255,255,255,0.3);
    }

    .event-resize-handle.range-left,
    .event-resize-handle.range-right {
      top: 2px;
      bottom: 2px;
      width: 10px;
      border-radius: 8px;
      cursor: ew-resize;
    }

    .event-resize-handle.range-left { left: 2px; }
    .event-resize-handle.range-right { right: 2px; }

    .event-resize-handle.range-left::before,
    .event-resize-handle.range-right::before,
    .event-resize-handle.time-top::before,
    .event-resize-handle.time-bottom::before {
      content: "";
      position: absolute;
      inset: 50% auto auto 50%;
      transform: translate(-50%, -50%);
      background: rgba(255,255,255,0.88);
      border-radius: 999px;
    }

    .event-resize-handle.range-left::before,
    .event-resize-handle.range-right::before {
      width: 3px;
      height: 12px;
    }

    .event-resize-handle.time-top,
    .event-resize-handle.time-bottom {
      left: 3px;
      right: 3px;
      height: 10px;
      border-radius: 10px;
      cursor: ns-resize;
    }

    .event-resize-handle.time-top { top: 2px; }
    .event-resize-handle.time-bottom { bottom: 2px; }

    .event-resize-handle.time-top::before,
    .event-resize-handle.time-bottom::before {
      width: 16px;
      height: 3px;
    }

    .side-panel-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 12px;
    }

    .detail-kicker {
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .detail-title {
      margin: 4px 0 0;
      font-size: 24px;
      font-weight: 650;
      letter-spacing: -0.03em;
    }

    .selected-date-hero {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 14px;
      border-radius: 18px;
      border: 1px solid #d8e5fc;
      background: linear-gradient(180deg, #f8fbff, #eef4ff);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.82);
      margin-bottom: 10px;
    }

    .selected-date-number {
      width: 58px;
      height: 58px;
      border-radius: 18px;
      display: grid;
      place-items: center;
      background: #fff;
      border: 1px solid #dbe6fb;
      color: var(--primary);
      font-size: 25px;
      font-weight: 700;
      letter-spacing: -0.03em;
      flex: none;
    }

    .selected-date-number.weekend {
      color: var(--holiday);
    }

    .selected-date-number.today {
      background: linear-gradient(180deg, var(--primary), var(--primary-strong));
      color: #fff;
      border-color: transparent;
      box-shadow: 0 10px 20px rgba(26, 115, 232, 0.2);
    }

    .selected-date-copy {
      min-width: 0;
    }

    .selected-date-main {
      font-size: 16px;
      font-weight: 650;
      letter-spacing: -0.02em;
      margin-bottom: 3px;
      line-height: 1.3;
    }

    .selected-date-sub {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
    }

    .detail-date {
      color: var(--muted);
      margin: 0 0 10px;
      line-height: 1.5;
      font-size: 13px;
    }

    .agenda-summary {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
      padding-bottom: 14px;
      margin-bottom: 14px;
      border-bottom: 1px solid var(--line);
    }

    .event-list {
      display: block;
    }

    .agenda-group {
      margin-bottom: 14px;
    }

    .agenda-group:last-child {
      margin-bottom: 0;
    }

    .agenda-group-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin: 0 2px 8px;
      padding: 0 2px;
    }

    .agenda-group-title-wrap {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }

    .agenda-group-dot {
      width: 9px;
      height: 9px;
      border-radius: 999px;
      flex: 0 0 9px;
      box-shadow: 0 0 0 3px rgba(255,255,255,0.96), 0 0 0 4px rgba(15,23,42,0.05);
    }

    .agenda-group-title {
      min-width: 0;
      font-size: 13px;
      font-weight: 800;
      line-height: 1.3;
      letter-spacing: -0.01em;
      color: var(--text);
    }

    .agenda-group-count {
      flex: 0 0 auto;
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
      line-height: 1;
      white-space: nowrap;
    }

    .agenda-group-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 24px;
      height: 24px;
      border: 0;
      border-radius: 999px;
      background: rgba(15, 23, 42, 0.04);
      color: var(--muted);
      cursor: pointer;
      transition: background .16s ease, color .16s ease, transform .16s ease;
      flex: 0 0 24px;
      padding: 0;
    }

    .agenda-group-toggle:hover {
      background: rgba(15, 23, 42, 0.08);
      color: var(--text);
    }

    .agenda-group-toggle:focus-visible {
      outline: 2px solid rgba(26, 115, 232, 0.28);
      outline-offset: 2px;
    }

    .agenda-group-toggle-icon {
      display: inline-block;
      font-size: 11px;
      line-height: 1;
      transform: translateY(-0.5px);
    }

    .agenda-group.is-mine .agenda-group-title {
      color: var(--primary);
    }

    .agenda-group.is-collapsed .agenda-group-toggle {
      background: rgba(15, 23, 42, 0.06);
    }

    .agenda-group.is-collapsed .agenda-group-toggle-icon {
      transform: rotate(-90deg) translateX(0.5px);
    }

    .agenda-group-body {
      display: block;
    }

    .agenda-group-body[hidden] {
      display: none !important;
    }


    .event-card {
      position: relative;
      background: rgba(255,255,255,0.98);
      border: 1px solid var(--panel-border);
      border-left: 4px solid transparent;
      border-radius: 16px;
      padding: 8px 10px 8px 12px;
      margin-bottom: 8px;
      box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
      transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
    }

    .event-card:hover {
      transform: translateY(-1px);
      box-shadow: var(--shadow-soft);
    }

    .event-time {
      color: var(--muted);
      font-size: 12px;
      margin-bottom: 3px;
      letter-spacing: -0.01em;
    }

    .event-name {
      font-weight: 650;
      margin-bottom: 4px;
      line-height: 1.45;
      letter-spacing: -0.015em;
      display: flex;
      align-items: center;
    }

    .event-meta {
      font-size: 13px;
      color: var(--muted);
      margin-bottom: 4px;
      line-height: 1.4;
    }

    .event-desc {
      font-size: 13px;
      color: #334155;
      white-space: pre-wrap;
      line-height: 1.45;
      margin-bottom: 6px;
    }

    .event-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 6px;
    }

    .empty {
      color: var(--muted);
      line-height: 1.6;
      font-size: 14px;
      padding: 16px 14px;
      border: 1px dashed var(--panel-border);
      border-radius: 16px;
      background: rgba(248, 250, 252, 0.86);
    }

    .empty-actions {
      display: flex;
      gap: 8px;
      margin-top: 14px;
      flex-wrap: wrap;
    }

    .empty-actions .primary-btn,
    .empty-actions .ghost-btn {
      padding: 9px 14px;
    }

    .color-field {
      gap: 8px;
    }

    .color-picker {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 10px;
    }

    .personal-color-custom {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: 8px;
      flex-wrap: wrap;
    }

    .personal-color-custom input[type="color"] {
      width: 44px;
      height: 36px;
      padding: 0;
      border: 1px solid var(--line-strong);
      border-radius: 10px;
      background: #fff;
      cursor: pointer;
    }

    .personal-color-custom input[type="text"] {
      height: 36px;
      padding: 0 12px;
      border: 1px solid var(--line-strong);
      border-radius: 10px;
      background: #fff;
      color: var(--text);
      font: inherit;
      width: 120px;
    }

    .color-swatch {
      width: 28px;
      height: 28px;
      padding: 0;
      border-radius: 50%;
      border: 2px solid rgba(255,255,255,0.95);
      box-shadow: 0 0 0 1px rgba(202, 207, 214, 0.95);
      background: var(--swatch, var(--primary));
      cursor: pointer;
      transition: transform 0.14s ease, box-shadow 0.14s ease;
    }

    .color-swatch:hover {
      transform: translateY(-1px) scale(1.03);
    }

    .color-swatch.selected {
      box-shadow:
        0 0 0 2px rgba(26, 115, 232, 0.22),
        0 0 0 4px rgba(255,255,255,0.98),
        0 8px 16px rgba(32, 33, 36, 0.12);
      transform: scale(1.06);
    }

    .color-caption {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.5;
    }

    .helper {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.5;
    }

    .modal-backdrop {
      position: fixed;
      top: var(--viewer-modal-vv-top, 0px);
      left: var(--viewer-modal-vv-left, 0px);
      width: var(--viewer-modal-vv-width, 100vw);
      height: var(--viewer-modal-vv-height, 100dvh);
      box-sizing: border-box;
      background: rgba(17, 24, 39, 0.4);
      backdrop-filter: blur(4px);
      display: none;
      align-items: center;
      justify-content: center;
      padding:
        var(--viewer-modal-pad-top, 16px)
        var(--viewer-modal-pad-right, 16px)
        var(--viewer-modal-pad-bottom, 16px)
        var(--viewer-modal-pad-left, 16px);
      overflow-x: hidden;
      overflow-y: auto;
      overscroll-behavior: contain;
      z-index: 1000;
    }

    .modal-backdrop.show {
      display: flex;
    }

    .modal {
      width: min(760px, 100%);
      box-sizing: border-box;
      max-height: calc(
        var(--viewer-modal-vv-height, 100dvh)
        - var(--viewer-modal-pad-top, 16px)
        - var(--viewer-modal-pad-bottom, 16px)
      );
      overflow: auto;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
      background: rgba(255,255,255,0.98);
      border: 1px solid rgba(226, 229, 234, 0.95);
      border-radius: 22px;
      padding: 20px;
      box-shadow: var(--shadow-strong);
    }

    @media (hover: none) and (pointer: coarse) {
      .modal-backdrop {
        --viewer-modal-pad-top: max(12px, calc(env(safe-area-inset-top) + 8px));
        --viewer-modal-pad-right: max(12px, calc(env(safe-area-inset-right) + 8px));
        --viewer-modal-pad-bottom: max(16px, calc(env(safe-area-inset-bottom) + 12px));
        --viewer-modal-pad-left: max(12px, calc(env(safe-area-inset-left) + 8px));
      }

      #preferencesBackdrop,
      #personalColorBackdrop,
      #telegramSettingsBackdrop,
      #dailyBriefingSettingsBackdrop,
      #calendarSettingsBackdrop {
        align-items: flex-start;
      }
    }

    .modal-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      margin-bottom: 18px;
    }

    .modal h3 {
      margin: 0;
      font-size: 24px;
      font-weight: 650;
      letter-spacing: -0.03em;
    }

    .form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
    }

    .form-row {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .form-row.full {
      grid-column: 1 / -1;
    }

    label {
      font-size: 13px;
      color: var(--muted);
    }

    input[type="text"],
    input[type="date"],
    input[type="time"],
    textarea {
      border: 1px solid var(--panel-border);
      border-radius: 14px;
      padding: 11px 12px;
      background: rgba(255,255,255,0.98);
      outline: none;
      transition: border-color 0.14s ease, box-shadow 0.14s ease;
    }

    input[type="text"]:focus,
    input[type="date"]:focus,
    input[type="time"]:focus,
    textarea:focus {
      border-color: #b8cdf8;
      box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
    }

    textarea {
      min-height: 120px;
      resize: vertical;
    }

    .inline {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .inline input[type="checkbox"] {
      width: 20px;
      height: 20px;
      accent-color: var(--primary);
    }

    .time-row { display: flex; }

    .modal-actions {
      display: flex;
      justify-content: flex-end;
      gap: 8px;
      margin-top: 16px;
      flex-wrap: wrap;
    }

    @media (max-width: 1560px) {
      .layout {
        grid-template-columns: 250px minmax(0, 1fr);
      }

      .rail-panel,
      .rail-panel .rail-section,
      .rail-panel .mini-calendar-section,
      .rail-panel .calendar-strip-section {
        min-width: 0;
        width: 100%;
      }

      .mini-calendar-section .rail-head {
        flex-wrap: wrap;
      }

      .mini-calendar-section .rail-title {
        white-space: normal;
      }

      .mini-nav {
        width: 100%;
        justify-content: flex-end;
      }

      .side-panel {
        grid-column: 1 / -1;
        position: static;
      }
    }

    @media (max-width: 1180px) {
      .layout {
        grid-template-columns: 1fr;
      }

      .rail-panel,
      .side-panel {
        position: static;
      }
    }

    @media (max-width: 860px) {
      .toolbar {
        padding: 8px;
      }

      .search-shell {
        min-width: 100%;
      }

      .form-grid {
        grid-template-columns: 1fr;
      }

      .day {
        min-height: 132px;
      }

      .wrap {
        width: calc(100vw - 10px);
        margin: 6px auto 18px;
      }

      .header, .panel, .calendar-frame, .modal {
        border-radius: 18px;
      }

      .month-title {
        font-size: 24px;
      }

      .selected-date-hero {
        padding: 12px;
      }

      .rail-panel,
      .side-panel,
      .panel {
        padding: 14px;
      }

      .mini-nav {
        width: 100%;
        justify-content: flex-start;
      }
    }


    .color-field {
      display: none !important;
    }

    .day-count {
      display: none !important;
    }

    .event-card {
      padding-right: 74px;
    }

    .event-actions {
      position: absolute;
      top: 12px;
      right: 10px;
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-top: 0;
      align-items: flex-end;
    }

    .event-actions .ghost-btn,
    .event-actions .danger-btn {
      min-height: auto;
      padding: 6px 10px;
      font-size: 12px;
      border-radius: 999px;
      box-shadow: none;
    }

  

