    :root {
      --calAppBg: #f5f5f7;
      --calAppPanel: rgba(255,255,255,0.78);
      --calAppPanelStrong: rgba(255,255,255,0.9);
      --calAppLine: rgba(60,60,67,0.14);
      --calAppText: #1d1d1f;
      --calAppMuted: #7c7c80;
      --calAppAccent: #ff3b30;
      --calAppShadow: 0 24px 60px rgba(0,0,0,0.12);
      --calAppSidebarWidth: 240px;
      --calAppRightbarWidth: 240px;
      --calAppHourHeight: 64px;
      --calAppAllDayHeight: 44px;
      --calAppToolbarHeight: 76px;
      font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    }

    body {
      user-select: none;
    }

    button,
    input,
    select,
    textarea {
      font: inherit;
      color: inherit;
    }

    .calApp {
      width: 100%;
      height: 100%;
      display: grid;
      grid-template-columns: var(--calAppSidebarWidth) minmax(0, 1fr) var(--calAppRightbarWidth);
      background: var(--calAppBg);
      overflow: hidden;
    }

    .calAppSidebar,
    .calAppRightbar {
      background: rgba(248,248,250,0.96);
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    .calAppLabelsHeader {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: var(--systemSpacing-20) var(--systemSpacing-0) var(--systemSpacing-20) var(--systemSpacing-12);
    }

    .calAppLabelsHeader .calAppSectionTitle {
        margin: 0;
    }

    .calAppAddLabelInlineBtn:hover {
        color: var(--calAppText);
    }


    .calAppSidebar {
      border-right: 1px solid var(--calAppLine);
    }

    .calAppRightbar {
      border-left: 1px solid var(--calAppLine);
      padding: 16px;
      gap: 14px;
    }

    .calAppTraffic {
      display: flex;
      gap: 8px;
      padding: 18px 18px 6px;
      flex-shrink: 0;
    }

    .calAppDot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
    }

    .calAppDotRed { background: #ff5f57; }
    .calAppDotYellow { background: #ffbd2e; }
    .calAppDotGreen { background: #28c840; }

    .calAppSidebarScroll,
    .calAppRightbarScroll {
      overflow: auto;
    }

    .calAppSidebarScroll {
        padding: var(--systemSpacing-40) var(--systemSpacing-8) var(--systemSpacing-8) var(--systemSpacing-8);
    }

    .calAppSectionTitle {
      font-size: 16px;
      font-weight: 700;
      color: var(--calAppMuted);
      margin: 20px 10px 12px;
    }

    .calAppLabelsAddBtn {
        font-size: var(--c1-fontSize);
        color: var(--systemTertiary);
        background-color: #e9e9e9;
        padding: var(--systemSpacing-4) var(--systemSpacing-8);
        border-radius: var(--systemSpacing-12);
    }

    .calAppLabelsAddBtn:hover {
        background-color: #e1e1e1;
    }

    .calAppLabelList {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .calAppLabelItem {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: var(--systemSpacing-8) var(--systemSpacing-12);
      border-radius: var(--systemSpacing-12);
      cursor: pointer;
      transition: background 0.18s ease;
    }

    .calAppLabelItem:hover,
    .calAppLabelItem.calAppIsActive {
      background: rgba(60,60,67,0.06);
    }

    .calAppLabelCheck {
      width: 22px;
      height: 22px;
      border-radius: 7px;
      display: grid;
      place-items: center;
      color: white;
      font-size: 14px;
      font-weight: 700;
      flex-shrink: 0;
    }

    .calAppLabelName {
      flex: 1;
      font-size: 16px;
      font-weight: 500;
      min-width: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .calAppLabelActions {
      display: flex;
      gap: 6px;
      opacity: 0;
      transition: opacity 0.18s ease;
    }

    .calAppLabelItem:hover .calAppLabelActions {
      opacity: 1;
    }

    .calAppIconBtn {
      width: 28px;
      height: 28px;
      border-radius: 10px;
      border: 0;
      background: rgba(60,60,67,0.08);
      display: grid;
      place-items: center;
      cursor: pointer;
      flex-shrink: 0;
    }

    .calAppIconBtn:hover {
      background: rgba(60,60,67,0.14);
    }

    .calAppAddLabelBox,
    .calAppRightCard,
    .calAppMiniCalendar {
      background: rgba(255,255,255,0.74);
      border-radius: 16px;
    }

    .calAppAddLabelBox {
      display: grid;
      gap: 10px;
      padding: 12px;
      margin-top: 12px;
    }

    .calAppField,
    .calAppFieldInline {
      display: grid;
      gap: 6px;
    }

    .calAppField label {
      font-size: 12px;
      font-weight: 700;
      color: var(--calAppMuted);
    }

    .calAppFieldInline {
      grid-template-columns: 1fr auto;
      align-items: center;
      gap: 10px;
    }

    .calAppInput {
      border: 0.1px solid rgba(60,60,67,0.12);
      background: rgba(255,255,255,0.94);
      border-radius: var(--systemSpacing-12);
      padding: var(--systemSpacing-12) var(--systemSpacing-0) var(--systemSpacing-12) var(--systemSpacing-12);
      outline: none;
      box-sizing: border-box;
    }

    .calAppTextarea {
        border: 1px solid rgba(60,60,67,0.12);
        background: rgba(255,255,255,0.94);
        border-radius: 14px;
        padding: 12px 14px;
        outline: none;
    }
    .calAppSelect,
    .calAppSearchInput {
      width: 100%;
      border: 1px solid rgba(60,60,67,0.12);
      background: rgba(255,255,255,0.94);
      border-radius: 14px;
      padding: 12px 14px;
      outline: none;
    }

    .calAppTextarea {
      min-height: 88px;
      resize: vertical;
    }

    .calAppInput:focus,
    .calAppSelect:focus,
    .calAppTextarea:focus,
    .calAppSearchInput:focus {
      
      font-size: inherit;
    }

    .calAppColorInput {
      width: 32px;
      height: 32px;
      border-radius: var(--systemSpacing-0);
      border: 0;
      padding: 0;
      background: transparent;
      cursor: pointer;
    }

    .calAppBtn {
      border: 0;
      border-radius: 16px;
      padding: 12px 16px;
      cursor: pointer;
      font-weight: 700;
      background: rgba(60,60,67,0.08);
    }

    .calAppBtn.calAppBtnPrimary {
      background: var(--calAppAccent);
      color: white;
    }

    .calAppBtnRow {
      display: flex;
      gap: 4px;
      flex-direction: row;
      flex-wrap: wrap;
    }

    .calAppMiniCalendar {
      margin-top: 16px;
      padding: 12px;
    }

    .calAppMiniHeader {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 8px;
    }

    .calAppMiniTitle {
      font-size: 15px;
      font-weight: 700;
    }

    .calAppMiniWeekdays,
    .calAppMiniGrid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 4px;
      text-align: center;
    }

    .calAppMiniWeekdays div {
      font-size: 11px;
      color: var(--calAppMuted);
      padding: 3px 0;
    }

    .calAppMiniDay {
      width: 100%;
      aspect-ratio: 1;
      display: grid;
      place-items: center;
      border-radius: 999px;
      font-size: 12px;
      cursor: pointer;
    }

    .calAppMiniDay.calAppIsMuted {
      color: rgba(29,29,31,0.3);
    }

    .calAppMiniDay.calAppIsToday {
      background: var(--calAppAccent);
      color: white;
      font-weight: 700;
    }

    .calAppMiniDay.calAppIsCurrent {
      outline: 2px solid rgba(255,59,48,0.24);
    }

    .calAppMain {
        min-width: 0;
        display: flex;
        flex-direction: column;
    }

    .calAppToolbar {
        height: var(--systemSpacing-120);
        padding: 12px 18px;
        align-items: first baseline;
        border-bottom: 1px solid var(--calAppLine);
        background: rgba(248,248,250,0.82);
        backdrop-filter: blur(18px);
        flex-shrink: 0;
        position: relative;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    /* .calAppQuickAddBtn {
        position: absolute;
        top: 28px;
        left: 8px;
        transform: translate(0%, -50%);
    } */

    .calAppToolbarCenter {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--systemSpacing-8);
        position: absolute;
        top: 55px;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    /* .calAppToolbarRight {
        position: absolute;
        top: 50%;
        right: 8px;
        transform: translate(0%, -50%);
    } */

    .calAppToolbarLeft,
    .calAppToolbarRight {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }

    .calAppTitleWrap {
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
    }

    .calAppTitleMain {
      font-size: 28px;
      line-height: 1.1;
      font-weight: 750;
    }

    .calAppTitleSub {
      font-size: 14px;
      color: var(--calAppMuted);
    }

    .calAppSegmented {
      display: inline-flex;
      padding: 4px;
      gap: 4px;
      background: rgba(60,60,67,0.08);
      border-radius: 18px;
    }

    .calAppSegmented button,
    .calAppNavPill,
    .calAppNavCircle,
    .calAppQuickAddBtn {
      border: 0;
      cursor: pointer;
    }

    .calAppSegmented button {
      height: 28px;
      padding: 0 12px;
      border-radius: 9999px;
      background: transparent;
      color: rgba(29,29,31,0.82);
      font-size: 12px;
    }

    .calAppSegmented button.calAppIsActive {
      background: rgba(255,255,255,0.92);
      box-shadow: 0 1px 0 rgba(255,255,255,0.8), 0 2px 8px rgba(0,0,0,0.05);
      font-weight: 700;
    }

    .calAppSearchBox {
      width: 200px;
      max-width: 36vw;
      height: 40px;
      display: flex;
      align-items: center;
      gap: 10px;
      background: rgba(255,255,255,0.86);
      border-radius: 999px;
      padding: 0 16px;
    }

    .calAppSearchInput {
      border: 0;
      background: transparent;
      padding: 0;
    }

    .calAppNavGroup {
      display: flex;
      align-items: center;
      gap: 4px;
    }


    .calAppNavCircle {
        width: 32px;
        height: 32px;
        border-radius: 999px;
        background: rgba(60,60,67,0.08);
        display: grid;
        place-items: center;
        font-size: 14px;
    }
    
    .calAppQuickAddBtn {
      width: 40px;
      height: 40px;
      border-radius: 999px;
      background: rgba(60,60,67,0.08);
      display: grid;
      place-items: center;
      font-size: 20px;
    }

    .calAppQuickAddBtn {
      font-size: 20px;
      line-height: 1;
    }

    .calAppNavPill {
      height: 32px;
      width: 60px;
      border-radius: 999px;
      background: rgba(60,60,67,0.08);
      font-size: 12px;
      font-weight: 600;
    }

    .calAppCalendarWrap {
      flex: 1;
      min-height: 0;
      overflow: auto;
      position: relative;
    }

    .calAppCalendarView {
      min-height: 100%;
      position: relative;
    }

    .calAppDayView,
    .calAppWeekView {
      display: grid;
      grid-template-columns: 58px minmax(0, 1fr);
      min-height: 100%;
    }

    .calAppTimeCol {
      border-right: 1px solid var(--calAppLine);
      background: rgba(248,248,250,0.6);
      position: sticky;
      left: 0;
      z-index: 4;
    }

    .calAppTimeColSpacer {
      height: calc(var(--calAppAllDayHeight) + 56px);
      border-bottom: 1px solid var(--calAppLine);
      background: rgba(248,248,250,0.9);
      position: sticky;
      top: 0;
      z-index: 4;
    }

    .calAppTimeLabel {
      height: var(--calAppHourHeight);
      display: flex;
      align-items: flex-start;
      justify-content: flex-end;
      padding: 6px 10px 0 0;
      font-size: 12px;
      color: var(--calAppMuted);
      border-bottom: 1px solid var(--calAppLine);
    }

    .calAppGridArea {
      min-width: 900px;
      position: relative;
    }

    .calAppWeekHeader,
    .calAppDayHeader,
    .calAppMonthWeekdays {
      position: sticky;
      top: 0;
      z-index: 6;
      background: rgba(248,248,250,0.94);
      backdrop-filter: blur(18px);
      border-bottom: 1px solid var(--calAppLine);
    }

    .calAppWeekHeaderDays,
    .calAppWeekAllDayRow,
    .calAppWeekTimeGrid {
      display: grid;
      grid-template-columns: repeat(7, minmax(120px, 1fr));
    }

    .calAppDayHeaderDays,
    .calAppDayAllDayRow,
    .calAppDayTimeGrid {
      display: grid;
      grid-template-columns: minmax(280px, 1fr);
    }

    .calAppWeekHeaderDays,
    .calAppDayHeaderDays {
      height: 56px;
      align-items: stretch;
    }

    .calAppHeaderDayCell {
      border-right: 1px solid var(--calAppLine);
      padding: 8px 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 2px;
    }

    .calAppHeaderDayCell:last-child {
      border-right: 0;
    }

    .calAppHeaderTop {
      font-size: 14px;
      color: var(--calAppMuted);
    }

    .calAppHeaderBottom {
      font-size: 28px;
      line-height: 1;
      font-weight: 650;
      width: 40px;
      height: 40px;
      display: grid;
      place-items: center;
      border-radius: 999px;
    }

    .calAppHeaderBottom.calAppIsToday {
      background: var(--calAppAccent);
      color: white;
    }

    .calAppAllDayLabel {
      position: absolute;
      left: 8px;
      top: 66px;
      z-index: 5;
      font-size: 12px;
      color: var(--calAppMuted);
      pointer-events: none;
    }

    .calAppWeekAllDayRow,
    .calAppDayAllDayRow {
      height: var(--calAppAllDayHeight);
      border-bottom: 1px solid var(--calAppLine);
      background: rgba(255,255,255,0.42);
    }

    .calAppAllDayCell,
    .calAppMonthCell,
    .calAppTimeDayCol,
    .calAppDayTimeCol {
        border-right: 1px solid var(--calAppLine);
        position: relative;
    }

    .calAppYearMonthCell {
        position: relative;
    }

    .calAppAllDayCell:last-child,
    .calAppTimeDayCol:last-child {
      border-right: 0;
    }

    .calAppWeekTimeGrid,
    .calAppDayTimeGrid {
      min-height: calc(var(--calAppHourHeight) * 24);
    }

    .calAppTimeDayCol,
    .calAppDayTimeCol {
      height: calc(var(--calAppHourHeight) * 24);
      background-image: linear-gradient(to bottom, transparent calc(var(--calAppHourHeight) - 1px), var(--calAppLine) calc(var(--calAppHourHeight) - 1px));
      background-size: 100% var(--calAppHourHeight);
    }

    .calAppTimeDayCol:hover,
    .calAppDayTimeCol:hover,
    .calAppMonthCell:hover,
    .calAppYearMonthCell:hover,
    .calAppAllDayCell:hover {
      background-color: rgba(255,59,48,0.03);
    }

    .calAppTimeSlotHover {
      position: absolute;
      left: 0;
      right: 0;
      background: rgba(255,59,48,0.08);
      border-top: 1px dashed rgba(255,59,48,0.28);
      border-bottom: 1px dashed rgba(255,59,48,0.28);
      pointer-events: none;
      z-index: 2;
    }

    .calAppEventBlock,
    .calAppMonthTimedEvent,
    .calAppYearTimedEvent,
    .calAppSpanBar {
      overflow: hidden;
      border-radius: 10px;
      color: #111;
      font-size: 12px;
    }

    .calAppEventBlock {
      position: absolute;
      left: 4px;
      right: 4px;
      padding: 6px 8px;
      display: flex;
      flex-direction: column;
      gap: 4px;
      z-index: 3;
      cursor: pointer;
    }

    .calAppEventTitle {
      font-weight: 700;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .calAppEventTime {
      font-size: 11px;
      opacity: 0.75;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .calAppMonthView {
      min-width: 1100px;
      min-height: 100%;
      display: grid;
      grid-template-rows: auto 1fr;
    }

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

    .calAppMonthWeekdays div {
      height: 32px;
      display: grid;
      place-items: center;
      font-size: 14px;
      color: var(--calAppMuted);
      border-right: 1px solid var(--calAppLine);
    }

    .calAppMonthWeekdays div:last-child {
      border-right: 0;
    }

    .calAppMonthGrid {
      position: relative;
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      grid-auto-rows: minmax(140px, 1fr);
      min-height: calc(100vh - var(--calAppToolbarHeight) - 54px);
    }

    .calAppMonthCell {
      border-bottom: 1px solid var(--calAppLine);
      min-height: 140px;
      padding: 6px;
      display: flex;
      flex-direction: column;
      gap: 4px;
      position: relative;
    }

    .calAppMonthCell.calAppIsMuted .calAppMonthDate {
      color: rgba(29,29,31,0.32);
    }

    .calAppMonthCell.calAppIsSelected {
      background: rgba(255,59,48,0.04);
    }

    .calAppMonthDate {
      align-self: flex-end;
      width: 28px;
      height: 28px;
      border-radius: 999px;
      display: grid;
      place-items: center;
      font-size: 14px;
      font-weight: 650;
      flex-shrink: 0;
    }

    .calAppMonthDate.calAppIsToday,
    .calAppYearDate.calAppIsToday {
      background: var(--calAppAccent);
      color: white;
    }

    .calAppMonthTimedWrap,
    .calAppYearEvents {
      display: grid;
      gap: 3px;
      overflow: hidden;
      min-height: 0;
      position: relative;
      z-index: 1;
    }

    .calAppMonthTimedEvent,
    .calAppYearTimedEvent {
      position: static;
      height: 22px;
      padding: 2px 7px;
      display: flex;
      align-items: center;
      gap: 6px;
      white-space: nowrap;
      cursor: pointer;
    }

    .calAppMonthTimedEventTime,
    .calAppYearTimedEventTime {
      margin-left: auto;
      color: rgba(0,0,0,0.45);
      font-size: 11px;
      flex-shrink: 0;
    }

    .calAppMonthSpanLayer {
      position: absolute;
      inset: 0;
      pointer-events: none;
      z-index: 3;
    }

    .calAppSpanBar {
      position: absolute;
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 2px 8px;
      height: 24px;
      white-space: nowrap;
      box-shadow: inset 4px 0 0 rgba(0,0,0,0.15);
      pointer-events: auto;
      cursor: pointer;
      border-radius: 8px;
    }

    .calAppSpanText {
      overflow: hidden;
      text-overflow: ellipsis;
      font-weight: 700;
    }

    .calAppSpanHandle {
      width: 14px;
      align-self: stretch;
      display: grid;
      place-items: center;
      font-size: 10px;
      color: rgba(0,0,0,0.55);
      cursor: ew-resize;
      flex-shrink: 0;
    }

    .calAppSpanHandle.calAppIsHidden {
      visibility: hidden;
    }

    .calAppYearView {
      padding: 20px;
      min-width: 1100px;
    }

    .calAppYearTitle {
      font-size: 54px;
      line-height: 1;
      font-weight: 350;
      margin-bottom: 18px;
    }

    .calAppYearGrid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      align-items: start;
    }

    .calAppYearMonthCard {
      display: grid;
      gap: 10px;
    }

    .calAppYearMonthName {
      font-size: 20px;
      font-weight: 500;
      color: var(--calAppAccent);
    }

    .calAppYearWeekdays {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 4px;
      font-size: 12px;
      color: var(--calAppMuted);
      text-align: center;
    }

    .calAppYearMonthGrid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 4px;
    }

    .calAppYearMonthCell {
        display: flex;
        flex-direction: column;
    }

    .calAppYearMonthCell.calAppIsMuted {
        opacity: 0.34;
    }

    /* .calAppYearMonthCell.calAppIsSelected {
      outline: 2px solid rgba(255,59,48,0.2);
      background: rgba(255,59,48,0.04);
    } */

    .calAppYearDate {
      font-size: 12px;
      font-weight: 650;
      text-align: center;
      width: 28px;
      height: 28px;
      display: grid;
      place-items: center;
      margin: 0 auto;
      border-radius: 999px;
    }

    .calAppSelectionBox {
      position: absolute;
      border-radius: 12px;
      background: rgba(255,59,48,0.08);
      border: 2px dashed rgba(255,59,48,0.3);
      pointer-events: none;
      z-index: 20;
    }

    .calAppRightCard {
      padding: 14px;
      margin-bottom: 12px;
    }

    .calAppRightbar h3 {
      margin: 0 0 10px;
      font-size: 15px;
    }

    .calAppSelectedDate {
      font-size: 20px;
      font-weight: 700;
    }

    .calAppSelectedDateSub {
      font-size: 14px;
      color: var(--calAppMuted);
      margin-top: 4px;
    }

    .calAppEventList {
      display: grid;
      gap: 10px;
    }

    .calAppEventListItem {
      background: rgba(60,60,67,0.05);
      border-radius: 14px;
      padding: 10px 12px;
      border-left: 6px solid transparent;
      cursor: pointer;
    }

    .calAppEventListItemTitle {
      font-size: 15px;
      font-weight: 700;
    }

    .calAppEventListItemMeta {
      font-size: 12px;
      color: var(--calAppMuted);
      margin-top: 4px;
    }

    .calAppEmptyText {
        font-size: 14px;
        color: var(--calAppMuted);
    }

    .calAppLabelNameInput {
        flex: 1;
        min-width: 0;
        border: 0;
        outline: none;
        background: transparent;
        font-size: 16px;
        font-weight: 500;
        color: inherit;
        padding: 0;
    }

    .calAppModalBackdrop {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.12);
      backdrop-filter: blur(8px);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 100;
      padding: 24px;
    }

    .calAppModalBackdrop.calAppIsOpen {
      display: flex;
    }

    .calAppModal {
      width: min(560px, 100%);
      background: rgba(255,255,255,0.88);
      border: 1px solid rgba(255,255,255,0.8);
      box-shadow: var(--calAppShadow);
      border-radius: 28px;
      padding: 18px;
    }

    .calAppModalHeader {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 14px;
    }

    .calAppModalTitle {
      font-size: 22px;
      font-weight: 800;
    }

    .calAppModalGrid {
      display: grid;
      gap: 12px;
    }

    .calAppModalTwo {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .calAppMutedNote {
      font-size: 12px;
      color: var(--calAppMuted);
    }

    .calAppHidden {
      display: none !important;
    }