.onsc-container {
    margin-bottom: 14px;
}

.onsc-card {
    display: grid;
    grid-template-columns: minmax(320px, .95fr) minmax(380px, 1.25fr) minmax(260px, .72fr);
    gap: 12px;
    min-height: 340px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 10px 28px rgba(31, 42, 68, .06);
    padding: 12px;
    backdrop-filter: blur(14px);
}

.onsc-calendar-panel,
.onsc-list,
.onsc-side {
    min-width: 0;
}

.onsc-calendar-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border-radius: 8px;
    background:
        radial-gradient(circle at 78% 20%, rgba(70, 194, 255, .32), transparent 30%),
        linear-gradient(135deg, #e8f9ff 0%, #f3fbff 52%, #fff 100%);
    padding: 24px 24px 18px;
}

.onsc-calendar-panel:after {
    content: '';
    position: absolute;
    right: 18px;
    bottom: 20px;
    width: 92px;
    height: 74px;
    border-radius: 20px;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, #52c8ff, #a7f3d0) border-box;
    border: 10px solid transparent;
    opacity: .58;
}

.onsc-kicker {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    border-radius: 999px;
    background: rgba(255, 255, 255, .66);
    color: #2677b8;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}

.onsc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .12);
}

.onsc-left-copy {
    position: relative;
    z-index: 2;
    max-width: 40%;
    margin: 18px 0 10px;
}

.onsc-left-copy h3 {
    margin: 0 0 12px;
    color: #142033;
    font-size: 27px;
    line-height: 1.15;
    font-weight: 800;
}

.onsc-focus {
    display: grid;
    gap: 4px;
}

.onsc-focus span,
.onsc-focus em {
    color: #6b778c;
    font-size: 12px;
    font-style: normal;
}

.onsc-focus strong {
    overflow: hidden;
    color: #142033;
    font-size: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.onsc-mini-calendar {
    position: absolute;
    z-index: 2;
    top: 28px;
    right: 22px;
    width: 232px;
    border: 2px solid rgba(44, 173, 224, .72);
    border-radius: 8px;
    background: rgba(255, 255, 255, .58);
    padding: 12px;
    box-shadow: 0 12px 28px rgba(44, 173, 224, .10);
}

.onsc-calendar-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 6px;
}

.onsc-calendar-head strong {
    display: block;
    color: #142033;
    font-size: 15px;
    line-height: 1.1;
    font-weight: 800;
}

.onsc-calendar-head em {
    color: #6b778c;
    font-size: 10px;
    font-style: normal;
    white-space: nowrap;
}

.onsc-weekdays,
.onsc-month-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
}

.onsc-weekdays {
    margin-bottom: 4px;
}

.onsc-weekdays span {
    color: #8a93a3;
    font-size: 10px;
    text-align: center;
}

.onsc-month-grid span {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    border-radius: 5px;
    background: rgba(255, 255, 255, .62);
    color: #334155;
    font-size: 10px;
    font-weight: 700;
}

.onsc-month-grid .is-empty {
    background: transparent;
}

.onsc-month-grid .is-today {
    background: #ff4d6d;
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 77, 109, .24);
}

.onsc-month-grid .has-event:after {
    content: '';
    position: absolute;
    right: 3px;
    bottom: 3px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #22c55e;
}

.onsc-month-grid .is-today.has-event:after {
    background: #fff;
}

.onsc-stats {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.onsc-stats div {
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
    padding: 8px 10px;
}

.onsc-stats strong {
    display: block;
    color: #ff4d6d;
    font-size: 20px;
    line-height: 1;
}

.onsc-stats span {
    color: #7b8496;
    font-size: 11px;
}

.onsc-list {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #f7fbff;
    padding: 10px;
}

.onsc-list-head {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 2px 4px 9px;
}

.onsc-list-head strong {
    color: #1e293b;
    font-size: 14px;
}

.onsc-list-head span {
    border-radius: 999px;
    background: rgba(255, 77, 109, .10);
    color: #ff365f;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
}

.onsc-scroll {
    display: grid;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
}

.onsc-scroll::-webkit-scrollbar {
    width: 5px;
}

.onsc-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(148, 163, 184, .55);
}

.onsc-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 43px;
    border-radius: 8px;
    background: #fff;
    padding: 8px 10px;
}

.onsc-date {
    display: grid;
    gap: 2px;
    text-align: center;
}

.onsc-date strong {
    color: #152033;
    font-size: 14px;
    line-height: 1;
}

.onsc-date span,
.onsc-main span,
.onsc-main p {
    color: #8a93a3;
    font-size: 11px;
}

.onsc-main {
    min-width: 0;
}

.onsc-main div {
    display: flex;
    gap: 8px;
    min-width: 0;
    align-items: center;
}

.onsc-main strong {
    overflow: hidden;
    color: #1e293b;
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.onsc-main span {
    flex: 0 0 auto;
}

.onsc-main p {
    overflow: hidden;
    margin: 3px 0 0;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.onsc-badge {
    border-radius: 999px;
    background: rgba(59, 130, 246, .10);
    color: #2563eb;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
}

.onsc-today .onsc-badge,
.onsc-urgent .onsc-badge {
    background: rgba(255, 77, 109, .12);
    color: #ff365f;
}

.onsc-live .onsc-badge {
    background: rgba(34, 197, 94, .12);
    color: #16a34a;
}

.onsc-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    border-radius: 8px;
    background:
        radial-gradient(circle at 70% 80%, rgba(255, 77, 109, .14), transparent 40%),
        linear-gradient(180deg, #eefcff 0%, #fff 48%);
    padding: 14px;
}

.onsc-side-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}

.onsc-side-head strong {
    color: #1e293b;
    font-size: 14px;
}

.onsc-side-head span {
    color: #8a93a3;
    font-size: 10px;
}

.onsc-task {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
}

.onsc-task > span {
    width: 8px;
    height: 8px;
    margin-top: 5px;
    border-radius: 50%;
    background: #ff4d6d;
    box-shadow: 0 0 0 4px rgba(255, 77, 109, .10);
}

.onsc-task div {
    min-width: 0;
}

.onsc-task strong {
    display: block;
    overflow: hidden;
    color: #38445a;
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.onsc-task em {
    color: #8a93a3;
    font-size: 11px;
    font-style: normal;
}

@media (max-width: 1199.98px) {
    .onsc-card {
        grid-template-columns: 1fr;
    }

    .onsc-scroll {
        max-height: 260px;
    }
}

@media (min-width: 1200px) and (max-width: 1450px) {
    .onsc-left-copy {
        max-width: 38%;
    }

    .onsc-mini-calendar {
        width: 214px;
        right: 16px;
        padding: 11px;
    }

    .onsc-left-copy h3 {
        font-size: 23px;
    }

    .onsc-weekdays,
    .onsc-month-grid {
        gap: 4px;
    }
}

@media (max-width: 575.98px) {
    .onsc-card {
        padding: 8px;
    }

    .onsc-calendar-panel {
        padding: 18px;
    }

    .onsc-left-copy {
        max-width: none;
        margin-right: 0;
    }

    .onsc-left-copy h3 {
        font-size: 23px;
    }

    .onsc-mini-calendar {
        position: relative;
        top: auto;
        right: auto;
        width: min(190px, 100%);
        margin: 12px 0 0;
    }

    .onsc-item {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .onsc-badge {
        grid-column: 2;
        width: fit-content;
    }
}
