/* Isolated desktop Start preview. Mobile production routes remain untouched. */
body:has(#desktop-preview-frame) {
    min-height: 100vh;
    height: auto;
    display: block;
    overflow: hidden;
    background: var(--ui-page-bg);
}

#desktop-preview-frame.phone-frame {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-rows: 1fr;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    background: var(--ui-page-bg);
}

#desktop-preview-frame > .bottom-nav-responsive {
    position: relative !important;
    inset: auto !important;
    grid-column: 1;
    grid-row: 1;
    width: 220px;
    height: 100vh;
    padding: 112px 14px 20px !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 8px;
    border: 0;
    background: var(--color-text-primary);
    box-shadow: 8px 0 24px rgba(51, 51, 51, 0.08);
    z-index: 80;
}

#desktop-preview-frame > .bottom-nav-responsive::before {
    content: '';
    position: absolute;
    top: 34px;
    left: 25px;
    width: 168px;
    height: 52px;
    background: url('logo-no-limits.png') center / contain no-repeat;
    filter: brightness(0) invert(1);
    pointer-events: none;
}

#desktop-preview-frame > .bottom-nav-responsive > a,
#desktop-preview-frame > .bottom-nav-responsive > button {
    width: 100% !important;
    min-height: 50px !important;
    height: 50px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 13px !important;
    border: 0 !important;
    border-radius: var(--radius-control) !important;
    background: transparent !important;
    color: rgba(255,255,255,.82) !important;
    box-shadow: none !important;
    text-decoration: none;
    transform: none !important;
}

#desktop-preview-frame > .bottom-nav-responsive > a:hover,
#desktop-preview-frame > .bottom-nav-responsive > button:hover {
    background: rgba(255,255,255,.08) !important;
    color: #fff !important;
}

#desktop-preview-frame > .bottom-nav-responsive > .text-red-600 {
    background: var(--ui-brand-action) !important;
    color: #fff !important;
    box-shadow: 0 7px 18px rgba(149, 12, 15, .24) !important;
}

#desktop-preview-frame > .bottom-nav-responsive i {
    width: 22px;
    margin: 0 !important;
    font-size: 18px !important;
    color: currentColor !important;
    text-align: center;
}

#desktop-preview-frame > .bottom-nav-responsive span {
    position: static !important;
    display: inline !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: currentColor !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 650 !important;
    opacity: 1 !important;
    transform: none !important;
}

#desktop-preview-frame > .bottom-nav-responsive .bottom-nav-fab-label {
    position: static !important;
    display: inline !important;
    clip: auto !important;
    overflow: visible !important;
    white-space: normal !important;
}

#desktop-preview-frame > main {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    height: 100vh;
    padding: 0 !important;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--ui-page-bg) !important;
}

.desktop-preview-page {
    min-height: 100%;
    background: var(--ui-page-bg);
}

.desktop-preview-page > [data-global-modal-header] {
    position: sticky !important;
    top: 0;
    height: 76px;
    min-height: 76px;
    padding: 0 40px !important;
    display: flex;
    justify-content: flex-end !important;
    gap: 10px;
    border-bottom: 1px solid var(--ui-line);
    background: rgba(255,255,255,.94) !important;
    box-shadow: 0 3px 14px rgba(51,51,51,.04) !important;
    backdrop-filter: blur(12px);
}

.desktop-preview-page #header-greeting {
    left: 40px !important;
    right: auto !important;
    top: 50%;
    transform: translateY(-50%) !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    color: var(--ui-text) !important;
}

.desktop-preview-page #header-profile-avatar {
    order: 3;
    width: 38px !important;
    height: 38px !important;
    font-size: 12px !important;
}

.desktop-preview-page [data-global-modal-actions] {
    order: 2;
    gap: 4px !important;
}

.desktop-preview-inner {
    width: min(1380px, calc(100% - 64px));
    margin: 0 auto;
    padding: 22px 0 42px;
}

.desktop-preview-makeup {
    margin: 0 0 18px !important;
    overflow: hidden;
    border-radius: var(--radius-card);
    box-shadow: var(--ui-record-shadow);
}

.desktop-preview-makeup > div {
    min-height: 54px;
    padding: 10px 18px !important;
}

.desktop-preview-grid {
    display: grid;
    grid-template-columns: minmax(610px, 1.62fr) minmax(350px, .9fr);
    gap: 20px;
    align-items: start;
}

.desktop-preview-primary,
.desktop-preview-secondary {
    min-width: 0;
}

