/* BEGIN MARKUZI-COMMUNITY-STREAM-PLAN */
.mk-stream-plan-page {
    --mk-sp-cyan: #48dcff;
    --mk-sp-mint: #62e7bc;
    --mk-sp-purple: #b490ff;
    --mk-sp-danger: #ff7f96;
    --mk-sp-border: rgba(76, 201, 245, .22);
    display: grid;
    width: min(1680px, calc(100% - 30px));
    gap: 16px;
    margin: 28px auto 58px;
    color: #eaf5ff;
}

.admin-shell .mk-stream-plan-page {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
}

.mk-stream-plan-page *,
.mk-stream-plan-page *::before,
.mk-stream-plan-page *::after {
    box-sizing: border-box;
}

.mk-stream-plan-dashboard-back {
    display: flex;
}

.mk-stream-plan-dashboard-back a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    border: 1px solid rgba(75, 188, 230, .22);
    border-radius: 10px;
    background: rgba(5, 26, 48, .78);
    color: #91ddf7;
    font-size: .74rem;
    font-weight: 850;
    padding: 0 13px;
    text-decoration: none;
}

.mk-stream-plan-dashboard-back a:hover {
    border-color: rgba(72, 220, 255, .48);
    color: #d6f7ff;
}

.mk-stream-plan-hero {
    display: flex;
    min-height: 190px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    overflow: hidden;
    border: 1px solid var(--mk-sp-border);
    border-radius: 22px;
    background:
        radial-gradient(
            circle at 86% 20%,
            rgba(94, 55, 202, .24),
            transparent 31%
        ),
        radial-gradient(
            circle at 69% 3%,
            rgba(34, 205, 255, .14),
            transparent 27%
        ),
        linear-gradient(
            135deg,
            rgba(7, 35, 66, .98),
            rgba(3, 13, 30, .99)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .03),
        0 24px 65px rgba(0, 0, 0, .22);
    padding: 30px 32px;
}

.mk-stream-plan-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--mk-sp-cyan);
    font-size: .68rem;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.mk-stream-plan-hero h1,
.mk-stream-plan-hero h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.mk-stream-plan-hero p {
    max-width: 780px;
    margin: 14px 0 0;
    color: #a7bed2;
    font-size: .86rem;
    line-height: 1.7;
}

.mk-stream-plan-week-badge {
    display: grid;
    min-width: 230px;
    gap: 7px;
    border: 1px solid rgba(180, 144, 255, .25);
    border-radius: 18px;
    background: rgba(30, 18, 65, .40);
    padding: 22px;
}

.mk-stream-plan-week-badge span,
.mk-stream-plan-week-badge small {
    color: #9fb3c8;
    font-size: .68rem;
}

.mk-stream-plan-week-badge strong {
    color: #fff;
    font-size: 1.12rem;
}

.mk-stream-plan-hero-actions {
    display: flex;
    align-items: center;
}

.mk-stream-plan-hero-actions a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(72, 220, 255, .54);
    border-radius: 11px;
    background:
        linear-gradient(
            135deg,
            rgba(17, 157, 216, .26),
            rgba(63, 71, 184, .25)
        );
    color: #bfefff;
    font-size: .72rem;
    font-weight: 900;
    padding: 0 16px;
    text-decoration: none;
}

.mk-stream-plan-week-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--mk-sp-border);
    border-radius: 14px;
    background: rgba(4, 20, 39, .88);
    padding: 10px;
}

.mk-stream-plan-week-nav a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #9eb6cb;
    font-size: .7rem;
    font-weight: 850;
    padding: 0 12px;
    text-decoration: none;
}

.mk-stream-plan-week-nav a:first-child {
    justify-self: start;
}

.mk-stream-plan-week-nav a:last-child {
    justify-self: end;
}

.mk-stream-plan-week-nav a:hover,
.mk-stream-plan-week-nav a.is-current {
    border-color: rgba(72, 220, 255, .28);
    background: rgba(22, 119, 160, .12);
    color: #c8f4ff;
}

.mk-stream-plan-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.mk-stream-plan-stat-grid article {
    display: flex;
    min-height: 92px;
    align-items: center;
    gap: 13px;
    border: 1px solid var(--mk-sp-border);
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            rgba(7, 30, 56, .95),
            rgba(3, 15, 31, .97)
        );
    padding: 16px;
}

.mk-stream-plan-stat-grid article > span {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(72, 220, 255, .28);
    border-radius: 13px;
    background: rgba(22, 137, 183, .11);
    color: var(--mk-sp-cyan);
    font-weight: 950;
}