.desktop-preview-primary {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.desktop-preview-secondary {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.desktop-preview-calendar,
.desktop-preview-schedule,
.desktop-preview-panel {
    overflow: hidden;
    border: 0 !important;
    background: var(--ui-surface) !important;
    border-radius: var(--ui-record-radius) !important;
    box-shadow: var(--ui-record-shadow) !important;
}

.desktop-preview-calendar {
    padding: 13px 18px 11px !important;
}

.desktop-preview-calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.desktop-preview-calendar #displayed-month-name {
    margin: 0;
    color: var(--ui-text) !important;
    font-size: 14px !important;
    line-height: 1.2;
    font-weight: 800 !important;
    letter-spacing: .045em;
}

.desktop-preview-calendar .p-home-calendar-section-heading {
    margin-top: 2px;
    color: var(--ui-text-secondary) !important;
    font-size: 11px !important;
    font-weight: 650 !important;
}

.desktop-preview-calendar-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.desktop-preview-today {
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid var(--ui-line);
    border-radius: var(--radius-pill) !important;
    background: var(--ui-surface);
    color: var(--ui-text-secondary);
    font-size: 10px;
    font-weight: 750;
    cursor: pointer;
}

.desktop-preview-today:hover {
    border-color: #d8d8d8;
    color: var(--ui-brand-action);
}

.desktop-preview-view-switch {
    display: flex;
    gap: 3px;
    padding: 3px;
    border-radius: var(--radius-pill);
    background: var(--ui-surface-muted);
}

.desktop-preview-view-switch button {
    min-height: 30px;
    padding: 0 13px;
    border: 0;
    border-radius: var(--radius-pill) !important;
    background: transparent;
    color: var(--ui-text-secondary);
    font-size: 10px;
    font-weight: 750;
}

.desktop-preview-view-switch button.is-active,
.desktop-preview-view-switch button.bg-white,
.desktop-preview-view-switch button[aria-pressed="true"] {
    background: var(--ui-surface) !important;
    color: var(--ui-text) !important;
    box-shadow: 0 1px 3px rgba(51,51,51,.1) !important;
}

.desktop-preview-calendar-gesture {
    padding: 0 12px;
}

.desktop-preview-week-labels {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    margin-bottom: 2px;
    text-align: center;
}

.desktop-preview-week-labels span {
    color: var(--ui-text-secondary);
    font-size: 8px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
}

.desktop-preview-week-labels span:nth-last-child(-n+2) {
    color: var(--ui-brand-action);
}

.desktop-preview-calendar #weekViewContainer,
.desktop-preview-calendar #monthViewContainer {
    row-gap: 0 !important;
}

.desktop-preview-calendar [data-plan-day-link] {
    min-height: 32px !important;
    padding-top: 1px !important;
    padding-bottom: 1px !important;
}