.mk-stream-plan-stat-grid strong,
.mk-stream-plan-stat-grid small {
    display: block;
}

.mk-stream-plan-stat-grid strong {
    color: #f5faff;
    font-size: 1.14rem;
}

.mk-stream-plan-stat-grid small {
    margin-top: 5px;
    color: #879fb5;
    font-size: .64rem;
}

.mk-stream-plan-alert {
    border: 1px solid;
    border-radius: 13px;
    font-size: .75rem;
    line-height: 1.6;
    padding: 14px 16px;
}

.mk-stream-plan-alert.is-success {
    border-color: rgba(98, 231, 188, .30);
    background: rgba(24, 143, 108, .10);
    color: #9af0d3;
}

.mk-stream-plan-alert.is-error {
    border-color: rgba(255, 127, 150, .34);
    background: rgba(154, 38, 63, .12);
    color: #ffc1cc;
}

.mk-stream-plan-alert ul {
    margin: 7px 0 0;
    padding-left: 18px;
}

.mk-stream-plan-create-panel {
    overflow: hidden;
    border: 1px solid var(--mk-sp-border);
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            rgba(7, 31, 58, .97),
            rgba(3, 14, 29, .98)
        );
}

.mk-stream-plan-create-panel > header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid rgba(76, 201, 245, .15);
    padding: 20px 22px;
}

.mk-stream-plan-create-panel h3 {
    margin: 0;
    color: #fff;
    font-size: 1.18rem;
}

.mk-stream-plan-create-panel > header small {
    color: #8099b1;
    font-size: .66rem;
}

.mk-stream-plan-create-form {
    display: grid;
    grid-template-columns: 1.1fr .7fr 1.7fr .55fr;
    gap: 13px;
    padding: 20px 22px 22px;
}

.mk-stream-plan-create-form label,
.mk-stream-plan-edit-form label {
    display: grid;
    align-content: start;
    gap: 7px;
    color: #dcecff;
    font-size: .68rem;
    font-weight: 800;
}

.mk-stream-plan-create-form .is-info {
    grid-column: 1 / -1;
}

.mk-stream-plan-create-form input,
.mk-stream-plan-create-form select,
.mk-stream-plan-create-form textarea,
.mk-stream-plan-edit-form input,
.mk-stream-plan-edit-form select,
.mk-stream-plan-edit-form textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(95, 143, 184, .32);
    border-radius: 9px;
    background: rgba(1, 11, 24, .79);
    color: #eff8ff;
    font: inherit;
    outline: none;
    padding: 9px 11px;
}

.mk-stream-plan-create-form textarea,
.mk-stream-plan-edit-form textarea {
    min-height: 82px;
    resize: vertical;
}

.mk-stream-plan-create-form input:focus,
.mk-stream-plan-create-form select:focus,
.mk-stream-plan-create-form textarea:focus,
.mk-stream-plan-edit-form input:focus,
.mk-stream-plan-edit-form select:focus,
.mk-stream-plan-edit-form textarea:focus {
    border-color: var(--mk-sp-cyan);
    box-shadow: 0 0 0 3px rgba(72, 220, 255, .10);
}

.mk-stream-plan-toggle {
    display: flex !important;
    min-height: 58px;
    align-items: center;
    gap: 11px !important;
    border: 1px solid rgba(72, 220, 255, .18);
    border-radius: 10px;
    background: rgba(12, 67, 94, .10);
    padding: 10px 12px;
}

.mk-stream-plan-toggle input[type="hidden"] {
    display: none;
}

.mk-stream-plan-toggle input[type="checkbox"] {
    flex: 0 0 18px;
    width: 18px;
    min-height: 18px;
    margin: 0;
    accent-color: #49d9ff;
}

.mk-stream-plan-toggle span,
.mk-stream-plan-toggle strong,
.mk-stream-plan-toggle small {
    display: block;
}

.mk-stream-plan-toggle strong {
    color: #dff6ff;
    font-size: .69rem;
}

.mk-stream-plan-toggle small {
    margin-top: 3px;
    color: #7f99af;
    font-size: .59rem;
    line-height: 1.4;
}

.mk-stream-plan-create-form > button,
.mk-stream-plan-edit-form > button {
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    background:
        linear-gradient(
            100deg,
            var(--mk-sp-mint),
            var(--mk-sp-cyan)
        );
    color: #02141d;
    cursor: pointer;
    font: inherit;
    font-size: .7rem;
    font-weight: 950;
    padding: 0 14px;
}

.mk-stream-plan-create-form > button {
    align-self: end;
}