.desktop-preview-calendar [data-plan-day-link] > .relative {
    min-height: 30px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.desktop-preview-calendar [data-plan-day-link] > .relative > span:first-child {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 11px !important;
    line-height: 1 !important;
}

.desktop-preview-calendar-star {
    position: absolute !important;
    top: -2px !important;
    right: -5px !important;
    z-index: 3;
    color: #f59e0b !important;
    font-size: 8px !important;
    line-height: 1 !important;
    pointer-events: none;
}

.desktop-preview-calendar .p-home-calendar-shift {
    top: 14px;
}

.desktop-preview-calendar .p-home-calendar-shift.is-prev { left: -6px; }
.desktop-preview-calendar .p-home-calendar-shift.is-next { right: -6px; }

.desktop-preview-schedule {
    min-height: 190px;
}

.desktop-preview-schedule .p-home-day-header {
    position: static !important;
    padding: 11px 18px 6px !important;
    background: var(--ui-surface) !important;
    box-shadow: none !important;
}

.desktop-preview-schedule .p-home-day-content {
    padding: 3px 16px 12px !important;
    background: var(--ui-surface) !important;
}

.desktop-preview-schedule .plan-card {
    min-height: 50px;
    margin: 0 !important;
    padding: 6px 4px 6px 7px !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(51,51,51,.07) !important;
}

.desktop-preview-schedule .plan-card + .plan-card,
.desktop-preview-schedule .reco-card + .plan-card,
.desktop-preview-schedule .plan-card + .reco-card {
    margin-top: 6px !important;
}

.desktop-preview-schedule .time-section {
    width: 86px;
    min-width: 86px;
}

.desktop-preview-schedule .time-section > span:first-child {
    white-space: nowrap;
    font-size: 10.5px !important;
}

.desktop-preview-schedule .meet-type-badge {
    padding-left: 6px !important;
    padding-right: 6px !important;
    white-space: nowrap;
    text-transform: none !important;
}

.desktop-preview-schedule .meet-type-badge.st-kurs {
    background: var(--ui-brand-action-soft) !important;
    color: var(--ui-brand-action-hover) !important;
}

.desktop-preview-schedule .meet-type-badge.st-dokladka {
    background: var(--ui-success-soft) !important;
    color: var(--ui-success-text) !important;
}

.desktop-preview-schedule .content-section {
    min-width: 0;
}

.desktop-preview-schedule .card-sub-row {
    display: flex !important;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.desktop-preview-lesson-number {
    flex: 0 0 auto;
    padding-right: 7px;
    border-right: 1px solid var(--ui-line);
    color: var(--ui-text-secondary);
    font-size: 9px;
    line-height: 1.2;
    font-weight: 750;
    white-space: nowrap;
}

.desktop-preview-schedule .c-attendance-toggle {
    display: inline-grid !important;
    grid-template-columns: auto 51px auto;
    grid-template-rows: 28px;
    align-items: center;
    justify-items: center;
    gap: 5px;
    width: auto !important;
    min-width: 118px !important;
    margin-right: 7px;
}

.desktop-preview-schedule .c-attendance-toggle__label {
    font-size: 7.5px;
    white-space: nowrap;
}

.desktop-preview-schedule .c-attendance-toggle__track {
    width: 51px;
    height: 28px;
}

.desktop-preview-schedule .c-attendance-toggle__thumb {
    transform: translateX(0) !important;
}

.desktop-preview-schedule .c-attendance-toggle[aria-pressed="false"] .c-attendance-toggle__thumb {
    transform: translateX(23px) !important;
}

.desktop-preview-schedule .reco-card {
    box-shadow: none !important;
}

.desktop-preview-full-schedule {
    min-height: 48px;
    display: grid;
    grid-template-columns: 20px 1fr 20px;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    border-radius: var(--ui-record-radius);
    background: var(--ui-surface);
    color: var(--ui-text);
    box-shadow: var(--ui-record-shadow);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.desktop-preview-full-schedule i:last-child { justify-self: end; }
.desktop-preview-full-schedule:hover { color: var(--ui-brand-action); }

.desktop-preview-panel {
    padding: 17px;
}

.desktop-preview-section-title {
    margin: 0 0 13px;
    color: var(--ui-text);
    font-size: 16px;
    line-height: 1.3;
    font-weight: 800;
}

.desktop-preview-recommendations {
    display: flex !important;
    flex-direction: column !important;
    gap: 9px !important;
    overflow: visible !important;
    padding: 0 !important;
}

.desktop-preview-recommendations [data-recommendation-card] {
    width: 100% !important;
    min-width: 0 !important;
    height: 112px !important;
    min-height: 112px !important;
    display: block;
    overflow: hidden;
    border: 1px solid var(--ui-line) !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(51,51,51,.055) !important;
}

.desktop-preview-recommendations [data-recommendation-card][hidden] {
    display: none !important;
}

.desktop-preview-recommendations [data-recommendation-card] > a {
    height: 100% !important;
    display: grid !important;
    grid-template-columns: 124px minmax(0, 1fr) !important;
    grid-template-rows: 1fr !important;
    flex-direction: unset !important;
    color: inherit;
    text-decoration: none;
}

.desktop-preview-recommendations [data-recommendation-card] > a > img,
.desktop-preview-recommendations [data-recommendation-card] > a > video,
.desktop-preview-recommendations [data-recommendation-card] > a > div:first-child {
    width: 124px !important;
    height: 112px !important;
    min-height: 112px !important;
    object-fit: cover !important;
}

.desktop-preview-recommendations [data-recommendation-card] > a > div:last-child {
    min-width: 0;
    padding: 12px 31px 10px 13px !important;
    justify-content: center;
}

.desktop-preview-recommendations [data-recommendation-card] h4 {
    font-size: 12px !important;
    font-weight: 800 !important;
}

.desktop-preview-recommendations [data-recommendation-card] p {
    font-size: 9.5px !important;
    line-height: 1.35 !important;
}

.desktop-preview-recommendations [data-recommendation-dismiss] {
    right: 10px !important;
    top: 9px !important;
}

.desktop-preview-recommendations [class*="from-indigo"] {
    background: linear-gradient(135deg, var(--ui-brand-action-soft), var(--ui-surface-muted)) !important;
    color: var(--ui-brand-action) !important;
}

.desktop-preview-pager {
    min-height: 34px;
    margin-top: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.desktop-preview-pager[hidden] { display: none !important; }

.desktop-preview-pager button {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid var(--ui-line);
    border-radius: 9px !important;
    background: var(--ui-surface);
    color: var(--ui-text-secondary);
    font-size: 10px;
}

.desktop-preview-pager button:disabled {
    opacity: .35;
    cursor: default;
}

.desktop-preview-pager span {
    min-width: 42px;
    color: var(--ui-text-secondary);
    font-size: 10px;
    font-weight: 700;
    text-align: center;
}

.desktop-preview-favorites {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px !important;
    overflow: visible !important;
    padding: 0 !important;
}

.desktop-preview-favorites [data-favorite-activity-card] {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    position: relative !important;
    display: block !important;
    overflow: hidden;
    border: 0 !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(51,51,51,.08) !important;
}

.desktop-preview-favorites [data-favorite-activity-card] > img,
.desktop-preview-favorites [data-favorite-activity-card] > video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.desktop-preview-favorites [data-favorite-activity-card] > div:last-child {
    position: absolute !important;
    inset: auto 6px 6px 6px !important;
    display: block !important;
    padding: 8px 9px !important;
    border-radius: 9px !important;
    background: rgba(255,255,255,.95) !important;
    backdrop-filter: none !important;
}

.desktop-preview-favorites [data-favorite-activity-card] h4 {
    overflow: visible !important;
    font-size: 9.5px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    text-overflow: clip !important;
    white-space: normal !important;
}

.desktop-preview-favorites [data-favorite-activity-card] p {
    overflow: visible !important;
    margin-top: 2px !important;
    font-size: 7.5px !important;
    line-height: 1.2 !important;
    text-overflow: clip !important;
    white-space: normal !important;
}

.desktop-preview-favorites [data-favorite-remove] {
    right: 7px !important;
    top: 7px !important;
    width: 27px !important;
    height: 27px !important;
    background: rgba(255,255,255,.92) !important;
    box-shadow: 0 1px 5px rgba(51,51,51,.14) !important;
    transform: none !important;
}

.desktop-preview-skeleton {
    padding: 20px;
}

.desktop-preview-skeleton-line,
.desktop-preview-skeleton-card {
    border-radius: 12px;
    background: #efefef;
    animation: desktop-preview-pulse 1.2s ease-in-out infinite alternate;
}

.desktop-preview-skeleton-line { width: 140px; height: 14px; margin-bottom: 14px; }
.desktop-preview-skeleton-card { height: 52px; margin-top: 7px; }

@keyframes desktop-preview-pulse { from { opacity: .6; } to { opacity: 1; } }

@media (max-width: 1180px) {
    #desktop-preview-frame.phone-frame { grid-template-columns: 82px minmax(0, 1fr); }
    #desktop-preview-frame > .bottom-nav-responsive { width: 82px; padding: 86px 10px 18px !important; }
    #desktop-preview-frame > .bottom-nav-responsive::before { top: 26px; left: 16px; width: 50px; height: 38px; background-size: 118px auto; }
    #desktop-preview-frame > .bottom-nav-responsive > a,
    #desktop-preview-frame > .bottom-nav-responsive > button { justify-content: center !important; padding: 0 !important; }
    #desktop-preview-frame > .bottom-nav-responsive span { display: none !important; }
    .desktop-preview-inner { width: calc(100% - 40px); }
    .desktop-preview-grid { grid-template-columns: minmax(540px, 1.45fr) minmax(310px, .8fr); gap: 16px; }
    .desktop-preview-schedule .c-attendance-toggle { min-width: 108px !important; gap: 3px; }
}

@media (max-width: 930px) {
    #desktop-preview-frame.phone-frame { grid-template-columns: 72px minmax(0, 1fr); }
    #desktop-preview-frame > .bottom-nav-responsive { width: 72px; }
    .desktop-preview-grid { grid-template-columns: 1fr; }
    .desktop-preview-secondary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* NL_DESKTOP_HOME_RESPONSIVE_BREAKPOINT_20260817
   Desktop Start only: fold the two-column layout before its fixed minima collide. */
@media (max-width: 1000px) {
    .desktop-preview-grid {
        grid-template-columns: 1fr !important;
    }

    .desktop-preview-secondary {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    .desktop-preview-secondary {
        grid-template-columns: 1fr !important;
    }
}