.mk-stream-plan-week-grid {
    display: grid;
    grid-template-columns:
        repeat(7, minmax(0, 1fr));
    align-items: start;
    gap: 11px;
}

.mk-stream-plan-day {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--mk-sp-border);
    border-radius: 17px;
    background:
        linear-gradient(
            155deg,
            rgba(7, 30, 56, .96),
            rgba(2, 13, 28, .98)
        );
}

.mk-stream-plan-day.is-today {
    border-color: rgba(98, 231, 188, .52);
    box-shadow:
        0 0 0 1px rgba(98, 231, 188, .08),
        0 16px 40px rgba(0, 0, 0, .16);
}

.mk-stream-plan-day > header {
    display: flex;
    min-height: 70px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid rgba(76, 201, 245, .14);
    background: rgba(7, 38, 68, .45);
    padding: 13px 14px;
}

.mk-stream-plan-day > header span,
.mk-stream-plan-day > header strong {
    display: block;
}

.mk-stream-plan-day > header span {
    color: #8ca9c1;
    font-size: .62rem;
    font-weight: 850;
    text-transform: uppercase;
}

.mk-stream-plan-day > header strong {
    margin-top: 4px;
    color: #f4f9ff;
    font-size: .94rem;
}

.mk-stream-plan-day > header em {
    border: 1px solid rgba(98, 231, 188, .24);
    border-radius: 999px;
    background: rgba(35, 151, 116, .10);
    color: #88e8c9;
    font-size: .54rem;
    font-style: normal;
    font-weight: 900;
    padding: 5px 8px;
}

.mk-stream-plan-day-entries {
    display: grid;
    gap: 9px;
    padding: 10px;
}

.mk-stream-plan-entry {
    min-width: 0;
    border: 1px solid rgba(80, 165, 212, .18);
    border-radius: 12px;
    background:
        linear-gradient(
            145deg,
            rgba(7, 42, 72, .66),
            rgba(4, 21, 40, .82)
        );
    padding: 13px;
}

.mk-stream-plan-entry time {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    border: 1px solid rgba(72, 220, 255, .24);
    border-radius: 999px;
    background: rgba(21, 129, 171, .10);
    color: #7de5ff;
    font-size: .59rem;
    font-weight: 950;
    padding: 0 8px;
}

.mk-stream-plan-entry h2 {
    overflow-wrap: anywhere;
    margin: 11px 0 0;
    color: #fff;
    font-size: .91rem;
    line-height: 1.35;
}

.mk-stream-plan-entry p {
    overflow-wrap: anywhere;
    white-space: pre-line;
    margin: 8px 0 0;
    color: #94acc1;
    font-size: .65rem;
    line-height: 1.55;
}

.mk-stream-plan-entry p.is-muted {
    color: #687f94;
}

.mk-stream-plan-empty {
    display: grid;
    min-height: 140px;
    place-content: center;
    justify-items: center;
    gap: 7px;
    color: #738ba1;
    text-align: center;
    padding: 16px 10px;
}

.mk-stream-plan-empty > span {
    color: #52738e;
    font-size: 1.25rem;
}

.mk-stream-plan-empty strong {
    color: #9bb0c3;
    font-size: .68rem;
}

.mk-stream-plan-empty small {
    max-width: 170px;
    font-size: .58rem;
    line-height: 1.45;
}

.mk-stream-plan-entry.is-editor {
    padding: 11px;
}

.mk-stream-plan-entry.is-editor.is-hidden {
    border-style: dashed;
    opacity: .82;
}

.mk-stream-plan-entry.is-editor > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 11px;
}

.mk-stream-plan-entry.is-editor > header > span {
    color: #83e5c5;
    font-size: .55rem;
    font-weight: 900;
}

.mk-stream-plan-entry.is-editor.is-hidden
    > header > span {
    color: #a8a1bf;
}

.mk-stream-plan-edit-form {
    display: grid;
    gap: 10px;
}

.mk-stream-plan-delete-form {
    margin-top: 8px;
}

.mk-stream-plan-delete-form button {
    width: 100%;
    min-height: 36px;
    border: 1px solid rgba(255, 127, 150, .25);
    border-radius: 8px;
    background: rgba(145, 35, 58, .08);
    color: #ff9daf;
    cursor: pointer;
    font: inherit;
    font-size: .62rem;
    font-weight: 850;
}

.mk-stream-plan-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid rgba(76, 201, 245, .15);
    border-radius: 13px;
    background: rgba(4, 20, 38, .72);
    color: #7891a7;
    font-size: .64rem;
    padding: 13px 15px;
}

.mk-stream-plan-footer a {
    color: #75dff8;
    font-weight: 850;
    text-decoration: none;
}

@media (max-width: 1450px) {
    .mk-stream-plan-week-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1050px) {
    .mk-stream-plan-create-form {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .mk-stream-plan-create-form .is-info {
        grid-column: 1 / -1;
    }

    .mk-stream-plan-stat-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .mk-stream-plan-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .mk-stream-plan-week-badge {
        min-width: 0;
    }

    .mk-stream-plan-week-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .mk-stream-plan-page {
        width: min(100% - 18px, 1680px);
        margin-top: 18px;
    }

    .admin-shell .mk-stream-plan-page {
        width: 100%;
    }

    .mk-stream-plan-hero {
        min-height: 0;
        border-radius: 18px;
        padding: 23px 20px;
    }

    .mk-stream-plan-week-nav {
        grid-template-columns: 1fr 1fr;
    }

    .mk-stream-plan-week-nav a {
        justify-self: stretch !important;
    }

    .mk-stream-plan-week-nav a.is-current {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .mk-stream-plan-stat-grid,
    .mk-stream-plan-create-form,
    .mk-stream-plan-week-grid {
        grid-template-columns: 1fr;
    }

    .mk-stream-plan-create-panel > header,
    .mk-stream-plan-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .mk-stream-plan-create-form .is-info {
        grid-column: auto;
    }
}
/* END MARKUZI-COMMUNITY-STREAM-PLAN */

/* BEGIN MARKUZI-STREAM-PLAN-AUTO-WEEK */
.mk-stream-plan-auto-release-note,
.mk-stream-plan-preview-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid rgba(72, 220, 255, .22);
    border-radius: 14px;
    background:
        linear-gradient(
            135deg,
            rgba(8, 37, 67, .94),
            rgba(4, 19, 38, .96)
        );
    padding: 15px 17px;
}

.mk-stream-plan-auto-release-note {
    justify-content: flex-start;
}

.mk-stream-plan-auto-release-note > span,
.mk-stream-plan-preview-banner > div > span {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(72, 220, 255, .28);
    border-radius: 12px;
    background: rgba(21, 130, 172, .12);
    color: var(--mk-sp-cyan);
    font-weight: 950;
}

.mk-stream-plan-auto-release-note strong,
.mk-stream-plan-preview-banner strong {
    display: block;
    color: #effaff;
    font-size: .76rem;
}

.mk-stream-plan-auto-release-note p,
.mk-stream-plan-preview-banner p {
    margin: 0;
}

.mk-stream-plan-auto-release-note p,
.mk-stream-plan-preview-banner small {
    display: block;
    margin-top: 5px;
    color: #92abc0;
    font-size: .66rem;
    line-height: 1.55;
}

.mk-stream-plan-auto-release-note.is-future,
.mk-stream-plan-preview-banner {
    border-color: rgba(180, 144, 255, .34);
    background:
        linear-gradient(
            135deg,
            rgba(39, 24, 82, .84),
            rgba(7, 27, 51, .96)
        );
}

.mk-stream-plan-auto-release-note.is-future > span,
.mk-stream-plan-preview-banner > div > span {
    border-color: rgba(180, 144, 255, .34);
    background: rgba(105, 70, 189, .14);
    color: #c2a8ff;
}

.mk-stream-plan-auto-release-note.is-current {
    border-color: rgba(98, 231, 188, .28);
}

.mk-stream-plan-auto-release-note.is-current > span {
    border-color: rgba(98, 231, 188, .30);
    background: rgba(36, 147, 114, .12);
    color: #82e9c9;
}

.mk-stream-plan-auto-release-note.is-past {
    opacity: .84;
}

.mk-stream-plan-preview-banner > div {
    display: flex;
    align-items: center;
    gap: 13px;
}

.mk-stream-plan-preview-banner > a {
    display: inline-flex;
    min-height: 38px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(180, 144, 255, .35);
    border-radius: 9px;
    background: rgba(83, 55, 151, .14);
    color: #d4c2ff;
    font-size: .65rem;
    font-weight: 900;
    padding: 0 12px;
    text-decoration: none;
}

.mk-stream-plan-hero-actions {
    flex-wrap: wrap;
    gap: 9px;
}

@media (max-width: 700px) {
    .mk-stream-plan-auto-release-note,
    .mk-stream-plan-preview-banner {
        align-items: flex-start;
        flex-direction: column;
    }

    .mk-stream-plan-preview-banner > a {
        width: 100%;
    }
}
/* END MARKUZI-STREAM-PLAN-AUTO-WEEK */
