:root {
    --bg: #f4f6f8;
    --panel: #ffffff;
    --ink: #12202f;
    --muted: #64758b;
    --line: #d2dbe5;
    --accent: #0d8e71;
    --accent-ink: #0b735b;
    --danger: #b54343;
    --danger-ink: #993333;
    --pin-accent: #8f99a9;
    --pin-accent-line: #808b9a;
    --radius: 14px;
    --shadow: 0 10px 24px rgba(18, 32, 47, 0.12);
    --dash-pill-height: 40px;
    --dash-pill-radius: 14px;
    --dash-pill-padding-x: 16px;
    --dash-pill-font-size: 0.92rem;
}

* { box-sizing: border-box; }

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    color: var(--ink);
    background: #fff;
    -webkit-text-size-adjust: 100%;
}

.projects-dashboard {
    min-height: 100vh;
    overscroll-behavior-y: none;
    background:
        radial-gradient(1320px 680px at 50% 700px, rgba(154, 183, 221, 0.38) 0%, rgba(154, 183, 221, 0.08) 64%, rgba(154, 183, 221, 0) 86%),
        linear-gradient(180deg, #ffffff 0%, #ffffff 360px, #f2f7fe 540px, #e4edf9 100%);
}

html.dashboard-scroll-managed {
    overflow-x: hidden;
    overflow-y: hidden;
}

html.files-scroll-locked {
    overflow: hidden;
}

html.audio-scroll-locked {
    overflow: hidden;
}

body.projects-dashboard {
    min-height: 100dvh;
    overflow: hidden;
}

body.projects-dashboard.dashboard-scroll-locked {
    overflow: hidden;
}

html.dashboard-prompter-scroll {
    overflow: hidden !important;
}

html.dashboard-blog-scroll {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

body.projects-dashboard.dashboard-prompter-active,
body.projects-dashboard.dashboard-prompter-active.dashboard-scroll-locked {
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    overscroll-behavior-y: none;
}

body.projects-dashboard.dashboard-blog-active,
body.projects-dashboard.dashboard-blog-active.dashboard-scroll-locked {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto;
}

body.projects-dashboard.dashboard-prompter-active .layout {
    height: calc(100dvh - 30px);
    min-height: 0;
    overflow: hidden;
}

body.projects-dashboard.dashboard-blog-active .layout {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
}

.layout {
    width: min(1200px, 94vw);
    margin: 14px auto 60px;
}

.projects-dashboard .layout {
    margin-top: 30px;
    margin-bottom: 0;
    height: calc(100dvh - 30px);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.review-admin .layout,
.review-client .layout {
    margin-top: 30px;
}

.review-client.embedded-client-view {
    background: transparent;
}

.review-client.embedded-client-view .layout {
    width: 100%;
    margin: 0;
    min-height: 0;
}

.review-client.embedded-client-view[data-project-mode="audio"][data-embed-audio-header="1"],
.review-client.embedded-client-view[data-project-mode="audio"][data-embed-audio-header="1"] .layout,
.review-client.embedded-client-view[data-project-mode="audio"][data-embed-audio-header="1"] .preview-site-topbar,
.review-client.embedded-client-view[data-project-mode="audio"][data-embed-audio-header="1"] .client-audio-dropzone-row {
    background: transparent !important;
}

.review-client.embedded-client-view[data-project-mode="audio"][data-embed-audio-header="1"] {
    --embedded-audio-rail-width: 75%;
    --preview-inline-gap: 0px;
}

.review-client.embedded-client-view[data-project-mode="audio"][data-embed-audio-header="1"] .preview-site-topbar,
.review-client.embedded-client-view[data-project-mode="audio"][data-embed-audio-header="1"] .client-audio-dropzone-row {
    width: var(--embedded-audio-rail-width) !important;
    max-width: var(--embedded-audio-rail-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.review-client.embedded-client-view[data-project-mode="audio"][data-embed-audio-header="1"] .preview-site-topbar {
    margin-bottom: 10px !important;
}

.review-client.embedded-client-view[data-project-mode="audio"][data-embed-audio-header="1"] .client-audio-dropzone-row {
    margin-bottom: 20px !important;
}

.review-client.embedded-client-view[data-project-mode="audio"][data-embed-audio-header="1"].is-preview-header-fixed .preview-site-topbar,
.review-client.embedded-client-view[data-project-mode="audio"][data-embed-audio-header="1"].is-preview-header-fixed .client-audio-dropzone-row {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
}

.review-client.embedded-client-view[data-project-mode="audio"][data-embed-audio-header="1"] .preview-site-topbar,
.review-client.embedded-client-view[data-project-mode="audio"][data-embed-audio-header="1"].is-preview-header-fixed .preview-site-topbar,
.review-client.embedded-client-view[data-project-mode="audio"][data-embed-audio-header="1"].is-preview-header-fixed .client-audio-dropzone-row {
    border-bottom: 0 !important;
    box-shadow: none !important;
}

.review-client.embedded-client-view[data-project-mode="audio"][data-embed-audio-header="1"] .preview-site-topbar::before {
    background: transparent !important;
}

.review-client.embedded-client-view[data-project-mode="video"][data-embed-project-header="1"],
.review-client.embedded-client-view[data-project-mode="video"][data-embed-project-header="1"] .layout,
.review-client.embedded-client-view[data-project-mode="video"][data-embed-project-header="1"] .preview-site-topbar,
.review-client.embedded-client-view[data-project-mode="video"][data-embed-project-header="1"] .client-video-dropzone-row,
.review-client.embedded-client-view[data-project-mode="files"][data-embed-project-header="1"],
.review-client.embedded-client-view[data-project-mode="files"][data-embed-project-header="1"] .layout,
.review-client.embedded-client-view[data-project-mode="files"][data-embed-project-header="1"] .preview-site-topbar,
.review-client.embedded-client-view[data-project-mode="files"][data-embed-project-header="1"] .client-files-dropzone-row,
.review-client.embedded-client-view[data-project-mode="photo"][data-embed-project-header="1"],
.review-client.embedded-client-view[data-project-mode="photo"][data-embed-project-header="1"] .layout,
.review-client.embedded-client-view[data-project-mode="photo"][data-embed-project-header="1"] .preview-site-topbar,
.review-client.embedded-client-view[data-project-mode="photo"][data-embed-project-header="1"] .client-photo-dropzone-row {
    background: transparent !important;
}

.review-client.embedded-client-view[data-project-mode="video"][data-embed-project-header="1"],
.review-client.embedded-client-view[data-project-mode="files"][data-embed-project-header="1"],
.review-client.embedded-client-view[data-project-mode="photo"][data-embed-project-header="1"] {
    --embedded-video-rail-width: 100%;
    --preview-inline-gap: 0px;
}

.review-client.embedded-client-view[data-project-mode="video"][data-embed-project-header="1"] .preview-site-topbar,
.review-client.embedded-client-view[data-project-mode="video"][data-embed-project-header="1"] .client-video-dropzone-row,
.review-client.embedded-client-view[data-project-mode="files"][data-embed-project-header="1"] .preview-site-topbar,
.review-client.embedded-client-view[data-project-mode="files"][data-embed-project-header="1"] .client-files-dropzone-row,
.review-client.embedded-client-view[data-project-mode="photo"][data-embed-project-header="1"] .preview-site-topbar,
.review-client.embedded-client-view[data-project-mode="photo"][data-embed-project-header="1"] .client-photo-dropzone-row {
    width: var(--embedded-video-rail-width) !important;
    max-width: var(--embedded-video-rail-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.review-client.embedded-client-view[data-project-mode="video"][data-embed-project-header="1"] .preview-site-topbar,
.review-client.embedded-client-view[data-project-mode="files"][data-embed-project-header="1"] .preview-site-topbar,
.review-client.embedded-client-view[data-project-mode="photo"][data-embed-project-header="1"] .preview-site-topbar {
    margin-bottom: 10px !important;
}

.review-client.embedded-client-view[data-project-mode="video"][data-embed-project-header="1"] .client-video-dropzone-row,
.review-client.embedded-client-view[data-project-mode="files"][data-embed-project-header="1"] .client-files-dropzone-row,
.review-client.embedded-client-view[data-project-mode="photo"][data-embed-project-header="1"] .client-photo-dropzone-row {
    margin-bottom: 20px !important;
}

.review-client.embedded-client-view[data-project-mode="video"][data-embed-project-header="1"].is-preview-header-fixed .preview-site-topbar,
.review-client.embedded-client-view[data-project-mode="video"][data-embed-project-header="1"].is-preview-header-fixed .client-video-dropzone-row,
.review-client.embedded-client-view[data-project-mode="files"][data-embed-project-header="1"].is-preview-header-fixed .preview-site-topbar,
.review-client.embedded-client-view[data-project-mode="files"][data-embed-project-header="1"].is-preview-header-fixed .client-files-dropzone-row,
.review-client.embedded-client-view[data-project-mode="photo"][data-embed-project-header="1"].is-preview-header-fixed .preview-site-topbar,
.review-client.embedded-client-view[data-project-mode="photo"][data-embed-project-header="1"].is-preview-header-fixed .client-photo-dropzone-row {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
}

.review-client.embedded-client-view[data-project-mode="video"][data-embed-project-header="1"] .preview-site-topbar,
.review-client.embedded-client-view[data-project-mode="video"][data-embed-project-header="1"].is-preview-header-fixed .preview-site-topbar,
.review-client.embedded-client-view[data-project-mode="video"][data-embed-project-header="1"].is-preview-header-fixed .client-video-dropzone-row,
.review-client.embedded-client-view[data-project-mode="files"][data-embed-project-header="1"] .preview-site-topbar,
.review-client.embedded-client-view[data-project-mode="files"][data-embed-project-header="1"].is-preview-header-fixed .preview-site-topbar,
.review-client.embedded-client-view[data-project-mode="files"][data-embed-project-header="1"].is-preview-header-fixed .client-files-dropzone-row,
.review-client.embedded-client-view[data-project-mode="photo"][data-embed-project-header="1"] .preview-site-topbar,
.review-client.embedded-client-view[data-project-mode="photo"][data-embed-project-header="1"].is-preview-header-fixed .preview-site-topbar,
.review-client.embedded-client-view[data-project-mode="photo"][data-embed-project-header="1"].is-preview-header-fixed .client-photo-dropzone-row {
    border-bottom: 0 !important;
    box-shadow: none !important;
}

.review-client.embedded-client-view[data-project-mode="video"][data-embed-project-header="1"] .preview-site-topbar::before,
.review-client.embedded-client-view[data-project-mode="files"][data-embed-project-header="1"] .preview-site-topbar::before,
.review-client.embedded-client-view[data-project-mode="photo"][data-embed-project-header="1"] .preview-site-topbar::before {
    background: transparent !important;
}

.review-client.embedded-client-view[data-hide-embed-toolbar="1"] .client-files-dropzone-row {
    position: static !important;
    z-index: auto !important;
    display: block !important;
    width: 100% !important;
    margin: 0 0 10px !important;
    padding: 6px 0 0 !important;
    background: transparent !important;
    border: 0 !important;
}

.review-client.embedded-client-view[data-hide-embed-toolbar="1"] .client-files-dropzone-row .preview-files-dropzone-actions-right {
    display: none !important;
}

.review-client.embedded-client-view[data-hide-embed-toolbar="1"] .client-files-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone {
    width: 100% !important;
    min-height: 53px !important;
    height: 53px !important;
    margin: 0 !important;
    padding: 0 var(--dash-pill-padding-x) !important;
    border: 1px dashed #c6d6e8 !important;
    border-radius: 14px !important;
    background: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.review-client.embedded-client-view[data-hide-embed-toolbar="1"] .client-files-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone:hover,
.review-client.embedded-client-view[data-hide-embed-toolbar="1"] .client-files-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone:focus,
.review-client.embedded-client-view[data-hide-embed-toolbar="1"] .client-files-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone:focus-visible,
.review-client.embedded-client-view[data-hide-embed-toolbar="1"] .client-files-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone.active {
    background: #fff !important;
    border: 1px dashed #c6d6e8 !important;
    box-shadow: none !important;
    outline: none !important;
}

.review-client.embedded-client-view[data-hide-embed-toolbar="1"] .client-files-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone > p {
    margin: 0 !important;
    font-size: calc(var(--dash-pill-font-size) * 0.95) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    color: var(--muted) !important;
}

.review-client.embedded-client-view[data-hide-embed-toolbar="1"] .client-files-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone.is-inline-upload-active {
    align-items: center !important;
    justify-content: stretch !important;
    text-align: left !important;
}

.project-header-sticky {
    position: sticky;
    top: 14px;
    z-index: 70;
    background: #fff;
    padding-top: 8px;
    padding-bottom: 8px;
    border-bottom: 0;
    isolation: isolate;
}

.project-header-sticky::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 100vw;
    height: 100%;
    transform: translateX(-50%);
    background: #fff;
    z-index: -1;
}

.project-header-sticky::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -40px;
    width: 100vw;
    height: 40px;
    transform: translateX(-50%);
    background: #fff;
    z-index: -1;
}

body.review-admin[data-project-mode="video"],
body.review-admin[data-project-mode="photo"],
body.review-admin[data-project-mode="blog"] {
    --video-project-header-height: 0px;
    --video-project-header-width: min(1590px, 84vw);
    --video-project-header-padding-top: 8px;
    --video-project-header-padding-bottom: 8px;
}

body.review-admin[data-project-mode="video"].is-video-project-header-fixed .layout,
body.review-admin[data-project-mode="photo"].is-project-header-fixed .layout,
body.review-admin[data-project-mode="blog"].is-project-header-fixed .layout {
    margin-top: 0;
    padding-top: var(--video-project-header-height);
}

body.review-admin[data-project-mode="video"].is-video-project-header-fixed .project-header-sticky,
body.review-admin[data-project-mode="photo"].is-project-header-fixed .project-header-sticky,
body.review-admin[data-project-mode="blog"].is-project-header-fixed .project-header-sticky {
    position: fixed;
    top: 0;
    left: 50%;
    width: var(--video-project-header-width);
    min-height: var(--video-project-header-height);
    margin: 0;
    padding-top: var(--video-project-header-padding-top);
    padding-bottom: var(--video-project-header-padding-bottom);
    transform: translateX(-50%);
    z-index: 140;
}

body.projects-dashboard.dashboard-scroll-locked .project-header-sticky,
body.projects-dashboard.dashboard-scroll-locked .project-header-sticky::before,
body.projects-dashboard.dashboard-scroll-locked .project-header-sticky::after {
    background: transparent;
}

body.projects-dashboard.dashboard-prompter-active .project-header-sticky,
body.projects-dashboard.dashboard-prompter-active .project-header-sticky::before,
body.projects-dashboard.dashboard-prompter-active .project-header-sticky::after {
    background: #fff;
}

.topbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.topbar-actions {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    row-gap: 8px;
    margin-left: auto;
    justify-content: flex-end;
}

.sync-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    min-width: 108px;
    padding: 0 12px;
    border: 1px solid #cfd9e6;
    border-radius: 999px;
    background: #f7fbff;
    color: #4f647b;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    transition:
        background 220ms ease,
        border-color 220ms ease,
        color 220ms ease,
        box-shadow 220ms ease;
    cursor: pointer;
}

.sync-status-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.sync-status-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 34;
    min-width: 230px;
    max-width: min(280px, calc(100vw - 28px));
    border: 1px solid #d6e0eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(18, 32, 47, 0.14);
    padding: 10px;
    display: grid;
    gap: 8px;
}

.sync-status-popover[hidden] {
    display: none !important;
}

.sync-status-popover-peer,
.sync-status-popover-state {
    margin: 0;
    line-height: 1.25;
}

.sync-status-popover-peer {
    font-size: 0.88rem;
    color: #23384d;
    font-weight: 500;
}

.sync-status-popover-state {
    font-size: 0.8rem;
    color: #5b6f85;
}

.sync-status-toggle-btn {
    min-height: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    font-size: 0.82rem !important;
    padding: 0 12px !important;
}

.sync-status-toggle-btn.is-danger {
    background: #fff0f0 !important;
    border-color: #f0c7c7 !important;
    color: #a33b3b !important;
}

.sync-status-toggle-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.sync-status-badge.is-syncing {
    background: #eef6ff;
    border-color: #c2d8f1;
    color: #21527f;
}

.sync-status-badge.is-ready {
    background: #eefaf6;
    border-color: #c5e7da;
    color: #1b7458;
}

.sync-status-badge.is-ready-intro {
    animation: syncReadyIntro 2.4s ease forwards;
}

.sync-status-badge.is-ready-dot {
    min-width: 14px;
    width: 14px;
    min-height: 14px;
    height: 14px;
    padding: 0;
    border-color: #c5e7da;
    background: #eefaf6;
    color: transparent;
    font-size: 0;
    line-height: 0;
    box-shadow: 0 0 0 0 rgba(140, 205, 182, 0.28);
    animation: syncDotPulse 3.4s ease-in-out infinite;
}

.sync-status-badge.is-error {
    background: #fff0f0;
    border-color: #f0c7c7;
    color: #a33b3b;
}

.sync-status-badge.is-offline {
    background: #fff0f0;
    border-color: #f0c7c7;
    color: #a33b3b;
}

@keyframes syncReadyIntro {
    0% {
        min-width: 14px;
        width: 14px;
        min-height: 14px;
        height: 14px;
        padding: 0;
        color: transparent;
        font-size: 0;
        line-height: 0;
        background: #eefaf6;
        border-color: #c5e7da;
        box-shadow: 0 0 0 0 rgba(140, 205, 182, 0.2);
    }
    35% {
        min-width: 108px;
        width: 108px;
        min-height: 34px;
        height: 34px;
        padding: 0 12px;
        color: #1b7458;
        font-size: 0.82rem;
        line-height: 1;
        background: #eefaf6;
        border-color: #c5e7da;
        box-shadow: 0 0 0 0 rgba(27, 156, 114, 0.24);
    }
    68% {
        min-width: 108px;
        width: 108px;
        min-height: 34px;
        height: 34px;
        padding: 0 12px;
        color: #1b7458;
        font-size: 0.82rem;
        line-height: 1;
        background: #eefaf6;
        border-color: #c5e7da;
    }
    100% {
        min-width: 14px;
        width: 14px;
        min-height: 14px;
        height: 14px;
        padding: 0;
        color: transparent;
        font-size: 0;
        line-height: 0;
        background: #eefaf6;
        border-color: #c5e7da;
        box-shadow: 0 0 0 0 rgba(140, 205, 182, 0.2);
    }
}

.review-admin[data-project-mode="blog"] .blog-language-select,
body.projects-dashboard .blog-language-select {
    padding-right: 42px !important;
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%231c2e40' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 16px 16px !important;
}

@keyframes syncDotPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(140, 205, 182, 0.32);
    }
    70% {
        transform: scale(1.08);
        box-shadow: 0 0 0 8px rgba(140, 205, 182, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(27, 156, 114, 0);
    }
}

.playlist-topbar-menu {
    position: relative;
    display: inline-flex;
    z-index: 80;
}

.view-topbar-menu {
    position: relative;
    display: inline-flex;
    z-index: 80;
}

.audio-editor-playback-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.audio-editor-playback-controls .site-present-audio-mode-btn {
    width: var(--dash-pill-height);
    min-width: var(--dash-pill-height);
    height: var(--dash-pill-height);
    min-height: var(--dash-pill-height);
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5f728d;
}

.audio-editor-playback-controls .site-present-audio-mode-btn svg {
    width: 18px !important;
    height: 18px !important;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.audio-editor-playback-controls .site-present-audio-mode-btn text {
    fill: currentColor;
    stroke: none;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    text-anchor: middle;
    dominant-baseline: middle;
}

.audio-editor-playback-controls .site-present-audio-mode-btn[data-audio-playback-mode="continuous"] svg {
    width: 14px !important;
    height: 14px !important;
}

.audio-editor-playback-controls .site-present-audio-mode-btn.is-active,
.audio-editor-playback-controls .site-present-audio-mode-btn[aria-pressed="true"] {
    border-color: #ccd8e6 !important;
    background: #eaf3ff !important;
    color: #0b62d6 !important;
}

.playlist-topbar-popover {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: min(360px, 70vw);
    border: 1px solid #cfdae6;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(18, 36, 58, 0.16);
    padding: 8px;
    z-index: 90;
    display: grid;
    gap: 8px;
}

.playlist-topbar-popover[hidden] {
    display: none !important;
}

.playlist-topbar-popover .soft-btn {
    width: 100%;
    justify-content: flex-start;
}

.view-topbar-popover {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: max-content;
    min-width: 148px;
    border: 1px solid #cfdae6;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(18, 36, 58, 0.16);
    padding: 8px;
    z-index: 90;
    display: grid;
    gap: 8px;
}

.view-topbar-popover[hidden] {
    display: none !important;
}

.view-topbar-popover .soft-btn {
    width: 100%;
    justify-content: flex-start;
}

.view-topbar-popover .soft-btn.is-active {
    background: #eaf3fd !important;
    border-color: #c6d6e8 !important;
    color: #1f3f5c !important;
}

.lang-switch-wrap {
    display: inline-flex;
    align-items: center;
}

.dashboard-language-switch {
    height: 34px;
    min-height: 34px;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    width: 84px;
    max-width: 84px;
    min-width: 84px;
}

.dashboard-menu {
    position: relative;
    display: inline-flex;
}

.pin-mode-menu {
    position: relative;
    display: inline-flex;
}

.dashboard-chat-btn {
    position: relative;
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.dashboard-chat-btn[hidden] {
    display: none !important;
}

.dashboard-chat-btn svg {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-chat-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e23d3d;
    color: #fff;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.dashboard-chat-badge[hidden] {
    display: none !important;
}

.dashboard-chat-dialog {
    width: min(560px, calc(100vw - 32px));
    max-width: min(560px, calc(100vw - 32px));
    overscroll-behavior: contain;
}

.dashboard-chat-layout {
    display: grid;
    grid-template-columns: minmax(104px, 122px) minmax(0, 1fr);
    gap: 14px;
    min-height: 360px;
}

.dashboard-chat-conversation-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-right: 1px solid #dce5ef;
    padding-right: 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.dashboard-chat-conversation {
    display: grid;
    width: 100%;
    border: 1px solid #d6e0eb;
    border-radius: 12px;
    background: #fff;
    color: #172438;
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
}

.dashboard-chat-conversation strong {
    font-weight: 600;
    line-height: 1.2;
}

.dashboard-chat-conversation:hover,
.dashboard-chat-conversation:focus-visible,
.dashboard-chat-conversation.is-active {
    background: #eef6ff;
    border-color: #c6d6e8;
    outline: none;
}

.dashboard-chat-conversation-preview {
    color: #64758b;
    font-size: 0.82rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-chat-panel {
    min-width: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 10px;
}

.dashboard-chat-panel[hidden] {
    display: none !important;
}

.dashboard-chat-panel h4 {
    display: none;
}

.dashboard-chat-messages {
    min-height: 220px;
    max-height: 420px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    border: 1px solid #dce5ef;
    border-radius: 14px;
    background: #fbfdff;
    overscroll-behavior: contain;
}

.dashboard-chat-empty {
    margin: 0;
    color: #6f7f96;
    font-size: 0.9rem;
}

.dashboard-chat-message {
    max-width: min(88%, 240px);
    display: grid;
    gap: 4px;
    color: #162235;
}

.dashboard-chat-message-bubble {
    border: 1px solid #d8e2ef;
    border-radius: 14px;
    padding: 9px 11px;
    background: #f5f8fc;
}

.dashboard-chat-message.is-admin {
    align-self: flex-end;
}

.dashboard-chat-message.is-client {
    align-self: flex-start;
}

.dashboard-chat-message.is-admin .dashboard-chat-message-bubble {
    background: #eaf3ff;
}

.dashboard-chat-message-name {
    color: #52647c;
    font-size: 0.72rem;
    font-weight: 400;
    line-height: 1.15;
}

.dashboard-chat-message.is-admin .dashboard-chat-message-name {
    text-align: right;
}

.dashboard-chat-message p {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.dashboard-chat-message a,
.client-site-presentation .site-messenger-message a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dashboard-chat-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.dashboard-chat-form textarea {
    min-height: 48px;
    max-height: 130px;
    resize: vertical;
    border: 1px solid #cdd9e8;
    border-radius: 12px;
    padding: 10px 11px;
    font: inherit;
    font-size: 0.9rem;
}

.dashboard-chat-form textarea:focus,
.dashboard-chat-form textarea:focus-visible {
    outline: none;
    border-color: #cdd9e8;
    box-shadow: none;
}

.dashboard-chat-dialog #dashboard-chat-close {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1;
    opacity: 0.75;
}

@media (min-width: 721px) {
    .dashboard-chat-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-chat-form button {
        display: none !important;
    }
}

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

    .dashboard-chat-conversation-list {
        max-height: 180px;
        border-right: 0;
        border-bottom: 1px solid #dce5ef;
        padding-right: 0;
        padding-bottom: 12px;
    }
}

.pin-mode-popover {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 35;
    min-width: 220px;
    max-width: min(460px, 96vw);
    border: 1px solid #d6e0eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(18, 32, 47, 0.14);
    padding: 8px;
    display: grid;
    gap: 8px;
}

.pin-mode-popover[hidden] {
    display: none !important;
}

.pin-mode-create-btn,
.pin-mode-option {
    border: 1px solid #d6e0eb;
    border-radius: 10px;
    min-height: 36px;
    font-size: 0.92rem;
    font-weight: 400;
    color: #1c2e40;
    background: #fff;
    text-align: center;
    width: 100%;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pin-mode-list {
    display: grid;
    gap: 6px;
}

.pin-mode-list-wrap {
    display: grid;
    gap: 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.pin-mode-turn-off-btn {
    border: 1px solid #d6e0eb;
    border-radius: 10px;
    min-height: 36px;
    font-size: 0.92rem;
    font-weight: 400;
    color: #1c2e40;
    background: #fff;
    text-align: center;
    width: 100%;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pin-mode-turn-off-btn:hover,
.pin-mode-turn-off-btn:focus-visible {
    background: #edf4fb;
    border-color: #c6d6e8;
    color: #1f354b;
    outline: none;
}

.pin-mode-popover .pin-mode-turn-off-btn {
    display: none !important;
}

.pin-mode-popover .pin-mode-delete-btn {
    border-color: #efc4c4;
    color: var(--danger);
    background: #fff;
}

.pin-mode-popover .pin-mode-turn-off-btn[hidden],
.pin-mode-popover .pin-mode-delete-btn[hidden] {
    display: none !important;
}

.pin-mode-create-btn:hover,
.pin-mode-create-btn:focus-visible {
    background: #edf4fb;
    border-color: #c6d6e8;
    color: #1f354b;
    outline: none;
}

.pin-mode-option:hover,
.pin-mode-option:focus-visible,
.pin-mode-option.is-active {
    background: var(--pin-accent);
    border-color: var(--pin-accent-line);
    color: #ffffff;
    outline: none;
}

.pin-mode-list-wrap .pin-mode-option,
.pin-mode-list-wrap .pin-mode-option:hover,
.pin-mode-list-wrap .pin-mode-option:focus-visible,
.pin-mode-list-wrap .pin-mode-option.is-active {
    color: #ffffff;
    border-color: var(--pin-accent-line);
    background: var(--pin-accent);
    outline: none;
}

.pin-mode-popover .pin-mode-delete-btn:hover,
.pin-mode-popover .pin-mode-delete-btn:focus-visible {
    background: #fdebec;
    border-color: #efc4c4;
    color: var(--danger);
    outline: none;
}

.pin-mode-empty {
    color: #66798f;
    font-size: 0.85rem;
    line-height: 1.35;
    padding: 6px 8px;
}

.modules-menu {
    position: relative;
    display: inline-flex;
}

.modules-menu-popover {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 34;
    width: 210px;
    border: 1px solid #d6e0eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(18, 32, 47, 0.14);
    padding: 8px;
    display: grid;
    gap: 6px;
}

.modules-menu-popover[hidden] {
    display: none !important;
}

.modules-menu-option {
    width: 100%;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid #d6e0eb;
    border-radius: 10px;
    background: #fff;
    color: #1c2e40;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    text-align: left;
    font-size: 0.92rem;
    font-weight: 400;
}

.modules-menu-option:hover,
.modules-menu-option:focus-visible {
    background: #edf4fb;
    border-color: #c6d6e8;
    color: #1f354b;
    outline: none;
}

.modules-menu-option[disabled] {
    cursor: default;
    opacity: 0.72;
}

.modules-menu-check {
    width: 18px;
    height: 18px;
    border: 1px solid #c8d5e4;
    border-radius: 6px;
    background: #f8fbff;
    display: inline-grid;
    place-items: center;
}

.modules-menu-option.is-active .modules-menu-check {
    border-color: #7ea1d8;
    background: #7ea1d8;
}

.modules-menu-option.is-active .modules-menu-check::before {
    content: "";
    width: 8px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(-1px) rotate(-45deg);
}

.modules-menu-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-menu-btn {
    width: 40px;
    min-width: 40px;
    padding: 0;
    justify-content: center;
    border-radius: 14px;
}

.dashboard-menu-btn[aria-expanded="true"] {
    background: #e1edf9;
    border-color: #c6d6e8;
    color: #2c4b66;
}

.dashboard-menu-icon {
    display: inline-grid;
    gap: 5px;
}

.dashboard-menu-icon-img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.dashboard-menu-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 32;
    width: 220px;
    border: 1px solid #d6e0eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(18, 32, 47, 0.14);
    padding: 10px;
    display: grid;
    gap: 10px;
}

/* Video page menu: match dashboard behavior while allowing enough width for
   the inline view controls to stay inside the popover. */
.review-admin[data-project-mode="video"] .sync-menu-popover,
.review-admin[data-project-mode="files"] .sync-menu-popover,
.review-admin[data-project-mode="photo"] .sync-menu-popover,
.review-admin[data-project-mode="audio"] .sync-menu-popover {
    width: fit-content;
    min-width: 0;
    max-width: calc(100vw - 28px);
}

.review-admin[data-project-mode="video"] .sync-menu-popover .dashboard-view-inline-group {
    justify-content: flex-start;
    gap: 6px;
}

.review-admin[data-project-mode="photo"] .sync-menu-popover .dashboard-view-inline-group {
    justify-content: flex-start;
    gap: 6px;
}
.review-admin[data-project-mode="audio"] .sync-menu-popover .dashboard-view-inline-group {
    justify-content: flex-start;
    gap: 6px;
}

.review-admin[data-project-mode="video"] .sync-menu-popover .dashboard-view-inline-divider {
    margin: 0 6px;
}

.review-admin[data-project-mode="photo"] .sync-menu-popover .dashboard-view-inline-divider {
    margin: 0 6px;
}
.review-admin[data-project-mode="audio"] .sync-menu-popover .dashboard-view-inline-divider {
    margin: 0 6px;
}

.review-admin[data-project-mode="video"] .sync-menu-popover .dashboard-view-inline-options .soft-btn {
    min-height: 32px !important;
    height: 32px !important;
    padding: 0 10px !important;
    border-radius: 10px !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
}

.review-admin[data-project-mode="photo"] .sync-menu-popover .dashboard-view-inline-options .soft-btn {
    min-height: 32px !important;
    height: 32px !important;
    padding: 0 10px !important;
    border-radius: 10px !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
}
.review-admin[data-project-mode="audio"] .sync-menu-popover .dashboard-view-inline-options .soft-btn {
    min-height: 32px !important;
    height: 32px !important;
    padding: 0 10px !important;
    border-radius: 10px !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
}

.dashboard-menu-popover[hidden] {
    display: none !important;
}

.dashboard-menu-group {
    display: grid;
    position: relative;
}

.dashboard-menu-section {
    display: grid;
    gap: 7px;
}

.dashboard-menu-section-toggle {
    justify-content: space-between;
    gap: 10px;
    font-weight: 500;
}

.dashboard-menu-section-toggle[aria-expanded="true"] {
    background: #edf4fb;
    border-color: #c6d6e8;
    color: #1f3f5c;
}

.dashboard-menu-section-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 0.78rem;
    color: #6c7e91;
    transition: transform 160ms ease;
}

.dashboard-menu-section-toggle[aria-expanded="true"] .dashboard-menu-section-chevron {
    transform: rotate(180deg);
}

.dashboard-menu-section-panel {
    display: grid;
    gap: 7px;
    padding: 2px 0 0 12px;
}

.dashboard-menu-section-panel[hidden] {
    display: none !important;
}

.dashboard-menu-section-panel .dashboard-menu-link,
.dashboard-menu-section-panel .dashboard-language-switch {
    min-height: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 0.86rem;
}

.dashboard-view-inline-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 4px;
}

.dashboard-view-inline-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #23384d;
    white-space: nowrap;
}

.dashboard-view-inline-divider {
    width: 1px;
    align-self: stretch;
    background: #d6e0eb;
    opacity: 0.95;
}

.dashboard-view-inline-options {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dashboard-view-inline-options .soft-btn {
    min-height: 32px;
    height: 32px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.dashboard-view-inline-options .soft-btn.is-active {
    background: #eaf3fd !important;
    border-color: #c6d6e8 !important;
    color: #1f3f5c !important;
}

.sync-download-all-progress {
    display: grid;
    gap: 8px;
    border: 1px solid #d6e0eb;
    border-radius: 12px;
    background: #f8fbff;
    padding: 10px;
}

.sync-download-all-progress[hidden] {
    display: none !important;
}

.sync-download-all-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sync-download-all-progress-label {
    font-size: 0.82rem;
    line-height: 1.2;
    color: #1f3f5c;
    font-weight: 500;
}

.sync-download-all-progress-status {
    font-size: 0.75rem;
    line-height: 1.2;
}

.sync-download-all-progress-status.is-error {
    color: #c94a4a;
}

.dashboard-lang-picker {
    position: relative;
}

.dashboard-menu .dashboard-language-switch {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 0.92rem;
    font-weight: 500;
    height: 40px;
    min-height: 40px;
    border-radius: 14px;
    padding: 0 16px;
    letter-spacing: 0;
    text-align: center;
    justify-content: center;
}

.dashboard-language-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 36;
    display: grid;
    gap: 6px;
    border: 1px solid #d6e0eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(18, 32, 47, 0.14);
    padding: 8px;
}

.dashboard-language-list[hidden] {
    display: none !important;
}

.dashboard-language-option {
    border: 1px solid #d6e0eb;
    border-radius: 10px;
    background: #fff;
    min-height: 36px;
    width: 100%;
    color: #1c2e40;
    font-size: 0.92rem;
    font-weight: 400;
    text-align: center;
    padding: 0 10px;
}

.dashboard-language-option.is-active,
.dashboard-language-option:hover,
.dashboard-language-option:focus,
.dashboard-language-option:focus-visible {
    background: #edf4fb;
    border-color: #c6d6e8;
    color: #1c2e40;
}

.dashboard-menu-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 400;
    padding: 0 16px;
}

.dashboard-menu-link:hover,
.dashboard-menu-link:focus,
.dashboard-menu-link:focus-visible {
    background: #edf4fb;
    border-color: #c6d6e8;
    color: var(--ink);
}

.dashboard-menu-status {
    margin: -2px 4px 0;
    font-size: 0.78rem;
    line-height: 1.3;
    text-align: center;
}

.dashboard-menu-status.is-error {
    color: #c94a4a;
}

body.dashboard-prompter-active .pin-mode-menu,
body.dashboard-prompter-active .modules-menu,
body.dashboard-prompter-active .dashboard-menu,
body.dashboard-prompter-active #dashboard-create-blog-btn,
body.dashboard-prompter-active #manage-client-sites-btn,
body.dashboard-prompter-active #open-media-search-btn,
body.dashboard-prompter-active #dashboard-delete-selection-btn,
body.dashboard-prompter-active #dashboard-create-folder-btn,
body.dashboard-prompter-active .legacy-project-create-panel,
body.dashboard-prompter-active .project-folders-section,
body.dashboard-prompter-active #dashboard-backup-main-progress-panel,
body.dashboard-prompter-active #dashboard-media-export-progress-panel,
body.dashboard-prompter-active #dashboard-restore-progress-panel {
    display: none !important;
}

body.dashboard-prompter-active #dashboard-close-prompter-btn {
    display: inline-flex !important;
}

body.dashboard-blog-active .legacy-project-create-panel,
body.dashboard-blog-active .project-folders-section,
body.dashboard-blog-active #dashboard-backup-main-progress-panel,
body.dashboard-blog-active #dashboard-media-export-progress-panel,
body.dashboard-blog-active #dashboard-restore-progress-panel {
    display: none !important;
}

.dashboard-blog-workspace {
    width: 100%;
    min-height: calc(100vh - 132px);
    margin: 0 auto 70px;
    padding: 18px 0 80px;
    background: #fff;
    color: #242424;
}

.dashboard-blog-workspace[hidden] {
    display: none !important;
}

.dashboard-blog-toolbar {
    position: sticky;
    top: 88px;
    z-index: 8;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    width: 100%;
    margin: 0 0 34px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
}

.dashboard-blog-plus-actions,
.dashboard-blog-actions,
.dashboard-blog-close-actions {
    width: auto;
    margin-left: 0;
}

.dashboard-blog-picker {
    display: grid;
    gap: 8px;
}

.dashboard-blog-actions {
    display: none;
    align-items: center;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.dashboard-blog-toolbar.is-expanded .dashboard-blog-actions {
    display: inline-flex;
}

.dashboard-blog-close-actions {
    grid-column: 3;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-self: end;
}

.dashboard-blog-open-field {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: #1c2e40;
}

.dashboard-blog-select {
    min-width: 260px;
}

.blog-studio-status {
    min-width: 92px;
    margin: 0;
    color: #73829a;
    font-size: 0.92rem;
    line-height: 1;
    white-space: nowrap;
}

.blog-studio-status.is-saving {
    color: #8a6d2c;
}

.blog-studio-status.is-saved {
    color: #54745e;
}

.blog-logo-toggle-btn[aria-pressed="false"] {
    opacity: 0.68;
}

.dashboard-blog-hidden-field {
    display: none !important;
}

.dashboard-blog-block-tools select {
    width: auto;
    height: 40px;
    border: 1px solid #d6e0eb;
    border-radius: 14px;
    background: #fff;
    color: #1c2e40;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1;
    padding: 0 16px;
}

.dashboard-blog-editor[hidden],
.dashboard-blog-empty[hidden] {
    display: none !important;
}

.dashboard-blog-empty {
    display: grid;
    place-items: center;
    gap: 10px;
    min-height: 360px;
    text-align: center;
    font-family: "Inter", "Avenir Next", "Segoe UI", sans-serif;
}

.dashboard-blog-empty h2 {
    margin: 0;
    color: #242424;
    font-size: 1.35rem;
}

.dashboard-blog-empty p {
    margin: 0;
    max-width: 440px;
    color: #6b6b6b;
}

.dashboard-blog-article {
    padding-top: 0;
}

.dashboard-blog-article-head textarea {
    display: block;
    width: 100%;
    border: 0;
    outline: 0;
    resize: none;
    overflow: hidden;
    background: transparent;
    color: inherit;
    padding: 0;
}

.dashboard-blog-article-head {
    position: relative;
    --dashboard-blog-wide-control-offset: calc((min(100vw - 36px, 1120px) - min(100vw - 36px, 700px)) / -2);
}

#blog-title-input {
    margin: 0 0 14px;
    min-height: 1.02em;
    color: #000;
    font-family: "Noy Display", "Charter", Georgia, "Times New Roman", serif;
    font-size: clamp(1.7rem, 4.335vw, 3.324rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: 0;
}

.dashboard-blog-head-tools {
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
    padding: 7px 9px;
    border: 1px solid rgba(198, 214, 232, 0.92);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 32px rgba(26, 42, 64, 0.14);
    backdrop-filter: blur(10px);
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease;
    visibility: hidden;
    z-index: 80;
    white-space: nowrap;
}

.dashboard-blog-head-tools[data-blog-style-scope="title"] {
    top: 0;
}

.dashboard-blog-head-tools[data-blog-style-scope="subtitle"] {
    top: 0;
}

#blog-subtitle-input {
    margin: 0 0 36px;
    color: #6b6b6b;
    font-family: "Inter", "Avenir Next", "Segoe UI", sans-serif;
    font-size: 1.18rem;
    line-height: 1.45;
}

.dashboard-blog-head-tools + #blog-subtitle-input {
    margin-top: 0;
}

#blog-subtitle-input + .dashboard-blog-head-tools {
    margin-top: 0;
    margin-bottom: 0;
}

.dashboard-blog-head-tools.is-blog-text-toolbar-active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.blog-language-switcher,
.blog-reader-language-switcher {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-language-switcher {
    position: relative;
    min-width: 0;
}

.blog-language-switcher[hidden] {
    display: none !important;
}

.blog-language-select,
.blog-reader-language-pill {
    min-height: 34px;
    border: 1px solid #d3deeb;
    border-radius: 999px;
    background: #ffffff;
    color: #5d6d80;
    padding: 0 14px;
    font: 500 0.82rem/1 "Inter", "Avenir Next", "Segoe UI", sans-serif;
    text-decoration: none;
}

.blog-language-select {
    min-width: 132px;
    padding-right: 42px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%231c2e40' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px 16px;
}

.blog-reader-language-pill.is-active {
    background: #eef6ff;
    border-color: #b7cde7;
    color: #1d334d;
}

.blog-language-setup {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.blog-language-manager {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: max-content;
    min-width: 0;
    max-width: min(520px, 92vw);
    padding: 10px;
    border: 1px solid #d3deeb;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(36, 54, 78, 0.12);
}

.blog-language-field {
    display: grid;
    min-width: 132px;
    color: #73829a;
    font: 600 0.68rem/1 "Inter", "Avenir Next", "Segoe UI", sans-serif;
    letter-spacing: 0;
}

.blog-language-original-field strong {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    color: #26384d;
    font: 600 0.82rem/1 "Inter", "Avenir Next", "Segoe UI", sans-serif;
}

.blog-language-input {
    width: 152px;
    min-height: 34px;
    border: 1px solid #d3deeb;
    border-radius: 999px;
    background: #ffffff;
    color: #26384d;
    padding: 0 14px;
    font: 500 0.82rem/1 "Inter", "Avenir Next", "Segoe UI", sans-serif;
}

.blog-language-input-select {
    cursor: pointer;
    width: 190px;
    padding-right: 38px;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%231c2e40' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 15px 15px;
}

.blog-language-input:focus,
.blog-language-input:focus-visible {
    outline: none;
    border-color: #a9bfd8;
    box-shadow: 0 0 0 2px rgba(169, 195, 230, 0.28);
}

.blog-language-save-btn {
    min-height: 34px;
    padding-inline: 14px;
}

.blog-language-manager-list {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    flex-basis: 100%;
    max-width: 100%;
    padding-top: 2px;
}

.blog-language-manager-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    border: 1px solid #d3deeb;
    border-radius: 999px;
    padding: 0 6px 0 10px;
    color: #5d6d80;
    background: #f8fbff;
    font: 500 0.76rem/1 "Inter", "Avenir Next", "Segoe UI", sans-serif;
}

.blog-language-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #1c2e40;
    cursor: pointer;
    font: 700 1rem/1 "Inter", "Avenir Next", "Segoe UI", sans-serif;
    transform: translateY(-1px);
}

.blog-language-remove-btn:hover,
.blog-language-remove-btn:focus-visible {
    background: #eef3f8;
    outline: none;
}

.blog-reader-language-switcher {
    margin: 0 0 18px;
}

.dashboard-blog-date-input {
    display: block;
    width: min(100%, 700px);
    border: 0;
    border-radius: 0;
    outline: none;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.dashboard-blog-date-input:hover,
.dashboard-blog-date-input:focus {
    background: transparent;
    box-shadow: none;
}

.dashboard-blog-blocks {
    position: relative;
    gap: 0;
}

.dashboard-blog-block {
    position: relative;
    display: block;
    margin: 14px 0;
}

.dashboard-blog-drag-handle {
    position: absolute;
    top: 50%;
    left: max(8px, calc(50% - 394px));
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 45px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #8da0b4;
    cursor: grab;
    font-family: "Inter", "Avenir Next", "Segoe UI", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.12em;
    line-height: 1;
    opacity: 0.62;
    transform: translateY(-50%);
    transition: opacity 180ms ease, background 160ms ease, color 160ms ease;
    touch-action: none;
    user-select: none;
}

.dashboard-blog-media .dashboard-blog-drag-handle {
    top: 50%;
    left: -52px;
    transform: translateY(-50%);
}

.dashboard-blog-media-video .dashboard-blog-drag-handle,
.dashboard-blog-media-image .dashboard-blog-drag-handle {
    top: min(50%, 41vh);
}

.dashboard-blog-media-audio .dashboard-blog-drag-handle {
    top: 17px;
}

.dashboard-blog-block:hover > .dashboard-blog-drag-handle,
.dashboard-blog-block:focus-within > .dashboard-blog-drag-handle,
.dashboard-blog-media:hover > .dashboard-blog-drag-handle,
.dashboard-blog-media:focus-within > .dashboard-blog-drag-handle,
.dashboard-blog-drag-handle:focus-visible {
    opacity: 0.82;
    transition-delay: 0s, 0s, 0s;
}

.dashboard-blog-drag-handle:hover,
.dashboard-blog-drag-handle:focus-visible {
    background: #eef5ff;
    color: #5d86b2;
    opacity: 1;
    outline: none;
}

.dashboard-blog-drag-handle:active,
.is-blog-block-dragging .dashboard-blog-drag-handle {
    cursor: grabbing;
}

.is-blog-dragging {
    opacity: 0.42;
}

.is-blog-drop-before {
    box-shadow: 0 -3px 0 #dbe9fb;
}

.is-blog-drop-after {
    box-shadow: 0 3px 0 #dbe9fb;
}

.is-blog-block-dragging .blog-inline-insert {
    opacity: 0.25;
    pointer-events: none;
}

.dashboard-blog-text-preview {
    pointer-events: none;
}

.dashboard-blog-textarea {
    width: min(100% - 36px, 700px);
    min-height: calc(var(--blog-text-font-size, 1.15rem) * var(--blog-text-line-height, 1.55) * 1.15);
    margin: 0 auto;
    border: 0;
    border-radius: 0;
    outline: none;
    resize: none;
    background: transparent;
    color: var(--blog-body-text-color, #6b778a);
    font-family: "Charter", Georgia, Cambria, "Times New Roman", serif;
    font-size: var(--blog-text-font-size, 1.15rem);
    line-height: var(--blog-text-line-height, 1.55);
    padding: 0;
}

.dashboard-blog-textarea:hover,
.dashboard-blog-textarea:focus {
    background: transparent;
}

.dashboard-blog-textarea:empty::before {
    content: attr(placeholder);
    color: #8a8a8a;
}

.dashboard-blog-textarea p {
    font-size: inherit !important;
    line-height: inherit !important;
    margin: 0 0 1.08em;
}

.dashboard-blog-textarea p:last-child {
    margin-bottom: 0;
}

.dashboard-blog-textarea strong,
.dashboard-blog-textarea b,
.dashboard-blog-textarea em,
.dashboard-blog-textarea i,
.dashboard-blog-textarea span,
.dashboard-blog-textarea br {
    font-size: inherit !important;
    line-height: inherit !important;
}

.dashboard-blog-textarea p,
.dashboard-blog-textarea strong,
.dashboard-blog-textarea b,
.dashboard-blog-textarea em,
.dashboard-blog-textarea i,
.dashboard-blog-textarea span {
    color: inherit !important;
}

.dashboard-blog-textarea a {
    color: #0b66d8;
    text-decoration: underline;
    text-underline-offset: 0.13em;
}

.dashboard-blog-textarea .blog-redacted,
.dashboard-blog-head-edit .blog-redacted,
.dashboard-blog-caption .blog-redacted,
.blog-article-head .blog-redacted,
.blog-reader-caption .blog-redacted,
.blog-reader-text .blog-redacted,
.blog-collection-inline-text .blog-redacted {
    display: inline;
    border-radius: 2px;
    background: #050505;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    color: transparent !important;
    text-shadow: none;
    line-height: 1;
    padding: 0.01em 0.08em;
}

.dashboard-blog-textarea .blog-redacted,
.dashboard-blog-textarea .blog-redacted *,
.dashboard-blog-head-edit .blog-redacted,
.dashboard-blog-head-edit .blog-redacted *,
.dashboard-blog-caption .blog-redacted,
.dashboard-blog-caption .blog-redacted *,
.blog-article-head .blog-redacted,
.blog-article-head .blog-redacted *,
.blog-reader-caption .blog-redacted,
.blog-reader-caption .blog-redacted *,
.blog-reader-text .blog-redacted,
.blog-reader-text .blog-redacted *,
.blog-collection-inline-text .blog-redacted,
.blog-collection-inline-text .blog-redacted * {
    color: transparent !important;
    text-decoration-color: transparent !important;
    text-shadow: none !important;
}

.dashboard-blog-redact-btn {
    width: 16px;
    min-width: 16px !important;
    height: 16px;
    min-height: 16px !important;
    padding: 0 !important;
    border-radius: 3px !important;
    background: #050505 !important;
    border-color: #050505 !important;
    color: transparent !important;
}

.dashboard-blog-redact-btn:hover,
.dashboard-blog-redact-btn:focus-visible {
    background: #000 !important;
    border-color: #000 !important;
}

.dashboard-blog-media {
    display: grid;
    gap: 0;
    position: relative;
    --dashboard-blog-media-control-offset: calc((min(100vw - 36px, 1120px) - 100%) / -2);
}

.dashboard-blog-image-row {
    display: grid;
    grid-template-columns: repeat(var(--blog-gallery-count, 2), minmax(0, 1fr));
    gap: 14px;
    width: min(100% - 36px, 1120px);
    margin: 14px auto;
    align-items: start;
}

.dashboard-blog-image-row-2 {
    --blog-gallery-count: 2;
}

.dashboard-blog-image-row-3 {
    --blog-gallery-count: 3;
}

.dashboard-blog-image-row-4 {
    --blog-gallery-count: 4;
}

.dashboard-blog-image-row .dashboard-blog-gallery-item {
    width: 100%;
    margin: 0;
}

.dashboard-blog-image-row .dashboard-blog-gallery-item img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.dashboard-blog-image-row .dashboard-blog-caption {
    width: 100%;
}

.dashboard-blog-image-row .dashboard-blog-media-tools {
    width: 100%;
}

@media (max-width: 700px) {
    .dashboard-blog-image-row,
    .blog-reader-image-row {
        grid-template-columns: 1fr;
        width: min(100% - 36px, 700px);
    }
}

.dashboard-blog-caption {
    width: min(100%, 700px);
    min-height: 24px;
    height: auto;
    margin: 10px auto 0;
    border: 0;
    border-radius: 0;
    outline: none;
    background: transparent;
    color: #6b6b6b;
    font-family: "Inter", "Avenir Next", "Segoe UI", sans-serif;
    font-size: 0.86rem;
    line-height: 1.38;
    text-align: center;
    box-shadow: none;
}

.dashboard-blog-head-edit:empty::before,
.dashboard-blog-caption:empty::before {
    content: attr(placeholder);
    color: #8a8a8a;
}

.dashboard-blog-date-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6b6b6b;
}

.dashboard-blog-date-pen {
    width: 0.72em;
    height: 0.72em;
    color: #8b9aab;
    flex: 0 0 auto;
}

.dashboard-blog-caption-tools {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    margin: 0;
    padding: 7px 9px;
    border: 1px solid rgba(198, 214, 232, 0.92);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 32px rgba(26, 42, 64, 0.14);
    backdrop-filter: blur(10px);
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    z-index: 80;
}

.dashboard-blog-text-tools .soft-btn.is-active,
.dashboard-blog-text-tools .ghost.soft-btn.is-active {
    background: #eef4fb;
    border-color: #b8c8d9;
    color: #102033;
}

.dashboard-blog-caption:hover,
.dashboard-blog-caption:focus {
    background: transparent;
}

.dashboard-blog-block-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    width: min(100% - 36px, 700px);
    margin: 0 auto;
    font-family: "Inter", "Avenir Next", "Segoe UI", sans-serif;
    opacity: 0;
    transition: opacity 160ms ease;
}

.dashboard-blog-block-tools.dashboard-blog-caption-tools {
    position: fixed;
    width: auto;
    margin: 0;
    padding: 7px 9px;
    justify-content: flex-end;
    flex-wrap: nowrap;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.dashboard-blog-block:hover .dashboard-blog-block-tools,
.dashboard-blog-block:focus-within .dashboard-blog-block-tools,
.dashboard-blog-gallery-item:hover .dashboard-blog-block-tools,
.dashboard-blog-gallery-item:focus-within .dashboard-blog-block-tools {
    opacity: 1;
}

.dashboard-blog-block:hover .dashboard-blog-caption-tools,
.dashboard-blog-block:focus-within .dashboard-blog-caption-tools,
.dashboard-blog-gallery-item:hover .dashboard-blog-caption-tools,
.dashboard-blog-gallery-item:focus-within .dashboard-blog-caption-tools {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.dashboard-blog-block-tools select {
    width: 118px;
    height: 34px;
    font-size: 0.78rem;
}

.dashboard-blog-media > .dashboard-blog-media-tools {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    justify-content: flex-end;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
}

.dashboard-blog-media:hover > .dashboard-blog-media-tools,
.dashboard-blog-media > .dashboard-blog-media-tools:focus-within {
    opacity: 1;
}

.dashboard-blog-block-tools.dashboard-blog-caption-tools.is-blog-text-toolbar-active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.dashboard-blog-media > .dashboard-blog-media-tools select {
    -webkit-appearance: none;
    appearance: none;
    padding-left: 20px;
    padding-right: 48px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%231c2e40' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px 16px;
}

.dashboard-blog-media-audio > .dashboard-blog-media-tools {
    display: none;
}

.dashboard-blog-audio-delete {
    position: absolute;
    top: 0;
    right: max(18px, calc((100% - min(100%, 960px)) / 2));
    z-index: 12;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 160ms ease;
}

.dashboard-blog-media-audio:hover > .dashboard-blog-audio-delete,
.dashboard-blog-media-audio:focus-within > .dashboard-blog-audio-delete,
.dashboard-blog-audio-delete:focus-visible {
    opacity: 1;
    pointer-events: auto;
}

.dashboard-blog-text-tools {
    align-items: center;
    flex-wrap: nowrap;
    width: min(100% - 36px, 700px);
    opacity: 0;
}

.dashboard-blog-block > .dashboard-blog-text-tools {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 80;
    width: auto;
    margin: 0;
    padding: 7px 9px;
    border: 1px solid rgba(198, 214, 232, 0.92);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 32px rgba(26, 42, 64, 0.14);
    backdrop-filter: blur(10px);
    transform: translateY(-4px);
    justify-content: flex-end;
    pointer-events: none;
    visibility: hidden;
}

.dashboard-blog-block > .dashboard-blog-block-tools:not(.dashboard-blog-text-tools) {
    position: absolute;
    top: 50%;
    right: max(18px, calc(50% - 640px));
    z-index: 6;
    width: auto;
    margin: 0;
    transform: translateY(-50%);
    justify-content: flex-end;
    pointer-events: none;
}

.dashboard-blog-block:hover > .dashboard-blog-block-tools:not(.dashboard-blog-text-tools),
.dashboard-blog-block:focus-within > .dashboard-blog-block-tools:not(.dashboard-blog-text-tools) {
    pointer-events: auto;
}

.dashboard-blog-block:hover > .dashboard-blog-text-tools,
.dashboard-blog-block:focus-within > .dashboard-blog-text-tools {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.dashboard-blog-block.is-blog-text-toolbar-active > .dashboard-blog-text-tools,
.dashboard-blog-block.is-blog-text-toolbar-active:hover > .dashboard-blog-text-tools,
.dashboard-blog-block.is-blog-text-toolbar-active:focus-within > .dashboard-blog-text-tools {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.dashboard-blog-block-tools.dashboard-blog-head-tools {
    width: auto;
}

.dashboard-blog-text-tools .soft-btn {
    border-color: transparent;
    background: transparent;
    min-width: 0;
    padding-inline: 6px;
}

.dashboard-blog-range-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #6b6b6b;
    font-size: 0.76rem;
}

.dashboard-blog-range-label input {
    width: 78px;
    accent-color: #6d8298;
}

.dashboard-blog-range-label input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 14px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
}

.dashboard-blog-range-label input[type="range"]:focus,
.dashboard-blog-range-label input[type="range"]:focus-visible {
    border: 0;
    box-shadow: none;
    outline: none;
}

.dashboard-blog-range-label input[type="range"]::-webkit-slider-runnable-track {
    height: 3px;
    border: 1px solid #a9a9a9;
    border-radius: 999px;
    background: #f8f8f8;
}

.dashboard-blog-range-label input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    margin-top: -7px;
    border: 0;
    border-radius: 50%;
    background: #6d8298;
    box-shadow: none;
}

.dashboard-blog-range-label input[type="range"]::-moz-range-track {
    height: 3px;
    border: 1px solid #a9a9a9;
    border-radius: 999px;
    background: transparent;
}

.dashboard-blog-range-label input[type="range"]::-moz-range-progress {
    height: 3px;
    border-radius: 999px;
    background: #6d8298;
}

.dashboard-blog-range-label input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: 50%;
    background: #6d8298;
    box-shadow: none;
}

@media (max-width: 860px) {
    .dashboard-blog-head-tools {
        position: fixed;
        right: auto;
        width: auto;
        margin: 0;
        justify-content: flex-start;
        white-space: nowrap;
    }

    .dashboard-blog-head-tools[data-blog-style-scope="title"],
    .dashboard-blog-head-tools[data-blog-style-scope="subtitle"] {
        top: auto;
    }

    #blog-subtitle-input + .dashboard-blog-head-tools {
        margin-top: -20px;
        margin-bottom: 24px;
    }

    .dashboard-blog-caption-tools {
        position: fixed;
        width: auto;
        margin: 0;
    }

    .dashboard-blog-block > .dashboard-blog-block-tools:not(.dashboard-blog-text-tools) {
        position: static;
        width: min(100% - 36px, 700px);
        margin: 8px auto 0;
        transform: none;
        justify-content: flex-start;
        pointer-events: auto;
    }
}

.blog-inline-insert {
    position: relative;
    display: flex;
    align-items: center;
    width: min(100% - 36px, 700px);
    height: 0;
    min-height: 0;
    margin: 0 auto;
    font-family: "Inter", "Avenir Next", "Segoe UI", sans-serif;
    z-index: 9;
}

.blog-inline-insert.is-blog-bottom-insert {
    height: 74px;
    margin-top: 28px;
    margin-bottom: 0;
}

.blog-inline-insert.is-blog-context-insert {
    position: absolute;
    left: 50%;
    top: var(--blog-context-insert-top, 0px);
    height: 74px;
    margin: 0;
    transform: translateX(-50%);
}

.blog-inline-insert::before {
    content: "";
    position: absolute;
    left: -70px;
    right: 0;
    top: 50%;
    height: 74px;
    transform: translateY(-50%);
}

.blog-inline-plus {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    min-width: 26px;
    height: 26px;
    min-height: 26px;
    padding: 0;
    border: 1px solid #d6e0eb;
    border-radius: 50%;
    background: #fff;
    color: #66798f;
    font: 500 1.05rem/26px "Inter", "Avenir Next", "Segoe UI", sans-serif;
    cursor: pointer;
    opacity: 1;
    transform: translate(-52px, -50%);
    transition: opacity 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.blog-inline-insert:hover .blog-inline-plus,
.blog-inline-insert:focus-within .blog-inline-plus {
    border-color: #bdd0e3;
    background: #edf4fb;
    color: #1c2e40;
}

.blog-inline-menu {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transform: translate(-18px, -50%);
    transition: opacity 0.14s ease;
}

.blog-inline-insert:hover .blog-inline-menu,
.blog-inline-insert:focus-within .blog-inline-menu {
    opacity: 1;
    pointer-events: auto;
}

.blog-inline-insert.is-blog-bottom-insert .blog-inline-menu {
    transform: translate(24px, -50%);
}

.blog-inline-insert.is-blog-context-insert .blog-inline-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translate(24px, -50%);
}

.blog-inline-insert.is-blog-context-insert .blog-inline-plus {
    border-color: #bdd0e3;
    background: #edf4fb;
    color: #1c2e40;
}

.blog-inline-menu button {
    min-height: 40px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #1c2e40;
    font: 400 0.92rem/1 "Inter", "Avenir Next", "Segoe UI", sans-serif;
    padding: 0 12px;
    cursor: pointer;
}

.blog-inline-menu button:hover,
.blog-inline-menu button:focus,
.blog-inline-menu button:focus-visible {
    background: #edf4fb;
    outline: none;
}

.dashboard-blog-empty-line {
    width: min(100% - 36px, 700px);
    margin: 12px auto 0;
    color: #6b6b6b;
    font-family: "Inter", "Avenir Next", "Segoe UI", sans-serif;
    font-size: 0.92rem;
    text-align: left;
}

.blog-project-media-dialog {
    width: min(980px, 94vw);
}

.blog-project-media-dialog .dialog-body {
    max-height: min(76vh, 760px);
}

.blog-project-media-shell {
    display: grid;
    gap: 14px;
}

.blog-project-media-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-family: "Inter", "Avenir Next", "Segoe UI", sans-serif;
}

.blog-project-media-tabs .is-active {
    background: #edf4fb;
    border-color: #bdd0e3;
    color: #1c2e40;
}

.blog-project-media-import {
    margin-left: auto;
}

.blog-project-media-import:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.blog-project-media-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    color: #66798f;
    font-family: "Inter", "Avenir Next", "Segoe UI", sans-serif;
    font-size: 0.86rem;
}

.blog-project-media-breadcrumb .soft-btn {
    min-height: 32px;
}

.blog-project-media-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
    min-height: 260px;
    max-height: min(58vh, 560px);
    overflow: auto;
    padding-right: 4px;
}

.blog-project-media-item {
    position: relative;
    display: grid;
    grid-template-rows: 130px auto;
    gap: 9px;
    border: 1px solid #d6e0eb;
    border-radius: 12px;
    background: #fff;
    color: #1c2e40;
    text-align: left;
    padding: 9px;
    cursor: pointer;
    font-family: "Inter", "Avenir Next", "Segoe UI", sans-serif;
}

.blog-project-media-item.is-selected {
    background: #edf4fb;
    border-color: #8fb0d2;
    box-shadow: 0 16px 34px rgba(61, 92, 124, 0.18);
}

.blog-project-media-item:hover,
.blog-project-media-item:focus,
.blog-project-media-item:focus-visible {
    background: #f7fbff;
    border-color: #bdd0e3;
    outline: none;
}

.blog-project-media-selected-overlay {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, 0.84);
    border-radius: 999px;
    background: rgba(28, 46, 64, 0.86);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0;
}

.blog-project-media-item.is-selected .blog-project-media-selected-overlay {
    display: inline-flex;
}

.blog-project-media-thumb {
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 9px;
    background: #eef4fa;
    color: #66798f;
    font-size: 0.78rem;
    font-weight: 600;
}

.blog-project-media-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-project-media-thumb-audio {
    background: linear-gradient(135deg, #eef4fa, #f8fbff);
}

.blog-project-media-thumb-project {
    background: #edf4fb;
}

.blog-project-media-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.blog-project-media-copy strong {
    overflow: hidden;
    color: #1c2e40;
    font-size: 0.9rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blog-project-media-copy small {
    overflow: hidden;
    color: #66798f;
    font-size: 0.75rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blog-project-media-status {
    min-height: 1.2em;
    margin: 0;
}

.blog-project-media-status.is-error {
    color: #b54343;
}

@media (max-width: 900px) {
    .dashboard-blog-toolbar {
        position: static;
        grid-template-columns: auto minmax(0, 1fr);
        width: min(100% - 24px, 700px);
        margin-bottom: 24px;
    }

    .dashboard-blog-actions {
        grid-column: 1 / -1;
    }

    .dashboard-blog-close-actions {
        grid-column: 2;
    }
}

@media (max-width: 560px) {
    .dashboard-blog-workspace {
        padding-top: 10px;
    }

    .dashboard-blog-actions {
        align-items: stretch;
    }

    .dashboard-blog-actions .soft-btn {
        width: 100%;
    }

    .dashboard-blog-open-field {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .dashboard-blog-select {
        width: 100%;
        min-width: 0;
    }

    .blog-inline-menu {
        flex-wrap: wrap;
    }

    .blog-project-media-list {
        grid-template-columns: 1fr;
    }

    .blog-project-media-import {
        width: 100%;
        margin-left: 0;
    }
}

.blog-studio-dialog {
    width: min(1180px, 94vw);
}

.blog-studio-dialog .dialog-body {
    max-height: min(74vh, 820px);
}

.blog-studio-shell {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 16px;
    min-height: 520px;
}

.blog-studio-sidebar,
.blog-editor-panel,
.blog-empty-panel {
    border: 1px solid #d6e0eb;
    border-radius: 12px;
    background: #fff;
}

.blog-studio-sidebar {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
}

.blog-create-post-btn {
    width: 100%;
}

.blog-post-list {
    display: grid;
    align-content: start;
    gap: 8px;
    overflow: auto;
    min-height: 0;
}

.blog-post-list-item {
    display: grid;
    gap: 4px;
    width: 100%;
    border: 1px solid #d6e0eb;
    border-radius: 10px;
    background: #fff;
    color: #1c2e40;
    text-align: left;
    padding: 10px 11px;
    font-family: "Inter", "Avenir Next", "Segoe UI", sans-serif;
}

.blog-post-list-item:hover,
.blog-post-list-item:focus,
.blog-post-list-item:focus-visible,
.blog-post-list-item.is-active {
    background: #edf4fb;
    border-color: #c6d6e8;
    outline: none;
}

.blog-post-list-title {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.2;
}

.blog-post-list-meta {
    color: #66798f;
    font-size: 0.76rem;
    line-height: 1.2;
}

body.blog-collection-manager-active .legacy-project-create-panel,
body.blog-collection-manager-active .project-folders-section > .project-folders-spacer,
body.blog-collection-manager-active .project-folders-section > #project-grid,
body.blog-collection-manager-active .project-folders-section > .dashboard-drop-upload-panel {
    display: none !important;
}

.blog-collection-manager[hidden] {
    display: none !important;
}

.blog-collection-manager {
    --blog-collection-preview-width: 300px;
    --blog-collection-preview-height: 170px;
    width: min(1280px, calc(100vw - 72px));
    margin: 0 auto;
    padding: 0 0 72px;
}

.blog-collection-manager-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 32px 0 22px;
}

.blog-collection-manager-head h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    color: var(--ink);
    font-size: 1.45rem;
    font-weight: 400;
    letter-spacing: 0;
}

.blog-collection-manager-head h2 span:first-child,
.blog-collection-manager-head h2 strong {
    font-weight: 800;
}

.blog-collection-manager-head h2 span[aria-hidden="true"] {
    color: var(--muted);
    font-weight: 400;
}

.blog-collection-manager-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 8px 18px;
    border-radius: 8px;
    background: #c5afe4;
    color: #fff;
    font-weight: 700;
}

.blog-collection-manager-list {
    display: grid;
    gap: 18px;
}

.blog-collection-manager-row {
    display: grid;
    grid-template-columns: var(--blog-collection-preview-width) minmax(0, 1fr);
    gap: 24px;
    align-items: end;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(31, 45, 68, 0.08);
}

.blog-collection-manager-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--blog-collection-preview-width);
    height: var(--blog-collection-preview-height);
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7f9fc;
    color: var(--muted);
    font-weight: 700;
}

.blog-collection-manager-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-collection-manager-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-self: stretch;
}

.blog-collection-manager-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    grid-template-rows: auto auto;
    align-items: end;
    gap: 18px;
    row-gap: 6px;
    margin-top: auto;
}

.blog-collection-manager-title-row h3 {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    color: var(--ink);
    font-family: "Noy Display", "Charter", Georgia, "Times New Roman", serif;
    font-size: 1.72rem;
    line-height: 0.98;
    font-weight: 700;
    letter-spacing: 0;
}

.blog-collection-manager-text {
    grid-column: 1;
    grid-row: 2;
    display: grid;
    gap: 4px;
    min-width: 0;
}

.blog-collection-manager-subtitle,
.blog-collection-manager-excerpt {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
    max-width: 62ch;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.blog-collection-manager-subtitle {
    font-size: 1rem;
}

.blog-collection-manager-excerpt {
    color: #7b8798;
    font-size: 0.92rem;
}

.blog-collection-manager-date {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--muted) !important;
    font: inherit !important;
    line-height: 1.45 !important;
    text-align: right !important;
    appearance: none;
    -webkit-appearance: none;
}

.blog-collection-manager-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
}

.blog-collection-manager-preview-select {
    width: min(280px, 100%);
}

.blog-collection-manager-row-status {
    min-width: 58px;
    color: var(--muted);
    font-size: 0.9rem;
}

.blog-collection-manager-empty {
    margin: 0;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

@media (max-width: 820px) {
    .blog-collection-manager {
        width: min(100vw - 28px, 720px);
    }

    .blog-collection-manager-head {
        align-items: stretch;
        flex-direction: column;
    }

    .blog-collection-manager-row,
    .blog-collection-manager-title-row {
        grid-template-columns: 1fr;
    }
}

.blog-studio-status {
    min-height: 1.2em;
    margin: 0;
}

.blog-studio-status.is-error {
    color: #b54343;
}

.blog-editor-panel {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    min-width: 0;
}

.blog-editor-panel[hidden],
.blog-empty-panel[hidden] {
    display: none !important;
}

.blog-editor-fields {
    display: grid;
    gap: 10px;
}

.blog-editor-fields input,
.blog-editor-fields select,
.blog-block-card textarea,
.blog-block-card input,
.blog-block-card select {
    width: 100%;
    border: 1px solid #d6e0eb;
    border-radius: 10px;
    background: #fff;
    color: #1c2e40;
    font-family: "Inter", "Avenir Next", "Segoe UI", sans-serif;
    font-size: 0.92rem;
}

.blog-editor-fields input,
.blog-editor-fields select,
.blog-block-card input,
.blog-block-card select {
    height: 40px;
    padding: 0 12px;
}

.blog-block-card textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.45;
    padding: 11px 12px;
}

.blog-editor-row {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) 132px auto auto;
    gap: 8px;
    align-items: center;
}

.blog-public-link {
    min-height: 40px;
}

.blog-block-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-block-list {
    display: grid;
    align-content: start;
    gap: 12px;
    overflow: auto;
    min-height: 0;
    padding-right: 3px;
}

.blog-block-card {
    display: grid;
    gap: 10px;
    border: 1px solid #d6e0eb;
    border-radius: 12px;
    background: #f9fbfe;
    padding: 12px;
}

.blog-block-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.blog-block-card-head > div:first-child {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.blog-block-card-head strong {
    font-size: 0.82rem;
    color: #1f3f5c;
}

.blog-block-card-head span {
    color: #66798f;
    font-size: 0.78rem;
    line-height: 1.25;
}

.blog-block-actions {
    display: flex;
    gap: 6px;
    flex: 0 0 auto;
}

.blog-block-size-row {
    display: grid;
    grid-template-columns: auto 140px auto;
    gap: 8px;
    align-items: center;
    justify-content: start;
}

.blog-block-size-row span {
    color: #66798f;
    font-size: 0.82rem;
}

.blog-block-media-preview {
    display: grid;
    place-items: center;
    border: 1px solid #dce6f0;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    min-height: 160px;
}

.blog-block-media-preview img,
.blog-block-media-preview video {
    display: block;
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
}

.blog-block-media-preview audio {
    width: min(100%, 520px);
}

.blog-divider-preview {
    color: #66798f;
    font-family: Georgia, serif;
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 0.18em;
    padding: 10px 0;
}

.blog-empty-panel {
    display: grid;
    place-content: center;
    gap: 8px;
    text-align: center;
    color: #66798f;
    padding: 24px;
}

.blog-empty-panel h4 {
    margin: 0;
    color: #1c2e40;
    font-size: 1rem;
}

.blog-empty-panel p {
    margin: 0;
    max-width: 420px;
}

.blog-reader-page {
    background: #fff;
    color: #242424;
}

.blog-reader-page.blog-reader-preview-mode {
    --preview-video-header-height: 132px;
    --preview-video-header-padding-top: 28px;
    --preview-video-header-padding-bottom: 28px;
    --preview-inline-gap: max(24px, calc((100vw - min(1200px, 94vw)) / 2));
}

.blog-reader-page.blog-reader-preview-mode .blog-reader {
    padding-top: calc(var(--preview-video-header-height) + clamp(28px, 5vw, 60px));
}

.blog-reader-page.blog-reader-preview-mode .blog-reader-preview-topbar {
    --preview-topbar-sticky-height: var(--preview-video-header-height);
    position: fixed;
    inset: 0 0 auto 0;
    width: 100vw;
    min-height: var(--preview-video-header-height);
    margin: 0;
    padding-top: var(--preview-video-header-padding-top);
    padding-bottom: var(--preview-video-header-padding-bottom);
    padding-left: var(--preview-inline-gap);
    padding-right: var(--preview-inline-gap);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(21, 38, 63, 0.05);
}

.blog-reader-page.blog-reader-preview-mode .blog-reader-preview-language-form {
    margin: 0;
}

.blog-password-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 48px 18px;
}

.blog-password-panel {
    width: min(100%, 360px);
    display: grid;
    gap: 14px;
    text-align: center;
    font-family: "Inter", "Avenir Next", "Segoe UI", sans-serif;
}

.blog-password-panel h1 {
    margin: 0 0 8px;
    color: #172233;
    font-size: 1.35rem;
}

.blog-password-panel input {
    width: 100%;
}

.blog-password-error {
    margin: 0;
    color: #b23b3b;
}

.blog-reader-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: min(100% - 36px, 1120px);
    min-height: 76px;
    margin: 0 auto;
    padding: 20px 0;
    border-bottom: 0;
    box-sizing: border-box;
    font-family: "Inter", "Avenir Next", "Segoe UI", sans-serif;
}

.blog-reader-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.blog-reader-logo {
    display: block;
    width: auto;
    height: 46px;
    object-fit: contain;
}

.blog-reader-logo-spacer {
    display: block;
    width: 1px;
    height: 46px;
}

.blog-reader-language-form {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
}

.blog-reader-language-select {
    min-width: 132px;
    min-height: 34px;
    border: 1px solid #d3deeb;
    border-radius: 999px;
    background-color: #ffffff;
    color: #1c2e40;
    padding: 0 42px 0 16px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%231c2e40' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px 16px;
    font: 500 0.82rem/1 "Inter", "Avenir Next", "Segoe UI", sans-serif;
}

.blog-reader-language-select:focus,
.blog-reader-language-select:focus-visible,
.blog-reader-language-select:active {
    border-color: #d3deeb;
    box-shadow: none;
    outline: none;
}

.blog-reader {
    width: 100%;
    padding: 34px 0 80px;
}

.blog-logo-hidden .blog-reader {
    padding-top: 34px;
}

.blog-reader-page.blog-reader-preview-mode .blog-reader,
.blog-reader-page.blog-reader-preview-mode.blog-logo-hidden .blog-reader {
    padding-top: calc(var(--preview-video-header-height) + clamp(28px, 5vw, 60px));
}

.blog-article {
    width: 100%;
}

.blog-article-head,
.blog-reader-text,
.blog-reader-media-medium,
.blog-reader-media-small {
    width: min(100% - 36px, 700px);
    margin-left: auto;
    margin-right: auto;
}

.blog-article-head {
    margin-bottom: 34px;
}

.blog-article-head h1 {
    margin: 0 0 14px;
    max-width: 820px;
    color: #000;
    font-family: "Noy Display", "Charter", Georgia, "Times New Roman", serif;
    font-size: var(--blog-title-font-size, 3.324rem);
    font-weight: var(--blog-title-font-weight, 700);
    font-style: var(--blog-title-font-style, normal);
    line-height: var(--blog-title-line-height, 0.98);
    letter-spacing: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.blog-article-subtitle {
    margin: 0 0 36px;
    color: #6b6b6b;
    font-family: "Inter", "Avenir Next", "Segoe UI", sans-serif;
    font-size: var(--blog-subtitle-font-size, 1.12rem);
    font-weight: var(--blog-subtitle-font-weight, 400);
    font-style: var(--blog-subtitle-font-style, normal);
    line-height: var(--blog-subtitle-line-height, 1.45);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.blog-article-meta {
    margin: 0;
    color: #6b6b6b;
    font-family: "Inter", "Avenir Next", "Segoe UI", sans-serif;
    font-size: 0.92rem;
}

.blog-article-blocks {
    display: grid;
    gap: 0;
}

.blog-reader-text {
    color: var(--blog-body-text-color, #6b778a);
    font-family: "Charter", Georgia, Cambria, "Times New Roman", serif;
    font-size: var(--blog-text-font-size, 1.15rem);
    line-height: var(--blog-text-line-height, 1.55);
}

.blog-reader-text * {
    color: var(--blog-body-text-color, #6b778a);
}

.blog-reader-text a,
.blog-reader-text a:visited {
    color: #0b66d8;
    text-decoration: underline;
    text-underline-offset: 0.13em;
}

.dashboard-blog-textarea .blog-redacted,
.dashboard-blog-textarea .blog-redacted *,
.blog-reader-text .blog-redacted,
.blog-reader-text .blog-redacted *,
.blog-collection-inline-text .blog-redacted,
.blog-collection-inline-text .blog-redacted * {
    color: transparent !important;
    text-decoration-color: transparent !important;
    text-shadow: none !important;
}

.dashboard-blog-textarea .blog-redacted a,
.blog-reader-text .blog-redacted a,
.blog-collection-inline-text .blog-redacted a {
    color: transparent !important;
    text-decoration: none !important;
}

.blog-reader-text p {
    font-size: inherit !important;
    line-height: inherit !important;
    margin: 0 0 1.08em;
}

.blog-reader-text p:last-child {
    margin-bottom: 0;
}

.blog-reader-text strong,
.blog-reader-text b,
.blog-reader-text em,
.blog-reader-text i,
.blog-reader-text a,
.blog-reader-text span,
.blog-reader-text br {
    font-size: inherit !important;
    line-height: inherit !important;
}

.blog-reader-media {
    margin-top: 8px;
    margin-bottom: 8px;
}

.blog-reader-image-row {
    display: grid;
    grid-template-columns: repeat(var(--blog-gallery-count, 2), minmax(0, 1fr));
    gap: 14px;
    width: min(100% - 36px, 1120px);
    margin: 8px auto;
    align-items: start;
}

.blog-article-blocks > .blog-reader-text,
.blog-article-blocks > .blog-reader-media,
.blog-article-blocks > .blog-reader-image-row,
.blog-article-blocks > .blog-reader-divider {
    margin-block: 14px;
}

.blog-article-blocks > .blog-reader-media {
    margin-block: 22px;
}

.blog-reader-image-row-2 {
    --blog-gallery-count: 2;
}

.blog-reader-image-row-3 {
    --blog-gallery-count: 3;
}

.blog-reader-image-row-4 {
    --blog-gallery-count: 4;
}

.blog-reader-image-row .blog-reader-media {
    width: 100%;
    margin: 0;
}

.blog-reader-image-row .blog-reader-media img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.blog-reader-media-small {
    max-width: 520px;
}

.blog-reader-media-wide {
    width: min(100% - 36px, 1120px);
    margin-left: auto;
    margin-right: auto;
}

.blog-reader-media-feature {
    width: min(100% - 36px, 1360px);
    margin-left: auto;
    margin-right: auto;
}

.blog-reader-media img,
.blog-reader-media video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 82vh;
    object-fit: contain;
    margin: 0 auto;
}

.blog-reader-media audio {
    display: block;
    width: min(100%, 700px);
    margin: 0 auto;
}

.blog-reader-video-shell {
    position: relative;
    width: 100%;
}

.blog-reader-video-shell .custom-video-player {
    aspect-ratio: var(--blog-video-aspect, 16 / 9);
    border-radius: 0;
}

.blog-reader-video-shell .custom-video-element {
    object-fit: contain;
}

.blog-reader-video-controls {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 6;
    grid-template-columns: auto minmax(120px, 1fr) auto auto auto auto;
    width: auto;
    margin: 0;
    padding: 8px 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 22px rgba(22, 36, 56, 0.12);
    opacity: 0;
    transform: translateY(7px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.blog-reader-video-controls.is-visible,
.blog-reader-video-shell:focus-within .blog-reader-video-controls {
    opacity: 1;
    transform: translateY(0);
}

.blog-reader-audio-shell {
    width: min(100%, 960px);
    margin: 0 auto;
    position: relative;
}

.blog-reader-audio-shell > audio {
    display: none;
}

.blog-reader-audio-shell .audio-track-row {
    grid-template-columns: auto minmax(120px, 1fr) auto;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #f3f5f7;
}

.blog-reader-audio-shell .blog-reader-audio-controls {
    position: static;
    grid-template-columns: auto minmax(140px, 1fr) auto auto auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid rgba(17, 24, 39, 0.24);
    border-radius: 12px;
    background: rgba(17, 24, 39, 0.62);
    color: #fff;
    box-shadow: none;
}

.blog-reader-audio-shell .blog-reader-audio-controls .dialog-video-toggle,
.blog-reader-audio-shell .blog-reader-audio-controls .blog-reader-video-download-icon.dialog-download-inline {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    box-shadow: none;
}

.blog-reader-audio-shell .blog-reader-audio-controls .dialog-video-toggle:hover,
.blog-reader-audio-shell .blog-reader-audio-controls .dialog-video-toggle:focus,
.blog-reader-audio-shell .blog-reader-audio-controls .blog-reader-video-download-icon.dialog-download-inline:hover,
.blog-reader-audio-shell .blog-reader-audio-controls .blog-reader-video-download-icon.dialog-download-inline:focus {
    background: transparent;
    color: #fff;
    box-shadow: none;
}

.blog-reader-audio-shell .blog-reader-audio-controls .dialog-video-toggle svg,
.blog-reader-audio-shell .blog-reader-audio-controls .blog-reader-video-download-icon svg {
    width: 14px;
    height: 14px;
}

.blog-reader-audio-shell .blog-reader-audio-controls .dialog-video-seek {
    height: 4px;
    background: rgba(255, 255, 255, 0.92);
    accent-color: #fff;
}

.blog-reader-audio-shell .blog-reader-audio-controls .dialog-video-seek::-webkit-slider-runnable-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.92);
}

.blog-reader-audio-shell .blog-reader-audio-controls .dialog-video-seek::-moz-range-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.92);
}

.blog-reader-audio-shell .blog-reader-audio-controls .dialog-video-seek::-webkit-slider-thumb {
    width: 10px;
    height: 10px;
    margin-top: -3px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.75);
}

.blog-reader-audio-shell .blog-reader-audio-controls .dialog-video-seek::-moz-range-thumb {
    width: 10px;
    height: 10px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.75);
}

.blog-reader-audio-shell .blog-reader-audio-controls .dialog-video-time {
    color: #fff;
}

.blog-reader-control-download {
    height: 35px;
    min-height: 35px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
}

.blog-reader-video-download-icon {
    width: 35px;
    min-width: 35px;
    padding: 0;
}

.blog-reader-video-download-icon svg {
    width: 17px;
    height: 17px;
    display: block;
}

.blog-zip-status {
    display: grid;
    gap: 5px;
    width: min(320px, calc(100% - 28px));
    color: #fff;
    font-family: "Inter", "Avenir Next", "Segoe UI", sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0;
    pointer-events: none;
    z-index: 14;
}

.blog-zip-status[hidden] {
    display: none !important;
}

.blog-zip-status-label {
    line-height: 1;
    text-align: center;
    text-shadow: 0 1px 3px rgba(17, 24, 39, 0.45);
}

.blog-zip-status-track {
    position: relative;
    display: block;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
}

.blog-zip-status-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -45%;
    width: 45%;
    border-radius: inherit;
    background: #fff;
    animation: blogZipPrepare 1600ms ease-in-out infinite;
}

.blog-zip-status[data-progress] .blog-zip-status-fill {
    left: 0;
    width: var(--blog-zip-progress, 0%);
    animation: none;
}

.blog-zip-status[data-state="done"] .blog-zip-status-fill {
    left: 0;
    width: 100%;
    animation: none;
}

.blog-zip-status[data-state="error"] .blog-zip-status-fill {
    left: 0;
    width: 100%;
    background: #f4a6ad;
    animation: none;
}

.blog-reader-video-shell > .blog-zip-status {
    position: absolute;
    left: 50%;
    bottom: 58px;
    transform: translateX(-50%);
}

.blog-reader-audio-shell > .blog-zip-status {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    color: #1c2e40;
}

.blog-reader-audio-shell > .blog-zip-status .blog-zip-status-label {
    text-shadow: none;
}

.blog-reader-audio-shell > .blog-zip-status .blog-zip-status-track {
    background: rgba(17, 24, 39, 0.14);
}

.blog-reader-audio-shell > .blog-zip-status .blog-zip-status-fill {
    background: rgba(17, 24, 39, 0.58);
}

@keyframes blogZipPrepare {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(325%);
    }
}

.blog-reader-media figcaption {
    width: min(100%, 700px);
    min-height: 24px;
    margin: 10px auto 0;
    color: #6b6b6b;
    font-family: "Inter", "Avenir Next", "Segoe UI", sans-serif;
    font-size: var(--blog-caption-font-size, 0.78rem);
    font-weight: var(--blog-caption-font-weight, 400);
    font-style: var(--blog-caption-font-style, normal);
    line-height: 1.38;
    text-align: center;
}

.blog-reader-media figcaption > span {
    display: block;
}

.blog-reader-download-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    color: #2f3b4f;
    font-weight: 600;
    text-decoration: none;
}

.blog-reader-download-link:hover,
.blog-reader-download-link:focus {
    text-decoration: underline;
}

@media (max-width: 720px) {
    .blog-reader-video-controls {
        left: 8px;
        right: 8px;
        bottom: 8px;
        grid-template-columns: auto minmax(80px, 1fr) auto auto auto;
    }

    .blog-reader-video-controls .blog-reader-control-download {
        grid-column: auto;
        width: 35px;
    }

    .blog-reader-audio-shell .audio-track-row {
        grid-template-columns: auto minmax(80px, 1fr);
    }

    .blog-reader-audio-shell .blog-reader-control-download {
        grid-column: 1 / -1;
        width: 100%;
    }

    .blog-reader-audio-shell .blog-reader-audio-controls {
        grid-template-columns: auto minmax(80px, 1fr) auto auto auto;
        gap: 8px;
    }

    .blog-reader-audio-shell .blog-reader-audio-controls .dialog-video-time {
        min-width: 74px;
        font-size: 0.72rem;
    }

    .blog-reader-audio-shell .blog-reader-audio-controls .blog-reader-video-download-icon.dialog-download-inline {
        grid-column: auto;
        width: 24px;
    }
}

.blog-reader-divider {
    color: #242424;
    font-family: Georgia, serif;
    font-size: 0.945rem;
    letter-spacing: 0.18em;
    text-align: center;
    padding: 8px 0;
}

.dashboard-prompter-shell {
    --dashboard-prompter-accent-bg: #eaf3fd;
    --dashboard-prompter-accent-border: #c6d6e8;
    --dashboard-prompter-accent-ink: #1f3f5c;
    width: 100%;
    max-width: 100%;
    margin: 26px auto 48px;
    display: grid;
    gap: 14px;
}

.dashboard-prompter-shell[hidden] {
    display: none !important;
}

body.projects-dashboard.dashboard-prompter-active .dashboard-prompter-shell {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 18px auto 0;
    padding-bottom: 32px;
}

.dashboard-prompter-wrap {
    position: relative;
}

.dashboard-prompter-viewport {
    border: 1px solid rgba(13, 94, 130, 0.25);
    border-radius: 20px;
    background: #0f1218;
    color: #f3f7ff;
    height: min(58vh, 620px);
    min-height: 300px;
    max-height: 82vh;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 18px 36px rgba(10, 14, 22, 0.18);
}

.dashboard-prompter-content {
    --dash-prompter-font-size: 56px;
    --dash-prompter-line-height: 1.4;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: var(--dash-prompter-font-size);
    line-height: var(--dash-prompter-line-height);
    font-weight: 700;
    letter-spacing: 0;
    white-space: pre-wrap;
    padding: 22vh 6vw;
    transform: none;
    user-select: text;
    cursor: text;
}

.dashboard-prompter-content.is-uppercase {
    text-transform: uppercase;
}

.dashboard-prompter-viewport:fullscreen .dashboard-prompter-content,
.dashboard-prompter-viewport:-webkit-full-screen .dashboard-prompter-content {
    width: min(100%, var(--dash-prompter-fullscreen-lock-width, 1100px));
    margin-left: auto;
    margin-right: auto;
}

.dashboard-prompter-content:focus {
    outline: 2px solid rgba(116, 196, 255, 0.5);
    outline-offset: -2px;
}

.dashboard-prompter-resize-handle {
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 130px;
    height: 14px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(153, 220, 255, 0.42), rgba(109, 175, 238, 0.64));
    border: 1px solid rgba(170, 223, 255, 0.65);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    cursor: ns-resize;
    z-index: 5;
}

.dashboard-prompter-resize-handle::before {
    content: "";
    position: absolute;
    inset: 4px 14px;
    border-radius: 999px;
    background: rgba(5, 18, 33, 0.38);
}

.dashboard-prompter-panel {
    border: 1px solid #d6e0eb;
    border-radius: 18px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.84);
    display: grid;
    gap: 14px;
}

.dashboard-prompter-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.dashboard-prompter-head h2 {
    margin: 0;
    font-size: 1.45rem;
}

.dashboard-prompter-head p,
.dashboard-prompter-field p,
.dashboard-prompter-status,
.dashboard-prompter-hints {
    margin: 0;
    color: #66798f;
}

.dashboard-prompter-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.dashboard-prompter-actions .soft-btn {
    font-weight: 400;
}

.dashboard-prompter-play-btn {
    background: var(--dashboard-prompter-accent-bg) !important;
    border-color: var(--dashboard-prompter-accent-border) !important;
    color: var(--dashboard-prompter-accent-ink) !important;
}

.dashboard-prompter-play-btn.is-playing {
    background: #e1edf9 !important;
    border-color: var(--dashboard-prompter-accent-border) !important;
    color: var(--dashboard-prompter-accent-ink) !important;
}

.dashboard-prompter-actions .is-recording {
    background: #e1edf9 !important;
    border-color: var(--dashboard-prompter-accent-border) !important;
    color: var(--dashboard-prompter-accent-ink) !important;
}

.dashboard-prompter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-prompter-field {
    border: 1px solid #d6e0eb;
    border-radius: 14px;
    padding: 9px 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 12px;
    background: rgba(255, 255, 255, 0.72);
}

.dashboard-prompter-field > span,
.dashboard-prompter-field > output,
.dashboard-prompter-field-head > span:first-child {
    font-weight: 650;
}

.dashboard-prompter-field-head,
.dashboard-prompter-field p,
.dashboard-prompter-status,
.dashboard-prompter-import-row {
    grid-column: 1 / -1;
}

.dashboard-prompter-field input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    grid-column: 1 / -1;
    width: 100%;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: #c9ced5;
    accent-color: #9fbce0;
    cursor: pointer;
}

#dashboard-prompter-speed-value,
#dashboard-prompter-font-value,
#dashboard-prompter-line-height-value,
#dashboard-prompter-background-value {
    display: none;
}

.dashboard-prompter-field input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: #c9ced5;
}

.dashboard-prompter-field input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    margin-top: -5px;
    border: 0;
    border-radius: 50%;
    background: #9fbce0;
}

.dashboard-prompter-field input[type="range"]::-moz-range-track {
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: #c9ced5;
}

.dashboard-prompter-field input[type="range"]::-moz-range-progress {
    height: 8px;
    border-radius: 999px;
    background: #c9ced5;
}

.dashboard-prompter-field input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 50%;
    background: #9fbce0;
}

.dashboard-prompter-field > output {
    justify-self: end;
    color: var(--ink);
    line-height: 1.2;
}

.dashboard-prompter-field select,
.dashboard-prompter-field input[type="file"] {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    border: 1px solid #d6e0eb;
    border-radius: 10px;
    padding: 10px;
    font: inherit;
    background: #fff;
    color: var(--ink);
}

.dashboard-prompter-field input[type="file"].sr-only {
    width: 1px;
}

.dashboard-prompter-field select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 30px;
    background-image: linear-gradient(45deg, transparent 50%, #12202f 50%), linear-gradient(135deg, #12202f 50%, transparent 50%);
    background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.dashboard-prompter-load-btn,
.dashboard-prompter-field input[type="file"]::file-selector-button {
    border: 1px solid #d6e0eb;
    border-radius: 999px;
    padding: 9px 14px;
    font: inherit;
    font-weight: 650;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
}

.dashboard-prompter-load-btn {
    min-height: 42px;
    text-decoration: none;
}

.dashboard-prompter-field-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.dashboard-prompter-toggle-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    color: #66798f;
}

.dashboard-prompter-format-list {
    color: #66798f;
    font-size: 0.84rem;
    font-weight: 650;
    white-space: nowrap;
}

.dashboard-prompter-import-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.dashboard-prompter-import-row button {
    white-space: nowrap;
}

.dashboard-prompter-status.is-error {
    color: #b54343;
}

.dashboard-prompter-hints {
    text-align: center;
    font-size: 0.9rem;
}

.dashboard-prompter-record-modal {
    position: fixed;
    inset: 0;
    z-index: 180;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(15, 18, 24, 0.38);
    backdrop-filter: blur(4px);
}

.dashboard-prompter-record-modal[hidden] {
    display: none !important;
}

.dashboard-prompter-record-panel {
    width: min(560px, 100%);
    border: 1px solid #d6e0eb;
    border-radius: 18px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 60px rgba(10, 14, 22, 0.22);
    display: grid;
    gap: 14px;
}

.dashboard-prompter-record-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.dashboard-prompter-record-head h2 {
    margin: 0;
    font-size: 1.25rem;
}

.dashboard-prompter-record-head p {
    margin: 4px 0 0;
    color: #66798f;
}

.dashboard-prompter-record-head p.is-error {
    color: #b54343;
}

.dashboard-prompter-record-field {
    background: rgba(255, 255, 255, 0.82);
}

.dashboard-prompter-record-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.dashboard-prompter-start-recording-btn {
    background: var(--dashboard-prompter-accent-bg) !important;
    border-color: var(--dashboard-prompter-accent-border) !important;
    color: var(--dashboard-prompter-accent-ink) !important;
}

.dashboard-prompter-stop-recording-btn:not(:disabled) {
    background: #e1edf9 !important;
    border-color: var(--dashboard-prompter-accent-border) !important;
    color: var(--dashboard-prompter-accent-ink) !important;
}

.dashboard-prompter-recording-hud {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 190;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(198, 214, 232, 0.95);
    border-radius: 999px;
    padding: 8px 10px 8px 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 28px rgba(10, 14, 22, 0.16);
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 650;
}

.dashboard-prompter-recording-hud[hidden] {
    display: none !important;
}

.dashboard-prompter-recording-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #9fbce0;
    box-shadow: 0 0 0 0 rgba(159, 188, 224, 0.55);
    animation: dashboardPrompterRecordingPulse 1.4s ease-in-out infinite;
}

.dashboard-prompter-recording-hud button {
    padding: 7px 12px;
    background: #e1edf9 !important;
    border-color: #c6d6e8 !important;
    color: #1f3f5c !important;
}

@keyframes dashboardPrompterRecordingPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(159, 188, 224, 0.55);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(159, 188, 224, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(159, 188, 224, 0);
    }
}

body.dashboard-prompter-resizing,
body.dashboard-prompter-resizing * {
    cursor: ns-resize !important;
    user-select: none !important;
}

@media (max-width: 860px) {
    .dashboard-prompter-shell {
        width: min(100%, calc(100vw - 24px));
    }

    .dashboard-prompter-head,
    .dashboard-prompter-field-head {
        flex-direction: column;
    }

    .dashboard-prompter-grid,
    .dashboard-prompter-import-row {
        grid-template-columns: 1fr;
    }

    .dashboard-prompter-toggle-row {
        justify-content: flex-start;
    }

    .dashboard-prompter-content {
        --dash-prompter-font-size: 44px;
        padding: 18vh 8vw;
    }
}

.sync-share-prefix {
    font-weight: 400;
}

.sync-share-divider {
    font-weight: 400;
}

.sync-share-name {
    font-weight: 700;
}

.dashboard-backup-progress {
    display: grid;
    gap: 6px;
    padding: 0 2px;
}

.dashboard-backup-progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.78rem;
    color: #5f738b;
    line-height: 1;
}

.dashboard-backup-progress .progress-track {
    height: 7px;
}

.dashboard-backup-progress .progress-fill {
    background: linear-gradient(90deg, #6f95d6, #7ea3e2);
}

.dashboard-backup-status {
    margin: 0;
    min-height: 18px;
    font-size: 0.8rem;
    line-height: 1.35;
    text-align: center;
    color: #5f738b;
}

.dashboard-backup-status.is-error {
    color: #b54343;
}

.dashboard-main-backup-progress-panel {
    display: grid;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 10px;
    padding: 12px 16px;
}

.dashboard-main-backup-progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.94rem;
    color: #5f738b;
}

.dashboard-main-backup-progress-panel .progress-track {
    height: 9px;
}

.dashboard-main-backup-progress-panel .progress-fill {
    background: linear-gradient(90deg, #6f95d6, #7ea3e2);
}

.dashboard-main-backup-progress-status {
    margin: 0;
    min-height: 18px;
    font-size: 0.84rem;
    line-height: 1.35;
    color: #5f738b;
}

.dashboard-main-backup-progress-status.is-error {
    color: #b54343;
}

.dashboard-media-export-progress-panel {
    display: grid;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 10px;
    padding: 12px 16px;
}

.dashboard-media-export-progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.94rem;
    color: #5f738b;
}

.dashboard-media-export-progress-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dashboard-media-export-progress-cancel-btn {
    width: 21px;
    height: 21px;
    min-width: 21px;
    min-height: 21px;
}

.dashboard-media-export-progress-panel .progress-track {
    height: 9px;
}

.dashboard-media-export-progress-panel .progress-fill {
    background: linear-gradient(90deg, #6f95d6, #7ea3e2);
}

.dashboard-media-export-progress-status {
    margin: 0;
    min-height: 18px;
    font-size: 0.84rem;
    line-height: 1.35;
    color: #5f738b;
}

.dashboard-media-export-progress-status.is-error {
    color: #b54343;
}

.dashboard-restore-progress-panel {
    display: grid;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 10px;
    padding: 12px 16px;
}

.dashboard-restore-progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.94rem;
    color: #5f738b;
}

.dashboard-restore-progress-panel .progress-track {
    height: 9px;
}

.dashboard-restore-progress-panel .progress-fill {
    background: linear-gradient(90deg, #6f95d6, #7ea3e2);
}

.dashboard-restore-progress-status {
    margin: 0;
    min-height: 18px;
    font-size: 0.84rem;
    line-height: 1.35;
    color: #5f738b;
}

.dashboard-restore-progress-status.is-error {
    color: #b54343;
}

.projects-dashboard .topbar-actions .soft-btn,
.review-admin[data-project-mode="video"] .topbar-actions .soft-btn,
.review-admin[data-project-mode="photo"] .topbar-actions .soft-btn,
.review-admin[data-project-mode="files"] .topbar-actions .soft-btn,
.review-admin[data-project-mode="audio"] .topbar-actions .soft-btn,
.review-admin[data-project-mode="blog"] .topbar-actions .soft-btn,
.review-admin[data-project-mode="video"] .topbar-actions .bulk-delete-btn {
    padding: 0 16px;
    height: 40px;
    min-height: 40px;
    font-size: 0.92rem;
    font-weight: 400;
    border-radius: 14px;
    line-height: 1;
    white-space: nowrap;
    flex: 0 0 auto;
}

.projects-dashboard .dashboard-blog-toolbar .dashboard-blog-open-field {
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1;
}

.projects-dashboard .dashboard-blog-toolbar .dashboard-blog-close-btn {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
}

.projects-dashboard #pin-mode-btn.is-pin-active {
    background: var(--pin-accent);
    border-color: var(--pin-accent);
    color: #ffffff;
    font-weight: 400;
    box-shadow: none;
    outline: none;
}

.projects-dashboard #pin-mode-btn.is-pin-active:hover,
.projects-dashboard #pin-mode-btn.is-pin-active:focus,
.projects-dashboard #pin-mode-btn.is-pin-active:focus-visible {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)),
        linear-gradient(var(--pin-accent), var(--pin-accent));
    background-blend-mode: multiply;
    border-color: var(--pin-accent);
    color: #ffffff;
    box-shadow: none !important;
    outline: none !important;
}

.projects-dashboard #dashboard-view-toggle-btn.is-active {
    background: #eaf3fd !important;
    border-color: #c6d6e8 !important;
    color: #1f3f5c !important;
}

.projects-dashboard #dashboard-view-toggle-btn,
.projects-dashboard #dashboard-view-toggle-btn:hover,
.projects-dashboard #dashboard-view-toggle-btn:focus,
.projects-dashboard #dashboard-view-toggle-btn:focus-visible,
.projects-dashboard #dashboard-view-toggle-btn:active,
.projects-dashboard #dashboard-view-toggle-btn[aria-expanded="true"] {
    box-shadow: none !important;
    outline: none !important;
}

.projects-dashboard .topbar-actions {
    align-self: flex-start;
    margin-top: 4px;
}

.dashboard-topbar-import-status {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
    height: 40px;
    width: clamp(360px, 30vw, 520px);
    max-width: min(520px, max(280px, calc(100vw - 760px)));
    margin: 0;
    padding: 0 14px;
    border: 1px solid #d6e0eb;
    border-radius: 14px;
    background: #fff;
    color: #657791;
    font-size: 0.76rem;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-import-status-main {
    flex: 0 0 auto;
    color: #152238;
    font-size: 0.88rem;
    font-weight: 400;
}

.dashboard-import-status-detail {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
}

.dashboard-topbar-import-status[hidden] {
    display: none !important;
}

.dashboard-topbar-import-status.is-error {
    color: #c94a4a;
    border-color: #efb7b7;
}

.projects-dashboard .topbar-actions .dashboard-selection-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.projects-dashboard .topbar-actions #dashboard-create-folder-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.projects-dashboard .topbar-actions .dashboard-selection-btn.is-active:not([disabled]) {
    background: #eaf3fd !important;
    border-color: #c6d6e8 !important;
    color: #1f3f5c !important;
}

.projects-dashboard #new-project-name,
.projects-dashboard #new-project-mode-selector .mode-option,
.projects-dashboard #create-project-btn {
    padding: 0 16px;
    height: 40px;
    min-height: 40px;
    font-size: 0.92rem;
    border-radius: 14px;
    line-height: 1;
}

.projects-dashboard #library-create-name,
.projects-dashboard #library-create-mode-selector .mode-option,
.projects-dashboard #library-create-submit {
    padding: 0 16px;
    height: 40px;
    min-height: 40px;
    font-size: 0.92rem;
    border-radius: 14px;
    line-height: 1;
}

.projects-dashboard #new-project-mode-selector .mode-option {
    min-width: 102px;
}

.projects-dashboard #library-create-mode-selector .mode-option {
    min-width: 102px;
    font-weight: 400;
}

.projects-dashboard #library-create-mode-selector .mode-option.active {
    font-weight: 400;
}

.projects-dashboard .dashboard-project-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: nowrap;
}

.projects-dashboard .dashboard-project-panel {
    min-height: 126px;
    display: grid !important;
    gap: 0 !important;
    align-content: center;
}

.projects-dashboard .legacy-project-create-panel {
    display: none !important;
}

.projects-dashboard #project-status {
    display: none !important;
}

.projects-dashboard .dashboard-project-row #new-project-name {
    flex: 0 0 540px;
    min-width: 540px;
}

.projects-dashboard .library-create-dialog-panel .dashboard-project-row #library-create-name {
    flex: 0 0 540px;
    min-width: 540px;
}

.projects-dashboard .dashboard-project-row #create-project-btn {
    background: var(--pin-accent) !important;
    border-color: var(--pin-accent-line) !important;
    color: #fff !important;
}

.projects-dashboard .library-create-dialog-panel .dashboard-project-row #library-create-submit {
    background: var(--pin-accent) !important;
    border-color: var(--pin-accent-line) !important;
    color: #fff !important;
}

.projects-dashboard .dashboard-project-row #create-project-btn:hover,
.projects-dashboard .dashboard-project-row #create-project-btn:focus,
.projects-dashboard .dashboard-project-row #create-project-btn:focus-visible {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.14)),
        linear-gradient(var(--pin-accent), var(--pin-accent)) !important;
    background-blend-mode: multiply !important;
    border-color: var(--pin-accent-line) !important;
    color: #fff !important;
}

.projects-dashboard .library-create-dialog-panel .dashboard-project-row #library-create-submit:hover,
.projects-dashboard .library-create-dialog-panel .dashboard-project-row #library-create-submit:focus,
.projects-dashboard .library-create-dialog-panel .dashboard-project-row #library-create-submit:focus-visible {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.14)),
        linear-gradient(var(--pin-accent), var(--pin-accent)) !important;
    background-blend-mode: multiply !important;
    border-color: var(--pin-accent-line) !important;
    color: #fff !important;
}

.project-create-dialog .dialog-body.preview-only {
    display: block;
}

.project-create-dialog .library-create-dialog-panel {
    margin: 0;
}

.project-create-dialog #library-create-status:empty {
    display: none;
}

.project-header-sticky .topbar-actions .soft-btn,
.project-header-sticky .topbar-actions .bulk-delete-btn {
    padding: 7px 9px;
    min-height: 30px;
    font-size: 0.82rem;
    border-radius: 8px;
    white-space: nowrap;
    flex: 0 0 auto;
    max-width: 100%;
}

.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions .soft-btn,
.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions .soft-btn,
.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions .soft-btn,
.review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions .soft-btn,
.review-admin[data-project-mode="blog"] .project-header-sticky .topbar-actions .soft-btn,
.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions .bulk-delete-btn {
    height: var(--dash-pill-height) !important;
    min-height: var(--dash-pill-height) !important;
    padding: 0 var(--dash-pill-padding-x) !important;
    border-radius: var(--dash-pill-radius) !important;
    font-size: calc(var(--dash-pill-font-size) * 0.9) !important;
    font-family: "Avenir Next", "Segoe UI", sans-serif !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
}

.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #topbar-preview-btn {
    font-family: "Avenir Next", "Segoe UI", sans-serif !important;
    font-size: calc(var(--dash-pill-font-size) * 0.9) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
}

.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #topbar-preview-btn {
    font-family: "Avenir Next", "Segoe UI", sans-serif !important;
    font-size: calc(var(--dash-pill-font-size) * 0.9) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
}

.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions #topbar-preview-btn,
.review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions #topbar-preview-btn {
    font-family: "Avenir Next", "Segoe UI", sans-serif !important;
    font-size: calc(var(--dash-pill-font-size) * 0.9) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
}

.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #view-mode-toggle-btn,
.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #select-all-btn,
.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #selection-mode-btn {
    font-family: "Avenir Next", "Segoe UI", sans-serif !important;
    font-size: calc(var(--dash-pill-font-size) * 0.86) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
}

.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #view-mode-toggle-btn,
.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #select-all-btn,
.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #selection-mode-btn,
.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #show-favorites-btn {
    font-family: "Avenir Next", "Segoe UI", sans-serif !important;
    font-size: calc(var(--dash-pill-font-size) * 0.86) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
}

.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #select-all-btn,
.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #selection-mode-btn {
    display: none !important;
}

.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions #view-mode-toggle-btn,
.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions #select-all-btn,
.review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions #view-mode-toggle-btn,
.review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions #select-all-btn {
    font-family: "Avenir Next", "Segoe UI", sans-serif !important;
    font-size: calc(var(--dash-pill-font-size) * 0.86) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
}

.review-admin[data-project-mode="video"] #select-all-btn.is-active {
    background: #eaf3fd !important;
    border-color: #c6d6e8 !important;
    color: #1f3f5c !important;
}

.review-admin[data-project-mode="photo"] #select-all-btn.is-active {
    background: #eaf3fd !important;
    border-color: #c6d6e8 !important;
    color: #1f3f5c !important;
}

.review-admin[data-project-mode="photo"] #selection-mode-btn.is-active {
    background: #eaf3fd !important;
    border-color: #c6d6e8 !important;
    color: #1f3f5c !important;
}

.review-admin[data-project-mode="video"] #selection-mode-btn.is-active {
    background: #eaf3fd !important;
    border-color: #c6d6e8 !important;
    color: #1f3f5c !important;
}

.review-admin[data-project-mode="video"] #view-mode-toggle-btn.is-active,
.review-admin[data-project-mode="photo"] #view-mode-toggle-btn.is-active {
    background: #eaf3fd !important;
    border-color: #c6d6e8 !important;
    color: #1f3f5c !important;
}

.review-admin[data-project-mode="video"] #share-client-btn.is-active {
    background: #eaf3fd !important;
    border-color: #c6d6e8 !important;
    color: #1f3f5c !important;
}

.review-admin[data-project-mode="video"] #clear-selection-btn.is-active {
    background: #eaf3fd !important;
    border-color: #c6d6e8 !important;
    color: #1f3f5c !important;
}

.review-admin[data-project-mode="photo"] #share-client-btn.is-active {
    background: #eaf3fd !important;
    border-color: #c6d6e8 !important;
    color: #1f3f5c !important;
}

.review-admin[data-project-mode="files"] #share-client-btn.is-active,
.review-admin[data-project-mode="audio"] #share-client-btn.is-active {
    background: #eaf3fd !important;
    border-color: #c6d6e8 !important;
    color: #1f3f5c !important;
}

.review-admin[data-project-mode="audio"] #create-mix-btn.is-active {
    background: #eaf3fd !important;
    border-color: #c6d6e8 !important;
    color: #1f3f5c !important;
}

.review-admin[data-project-mode="audio"] .video-grid .clip-card.audio-row.is-playing {
    border-color: #ccd8e6;
    background: #f8fbff;
}

.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions .soft-btn:hover,
.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions .soft-btn:focus,
.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions .soft-btn:focus-visible,
.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions .soft-btn:active,
.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions .bulk-delete-btn:hover,
.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions .bulk-delete-btn:focus,
.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions .bulk-delete-btn:focus-visible,
.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions .soft-btn:hover,
.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions .soft-btn:focus,
.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions .soft-btn:focus-visible,
.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions .soft-btn:active,
.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions .soft-btn:hover,
.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions .soft-btn:focus,
.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions .soft-btn:focus-visible,
.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions .soft-btn:active,
.review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions .soft-btn:hover,
.review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions .soft-btn:focus,
.review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions .soft-btn:focus-visible,
.review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions .soft-btn:active,
.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions .bulk-delete-btn:active {
    box-shadow: none !important;
    outline: none !important;
}

.dashboard-return-btn {
    background: #fff !important;
    border-color: var(--line) !important;
    color: var(--ink) !important;
    gap: 10px;
}

.dashboard-return-btn:hover,
.dashboard-return-btn:focus,
.dashboard-return-btn:focus-visible {
    background: #edf4fb !important;
    border-color: #c6d6e8 !important;
    color: #1f3f5c !important;
}

.dashboard-return-indicator {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #e33636;
    display: inline-block;
    flex: 0 0 auto;
}

.dashboard-return-main {
    font-weight: 400;
}

.dashboard-return-divider {
    color: #6f869d;
    margin: 0 -2px 0 -4px;
    font-weight: 400;
}

.dashboard-return-projects {
    font-weight: 700;
}

.review-admin #share-client-btn.is-shared {
    gap: 6px;
    font-weight: 400;
}

.review-admin #share-client-btn .share-client-shared-word {
    font-weight: 400;
}

.review-admin #share-client-btn .share-client-shared-d {
    color: #e33636;
    font-weight: 400;
}

.review-admin #share-client-btn .share-client-shared-count {
    font-weight: 400;
}

.review-admin[data-project-mode="video"] .topbar-actions {
    align-self: flex-start;
    margin-top: 4px;
}

.review-admin[data-project-mode="photo"] .topbar-actions {
    align-self: flex-start;
    margin-top: 4px;
}

.review-admin[data-project-mode="files"] .topbar-actions,
.review-admin[data-project-mode="audio"] .topbar-actions {
    align-self: flex-start;
    margin-top: 4px;
}

/* Keep Files-mode CTA ordering stable so Preview stays next to menu/dashboard */
.review-admin[data-project-mode="files"] .topbar-actions #dropzone.topbar-upload-dropzone.files-upload-dropzone { order: 10; }
.review-admin[data-project-mode="files"] .topbar-actions #bulk-delete-btn { order: 50; margin-left: auto; }
.review-admin[data-project-mode="files"] .topbar-actions #clear-selection-btn { order: 60; }
.review-admin[data-project-mode="files"] .topbar-actions #create-add-library-btn { order: 70; }
.review-admin[data-project-mode="files"] .topbar-actions #create-library-btn { order: 71; display: none !important; }
.review-admin[data-project-mode="files"] .topbar-actions #add-to-library-btn { order: 72; display: none !important; }
.review-admin[data-project-mode="files"] .topbar-actions .upload-activity { order: 74; }
.review-admin[data-project-mode="files"] .topbar-actions #topbar-new-folder-btn { order: 75; }
.review-admin[data-project-mode="files"] .topbar-actions #files-sync-goodybag-btn { order: 80; }
.review-admin[data-project-mode="files"] .topbar-actions #topbar-preview-btn { order: 80; }
.review-admin[data-project-mode="files"] .topbar-actions #share-client-btn { order: 85; }
.review-admin[data-project-mode="files"] .topbar-actions .sync-menu { order: 90; }
.review-admin[data-project-mode="files"] .topbar-actions .dashboard-return-btn { order: 100; }

/* Keep Video-mode CTA ordering stable */
.review-admin[data-project-mode="video"] .topbar-actions #bulk-delete-btn { order: 44; }
.review-admin[data-project-mode="video"] .topbar-actions #clear-selection-btn { order: 45; }
.review-admin[data-project-mode="video"] .topbar-actions #dropzone.topbar-upload-dropzone { order: 10; }
.review-admin[data-project-mode="video"] .topbar-actions .upload-activity { order: 49; }
.review-admin[data-project-mode="video"] .topbar-actions #add-layout-spacer-btn { order: 50; margin-left: auto; }
.review-admin[data-project-mode="video"] .topbar-actions #topbar-preview-btn { order: 54; margin-left: 0; }
.review-admin[data-project-mode="video"] .topbar-actions #share-client-btn { order: 55; }
.review-admin[data-project-mode="video"] .topbar-actions .view-topbar-menu { order: 60; }
.review-admin[data-project-mode="video"] .topbar-actions .sync-menu { order: 68; }
.review-admin[data-project-mode="video"] .topbar-actions .dashboard-return-btn { order: 70; }
.review-admin[data-project-mode="video"] .topbar-actions .view-topbar-menu {
    display: none !important;
    margin-left: 0;
}
.review-admin[data-project-mode="video"] .topbar-actions .sync-status-wrap {
    order: 11;
    margin-left: 6px;
    margin-right: 0;
    align-self: center;
}

/* Keep Photo-mode CTA ordering stable */
.review-admin[data-project-mode="photo"] .topbar-actions #bulk-delete-btn { order: 44; }
.review-admin[data-project-mode="photo"] .topbar-actions #dropzone.topbar-upload-dropzone { order: 10; }
.review-admin[data-project-mode="photo"] .topbar-actions #show-favorites-btn { order: 58; }
.review-admin[data-project-mode="photo"] .topbar-actions #topbar-preview-btn { order: 60; margin-left: auto; }
.review-admin[data-project-mode="photo"] .topbar-actions .upload-activity { order: 65; margin-left: auto; }
.review-admin[data-project-mode="photo"] .topbar-actions #share-client-btn { order: 66; margin-left: 0; }
.review-admin[data-project-mode="photo"] .topbar-actions .sync-menu { order: 68; }
.review-admin[data-project-mode="photo"] .topbar-actions .dashboard-return-btn { order: 70; }
.review-admin[data-project-mode="photo"] .topbar-actions .view-topbar-menu {
    display: none !important;
    margin-left: 0;
}

/* Keep Audio-mode CTA ordering stable (same pattern as video/files flow) */
.review-admin[data-project-mode="audio"] .topbar-actions #bulk-delete-btn { order: 44; }
.review-admin[data-project-mode="audio"] .topbar-actions #dropzone.topbar-upload-dropzone { order: 10; }
.review-admin[data-project-mode="audio"] .topbar-actions .upload-activity { order: 59; }
.review-admin[data-project-mode="audio"] .topbar-actions .audio-editor-playback-controls { order: 60; }
.review-admin[data-project-mode="audio"] .topbar-actions .playlist-topbar-menu { order: 61; }
.review-admin[data-project-mode="audio"] .topbar-actions #topbar-preview-btn { order: 70; }
.review-admin[data-project-mode="audio"] .topbar-actions #share-client-btn { order: 75; }
.review-admin[data-project-mode="audio"] .topbar-actions .sync-menu { order: 80; }
.review-admin[data-project-mode="audio"] .topbar-actions .dashboard-return-btn { order: 90; }
.review-admin[data-project-mode="audio"] .topbar-actions .view-topbar-menu {
    display: none !important;
}

.review-admin[data-project-mode="audio"] .topbar {
    align-items: stretch;
}

.review-admin[data-project-mode="audio"] .topbar-actions {
    width: 100%;
    flex: 1 1 100%;
    flex-wrap: nowrap;
    align-items: center;
    margin-left: 0;
    min-width: 0;
}

.review-admin[data-project-mode="audio"] .topbar-actions .upload-activity,
.review-admin[data-project-mode="audio"] .topbar-actions .audio-editor-playback-controls,
.review-admin[data-project-mode="audio"] .topbar-actions .playlist-topbar-menu,
.review-admin[data-project-mode="audio"] .topbar-actions #share-client-btn,
.review-admin[data-project-mode="audio"] .topbar-actions .sync-menu,
.review-admin[data-project-mode="audio"] .topbar-actions .dashboard-return-btn {
    flex: 0 0 auto;
}

.review-admin[data-project-mode="blog"] .topbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
}

.review-admin[data-project-mode="blog"] .topbar .project-title-meta-row {
    width: 100%;
    min-width: 0;
}

.review-admin[data-project-mode="blog"] .topbar-actions {
    width: 100%;
    justify-content: flex-start;
    align-self: stretch;
    margin-top: 0;
    flex-wrap: nowrap;
}

.review-admin[data-project-mode="blog"] .topbar-actions #blog-public-link { order: 50; margin-left: auto; }
.review-admin[data-project-mode="blog"] .topbar-actions #blog-share-btn { order: 55; }
.review-admin[data-project-mode="blog"] .topbar-actions #blog-logo-toggle-btn { order: 58; }
.review-admin[data-project-mode="blog"] .topbar-actions .sync-menu { order: 60; }
.review-admin[data-project-mode="blog"] .topbar-actions .dashboard-return-btn { order: 65; }

.review-admin[data-project-mode="video"].video-selection-active .topbar-actions #dropzone.topbar-upload-dropzone {
    display: none !important;
}

.review-admin[data-project-mode="video"].video-selection-active .topbar-actions #bulk-delete-btn {
    order: 5;
    margin-right: auto;
}

.review-admin[data-project-mode="video"].video-selection-active .topbar-actions #clear-selection-btn {
    order: 6;
    margin-right: 0;
}

.review-admin[data-project-mode="photo"].photo-selection-active .topbar-actions #dropzone.topbar-upload-dropzone {
    display: none !important;
}

.review-admin[data-project-mode="photo"].photo-selection-active .topbar-actions #bulk-delete-btn {
    order: 5;
    margin-right: auto;
}

.review-admin[data-project-mode="audio"].audio-selection-active .topbar-actions #dropzone.topbar-upload-dropzone {
    display: none !important;
}

.review-admin[data-project-mode="audio"].audio-selection-active .topbar-actions #bulk-delete-btn {
    order: 5;
    margin-right: auto;
}

.review-admin[data-project-mode="files"].files-selection-active .topbar-actions #dropzone.topbar-upload-dropzone.files-upload-dropzone {
    display: none !important;
}

.review-admin[data-project-mode="files"].files-selection-active .topbar-actions #bulk-delete-btn {
    order: 5;
    margin-left: 0;
}

.review-admin[data-project-mode="files"].files-selection-active .topbar-actions #clear-selection-btn {
    order: 6;
    margin-right: auto;
}

html[data-theme="dark"] .sync-status-popover {
    background: #172636;
    border-color: #2e4259;
}

html[data-theme="dark"] .sync-status-popover-peer {
    color: #dfeaf5;
}

html[data-theme="dark"] .sync-status-popover-state {
    color: #a9bfd4;
}

.upload-activity {
    --upload-activity-accent-rgb: 126, 161, 200;
    position: relative;
    display: inline-flex;
    align-items: center;
}

.projects-dashboard .folder-preview {
    position: relative;
}

.projects-dashboard .upload-activity.upload-activity-in-card {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    z-index: 5;
    pointer-events: none;
}

.projects-dashboard .upload-activity.upload-activity-in-card .upload-activity-chip {
    pointer-events: auto;
    box-shadow: none;
    background: rgba(248, 250, 253, 0.96);
    border-color: #cfdaea;
}

body[data-project-mode="video"] .upload-activity {
    --upload-activity-accent-rgb: 126, 161, 200;
}

body[data-project-mode="photo"] .upload-activity {
    --upload-activity-accent-rgb: 177, 208, 156;
}

body[data-project-mode="files"] .upload-activity {
    --upload-activity-accent-rgb: 224, 189, 83;
}

body[data-project-mode="audio"] .upload-activity {
    --upload-activity-accent-rgb: 193, 145, 206;
}

.upload-activity[hidden] {
    display: none !important;
}

.upload-activity-chip {
    min-height: 36px;
    padding: 7px 10px;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 400;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    color: #41556d;
    background: #f8fafd;
    border-color: #d6e0eb;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.upload-activity-chip[hidden] {
    display: none !important;
}

.upload-activity-chip:hover {
    background: #eef3f9;
}

.upload-activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgb(var(--upload-activity-accent-rgb));
    box-shadow: 0 0 0 0 rgba(var(--upload-activity-accent-rgb), 0.5);
    animation: upload-activity-pulse 1.8s ease-out infinite;
}

.upload-activity-label {
    white-space: nowrap;
    position: relative;
    z-index: 2;
    color: #41556d;
    font: 400 0.82rem/1 "Avenir Next", "Segoe UI", sans-serif;
}

.upload-activity-counter {
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
    white-space: nowrap;
    position: relative;
    z-index: 2;
    color: #5a6f86;
    font: 400 0.82rem/1 "Avenir Next", "Segoe UI", sans-serif;
}

.upload-activity-counter-current {
    font-weight: 400 !important;
    color: #5a6f86;
}

.upload-activity-counter-sep,
.upload-activity-counter-total {
    color: #5a6f86;
}

.upload-activity-counter-sep {
    font-weight: 400;
}

.upload-activity-counter-total {
    font-weight: 600 !important;
    color: #364c66;
}

.projects-dashboard .folder-preview.upload-activity-active .folder-preview-empty {
    opacity: 0;
    visibility: hidden;
}

.upload-activity-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0%;
    border-radius: 0 0 999px 999px;
    background: rgba(var(--upload-activity-accent-rgb), 0.9);
    transition: width 160ms linear;
    z-index: 1;
}

.upload-activity-chip.is-progress-indeterminate .upload-activity-progress {
    animation: upload-activity-progress-sweep 1.2s ease-in-out infinite;
}

.upload-activity-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 28;
    width: min(340px, 86vw);
    border: 1px solid #d6e0eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(18, 32, 47, 0.14);
    padding: 10px;
}

.upload-activity-popover-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 8px;
}

.upload-activity-title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #41556d;
    letter-spacing: 0.01em;
}

.upload-activity-popover-cancel {
    min-width: 0;
    height: 22px;
    min-height: 22px;
    padding: 0 9px;
    border-radius: 9px;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: 0.66rem;
    font-weight: 400;
    line-height: 1;
    color: #3f536a;
    border-color: #d6e0eb;
    background: #f8fafd;
}

.upload-activity-popover-cancel:hover,
.upload-activity-popover-cancel:focus,
.upload-activity-popover-cancel:focus-visible {
    background: #eef3f9;
    color: #374b62;
}

.upload-activity-list {
    display: grid;
    gap: 7px;
}

.upload-activity-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border: 1px solid #e5edf6;
    border-radius: 10px;
    padding: 7px 8px;
    background: #fafcff;
}

.upload-activity-meta {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.upload-activity-project {
    font-size: 0.73rem;
    color: #6a7f95;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-activity-file {
    font-size: 0.8rem;
    color: #1d2f42;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-activity-stats {
    display: grid;
    justify-items: end;
    gap: 2px;
    font-size: 0.72rem;
    color: #61778f;
    white-space: nowrap;
}

@keyframes upload-activity-pulse {
    0% { box-shadow: 0 0 0 0 rgba(var(--upload-activity-accent-rgb), 0.45); }
    70% { box-shadow: 0 0 0 6px rgba(var(--upload-activity-accent-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--upload-activity-accent-rgb), 0); }
}

@keyframes upload-activity-progress-sweep {
    0% { transform: translateX(-65%); width: 22%; }
    50% { transform: translateX(170%); width: 34%; }
    100% { transform: translateX(-65%); width: 22%; }
}

h1 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--ink);
}

.brand-logo {
    display: block;
    width: auto;
    height: 46px;
    object-fit: contain;
}

.dashboard-brand-title-row {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 0 1 auto;
}

.dashboard-brand-title-row .brand-logo {
    flex: 0 0 auto;
}

.dashboard-title-divider {
    width: 1px;
    height: 32px;
    background: #6f869d;
    flex: 0 0 auto;
}

.dashboard-title-label {
    color: #2f4760;
    font-size: clamp(0.932rem, 1.701vw, 1.175rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0;
    white-space: nowrap;
}

.projects-dashboard .share-details h2,
.projects-dashboard .library-head h2,
.projects-dashboard .folder-meta h3 {
    font-size: 1.15rem;
    line-height: 1.2;
}

.projects-dashboard .project-folders-section {
    margin-top: 0;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: visible;
    padding-bottom: 24px;
}

.projects-dashboard .project-folders-section:has(.library-tabs-section.is-expanded) {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 0;
}

.projects-dashboard .project-folders-section:has(.library-tabs-section.is-expanded) .project-folders-spacer {
    flex: 0 0 auto;
}

.projects-dashboard .project-folders-section:has(.library-tabs-section.is-expanded) #project-grid {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
}

.projects-dashboard .project-folders-spacer {
    min-height: 18px;
    margin-bottom: 0;
}

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

.project-title-row {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    margin: 6px 0 18px;
}

.project-subtitle-row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    margin: -8px 0 18px;
}

.project-subtitle-text {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--muted);
    min-height: 1.2em;
}

.project-subtitle-text.is-placeholder {
    opacity: 0.75;
    font-style: normal;
}

.project-title-meta-row {
    display: flex;
    width: 100%;
}

.review-admin[data-project-mode="photo"] .project-subtitle-row {
    width: auto;
    margin: 0;
    margin-left: auto;
    justify-content: flex-end;
    text-align: right;
    gap: 6px;
    flex-wrap: nowrap;
    min-width: 0;
}

.review-admin[data-project-mode="photo"] .project-subtitle-text {
    font-size: calc(var(--dash-pill-font-size) * 0.95);
    font-weight: 400;
    color: var(--muted);
    line-height: 1;
    white-space: nowrap;
}

.review-admin[data-project-mode="photo"] .project-subtitle-text.is-placeholder {
    opacity: 1;
}

#app-subtitle-input {
    min-width: 300px;
}

#app-title-input {
    min-width: 240px;
}

.title-edit-btn {
    flex: 0 0 auto;
}

h2 {
    margin: 0 0 12px;
    font-size: 1.15rem;
}

p {
    color: var(--muted);
    margin: 6px 0 0;
}

input[type="text"],
input[type="password"],
select,
textarea,
button {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
}

.projects-dashboard .share-details select[name="language"] {
    -webkit-appearance: none;
    appearance: none;
    padding-left: 16px;
    padding-right: 46px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23242a31' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px 16px;
}

.auth-card {
    width: min(420px, 94vw);
    margin: 80px auto;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
}

.dashboard-login-brand {
    width: 100%;
    justify-content: center;
    margin-bottom: 18px;
}

.dashboard-login-brand .brand-logo {
    height: 41px;
}

.dashboard-login-brand .dashboard-title-divider {
    height: 29px;
}

.dashboard-login-brand .dashboard-title-label {
    font-size: 1.3rem;
    line-height: 1;
}

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

button {
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    border: 0;
    cursor: pointer;
}

button:hover {
    background: var(--accent-ink);
}

.projects-dashboard input[type="text"]:focus,
.projects-dashboard input[type="password"]:focus,
.projects-dashboard select:focus,
.projects-dashboard textarea:focus,
.review-admin input[type="text"]:focus,
.review-admin input[type="password"]:focus,
.review-admin select:focus,
.review-admin textarea:focus {
    outline: none;
    border-color: #bcc9d8;
    box-shadow: 0 0 0 2px rgba(188, 201, 216, 0.3);
}

.projects-dashboard button:focus,
.projects-dashboard .soft-btn:focus,
.projects-dashboard a.soft-btn:focus,
.projects-dashboard button:focus-visible,
.projects-dashboard .soft-btn:focus-visible,
.projects-dashboard a.soft-btn:focus-visible,
.review-admin button:focus,
.review-admin .soft-btn:focus,
.review-admin a.soft-btn:focus,
.review-admin button:focus-visible,
.review-admin .soft-btn:focus-visible,
.review-admin a.soft-btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}

button.tiny {
    font-size: 0.78rem;
    padding: 6px 8px;
    border-radius: 8px;
}

.soft-btn.tiny {
    font-size: 0.78rem;
    padding: 6px 8px;
    border-radius: 8px;
    font-weight: 500;
}

button.danger {
    color: var(--danger);
    border-color: #e8b8b8;
}

button.danger:hover {
    background: var(--danger-ink);
    color: #fff;
    border-color: var(--danger-ink);
}

.soft-btn.danger {
    color: var(--danger);
    border-color: #e8b8b8;
}

.soft-btn.danger:hover {
    background: #e07b7b;
    color: #fff;
    border-color: #e07b7b;
}

.soft-btn.danger:focus,
.soft-btn.danger:focus-visible,
.soft-btn.danger:active {
    background: #e07b7b;
    color: #fff;
    border-color: #e07b7b;
}

.confirm-dialog {
    border: 0;
    border-radius: 18px;
    padding: 0;
    width: min(460px, calc(100vw - 32px));
    box-shadow: 0 22px 60px rgba(18, 32, 47, 0.28);
}

.confirm-dialog::backdrop {
    background: rgba(18, 32, 47, 0.28);
}

.confirm-dialog-body {
    padding: 24px;
    display: grid;
    gap: 18px;
}

.confirm-dialog-message {
    margin: 0;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.45;
}

.confirm-dialog-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.confirm-dialog-checkbox {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.35;
    user-select: none;
}

.confirm-dialog-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #4d6988;
}

.confirm-dialog-input-label {
    display: grid;
    gap: 8px;
    font-size: 1rem;
    color: var(--ink);
    font-weight: 500;
}

.confirm-dialog-input {
    width: 100%;
    min-height: 40px;
    border: 1px solid #c7d4e3;
    border-radius: 10px;
    padding: 8px 12px;
    font: inherit;
    color: var(--ink);
    background: #fff;
}

.dashboard-media-export-selection {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.dashboard-media-export-option {
    min-height: 40px;
    border-radius: 12px;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0 10px;
    background: #fff;
    color: #243b53;
    border-color: #c7d4e3;
}

.dashboard-media-export-option:hover,
.dashboard-media-export-option:focus,
.dashboard-media-export-option:focus-visible {
    background: #fff;
    color: #243b53;
    border-color: #c7d4e3;
}

.dashboard-media-export-option.is-active,
.dashboard-media-export-option[aria-pressed="true"] {
    background: #dbe8f7;
    border-color: #b9cee5;
    color: #1f3f5c;
}

.dashboard-media-export-option.is-active:hover,
.dashboard-media-export-option[aria-pressed="true"]:hover,
.dashboard-media-export-option.is-active:focus,
.dashboard-media-export-option[aria-pressed="true"]:focus,
.dashboard-media-export-option.is-active:focus-visible,
.dashboard-media-export-option[aria-pressed="true"]:focus-visible {
    background: #dbe8f7;
    border-color: #b9cee5;
    color: #1f3f5c;
}

@media (max-width: 900px) {
    .dashboard-media-export-selection {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.confirm-dialog-input:focus,
.confirm-dialog-input:focus-visible {
    outline: none;
    border-color: #bcc9d8;
    box-shadow: 0 0 0 2px rgba(188, 201, 216, 0.3);
}

.icon-btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #2c4b66;
    border: 1px solid #ccdae8;
    border-radius: 8px;
    padding: 0;
}

.project-title-row .title-edit-btn {
    width: 22px;
    height: 22px;
    border-radius: 7px;
}

.project-title-row .title-edit-btn svg,
.project-subtitle-row .title-edit-btn svg {
    width: 10px;
    height: 10px;
}

.project-subtitle-row .title-edit-btn {
    width: 22px;
    height: 22px;
    border-radius: 7px;
}

.icon-btn:hover {
    background: #edf4fb;
}

.soft-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 10px;
    font: inherit;
    text-decoration: none;
    line-height: 1.2;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    font-weight: 500;
    white-space: nowrap;
}

.soft-btn:hover {
    background: #edf4fb;
    color: var(--ink);
    border-color: #c6d6e8;
}

.projects-dashboard .install-logo-upload-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.projects-dashboard .install-logo-inline-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.projects-dashboard .install-logo-template-preview {
    display: block;
    max-width: 130px;
    width: 100%;
    height: auto;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    background: #fff;
}

.projects-dashboard .install-logo-card,
.projects-dashboard .install-url-card {
    display: grid;
    justify-items: center;
    text-align: center;
}

.projects-dashboard .install-url-confirm-row {
    justify-content: center;
}

.projects-dashboard .install-modules-card {
    display: grid;
    gap: 8px;
    justify-items: center;
    text-align: center;
}

.projects-dashboard .install-modules-copy,
.projects-dashboard .install-modules-note,
.projects-dashboard .install-logo-note,
.projects-dashboard .install-browser-note {
    margin: 0;
    color: #63748f;
    line-height: 1.35;
}

.projects-dashboard .install-module-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
}

.projects-dashboard .install-module-toggle {
    gap: 8px;
    min-height: 34px;
    padding: 7px 10px;
    font-size: 0.8em;
    font-weight: 500;
    cursor: pointer;
}

.projects-dashboard .install-module-toggle input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.projects-dashboard .install-logo-upload-picker {
    padding: 8px 10px;
    font-size: 0.8em;
    cursor: pointer;
}

.projects-dashboard .install-logo-file-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    padding: 0 !important;
    margin: -1px !important;
}

.dropzone {
    margin-bottom: 16px;
    border: 1px dashed #b7c8da;
    border-radius: 12px;
    background: #fff;
    padding: 32px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.18s ease;
}

.dropzone .dropzone-subcopy {
    margin-top: 8px;
    font-size: 0.82rem;
    line-height: 1.35;
}

.files-dropzone-row {
    display: block;
    margin-bottom: 16px;
}

.preview-page .client-files-dropzone-row--preview {
    position: sticky;
    top: var(--preview-topbar-sticky-height, 60px);
    z-index: 118;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    width: 100vw;
    margin: 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-top: 6px;
    padding-bottom: 8px;
    padding-left: var(--preview-inline-gap, max(24px, calc((100vw - min(1200px, 94vw)) / 2)));
    padding-right: var(--preview-inline-gap, max(24px, calc((100vw - min(1200px, 94vw)) / 2)));
    background: #ffffff;
    border-bottom: 1px solid #d7e0ea;
}

.preview-page.files-mode .client-files-dropzone-row--preview {
    padding-top: 3px;
    padding-bottom: 16px;
}

.review-client.preview-page.embedded-client-view[data-project-mode="files"][data-embed-project-header="1"] .client-files-dropzone-row--preview {
    --preview-inline-gap: max(24px, calc((100vw - min(1200px, 94vw)) / 2));
    position: static;
    display: block;
    width: 100%;
    margin: 0;
    padding: 6px 0 20px;
    background: transparent;
    border-bottom: 0;
}

.preview-page.audio-mode .client-audio-dropzone-row {
    --preview-inline-gap: max(16px, calc((100vw - min(900px, 70.5vw)) / 2));
    display: block;
    padding-top: 6px;
    padding-bottom: 20px;
}

.review-client[data-project-mode="video"] .client-video-dropzone-row,
.review-client[data-project-mode="files"] .client-video-dropzone-row,
.review-client[data-project-mode="photo"] .client-photo-dropzone-row {
    --preview-inline-gap: max(24px, calc((100vw - min(1200px, 94vw)) / 2));
    display: block;
    padding-top: 6px;
    padding-bottom: 20px;
}

.preview-page .client-files-dropzone-row--preview #dropzone.topbar-upload-dropzone.files-upload-dropzone {
    grid-column: 1 / span 2;
    width: 100%;
}

.review-client.preview-page.embedded-client-view[data-project-mode="files"][data-embed-project-header="1"] .client-files-dropzone-row--preview #dropzone.topbar-upload-dropzone.files-upload-dropzone {
    grid-column: auto;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 53px;
    min-height: 53px;
    margin: 0;
    padding: 0 var(--dash-pill-padding-x);
    border-radius: 14px;
    border: 1px dashed #c6d6e8;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
}

.preview-page.audio-mode .client-audio-dropzone-row #dropzone.topbar-upload-dropzone.audio-upload-dropzone {
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0 var(--dash-pill-padding-x);
    height: 53px;
    min-height: 53px;
    border-radius: 14px;
    border: 1px dashed #c6d6e8;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
}

.review-client[data-project-mode="video"] .client-video-dropzone-row #dropzone.topbar-upload-dropzone.video-upload-dropzone,
.review-client[data-project-mode="files"] .client-video-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone,
.review-client[data-project-mode="photo"] .client-photo-dropzone-row #dropzone.topbar-upload-dropzone.photo-upload-dropzone {
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0 var(--dash-pill-padding-x);
    height: 53px;
    min-height: 53px;
    border-radius: 14px;
    border: 1px dashed #c6d6e8;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
}

.preview-page.audio-mode .client-audio-dropzone-row #dropzone.topbar-upload-dropzone.audio-upload-dropzone > p {
    margin: 0;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: calc(var(--dash-pill-font-size) * 0.95);
    font-weight: 400;
    line-height: 1;
    color: var(--muted);
    white-space: nowrap;
}

.review-client[data-project-mode="video"] .client-video-dropzone-row #dropzone.topbar-upload-dropzone.video-upload-dropzone > p,
.review-client[data-project-mode="files"] .client-video-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone > p,
.review-client[data-project-mode="photo"] .client-photo-dropzone-row #dropzone.topbar-upload-dropzone.photo-upload-dropzone > p {
    margin: 0;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: calc(var(--dash-pill-font-size) * 0.95);
    font-weight: 400;
    line-height: 1;
    color: var(--muted);
    white-space: nowrap;
}

.review-client.preview-page.embedded-client-view[data-project-mode="files"][data-embed-project-header="1"] .client-files-dropzone-row--preview #dropzone.topbar-upload-dropzone.files-upload-dropzone > p {
    margin: 0;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: calc(var(--dash-pill-font-size) * 0.95);
    font-weight: 400;
    line-height: 1;
    color: var(--muted);
    white-space: nowrap;
}

.preview-page.audio-mode .client-audio-dropzone-row #dropzone.topbar-upload-dropzone.audio-upload-dropzone:hover,
.preview-page.audio-mode .client-audio-dropzone-row #dropzone.topbar-upload-dropzone.audio-upload-dropzone:focus,
.preview-page.audio-mode .client-audio-dropzone-row #dropzone.topbar-upload-dropzone.audio-upload-dropzone:focus-visible,
.preview-page.audio-mode .client-audio-dropzone-row #dropzone.topbar-upload-dropzone.audio-upload-dropzone.active,
.preview-page.audio-mode .client-audio-dropzone-row #dropzone.topbar-upload-dropzone.audio-upload-dropzone.upload-drop-target {
    background: #ffffff;
    border-color: #c6d6e8;
    box-shadow: none;
    outline: none;
}

.review-client[data-project-mode="video"] .client-video-dropzone-row #dropzone.topbar-upload-dropzone.video-upload-dropzone:hover,
.review-client[data-project-mode="video"] .client-video-dropzone-row #dropzone.topbar-upload-dropzone.video-upload-dropzone:focus,
.review-client[data-project-mode="video"] .client-video-dropzone-row #dropzone.topbar-upload-dropzone.video-upload-dropzone:focus-visible,
.review-client[data-project-mode="video"] .client-video-dropzone-row #dropzone.topbar-upload-dropzone.video-upload-dropzone.active,
.review-client[data-project-mode="video"] .client-video-dropzone-row #dropzone.topbar-upload-dropzone.video-upload-dropzone.upload-drop-target,
.review-client[data-project-mode="files"] .client-video-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone:hover,
.review-client[data-project-mode="files"] .client-video-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone:focus,
.review-client[data-project-mode="files"] .client-video-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone:focus-visible,
.review-client[data-project-mode="files"] .client-video-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone.active,
.review-client[data-project-mode="files"] .client-video-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone.upload-drop-target,
.review-client[data-project-mode="photo"] .client-photo-dropzone-row #dropzone.topbar-upload-dropzone.photo-upload-dropzone:hover,
.review-client[data-project-mode="photo"] .client-photo-dropzone-row #dropzone.topbar-upload-dropzone.photo-upload-dropzone:focus,
.review-client[data-project-mode="photo"] .client-photo-dropzone-row #dropzone.topbar-upload-dropzone.photo-upload-dropzone:focus-visible,
.review-client[data-project-mode="photo"] .client-photo-dropzone-row #dropzone.topbar-upload-dropzone.photo-upload-dropzone.active,
.review-client[data-project-mode="photo"] .client-photo-dropzone-row #dropzone.topbar-upload-dropzone.photo-upload-dropzone.upload-drop-target {
    background: #ffffff;
    border-color: #c6d6e8;
    box-shadow: none;
    outline: none;
}

.review-client.preview-page.embedded-client-view[data-project-mode="files"][data-embed-project-header="1"] .client-files-dropzone-row--preview #dropzone.topbar-upload-dropzone.files-upload-dropzone:hover,
.review-client.preview-page.embedded-client-view[data-project-mode="files"][data-embed-project-header="1"] .client-files-dropzone-row--preview #dropzone.topbar-upload-dropzone.files-upload-dropzone:focus,
.review-client.preview-page.embedded-client-view[data-project-mode="files"][data-embed-project-header="1"] .client-files-dropzone-row--preview #dropzone.topbar-upload-dropzone.files-upload-dropzone:focus-visible,
.review-client.preview-page.embedded-client-view[data-project-mode="files"][data-embed-project-header="1"] .client-files-dropzone-row--preview #dropzone.topbar-upload-dropzone.files-upload-dropzone.active,
.review-client.preview-page.embedded-client-view[data-project-mode="files"][data-embed-project-header="1"] .client-files-dropzone-row--preview #dropzone.topbar-upload-dropzone.files-upload-dropzone.upload-drop-target {
    background: #ffffff;
    border-color: #c6d6e8;
    box-shadow: none;
    outline: none;
}

.preview-page.audio-mode .client-audio-dropzone-row #dropzone.topbar-upload-dropzone.audio-upload-dropzone.is-inline-upload-active {
    justify-content: flex-start;
    overflow: hidden;
    background: #ffffff !important;
    border-color: #c6d6e8 !important;
}

.review-client[data-project-mode="video"] .client-video-dropzone-row #dropzone.topbar-upload-dropzone.video-upload-dropzone.is-inline-upload-active,
.review-client[data-project-mode="files"] .client-video-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone.is-inline-upload-active,
.review-client[data-project-mode="photo"] .client-photo-dropzone-row #dropzone.topbar-upload-dropzone.photo-upload-dropzone.is-inline-upload-active {
    justify-content: flex-start;
    overflow: hidden;
    background: #ffffff !important;
    border-color: #c6d6e8 !important;
}

.review-client.preview-page.embedded-client-view[data-project-mode="files"][data-embed-project-header="1"] .client-files-dropzone-row--preview #dropzone.topbar-upload-dropzone.files-upload-dropzone.is-inline-upload-active {
    justify-content: flex-start;
    overflow: hidden;
    background: #ffffff !important;
    border-color: #c6d6e8 !important;
}

.review-client #dropzone.dropzone.upload-drop-target:not(.is-inline-upload-active) {
    position: relative;
    overflow: hidden;
    background: #f7fbff !important;
    border-color: rgba(143, 181, 222, 0.72) !important;
    box-shadow: none !important;
    outline: none;
}

.review-client #dropzone.dropzone.upload-drop-target:not(.is-inline-upload-active) > p,
.review-client #dropzone.dropzone.upload-drop-target:not(.is-inline-upload-active) #selected-files {
    opacity: 0;
}

.review-client #dropzone.dropzone.upload-drop-target:not(.is-inline-upload-active)::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 10px;
    border: 1px solid rgba(143, 181, 222, 0.6);
    background: #ffffff;
    pointer-events: none;
    z-index: 4;
}

.review-client #dropzone.dropzone.upload-drop-target:not(.is-inline-upload-active)::after {
    content: attr(data-drop-label);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    padding: 0;
    border: 0;
    background: transparent;
    color: #4c6786;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    pointer-events: none;
}

.review-client[data-project-mode="audio"] .client-audio-dropzone-row #dropzone.topbar-upload-dropzone.audio-upload-dropzone .video-inline-upload {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    pointer-events: none;
    z-index: 0;
}

.review-client[data-project-mode="video"] .client-video-dropzone-row #dropzone.topbar-upload-dropzone.video-upload-dropzone .video-inline-upload,
.review-client[data-project-mode="photo"] .client-photo-dropzone-row #dropzone.topbar-upload-dropzone.photo-upload-dropzone .video-inline-upload {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    pointer-events: none;
    z-index: 0;
}

.review-client[data-project-mode="audio"] .client-audio-dropzone-row #dropzone.topbar-upload-dropzone.audio-upload-dropzone .video-inline-upload-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto auto auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin: 0;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: calc(var(--dash-pill-font-size) * 0.95);
    font-weight: 400;
    line-height: 1;
    color: var(--ink);
    position: relative;
    z-index: 2;
}

.review-client[data-project-mode="video"] .client-video-dropzone-row #dropzone.topbar-upload-dropzone.video-upload-dropzone .video-inline-upload-row,
.review-client[data-project-mode="photo"] .client-photo-dropzone-row #dropzone.topbar-upload-dropzone.photo-upload-dropzone .video-inline-upload-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto auto auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin: 0;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: calc(var(--dash-pill-font-size) * 0.95);
    font-weight: 400;
    line-height: 1;
    color: var(--ink);
    position: relative;
    z-index: 2;
}

.review-client[data-project-mode="audio"] .client-audio-dropzone-row #dropzone.topbar-upload-dropzone.audio-upload-dropzone .video-inline-upload-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.review-client[data-project-mode="video"] .client-video-dropzone-row #dropzone.topbar-upload-dropzone.video-upload-dropzone .video-inline-upload-name,
.review-client[data-project-mode="photo"] .client-photo-dropzone-row #dropzone.topbar-upload-dropzone.photo-upload-dropzone .video-inline-upload-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.review-client[data-project-mode="audio"] .client-audio-dropzone-row #dropzone.topbar-upload-dropzone.audio-upload-dropzone .video-inline-upload-size,
.review-client[data-project-mode="audio"] .client-audio-dropzone-row #dropzone.topbar-upload-dropzone.audio-upload-dropzone .video-inline-upload-percent,
.review-client[data-project-mode="audio"] .client-audio-dropzone-row #dropzone.topbar-upload-dropzone.audio-upload-dropzone .video-inline-upload-eta,
.review-client[data-project-mode="audio"] .client-audio-dropzone-row #dropzone.topbar-upload-dropzone.audio-upload-dropzone .video-inline-upload-counter {
    color: #5b6f86;
    white-space: nowrap;
}

.review-client[data-project-mode="video"] .client-video-dropzone-row #dropzone.topbar-upload-dropzone.video-upload-dropzone .video-inline-upload-size,
.review-client[data-project-mode="video"] .client-video-dropzone-row #dropzone.topbar-upload-dropzone.video-upload-dropzone .video-inline-upload-percent,
.review-client[data-project-mode="video"] .client-video-dropzone-row #dropzone.topbar-upload-dropzone.video-upload-dropzone .video-inline-upload-eta,
.review-client[data-project-mode="video"] .client-video-dropzone-row #dropzone.topbar-upload-dropzone.video-upload-dropzone .video-inline-upload-counter,
.review-client[data-project-mode="photo"] .client-photo-dropzone-row #dropzone.topbar-upload-dropzone.photo-upload-dropzone .video-inline-upload-size,
.review-client[data-project-mode="photo"] .client-photo-dropzone-row #dropzone.topbar-upload-dropzone.photo-upload-dropzone .video-inline-upload-percent,
.review-client[data-project-mode="photo"] .client-photo-dropzone-row #dropzone.topbar-upload-dropzone.photo-upload-dropzone .video-inline-upload-eta,
.review-client[data-project-mode="photo"] .client-photo-dropzone-row #dropzone.topbar-upload-dropzone.photo-upload-dropzone .video-inline-upload-counter {
    color: #5b6f86;
    white-space: nowrap;
}

.review-client[data-project-mode="audio"] .client-audio-dropzone-row #dropzone.topbar-upload-dropzone.audio-upload-dropzone .video-inline-upload-cancel {
    pointer-events: auto;
    min-width: 0;
    height: 20px !important;
    min-height: 20px !important;
    padding: 0 8px !important;
    border-radius: 9px !important;
    font-family: "Avenir Next", "Segoe UI", sans-serif !important;
    font-size: calc(var(--dash-pill-font-size) * 0.74) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

.review-client[data-project-mode="video"] .client-video-dropzone-row #dropzone.topbar-upload-dropzone.video-upload-dropzone .video-inline-upload-cancel,
.review-client[data-project-mode="photo"] .client-photo-dropzone-row #dropzone.topbar-upload-dropzone.photo-upload-dropzone .video-inline-upload-cancel {
    pointer-events: auto;
    min-width: 0;
    height: 20px !important;
    min-height: 20px !important;
    padding: 0 8px !important;
    border-radius: 9px !important;
    font-family: "Avenir Next", "Segoe UI", sans-serif !important;
    font-size: calc(var(--dash-pill-font-size) * 0.74) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

.review-client[data-project-mode="audio"] .client-audio-dropzone-row #dropzone.topbar-upload-dropzone.audio-upload-dropzone .video-inline-upload-progress {
    position: absolute;
    left: 0;
    bottom: 7px;
    display: block;
    height: 4px;
    width: 0%;
    border-radius: 999px;
    background: rgba(126, 161, 200, 0.9);
    transition: width 160ms linear;
    z-index: 1;
    pointer-events: none;
}

.review-client[data-project-mode="video"] .client-video-dropzone-row #dropzone.topbar-upload-dropzone.video-upload-dropzone .video-inline-upload-progress,
.review-client[data-project-mode="photo"] .client-photo-dropzone-row #dropzone.topbar-upload-dropzone.photo-upload-dropzone .video-inline-upload-progress {
    position: absolute;
    left: 0;
    bottom: 7px;
    display: block;
    height: 4px;
    width: 0%;
    border-radius: 999px;
    background: rgba(126, 161, 200, 0.9);
    transition: width 160ms linear;
    z-index: 1;
    pointer-events: none;
}

.preview-page.audio-mode .client-audio-dropzone-row #dropzone.topbar-upload-dropzone.audio-upload-dropzone #selected-files {
    display: none !important;
}

.review-client[data-project-mode="video"] .client-video-dropzone-row #dropzone.topbar-upload-dropzone.video-upload-dropzone #selected-files,
.review-client[data-project-mode="photo"] .client-photo-dropzone-row #dropzone.topbar-upload-dropzone.photo-upload-dropzone #selected-files {
    display: none !important;
}

.preview-page .client-files-dropzone-row--preview .preview-files-dropzone-actions-right {
    grid-column: 3 / span 2;
    display: inline-flex;
    justify-self: end;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.preview-page .client-files-dropzone-row--preview .preview-files-dropzone-actions-right .soft-btn {
    width: auto;
    min-width: 0;
}

.review-admin[data-project-mode="files"] .files-dropzone-row {
    position: sticky;
    top: var(--files-dropzone-sticky-top, 148px);
    z-index: 46;
    background: #fff;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-bottom: 18px;
    isolation: isolate;
}

.review-admin[data-project-mode="files"] .files-dropzone-row::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 100vw;
    height: 100%;
    transform: translateX(-50%);
    background: #fff;
    z-index: 0;
    pointer-events: none;
}

.review-admin[data-project-mode="files"] .files-dropzone-row > * {
    position: relative;
    z-index: 1;
}

.files-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone {
    margin-bottom: 0;
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 0 var(--dash-pill-padding-x);
    height: var(--dash-pill-height);
    min-height: var(--dash-pill-height);
    border-radius: var(--dash-pill-radius);
    border: 1px dashed #c6d6e8;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
}

.files-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone > p {
    margin: 0;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: calc(var(--dash-pill-font-size) * 0.95);
    font-weight: 400;
    line-height: 1;
    color: var(--ink);
    white-space: nowrap;
}

.files-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone #selected-files {
    display: none !important;
}

.files-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone:hover,
.files-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone.active {
    background: #eaf3ff;
    border-color: #8fb3de;
    box-shadow: 0 0 0 2px rgba(137, 171, 225, 0.28);
}

.files-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone.upload-drop-target,
.files-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone.upload-drop-target:hover,
.review-admin[data-project-mode="files"] .files-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone.upload-drop-target.active {
    background: #eaf3ff !important;
    border: 1px dashed #8fb3de !important;
    box-shadow: 0 0 0 2px rgba(137, 171, 225, 0.28) !important;
}

.files-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone.upload-drop-target > p {
    color: #31506e !important;
}

.review-admin[data-project-mode="files"] .files-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone.is-inline-upload-active {
    justify-content: flex-start;
    overflow: hidden;
    background: #ffffff !important;
    border-color: #c6d6e8 !important;
}

.review-admin[data-project-mode="files"] .files-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone.is-inline-upload-active.upload-drop-target,
.review-admin[data-project-mode="files"] .files-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone.is-inline-upload-active.upload-drop-target:hover,
.review-admin[data-project-mode="files"] .files-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone.is-inline-upload-active.upload-drop-target.active {
    background: #ffffff !important;
}

@media (max-width: 920px) {
    .files-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone {
        width: 100%;
    }

    .preview-page .client-files-dropzone-row--preview {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .preview-page .client-files-dropzone-row--preview #dropzone.topbar-upload-dropzone.files-upload-dropzone,
    .preview-page .client-files-dropzone-row--preview .preview-files-dropzone-actions-right {
        grid-column: 1 / -1;
    }

    .preview-page .client-files-dropzone-row--preview .preview-files-dropzone-actions-right {
        display: inline-flex;
        justify-self: stretch;
        justify-content: flex-end;
        flex-wrap: wrap;
    }
}

.dropzone.active {
    border-color: #2ca287;
    background: #fff;
}

.audio-upload-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-bottom: 16px;
}

.review-admin[data-project-mode="audio"] #audio-upload-split {
    position: sticky;
    top: var(--audio-playlist-sticky-top, 148px);
    z-index: 46;
    background: #fff;
    padding-top: 10px;
    padding-bottom: 8px;
    isolation: isolate;
}

.review-admin[data-project-mode="video"] .project-header-sticky #dropzone {
    position: relative;
    z-index: 1;
    margin-bottom: 18px;
}

.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone {
    position: relative;
    z-index: 1;
    margin: 0;
    width: calc(50% - 10px);
    min-width: 0;
    max-width: none;
    padding: 0 var(--dash-pill-padding-x);
    height: var(--dash-pill-height);
    min-height: var(--dash-pill-height);
    border-radius: var(--dash-pill-radius);
    border: 1px dashed #c6d6e8;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    flex: 0 1 calc(50% - 10px);
    margin-right: auto;
}

.review-admin[data-project-mode="photo"] .project-header-sticky #dropzone {
    position: relative;
    z-index: 1;
    margin-bottom: 18px;
}

.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone {
    position: relative;
    z-index: 1;
    margin: 0;
    width: calc(50% - 10px);
    min-width: 0;
    max-width: none;
    padding: 0 var(--dash-pill-padding-x);
    height: var(--dash-pill-height);
    min-height: var(--dash-pill-height);
    border-radius: var(--dash-pill-radius);
    border: 1px dashed #c6d6e8;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    flex: 0 1 calc(50% - 10px);
    margin-right: auto;
}

.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone > p {
    margin: 0;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: calc(var(--dash-pill-font-size) * 0.95);
    font-weight: 400;
    line-height: 1;
    color: var(--ink);
    white-space: nowrap;
}

.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone #selected-files {
    display: none !important;
}

.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.is-inline-upload-active {
    justify-content: flex-start;
    overflow: hidden;
    background: #ffffff !important;
    border-color: #c6d6e8 !important;
}

.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone .video-inline-upload {
    position: relative;
    width: 100%;
    min-width: 0;
    pointer-events: none;
    z-index: 0;
}

.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone .video-inline-upload-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto auto auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin: 0;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: calc(var(--dash-pill-font-size) * 0.95);
    font-weight: 400;
    line-height: 1;
    color: var(--ink);
    position: relative;
    z-index: 2;
}

.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone .video-inline-upload-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone .video-inline-upload-size,
.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone .video-inline-upload-percent,
.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone .video-inline-upload-eta,
.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone .video-inline-upload-counter {
    color: #5b6f86;
    white-space: nowrap;
}

.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone .video-inline-upload-counter {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
}

.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone .video-inline-upload-counter-current,
.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone .video-inline-upload-counter-sep {
    font-weight: 400;
}

.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone .video-inline-upload-counter-total {
    font-weight: 600;
}

.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone .video-inline-upload-cancel {
    pointer-events: auto;
    min-width: 0;
    height: 20px !important;
    min-height: 20px !important;
    padding: 0 8px !important;
    border-radius: 9px !important;
    font-family: "Avenir Next", "Segoe UI", sans-serif !important;
    font-size: calc(var(--dash-pill-font-size) * 0.74) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone .video-inline-upload-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    top: auto;
    height: 4px;
    width: 0%;
    border-radius: 999px;
    background: rgba(177, 208, 156, 0.95);
    transition: width 160ms linear;
    z-index: 1;
    pointer-events: none;
}

.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone:hover,
.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.active {
    background: #ffffff;
    border-color: #c6d6e8;
}

.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.upload-drop-target,
.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.upload-drop-target:hover,
.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.upload-drop-target.active {
    background: #eef4fc !important;
    border: 1px dashed #c6d6e8 !important;
    box-shadow: none;
}

.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.upload-drop-target > p {
    color: #31506e !important;
}

.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.is-inline-upload-active,
.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.is-inline-upload-active:hover,
.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.is-inline-upload-active.active,
.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.is-inline-upload-active.upload-drop-target,
.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.is-inline-upload-active.upload-drop-target:hover,
.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.is-inline-upload-active.upload-drop-target.active {
    background: #ffffff !important;
}

.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.files-upload-dropzone {
    position: relative;
    z-index: 1;
    margin: 0;
    width: calc(50% - 10px);
    min-width: 0;
    max-width: none;
    padding: 0 var(--dash-pill-padding-x);
    height: var(--dash-pill-height);
    min-height: var(--dash-pill-height);
    border-radius: var(--dash-pill-radius);
    border: 1px dashed #c6d6e8;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    flex: 0 1 calc(50% - 10px);
    margin-right: auto;
}

.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.files-upload-dropzone > p {
    margin: 0;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: calc(var(--dash-pill-font-size) * 0.95);
    font-weight: 400;
    line-height: 1;
    color: var(--ink);
    white-space: nowrap;
}

.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.files-upload-dropzone #selected-files {
    display: none !important;
}

.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.files-upload-dropzone:hover,
.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.files-upload-dropzone.active {
    background: #eaf3ff;
    border-color: #8fb3de;
    box-shadow: 0 0 0 2px rgba(137, 171, 225, 0.28);
}

.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.files-upload-dropzone.upload-drop-target,
.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.files-upload-dropzone.upload-drop-target:hover,
.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.files-upload-dropzone.upload-drop-target.active {
    background: #eaf3ff !important;
    border: 1px dashed #8fb3de !important;
    box-shadow: 0 0 0 2px rgba(137, 171, 225, 0.28) !important;
}

.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.files-upload-dropzone.upload-drop-target > p {
    color: #31506e !important;
}

.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.files-upload-dropzone.is-inline-upload-active,
.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.files-upload-dropzone.is-inline-upload-active:hover,
.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.files-upload-dropzone.is-inline-upload-active.active,
.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.files-upload-dropzone.is-inline-upload-active.upload-drop-target,
.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.files-upload-dropzone.is-inline-upload-active.upload-drop-target:hover,
.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.files-upload-dropzone.is-inline-upload-active.upload-drop-target.active {
    background: #ffffff !important;
}

.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.files-upload-dropzone.is-inline-upload-active.upload-drop-target,
.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.files-upload-dropzone.is-inline-upload-active.upload-drop-target:hover,
.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.files-upload-dropzone.is-inline-upload-active.upload-drop-target.active {
    background: #eaf3ff !important;
    border: 1px dashed #8fb3de !important;
    box-shadow: 0 0 0 2px rgba(137, 171, 225, 0.28) !important;
}

.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload {
    position: relative;
    width: 100%;
    min-width: 0;
    pointer-events: none;
    z-index: 0;
}

.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto auto auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin: 0;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: calc(var(--dash-pill-font-size) * 0.95);
    font-weight: 400;
    line-height: 1;
    color: var(--ink);
    position: relative;
    z-index: 2;
}

.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload-size,
.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload-percent,
.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload-eta,
.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload-counter {
    color: #5b6f86;
    white-space: nowrap;
}

.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload-counter {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
}

.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload-counter-current,
.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload-counter-sep {
    font-weight: 400;
}

.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload-counter-total {
    font-weight: 600;
}

.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload-cancel {
    pointer-events: auto;
    min-width: 0;
    height: 20px !important;
    min-height: 20px !important;
    padding: 0 8px !important;
    border-radius: 9px !important;
    font-family: "Avenir Next", "Segoe UI", sans-serif !important;
    font-size: calc(var(--dash-pill-font-size) * 0.74) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

.review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    top: auto;
    height: 4px;
    width: 0%;
    border-radius: 999px;
    background: rgba(126, 161, 200, 0.9);
    transition: width 160ms linear;
    z-index: 1;
    pointer-events: none;
}

.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone > p {
    margin: 0;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: calc(var(--dash-pill-font-size) * 0.95);
    font-weight: 400;
    line-height: 1;
    color: var(--ink);
    white-space: nowrap;
}

.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone #selected-files {
    display: none !important;
}
.review-admin[data-project-mode="audio"] .project-header-sticky #dropzone {
    position: relative;
    z-index: 1;
    margin-bottom: 18px;
}
.review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone #selected-files {
    display: none !important;
}

.review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone {
    position: relative;
    z-index: 1;
    margin: 0;
    width: auto;
    min-width: 180px;
    max-width: none;
    padding: 0 var(--dash-pill-padding-x);
    height: var(--dash-pill-height);
    min-height: var(--dash-pill-height);
    border-radius: var(--dash-pill-radius);
    border: 1px dashed #c6d6e8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    flex: 1 1 auto;
    margin-right: auto;
    background: #ffffff;
    border-color: #c6d6e8;
}
.review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone > p {
    margin: 0;
    max-width: 100%;
    min-width: 0;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: calc(var(--dash-pill-font-size) * 0.95);
    font-weight: 400;
    line-height: 1;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone:hover,
.review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.active {
    background: #ffffff;
    border-color: #c6d6e8;
}
.review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.upload-drop-target,
.review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.upload-drop-target:hover,
.review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.upload-drop-target.active {
    background: #eef4fc !important;
    border: 1px dashed #c6d6e8 !important;
    box-shadow: none;
}
.review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.upload-drop-target > p {
    color: #31506e !important;
}
.review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.is-inline-upload-active,
.review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.is-inline-upload-active:hover,
.review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.is-inline-upload-active.active,
.review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.is-inline-upload-active.upload-drop-target,
.review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.is-inline-upload-active.upload-drop-target:hover,
.review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.is-inline-upload-active.upload-drop-target.active {
    justify-content: flex-start;
    overflow: hidden;
    background: #ffffff !important;
    border-color: #c6d6e8 !important;
}
.review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone .video-inline-upload {
    position: relative;
    width: 100%;
    min-width: 0;
    pointer-events: none;
    z-index: 0;
}
.review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone .video-inline-upload-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto auto auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin: 0;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: calc(var(--dash-pill-font-size) * 0.95);
    font-weight: 400;
    line-height: 1;
    color: var(--ink);
    position: relative;
    z-index: 2;
}
.review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone .video-inline-upload-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}
.review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone .video-inline-upload-size,
.review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone .video-inline-upload-percent,
.review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone .video-inline-upload-eta,
.review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone .video-inline-upload-counter {
    color: #5b6f86;
    white-space: nowrap;
}
.review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone .video-inline-upload-cancel {
    pointer-events: auto;
    min-width: 0;
    height: 20px !important;
    min-height: 20px !important;
    padding: 0 8px !important;
    border-radius: 9px !important;
    font-family: "Avenir Next", "Segoe UI", sans-serif !important;
    font-size: calc(var(--dash-pill-font-size) * 0.74) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}
.review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone .video-inline-upload-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 0%;
    border-radius: 999px;
    background: rgba(126, 161, 200, 0.9);
    transition: width 160ms linear;
    z-index: 1;
    pointer-events: none;
}

.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.is-inline-upload-active {
    justify-content: flex-start;
    overflow: hidden;
    background: #ffffff !important;
    border-color: #c6d6e8 !important;
}

.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.is-inline-upload-active.upload-drop-target,
.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.is-inline-upload-active.upload-drop-target:hover,
.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.is-inline-upload-active.upload-drop-target.active {
    background: #ffffff !important;
}

.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone .video-inline-upload {
    position: relative;
    width: 100%;
    min-width: 0;
    pointer-events: none;
    z-index: 0;
}

.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone .video-inline-upload-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto auto auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin: 0;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: calc(var(--dash-pill-font-size) * 0.95);
    font-weight: 400;
    line-height: 1;
    color: var(--ink);
    position: relative;
    z-index: 2;
}

.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone .video-inline-upload-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone .video-inline-upload-size,
.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone .video-inline-upload-percent,
.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone .video-inline-upload-eta,
.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone .video-inline-upload-counter {
    color: #5b6f86;
    white-space: nowrap;
}

.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone .video-inline-upload-counter {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
}

.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone .video-inline-upload-counter-current,
.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone .video-inline-upload-counter-sep {
    font-weight: 400;
}

.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone .video-inline-upload-counter-total {
    font-weight: 600;
}

.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone .video-inline-upload-cancel {
    pointer-events: auto;
    min-width: 0;
    height: 20px !important;
    min-height: 20px !important;
    padding: 0 8px !important;
    border-radius: 9px !important;
    font-family: "Avenir Next", "Segoe UI", sans-serif !important;
    font-size: calc(var(--dash-pill-font-size) * 0.74) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone .video-inline-upload-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    top: auto;
    height: 4px;
    width: 0%;
    border-radius: 999px;
    background: rgba(126, 161, 200, 0.9);
    transition: width 160ms linear;
    z-index: 1;
    pointer-events: none;
}

.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone:hover,
.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.active {
    background: #ffffff;
    border-color: #c6d6e8;
}

.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.upload-drop-target,
.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.upload-drop-target:hover,
.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.upload-drop-target.active {
    background: #eef4fc !important;
    border: 1px dashed #c6d6e8 !important;
    box-shadow: none;
}

.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.upload-drop-target > p {
    color: #31506e !important;
}

.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.is-inline-upload-active,
.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.is-inline-upload-active:hover,
.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.is-inline-upload-active.active,
.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.is-inline-upload-active.upload-drop-target,
.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.is-inline-upload-active.upload-drop-target:hover,
.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.is-inline-upload-active.upload-drop-target.active {
    background: #ffffff !important;
}

.review-admin[data-project-mode="files"] .files-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload {
    position: relative;
    width: 100%;
    min-width: 0;
    pointer-events: none;
    z-index: 0;
}

.review-admin[data-project-mode="files"] .files-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto auto auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin: 0;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: calc(var(--dash-pill-font-size) * 0.95);
    font-weight: 400;
    line-height: 1;
    color: var(--ink);
    position: relative;
    z-index: 2;
}

.review-admin[data-project-mode="files"] .files-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.review-admin[data-project-mode="files"] .files-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload-size,
.review-admin[data-project-mode="files"] .files-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload-percent,
.review-admin[data-project-mode="files"] .files-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload-eta,
.review-admin[data-project-mode="files"] .files-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload-counter {
    color: #5b6f86;
    white-space: nowrap;
}

.review-admin[data-project-mode="files"] .files-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload-counter {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
}

.review-admin[data-project-mode="files"] .files-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload-counter-current,
.review-admin[data-project-mode="files"] .files-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload-counter-sep {
    font-weight: 400;
}

.review-admin[data-project-mode="files"] .files-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload-counter-total {
    font-weight: 600;
}

.review-admin[data-project-mode="files"] .files-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload-cancel {
    pointer-events: auto;
    min-width: 0;
    height: 20px !important;
    min-height: 20px !important;
    padding: 0 8px !important;
    border-radius: 9px !important;
    font-family: "Avenir Next", "Segoe UI", sans-serif !important;
    font-size: calc(var(--dash-pill-font-size) * 0.74) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

.review-admin[data-project-mode="files"] .files-dropzone-row #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    top: auto;
    height: 4px;
    width: 0%;
    border-radius: 999px;
    background: rgba(126, 161, 200, 0.9);
    transition: width 160ms linear;
    z-index: 1;
    pointer-events: none;
}

.review-client[data-project-mode="files"] .client-files-dropzone-row--preview #dropzone.topbar-upload-dropzone.files-upload-dropzone.is-inline-upload-active {
    justify-content: flex-start;
    overflow: hidden;
    background: #ffffff !important;
    border-color: #c6d6e8 !important;
}

.review-client[data-project-mode="files"] .client-files-dropzone-row--preview #dropzone.topbar-upload-dropzone.files-upload-dropzone.is-inline-upload-active.upload-drop-target,
.review-client[data-project-mode="files"] .client-files-dropzone-row--preview #dropzone.topbar-upload-dropzone.files-upload-dropzone.is-inline-upload-active.upload-drop-target:hover,
.review-client[data-project-mode="files"] .client-files-dropzone-row--preview #dropzone.topbar-upload-dropzone.files-upload-dropzone.is-inline-upload-active.upload-drop-target.active {
    background: #ffffff !important;
}

.review-client[data-project-mode="files"] .client-files-dropzone-row--preview #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload {
    position: relative;
    width: 100%;
    min-width: 0;
    pointer-events: none;
    z-index: 0;
}

.review-client[data-project-mode="files"] .client-files-dropzone-row--preview #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto auto auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin: 0;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: calc(var(--dash-pill-font-size) * 0.95);
    font-weight: 400;
    line-height: 1;
    color: var(--ink);
    position: relative;
    z-index: 2;
}

.review-client[data-project-mode="files"] .client-files-dropzone-row--preview #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.review-client[data-project-mode="files"] .client-files-dropzone-row--preview #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload-size,
.review-client[data-project-mode="files"] .client-files-dropzone-row--preview #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload-percent,
.review-client[data-project-mode="files"] .client-files-dropzone-row--preview #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload-eta,
.review-client[data-project-mode="files"] .client-files-dropzone-row--preview #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload-counter {
    color: #5b6f86;
    white-space: nowrap;
}

.review-client[data-project-mode="files"] .client-files-dropzone-row--preview #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload-counter {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
}

.review-client[data-project-mode="files"] .client-files-dropzone-row--preview #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload-counter-current,
.review-client[data-project-mode="files"] .client-files-dropzone-row--preview #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload-counter-sep {
    font-weight: 400;
}

.review-client[data-project-mode="files"] .client-files-dropzone-row--preview #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload-counter-total {
    font-weight: 600;
}

.review-client[data-project-mode="files"] .client-files-dropzone-row--preview #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload-cancel {
    pointer-events: auto;
    min-width: 0;
    height: 20px !important;
    min-height: 20px !important;
    padding: 0 8px !important;
    border-radius: 9px !important;
    font-family: "Avenir Next", "Segoe UI", sans-serif !important;
    font-size: calc(var(--dash-pill-font-size) * 0.74) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

.review-client[data-project-mode="files"] .client-files-dropzone-row--preview #dropzone.topbar-upload-dropzone.files-upload-dropzone .video-inline-upload-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    top: auto;
    height: 4px;
    width: 0%;
    border-radius: 999px;
    background: rgba(214, 178, 74, 0.95);
    transition: width 160ms linear;
    z-index: 1;
    pointer-events: none;
}

.review-admin[data-project-mode="audio"] #audio-upload-split::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 100vw;
    height: calc(100% + 10px);
    transform: translateX(-50%);
    background: #fff;
    z-index: 0;
    pointer-events: none;
}

.review-admin[data-project-mode="audio"] #audio-upload-split > * {
    position: relative;
    z-index: 1;
}

.audio-upload-split .dropzone {
    margin-bottom: 0;
}

.audio-upload-split > #dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.audio-upload-split > #dropzone > p {
    margin: 0;
}

.dropzone-target-name {
    font-weight: 600;
}

.playlist-upload-panel {
    display: grid;
    gap: 12px;
    text-align: left;
    cursor: default;
    padding: 16px;
}

.playlist-target-label {
    font-size: 0.82rem;
    color: #5d738c;
    font-weight: 600;
}

.playlist-target-select {
    display: none;
}

.playlist-target-picker {
    position: relative;
}

.playlist-target-trigger {
    width: 100%;
    height: 40px;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    cursor: pointer;
}

.playlist-target-trigger:hover,
.playlist-target-trigger:focus,
.playlist-target-trigger:focus-visible {
    background: #edf4fb;
    border-color: #c6d6e8;
}

.playlist-target-trigger.is-selected {
    background: #e8f1ff;
    border-color: #c6d6e8;
    color: #233f63;
}

.playlist-target-label {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0 44px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-target-caret {
    width: 12px;
    height: 12px;
    border-right: 2px solid #344862;
    border-bottom: 2px solid #344862;
    transform: rotate(45deg);
    position: absolute;
    right: 18px;
    top: 50%;
    margin-top: -8px;
}

.playlist-target-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    border: 1px solid #cfdae6;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(18, 36, 58, 0.14);
    padding: 6px;
    display: grid;
    gap: 4px;
    max-height: 260px;
    overflow: auto;
}

.playlist-target-menu[hidden] {
    display: none !important;
}

.playlist-target-option {
    border: 1px solid transparent;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1;
    text-align: center;
    min-height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.playlist-target-option:hover,
.playlist-target-option:focus,
.playlist-target-option:focus-visible {
    background: #edf4fb;
    border-color: #c6d6e8;
}

.playlist-target-option.is-selected {
    border-color: #c6d6e8;
    background: #f7fbff;
}

.playlist-target-option-create {
    font-weight: 600;
}

.playlist-target-option-empty {
    cursor: default;
    color: #6f8198;
}

.playlist-dropzone {
    border: 1px dashed #b7c8da;
    border-radius: 12px;
    background: #fff;
    padding: 26px 14px;
    min-height: 74px;
    text-align: center;
    cursor: pointer;
    transition: all 0.18s ease;
}

.playlist-dropzone.active {
    border-color: #2ca287;
}

.playlist-dropzone-name {
    font-weight: 600;
}

.playlist-upload-panel.is-disabled .playlist-dropzone {
    opacity: 0.65;
    cursor: not-allowed;
}

.audio-main-workspace {
    width: min(1590px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    min-height: 0;
}

.audio-main-workspace.is-playlist-open {
    grid-template-columns: 220px minmax(0, 1fr) 340px;
}

.audio-main-workspace.is-playlist-open .audio-row .audio-track-row.has-reset-control {
    gap: 10px;
}

.audio-main-workspace.is-playlist-open .audio-row .audio-track-main {
    grid-template-columns: minmax(0, 1fr) 78px;
    grid-template-rows: auto auto auto;
    column-gap: 10px;
    row-gap: 5px;
}

.audio-main-workspace.is-playlist-open .audio-row .audio-top-meta,
.audio-main-workspace.is-playlist-open .audio-row .audio-time-row {
    max-width: none;
}

.audio-main-workspace.is-playlist-open .audio-row .audio-top-meta {
    grid-column: 1;
    grid-row: 1;
}

.audio-main-workspace.is-playlist-open .audio-row .audio-waveform-row {
    display: contents;
}

.audio-main-workspace.is-playlist-open .audio-row .audio-waveform-row .audio-waveform {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
}

.audio-main-workspace.is-playlist-open .audio-row .audio-inline-actions {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: center;
    justify-self: stretch;
}

.audio-main-workspace.is-playlist-open .audio-row .audio-inline-actions .soft-btn {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
}

.audio-main-workspace.is-playlist-open .audio-row .audio-time-row {
    grid-column: 1;
    grid-row: 3;
}

.audio-main-workspace:not(.is-playlist-open) #playlist-upload-panel[hidden] {
    display: none !important;
}

.audio-library-sidebar {
    border: 1px solid #dce5ef;
    border-radius: 12px;
    background: #fff;
    padding: 14px 10px 10px;
    min-height: 0;
}

.audio-library-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.audio-library-sidebar-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-left: 0;
}

.audio-library-sidebar-tabs.is-libraries-mode .audio-library-sidebar-create-btn {
    order: 1;
}

.audio-library-sidebar-tabs.is-libraries-mode .audio-library-sidebar-tab-libraries {
    order: 2;
}

.audio-library-sidebar-tabs.is-libraries-mode .audio-library-sidebar-tab-playlists {
    order: 3;
}

.audio-library-sidebar-tab {
    border: 0 !important;
    border-radius: 999px;
    background: #ffffff !important;
    color: #1f334b !important;
    font-size: 0.72rem;
    font-weight: 400;
    line-height: 1;
    min-height: 22px;
    padding: 0 8px;
    cursor: pointer;
    box-shadow: none !important;
}

.audio-library-sidebar-tab:hover,
.audio-library-sidebar-tab:focus,
.audio-library-sidebar-tab:focus-visible {
    background: #ffffff !important;
    color: #1f334b !important;
    border: 0 !important;
    outline: none;
    box-shadow: none !important;
}

.audio-library-sidebar-tab.is-active {
    background: #bf95c8 !important;
    color: #ffffff !important;
}

.audio-library-sidebar-tab-playlists {
    margin-left: auto;
}

.audio-library-sidebar-create-btn {
    border: 1px solid #c7d4e3 !important;
    border-radius: 999px;
    width: 26px;
    min-width: 26px;
    height: 26px;
    min-height: 26px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff !important;
    color: #30445b !important;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    box-shadow: none !important;
}

.audio-library-sidebar-create-btn:hover,
.audio-library-sidebar-create-btn:focus,
.audio-library-sidebar-create-btn:focus-visible {
    background: #ffffff !important;
    color: #30445b !important;
    border-color: #c7d4e3 !important;
    outline: none;
    box-shadow: none !important;
}

.audio-library-sidebar-create-btn[hidden] {
    display: none !important;
}

.audio-library-list {
    display: grid;
    gap: 6px;
}

.audio-library-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    border: 1px solid #dce5ef;
    border-radius: 10px;
    background: #fff;
    padding: 0 10px;
    cursor: pointer;
    user-select: none;
    color: #1f334b;
    font-size: 0.93rem;
    font-weight: 400;
    text-align: center;
}

.audio-library-item:hover,
.audio-library-item:focus,
.audio-library-item:focus-visible {
    background: #fff;
    border-color: #dce5ef;
}

.audio-library-item.is-active {
    background: #e8f1ff;
    border-color: #dce5ef;
    color: #233f63;
    box-shadow: none;
}

.audio-library-item.is-drag-over {
    border-color: #8fb5de;
    background: #eef5fd;
}

.audio-library-item-drag {
    color: #6e8299;
    font-size: 0.9rem;
}

.audio-library-item-create {
    border: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    min-height: 0;
    padding: 0;
    cursor: text;
}

.audio-library-item-label {
    display: block;
    width: 100%;
    text-align: center;
}

.audio-library-group {
    display: grid;
    gap: 6px;
}

.audio-library-group-row {
    justify-content: space-between;
    text-align: left;
}

.audio-library-group-left,
.audio-library-group-right {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.audio-library-group-left {
    min-width: 0;
    flex: 1 1 auto;
}

.audio-library-group-kind {
    font-weight: 700;
}

.audio-library-group-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.audio-library-group-count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    font-weight: 700;
    color: #4e5f74;
    background: #e0e8f3;
}

.audio-library-group-chevron {
    font-size: 0.84rem;
    color: #6a7f97;
    line-height: 1;
}

.audio-library-group-children {
    display: grid;
    gap: 6px;
    padding-left: 12px;
}

.audio-library-group-child {
    min-height: 34px;
    font-size: 0.88rem;
}

.audio-library-create-input {
    width: 100%;
    border: 1px solid #dce5ef;
    border-radius: 10px;
    background: #fff;
    color: #1f334b;
    font-size: 0.93rem;
    font-weight: 400;
    line-height: 1.2;
    padding: 0 12px;
    min-height: 38px;
    text-align: center;
}

.audio-library-create-input::placeholder {
    color: #778aa1;
}

.audio-library-create-input:focus,
.audio-library-create-input:focus-visible {
    outline: none;
    box-shadow: none;
}

.audio-library-content {
    min-width: 0;
    min-height: 0;
}

.audio-main-workspace .playlist-upload-panel {
    margin-bottom: 0;
    height: auto;
    position: sticky;
    top: var(--audio-playlist-sticky-top, 148px);
    min-height: 0;
}

.playlist-track-list-wrap {
    border: 1px solid #dce5ef;
    border-radius: 12px;
    background: #fff;
    padding: 10px;
    display: grid;
    gap: 8px;
}

.playlist-track-list-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.playlist-open-mix-btn {
    border: 1px solid transparent;
    background: transparent;
    box-shadow: none;
    min-height: 34px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 400;
    color: #344862;
    white-space: nowrap;
    cursor: pointer;
    text-align: center;
}

.playlist-open-mix-duration {
    font-size: 0.78rem;
}

.playlist-open-mix-btn:hover,
.playlist-open-mix-btn:focus-visible {
    text-decoration: none;
    background: #e8f1ff;
    border-color: #c6d6e8;
}

.playlist-track-list {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.playlist-track-item {
    border: 1px solid #dce5ef;
    border-radius: 10px;
    background: #fff;
    padding: 8px 10px;
    cursor: grab;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    overflow: hidden;
}

.playlist-track-title {
    margin: 0;
    flex: 1;
    min-width: 0;
    color: #1f334b;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-track-row-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 0;
}

.playlist-track-remove-btn {
    width: 14px !important;
    min-width: 14px !important;
    max-width: 14px !important;
    height: 14px !important;
    min-height: 14px !important;
    max-height: 14px !important;
    aspect-ratio: 1 / 1;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.playlist-track-remove-btn span[aria-hidden="true"] {
    font-size: 0.58rem;
    font-weight: 400;
    line-height: 1;
}

.playlist-track-time {
    color: #6e8299;
    font-size: 0.75rem;
    line-height: 1;
    white-space: nowrap;
}

.playlist-track-item.is-dragging {
    opacity: 0.65;
}

.playlist-track-item.is-drag-over {
    border-color: #8fb5de;
    background: #eef5fd;
}

.playlist-track-empty {
    margin: 0;
    text-align: center;
}

.playlist-track-list-length {
    margin: 0;
    font-size: 0.79rem;
    font-weight: 400;
    color: #6e8299;
    text-align: center;
}

@media (min-width: 1201px) {
    body.review-admin[data-project-mode="audio"] {
        height: 100dvh;
        overflow: hidden;
    }

    .audio-main-workspace {
        height: var(--audio-workspace-max-height, auto);
        overflow: visible;
    }

    .audio-library-sidebar {
        position: sticky;
        top: var(--audio-playlist-sticky-top, 148px);
        align-self: start;
        height: auto;
        max-height: var(--audio-workspace-max-height, none);
        overflow: auto;
        z-index: 2;
    }

    .audio-library-content {
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 4px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .audio-library-content::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
    }

    .audio-main-workspace .playlist-upload-panel {
        position: sticky;
        top: var(--audio-playlist-sticky-top, 148px);
        align-self: start;
        z-index: 2;
    }

    .audio-main-workspace.is-playlist-open .playlist-upload-panel {
        height: auto;
        max-height: var(--audio-workspace-max-height, none);
        overflow-y: auto;
        overflow-x: hidden;
        display: grid;
        grid-auto-rows: max-content;
        gap: 12px;
        align-content: start;
    }

    .audio-main-workspace.is-playlist-open .playlist-track-list-wrap {
        min-height: auto;
        overflow: visible;
    }
}

@media (max-width: 1200px) {
    .audio-main-workspace,
    .audio-main-workspace.is-playlist-open {
        grid-template-columns: 200px minmax(0, 1fr);
    }

    .audio-main-workspace.is-playlist-open #playlist-upload-panel {
        grid-column: 1 / -1;
        position: static;
    }
}

@media (max-width: 860px) {
    .audio-main-workspace,
    .audio-main-workspace.is-playlist-open {
        grid-template-columns: 1fr;
    }

    .audio-library-sidebar {
        order: 1;
    }

    .audio-library-content {
        order: 2;
    }

    .audio-main-workspace #playlist-upload-panel {
        order: 3;
        position: static;
    }
}

.uploads-panel {
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.review-admin[data-project-mode="video"] .uploads-panel {
    border: 1px dashed #b7c8da;
    border-radius: 12px;
    padding: 14px 16px;
    background: #fff;
}

.review-admin[data-project-mode="video"] .uploads-panel h2 {
    display: none;
}

.projects-dashboard .dashboard-drop-upload-panel {
    margin-top: 12px;
}

.projects-dashboard .dashboard-drop-upload-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 10px;
}

.projects-dashboard .dashboard-drop-upload-panel h2 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 400;
    color: #5b7086;
}

.projects-dashboard .dashboard-drop-upload-title-main {
    font-weight: 600;
}

.projects-dashboard .dashboard-drop-upload-title-sub {
    font-weight: 400;
}

.projects-dashboard .dashboard-drop-upload-progress-row {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 0;
    font-size: 0.92rem;
    color: #5b7086;
    min-width: 0;
}

.projects-dashboard #dashboard-drop-upload-progress-meta {
    color: #5f738b;
    font-size: 0.84rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(52vw, 980px);
}

.projects-dashboard #dashboard-drop-upload-status {
    margin-top: 8px;
}

.projects-dashboard #dashboard-drop-upload-status.is-error {
    color: #c44b4b;
}

.projects-dashboard .dashboard-drop-upload-panel .progress-fill {
    background: var(--dashboard-upload-fill-color, #a8c3e6);
}

.upload-list {
    display: grid;
    gap: 10px;
}

.upload-item {
    border: 1px solid #e5ebf3;
    border-radius: 10px;
    padding: 10px;
    background: #fff;
}

.upload-item.done {
    border-color: #b8dfd4;
}

.upload-item.error {
    border-color: #e5bbbb;
}

.upload-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.upload-label {
    font-weight: 400;
    min-width: 0;
}

.upload-destination {
    font-weight: 600;
}

.upload-divider,
.upload-file-title {
    font-weight: 400;
}

.progress-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #e8eff7;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--upload-progress-color, linear-gradient(90deg, #0d8e71, #20b18d));
    transition: width 0.15s linear;
}

.review-client[data-project-mode="files"] #client-upload-progress .progress-fill {
    background: linear-gradient(90deg, #e3c15a, #d6b24a);
}

.upload-stats {
    margin-top: 6px;
    font-size: 0.82rem;
}

.project-folder-card .folder-preview.is-upload-drop-target {
    position: relative;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.project-folder-card .folder-preview.is-upload-drop-over {
    border-color: #8fb5de !important;
    background: #f3f8ff !important;
    box-shadow: inset 0 0 0 1px rgba(143, 181, 222, 0.45);
}

.library-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    min-height: 0;
}

.review-admin.files-mode .library-head {
    justify-content: center;
}

.review-client.files-mode .library-head {
    justify-content: center;
}

.library-head h2 {
    margin: 0;
    font-size: calc(1.15rem + 2pt);
}

.review-admin .library-head h2,
.review-admin .uploads-panel h2,
.review-admin .share-details h2 {
    font-size: 1.15rem;
}

.review-admin .topbar {
    align-items: center;
}

.review-admin .topbar-actions {
    margin-top: 0;
    align-self: center;
}

.review-admin[data-project-mode="audio"] .topbar-actions {
    margin-top: 4px;
    align-self: flex-start;
}

.review-admin .topbar .project-title-row {
    width: auto;
    margin: 0;
    flex: 1 1 auto;
}

.review-admin .topbar .project-title-meta-row {
    width: 100%;
}

.review-admin[data-project-mode="photo"] .topbar .project-title-meta-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    width: calc(50% - 10px);
    min-width: 0;
    max-width: none;
    margin-left: 0;
    margin-right: auto;
}

@media (max-width: 900px) {
    .review-admin[data-project-mode="photo"] .topbar .project-title-meta-row {
        width: min(100%, 420px);
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .review-admin[data-project-mode="photo"] .project-subtitle-row {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
    }
}

.review-admin[data-project-mode="video"] .topbar,
.review-admin[data-project-mode="files"] .topbar,
.review-admin[data-project-mode="photo"] .topbar,
.review-admin[data-project-mode="audio"] .topbar,
.review-admin[data-project-mode="blog"] .topbar {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 14px;
    align-items: stretch;
}

.review-admin[data-project-mode="video"] .topbar .project-title-row,
.review-admin[data-project-mode="files"] .topbar .project-title-row,
.review-admin[data-project-mode="photo"] .topbar .project-title-row,
.review-admin[data-project-mode="audio"] .topbar .project-title-row,
.review-admin[data-project-mode="blog"] .topbar .project-title-row {
    width: 100%;
    margin: 0;
    justify-content: flex-start;
    text-align: left;
    flex: 0 0 auto;
}

.review-admin[data-project-mode="video"] .topbar .title-edit-wrap.project-title-row,
.review-admin[data-project-mode="files"] .topbar .title-edit-wrap.project-title-row,
.review-admin[data-project-mode="photo"] .topbar .title-edit-wrap.project-title-row,
.review-admin[data-project-mode="audio"] .topbar .title-edit-wrap.project-title-row,
.review-admin[data-project-mode="blog"] .topbar .title-edit-wrap.project-title-row {
    justify-content: flex-start;
}

.review-admin[data-project-mode="photo"] .topbar .project-title-row {
    width: auto;
    flex: 0 1 auto;
    min-width: 0;
}

.review-admin[data-project-mode="video"] #app-title-text,
.review-admin[data-project-mode="files"] #app-title-text,
.review-admin[data-project-mode="photo"] #app-title-text,
.review-admin[data-project-mode="audio"] #app-title-text,
.review-admin[data-project-mode="blog"] #app-title-text {
    font-size: clamp(0.95rem, 1.5vw, 1.08rem);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.2;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.review-admin[data-project-mode="video"] #app-title-text .project-title-prefix,
.review-admin[data-project-mode="files"] #app-title-text .project-title-prefix,
.review-admin[data-project-mode="photo"] #app-title-text .project-title-prefix,
.review-admin[data-project-mode="audio"] #app-title-text .project-title-prefix,
.review-admin[data-project-mode="blog"] #app-title-text .project-title-prefix {
    font-weight: 400;
    color: #2f4760;
}

.review-admin[data-project-mode="video"] #app-title-text .project-title-divider,
.review-admin[data-project-mode="files"] #app-title-text .project-title-divider,
.review-admin[data-project-mode="photo"] #app-title-text .project-title-divider,
.review-admin[data-project-mode="audio"] #app-title-text .project-title-divider,
.review-admin[data-project-mode="blog"] #app-title-text .project-title-divider {
    font-weight: 400;
    color: #6f869d;
}

.review-admin[data-project-mode="video"] #app-title-text .project-title-name,
.review-admin[data-project-mode="files"] #app-title-text .project-title-name,
.review-admin[data-project-mode="photo"] #app-title-text .project-title-name,
.review-admin[data-project-mode="audio"] #app-title-text .project-title-name,
.review-admin[data-project-mode="blog"] #app-title-text .project-title-name {
    font-weight: 700;
    color: var(--ink);
}

.review-admin[data-project-mode="video"] .topbar .project-title-row .title-edit-btn,
.review-admin[data-project-mode="files"] .topbar .project-title-row .title-edit-btn {
    display: none !important;
}

.review-admin[data-project-mode="video"] .topbar-actions,
.review-admin[data-project-mode="files"] .topbar-actions,
.review-admin[data-project-mode="photo"] .topbar-actions,
.review-admin[data-project-mode="audio"] .topbar-actions,
.review-admin[data-project-mode="blog"] .topbar-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    align-self: stretch;
}

.review-admin[data-project-mode="blog"] .topbar-actions {
    align-items: center;
    gap: 12px;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.review-admin[data-project-mode="blog"] .blog-project-left-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.review-admin[data-project-mode="blog"] .blog-project-left-controls .dashboard-blog-select {
    min-width: min(320px, 42vw);
    -webkit-appearance: none;
    appearance: none;
    padding-left: 28px;
    padding-right: 52px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%231c2e40' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 28px center;
    background-size: 16px 16px;
}

.review-admin[data-project-mode="blog"] .topbar-actions #blog-public-link {
    margin-left: auto;
}

.review-admin.blog-collection-workspace[data-project-mode="blog"] .topbar-actions #blog-collection-preview-btn {
    margin-left: auto;
}

.review-admin.blog-collection-workspace[data-project-mode="blog"] .topbar {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 24px;
    margin-bottom: 18px;
}

.review-admin.blog-collection-workspace[data-project-mode="blog"] .topbar .project-title-meta-row {
    width: auto !important;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
}

.review-admin.blog-collection-workspace[data-project-mode="blog"] .topbar .project-title-row {
    margin: 0 !important;
    align-items: center;
    min-width: 0;
}

.review-admin.blog-collection-workspace[data-project-mode="blog"] .topbar-actions {
    width: auto !important;
    flex: 0 0 auto;
    align-items: center !important;
    justify-content: flex-end !important;
    align-self: center !important;
    margin-left: auto !important;
    margin-top: 0 !important;
}

.review-admin.blog-collection-workspace[data-project-mode="blog"] .topbar-actions #blog-collection-preview-btn {
    margin-left: 0;
}

.blog-collection-language-filter {
    display: flex;
    align-items: center;
}

.blog-collection-language-filter[hidden] {
    display: none !important;
}

.blog-collection-language-select {
    min-width: 132px;
}

.blog-collection-workspace-shell {
    --blog-collection-preview-width: 300px;
    --blog-collection-preview-height: 170px;
    width: min(1590px, 84vw);
    margin: 22px auto 0;
    min-height: 520px;
}

.blog-collection-workspace-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.blog-collection-workspace-row {
    position: relative;
    display: grid;
    grid-template-columns: var(--blog-collection-preview-width) minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 42px rgba(102, 121, 143, 0.07);
}

.blog-collection-workspace-thumb {
    position: relative;
    width: var(--blog-collection-preview-width);
    height: var(--blog-collection-preview-height);
    min-height: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fbff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-weight: 700;
    cursor: pointer;
}

.blog-collection-change-pill {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 10px;
    border: 1px solid rgba(214, 224, 235, 0.7);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.66);
    color: #1c2e40;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: 0.69rem;
    font-weight: 500;
    line-height: 1;
    opacity: 0.7;
    box-shadow: 0 8px 18px rgba(31, 45, 68, 0.12);
    pointer-events: none;
}

.blog-collection-workspace-thumb[aria-expanded="true"] .blog-collection-change-pill {
    opacity: 0;
    visibility: hidden;
}

.blog-collection-workspace-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-collection-workspace-copy {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
    align-self: stretch;
}

.blog-collection-workspace-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    grid-template-rows: minmax(0, 1fr) auto auto;
    align-items: start;
    gap: 24px;
    row-gap: 6px;
    min-height: var(--blog-collection-preview-height);
    margin-top: 0;
}

.blog-collection-workspace-title-row h2 {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    margin: 0;
    color: var(--ink);
    font-family: "Noy Display", "Charter", Georgia, "Times New Roman", serif;
    font-size: 1.72rem;
    line-height: 0.98;
    font-weight: 700;
    letter-spacing: 0;
}

.blog-collection-workspace-languages {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
    margin-bottom: 4px;
}

.blog-collection-language-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #617083;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
}

.blog-collection-read-btn {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    min-height: 34px;
    padding: 0 16px;
    font-size: 0.86rem;
    font-weight: 500;
}

.blog-collection-workspace-title-row p {
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.45;
}

.blog-collection-workspace-text {
    grid-column: 1;
    grid-row: 3;
    display: grid;
    gap: 4px;
    align-content: end;
    align-self: end;
    min-width: 0;
}

.blog-collection-workspace-title-row .blog-collection-workspace-subtitle,
.blog-collection-workspace-title-row .blog-collection-workspace-excerpt {
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.45;
}

.blog-collection-workspace-excerpt {
    max-width: 70ch;
    color: #7b8798;
    font-size: 0.94rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.blog-collection-workspace-date-wrap {
    grid-column: 2;
    grid-row: 3;
    align-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    width: 100% !important;
    color: var(--muted);
}

.blog-collection-workspace-date-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.72;
    pointer-events: none;
}

.blog-collection-workspace-date {
    width: 112px !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--muted) !important;
    font: inherit !important;
    font-size: 1.02rem !important;
    line-height: 1.45 !important;
    text-align: right !important;
    appearance: none;
    -webkit-appearance: none;
}

.blog-collection-workspace-controls {
    display: none;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.blog-collection-workspace-controls:has(.blog-collection-workspace-status:not([hidden])) {
    display: flex;
}

.blog-collection-workspace-preview-select {
    min-width: min(380px, 40vw);
}

.blog-collection-workspace-reader-row {
    position: relative;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 42px rgba(102, 121, 143, 0.07);
    overflow: visible;
}

.blog-collection-reader-close-btn {
    position: sticky;
    top: 118px;
    z-index: 50;
    display: flex;
    width: max-content;
    margin: 22px 22px 0 auto;
}

.blog-collection-reader-frame-shell {
    border-radius: inherit;
    overflow: hidden;
    background: #fff;
}

.blog-collection-real-blog-frame {
    display: block;
    width: 100%;
    min-height: 780px;
    border: 0;
    background: #fff;
    overflow: hidden;
}

.blog-collection-public-reader-row .blog-collection-reader-close-btn {
    top: calc(var(--preview-video-header-height, 132px) + 16px);
    z-index: 140;
    background: #fff;
}

.blog-collection-preview-menu {
    position: absolute;
    left: calc(24px + (var(--blog-collection-preview-width) - 188px) / 2);
    top: calc(24px + (var(--blog-collection-preview-height) - 139px) / 2);
    z-index: 20;
    width: 188px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 22px 46px rgba(36, 49, 68, 0.18);
}

.blog-collection-preview-menu[hidden] {
    display: none;
}

.blog-collection-preview-menu-option {
    width: 100%;
    justify-content: center;
    min-height: 33px;
    margin: 0;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
}

.blog-collection-preview-menu-option + .blog-collection-preview-menu-option {
    margin-top: 6px;
}

.blog-collection-preview-menu-option.is-selected {
    background: color-mix(in srgb, var(--blog-accent, #bca9df) 18%, #fff);
    border-color: color-mix(in srgb, var(--blog-accent, #bca9df) 70%, var(--line));
    font-weight: 500;
}

.blog-collection-inline-reader {
    width: min(980px, 100%);
    margin: 28px auto 0;
}

.blog-reader-page.blog-reader-collection-embed {
    min-height: 0;
    background: #fff;
}

.blog-reader-page.blog-reader-collection-embed .blog-reader {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 42px 0 50px;
}

.blog-collection-preview-page.blog-collection-embedded {
    min-height: 0;
    background: transparent;
}

.blog-collection-preview-page.blog-collection-embedded .blog-collection-public {
    width: 100%;
    margin: 0;
    padding: 0;
}

.blog-collection-preview-page.blog-collection-embedded.blog-reader-preview-mode .blog-collection-public {
    padding-top: 0;
}

.blog-collection-preview-page {
    --blog-collection-public-width: min(1200px, 94vw);
    --blog-collection-preview-width: 300px;
    --blog-collection-preview-height: 170px;
    --preview-inline-gap: max(24px, calc((100vw - var(--blog-collection-public-width)) / 2));
    background: #fff;
}

.blog-collection-public {
    width: var(--blog-collection-public-width);
    margin: 0 auto;
    padding: 22px 0 90px;
}

.blog-collection-preview-page.blog-reader-preview-mode .blog-collection-public {
    padding-top: calc(var(--preview-video-header-height) + 22px);
}

.blog-collection-public-head {
    margin-bottom: 28px;
}

.blog-collection-public-head p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.blog-collection-public-head h1 {
    margin: 0;
    color: var(--ink);
    font-family: "Noy Display", "Charter", Georgia, "Times New Roman", serif;
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    line-height: 0.96;
    font-weight: 700;
    letter-spacing: 0;
}

.blog-collection-public-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.blog-collection-public-card {
    position: relative;
    display: grid;
    grid-template-columns: var(--blog-collection-preview-width) minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 42px rgba(102, 121, 143, 0.07);
}

.blog-collection-public-thumb {
    width: var(--blog-collection-preview-width);
    height: var(--blog-collection-preview-height);
    min-height: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fbff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
}

.blog-collection-public-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-collection-public-copy {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
    align-self: stretch;
}

.blog-collection-public-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    grid-template-rows: minmax(0, 1fr) auto auto;
    align-items: start;
    gap: 24px;
    row-gap: 6px;
    min-height: var(--blog-collection-preview-height);
    margin-top: 0;
}

.blog-collection-public-copy h2 {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    margin: 0;
    color: var(--ink);
    font-family: "Noy Display", "Charter", Georgia, "Times New Roman", serif;
    font-size: 1.72rem;
    line-height: 0.98;
    font-weight: 700;
    letter-spacing: 0;
}

.blog-collection-public-text {
    grid-column: 1;
    grid-row: 3;
    display: grid;
    gap: 4px;
    align-content: end;
    align-self: end;
    min-width: 0;
}

.blog-collection-public-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.45;
}

.blog-collection-public-excerpt {
    max-width: 70ch;
    color: #7b8798;
    font-size: 0.94rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.blog-collection-public-title-row .blog-collection-read-btn {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    min-height: 34px;
    padding: 0 16px;
    font-size: 0.86rem;
    font-weight: 500;
}

.blog-collection-public-date-wrap {
    grid-column: 2;
    grid-row: 3;
    align-self: end;
    justify-self: end;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.45;
    white-space: nowrap;
}

.blog-collection-public-empty {
    margin: 0;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    text-align: center;
}

@media (max-width: 980px) {
    .blog-collection-public-card {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .blog-collection-public-thumb {
        width: min(100%, var(--blog-collection-preview-width));
    }

    .blog-collection-public-title-row {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto auto auto;
        min-height: 0;
    }

    .blog-collection-public-title-row .blog-collection-workspace-languages,
    .blog-collection-public-title-row h2,
    .blog-collection-public-text,
    .blog-collection-public-title-row .blog-collection-read-btn,
    .blog-collection-public-date-wrap {
        grid-column: 1;
        grid-row: auto;
        justify-self: start;
    }
}

@media (max-width: 640px) {
    .blog-collection-public {
        width: min(100% - 28px, 560px);
        padding-bottom: 56px;
    }

    .blog-collection-public-card {
        gap: 18px;
        padding: 16px;
        border-radius: 16px;
    }
}

.blog-collection-inline-reader > * + * {
    margin-top: 24px;
}

.blog-collection-inline-empty {
    margin: 0;
    text-align: center;
}

.blog-collection-inline-text {
    color: color-mix(in srgb, var(--ink) 68%, var(--muted));
    font-family: "Noy Text", Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    line-height: 1.58;
}

.blog-collection-inline-text p {
    margin: 0;
}

.blog-collection-inline-text p + p {
    margin-top: 1em;
}

.blog-collection-inline-divider {
    width: 48px;
    height: 1px;
    margin-inline: auto;
    background: color-mix(in srgb, var(--muted) 45%, transparent);
}

.blog-collection-inline-media {
    margin-inline: auto;
}

.blog-collection-inline-media img,
.blog-collection-inline-media video {
    display: block;
    max-width: 100%;
    border-radius: 10px;
}

.blog-collection-inline-audio {
    max-width: 680px;
    margin-inline: auto;
}

.blog-collection-inline-audio audio {
    width: 100%;
}

.blog-collection-inline-media figcaption,
.blog-collection-inline-audio figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: 0.88rem;
    text-align: center;
}

.blog-collection-workspace-status,
.blog-collection-workspace-empty {
    color: var(--muted);
}

@media (max-width: 1100px) {
    .blog-collection-workspace-shell {
        width: min(100vw - 48px, 760px);
    }

    .blog-collection-workspace-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .blog-collection-workspace-reader-row {
        padding: 0;
    }

    .blog-collection-workspace-thumb {
        max-width: 100%;
    }

    .blog-collection-workspace-preview-select {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .blog-collection-workspace-shell {
        width: min(100vw - 28px, 560px);
        margin-top: 14px;
    }

    .blog-collection-workspace-row {
        padding: 16px;
        border-radius: 16px;
    }

    .blog-collection-workspace-reader-row {
        padding: 0;
        border-radius: 16px;
    }

    .blog-collection-workspace-thumb {
        max-width: 100%;
    }
}

.review-admin[data-project-mode="files"] .topbar-actions {
    flex-wrap: nowrap;
}

.review-admin[data-project-mode="video"] {
    min-height: 100vh;
    background:
        radial-gradient(1320px 680px at 50% 700px, rgba(154, 183, 221, 0.38) 0%, rgba(154, 183, 221, 0.08) 64%, rgba(154, 183, 221, 0) 86%),
        linear-gradient(180deg, #ffffff 0%, #ffffff 360px, #f2f7fe 540px, #e4edf9 100%);
}

.review-admin[data-project-mode="photo"] {
    min-height: 100vh;
    background:
        radial-gradient(1320px 680px at 50% 700px, rgba(177, 208, 156, 0.075) 0%, rgba(177, 208, 156, 0.018) 64%, rgba(177, 208, 156, 0) 86%),
        linear-gradient(180deg, #ffffff 0%, #ffffff 360px, #fcfefb 540px, #f9fcf6 100%);
}

.review-admin[data-project-mode="files"] {
    min-height: 100vh;
    background:
        radial-gradient(1320px 680px at 50% 700px, rgba(227, 193, 90, 0.06) 0%, rgba(227, 193, 90, 0.014) 64%, rgba(227, 193, 90, 0) 86%),
        linear-gradient(180deg, #ffffff 0%, #ffffff 360px, #fffef9 540px, #fdfbf3 100%);
    background-attachment: fixed, fixed;
    overflow-x: hidden;
    overflow-y: hidden;
}

.review-admin[data-project-mode="files"].files-share-open {
    background:
        radial-gradient(1320px 680px at 50% 700px, rgba(227, 193, 90, 0.06) 0%, rgba(227, 193, 90, 0.014) 64%, rgba(227, 193, 90, 0) 86%),
        linear-gradient(180deg, #ffffff 0%, #ffffff 360px, #fffef9 540px, #fdfbf3 100%);
    background-attachment: fixed, fixed;
}

.review-admin[data-project-mode="files"] .layout {
    width: min(1640px, 84vw);
    min-height: calc(100dvh - 30px);
    height: calc(100dvh - 30px);
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.review-admin[data-project-mode="files"] .project-header-sticky,
.review-admin[data-project-mode="files"] .files-dropzone-row,
.review-admin[data-project-mode="files"] #upload-queue-panel,
.review-admin[data-project-mode="files"] #share-details {
    width: min(1590px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.review-admin[data-project-mode="files"] .project-content-shell {
    width: min(1590px, 100%);
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.review-admin[data-project-mode="files"] #video-grid,
.review-admin[data-project-mode="files"] #empty-state {
    width: min(1590px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.review-admin[data-project-mode="files"] #video-grid {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding-bottom: 18px;
    scrollbar-width: thin;
    scrollbar-color: rgba(200, 212, 227, 0.56) #eef3fa;
}

.review-admin[data-project-mode="files"] #video-grid::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

.review-admin[data-project-mode="files"] #video-grid::-webkit-scrollbar-track {
    background: #eef3fa;
    border-radius: 999px;
}

.review-admin[data-project-mode="files"] #video-grid::-webkit-scrollbar-track-piece:start {
    margin-top: 120px;
}

.review-admin[data-project-mode="files"] #video-grid::-webkit-scrollbar-track-piece:end {
    margin-bottom: 120px;
}

.review-admin[data-project-mode="files"] #video-grid::-webkit-scrollbar-thumb {
    background-color: rgba(200, 212, 227, 0.56);
    background-clip: content-box;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-radius: 999px;
}

.review-admin[data-project-mode="files"] #video-grid::-webkit-scrollbar-thumb:hover {
    background-color: rgba(183, 199, 218, 0.56);
    background-clip: content-box;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
}

.review-admin[data-project-mode="audio"] {
    min-height: 100vh;
    background:
        radial-gradient(1320px 680px at 50% 700px, rgba(213, 159, 214, 0.06) 0%, rgba(213, 159, 214, 0.014) 64%, rgba(213, 159, 214, 0) 86%),
        linear-gradient(180deg, #ffffff 0%, #ffffff 360px, #fefbfe 540px, #fbf7fb 100%);
}

.review-admin[data-project-mode="photo"] .layout,
.review-admin[data-project-mode="video"] .layout,
.review-admin[data-project-mode="blog"] .layout {
    width: min(1640px, 84vw);
    min-height: calc(100dvh - 30px);
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.review-admin[data-project-mode="photo"] .project-header-sticky,
.review-admin[data-project-mode="photo"] .share-access-summary-wrap,
.review-admin[data-project-mode="photo"] #dropzone,
.review-admin[data-project-mode="photo"] .share-details,
.review-admin[data-project-mode="photo"] #video-grid,
.review-admin[data-project-mode="photo"] #empty-state,
.review-admin[data-project-mode="audio"] .project-header-sticky,
.review-admin[data-project-mode="audio"] .share-access-summary-wrap,
.review-admin[data-project-mode="audio"] #dropzone,
.review-admin[data-project-mode="audio"] .share-details,
.review-admin[data-project-mode="audio"] #video-grid,
.review-admin[data-project-mode="audio"] #empty-state,
.review-admin[data-project-mode="video"] .project-header-sticky,
.review-admin[data-project-mode="video"] .share-access-summary-wrap,
.review-admin[data-project-mode="video"] #dropzone,
.review-admin[data-project-mode="video"] .share-details,
.review-admin[data-project-mode="video"] #video-grid,
.review-admin[data-project-mode="video"] #empty-state,
.review-admin[data-project-mode="blog"] .project-header-sticky {
    width: min(1590px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone,
.review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone,
.review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone {
    width: calc(50% - 10px);
    margin-left: 0;
    margin-right: auto;
}

.review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone {
    width: auto;
    flex: 1 1 auto;
}

.review-admin[data-project-mode="photo"].photo-grid-scale-50:not(.video-list-mode) #video-grid.video-grid.photo-grid {
    width: 50%;
}

.review-admin[data-project-mode="video"].video-grid-scale-50:not(.video-list-mode) #video-grid.video-grid {
    width: 50%;
}

@media (max-width: 1280px) {
    .review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone,
    .review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone,
    .review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone,
    .review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.files-upload-dropzone {
        width: clamp(320px, 40vw, 520px);
        min-width: 320px;
        max-width: 520px;
        flex-basis: clamp(320px, 40vw, 520px);
    }

    .review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone {
        width: auto;
        min-width: 180px;
        max-width: none;
        flex: 1 1 auto;
        flex-basis: auto;
    }
}

@media (max-width: 1200px) {
    .review-admin[data-project-mode="files"] .topbar-actions {
        flex-wrap: wrap;
    }
    .review-admin[data-project-mode="files"] .topbar-actions #bulk-delete-btn {
        margin-left: 0;
    }
}

@media (max-width: 900px) {
    .review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone,
    .review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone,
    .review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone,
    .review-admin[data-project-mode="files"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone.files-upload-dropzone {
        width: min(100%, 420px);
        min-width: 220px;
        max-width: 420px;
        flex-basis: min(100%, 420px);
    }

    .review-admin[data-project-mode="audio"] .topbar-actions {
        flex-wrap: wrap;
    }

    .review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone {
        width: min(100%, 420px);
        min-width: 160px;
        max-width: 420px;
        flex: 1 1 220px;
        flex-basis: 220px;
    }
}

.review-admin .library-head,
.review-admin:not([data-project-mode="photo"]):not([data-project-mode="video"]) #video-grid,
.review-admin:not([data-project-mode="photo"]):not([data-project-mode="video"]) #empty-state {
    padding-left: 14px;
    padding-right: 14px;
}

.review-admin:not([data-project-mode="photo"]):not([data-project-mode="video"]) #video-grid {
    padding-left: 0;
    padding-right: 0;
}

.review-admin.audio-mode #video-grid,
.review-client.audio-mode #video-grid {
    padding-left: 0;
    padding-right: 0;
}

.review-admin[data-project-mode="audio"] #dropzone,
.review-admin[data-project-mode="audio"] #video-grid,
.review-admin[data-project-mode="audio"] #empty-state {
    width: min(1590px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.review-admin[data-project-mode="audio"] #empty-state {
    text-align: center;
}

.review-admin[data-project-mode="audio"] #video-grid {
    padding-left: 0;
    padding-right: 0;
}

.project-logo-footer {
    display: grid;
    justify-items: center;
    margin-top: auto;
    padding-top: clamp(32px, 7vh, 84px);
    padding-bottom: clamp(18px, 4vh, 40px);
}

.project-logo-footer-image {
    display: block;
    width: auto;
    height: clamp(16px, 2.08vw, 27px);
    object-fit: contain;
    opacity: 0.5;
}

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

.client-top-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    margin-left: auto;
}

.client-back-btn {
    margin-bottom: 0;
}

.review-client.client-photo-mode:not(.preview-page) .client-back-btn {
    position: fixed;
    top: 18px;
    left: auto;
    right: 18px;
    z-index: 5000;
    margin: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    padding: 6px 9px;
    font-size: 0.8rem;
    min-height: 30px;
    border-radius: 9px;
    font-weight: 400;
}

.client-site-page .client-back-btn {
    position: absolute;
    top: 50%;
    left: calc(50vw - min(1200px, 94vw) / 2 + 14px);
    right: auto;
    transform: translateY(-50%);
    z-index: 140;
    margin: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    padding: 6px 9px;
    font-size: 0.8rem;
    min-height: 30px;
    border-radius: 9px;
    font-weight: 400;
}

.client-site-page .client-back-btn .client-back-btn-prefix {
    font-weight: 400;
    color: #d12a2a;
}

.client-site-page .client-back-btn .client-back-btn-suffix {
    font-weight: 400;
}

.client-site-page .client-back-btn .client-back-btn-sep {
    display: inline-block;
    margin: 0 8px;
    font-weight: 400;
}

.client-site-page .client-back-btn:hover,
.client-site-page .client-back-btn:focus,
.client-site-page .client-back-btn:focus-visible,
.client-site-page .client-back-btn:active {
    border-color: #8fb5de;
    background: #eaf3fd;
    color: #1d5f9f;
}

.client-site-page .client-back-btn:hover .client-back-btn-prefix,
.client-site-page .client-back-btn:focus .client-back-btn-prefix,
.client-site-page .client-back-btn:focus-visible .client-back-btn-prefix,
.client-site-page .client-back-btn:active .client-back-btn-prefix {
    color: #1d5f9f;
}

.emphasis-btn {
    background: #edf4fb !important;
    border-color: #c6d6e8 !important;
    color: #2c4b66 !important;
}

.emphasis-btn:hover,
.emphasis-btn:focus,
.emphasis-btn:focus-visible {
    background: #e1edf9 !important;
    border-color: #b7cce3 !important;
    color: #1f3f5c !important;
}

.bulk-delete-btn[disabled] {
    opacity: 1;
    cursor: not-allowed;
    background: #fff;
    border-color: var(--line);
    color: #97a4b2;
    padding: 10px 12px;
    font-size: 1rem;
    font-weight: 500;
}

.bulk-delete-btn:not([disabled]) {
    background: #fff;
    border-color: #e33636;
    color: #e33636;
    padding: 10px 12px;
    font-size: 1rem;
    font-weight: 500;
}

.bulk-delete-btn:not([disabled]):hover {
    background: #fff;
    border-color: #e33636;
    color: #e33636;
}

.topbar-actions .bulk-delete-btn {
    min-height: 42px;
    border-radius: 10px;
    white-space: nowrap;
    padding: 10px 10px;
    font-size: 0.94rem;
}

.project-nav-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    background: #0b62d6 !important;
    border: 2px solid #0b62d6 !important;
    color: #fff !important;
    font-weight: 700;
    border-radius: 14px;
    padding: 12px 20px;
}

.project-nav-btn:hover {
    background: #fff !important;
    color: #0b62d6 !important;
    border-color: #0b62d6 !important;
}

#show-favorites-btn.is-active {
    background: #e1edf9;
    border-color: #b7cce3;
    color: #1f3f5c;
}

.share-details {
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.project-panel {
    padding: 18px;
}

.share-details h2 {
    margin-bottom: 10px;
}

.share-details-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.share-details-head h2 {
    margin: 0;
}

.review-admin[data-project-mode="video"] .share-details-head,
.review-admin[data-project-mode="photo"] .share-details-head,
.review-admin[data-project-mode="audio"] .share-details-head {
    justify-content: space-between;
    margin-bottom: 14px;
}

.review-admin[data-project-mode="video"] .share-details-head {
    margin-bottom: 18px;
}

.review-admin[data-project-mode="files"] .share-details-head {
    justify-content: space-between;
    margin-bottom: 18px;
}

.review-admin[data-project-mode="video"] .share-details-head h2,
.review-admin[data-project-mode="photo"] .share-details-head h2,
.review-admin[data-project-mode="audio"] .share-details-head h2 {
    margin-left: 14px;
    margin-top: 8px;
}

.review-admin[data-project-mode="video"] .share-details-head h2,
.review-admin[data-project-mode="files"] .share-details-head h2 {
    margin-left: 7px;
    margin-top: 8px;
}

.review-admin[data-project-mode="video"] .share-details-head h2,
.review-admin[data-project-mode="files"] .share-details-head h2,
.review-admin[data-project-mode="photo"] .share-details-head h2,
.review-admin[data-project-mode="audio"] .share-details-head h2 {
    font-size: clamp(0.95rem, 1.5vw, 1.08rem);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.2;
}

.review-admin[data-project-mode="video"] .share-details-head h2 .share-title-prefix,
.review-admin[data-project-mode="files"] .share-details-head h2 .share-title-prefix,
.review-admin[data-project-mode="photo"] .share-details-head h2 .share-title-prefix,
.review-admin[data-project-mode="audio"] .share-details-head h2 .share-title-prefix {
    font-weight: 400;
    color: #2f4760;
}

.review-admin[data-project-mode="video"] .share-details-head h2 .share-title-divider,
.review-admin[data-project-mode="files"] .share-details-head h2 .share-title-divider,
.review-admin[data-project-mode="photo"] .share-details-head h2 .share-title-divider,
.review-admin[data-project-mode="audio"] .share-details-head h2 .share-title-divider {
    font-weight: 400;
    color: #6f869d;
}

.review-admin[data-project-mode="video"] .share-details-head h2 .share-title-name,
.review-admin[data-project-mode="files"] .share-details-head h2 .share-title-name,
.review-admin[data-project-mode="photo"] .share-details-head h2 .share-title-name,
.review-admin[data-project-mode="audio"] .share-details-head h2 .share-title-name {
    font-weight: 700;
    color: var(--ink);
}

.review-admin[data-project-mode="video"] .share-details-close-btn,
.review-admin[data-project-mode="files"] .share-details-close-btn,
.review-admin[data-project-mode="photo"] .share-details-close-btn,
.review-admin[data-project-mode="audio"] .share-details-close-btn {
    flex: 0 0 auto;
    box-sizing: border-box;
    min-width: calc(var(--dash-pill-height) * 0.81);
    min-height: calc(var(--dash-pill-height) * 0.81);
    height: calc(var(--dash-pill-height) * 0.81);
    padding: 0 calc(var(--dash-pill-padding-x) * 0.81);
    border-radius: calc(var(--dash-pill-radius) * 0.81);
    font-size: calc(var(--dash-pill-font-size) * 0.81);
    font-weight: 400;
    line-height: 1;
    margin-top: 0;
}

.review-admin[data-project-mode="video"] .share-details-close-btn {
    align-items: center;
    justify-content: center;
    font-size: 0;
    text-align: center;
}

.review-admin[data-project-mode="video"] .share-details-close-btn::before {
    content: "X";
    display: block;
    font-size: calc(var(--dash-pill-font-size) * 0.73);
    font-weight: 400;
    line-height: 1;
}

.share-project-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 14px 12px;
    flex-wrap: wrap;
}

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

.share-project-picker-create,
.share-project-picker-item {
    min-height: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: 400;
}

.share-project-picker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1e2e44;
}

.share-project-picker-item-color {
    --share-pill-color: #39ff14;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--share-pill-color);
    border: 1px solid #d0dae6;
    flex: 0 0 auto;
}

.share-project-picker-item.is-active {
    border-color: #c6d6e8 !important;
    background: #eaf3fd !important;
    color: #1f3f5c !important;
    box-shadow: none !important;
}

.share-project-picker-item:focus,
.share-project-picker-item:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.share-project-picker-inline {
    margin: 10px 0 2px;
    padding-left: 0;
    padding-right: 0;
}

.review-admin[data-project-mode="photo"] .share-project-picker-inline {
    width: min(1590px, 100%);
    margin: 10px auto 2px;
}

.review-admin[data-project-mode="photo"] .share-project-picker-inline .share-project-picker-item {
    font-weight: 400 !important;
}

#share-status:empty {
    display: none;
}

#share-details #share-status {
    width: 100%;
    margin: 12px auto 0;
    text-align: center;
}

.share-library-layout {
    display: grid;
    gap: 14px;
}

.review-admin[data-project-mode="video"] .share-library-layout {
    gap: 21.6px;
}

.share-link-panel,
.share-access-panel {
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
    padding: 14px;
}

.share-link-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.share-access-panel {
    display: grid;
    gap: 12px;
    overflow-x: auto;
}

.review-admin[data-project-mode="video"] .share-access-panel {
    gap: 15px;
}

.share-folder-scope-field {
    display: grid;
    gap: 8px;
    padding-top: 4px;
}

.share-folder-scope-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.share-folder-picker {
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    background: #fff;
    padding: 8px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 14px;
}

.share-folder-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: 0.9rem;
    white-space: nowrap;
}

.share-access-head {
    display: grid;
    gap: 4px;
}

.share-access-head h3 {
    margin: 0;
    font-size: 1rem;
}

.share-access-head p {
    margin: 0;
}

.share-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.share-grid label,
.share-field {
    display: grid;
    gap: 6px;
    font-size: 0.86rem;
    color: var(--muted);
}

.share-field span {
    font-weight: 600;
}

.share-link-field input {
    background: #f8fbfe;
    color: var(--ink);
}

.share-grid-compact {
    grid-template-columns: minmax(170px, 1fr) minmax(140px, 0.85fr) minmax(140px, 0.85fr) minmax(140px, 0.85fr) minmax(135px, 0.8fr) minmax(120px, 0.6fr) minmax(150px, 0.8fr);
    align-items: end;
    min-width: 980px;
}

.share-grid-video-pills {
    display: grid;
    grid-template-columns: minmax(230px, 2fr) repeat(6, minmax(120px, 1fr));
    gap: 8px;
    align-items: center;
}

/* Files mode uses the download pill as collaboration, so it has fewer controls. */
.review-admin[data-project-mode="files"] .share-grid-video-pills {
    grid-template-columns: minmax(230px, 2fr) repeat(5, minmax(120px, 1fr));
}

.review-admin[data-project-mode="files"] #share-details .share-grid-video-pills {
    grid-template-columns:
        minmax(230px, 1fr)
        154px
        minmax(170px, 0.8fr)
        minmax(170px, 0.8fr)
        154px;
    column-gap: 7px;
    row-gap: 8px;
    align-items: center;
}

.review-admin[data-project-mode="files"] #share-details .share-grid-video-pills #share-download-toggle-btn {
    display: none;
}

.review-admin[data-project-mode="files"] #share-details .share-grid-video-pills .soft-btn,
.review-admin[data-project-mode="files"] #share-details .share-grid-video-pills .share-pill-input {
    min-height: 38px;
    height: 38px;
    border-radius: 14px;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
}

.review-admin[data-project-mode="files"] #share-details .share-grid-video-pills .share-pill-input {
    padding: 0 12px;
}

.review-admin[data-project-mode="files"] #share-details .share-grid-video-pills .share-video-generate-btn {
    padding-left: 8px;
    padding-right: 8px;
}

.review-admin[data-project-mode="video"] .share-grid-video-pills,
.review-admin[data-project-mode="photo"] .share-grid-video-pills,
.review-admin[data-project-mode="audio"] .share-grid-video-pills {
    grid-template-columns:
        minmax(230px, 1fr)
        154px
        minmax(170px, 0.8fr)
        minmax(170px, 0.8fr)
        154px;
    column-gap: 7px;
    row-gap: 8px;
}

.review-admin[data-project-mode="video"] .share-access-panel,
.review-admin[data-project-mode="photo"] .share-access-panel,
.review-admin[data-project-mode="audio"] .share-access-panel {
    padding: 10px 12px;
    background: #fbfcfe;
    overflow-x: visible;
}

.review-admin[data-project-mode="video"] .share-grid-video-pills .soft-btn,
.review-admin[data-project-mode="video"] .share-grid-video-pills .share-pill-input,
.review-admin[data-project-mode="photo"] .share-grid-video-pills .soft-btn,
.review-admin[data-project-mode="photo"] .share-grid-video-pills .share-pill-input,
.review-admin[data-project-mode="audio"] .share-grid-video-pills .soft-btn,
.review-admin[data-project-mode="audio"] .share-grid-video-pills .share-pill-input {
    min-height: 38px;
    height: 38px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 0.78rem;
}

.review-admin[data-project-mode="video"] .share-grid-video-pills .share-pill-input,
.review-admin[data-project-mode="photo"] .share-grid-video-pills .share-pill-input,
.review-admin[data-project-mode="audio"] .share-grid-video-pills .share-pill-input {
    padding-left: 12px;
    padding-right: 12px;
}

.review-admin[data-project-mode="video"] .share-grid-video-pills .share-video-generate-btn,
.review-admin[data-project-mode="photo"] .share-grid-video-pills .share-video-generate-btn,
.review-admin[data-project-mode="audio"] .share-grid-video-pills .share-video-generate-btn {
    padding-left: 8px;
    padding-right: 8px;
}

@media (max-width: 1180px) {
    .review-admin[data-project-mode="files"] #share-details .share-grid-video-pills {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .review-admin[data-project-mode="files"] #share-details .share-grid-video-pills #share-name,
    .review-admin[data-project-mode="files"] #share-details .share-grid-video-pills #share-username-field,
    .review-admin[data-project-mode="files"] #share-details .share-grid-video-pills #share-password-field,
    .review-admin[data-project-mode="files"] #share-details .share-grid-video-pills #create-share-login {
        grid-column: span 2;
    }

    .review-admin[data-project-mode="video"] .share-grid-video-pills,
    .review-admin[data-project-mode="photo"] .share-grid-video-pills,
    .review-admin[data-project-mode="audio"] .share-grid-video-pills {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .review-admin[data-project-mode="video"] .share-grid-video-pills #share-name,
    .review-admin[data-project-mode="video"] .share-grid-video-pills #share-username-field,
    .review-admin[data-project-mode="video"] .share-grid-video-pills #share-password-field,
    .review-admin[data-project-mode="video"] .share-grid-video-pills #create-share-login,
    .review-admin[data-project-mode="photo"] .share-grid-video-pills #share-name,
    .review-admin[data-project-mode="photo"] .share-grid-video-pills #share-username-field,
    .review-admin[data-project-mode="photo"] .share-grid-video-pills #share-password-field,
    .review-admin[data-project-mode="photo"] .share-grid-video-pills #create-share-login,
    .review-admin[data-project-mode="audio"] .share-grid-video-pills #share-name,
    .review-admin[data-project-mode="audio"] .share-grid-video-pills #share-username-field,
    .review-admin[data-project-mode="audio"] .share-grid-video-pills #share-password-field,
    .review-admin[data-project-mode="audio"] .share-grid-video-pills #create-share-login {
        grid-column: span 2;
    }
}

@media (max-width: 900px) {
    .review-admin[data-project-mode="files"] #share-details .share-grid-video-pills {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .review-admin[data-project-mode="files"] #share-details .share-grid-video-pills #share-name,
    .review-admin[data-project-mode="files"] #share-details .share-grid-video-pills #create-share-login {
        grid-column: 1 / -1;
    }

    .review-admin[data-project-mode="files"] #share-details .share-grid-video-pills #share-username-field,
    .review-admin[data-project-mode="files"] #share-details .share-grid-video-pills #share-password-field {
        grid-column: span 1;
    }
}

.share-grid-video-pills .soft-btn,
.share-grid-video-pills .share-pill-input {
    min-height: 42px;
    border-radius: 14px;
    font-size: 0.92rem;
}

.share-grid-video-pills .soft-btn {
    justify-content: center;
    text-align: center;
}

.share-grid-video-pills .share-require-login-toggle.is-on {
    background: rgba(11, 98, 214, 0.5);
    border-color: var(--line);
    color: #fff;
}

.share-grid-video-pills .share-require-login-toggle.is-on:hover,
.share-grid-video-pills .share-require-login-toggle.is-on:focus,
.share-grid-video-pills .share-require-login-toggle.is-on:focus-visible {
    background: rgba(11, 98, 214, 0.62);
    border-color: var(--line);
    color: #fff;
}

.share-grid-video-pills .share-require-login-toggle.is-off {
    background: rgba(227, 54, 54, 0.5);
    border-color: var(--line);
    color: #fff;
}

.share-grid-video-pills .share-require-login-toggle.is-off:hover,
.share-grid-video-pills .share-require-login-toggle.is-off:focus,
.share-grid-video-pills .share-require-login-toggle.is-off:focus-visible {
    background: rgba(227, 54, 54, 0.62);
    border-color: var(--line);
    color: #fff;
}

.share-grid-video-pills .share-download-toggle.is-allow {
    background: rgba(11, 98, 214, 0.5);
    border-color: var(--line);
    color: #fff;
}

.share-grid-video-pills .share-download-toggle.is-allow:hover,
.share-grid-video-pills .share-download-toggle.is-allow:focus,
.share-grid-video-pills .share-download-toggle.is-allow:focus-visible,
.share-grid-video-pills .share-collaboration-toggle.is-allow:hover,
.share-grid-video-pills .share-collaboration-toggle.is-allow:focus,
.share-grid-video-pills .share-collaboration-toggle.is-allow:focus-visible,
.share-grid-video-pills .share-comments-toggle.is-allow:hover,
.share-grid-video-pills .share-comments-toggle.is-allow:focus,
.share-grid-video-pills .share-comments-toggle.is-allow:focus-visible {
    background: rgba(11, 98, 214, 0.62);
    border-color: var(--line);
    color: #fff;
}

.share-grid-video-pills .share-collaboration-toggle.is-allow,
.share-grid-video-pills .share-comments-toggle.is-allow {
    background: rgba(11, 98, 214, 0.5);
    border-color: var(--line);
    color: #fff;
}

.share-grid-video-pills .share-download-toggle.is-deny {
    background: rgba(227, 54, 54, 0.5);
    border-color: var(--line);
    color: #fff;
}

.share-grid-video-pills .share-download-toggle.is-deny:hover,
.share-grid-video-pills .share-download-toggle.is-deny:focus,
.share-grid-video-pills .share-download-toggle.is-deny:focus-visible,
.share-grid-video-pills .share-collaboration-toggle.is-deny:hover,
.share-grid-video-pills .share-collaboration-toggle.is-deny:focus,
.share-grid-video-pills .share-collaboration-toggle.is-deny:focus-visible,
.share-grid-video-pills .share-comments-toggle.is-deny:hover,
.share-grid-video-pills .share-comments-toggle.is-deny:focus,
.share-grid-video-pills .share-comments-toggle.is-deny:focus-visible {
    background: rgba(227, 54, 54, 0.62);
    border-color: var(--line);
    color: #fff;
}

.share-grid-video-pills .share-collaboration-toggle.is-deny,
.share-grid-video-pills .share-comments-toggle.is-deny {
    background: rgba(227, 54, 54, 0.5);
    border-color: var(--line);
    color: #fff;
}

.share-video-pill-field.is-disabled .share-pill-input {
    opacity: 0;
    pointer-events: none;
}

.share-video-generate-btn {
    background: var(--pin-accent);
    border-color: var(--pin-accent-line);
    color: #fff;
}

.share-grid-video-pills .share-require-login-toggle,
.share-grid-video-pills .share-download-toggle,
.share-grid-video-pills .share-collaboration-toggle,
.share-grid-video-pills .share-comments-toggle,
.share-grid-video-pills .share-video-generate-btn {
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
}

.share-video-generate-btn:hover,
.share-video-generate-btn:focus,
.share-video-generate-btn:focus-visible {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.14)),
        linear-gradient(var(--pin-accent), var(--pin-accent));
    background-blend-mode: multiply;
    border-color: var(--pin-accent-line);
    color: #fff;
}

.share-pill-input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    outline: none;
}

.share-pill-input:focus,
.share-pill-input:focus-visible {
    border-color: var(--line);
    box-shadow: 0 0 0 1px rgba(182, 198, 216, 0.5);
}

.share-max-upload-field input::-webkit-outer-spin-button,
.share-max-upload-field input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.share-max-upload-field input[type="number"] {
    -webkit-appearance: none;
    appearance: textfield;
    -moz-appearance: textfield;
}

.share-access-type-field .soft-btn {
    width: 100%;
    min-height: 42px;
    justify-content: flex-start;
    text-align: left;
}

.share-require-login-toggle.is-required {
    background: rgba(11, 98, 214, 0.5);
    border-color: var(--line);
    color: #fff;
}

.share-require-login-toggle.is-required:hover,
.share-require-login-toggle.is-required:focus,
.share-require-login-toggle.is-required:focus-visible {
    background: rgba(11, 98, 214, 0.62);
    border-color: var(--line);
    color: #fff;
}

.share-require-login-toggle.is-public {
    background: rgba(227, 54, 54, 0.5);
    border-color: var(--line);
    color: #fff;
}

.share-require-login-toggle.is-public:hover,
.share-require-login-toggle.is-public:focus,
.share-require-login-toggle.is-public:focus-visible {
    background: rgba(227, 54, 54, 0.62);
    border-color: var(--line);
    color: #fff;
}

.share-copy-btn {
    white-space: nowrap;
    align-self: end;
    height: 42px;
    padding: 0 14px;
    font-size: 0.88rem;
    font-weight: 600;
}

.share-action-field {
    align-self: end;
}

.share-action-field > span {
    visibility: hidden;
}

.share-action-field .soft-btn {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    font-weight: 700;
    background: rgba(37, 150, 95, 0.5);
    border-color: var(--line);
    color: #fff;
}

.share-action-field .soft-btn:hover {
    background: rgba(37, 150, 95, 0.62);
    border-color: var(--line);
    color: #fff;
}

.share-download-field .soft-btn {
    width: 100%;
    min-height: 42px;
    justify-content: flex-start;
    text-align: left;
}

.share-download-toggle.is-enabled {
    background: rgba(11, 98, 214, 0.5);
    border-color: var(--line);
    color: #fff;
}

.share-download-toggle.is-enabled:hover,
.share-download-toggle.is-enabled:focus,
.share-download-toggle.is-enabled:focus-visible {
    background: rgba(11, 98, 214, 0.62);
    border-color: var(--line);
    color: #fff;
}

.share-download-toggle.is-disabled {
    background: rgba(227, 54, 54, 0.5);
    border-color: var(--line);
    color: #fff;
}

.share-download-toggle.is-disabled:hover,
.share-download-toggle.is-disabled:focus,
.share-download-toggle.is-disabled:focus-visible {
    background: rgba(227, 54, 54, 0.62);
    border-color: var(--line);
    color: #fff;
}

.share-access-list-wrap {
    margin-top: 14px;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
    padding: 12px;
    display: grid;
    gap: 8px;
}

.share-projects-wrap {
    margin-top: 12px;
}

.review-admin[data-project-mode="video"] .share-projects-wrap {
    margin-top: 0;
    margin-bottom: 16.8px;
}

.review-admin[data-project-mode="files"] .share-projects-wrap {
    margin-top: 18px;
    margin-bottom: 18px;
}

.share-projects-wrap .share-access-summary-collapsible-summary {
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    min-height: 44px;
    padding: 0 16px;
    background: #fff;
    font-weight: 400;
    font-size: 0.92rem;
    justify-content: flex-start;
    gap: 8px;
    position: relative;
}

.share-projects-wrap .share-access-summary-collapsible-summary::after {
    content: "▾";
    width: auto;
    height: auto;
    font-size: 0.95rem;
    line-height: 1;
    color: #7c8a9e;
    transform: translateY(-50%) rotate(0deg);
    opacity: 1;
    position: absolute;
    right: 18px;
    top: 50%;
    transition: transform 180ms ease;
}

.share-projects-wrap .share-access-summary-collapsible[open] .share-access-summary-collapsible-summary::after {
    transform: translateY(-50%) rotate(-180deg);
}

.review-admin[data-project-mode="video"] .share-projects-wrap .share-access-summary-collapsible-summary,
.review-admin[data-project-mode="photo"] .share-projects-wrap .share-access-summary-collapsible-summary,
.review-admin[data-project-mode="audio"] .share-projects-wrap .share-access-summary-collapsible-summary,
.review-admin[data-project-mode="files"] .share-projects-wrap .share-access-summary-collapsible-summary {
    justify-content: flex-start;
    background: #eaf3fd;
    border-color: #c6d6e8;
    color: #1f3f5c;
}

.review-admin[data-project-mode="video"] .share-projects-wrap .share-access-summary-collapsible-title,
.review-admin[data-project-mode="photo"] .share-projects-wrap .share-access-summary-collapsible-title,
.review-admin[data-project-mode="audio"] .share-projects-wrap .share-access-summary-collapsible-title,
.review-admin[data-project-mode="files"] .share-projects-wrap .share-access-summary-collapsible-title {
    color: #1f3f5c;
}

.review-admin[data-project-mode="video"] .share-projects-wrap .share-projects-count,
.review-admin[data-project-mode="photo"] .share-projects-wrap .share-projects-count,
.review-admin[data-project-mode="audio"] .share-projects-wrap .share-projects-count,
.review-admin[data-project-mode="files"] .share-projects-wrap .share-projects-count {
    border-color: #b7cce3;
    color: #1f3f5c;
    background: #f6faff;
}

.share-projects-wrap .share-access-summary-collapsible-title {
    margin-right: 0;
}

.share-projects-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid #d1dce9;
    color: #6a7f97;
    background: #fff;
    font-size: 0.7rem;
    line-height: 1;
    margin-left: 0;
    padding: 0 5px;
}

.review-admin[data-project-mode="video"] .share-access-head,
.review-admin[data-project-mode="photo"] .share-access-head,
.review-admin[data-project-mode="audio"] .share-access-head,
.review-admin[data-project-mode="files"] .share-access-head {
    display: none;
}

.review-admin[data-project-mode="video"] .share-access-panel,
.review-admin[data-project-mode="video"] .share-access-list-wrap,
.review-admin[data-project-mode="photo"] .share-access-panel,
.review-admin[data-project-mode="photo"] .share-access-list-wrap,
.review-admin[data-project-mode="audio"] .share-access-panel,
.review-admin[data-project-mode="audio"] .share-access-list-wrap,
/* Files mode declutter: remove outer wrapper pills, keep inner controls/cards intact. */
.review-admin[data-project-mode="files"] .share-access-panel {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.review-admin[data-project-mode="video"] .share-access-list-wrap,
.review-admin[data-project-mode="photo"] .share-access-list-wrap,
.review-admin[data-project-mode="audio"] .share-access-list-wrap,
.review-admin[data-project-mode="files"] .share-access-list-wrap {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.review-admin[data-project-mode="video"] .share-access-list-wrap {
    margin-top: 28.8px;
}

.review-admin[data-project-mode="files"] .share-projects-wrap .share-projects-list {
    margin-top: 12px;
}

.share-projects-wrap .share-projects-list {
    margin-top: 10px;
}

.review-admin[data-project-mode="video"] .share-projects-wrap .share-projects-list {
    margin-top: 12px;
}

.review-admin[data-project-mode="video"] .media-share-projects-wrap,
.review-admin[data-project-mode="files"] .media-share-projects-wrap,
.review-admin[data-project-mode="photo"] .media-share-projects-wrap,
.review-admin[data-project-mode="audio"] .media-share-projects-wrap {
    gap: 18px;
    margin-top: 50px;
}

.review-admin[data-project-mode="video"] .media-share-projects-heading,
.review-admin[data-project-mode="files"] .media-share-projects-heading,
.review-admin[data-project-mode="photo"] .media-share-projects-heading,
.review-admin[data-project-mode="audio"] .media-share-projects-heading {
    margin: 0;
    color: #1f3f5c;
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
}

.review-admin[data-project-mode="video"] .media-share-projects-wrap .share-projects-list,
.review-admin[data-project-mode="files"] .media-share-projects-wrap .share-projects-list,
.review-admin[data-project-mode="photo"] .media-share-projects-wrap .share-projects-list,
.review-admin[data-project-mode="audio"] .media-share-projects-wrap .share-projects-list {
    margin-top: 0;
}

@media (max-width: 1180px) {
    .share-grid-video-pills {
        grid-template-columns: repeat(3, minmax(180px, 1fr));
    }
}

.share-access-list-wrap[hidden] {
    display: none !important;
}

.share-access-list-wrap h3 {
    margin: 0;
    font-size: 1rem;
}

.share-access-list {
    display: grid;
    gap: 8px;
}

.share-access-summary-wrap {
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
    padding: 12px;
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.share-access-summary-wrap[hidden] {
    display: none !important;
}

.share-access-summary-wrap h2 {
    margin: 0;
    font-size: 1rem;
}

.share-access-summary-list {
    display: grid;
    gap: 8px;
}

.share-access-summary-collapsible {
    border: none;
    background: transparent;
    padding: 0;
}

.share-access-summary-collapsible-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 36px;
    padding: 0 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-weight: 600;
    color: var(--ink);
}

.share-access-summary-collapsible-title {
    margin-right: auto;
}

.share-access-summary-close-btn {
    margin-left: auto;
    min-width: 34px;
    font-weight: 400;
}

.share-access-summary-collapsible-summary::-webkit-details-marker {
    display: none;
}

.share-access-summary-collapsible-list {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.share-access-summary-row {
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    background: #fff;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.share-access-summary-meta {
    display: grid;
    gap: 4px;
}

.share-access-summary-row.files-summary-row {
    display: grid;
    grid-template-columns: minmax(140px, 260px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.files-summary-alias {
    margin: 0;
}

.files-summary-folders {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.files-summary-open-link {
    justify-self: end;
}

.review-admin.files-mode .share-access-summary-row .soft-btn {
    min-height: 36px;
    height: 36px;
    padding-top: 0;
    padding-bottom: 0;
}

.share-access-summary-color {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--muted);
}

.share-access-summary-swatch {
    --swatch: #39ff14;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--swatch);
    border: 1px solid rgba(18, 32, 47, 0.16);
    display: inline-block;
}

.share-access-row {
    display: grid;
    grid-template-columns: minmax(190px, 1.1fr) minmax(160px, 0.95fr) minmax(160px, 1fr) minmax(160px, 1fr) minmax(150px, 0.85fr) auto;
    align-items: start;
    column-gap: 10px;
    row-gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.share-access-row.share-access-row-video-clean {
    grid-template-columns: 1fr;
    padding: 8px 10px 10px;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    background: #fff;
    gap: 10px;
}

.share-access-list.share-access-list-has-active .share-access-row.share-access-row-is-dimmed {
    opacity: 0.48;
    filter: grayscale(0.18);
    transition: opacity 170ms ease, filter 170ms ease;
    position: relative;
}

.share-access-list.share-access-list-has-active .share-access-row.share-access-row-is-dimmed::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(132, 146, 162, 0.24);
    pointer-events: none;
}

.share-access-list.share-access-list-has-active .share-access-row.share-access-row-is-active {
    opacity: 1;
    filter: none;
}

.share-access-video-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 51px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    width: 100%;
}

.share-access-video-alias {
    font-size: 1.01rem;
    line-height: 1;
    letter-spacing: 0;
    font-weight: 700;
}

.share-access-video-alias-with-dot {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.share-access-video-alias-dot {
    --share-pill-color: #39ff14;
    width: 13px;
    height: 13px;
    border-radius: 999px;
    background: var(--share-pill-color);
    border: 1px solid #c8d3e2;
    flex: 0 0 auto;
}

.share-access-video-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.share-access-title-divider {
    color: #6f869d;
    font-weight: 400;
    line-height: 1;
    flex: 0 0 auto;
}

.share-access-video-alias-pill {
    --share-pill-color: #39ff14;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
    height: 36px;
    width: 148px;
    padding: 0 12px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #dbe4ee;
    flex: 0 0 auto;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    color: #1e2e44;
    gap: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-access-video-alias-pill::after {
    content: '';
    width: 13px;
    height: 13px;
    border-radius: 999px;
    background: var(--share-pill-color);
    border: 1px solid #c8d3e2;
    flex: 0 0 auto;
}

.share-access-video-head:hover {
    background: #fbfdff;
}

.share-access-video-head:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(188, 201, 216, 0.35);
}

.share-access-row-compact .share-access-video-head {
    cursor: default;
}

.share-access-row-compact .share-access-video-head:hover {
    background: transparent;
}

.share-access-video-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.share-access-video-actions .soft-btn {
    min-height: 36px;
    height: 36px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: 400;
    font-family: inherit;
    line-height: 1;
    letter-spacing: 0;
}

.share-access-video-actions .share-access-review-btn,
.share-access-video-actions .share-access-copy-btn,
.share-access-video-actions .share-access-delete-btn,
.share-access-video-actions .share-access-download-status-btn,
.share-access-video-actions .share-access-max-upload-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font: 400 0.8rem/1 "Avenir Next", "Segoe UI", sans-serif !important;
    letter-spacing: 0 !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

.share-access-video-actions .share-access-review-btn {
    min-width: 99px;
    padding-left: 15px !important;
    padding-right: 15px !important;
    font-size: 0.86rem !important;
    font-weight: 400 !important;
}

.share-access-video-actions .share-access-download-status-btn {
    background: #fff;
    border-color: var(--line);
    color: var(--ink);
    cursor: default;
    pointer-events: none;
    gap: 10px;
    padding-left: 14px !important;
    padding-right: 14px !important;
}

.share-access-video-actions .share-access-max-upload-btn {
    background: #fff !important;
    border-color: var(--line) !important;
    color: var(--ink) !important;
    cursor: pointer;
}

.share-access-video-actions .share-access-download-status-btn.is-enabled {
    background: #fff;
    border-color: var(--line);
    color: var(--ink);
}

.share-access-video-actions .share-access-download-status-btn.is-disabled {
    background: #fff;
    border-color: var(--line);
    color: var(--ink);
}

.share-access-video-actions .share-access-download-status-btn::before {
    content: "";
    width: 11px;
    height: 11px;
    border-radius: 999px;
    display: inline-block;
    flex: 0 0 11px;
}

.share-access-video-actions .share-access-download-status-btn.is-enabled::before {
    background: #7ea3e2;
}

.share-access-video-actions .share-access-download-status-btn.is-disabled::before {
    background: #eb9393;
}

.share-access-state-pills {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.share-access-state-pill {
    --status-pill-accent: #c7d8ef;
    min-height: 31px;
    height: 31px;
    padding: 0 12px !important;
    border-radius: 12px;
    font-size: 0.68rem !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    border: 1px solid var(--line) !important;
    color: var(--ink) !important;
    white-space: nowrap;
    pointer-events: none;
    background: linear-gradient(90deg, var(--status-pill-accent) 0 5%, #ffffff 5% 100%) !important;
}

.share-access-state-pill-toggle {
    pointer-events: auto;
    cursor: pointer;
    position: relative;
    z-index: 4;
}

.share-access-state-pill-toggle:disabled {
    opacity: 0.72;
    cursor: default;
}

.share-access-state-pill.is-password.is-on {
    --status-pill-accent: rgba(11, 98, 214, 0.72);
}

.share-access-state-pill.is-password.is-off {
    --status-pill-accent: rgba(227, 54, 54, 0.72);
}

.share-access-state-pill.is-download.is-on,
.share-access-state-pill.is-collaboration.is-on,
.share-access-state-pill.is-comments.is-on {
    --status-pill-accent: rgba(11, 98, 214, 0.72);
}

.share-access-state-pill.is-download.is-off,
.share-access-state-pill.is-collaboration.is-off,
.share-access-state-pill.is-comments.is-off {
    --status-pill-accent: rgba(227, 54, 54, 0.72);
}

.share-access-target-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px;
    background: #fff !important;
    pointer-events: none;
}

.share-access-target-pill strong {
    font-weight: 700;
}

.share-access-target-divider {
    color: #6f869d;
    font-weight: 400;
}

.share-access-video-divider {
    height: 1px;
    width: 100%;
    background: #dbe4ee;
}

.share-access-video-details[hidden] {
    display: none !important;
}

.share-access-video-details {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0 4px 2px;
}

.share-access-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 14px 16px;
    margin-top: 10px;
}

.share-access-video-grid.share-access-video-grid-files {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.share-access-video-field {
    display: grid;
    gap: 8px;
}

.share-access-video-label {
    font-size: 0.82rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--muted);
    font-weight: 400;
}

.share-access-video-field input {
    height: 46px;
    min-height: 46px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #f8fbfe;
    color: #34465d;
    font-size: 0.92rem;
    padding: 0 14px;
}

.share-access-alias {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
    padding-top: 2px;
    justify-self: start;
    grid-column: 1;
    grid-row: 1 / span 2;
}

.share-access-main strong {
    font-size: 0.95rem;
}

.share-access-cell {
    display: inline-flex;
    align-items: baseline;
    min-height: 36px;
}

.share-access-cell-access {
    grid-column: 2 / span 2;
    grid-row: 1;
    gap: 20px;
}

.share-access-cell-username {
    grid-column: 3;
    grid-row: 1;
}

.share-access-cell-password {
    grid-column: 4;
    grid-row: 1;
}

.share-access-cell-upload-limit {
    grid-column: 5;
    grid-row: 1;
}

.share-access-inline {
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
    font-size: 0.84rem;
    color: var(--muted);
    justify-self: start;
}

.share-access-inline-download-inline {
    margin-left: 8px;
}

.share-access-inline strong {
    font-size: inherit;
    font-weight: 400;
    color: var(--ink);
    margin-left: 4px;
}

.share-access-value {
    font-size: inherit;
    font-weight: 400;
    color: var(--ink);
    margin-left: 4px;
}

.share-access-row.is-files-share-access .share-access-link-row {
    grid-row: 4;
}

.share-access-row.is-files-share-access .share-access-copy-btn {
    grid-row: 4;
}

.share-access-row.is-files-share-access .share-access-actions {
    grid-row: 4;
}

.share-access-folders-view-row {
    grid-column: 2 / span 4;
    grid-row: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    margin-top: 8px;
}

.review-admin[data-project-mode="files"] .share-access-folders-view-row {
    width: 100%;
    justify-content: flex-end;
}

.share-access-folder-editor {
    grid-column: 2 / span 4;
    grid-row: 3;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    background: #fff;
    padding: 8px 10px;
    display: grid;
    gap: 8px;
}

.share-access-folder-editor-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.share-access-folder-editor-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.share-access-link-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    width: 100%;
    grid-column: 2 / span 2;
    grid-row: 2;
}

.share-access-link-row input {
    height: 36px;
    padding: 0 10px;
    font-size: 0.84rem;
    background: #f8fbfe;
    min-width: 0;
}

.share-access-copy-btn {
    grid-column: 4;
    grid-row: 2;
    justify-self: start;
}

.share-access-delete-btn {
    height: 36px;
    min-height: 36px;
    padding: 0 12px;
}

.share-access-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-self: end;
    align-self: end;
    margin-bottom: 1px;
    margin-left: 8px;
    grid-column: 6;
    grid-row: 2;
}

.share-access-copy-btn,
.share-access-review-btn,
.share-access-delete-btn {
    height: 36px;
    min-height: 36px;
    padding: 0 12px;
    white-space: nowrap;
}

.share-access-status.is-protected {
    color: #7fa3da;
    font-weight: 700;
}

.share-access-status.is-public {
    color: #e18989;
    font-weight: 700;
}

@media (max-width: 1180px) {
    .share-access-link-row {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .share-access-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .share-access-alias,
    .share-access-cell-access,
    .share-access-cell-username,
    .share-access-cell-password,
    .share-access-cell-upload-limit,
    .share-access-folders-view-row,
    .share-access-folder-editor,
    .share-access-link-row,
    .share-access-copy-btn,
    .share-access-actions {
        grid-column: auto;
        grid-row: auto;
    }

    .share-access-video-head {
        flex-wrap: wrap;
    }

    .share-access-video-alias {
        font-size: 1.01rem;
    }

    .share-access-video-actions {
        width: 100%;
    }

    .share-access-video-grid {
        grid-template-columns: 1fr;
    }
}

.client-site-project-picks {
    display: grid;
    gap: 10px;
    margin-top: 8px;
    margin-bottom: 28px;
}

.client-site-picker-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
}

.client-site-picker-actions:has(#client-site-status:empty):has(#client-site-apply-selection-btn[hidden]) {
    display: none;
}

.client-site-picker-actions #client-site-status {
    margin: 0;
    min-height: 0;
    color: #63788f;
    text-align: center;
}

.client-site-picker-actions #client-site-status.is-error {
    color: var(--danger) !important;
}

.client-site-picker-actions #client-site-status:empty {
    display: none;
}

.portfolio-archive-progress {
    width: min(420px, 62vw);
    display: grid;
    gap: 6px;
    margin-top: 2px;
}

.portfolio-archive-progress[hidden] {
    display: none;
}

.portfolio-archive-progress-track {
    position: relative;
    display: block;
    width: 100%;
    height: 7px;
    overflow: hidden;
    border: 1px solid #d9e2ee;
    border-radius: 999px;
    background: #f6f9fd;
}

.portfolio-archive-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--portfolio-archive-progress, 0%);
    min-width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #8fb5de, #9abfc1);
    transition: width 0.22s ease;
}

.portfolio-archive-progress[data-state="queued"] .portfolio-archive-progress-fill {
    width: 38%;
    min-width: 38%;
    animation: portfolioArchiveQueued 1.25s ease-in-out infinite;
}

.portfolio-archive-progress[data-state="done"] .portfolio-archive-progress-fill {
    width: 100%;
}

@keyframes portfolioArchiveQueued {
    0% {
        transform: translateX(-110%);
    }
    100% {
        transform: translateX(275%);
    }
}

.portfolio-inline-dialog-body.is-inline-edit .client-site-picker-actions {
    display: flex;
    justify-content: center;
}

.portfolio-inline-dialog-body.is-inline-edit .client-site-picker-actions:has(#client-site-status:empty):has(#client-site-apply-selection-btn[hidden]) {
    display: flex;
}

.portfolio-inline-dialog-body.is-inline-edit .client-site-picker-actions #client-site-status {
    display: block;
    min-height: 1.4em;
    line-height: 1.4;
}

.portfolio-inline-dialog-body.is-inline-edit .client-site-picker-actions #client-site-status:empty {
    display: block;
    visibility: visible;
}

.portfolio-inline-dialog-body.is-inline-edit .client-site-picker-actions #client-site-status:empty::before {
    content: "Choose between view modes.";
}

.client-site-picker-actions #client-site-apply-selection-btn {
    flex: 0 0 auto;
    min-width: 168px;
    min-height: 34px;
    padding: 0 16px;
    border-radius: 999px;
    background: #e3e8ef;
    border-color: #c4cfdd;
    color: #1b2d40;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1;
}

.client-site-picker-actions #client-site-apply-selection-btn:hover,
.client-site-picker-actions #client-site-apply-selection-btn:focus,
.client-site-picker-actions #client-site-apply-selection-btn:focus-visible {
    background: #d8e0ea;
    border-color: #b6c3d4;
    color: #142638;
}

.client-site-project-picks.is-section-editing {
    outline: 2px solid rgba(80, 129, 182, 0.35);
    outline-offset: 6px;
    border-radius: 14px;
    transition: outline-color 0.22s ease;
}

.client-site-mode-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: start;
    justify-content: flex-start;
}

.client-site-mode-group {
    flex: 0 0 clamp(160px, 16.5vw, 262px);
    width: clamp(160px, 16.5vw, 262px);
    border: 0;
    border-radius: 13px 13px 0 0;
    background: #fff;
    overflow: hidden;
}

.client-site-mode-summary {
    list-style: none;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 26px;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1;
    color: #fff;
}

.client-site-mode-summary::-webkit-details-marker {
    display: none;
}

.client-site-mode-group.mode-video .client-site-mode-summary {
    background: #a8c3e6;
}

.client-site-mode-group.mode-photo .client-site-mode-summary {
    background: #bfd6a8;
}

.client-site-mode-group.mode-files .client-site-mode-summary {
    background: #e3c15a;
}

.client-site-mode-group.mode-audio .client-site-mode-summary {
    background: #d59fd6;
}

.client-site-mode-group.mode-blog .client-site-mode-summary {
    background: #c7b3e5;
}

.client-site-mode-group.mode-pinned .client-site-mode-summary {
    background: var(--pin-accent);
}

.client-site-mode-group.mode-video .client-site-mode-summary:focus-visible,
.client-site-mode-group.mode-photo .client-site-mode-summary:focus-visible,
.client-site-mode-group.mode-files .client-site-mode-summary:focus-visible,
.client-site-mode-group.mode-audio .client-site-mode-summary:focus-visible,
.client-site-mode-group.mode-blog .client-site-mode-summary:focus-visible {
    background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35));
    background-blend-mode: multiply;
}

.client-site-mode-menu {
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    padding: 8px;
    display: grid;
    gap: 6px;
    max-height: 262px;
    overflow: auto;
}

/* Portfolio create dialog spacing pass:
   - give the top picker area more breathing room
   - allow about two extra rows before scrolling */
.client-sites-dialog .website-create-panel {
    gap: 22px;
}

.client-sites-dialog .client-site-project-picks {
    min-height: 356px;
    margin-bottom: 34px;
}

.client-sites-dialog .client-site-mode-groups {
    gap: 10px;
}

.client-site-link-row {
    display: grid;
    gap: 4px;
}

.client-site-public-link {
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.client-site-public-link:hover {
    background: #edf4fb;
}

.client-site-sections-list {
    display: grid;
    gap: 8px;
}

.client-site-section-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 10px;
    background: #fff;
}

.client-site-section-rank {
    color: var(--muted);
    font-weight: 600;
}

.client-site-section-controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.client-site-pick {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

@media (max-width: 1080px) {
    .client-site-mode-group {
        flex-basis: min(100%, calc((100% - 10px) / 2));
        width: min(100%, calc((100% - 10px) / 2));
    }
}

@media (max-width: 700px) {
    .client-site-mode-group {
        flex-basis: 100%;
        width: 100%;
    }
}

.project-mode-badge {
    display: inline-flex;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--muted);
    vertical-align: middle;
}

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

.mode-option {
    min-width: 88px;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 600;
    opacity: 1;
}

.mode-option:hover {
    opacity: 1;
}

.mode-option[data-mode="video"]:hover,
.mode-option[data-mode="video"]:focus,
.mode-option[data-mode="video"]:focus-visible {
    background: #dbe7f5 !important;
    border-color: #dbe7f5 !important;
    color: #1a2b3d !important;
}

.mode-option[data-mode="photo"]:hover,
.mode-option[data-mode="photo"]:focus,
.mode-option[data-mode="photo"]:focus-visible {
    background: #e3edd5 !important;
    border-color: #e3edd5 !important;
    color: #1e3325 !important;
}

.mode-option[data-mode="files"]:hover,
.mode-option[data-mode="files"]:focus,
.mode-option[data-mode="files"]:focus-visible {
    background: #f4e9c5 !important;
    border-color: #f4e9c5 !important;
    color: #423417 !important;
}

.mode-option[data-mode="audio"]:hover,
.mode-option[data-mode="audio"]:focus,
.mode-option[data-mode="audio"]:focus-visible {
    background: #ead8ea !important;
    border-color: #ead8ea !important;
    color: #3a2840 !important;
}

.mode-option.active {
    font-weight: 700;
}

.mode-option.active[data-mode="photo"] {
    background: #bfd6a8 !important;
    border-color: #bfd6a8 !important;
    color: #fff !important;
}

.mode-option.active[data-mode="video"] {
    background: #a8c3e6 !important;
    border-color: #a8c3e6 !important;
    color: #fff !important;
}

.mode-option.active[data-mode="files"] {
    background: #e3c15a !important;
    border-color: #e3c15a !important;
    color: #fff !important;
}

.mode-option.active[data-mode="audio"] {
    background: #d59fd6 !important;
    border-color: #d59fd6 !important;
    color: #fff !important;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    row-gap: 28px;
    column-gap: 20px;
}

.review-admin .video-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.review-admin[data-project-mode="video"]:not(.video-list-mode) .video-grid {
    align-items: stretch;
}

.review-admin[data-project-mode="video"]:not(.video-list-mode) .video-grid .clip-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.review-admin[data-project-mode="video"]:not(.video-list-mode) .video-grid .clip-card .thumb-box {
    flex: 0 0 auto;
}

.review-admin[data-project-mode="video"]:not(.video-list-mode) .video-grid .clip-card .card-meta {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.review-admin[data-project-mode="video"]:not(.video-list-mode) .video-grid .clip-card .card-actions-below {
    margin-top: auto;
    align-items: center;
}

.review-admin[data-project-mode="video"].video-grid-scale-50:not(.video-list-mode) .video-grid {
    width: 50%;
    margin: 0 auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 14px;
    column-gap: 10px;
    align-items: stretch;
}

.review-admin[data-project-mode="video"].video-grid-scale-50:not(.video-list-mode) .video-grid .clip-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.review-admin[data-project-mode="video"].video-grid-scale-50:not(.video-list-mode) .video-grid .clip-card .thumb-box {
    flex: 0 0 auto;
}

.review-admin[data-project-mode="video"].video-grid-scale-50:not(.video-list-mode) .video-grid .clip-card .clip-title {
    font-weight: 400;
    font-size: 0.81rem;
}

.review-admin[data-project-mode="video"].video-grid-scale-50:not(.video-list-mode) .video-grid .clip-card .card-title-row {
    min-height: 2.35rem;
    align-items: start;
}

.review-admin[data-project-mode="video"].video-grid-scale-50:not(.video-list-mode) .video-grid .clip-card .card-meta {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 8px;
}

.review-admin[data-project-mode="video"].video-grid-scale-50:not(.video-list-mode) .video-grid .clip-card .project-card-video-controls {
    display: none;
}

.review-admin[data-project-mode="video"].video-grid-scale-50:not(.video-list-mode) .video-grid .clip-card .card-actions-below {
    gap: 6px;
    margin-top: auto;
    align-items: center;
}

.review-admin[data-project-mode="video"].video-grid-scale-50:not(.video-list-mode) .video-grid .clip-card .card-actions-below > * {
    align-self: center;
}

.review-admin[data-project-mode="video"].video-grid-scale-50:not(.video-list-mode) .video-grid .clip-card .card-actions-below .soft-btn {
    min-height: 24px;
    height: 24px;
    padding: 0 9px;
    font-size: 0.84rem;
    line-height: 1;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.review-admin[data-project-mode="video"].video-grid-scale-50:not(.video-list-mode) .video-grid .clip-card .card-actions-below .clip-settings-btn {
    min-width: 42px;
    min-height: 24px;
    height: 24px;
    padding: 0;
}

.review-admin[data-project-mode="video"].video-grid-scale-50:not(.video-list-mode) .video-grid .clip-card .card-actions-below .clip-actions-menu {
    display: flex;
    align-items: center;
    min-height: 24px;
}

.review-admin[data-project-mode="video"].video-grid-scale-50:not(.video-list-mode) .video-grid .clip-card .card-actions-below .clip-settings-btn svg {
    width: 13px;
    height: 13px;
    display: block;
}

.review-admin[data-project-mode="video"].video-grid-scale-50:not(.video-list-mode) .video-grid .clip-card .card-actions-below .open-editor-btn {
    min-height: 24px;
    height: 24px;
    line-height: 1;
    align-self: center;
}

.review-client .video-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.review-admin .video-grid.photo-grid,
.review-client .video-grid.photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    grid-auto-rows: auto;
    column-gap: 10px;
    row-gap: 10px;
}

.video-grid.photo-grid .clip-card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    overflow: hidden;
    cursor: default;
}

.review-admin .video-grid.photo-grid .clip-card {
    cursor: default;
}

.review-admin .video-grid.photo-grid {
    display: grid;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 8px;
    gap: 10px;
    justify-content: stretch;
}

.review-admin[data-project-mode="photo"].photo-grid-scale-50:not(.video-list-mode) .video-grid.photo-grid {
    width: 50%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.review-admin .video-grid.photo-grid .clip-card {
    display: block;
    width: auto;
    grid-row: span var(--masonry-span, 32);
    padding: 0;
    position: relative;
}

.review-admin .video-grid.photo-grid .thumb-box {
    aspect-ratio: auto !important;
    height: 100%;
    display: grid;
    position: relative;
}

.review-admin .video-grid.photo-grid .thumb-box img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-grid.photo-grid .clip-card.drag-over {
    outline: 1px solid #b8cde6;
    outline-offset: 0;
    box-shadow: inset 0 0 0 9999px rgba(214, 228, 245, 0.45);
}

.video-grid.photo-grid .clip-card.drag-over-before {
    box-shadow:
        inset 0 0 0 9999px rgba(214, 228, 245, 0.45),
        inset 5px 0 0 #8fb3da;
}

.video-grid.photo-grid .clip-card.drag-over-after {
    box-shadow:
        inset 0 0 0 9999px rgba(214, 228, 245, 0.45),
        inset -5px 0 0 #8fb3da;
}

.video-grid.photo-grid .thumb-box {
    border-radius: 0;
    background: transparent;
    aspect-ratio: 4 / 3 !important;
    display: block;
    overflow: hidden;
}

.video-grid.photo-grid .thumb-box img {
    display: block;
    border-radius: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-grid.photo-grid .grid-play-btn,
.video-grid.photo-grid .card-meta {
    display: none !important;
}

.video-grid.photo-grid .photo-hover-btn {
    position: absolute;
    z-index: 5;
    opacity: 0;
    transform: translateY(3px);
    transition: opacity 140ms ease, transform 140ms ease;
    pointer-events: none;
    min-height: 26px;
    border-radius: 10px;
    padding: 3px 9px;
    font-size: 0.61rem;
    line-height: 1;
    background: rgba(255, 255, 255, 0.65);
    border: none;
    box-shadow: none;
    color: #223044;
    white-space: nowrap;
    width: 94px;
    justify-content: center;
    text-align: center;
}

.video-grid.photo-grid .photo-hover-hero-btn {
    right: 10px;
    bottom: 44px;
}

.video-grid.photo-grid .photo-hover-delete-btn {
    right: 10px;
    bottom: 10px;
    color: #a84646;
}

.video-grid.photo-grid .clip-card:hover .photo-hover-btn,
.video-grid.photo-grid .clip-card:focus-within .photo-hover-btn {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.video-grid.photo-grid .clip-card.is-hero .photo-hover-hero-btn {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.video-grid.photo-grid .photo-hover-hero-btn.is-current-hero {
    top: 10px;
    left: 10px;
    right: auto;
    bottom: auto;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.8);
}

.video-grid.photo-grid .photo-hover-btn:hover,
.video-grid.photo-grid .photo-hover-btn:focus,
.video-grid.photo-grid .photo-hover-btn:focus-visible {
    background: rgba(255, 255, 255, 0.8);
    border: none;
}

.video-grid.photo-grid .photo-hero-pill {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    min-height: 26px;
    border-radius: 10px;
    padding: 3px 9px;
    font-size: 0.61rem;
    line-height: 1;
    background: rgba(255, 255, 255, 0.8);
    color: #223044;
    white-space: nowrap;
    width: 94px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

.video-grid.photo-grid .photo-hover-delete-btn:hover,
.video-grid.photo-grid .photo-hover-delete-btn:focus,
.video-grid.photo-grid .photo-hover-delete-btn:focus-visible {
    background: rgba(255, 247, 247, 0.62);
    color: #8f2f2f;
}

.video-grid.photo-grid .clip-card.is-selected {
    outline: none;
    box-shadow: none;
}

.video-grid.photo-grid .clip-card.is-selected .thumb-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 1;
}

.video-grid.photo-grid .clip-card.is-selected .photo-liked-indicators {
    z-index: 4;
}

.video-grid.photo-grid .clip-card.is-hero {
    outline: 2px solid #bfd6a8;
    outline-offset: -2px;
}

.review-client .topbar {
    align-items: flex-end;
    margin: 20px 0 20px;
}

.review-client .library-head {
    margin-bottom: 24px;
}

.review-client .client-top-actions {
    margin-top: 0;
    align-self: flex-end;
    gap: 7px;
}

.review-client .client-header {
    align-items: flex-end;
}

.review-client .client-brand-stack {
    display: grid;
    gap: 2px;
    justify-items: start;
}

.review-client .client-brand-logo {
    height: 46px;
    width: auto;
    object-fit: contain;
    margin-left: -10px;
}

.review-client .client-brand-logo-text {
    font-size: 2.55rem;
    line-height: 0.88;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 0.01em;
    color: #e31922;
}

.review-client .client-project-title {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.05;
}

.review-client .client-top-actions .soft-btn {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.78rem;
    border-radius: 9px;
    font-weight: 500;
}

.review-client .library-head h2 {
    display: none;
}

.client-photo-hero {
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.client-photo-hero img {
    width: 100%;
    display: block;
    max-height: 62vh;
    object-fit: cover;
}

.review-client.client-photo-mode .layout {
    width: min(1600px, 99vw);
    margin-top: 0;
}

.review-client.client-photo-mode:not(.preview-page) .topbar {
    display: none;
}

.review-client.client-photo-mode .client-project-title-row,
.review-client.client-photo-mode .library-head {
    display: none;
}

.review-client.client-photo-mode .client-photo-hero {
    width: 100vw;
    margin: 0 0 28px;
    border: 0;
    border-radius: 0;
    background: #000;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    min-height: 100vh;
}

.review-client.preview-page.client-photo-mode .client-photo-hero {
    min-height: var(--client-photo-hero-visible-height, 100vh);
}

.client-photo-hero-media {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.review-client.client-photo-mode .client-photo-hero img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
}

.review-client.client-photo-mode .client-photo-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.12) 0%,
        rgba(0, 0, 0, 0.23) 52%,
        rgba(0, 0, 0, 0.34) 100%
    );
    z-index: 2;
}

.review-client.embedded-client-view.client-photo-mode[data-site-scoped-project-view="1"][data-embed-project-header="0"] .layout {
    width: 100%;
    margin-top: 0;
    min-height: 0;
}

.review-client.embedded-client-view.client-photo-mode[data-site-scoped-project-view="1"][data-embed-project-header="0"] .client-photo-dropzone-row {
    position: static;
    width: 100%;
    margin: 0 0 12px;
    padding: 0;
    background: transparent;
    border-bottom: 0;
}

.review-client.embedded-client-view.client-photo-mode[data-site-scoped-project-view="1"][data-embed-project-header="0"] .client-photo-hero {
    width: 100%;
    min-height: 0;
    left: auto;
    right: auto;
    margin: 0 0 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.review-client.embedded-client-view.client-photo-mode[data-site-scoped-project-view="1"][data-embed-project-header="0"] .client-photo-hero-media {
    position: static;
}

.review-client.embedded-client-view.client-photo-mode[data-site-scoped-project-view="1"][data-embed-project-header="0"] .client-photo-hero img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
}

.review-client.embedded-client-view.client-photo-mode[data-site-scoped-project-view="1"][data-embed-project-header="0"] .client-photo-hero::after,
.review-client.embedded-client-view.client-photo-mode[data-site-scoped-project-view="1"][data-embed-project-header="0"] .client-photo-hero-overlay {
    display: none;
}

.review-client.embedded-client-view.client-photo-mode[data-site-scoped-project-view="1"][data-embed-project-header="1"] .client-photo-hero {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
    max-height: min(82vh, 1040px);
    left: auto;
    right: auto;
    margin: 20px 0 10px;
    border: 0;
    border-radius: 0;
    background: #000;
    overflow: hidden;
}

.review-client.embedded-client-view.client-photo-mode[data-site-scoped-project-view="1"][data-embed-project-header="1"] .client-photo-hero-media {
    position: absolute;
    inset: 0;
}

.review-client.embedded-client-view.client-photo-mode[data-site-scoped-project-view="1"][data-embed-project-header="1"] .client-photo-hero img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
}

.review-client.embedded-client-view.client-photo-mode[data-site-scoped-project-view="1"][data-embed-project-header="1"] .client-photo-hero::after,
.review-client.embedded-client-view.client-photo-mode[data-site-scoped-project-view="1"][data-embed-project-header="1"] .client-photo-hero-overlay {
    display: none;
}

.client-photo-hero-overlay {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.client-photo-hero-copy {
    width: min(1100px, 92vw);
    display: grid;
    justify-items: center;
    gap: clamp(12px, 2.2vw, 22px);
    transform: none;
}

.client-photo-hero-overlay h1 {
    position: relative;
    display: inline-block;
    z-index: 4;
    color: #fff;
    font-size: clamp(1.5rem, 3.75vw, 3.15rem);
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    margin: 0;
    padding: clamp(1.3rem, 3.1vw, 2.35rem) clamp(2.9rem, 8.3vw, 6rem);
    transform: none;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}

.client-photo-hero-overlay h1::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 255, 255, 0.9);
    pointer-events: none;
    z-index: -1;
    animation: hero-frame-float 7s ease-in-out infinite;
}

.client-photo-hero-subtitle {
    position: absolute;
    left: 50%;
    bottom: clamp(74px, calc(9.6vh + 32px), 144px);
    transform: translateX(-50%);
    margin: 0;
    max-width: min(1100px, 92vw);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 100;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
    z-index: 4;
    text-align: center;
}

@keyframes hero-frame-float {
    0% {
        opacity: 0.72;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
    100% {
        opacity: 0.72;
        transform: scale(1);
    }
}

.review-client.client-photo-mode .video-grid.photo-grid {
    display: grid;
    width: min(1460px, 100%);
    margin: 0 auto;
    grid-template-columns: repeat(3, minmax(0, 480px));
    grid-auto-rows: 8px;
    gap: 10px;
    justify-content: center;
}

.review-client.client-photo-mode .video-grid.photo-grid .clip-card {
    display: block;
    width: auto;
    grid-row: span var(--masonry-span, 32);
    cursor: pointer;
    padding: 0;
    position: relative;
}

.review-client.client-photo-mode .video-grid.photo-grid .thumb-box {
    aspect-ratio: auto !important;
    height: 100%;
    display: grid;
    position: relative;
    overflow: hidden;
}

.review-client.client-photo-mode .video-grid.photo-grid .thumb-box img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateZ(0);
}

.review-client.client-photo-mode .video-grid.photo-grid .thumb-box::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 34%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(10, 14, 20, 0.38) 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.review-client.client-photo-mode .video-grid.photo-grid .photo-card:hover .thumb-box::after,
.review-client.client-photo-mode .video-grid.photo-grid .photo-card:focus-within .thumb-box::after {
    opacity: 1;
}

.photo-liked-indicators {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 3;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.photo-favorite-marker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: min(190px, calc(100vw - 48px));
    padding: 5px 9px 5px 7px;
    border-radius: 999px;
    background: rgba(16, 24, 40, 0.74);
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.photo-liked-indicators .photo-favorite-btn {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    opacity: 1;
    transform: none;
    pointer-events: none;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.photo-favorite-name {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    color: currentColor;
}

.photo-favorite-btn {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 4;
    width: 28px;
    height: 28px;
    border-radius: 0;
    border: 0;
    background: transparent;
    color: #fff;
    line-height: 1;
    padding: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, top 0.2s ease, left 0.2s ease, right 0.2s ease, bottom 0.2s ease;
}

.photo-favorite-btn:hover,
.photo-favorite-btn:focus,
.photo-favorite-btn:focus-visible,
.photo-favorite-btn:active {
    background: transparent !important;
    border: 0 !important;
    color: #fff !important;
    box-shadow: none !important;
}

.photo-favorite-icon {
    width: 24px;
    height: 24px;
}

.photo-favorite-icon path {
    fill: transparent;
    stroke: #fff;
    stroke-width: 2.05;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: none;
}

.photo-favorite-btn.active {
    top: auto;
    left: auto;
    right: 12px;
    bottom: 12px;
    width: 28px;
    height: 28px;
    background: transparent;
    border: 0;
    border-radius: 0;
    opacity: 1;
    transform: none;
}

.photo-favorite-btn.active .photo-favorite-icon path {
    fill: #fff;
    stroke: #fff;
}

.review-client.client-photo-mode .video-grid.photo-grid .photo-card:hover .photo-favorite-btn,
.review-client.client-photo-mode .video-grid.photo-grid .photo-card:focus-within .photo-favorite-btn,
.review-client.client-photo-mode .video-grid.photo-grid .photo-favorite-btn.active {
    opacity: 1;
    transform: none;
}

.photo-favorite-btn:focus,
.photo-favorite-btn:focus-visible {
    outline: none;
    box-shadow: none;
}

@media (hover: none) and (pointer: coarse) {
    .review-client.client-photo-mode .video-grid.photo-grid .photo-favorite-btn {
        opacity: 1;
        transform: none;
    }
}

.client-photo-download-wrap {
    width: min(1500px, 98vw);
    margin: 48px auto 44px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.client-photo-download-wrap[hidden] {
    display: none !important;
}

.client-photo-download-wrap .soft-btn {
    min-width: 180px;
}

.client-photo-zip-progress {
    width: min(1500px, 98vw);
    margin: 10px auto 18px;
    padding: 12px 14px;
    border-radius: 12px;
}

.client-photo-zip-progress-compact {
    width: min(680px, 48vw);
    margin: 10px var(--preview-inline-gap, max(24px, calc((100vw - min(1200px, 94vw)) / 2))) 14px auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.client-photo-zip-progress .dashboard-drop-upload-head-row {
    margin-bottom: 8px;
}

.client-photo-zip-progress-compact .dashboard-drop-upload-head-row {
    margin-bottom: 6px;
}

.client-photo-zip-progress h2 {
    margin: 0;
    font-size: 0.92rem;
    color: #5b7086;
    font-weight: 400;
}

.client-photo-zip-progress .dashboard-drop-upload-title-main {
    font-weight: 600;
}

.client-photo-zip-progress .dashboard-drop-upload-progress-row {
    margin-bottom: 0;
    font-size: 0.86rem;
}

.client-photo-zip-progress-compact .dashboard-drop-upload-progress-row {
    justify-content: flex-end;
    min-width: 0;
    gap: 8px;
    font-size: 0.78rem;
}

.client-photo-zip-progress .progress-fill {
    background: #89abe1;
}

.client-photo-zip-progress-compact .progress-track {
    height: 7px;
}

.client-photo-zip-progress #client-photo-zip-progress-status.is-error {
    color: #c44b4b;
}

.client-photo-zip-progress-compact #client-photo-zip-progress-status {
    margin-top: 5px;
    min-height: 1em;
    font-size: 0.8rem;
}

.preview-page .preview-site-topbar-actions.photo-preview-actions {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    width: max-content;
}

.preview-page .preview-site-topbar-actions.photo-preview-actions .preview-site-topbar-actions-main {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-height: var(--dash-pill-height);
}

.client-photo-zip-progress-inline {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.client-photo-zip-cancel-btn {
    width: 21px;
    height: 21px;
    border-radius: 999px;
    border: 1px solid #c7d2df;
    background: transparent !important;
    color: #76879a;
    font-size: 0.74rem;
    font-weight: 400;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    box-shadow: none;
    vertical-align: middle;
}

.client-photo-zip-cancel-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.client-photo-zip-progress-inline .dashboard-drop-upload-head-row {
    margin-bottom: 4px;
    gap: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.client-photo-zip-progress-left {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.client-photo-zip-progress-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.client-photo-zip-progress-inline h2 {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.1;
    font-weight: 400;
    color: #5b7086;
}

.client-photo-zip-progress-inline .dashboard-drop-upload-title-main {
    font-weight: 400;
    text-transform: lowercase;
}

.client-photo-zip-progress-inline .dashboard-drop-upload-progress-row {
    margin-bottom: 0;
    font-size: 0.76rem;
    line-height: 1.1;
    color: #5f738b;
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
}

.client-photo-zip-progress-inline .progress-track {
    height: 7px;
}

.client-photo-zip-progress-inline .progress-fill {
    background: #89abe1;
}

.client-photo-zip-progress-inline #client-photo-zip-progress-status {
    margin-top: 4px;
    min-height: 1em;
    font-size: 0.76rem;
}

.client-photo-zip-progress-inline #client-photo-zip-progress-status[hidden] {
    display: none !important;
}

.review-admin .video-grid .clip-card.wide-169 {
    grid-column: span 2;
}

.review-client .video-grid .clip-card.wide-169 {
    grid-column: span 2;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    justify-content: flex-start;
    gap: 24px;
}

.projects-dashboard .project-grid {
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    overflow: visible;
    align-content: start;
}

.projects-dashboard.pin-mode-active {
    padding-bottom: 0;
}

.projects-dashboard.pin-mode-active .project-folders-section {
    padding-bottom: 132px;
}

.projects-dashboard.dashboard-list-view .project-grid {
    grid-template-columns: 1fr;
    gap: 14px;
}

.projects-dashboard.dashboard-grid-scale-100 .project-grid,
.projects-dashboard.dashboard-grid-scale-100 .pinned-projects-cards,
.projects-dashboard.dashboard-grid-scale-100 .library-tab-cards {
    grid-template-columns: repeat(auto-fill, 240px);
}

.projects-dashboard.dashboard-grid-scale-50 .project-grid,
.projects-dashboard.dashboard-grid-scale-50 .pinned-projects-cards,
.projects-dashboard.dashboard-grid-scale-50 .library-tab-cards {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.projects-dashboard.dashboard-grid-scale-50 .project-folder-card .folder-actions-row {
    display: none;
}

.projects-dashboard.dashboard-grid-scale-50 .project-folder-card.project-create-card .folder-actions-row {
    display: flex;
}

.projects-dashboard.dashboard-grid-scale-50 .project-folder-card.project-create-card .create-project-inline-add {
    transform: translateY(-40px);
}

.projects-dashboard.dashboard-grid-scale-50 .project-folder-card .folder-body {
    padding: 18px 12px 12px;
}

.project-mode-break {
    grid-column: 1 / -1;
    margin: 6px 0 -6px;
    padding-top: 8px;
    border-top: 1px solid #dfe7f0;
}

.projects-dashboard .project-mode-break {
    border-top: 0;
    margin: 0;
    padding-top: 0;
}

.projects-dashboard .project-grid > .project-mode-break:first-child {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

.project-mode-break h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--muted);
    font-weight: 700;
    display: none;
}

.project-mode-break.project-mode-break-pinned h3 {
    margin: 0 0 6px;
    min-height: 42px;
    width: fit-content;
    max-width: min(100%, 100%);
    border: 1px solid var(--line);
    border-radius: 13px 13px 0 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 0 18px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    background: #ffffff;
    color: #12202f;
    border-color: var(--line);
}

.project-mode-break.project-mode-break-libraries h3 {
    margin: 0 0 8px;
    min-height: 52px;
    width: fit-content;
    max-width: min(100%, 100%);
    border: 1px solid var(--line);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 0 16px;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    background: #fff;
    color: var(--ink);
}

.project-mode-break.project-mode-break-mode {
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.project-mode-break.project-mode-break-mode h3 {
    display: none !important;
}

.project-libraries-pill-title,
.project-libraries-pill-title-toggle {
    flex: 0 0 auto;
    font-weight: 700;
    color: #2e4e6f;
}

.project-libraries-pill-title-toggle {
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 0.92rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.project-libraries-pill-title-toggle:hover,
.project-libraries-pill-title-toggle:focus-visible {
    color: #223f5b;
    outline: none;
}

.project-libraries-pill-links {
    display: inline-flex;
    align-items: stretch;
    height: 42px;
    gap: 6px;
    color: #5a6f86;
    font-weight: 600;
}

.project-library-jump-sep {
    display: inline-flex;
    align-items: center;
    opacity: 0.45;
    font-weight: 500;
}

.project-library-jump {
    border: 0;
    background: transparent;
    color: #5a6f86;
    font: inherit;
    padding: 0 12px;
    min-height: 100%;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.project-library-jump:hover,
.project-library-jump:focus-visible {
    color: #ffffff;
    text-decoration: none;
    outline: none;
}

.project-library-jump.is-disabled,
.project-library-jump[disabled] {
    opacity: 0.42;
    cursor: default;
    text-decoration: none;
}

.project-library-jump.project-library-jump-video {
    background: transparent;
}

.project-library-jump.project-library-jump-photo {
    background: transparent;
}

.project-library-jump.project-library-jump-files {
    background: transparent;
}

.project-library-jump.project-library-jump-audio {
    background: transparent;
}

.project-library-jump.project-library-jump-pinned:hover,
.project-library-jump.project-library-jump-pinned:focus-visible {
    background: #d9e6f5;
    color: #2b4a66;
}

.project-library-jump.project-library-jump-video:hover,
.project-library-jump.project-library-jump-video:focus-visible {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
        linear-gradient(#a8c3e6, #a8c3e6);
    background-blend-mode: multiply;
    color: #fff;
}

.project-library-jump.project-library-jump-photo:hover,
.project-library-jump.project-library-jump-photo:focus-visible {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
        linear-gradient(#bfd6a8, #bfd6a8);
    background-blend-mode: multiply;
    color: #fff;
}

.project-library-jump.project-library-jump-files:hover,
.project-library-jump.project-library-jump-files:focus-visible {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
        linear-gradient(#e3c15a, #e3c15a);
    background-blend-mode: multiply;
    color: #fff;
}

.project-library-jump.project-library-jump-audio:hover,
.project-library-jump.project-library-jump-audio:focus-visible {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
        linear-gradient(#d59fd6, #d59fd6);
    background-blend-mode: multiply;
    color: #fff;
}

.project-folder-card {
    cursor: default;
    width: 100%;
    min-width: 0;
    max-width: 336px;
    justify-self: start;
}

.project-folder-card.project-group-card .folder-preview,
.project-folder-card.project-group-focus-card .folder-preview {
    display: block;
    position: relative;
    border: 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
    /* Match standard project-card preview sizing so folder cards align in height. */
    aspect-ratio: 1 / 1;
}

.project-folder-card.project-group-card .folder-preview-empty-title,
.project-folder-card.project-group-focus-card .folder-preview-empty-title {
    font-weight: 600;
}

.project-folder-card.project-group-card .folder-head-row {
    width: 100%;
}

.project-folder-card.project-group-card .folder-top.folder-top-project-group {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.project-folder-card.project-group-card .folder-body {
    border-radius: 0 0 14px 14px;
}

.project-folder-card.project-group-card {
    cursor: grab;
}

.project-folder-card.project-group-card.dragging {
    cursor: grabbing;
}

.project-folder-card.project-group-card.is-expanded .folder-body {
    border-color: var(--line);
}

.project-folder-card.project-group-card.mode-photo.is-expanded .folder-body {
    border-color: var(--line);
}

.projects-dashboard:not(.dashboard-list-view) .project-folder-card .folder-actions-row.project-group-actions {
    grid-template-columns: minmax(72px, 0.38fr) 1fr;
    column-gap: 10px;
    align-items: center;
}

.projects-dashboard:not(.dashboard-list-view) .project-folder-card.project-group-card.mode-blog .folder-actions-row.project-group-actions {
    grid-template-columns: minmax(72px, 0.38fr) 1fr 1fr;
}

.projects-dashboard:not(.dashboard-list-view) .project-folder-card .folder-actions-row.project-group-actions .open-video-group-btn {
    min-height: 29px;
    height: 29px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    padding: 0 12px;
}

.projects-dashboard:not(.dashboard-list-view) .project-folder-card .folder-actions-row.project-group-actions .project-group-settings-btn {
    min-height: 29px;
    height: 29px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    padding: 0 10px;
}

.project-group-drop-split-overlay {
    position: absolute;
    inset: 8px;
    border-radius: 10px;
    border: 1px solid rgba(143, 181, 222, 0.6);
    background: rgba(247, 251, 255, 0.9);
    display: grid;
    grid-template-rows: 1fr 1fr;
    align-items: stretch;
    pointer-events: none;
    opacity: 0;
    transition: opacity 110ms ease;
    z-index: 4;
}

.project-group-drop-split-option {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.82rem;
    color: #5f7898;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 10px 12px;
}

.project-group-drop-split-bottom {
    border-top: 1px solid rgba(143, 181, 222, 0.45);
}

.project-group-card.group-drop-split-active .project-group-drop-split-overlay {
    opacity: 1;
}

.project-group-card.group-drop-split-active .folder-body > :not(.project-group-drop-split-overlay) {
    opacity: 0;
}

.project-group-card.group-drop-split-nest .project-group-drop-split-top,
.project-group-card.group-drop-split-reorder .project-group-drop-split-bottom {
    background: rgba(137, 171, 225, 0.2);
    color: #415d79;
}

.project-group-card.group-drop-add-only .project-group-drop-split-overlay {
    grid-template-rows: 1fr;
}

.project-group-card.group-drop-add-only .project-group-drop-split-bottom {
    display: none;
}

.project-group-preview-mosaic {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-content: start;
}

.project-group-preview-mosaic-audio {
    gap: 8px;
}

.project-group-preview-tile {
    border-radius: 10px;
    border: 1px solid #d8e3ef;
    background: #f6f9fd;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font: 600 0.82rem/1 "Avenir Next", "Segoe UI", sans-serif;
    color: #6f84a0;
    aspect-ratio: 1 / 1;
}

.project-group-preview-tile.project-group-preview-tile-audio {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
}

.project-group-preview-tile.project-group-preview-tile-audio .files-live-preview {
    width: 80%;
    height: 80%;
    margin: auto;
    padding: 4px;
    gap: 3px;
    align-self: center;
    justify-self: center;
}

.project-group-preview-tile.project-group-preview-tile-blog {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    background: #ffffff;
}

.project-group-preview-tile.project-group-preview-tile-blog .blog-card-mini-page {
    padding: 8%;
    gap: 3px;
}

.project-group-preview-tile.project-group-preview-tile-blog .blog-card-mini-page h4 {
    font-size: 0.64rem;
    line-height: 1.02;
}

.project-group-preview-tile.project-group-preview-tile-blog .blog-card-mini-date,
.project-group-preview-tile.project-group-preview-tile-blog .blog-card-mini-subtitle,
.project-group-preview-tile.project-group-preview-tile-blog .blog-card-mini-text,
.project-group-preview-tile.project-group-preview-tile-blog .blog-card-mini-empty {
    font-size: 0.35rem;
}

.project-group-preview-tile.project-group-preview-tile-audio .files-live-row {
    border-radius: 6px;
    padding: 2px 4px;
    border-color: #dde6f1;
}

.project-group-preview-tile.project-group-preview-tile-audio .files-live-main-audio {
    gap: 2px;
}

.project-group-preview-tile.project-group-preview-tile-audio .files-live-name-audio {
    font-size: 0.54rem;
    line-height: 1.05;
}

.project-group-preview-tile.project-group-preview-tile-audio .files-live-wave {
    height: 8px;
}

.project-group-preview-tile.project-group-preview-tile-audio .files-live-wave-bar {
    border-radius: 1px 1px 0 0;
}

.project-group-audio-tile-empty {
    width: 100%;
    height: 100%;
    background: #f8fbff;
}

.project-group-preview-tile.is-empty {
    background: #f8fbff;
}

.project-group-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

.pinned-projects-section {
    grid-column: 1 / -1;
    position: relative;
}

.pinned-projects-title-wrap {
    position: relative;
    width: fit-content;
}

.pinned-projects-title-toggle {
    margin: 0;
    min-height: 42px;
    width: fit-content;
    max-width: min(100%, 100%);
    border: 0;
    border-radius: 13px 13px 0 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 0;
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    background: var(--pin-accent);
    color: #ffffff;
    overflow: visible;
    isolation: isolate;
    cursor: pointer;
}

.projects-dashboard .pinned-projects-title-toggle[aria-expanded="true"] {
    background: var(--pin-accent);
    border: 0;
    box-shadow: none;
    outline: none;
}

.pinned-projects-main-btn,
.pinned-projects-inline-action-btn {
    border: 0;
    background: transparent;
    color: #ffffff;
    min-height: 42px;
    font: inherit;
    font-size: 0.92rem;
    line-height: 1;
    padding: 0 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pinned-projects-main-btn {
    font-weight: 400;
    justify-content: flex-start;
    gap: 10px;
    cursor: default;
}

.pinned-projects-main-label {
    font-weight: 400;
}

.pinned-projects-main-divider {
    color: rgba(255, 255, 255, 0.78);
    opacity: 0.9;
    font-weight: 500;
}

.pinned-projects-main-name {
    font-weight: 400;
}

.pinned-projects-inline-action-btn {
    font-weight: 400;
}

.pinned-projects-inline-actions {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.pinned-projects-feedback {
    margin-left: 12px;
    margin-right: 14px;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: #edf7ef;
    color: #275a34;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.pinned-projects-feedback[hidden] {
    display: none !important;
}

.pinned-projects-feedback.is-error {
    background: #fdebec;
    color: #8f2630;
}

.pinned-projects-title-inline-sep {
    color: #9aa9ba;
    opacity: 0.9;
    font-weight: 500;
    line-height: 1;
}

.pinned-projects-load-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.pinned-projects-load-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 190px;
    max-width: 280px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(18, 32, 47, 0.12);
    padding: 6px;
    display: grid;
    gap: 4px;
    z-index: 120;
}

.pinned-projects-load-menu[hidden] {
    display: none !important;
}

.pinned-projects-load-option {
    border: 0;
    background: transparent;
    color: #12202f;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    line-height: 1.2;
    border-radius: 8px;
    min-height: 34px;
    padding: 6px 10px;
    cursor: pointer;
}

.pinned-projects-load-option:hover,
.pinned-projects-load-option:focus-visible {
    background: #edf4fb;
    outline: none;
}

.pinned-projects-load-option.is-active {
    background: #f2f7fc;
    color: #2c4b66;
    font-weight: 600;
}

.pinned-projects-load-empty {
    color: #66798f;
    font-size: 0.86rem;
    line-height: 1.3;
    padding: 6px 10px;
}

.projects-dashboard .pinned-projects-main-btn:hover,
.projects-dashboard .pinned-projects-main-btn:focus,
.projects-dashboard .pinned-projects-main-btn:focus-visible,
.projects-dashboard .pinned-projects-inline-action-btn:hover,
.projects-dashboard .pinned-projects-inline-action-btn:focus,
.projects-dashboard .pinned-projects-inline-action-btn:focus-visible {
    background: transparent;
    box-shadow: none;
    outline: none;
}

.projects-dashboard .pinned-projects-inline-action-btn:hover,
.projects-dashboard .pinned-projects-inline-action-btn:focus,
.projects-dashboard .pinned-projects-inline-action-btn:focus-visible {
    background: transparent;
}

.pinned-projects-body {
    margin-top: 0;
    border: 1px solid var(--line);
    border-radius: 0 16px 16px 16px;
    background: #fff;
    padding: 14px 12px;
    min-height: 504px;
    display: grid;
    gap: 16px;
}

.pinned-projects-cards {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    justify-content: flex-start;
    align-content: start;
    gap: 24px;
}

.pinned-projects-cards.is-empty {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 16px;
}

.pinned-projects-empty-note {
    margin: 0;
    color: #66798f;
    font-size: 0.98rem;
    font-weight: 500;
}

.pinned-selection-open-empty {
    grid-column: 1 / -1;
    padding: 24px 10px;
}

.pinned-projects-cards.is-centered-cards {
    align-content: center;
}

.pinned-projects-cards.is-open-selection {
    align-content: start;
}

.pinned-selection-close-bar {
    grid-column: 1 / -1;
    margin-bottom: 2px;
}

.pinned-selection-close-copy {
    grid-column: 1;
}

.project-folder-card.pinned-selection-card .folder-top-pinned {
    background: #96abd1;
}

.project-folder-card.pinned-selection-card .pinned-selection-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.project-folder-card.pinned-selection-card .pinned-selection-actions > .project-action-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 96px;
}

.project-folder-card.pinned-selection-card .pinned-selection-open-btn {
    margin-left: auto;
}

.pinned-selection-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
}

.pinned-selection-preview-tile {
    min-height: 0;
    border-radius: 9px;
    overflow: hidden;
    background: #e8eef7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #506584;
    font-size: 1.1rem;
    font-weight: 700;
}

.pinned-selection-preview-tile img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.pinned-selection-preview-tile.is-fallback {
    border: 1px solid #d8e2ef;
}

.pinned-projects-section + .project-mode-break.project-mode-break-libraries {
    margin-top: 48px;
}

.library-tabs-section {
    grid-column: 1 / -1;
    position: relative;
    margin-top: 34px;
}

.library-tabs-title-wrap {
    position: relative;
    width: 100%;
}

.library-tabs-header {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 16px;
}

.library-tabs-nav {
    display: flex;
    align-items: flex-end;
    gap: 0;
    width: 100%;
    border-bottom: 0;
}

.library-tab-toggle {
    margin: 0;
    min-height: 42px;
    width: fit-content;
    border: 0;
    border-bottom: 0;
    border-radius: 13px 13px 0 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 26px;
    min-width: 138px;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    background: var(--lib-bg, #ffffff);
    color: var(--lib-ink, var(--ink));
    position: relative;
    margin-right: 0;
    z-index: 1;
}

.library-tab-toggle:last-child {
    margin-right: 0;
}

.library-tab-toggle.is-active {
    z-index: 2;
}

.library-tab-toggle-create {
    --lib-bg: #dbe3ed;
    --lib-bg-strong: #cad6e4;
    --lib-ink: #1f2f40;
    flex: 0 0 auto;
    margin-right: 0;
}

.library-tab-toggle-plus {
    --lib-bg: var(--pin-accent);
    --lib-bg-strong: var(--pin-accent);
    --lib-ink: #ffffff;
    border: 0 !important;
    border-radius: 13px 13px 0 0;
    min-width: 54px;
    width: 54px;
    min-height: 42px;
    height: 42px;
    padding: 0;
    margin-left: auto;
    margin-right: 0;
    justify-content: center;
    align-self: flex-end;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1;
    position: relative;
    top: 0;
    margin-bottom: 0;
    box-shadow: none !important;
    z-index: 3;
}

.library-tab-toggle-plus.is-active {
    --lib-bg: var(--pin-accent);
    --lib-bg-strong: var(--pin-accent);
    --lib-ink: #ffffff;
    border: 0 !important;
    box-shadow: none !important;
}

.library-tabs-nav .library-tab-toggle:not(.library-tab-toggle-plus) {
    border-radius: 0;
    min-width: 144px;
}

.library-tabs-nav .library-tab-toggle:first-child:not(.library-tab-toggle-plus) {
    border-radius: 13px 0 0 0;
}

.library-tabs-nav .library-tab-toggle:last-child:not(.library-tab-toggle-plus) {
    border-radius: 0 13px 0 0;
}

.library-tabs-nav.is-single-tab .library-tab-toggle:not(.library-tab-toggle-plus) {
    border-radius: 13px 13px 0 0;
}

.library-tab-toggle:hover,
.library-tab-toggle:focus,
.library-tab-toggle:focus-visible,
.library-tab-toggle:active {
    background: var(--lib-bg-strong, var(--lib-bg, #ffffff));
    color: var(--lib-ink, var(--ink));
    border-color: transparent;
    outline: none;
    box-shadow: none;
}

.projects-dashboard .library-tabs-section .library-tab-toggle:focus,
.projects-dashboard .library-tabs-section .library-tab-toggle:focus-visible,
.projects-dashboard .library-tabs-section .library-tab-toggle:active {
    border-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

.library-tab-toggle-video {
    --lib-bg: #a8c3e6;
    --lib-bg-strong: #dce7f5;
    --lib-ink: #ffffff;
}

.library-tab-toggle-pinned {
    --lib-bg: #96abd1;
    --lib-bg-strong: #d6e0f1;
    --lib-ink: #ffffff;
}

.library-tab-toggle-photo {
    --lib-bg: #bfd6a8;
    --lib-bg-strong: #dde9d2;
    --lib-ink: #ffffff;
}

.library-tab-toggle-files {
    --lib-bg: #e3c15a;
    --lib-bg-strong: #f2e1a4;
    --lib-ink: #ffffff;
}

.library-tab-toggle-audio {
    --lib-bg: #d59fd6;
    --lib-bg-strong: #e8cde9;
    --lib-ink: #ffffff;
}

.library-tab-toggle-blog {
    --lib-bg: #c7b3e5;
    --lib-bg-strong: #e5d9f3;
    --lib-ink: #ffffff;
}

.library-tab-toggle-portfolio {
    --lib-bg: #8fbfc3;
    --lib-bg-strong: #cfe8ea;
    --lib-ink: #ffffff;
}

.library-tab-toggle-video.is-active {
    --lib-bg: #a8c3e6;
    --lib-bg-strong: #dce7f5;
    background-image: none;
    background-color: #a8c3e6;
    color: #fff;
}

.library-tab-toggle-pinned.is-active {
    --lib-bg: #96abd1;
    --lib-bg-strong: #d6e0f1;
    background-image: none;
    background-color: #96abd1;
    color: #fff;
}

.library-tab-toggle-photo.is-active {
    --lib-bg: #bfd6a8;
    --lib-bg-strong: #dde9d2;
    background-image: none;
    background-color: #bfd6a8;
    color: #fff;
}

.library-tab-toggle-files.is-active {
    --lib-bg: #e3c15a;
    --lib-bg-strong: #f2e1a4;
    background-image: none;
    background-color: #e3c15a;
    color: #fff;
}

.library-tab-toggle-audio.is-active {
    --lib-bg: #d59fd6;
    --lib-bg-strong: #e8cde9;
    background-image: none;
    background-color: #d59fd6;
    color: #fff;
}

.library-tab-toggle-blog.is-active {
    --lib-bg: #c7b3e5;
    --lib-bg-strong: #e5d9f3;
    background-image: none;
    background-color: #c7b3e5;
    color: #fff;
}

.library-tab-toggle-portfolio.is-active {
    --lib-bg: #8fbfc3;
    --lib-bg-strong: #cfe8ea;
    background-image: none;
    background-color: #8fbfc3;
    color: #fff;
}

.library-tab-toggle-video:not(.is-active):hover,
.library-tab-toggle-video:not(.is-active):focus,
.library-tab-toggle-video:not(.is-active):focus-visible,
.library-tab-toggle-video:not(.is-active):active,
.library-tab-toggle-pinned:not(.is-active):hover,
.library-tab-toggle-pinned:not(.is-active):focus,
.library-tab-toggle-pinned:not(.is-active):focus-visible,
.library-tab-toggle-pinned:not(.is-active):active,
.library-tab-toggle-photo:not(.is-active):hover,
.library-tab-toggle-photo:not(.is-active):focus,
.library-tab-toggle-photo:not(.is-active):focus-visible,
.library-tab-toggle-photo:not(.is-active):active,
.library-tab-toggle-files:not(.is-active):hover,
.library-tab-toggle-files:not(.is-active):focus,
.library-tab-toggle-files:not(.is-active):focus-visible,
.library-tab-toggle-files:not(.is-active):active,
.library-tab-toggle-audio:not(.is-active):hover,
.library-tab-toggle-audio:not(.is-active):focus,
.library-tab-toggle-audio:not(.is-active):focus-visible,
.library-tab-toggle-audio:not(.is-active):active,
.library-tab-toggle-blog:not(.is-active):hover,
.library-tab-toggle-blog:not(.is-active):focus,
.library-tab-toggle-blog:not(.is-active):focus-visible,
.library-tab-toggle-blog:not(.is-active):active,
.library-tab-toggle-portfolio:not(.is-active):hover,
.library-tab-toggle-portfolio:not(.is-active):focus,
.library-tab-toggle-portfolio:not(.is-active):focus-visible,
.library-tab-toggle-portfolio:not(.is-active):active {
    background-image: none;
    background-color: var(--lib-bg-strong, var(--lib-bg, #ffffff));
    color: #fff;
    border-color: transparent;
}

.library-tab-body {
    margin-top: 0;
    border: 1px solid var(--line);
    border-top: 1px solid var(--line);
    border-radius: 0 16px 16px 16px;
    background: #fff;
    padding: 36px 18px 42px;
    min-height: 264px;
    display: grid;
    gap: 12px;
}

.library-create-panel {
    display: none;
}

.library-tabs-section.is-create-open .library-create-panel {
    display: block;
}

.library-create-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.projects-dashboard .library-inline-mode-selector .mode-option {
    min-width: 102px;
    font-size: 0.92rem;
    font-weight: 400;
}

.projects-dashboard .library-inline-mode-selector .mode-option.active {
    font-weight: 400;
}

.projects-dashboard .library-inline-mode-selector .mode-option:focus,
.projects-dashboard .library-inline-mode-selector .mode-option:focus-visible,
.projects-dashboard .library-inline-mode-selector .mode-option.active:focus,
.projects-dashboard .library-inline-mode-selector .mode-option.active:focus-visible {
    box-shadow: none !important;
    outline: none !important;
}

.library-create-name-input {
    flex: 1 1 auto;
    min-width: 240px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 16px;
    height: 40px;
    min-height: 40px;
    font-size: 0.92rem;
    line-height: 1;
}

.library-create-mode-selector {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.library-create-mode-btn {
    border: 1px solid var(--line);
    background: #fff;
    color: #1f2f40;
    border-radius: 14px;
    height: 40px;
    min-height: 40px;
    padding: 0 16px;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.library-create-mode-btn.active {
    background: #a8c3e6;
    border-color: #90add0;
    color: #fff;
}

.library-create-submit-btn {
    border: 1px solid var(--line);
    border-radius: 14px;
    height: 40px;
    min-height: 40px;
    padding: 0 16px;
    font-size: 0.92rem;
    line-height: 1;
    font-weight: 400;
    background: var(--pin-accent);
    border-color: var(--pin-accent-line);
    color: #fff;
    cursor: pointer;
}

.library-create-submit-btn:hover,
.library-create-submit-btn:focus,
.library-create-submit-btn:focus-visible {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.14)),
        linear-gradient(var(--pin-accent), var(--pin-accent));
    background-blend-mode: multiply;
    border-color: var(--pin-accent-line);
    color: #fff;
}

.library-tab-cards-wrap {
    min-height: 0;
}

.projects-dashboard .library-tabs-section.is-expanded {
    grid-column: 1 / -1;
    display: block;
    min-height: 0;
    height: auto;
}

.projects-dashboard .project-folders-section:has(.library-tabs-section.is-expanded) .library-tabs-section.is-expanded {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 100%;
}

.projects-dashboard .project-folders-section:has(.library-tabs-section.is-expanded) .library-tabs-title-wrap {
    flex: 0 0 auto;
}

.library-audio-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 0;
    margin-left: auto;
    margin-top: 0;
    transform: translateY(-5px);
    flex: 0 0 auto;
}

.library-audio-filter-row[hidden] {
    display: none !important;
}

.projects-dashboard .library-audio-filter-row .library-audio-filter-btn {
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.74rem;
    font-weight: 400;
}

.projects-dashboard .library-audio-filter-row .library-audio-filter-btn.is-active {
    background: #bf95c8 !important;
    border-color: #af84b7 !important;
    color: #ffffff !important;
}

.projects-dashboard .library-audio-filter-row .library-audio-filter-btn:hover,
.projects-dashboard .library-audio-filter-row .library-audio-filter-btn:focus,
.projects-dashboard .library-audio-filter-row .library-audio-filter-btn:focus-visible,
.projects-dashboard .library-audio-filter-row .library-audio-filter-btn:active {
    background: #ffffff !important;
    border-color: #c7d4e3 !important;
    color: #1f334b !important;
    box-shadow: none !important;
}

.projects-dashboard .library-audio-filter-row .library-audio-filter-btn.is-active:hover,
.projects-dashboard .library-audio-filter-row .library-audio-filter-btn.is-active:focus,
.projects-dashboard .library-audio-filter-row .library-audio-filter-btn.is-active:focus-visible,
.projects-dashboard .library-audio-filter-row .library-audio-filter-btn.is-active:active {
    background: #bf95c8 !important;
    border-color: #af84b7 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.projects-dashboard .library-tabs-section.is-expanded .library-tab-body {
    min-height: 0;
    display: block;
    overflow: visible;
    position: relative;
}

.projects-dashboard .project-folders-section:has(.library-tabs-section.is-expanded) .library-tab-body {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: calc(100dvh - 250px);
    overflow: hidden;
}

.projects-dashboard.audio-folder-open-state .library-tabs-section.is-expanded .library-tab-body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 0 16px 16px 16px;
    pointer-events: none;
    z-index: 1;
}

.projects-dashboard .library-tabs-section.is-expanded .library-tab-cards-wrap {
    min-height: 0;
    overflow: visible;
    position: relative;
    z-index: 2;
}

.projects-dashboard .project-folders-section:has(.library-tabs-section.is-expanded) .library-tab-cards-wrap {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.projects-dashboard .project-folders-section:has(.library-tabs-section.is-expanded) .library-tab-cards:not([hidden]) {
    flex: 0 1 auto;
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 24px;
    overscroll-behavior: contain;
}

.library-tab-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    justify-content: flex-start;
    align-content: start;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.video-group-expanded-backdrop {
    display: none !important;
}

.project-folder-card.is-video-group-expanded-member {
    position: relative;
    z-index: 2;
}

.project-folder-card.is-photo-group-expanded-member {
    position: relative;
    z-index: 2;
}

.project-folder-card.is-audio-group-expanded-member {
    position: relative;
    z-index: 2;
}

.project-folder-card.project-group-card.is-expanded {
    position: relative;
    z-index: 6;
}

.project-folder-card.project-group-card.is-expanded .folder-top,
.project-folder-card.project-group-card.is-expanded .folder-body {
    position: relative;
    overflow: hidden;
}

.project-folder-card.project-group-card.is-expanded .folder-top::after,
.project-folder-card.project-group-card.is-expanded .folder-body::after {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
    z-index: 3;
}

.project-folder-card.project-group-card.is-expanded .folder-body::after {
    background: rgba(168, 195, 230, 0.98);
}

.project-folder-card.project-group-card.mode-photo.is-expanded .folder-body::after {
    background: rgba(191, 214, 168, 0.98);
}

.project-folder-card.project-group-card.mode-audio.is-expanded .folder-body::after {
    background: rgba(213, 159, 214, 0.98);
}

.project-folder-card.project-group-card.mode-blog.is-expanded .folder-body::after {
    background: rgba(199, 179, 229, 0.98);
}

/* Keep photo expanded folder overlay green even if mode class is missing/overridden. */
.library-tab-cards[data-library-tab-cards="photo"] .project-folder-card.project-group-card.is-expanded .folder-body::after {
    background: rgba(191, 214, 168, 0.98);
}

.library-tab-cards[data-library-tab-cards="audio"] .project-folder-card.project-group-card.is-expanded .folder-body::after {
    background: rgba(213, 159, 214, 0.98);
}

.library-tab-cards[data-library-tab-cards="blog"] .project-folder-card.project-group-card.is-expanded .folder-body::after {
    background: rgba(199, 179, 229, 0.98);
}

.project-folder-card.project-group-card.is-expanded .project-group-preview-mosaic {
    visibility: hidden;
}

.project-folder-card.project-group-card.is-expanded .folder-actions-row.project-group-actions {
    position: relative;
    z-index: 4;
}

/* Keep folder-group action controls aligned to the same baseline as regular dashboard tiles. */
.projects-dashboard:not(.dashboard-list-view) .project-folder-card .folder-actions-row.project-group-actions {
    align-items: center;
}

.projects-dashboard:not(.dashboard-list-view) .project-folder-card .folder-actions-row.project-group-actions .project-group-settings-menu {
    display: flex;
    align-items: center;
    align-self: center;
}

.projects-dashboard:not(.dashboard-list-view) .project-folder-card .folder-actions-row.project-group-actions .project-group-settings-btn,
.projects-dashboard:not(.dashboard-list-view) .project-folder-card .folder-actions-row.project-group-actions .open-video-group-btn {
    min-height: 29px;
    height: 29px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin: 0;
    align-self: center;
}

.project-folder-card.is-video-group-muted .folder-top,
.project-folder-card.is-video-group-muted .folder-body {
    position: relative;
    overflow: hidden;
}

.project-folder-card.is-video-group-muted .folder-top::after,
.project-folder-card.is-video-group-muted .folder-body::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.50);
    pointer-events: none;
    z-index: 3;
}

.projects-dashboard.audio-folder-open-state .library-tab-cards[data-library-tab-cards="audio"] .project-folder-card .folder-body {
    border: 0 !important;
    box-shadow: none !important;
}

.projects-dashboard.audio-folder-open-state .library-tab-cards[data-library-tab-cards="audio"] .project-folder-card.project-create-card .folder-preview.create-project-preview {
    border-color: transparent !important;
    box-shadow: none !important;
}

.projects-dashboard.audio-folder-open-state .library-tab-cards[data-library-tab-cards="audio"] .project-folder-card.is-video-group-muted .folder-body {
    border: 0 !important;
    box-shadow: none !important;
}

.library-tab-cards .folder-top {
    gap: 14px;
}

.library-tab-cards .folder-top:not(.is-playlist-header) .folder-top-label,
.library-tab-cards .folder-top:not(.is-playlist-header) .folder-top-divider {
    display: none;
}

.library-tab-cards .folder-top.folder-top-project-group .folder-top-label,
.library-tab-cards .folder-top.folder-top-project-group .folder-top-divider {
    display: inline-flex;
}

.library-tab-cards .folder-top.is-playlist-header .folder-top-label,
.library-tab-cards .folder-top.is-playlist-header .folder-top-divider {
    display: inline-flex;
}

.library-tab-cards[hidden] {
    display: none !important;
}

.library-tabs-section:not(.is-expanded) .library-tab-cards {
    display: none !important;
}

.library-tabs-section.is-create-open .library-tab-body {
    min-height: 0;
    padding-top: 36px;
    padding-bottom: 36px;
}

.library-tabs-section.is-create-open.is-create-only .library-tab-cards-wrap {
    display: none !important;
}

.library-tabs-section:not(.is-expanded) .library-tab-body {
    min-height: 42px;
    padding-top: 0;
    padding-bottom: 0;
}

.projects-dashboard.pin-mode-active .library-tabs-section:not(.is-expanded):not(.is-create-open) {
    position: fixed;
    left: 50%;
    bottom: 56px;
    transform: translateX(-50%);
    width: min(1200px, 94vw);
    z-index: 85;
    margin-top: 0;
}

.library-mode-section {
    grid-column: 1 / -1;
    position: relative;
    margin-top: 34px;
}

.library-mode-title-wrap {
    position: relative;
    width: fit-content;
}

.library-mode-title-toggle {
    margin: 0;
    min-height: 42px;
    width: fit-content;
    border: 1px solid var(--lib-border, var(--line));
    border-bottom: 0;
    border-radius: 13px 13px 0 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 0 18px;
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    background: var(--lib-bg, #ffffff);
    color: var(--lib-ink, var(--ink));
}

.library-mode-title-toggle:hover {
    background: var(--lib-bg, #ffffff);
    color: var(--lib-ink, var(--ink));
    border-color: var(--lib-border, var(--line));
}

.projects-dashboard .library-mode-title-toggle:focus,
.projects-dashboard .library-mode-title-toggle:focus-visible {
    outline: none;
    box-shadow: none;
    background: var(--lib-bg, #ffffff);
    color: var(--lib-ink, var(--ink));
    border-color: var(--lib-border, var(--line));
}

.library-mode-title-toggle:active {
    background: var(--lib-bg, #ffffff);
    color: var(--lib-ink, var(--ink));
    border-color: var(--lib-border, var(--line));
}

.library-mode-title-toggle-video {
    --lib-bg: #a8c3e6;
    --lib-border: #90add0;
    --lib-ink: #ffffff;
}

.library-mode-title-toggle-photo {
    --lib-bg: #bfd6a8;
    --lib-border: #a6c08d;
    --lib-ink: #ffffff;
}

.library-mode-title-toggle-files {
    --lib-bg: #e3c15a;
    --lib-border: #cfae49;
    --lib-ink: #ffffff;
}

.library-mode-title-toggle-audio {
    --lib-bg: #d59fd6;
    --lib-border: #bf8bbf;
    --lib-ink: #ffffff;
}

.library-mode-main-label {
    font-weight: 700;
}

.library-mode-body {
    margin-top: 0;
    border: 1px solid var(--line);
    border-radius: 0 16px 16px 16px;
    background: #fff;
    padding: 12px 18px;
    min-height: 264px;
    display: grid;
    gap: 0;
}

.library-mode-summary {
    min-height: 0;
    padding: 4px 2px 6px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
}

.library-mode-summary-count {
    margin: 0;
    color: #22334a;
    font-size: 0.92rem;
    font-weight: 400;
    text-align: left;
}

.library-mode-cards {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    justify-content: flex-start;
    align-content: start;
    gap: 24px;
}

.library-mode-section.is-collapsed .library-mode-summary {
    display: flex;
}

.library-mode-section.is-collapsed .library-mode-cards {
    display: none;
    margin-top: 0;
}

.library-mode-section:not(.is-collapsed) .library-mode-summary {
    display: none;
}

.library-mode-section.is-collapsed .library-mode-body {
    min-height: 0;
    padding-top: 10px;
    padding-bottom: 10px;
}

.projects-dashboard.dashboard-list-view .project-folder-card .folder-head-row {
    display: none;
}

.projects-dashboard.dashboard-list-view .project-folder-card {
    max-width: none;
    width: 100%;
    justify-self: stretch;
}

.projects-dashboard.dashboard-list-view .pinned-projects-body {
    padding: 12px;
    border-radius: 14px;
    gap: 14px;
}

.projects-dashboard.dashboard-list-view .pinned-projects-cards {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 14px;
}

.projects-dashboard.dashboard-list-view .library-tab-body {
    gap: 8px;
}

.projects-dashboard.dashboard-list-view .library-tab-cards {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 14px;
}

.projects-dashboard.dashboard-list-view .library-mode-body {
    gap: 0;
}

.projects-dashboard.dashboard-list-view .library-mode-cards {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 14px;
}

.projects-dashboard.dashboard-list-view .library-mode-summary {
    min-height: 0;
    padding: 4px 0;
    gap: 0;
}

.projects-dashboard.dashboard-list-view .project-folder-card .folder-body {
    border-radius: 14px;
    padding: 8px 10px;
    box-shadow: none;
    display: flex;
    width: 100%;
    justify-content: flex-start;
    gap: 14px;
    align-items: center;
}

.projects-dashboard.dashboard-list-view .project-folder-card .folder-preview {
    display: none !important;
}

.projects-dashboard.dashboard-list-view .project-folder-card .folder-actions-row {
    justify-content: flex-end;
    flex: 0 0 auto;
    width: auto;
    padding: 0;
    margin-left: auto;
    gap: 6px;
}

.folder-list-group-title {
    display: none;
}

.projects-dashboard.dashboard-list-view .project-folder-card .folder-list-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
}

.projects-dashboard.dashboard-list-view .project-folder-card.project-group-card .folder-list-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.92rem;
    color: #5f7597;
}

.projects-dashboard.dashboard-list-view .project-folder-card.project-group-card .folder-list-group-label {
    font-weight: 700;
}

.projects-dashboard.dashboard-list-view .project-folder-card.project-group-card .folder-list-group-sep {
    flex: 0 0 auto;
}

.projects-dashboard.dashboard-list-view .project-folder-card.project-group-card .folder-list-group-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.projects-dashboard.dashboard-list-view .project-folder-card.project-group-card .folder-body {
    position: relative;
}

.projects-dashboard.dashboard-list-view .project-folder-card.project-group-card .folder-list-group-title,
.projects-dashboard.dashboard-list-view .project-folder-card.project-group-card .folder-actions-row.project-group-actions {
    position: relative;
    z-index: 4;
}

.projects-dashboard.dashboard-list-view .project-folder-card .folder-list-mode-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 30%;
    width: 30%;
    max-width: 30%;
    padding: 0 16px;
    min-height: 29px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.projects-dashboard.dashboard-list-view .project-folder-card .folder-list-mode-pill .folder-list-mode-label,
.projects-dashboard.dashboard-list-view .project-folder-card .folder-list-mode-pill .folder-list-mode-sep {
    flex: 0 0 auto;
}

.projects-dashboard.dashboard-list-view .project-folder-card .folder-list-mode-pill .folder-list-mode-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.projects-dashboard.dashboard-list-view .project-folder-card .folder-list-mode-pill .folder-list-mode-pin {
    flex: 0 0 auto;
    font-weight: 700;
}

.projects-dashboard.dashboard-list-view .project-folder-card .folder-list-mode-pill.is-pinned {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}


.projects-dashboard.dashboard-list-view .project-folder-card .folder-list-mode-pill-video {
    background: #a8c3e6;
    color: #ffffff;
    border-color: #92afd1;
}

.projects-dashboard.dashboard-list-view .project-folder-card .folder-list-mode-pill-photo {
    background: #bfd6a8;
    color: #ffffff;
    border-color: #a9c290;
}

.projects-dashboard.dashboard-list-view .project-folder-card .folder-list-mode-pill-files {
    background: #e3c15a;
    color: #ffffff;
    border-color: #ceab43;
}

.projects-dashboard.dashboard-list-view .project-folder-card .folder-list-mode-pill-audio {
    background: #d59fd6;
    color: #ffffff;
    border-color: #bf8bc0;
}

.projects-dashboard.dashboard-list-view .project-folder-card .folder-list-mode-pill-audio.is-playlist-pill {
    background: #d59fd6;
    color: #ffffff;
    border-color: #bf8bc0;
}

.projects-dashboard.dashboard-list-view .project-folder-card .folder-list-details {
    margin: 0;
    color: #65788f;
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.2;
    margin-left: 0;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 0 0 auto;
}

.projects-dashboard.dashboard-list-view .project-folder-card .folder-actions-row .project-card-menu,
.projects-dashboard.dashboard-list-view .project-folder-card .folder-actions-row > .project-action-btn {
    flex: 0 0 auto;
}

.projects-dashboard.dashboard-list-view .project-folder-card .project-action-btn,
.projects-dashboard.dashboard-list-view .project-folder-card .project-delete-btn,
.projects-dashboard.dashboard-list-view .project-folder-card .project-settings-btn {
    height: 34px;
    min-height: 34px;
    padding: 0 14px;
    font-size: 0.88rem;
}

.projects-dashboard.dashboard-list-view .project-folder-card .project-settings-btn {
    min-width: 48px;
    justify-content: center;
}

.projects-dashboard.dashboard-list-view .project-folder-card .project-card-menu {
    width: auto;
}

.projects-dashboard.dashboard-list-view .project-folder-card .project-card-menu-popover {
    left: 0;
    right: auto;
    top: calc(100% + 8px);
    bottom: auto;
}

.project-folder-card.dragging {
    opacity: 0.55;
}

.project-folder-card.drag-over .folder-body {
    outline: 2px solid #2ca287;
    outline-offset: -2px;
}

.project-folder-card.project-group-card.drag-over .folder-body {
    outline: 0;
    outline-offset: 0;
}

.folder-head-row {
    display: flex;
    align-items: center;
    gap: 0;
}

.folder-top {
    height: 42px;
    width: fit-content;
    max-width: min(100%, 100%);
    border: 0;
    border-bottom: 0;
    border-radius: 13px 13px 0 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 0 18px;
}

.folder-top.is-pinned {
    min-width: 230px;
    box-shadow: none;
}

.folder-top-photo {
    background: #bfd6a8;
    border-color: #a9c290;
}

.folder-top-video {
    background: #a8c3e6;
    border-color: #92afd1;
}

.folder-top-files {
    background: #e3c15a;
    border-color: #ceab43;
}

.folder-top-audio {
    background: #d59fd6;
    border-color: #bf8bc0;
}

.folder-top-blog {
    background: #c7b3e5;
    border-color: #ae98d3;
}

.folder-top-audio.is-playlist-header {
    background: #d59fd6;
    border-color: #bf8bc0;
}

.folder-top-audio.is-playlist-header .folder-top-label,
.folder-top-audio.is-playlist-header .folder-top-name {
    color: #ffffff;
}

.folder-top-audio.is-playlist-header .folder-top-label {
    font-weight: 400;
}

.folder-top-audio.is-playlist-header .folder-top-divider {
    background: rgba(255, 255, 255, 0.72);
}

.folder-top-label {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.folder-top-icon {
    width: 0.92rem;
    height: 0.92rem;
    object-fit: contain;
    flex: 0 0 auto;
    display: inline-block;
}

.folder-top-meta {
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1;
    color: #ffffff;
    white-space: nowrap;
    margin-left: auto;
    text-align: right;
}

.folder-top-label-photo {
    color: #fff;
}

.folder-top-label-video {
    color: #fff;
}

.folder-top-label-files {
    color: #fff;
}

.folder-top-label-audio {
    color: #fff;
}

.folder-top-label-blog {
    color: #fff;
}

.folder-top-name {
    min-width: 0;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1;
    color: #fff;
}


.folder-top-name[hidden] {
    display: none !important;
}

.folder-top .folder-top-name-input {
    min-width: 0;
    max-width: 220px;
    width: 100%;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1;
    box-shadow: none !important;
}


.project-folder-card.is-renaming-project .folder-top .folder-top-name-input {
    background: #fff !important;
    color: #111827 !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    border-radius: 8px !important;
    padding: 3px 8px !important;
}

.folder-top .folder-top-name-input[hidden] {
    display: none !important;
}

.folder-top .folder-top-name-input:focus {
    outline: none;
    box-shadow: none !important;
}

.folder-top-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    flex: 0 0 auto;
}

.folder-top-pin-divider {
    opacity: 0.82;
}

.folder-top-pin-tag {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    white-space: nowrap;
}

.review-admin #share-details {
    border-color: #e4e8ee;
    background: #fafbfd;
}

.review-admin #share-details .share-link-panel,
.review-admin #share-details .share-access-panel,
.review-admin #share-details .share-access-list-wrap {
    border-color: #e1e6ed;
    background: #fdfdfe;
}

.review-admin[data-project-mode="files"].files-share-open #share-details {
    position: sticky;
    top: var(--files-share-sticky-top, 112px);
    z-index: 65;
    background: #fafbfd;
    border-color: #e4e8ee;
    margin-bottom: 18px;
}

.review-admin[data-project-mode="files"].files-share-open #share-details .share-link-panel,
.review-admin[data-project-mode="files"].files-share-open #share-details .share-access-panel,
.review-admin[data-project-mode="files"].files-share-open #share-details .share-access-list-wrap {
    background: #fdfdfe;
    border-color: #e1e6ed;
}

.review-admin[data-project-mode="files"].files-share-open .files-dropzone-row {
    padding-top: 0;
    margin-bottom: 18px;
}

.review-admin[data-project-mode="files"].files-share-open .files-dropzone-row::before {
    top: -18px;
    height: calc(100% + 18px);
    background: #ffffff;
}

.review-admin[data-project-mode="files"].files-share-open .files-dropzone-row::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -18px;
    height: 18px;
    background: #ffffff;
    z-index: 0;
    pointer-events: none;
}

.folder-body {
    min-height: 0;
    border: 1px solid var(--line);
    border-radius: 0 14px 14px 14px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 28px 14px 0;
    display: grid;
    align-content: start;
    gap: 0;
    position: relative;
    overflow: hidden;
}

.project-folder-card.project-create-card .folder-body {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding-top: 28px;
    display: grid;
    align-content: start;
    gap: 0;
    overflow: visible;
}

.project-folder-card.project-create-card .folder-head-row.create-head-spacer {
    min-height: 42px;
    height: 42px;
}

.project-folder-card.project-create-card .folder-preview.create-project-preview {
    border: 1px solid #d8e3ef;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: var(--shadow);
    overflow: hidden;
    cursor: default;
}

.project-folder-card.project-create-card.mode-video .folder-preview.create-project-preview {
    background: #a8c3e6;
}

.project-folder-card.project-create-card.mode-photo .folder-preview.create-project-preview {
    background: #bfd6a8;
}

.project-folder-card.project-create-card.mode-files .folder-preview.create-project-preview {
    background: #e3c15a;
}

.project-folder-card.project-create-card.mode-audio .folder-preview.create-project-preview {
    background: #d59fd6;
}

.project-folder-card.project-create-card.mode-blog .folder-preview.create-project-preview {
    background: #c7b3e5;
}

.project-folder-card.project-create-card.mode-portfolio .folder-preview.create-project-preview {
    background: #8fbfc3;
}

.library-tab-cards.portfolio-tab-cards {
    display: grid;
}

.projects-dashboard .project-folders-section:has(.library-tabs-section.is-expanded) .library-tab-cards.portfolio-tab-cards:not([hidden]):has(.portfolio-inline-builder:not([hidden])) {
    flex: 1 1 auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    min-height: 0;
    padding-bottom: 0;
    overflow: hidden;
}

.portfolio-dashboard-shell {
    display: contents;
    width: 100%;
}

.portfolio-dashboard-cards {
    display: contents;
}

.portfolio-card-preview {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 6px;
    align-content: stretch;
    min-height: 0;
    background: #f8fbfe;
    padding: 10px 12px 9px;
    box-sizing: border-box;
}

.portfolio-card-preview-empty {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    text-align: center;
    color: #1d2c3c;
    min-height: 100%;
}

.portfolio-card-mode-list {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 0;
}

.portfolio-card-mode-list.is-empty {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.portfolio-card-preview-empty-text {
    color: #708398;
    font-size: 0.72rem;
    line-height: 1.2;
}

.portfolio-card-mode-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 26px;
    padding: 0 12px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.68rem;
    line-height: 1;
    font-weight: 400;
    box-sizing: border-box;
    overflow: hidden;
}

.portfolio-card-mode-pill.mode-video {
    background: #a8bedf;
}

.portfolio-card-mode-pill.mode-photo {
    background: #bfd6a8;
}

.portfolio-card-mode-pill.mode-files {
    background: #ead681;
}

.portfolio-card-mode-pill.mode-audio {
    background: #dfc0e1;
}

.portfolio-card-mode-pill.mode-blog {
    background: #c7b3e5;
}

.portfolio-card-mode-label,
.portfolio-card-mode-count {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portfolio-card-mode-count {
    margin-left: auto;
}

.portfolio-card-preview-mosaic {
    display: grid;
    grid-template-columns: 1.24fr 0.76fr;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 6px;
    min-height: 0;
    height: 100%;
}

.portfolio-card-preview-tile {
    min-width: 0;
    min-height: 0;
    border-radius: 8px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #dce8f5;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
}

.portfolio-card-preview-tile.is-primary {
    grid-row: span 4;
}

.portfolio-card-preview-tile:not(.is-primary) {
    grid-column: 2;
}

.portfolio-card-preview-tile img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.portfolio-card-preview-tile.mode-photo {
    background: #bfd6a8;
}

.portfolio-card-preview-tile.mode-files {
    background: #e3c15a;
}

.portfolio-card-preview-tile.mode-blog {
    background: #c7b3e5;
}

.portfolio-card-preview-tile.mode-audio {
    background: #c7b3e5;
}

.portfolio-card-preview-fallback {
    padding: 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.portfolio-card-preview-audio-live,
.portfolio-card-preview-blog-live {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.portfolio-card-preview-audio-live .files-live-preview {
    width: 100%;
    height: 100%;
    padding: 7px;
    gap: 4px;
    border: 0;
    background: transparent;
    box-sizing: border-box;
}

.portfolio-card-preview-tile:not(.is-primary) .portfolio-card-preview-audio-live .files-live-preview {
    padding: 5px;
    gap: 3px;
}

.portfolio-card-preview-audio-live .files-live-row {
    border: 0;
    border-radius: 6px;
    padding: 4px 5px;
    background: rgba(255, 255, 255, 0.86);
}

.portfolio-card-preview-tile:not(.is-primary) .portfolio-card-preview-audio-live .files-live-row {
    padding: 2px 4px;
}

.portfolio-card-preview-audio-live .files-live-name-audio {
    font-size: 0.48rem;
    line-height: 1;
    color: #53667c;
}

.portfolio-card-preview-tile:not(.is-primary) .portfolio-card-preview-audio-live .files-live-name-audio {
    display: none;
}

.portfolio-card-preview-audio-live .files-live-wave {
    height: 10px;
    opacity: 0.72;
}

.portfolio-card-preview-tile:not(.is-primary) .portfolio-card-preview-audio-live .files-live-wave {
    height: 16px;
}

.portfolio-card-preview-audio-live .files-live-wave-bar {
    background: linear-gradient(180deg, #8a6fb4 0%, #674e91 100%);
}

.portfolio-card-preview-audio-live .files-live-preview-loading .files-live-row,
.portfolio-card-preview-audio-live .files-live-preview .files-live-empty {
    background: rgba(255, 255, 255, 0.78);
}

.portfolio-card-preview-blog-live .blog-card-mini-page {
    padding: 10% 9%;
}

.portfolio-card-preview-tile:not(.is-primary) .portfolio-card-preview-blog-live .blog-card-mini-page {
    padding: 8px 7px;
    gap: 3px;
}

.portfolio-card-preview-tile:not(.is-primary) .portfolio-card-preview-blog-live .blog-card-mini-page h4 {
    font-size: 0.58rem;
    line-height: 1.02;
    -webkit-line-clamp: 2;
}

.portfolio-card-preview-tile:not(.is-primary) .portfolio-card-preview-blog-live .blog-card-mini-date,
.portfolio-card-preview-tile:not(.is-primary) .portfolio-card-preview-blog-live .blog-card-mini-subtitle,
.portfolio-card-preview-tile:not(.is-primary) .portfolio-card-preview-blog-live .blog-card-mini-text,
.portfolio-card-preview-tile:not(.is-primary) .portfolio-card-preview-blog-live .blog-card-mini-empty {
    font-size: 0.34rem;
}

.portfolio-card-preview-tile:not(.is-primary) .portfolio-card-preview-blog-live .blog-card-mini-media-row {
    gap: 2px;
    margin: 2px 0 0;
    min-height: 18px;
}

.portfolio-card-preview-tile:not(.is-primary) .portfolio-card-preview-blog-live .blog-card-mini-media-row img,
.portfolio-card-preview-tile:not(.is-primary) .portfolio-card-preview-blog-live .blog-card-mini-media-chip {
    min-height: 18px;
    border-radius: 3px;
}

.portfolio-card-preview-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d2c3c;
}

.portfolio-card-preview-empty strong,
.portfolio-card-preview-caption strong {
    max-width: 100%;
    font-size: 0.82rem;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portfolio-card-preview-empty span,
.portfolio-card-preview-caption span {
    color: #708398;
    font-size: 0.62rem;
    line-height: 1.2;
    white-space: nowrap;
}

.project-folder-card.mode-portfolio .folder-top-portfolio {
    background: #8fbfc3;
    border-color: #78aab0;
}

.portfolio-inline-builder {
    grid-column: 1 / -1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 18px;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.portfolio-inline-builder[hidden] {
    display: none;
}

.portfolio-inline-builder-head {
    --portfolio-inline-action-height: calc(var(--dash-pill-height) * 0.9);
    --portfolio-inline-action-padding-x: calc(var(--dash-pill-padding-x) * 0.9);
    --portfolio-inline-action-radius: calc(var(--dash-pill-radius) * 0.9);
    --portfolio-inline-action-font-size: calc(var(--dash-pill-font-size) * 0.9);
    --portfolio-inline-close-inset: 0px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #d7e1ec;
    min-width: 0;
    box-sizing: border-box;
}

.portfolio-inline-builder-mount {
    min-width: 0;
    min-height: 0;
}

.projects-dashboard .project-folders-section:has(.library-tabs-section.is-expanded) .portfolio-inline-builder {
    height: 100%;
    min-height: 0;
}

.projects-dashboard .project-folders-section:has(.library-tabs-section.is-expanded) .portfolio-inline-builder-mount {
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    overscroll-behavior: contain;
}

.portfolio-inline-head-actions {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.portfolio-inline-site-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.portfolio-inline-site-actions[hidden] {
    display: none;
}

.portfolio-inline-head-action {
    box-sizing: border-box;
    min-height: var(--portfolio-inline-action-height);
    height: var(--portfolio-inline-action-height);
    padding: 0 var(--portfolio-inline-action-padding-x);
    border-radius: var(--portfolio-inline-action-radius);
    font-size: var(--portfolio-inline-action-font-size);
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}

.portfolio-inline-title-wrap {
    grid-column: 1;
    justify-self: start;
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.portfolio-inline-eyebrow {
    color: #41546b;
    font-size: 1rem;
    line-height: 1.2;
}

.portfolio-inline-title {
    min-width: 0;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portfolio-inline-guidance {
    grid-column: 2;
    justify-self: center;
    margin: 0;
    color: var(--muted);
    font-size: 0.902rem;
    line-height: 1.2;
    text-align: center;
    white-space: pre;
}

.portfolio-inline-guidance[hidden] {
    display: none;
}

.portfolio-inline-close-btn {
    margin-right: var(--portfolio-inline-close-inset);
    flex: 0 0 auto;
    box-sizing: border-box;
    min-width: var(--portfolio-inline-action-height);
    min-height: var(--portfolio-inline-action-height);
    height: var(--portfolio-inline-action-height);
    padding: 0 var(--portfolio-inline-action-padding-x);
    border-radius: var(--portfolio-inline-action-radius);
    align-items: center;
    justify-content: center;
    font-size: 0;
    font-weight: 400;
    line-height: 1;
    text-align: center;
}

.portfolio-inline-close-btn::before {
    content: "X";
    display: block;
    font-size: calc(var(--portfolio-inline-action-font-size) * 0.9);
    font-weight: 400;
    line-height: 1;
}

.portfolio-inline-close-btn.portfolio-inline-back-dashboard-btn {
    min-width: max-content;
    font-size: var(--portfolio-inline-action-font-size);
}

.portfolio-inline-close-btn.portfolio-inline-back-dashboard-btn::before {
    content: none;
    display: none;
}

@media (max-width: 900px) {
    .portfolio-inline-builder-head {
        grid-template-columns: minmax(0, 1fr) auto;
        row-gap: 12px;
    }

    .portfolio-inline-title-wrap {
        grid-column: 1;
    }

    .portfolio-inline-guidance {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: center;
    }

    .portfolio-inline-head-actions {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .portfolio-inline-close-btn {
        margin-right: 0;
    }
}

.portfolio-inline-dialog-body {
    min-width: 0;
    box-sizing: border-box;
}

.portfolio-inline-dialog-body.is-inline-new .website-manage-panel {
    display: none;
}

.portfolio-inline-dialog-body.is-inline-edit .website-create-row,
.portfolio-inline-dialog-body.is-inline-edit .website-manage-toggle {
    display: none;
}

.portfolio-inline-dialog-body.is-inline-edit .website-manage-panel {
    margin-top: 0;
}

.portfolio-inline-dialog-body.is-inline-edit #client-site-list {
    display: grid !important;
}

.portfolio-inline-dialog-body.is-inline-edit .client-site-card {
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.portfolio-inline-dialog-body.is-inline-edit .client-site-card > summary {
    cursor: default;
}

.portfolio-inline-dialog-body.is-inline-edit .client-site-card-chevron {
    display: none;
}

.portfolio-inline-dialog-body.is-inline-edit .client-site-card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    padding-bottom: 0;
}

.portfolio-inline-dialog-body.is-inline-edit .client-site-card-body {
    padding-top: 33px;
    border-top: 0;
}

.portfolio-inline-dialog-body.is-inline-edit .client-site-summary-top-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(210, 219, 229, 0.8);
}

.portfolio-inline-dialog-body.is-inline-edit .client-site-summary-top-row .client-site-card-meta strong {
    font-size: 1rem;
    line-height: 1.2;
}

.portfolio-inline-dialog-body.is-inline-edit .client-site-summary-controls-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding-top: 14px;
}

.portfolio-inline-dialog-body.is-inline-edit .client-site-summary-main {
    grid-column: 1;
    justify-self: start;
    width: auto;
    flex: 0 1 auto;
}

.portfolio-inline-dialog-body.is-inline-edit .client-site-summary-center-actions {
    grid-column: 2;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
}

.portfolio-inline-dialog-body.is-inline-edit .client-site-summary-actions {
    grid-column: 2;
    justify-self: end;
    flex: 0 1 auto;
}

.portfolio-inline-dialog-body.is-inline-edit .client-site-summary-bottom-actions {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    padding-top: 28px;
}

.portfolio-inline-dialog-body.is-inline-edit .client-site-quick-btn.is-active {
    background: #e7f0fb;
    border-color: #c7d7eb;
    color: #334b67;
}

.portfolio-inline-dialog-body.is-inline-edit .client-site-sections-head {
    justify-content: center;
    text-align: center;
}

.portfolio-inline-dialog-body.is-inline-edit .client-site-sections-head .client-site-block-label {
    flex: 0 1 auto;
    transform: translateY(-10px);
}

.portfolio-inline-dialog-body.is-inline-edit .client-site-section-title-pill {
    font-size: 0.9rem;
}

.portfolio-inline-dialog-body.is-inline-edit .client-site-section-drag,
.portfolio-inline-dialog-body.is-inline-edit .client-site-section-mode {
    font-size: 0.828rem;
}

.portfolio-inline-dialog-body.is-inline-edit .client-site-section-rank {
    font-size: 0.72rem;
}

.portfolio-inline-dialog-body .client-site-mode-groups {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 10px;
}

.portfolio-inline-dialog-body .client-site-mode-group {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

.portfolio-inline-dialog-body .client-site-mode-summary {
    min-height: 44px;
    border-radius: 10px;
}

.portfolio-inline-dialog-body .client-site-mode-menu {
    max-height: 262px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 10px 0 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 18px), transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 18px), transparent 100%);
}

.portfolio-inline-dialog-body .client-site-mode-menu::-webkit-scrollbar {
    width: 0;
    height: 0;
}

@media (max-width: 1080px) {
    .portfolio-inline-dialog-body .client-site-mode-groups {
        flex-wrap: wrap;
    }

    .portfolio-inline-dialog-body .client-site-mode-group {
        flex: 0 0 min(100%, calc((100% - 10px) / 2));
        width: min(100%, calc((100% - 10px) / 2));
    }
}

@media (max-width: 700px) {
    .portfolio-inline-dialog-body .client-site-mode-group {
        flex-basis: 100%;
        width: 100%;
    }
}

.portfolio-inline-dialog-body .website-create-row {
    grid-template-columns: minmax(180px, 1.2fr) minmax(132px, 0.58fr) minmax(180px, 0.72fr) minmax(180px, 0.72fr) auto;
}

.portfolio-inline-dialog-body .website-create-security {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
}

.portfolio-inline-dialog-body .website-protected-toggle,
.portfolio-inline-dialog-body .website-download-toggle,
.portfolio-inline-dialog-body .website-comments-toggle {
    min-width: 0;
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
}

.folder-preview-empty-blog {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.6rem;
    color: #ffffff;
    background: #c7b3e5;
}

.blog-card-mini {
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: block;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.blog-card-mini-page {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border: 0;
    border-radius: inherit;
    box-shadow: none;
    padding: 13% 11%;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    text-align: left;
}

.blog-card-mini-page h4 {
    margin: 0;
    color: #111923;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.18rem;
    line-height: 0.98;
    font-weight: 700;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.blog-card-mini-date,
.blog-card-mini-subtitle,
.blog-card-mini-text,
.blog-card-mini-empty {
    margin: 0;
    color: #6f7d90;
    font-size: 0.48rem;
    line-height: 1.25;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.blog-card-mini-date {
    -webkit-line-clamp: 1;
}

.blog-card-mini-subtitle {
    -webkit-line-clamp: 2;
}

.blog-card-mini-text {
    margin-top: 2px;
    color: #1f2833;
    font-family: Georgia, "Times New Roman", serif;
    -webkit-line-clamp: 3;
}

.blog-card-mini-empty {
    margin-top: auto;
    margin-bottom: auto;
    color: #7b8fa7;
    font-family: "Inter", "Avenir Next", "Segoe UI", sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    -webkit-line-clamp: 3;
}

.blog-card-mini-media-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin: 5px 0 2px;
    min-height: 22%;
}

.blog-card-mini-media-row img,
.blog-card-mini-media-chip {
    width: 100%;
    height: 100%;
    min-height: 34px;
    border-radius: 4px;
    object-fit: cover;
    background: #c7b3e5;
}

.blog-card-mini-media-chip {
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 0.42rem;
    font-weight: 700;
    font-family: "Inter", "Avenir Next", "Segoe UI", sans-serif;
}

.blog-card-mini-lines {
    display: grid;
    gap: 5px;
    margin-top: auto;
}

.blog-card-mini-lines span {
    display: block;
    height: 5px;
    border-radius: 999px;
    background: #e2e9f2;
}

.blog-card-mini-lines span:nth-child(2) {
    width: 78%;
}

.blog-card-mini-lines span:nth-child(3) {
    width: 54%;
}

.blog-project-workspace .dashboard-blog-project-workspace {
    min-height: calc(100vh - 112px);
    margin-top: 0;
    padding-top: 12px;
    background: #ffffff;
}

.blog-project-workspace .dashboard-blog-project-workspace .dashboard-blog-editor {
    padding-top: 0;
}

.blog-project-workspace .blog-project-editor-toolbar {
    display: none !important;
}

.blog-project-workspace .blog-project-editor-toolbar .dashboard-blog-actions[hidden] {
    display: none !important;
}

.blog-project-workspace .dashboard-blog-blocks {
    margin-top: 0;
}

.blog-project-workspace .dashboard-blog-blocks > .blog-inline-insert:first-child {
    margin-top: 0;
    margin-bottom: 0;
}

.blog-project-workspace .blog-inline-insert {
    height: 0;
    min-height: 0;
}

.blog-project-workspace .blog-inline-insert.is-blog-bottom-insert {
    height: 74px;
    margin-top: 28px;
    margin-bottom: 0;
}

.blog-project-workspace .dashboard-blog-empty-start {
    width: min(100% - 36px, 700px);
    margin: 20px auto 0;
    display: grid;
    gap: 14px;
    color: #6f7f91;
    font-family: "Inter", "Avenir Next", "Segoe UI", sans-serif;
}

.blog-project-workspace .dashboard-blog-empty-start p {
    margin: 0;
}

.blog-project-workspace .dashboard-blog-empty-start-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.create-project-empty-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    padding: 34px 12px 34px;
    position: relative;
}

.create-project-empty-title {
    font-size: 0.96rem;
    line-height: 1.2;
    font-weight: 600;
    color: #7b8fa7;
    text-align: center;
}

.project-folder-card.project-create-card .create-project-name-input {
    width: min(100%, 232px);
    border: 1px solid var(--line);
    border-radius: 10px;
    min-height: 34px;
    height: 34px;
    padding: 0 12px;
    font-size: 0.83rem;
    line-height: 1;
    color: #6f7d90;
    background: #ffffff;
    text-align: center;
    margin-bottom: 64px;
}

.project-folder-card.project-create-card .create-project-name-input::placeholder {
    color: #7f8da1;
}

.project-folder-card.project-create-card .create-project-name-input:focus,
.project-folder-card.project-create-card .create-project-name-input:focus-visible {
    outline: none;
    border-color: #9eb6d2;
    box-shadow: 0 0 0 2px rgba(169, 195, 230, 0.34);
}

.project-folder-card.project-create-card .create-project-name-input.is-error {
    border-color: var(--danger);
    color: var(--danger);
}

.project-folder-card.project-create-card .create-project-name-input.is-error::placeholder {
    color: var(--danger);
}

.project-folder-card.project-create-card .folder-actions-row {
    padding-top: 30px;
    padding-bottom: 30px;
}

.project-folder-card.project-create-card .create-project-inline-add {
    width: auto !important;
    min-width: 0;
    max-width: none;
    min-height: 0;
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    justify-content: center;
    align-self: center;
    opacity: 0.8;
}

.project-folder-card.project-create-card .create-project-inline-add:hover,
.project-folder-card.project-create-card .create-project-inline-add:focus-visible {
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
}

.project-folder-card.project-create-card .create-project-add-glyph {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
}

.project-folder-card.project-create-card .create-project-add-glyph::before,
.project-folder-card.project-create-card .create-project-add-glyph::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 2px;
    background: rgba(255, 255, 255, 0.72);
    transform: translate(-50%, -50%);
    border-radius: 2px;
}

.project-folder-card.project-create-card .create-project-add-glyph::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.project-folder-card.project-create-card .folder-actions-row.create-actions-spacer {
    visibility: hidden;
    pointer-events: none;
}

.projects-dashboard .project-folder-card.is-selected .folder-body {
    border-color: var(--line);
    background: #ffffff;
}

.projects-dashboard .project-folder-card.is-selected .folder-body::before {
    content: "Selected";
    position: absolute;
    top: 10px;
    right: 24px;
    background: transparent;
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    pointer-events: none;
    z-index: 3;
}

.projects-dashboard .project-folder-card.is-selected .folder-body::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: calc(100% - 152px);
    background: linear-gradient(180deg, rgba(34, 53, 76, 0.24) 0%, rgba(34, 53, 76, 0) 100%);
    pointer-events: none;
    z-index: 2;
    border-radius: inherit inherit 0 0;
}

.projects-dashboard .project-folder-card .dashboard-card-create-folder-btn {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    width: 100% !important;
    min-width: 0;
    height: auto;
    min-height: 0;
    padding: 0 18px;
    border: 0;
    border-radius: 0;
    background: rgba(168, 195, 230, 0.92);
    color: #ffffff;
    box-shadow: none;
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.projects-dashboard .project-folder-card .dashboard-card-create-folder-btn[hidden] {
    display: none !important;
}

.projects-dashboard .project-folder-card .dashboard-card-create-folder-btn:hover,
.projects-dashboard .project-folder-card .dashboard-card-create-folder-btn:focus-visible {
    background: rgba(157, 185, 222, 0.96);
    border: 0;
    box-shadow: none;
}

.projects-dashboard .project-folder-card.mode-photo .dashboard-card-create-folder-btn {
    background: rgba(191, 214, 168, 0.92);
}

.projects-dashboard .project-folder-card.mode-photo .dashboard-card-create-folder-btn:hover,
.projects-dashboard .project-folder-card.mode-photo .dashboard-card-create-folder-btn:focus-visible {
    background: rgba(175, 202, 148, 0.96);
}

.projects-dashboard .project-folder-card.mode-audio .dashboard-card-create-folder-btn {
    background: rgba(213, 159, 214, 0.92);
}

.projects-dashboard .project-folder-card.mode-audio .dashboard-card-create-folder-btn:hover,
.projects-dashboard .project-folder-card.mode-audio .dashboard-card-create-folder-btn:focus-visible {
    background: rgba(198, 143, 200, 0.96);
}

.projects-dashboard .project-folder-card.mode-blog .dashboard-card-create-folder-btn {
    background: rgba(191, 174, 224, 0.92);
}

.projects-dashboard .project-folder-card.mode-blog .dashboard-card-create-folder-btn:hover,
.projects-dashboard .project-folder-card.mode-blog .dashboard-card-create-folder-btn:focus-visible {
    background: rgba(178, 158, 216, 0.96);
}

.folder-preview {
    width: 100%;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    min-height: 0;
    border-radius: 12px;
    border: 1px solid #d8e3ef;
    background: #fff;
    overflow: hidden;
    display: grid;
    place-items: center;
}

.project-folder-card.is-playlist-project .folder-preview {
    background: #ffffff;
    border-color: #d8e3ef;
}

.project-folder-card.is-playlist-project .files-live-preview {
    background: #ffffff;
    border: 1px solid #d8e3ef;
    border-radius: 12px;
}

.projects-dashboard:not(.dashboard-list-view) .project-folder-card.is-playlist-project .folder-body {
    background: #ffffff;
    border-color: #d8e3ef;
}

.project-folder-card.is-playlist-project .files-live-row-audio {
    background: #d8bae3;
    border-color: #c29bd2;
}

.project-folder-card.is-playlist-project .files-live-row-audio .files-live-name-audio {
    color: #ffffff;
}

.project-folder-card.is-playlist-project .files-live-row-audio .files-live-wave-bar {
    background: #ffffff;
}

.folder-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.folder-preview-files-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.folder-preview-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0d1620;
}

.folder-preview-empty {
    color: #7f90a5;
    font-weight: 600;
    width: 100%;
    display: grid;
    justify-items: center;
    align-content: center;
    text-align: center;
    gap: 6px;
    line-height: 1.2;
    padding: 0 12px;
}

.folder-preview-empty-title {
    font-size: 0.96rem;
    font-weight: 600;
    color: #7b8fa7;
}

.folder-preview-empty-subtitle {
    font-size: 0.84rem;
    font-weight: 400;
    color: #879ab0;
}

.folder-preview-empty.is-preparing .folder-preview-empty-title {
    color: #627993;
}

.folder-preview-drop-error {
    width: 100%;
    height: 100%;
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
    gap: 4px;
    padding: 16px;
    box-sizing: border-box;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    color: #c34d4d;
    background: #fff5f5;
    border: 1px solid #efc8c8;
    border-radius: 12px;
}

.files-live-preview {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 14px;
    display: grid;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 8px;
    box-sizing: border-box;
    opacity: 1;
}

/* Files/Audio cards: remove inner preview frame and let list rows span full card content width */
.project-folder-card.mode-files .folder-preview,
.project-folder-card.mode-audio .folder-preview {
    border: 0;
    background: transparent;
    border-radius: 12px;
}

.project-folder-card.mode-files .files-live-preview,
.project-folder-card.mode-audio .files-live-preview,
.project-folder-card.mode-audio.is-playlist-project .files-live-preview {
    height: 100%;
    border: 0;
    border-radius: 12px;
    background: transparent;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
}

.files-live-row {
    border: 1px solid #dfe8f2;
    border-radius: 10px;
    background: #fbfcff;
    min-height: 0;
    height: 100%;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-sizing: border-box;
}

.files-live-main {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.files-live-main-audio {
    width: 100%;
    gap: 5px;
    overflow: hidden;
}

.files-live-name {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.1;
    color: #1c2e44;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-folder-card.mode-files .files-live-name {
    font-weight: 400;
}

.files-live-name-audio {
    font-size: 0.76rem;
    font-weight: 400;
}

.files-live-count {
    font-size: 0.74rem;
    font-weight: 500;
    line-height: 1.1;
    color: #778ca5;
}

.files-live-chip {
    flex: 0 0 auto;
    min-width: 28px;
    height: 24px;
    border: 1px solid #d5e0ec;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    font-weight: 600;
    color: #5a6f86;
    background: #ffffff;
    padding: 0 8px;
}

.files-live-row-audio {
    justify-content: flex-start;
}

.files-live-wave {
    width: 100%;
    height: 14px;
    display: flex;
    align-items: flex-end;
    gap: 0;
    opacity: 0.45;
    position: relative;
    padding-bottom: 1px;
    overflow: hidden;
    max-width: 100%;
}

.files-live-wave::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(132, 154, 178, 0.42);
}

.files-live-wave-bar {
    flex: 1 1 0;
    min-width: 0;
    border-radius: 2px 2px 0 0;
    background: linear-gradient(180deg, #8ea7c2 0%, #6f89a5 100%);
}

.files-live-preview-loading .files-live-row {
    background: #f7f9fc;
    min-height: 0;
}

.files-live-skeleton {
    width: min(260px, 85%);
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #e9eff6 0%, #f6f9fc 50%, #e9eff6 100%);
    background-size: 240px 100%;
    animation: filesLiveShimmer 1.15s linear infinite;
}

@keyframes filesLiveShimmer {
    0% {
        background-position: -240px 0;
    }
    100% {
        background-position: 240px 0;
    }
}

.folder-meta {
    min-height: 34px;
    display: grid;
    align-content: start;
}

.folder-meta h3 {
    margin: 0;
    font-size: 1.35rem;
}

.folder-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.project-name {
    min-width: 0;
    flex: 0 1 auto;
    line-height: 1.1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.folder-head-row .project-name {
    display: none;
}

.folder-name-row .rename-input {
    min-width: 0;
    flex: 1 1 auto;
    margin: 0;
}

.folder-name-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.rename-btn {
    white-space: nowrap;
}

.project-folder-icon-btn {
    width: 20px;
    height: 20px;
    border-radius: 7px;
    padding: 0;
}

.project-folder-icon-btn svg {
    width: 10px;
    height: 10px;
}

.folder-name-actions .delete-project-btn {
    color: var(--danger);
}

.folder-name-actions .delete-project-btn:hover {
    background: #fdf0f0;
    border-color: #efc4c4;
    color: var(--danger);
}

.project-delete-btn {
    padding: 0 12px;
    min-height: 29px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1;
}

.project-action-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-weight: 400;
    font-size: 0.92rem;
}

.project-action-btn:hover {
    background: #edf4fb;
    color: var(--ink);
    border-color: #c6d6e8;
}

.delete-project-btn {
    color: var(--danger);
}

.delete-project-btn:hover {
    background: var(--danger-ink);
    border-color: var(--danger-ink);
    color: #fff;
}

.folder-body .share-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px;
}

.projects-dashboard:not(.dashboard-list-view) .folder-body .share-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
}

.folder-actions-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 30px 0;
}

.projects-dashboard:not(.dashboard-list-view) .folder-actions-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.projects-dashboard:not(.dashboard-list-view) .folder-actions-row > * {
    width: 100%;
}

.project-card-menu {
    position: relative;
    display: block;
    width: 100%;
}

.project-settings-btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
    padding: 0 12px;
    min-height: 29px;
    border-radius: 10px;
    font-size: 0.92rem;
    line-height: 1;
    white-space: nowrap;
}

.project-settings-btn svg {
    width: 20px;
    height: 20px;
    color: #4a5f73;
}

.project-settings-icon-img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}

.project-card-menu-popover {
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    z-index: 26;
    width: 176px;
    border: 1px solid #d6e0eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(18, 32, 47, 0.14);
    padding: 8px;
    display: grid;
    gap: 8px;
}

.project-card-menu-popover[hidden] {
    display: none !important;
}

.project-card-menu-popover .project-action-btn {
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
}

.project-card-menu-popover .project-action-btn.remove-from-folder-btn.is-flagged {
    background: #dbe8f8;
    border-color: #b9cde5;
    color: #2a4a6b;
}

.project-card-menu-popover .project-action-btn.remove-from-folder-btn.is-flagged:hover,
.project-card-menu-popover .project-action-btn.remove-from-folder-btn.is-flagged:focus,
.project-card-menu-popover .project-action-btn.remove-from-folder-btn.is-flagged:focus-visible {
    background: #d1e1f5;
    border-color: #adc4df;
    color: #1f3f61;
}

.share-launch-overlay {
    position: fixed;
    z-index: 80;
    border: 1px solid #d6e0eb;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 42px rgba(18, 32, 47, 0.18);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    transition: left 260ms ease, top 260ms ease, width 260ms ease, height 260ms ease, border-radius 260ms ease;
}

.share-launch-overlay.is-expanding {
    border-radius: 22px;
}

.share-launch-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 16px 20px 10px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 180ms ease 90ms, transform 180ms ease 90ms;
}

.share-launch-overlay.is-expanding .share-launch-head {
    opacity: 1;
    transform: translateY(0);
}

.share-launch-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a2b3d;
}

.share-launch-close {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #d6e0eb;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    color: #1a2b3d;
    font-size: 0.95rem;
    background: #fff;
}

.share-launch-body {
    padding: 0 20px 16px;
    display: grid;
    gap: 12px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 180ms ease 130ms, transform 180ms ease 130ms;
}

.share-launch-overlay.is-expanding .share-launch-body {
    opacity: 1;
    transform: translateY(0);
}

.share-launch-row {
    min-height: 92px;
    border: 1px solid #d6e0eb;
    border-radius: 16px;
    background: #fbfcfe;
}

.folder-list-meta {
    display: none;
}

.folder-project-actions {
    width: 100%;
    justify-content: flex-end !important;
    align-items: center;
    margin-top: 0;
}

.folder-project-actions .folder-preview-btn {
    margin-left: 0;
    padding: 9px 18px;
}

.folder-body .project-action-btn {
    padding: 0 12px;
    min-height: 29px;
    font-size: 0.92rem;
    border-radius: 10px;
    line-height: 1;
    white-space: nowrap;
}

.folder-actions-row .project-card-menu,
.folder-actions-row > .project-action-btn {
    flex: 1 1 0;
}

.folder-actions-row .project-card-menu .project-action-btn {
    width: 100%;
}

.project-folder-card .folder-preview {
    cursor: pointer;
}

.projects-dashboard:not(.dashboard-list-view) .folder-body .project-action-btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
}

/* Regular project cards: hard-lock action pill heights and alignment across all dashboard modes. */
.projects-dashboard:not(.dashboard-list-view) .project-folder-card:not(.project-group-card):not(.project-create-card) .folder-actions-row {
    align-items: center;
}

.projects-dashboard:not(.dashboard-list-view) .project-folder-card:not(.project-group-card):not(.project-create-card) .folder-actions-row .project-card-menu {
    display: flex;
    align-items: center;
}

.projects-dashboard:not(.dashboard-list-view) .project-folder-card:not(.project-group-card):not(.project-create-card) .folder-actions-row .project-settings-btn,
.projects-dashboard:not(.dashboard-list-view) .project-folder-card:not(.project-group-card):not(.project-create-card) .folder-actions-row .folder-preview-btn,
.projects-dashboard:not(.dashboard-list-view) .project-folder-card:not(.project-group-card):not(.project-create-card) .folder-actions-row .folder-open-btn {
    height: 29px;
    min-height: 29px;
    padding: 0 12px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.projects-dashboard:not(.dashboard-list-view) .project-folder-card:not(.project-group-card):not(.project-create-card) .folder-actions-row .folder-preview-btn,
.projects-dashboard:not(.dashboard-list-view) .project-folder-card:not(.project-group-card):not(.project-create-card) .folder-actions-row .folder-open-btn {
    font-family: inherit;
    font-size: calc(var(--dash-pill-font-size) * 0.9);
    font-weight: 400;
    letter-spacing: 0;
}

.projects-dashboard:not(.dashboard-list-view) .project-folder-card:not(.project-group-card):not(.project-create-card) .folder-actions-row .project-settings-btn svg {
    display: block;
}

.projects-dashboard:not(.dashboard-list-view) .project-folder-card.pinned-selection-card .folder-actions-row.pinned-selection-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.projects-dashboard:not(.dashboard-list-view) .project-folder-card.pinned-selection-card .folder-actions-row.pinned-selection-actions > .project-action-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 96px;
}

.projects-dashboard:not(.dashboard-list-view) .project-folder-card.pinned-selection-card .pinned-selection-open-btn {
    margin-left: auto;
}

.clip-card {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: grab;
}

.review-admin[data-project-mode="video"] .clip-card {
    cursor: default;
}

.review-client[data-project-mode="video"] .clip-card {
    cursor: default;
}

.review-admin[data-project-mode="video"] .clip-card .thumb-box {
    cursor: grab;
}

.review-client[data-project-mode="video"] .clip-card .thumb-box,
.review-client[data-project-mode="video"] .clip-card .thumb-box .card-preview-video,
.review-client[data-project-mode="video"] .clip-card .thumb-box .card-preview-image {
    cursor: pointer;
}

.review-admin[data-project-mode="video"] .clip-card .thumb-box:active {
    cursor: grabbing;
}

.review-admin[data-project-mode="video"] .layout-spacer-card {
    border-style: dashed;
    border-color: #c9d7e7;
    background: rgba(247, 250, 254, 0.74);
    box-shadow: none;
    cursor: grab;
}

.review-admin[data-project-mode="video"] .layout-spacer-card .layout-spacer-thumb {
    background: transparent;
    color: #7b8ca1;
    font-size: 0.95rem;
    font-weight: 500;
}

.review-admin[data-project-mode="video"] .layout-spacer-card .layout-spacer-meta {
    align-items: center;
    padding: 12px;
}

.review-admin[data-project-mode="video"] .layout-spacer-card .layout-spacer-delete-btn {
    height: var(--dash-pill-height) !important;
    min-height: var(--dash-pill-height) !important;
    padding: 0 var(--dash-pill-padding-x) !important;
    border-radius: var(--dash-pill-radius) !important;
    font-family: "Avenir Next", "Segoe UI", sans-serif !important;
    font-size: calc(var(--dash-pill-font-size) * 0.9) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
}

.review-admin[data-project-mode="video"] .layout-spacer-list-row {
    cursor: grab;
}

.review-client[data-project-mode="video"] .client-layout-spacer-card,
.client-site-presentation .site-present-video-card.client-layout-spacer-card {
    aspect-ratio: var(--ratio, var(--site-video-ratio, 16 / 9));
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    pointer-events: none;
    visibility: hidden;
}

.review-admin.files-mode .clip-card,
.review-client.files-mode .clip-card {
    cursor: default;
}

.review-admin.files-mode .video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-content: start;
    align-items: start;
}

.review-client.files-mode .video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-content: start;
}

.review-admin.audio-mode .video-grid,
.review-client.audio-mode .video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12.5px;
}

.review-admin.audio-mode .clip-card,
.review-client.audio-mode .clip-card {
    box-shadow: none;
}

.review-admin.video-list-mode .video-grid,
.review-client.video-list-mode .video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.review-admin.video-list-mode .video-grid .clip-card.wide-169,
.review-client.video-list-mode .video-grid .clip-card.wide-169 {
    grid-column: auto;
}

.file-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

/* Prevent accidental browser text highlight while range-selecting
   files in client preview/presentation (admin remains unchanged). */
.review-client.preview-page.files-mode .file-row,
.review-client.client-site-presentation.files-mode .file-row {
    user-select: none;
    -webkit-user-select: none;
}

.file-row-main {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.review-admin.files-mode .file-row-main-files,
.review-client.files-mode .file-row-main-files {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 18px;
    row-gap: 0;
}

.file-row-title {
    margin: 0;
    font-size: 1rem;
    color: var(--ink);
    font-weight: 400;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-admin.files-mode .file-row-title,
.review-client.files-mode .file-row-title {
    font-size: 0.95rem;
}

.file-row-meta {
    margin: 0;
    font-size: 0.76rem;
    color: var(--muted);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-admin.files-mode .file-row-main-files .file-row-meta,
.review-client.files-mode .file-row-main-files .file-row-meta {
    align-self: center;
    justify-self: end;
    text-align: right;
}

.file-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.file-row-action-icon {
    width: 31px;
    min-width: 31px;
    height: 25px;
    min-height: 25px;
    padding: 0;
}

.file-row-action-icon svg {
    width: 14px;
    height: 14px;
}

.file-row-action-icon.download-file-btn svg {
    opacity: 0.75;
}

.file-row-action-icon.info-file-btn {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    color: #66758a;
    text-transform: lowercase;
}

.file-row-action-icon.delete-file-btn {
    color: var(--danger);
    border-color: #e8b8b8;
}

.file-folder-group {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: 8px;
}

.file-folder-group + .file-folder-group {
    margin-top: 8px;
}

/* In grid layouts, row spacing is handled by grid gap.
   Keep direct folder cards horizontally aligned. */
.review-admin.files-mode #video-grid > .file-folder-group + .file-folder-group,
.review-client.files-mode #video-grid > .file-folder-group + .file-folder-group {
    margin-top: 0;
}

.review-admin.files-mode #video-grid .file-folder-columns-shell,
.review-client.files-mode #video-grid .file-folder-columns-shell {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
    grid-column: 1 / -1;
}

.review-admin.files-mode #video-grid .file-folder-column,
.review-client.files-mode #video-grid .file-folder-column {
    display: grid;
    gap: 10px;
    align-content: start;
}

.review-admin.files-mode #video-grid .file-folder-columns-shell,
.review-client.files-mode #video-grid .file-folder-columns-shell {
    position: relative;
}

.review-admin.files-mode #video-grid .file-folder-columns-shell.folder-root-drop-active::before,
.review-client.files-mode #video-grid .file-folder-columns-shell.folder-root-drop-active::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px dashed rgba(143, 181, 222, 0.55);
    border-radius: 12px;
    background: rgba(247, 251, 255, 0.72);
    pointer-events: none;
    z-index: 4;
}

.review-admin.files-mode #video-grid .file-folder-columns-shell.folder-root-drop-active::after,
.review-client.files-mode #video-grid .file-folder-columns-shell.folder-root-drop-active::after {
    content: "Place folder here";
    position: absolute;
    left: 50%;
    top: 18px;
    transform: translateX(-50%);
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(143, 181, 222, 0.65);
    background: rgba(255, 255, 255, 0.95);
    color: #4c6786;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    pointer-events: none;
    z-index: 5;
}

.file-folder-upload-feedback {
    margin: 2px 2px 8px;
    border: 1px solid #d7e1ec;
    border-radius: 10px;
    background: #f6faff;
    color: #415d79;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 8px 12px;
}

.file-folder-upload-feedback.is-success {
    border-color: #bedecf;
    background: #f0faf4;
    color: #2f6f4e;
}

.file-folder-upload-feedback.is-error {
    border-color: #efc3c3;
    background: #fff6f6;
    color: #b44545;
}

.file-folder-zip-progress {
    margin: 0 10px 6px auto;
    width: min(420px, calc(100% - 20px));
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.file-folder-zip-progress[hidden] {
    display: none !important;
}

.file-folder-zip-progress-head {
    margin-bottom: 4px;
    gap: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.file-folder-zip-progress-left {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.file-folder-zip-progress-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.file-folder-zip-working {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.1;
    font-weight: 400;
    color: #5b7086;
    text-transform: lowercase;
}

.file-folder-zip-meta {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.1;
    color: #5f738b;
    text-align: right;
    white-space: nowrap;
}

.file-folder-zip-cancel-btn {
    width: 21px;
    height: 21px;
    border-radius: 999px;
    border: 1px solid #c7d2df;
    background: #ffffff !important;
    background-image: none !important;
    -webkit-appearance: none;
    appearance: none;
    color: #76879a;
    font-size: 0.74rem;
    font-weight: 400;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    box-shadow: none;
    vertical-align: middle;
}

.file-folder-zip-cancel-btn:hover,
.file-folder-zip-cancel-btn:focus,
.file-folder-zip-cancel-btn:focus-visible,
.file-folder-zip-cancel-btn:active {
    background: #ffffff !important;
    background-image: none !important;
    color: #617487;
    border-color: #c7d2df;
    box-shadow: none !important;
    outline: none !important;
}

.file-folder-zip-cancel-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: #ffffff !important;
}

.file-folder-zip-progress .progress-track {
    height: 7px;
}

.file-folder-zip-progress .progress-fill {
    background: #89abe1;
}

.file-folder-zip-status {
    margin-top: 4px;
    min-height: 1em;
    font-size: 0.76rem;
    color: #5b7086;
}

.file-folder-zip-status.is-error {
    color: #b44545;
}

.file-folder-summary {
    list-style: none;
    cursor: pointer;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 16px;
    padding: 8px 8px 6px;
    min-height: 92px;
    border: 0;
    border-radius: 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.file-folder-group:not(.is-nested-folder) .file-folder-summary {
    grid-template-areas:
        "main icons"
        "actions actions";
    row-gap: 8px;
}

.file-folder-summary:focus,
.file-folder-summary:focus-visible,
.file-folder-summary.drop-target {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(188, 201, 216, 0.28);
    border-radius: 10px;
}

.file-folder-summary.upload-drop-target {
    outline: none;
    box-shadow: none;
    border-radius: 10px;
    background: #f4edff;
}

.file-folder-summary::-webkit-details-marker {
    display: none;
}

.file-folder-summary-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: stretch;
    min-height: 0;
    padding-bottom: 0;
    gap: 2px;
}

.file-folder-group:not(.is-nested-folder) .file-folder-summary-main {
    grid-area: main;
}

.file-folder-title-row {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.file-folder-meta-row {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin-top: 0;
}

.file-folder-goodybag-expiry-row {
    margin-top: 4px;
}

.file-folder-goodybag-expiry-note {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.2;
    color: #637893;
    font-weight: 400;
}

.file-folder-name {
    font-weight: 700;
    color: var(--ink);
    overflow-wrap: anywhere;
    font-size: 1.05rem;
}

.file-folder-watch-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #c4d1e3;
    background: #f8fbff;
    color: #5a6f89;
    font-size: 0.74rem;
    font-weight: 500;
    line-height: 1.1;
    white-space: nowrap;
}

.file-folder-summary-actions {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
    width: auto;
    margin-left: auto;
    align-self: start;
    min-height: 100%;
}

.review-client.files-mode #video-grid .file-folder-summary-actions .folder-download-btn {
    min-height: 30px;
    height: 30px;
    padding: 4px 10px;
    border-radius: 9px;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1;
}

.file-folder-group:not(.is-nested-folder) .file-folder-summary-actions {
    display: contents;
}

.file-folder-top-icons {
    display: inline-flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
}

.file-folder-top-icons .folder-download-btn-inline {
    min-height: 30px;
    height: 30px;
    padding: 4px 10px;
    border-radius: 9px;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1;
}

.file-folder-settings-btn {
    width: 42px;
    min-width: 42px;
    height: 35px;
    min-height: 35px;
    padding: 0;
    border-radius: 10px;
    justify-content: center;
}

.file-folder-settings-btn .clip-settings-icon-img {
    width: 21.6px;
    height: 21.6px;
    opacity: 0.7;
}

.file-folder-group:not(.is-nested-folder) .file-folder-top-icons {
    grid-area: icons;
    width: auto;
    justify-self: end;
}

.file-folder-chevron {
    font-size: 0.855rem;
    line-height: 1;
    color: #7c8a9e;
    opacity: 0.7;
    margin-top: 2px;
    display: inline-block;
    transform: rotate(0deg);
    transition: transform 140ms ease;
}

.file-folder-group[open] .file-folder-summary .file-folder-chevron {
    transform: rotate(-180deg);
}

.review-client.files-mode #video-grid .file-folder-chevron {
    font-size: 1.2825rem;
    opacity: 0.7;
}

.client-site-presentation .site-present-section.mode-files .file-folder-chevron {
    font-size: 1.2825rem;
}

.review-admin.files-mode #video-grid .file-folder-name {
    font-weight: 600;
}

.review-admin.files-mode #video-grid .file-folder-chevron {
    font-size: 1.2825rem;
}

.review-client.preview-page.dashboard-quick-preview.files-mode #video-grid .file-folder-chevron {
    font-size: 1.2825rem;
}

.file-folder-corner-icon {
    width: 42px;
    height: 35px;
    object-fit: contain;
    opacity: 0.5;
}

.file-folder-bottom-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 140ms ease, max-height 140ms ease;
}

.file-folder-group.folder-actions-open .file-folder-bottom-actions {
    max-height: 64px;
    opacity: 1;
    pointer-events: auto;
}

.review-client.files-mode #video-grid .file-folder-group[open] > .file-folder-summary .file-folder-bottom-actions,
.client-site-presentation .site-present-file-group-list .file-folder-group[open] > .file-folder-summary .file-folder-bottom-actions {
    max-height: 64px;
    opacity: 1;
    pointer-events: auto;
}

.file-folder-group:not(.is-nested-folder) .file-folder-bottom-actions {
    grid-area: actions;
    justify-self: end;
    justify-content: flex-end;
    width: auto;
}

.review-admin[data-project-mode="files"] #video-grid .file-folder-group .file-folder-bottom-actions .folder-download-btn,
.review-admin[data-project-mode="files"] #video-grid .file-folder-group .file-folder-bottom-actions .folder-delete-btn,
.review-client[data-project-mode="files"] #video-grid .file-folder-group .file-folder-bottom-actions .folder-download-btn,
.review-client[data-project-mode="files"] #video-grid .file-folder-group .file-folder-bottom-actions .folder-delete-btn {
    background: transparent !important;
}

.review-admin[data-project-mode="files"] #video-grid .file-folder-group .file-folder-bottom-actions .folder-share-goodybag-btn,
.review-admin[data-project-mode="files"] #video-grid .file-folder-group .file-folder-bottom-actions .folder-create-btn,
.review-admin[data-project-mode="files"] #video-grid .file-folder-group .file-folder-bottom-actions .folder-download-btn,
.review-admin[data-project-mode="files"] #video-grid .file-folder-group .file-folder-bottom-actions .folder-delete-btn,
.review-client[data-project-mode="files"] #video-grid .file-folder-group .file-folder-bottom-actions .folder-share-goodybag-btn,
.review-client[data-project-mode="files"] #video-grid .file-folder-group .file-folder-bottom-actions .folder-create-btn,
.review-client[data-project-mode="files"] #video-grid .file-folder-group .file-folder-bottom-actions .folder-download-btn,
.review-client[data-project-mode="files"] #video-grid .file-folder-group .file-folder-bottom-actions .folder-delete-btn {
    font-weight: 400 !important;
}

.review-admin[data-project-mode="files"] #video-grid .file-folder-group.is-goodybag .file-folder-bottom-actions .soft-btn,
.review-client[data-project-mode="files"] #video-grid .file-folder-group.is-goodybag .file-folder-bottom-actions .soft-btn {
    background: transparent !important;
}

.review-admin[data-project-mode="files"] #video-grid .file-folder-group .file-folder-bottom-actions .folder-download-btn:hover,
.review-admin[data-project-mode="files"] #video-grid .file-folder-group .file-folder-bottom-actions .folder-download-btn:focus,
.review-admin[data-project-mode="files"] #video-grid .file-folder-group .file-folder-bottom-actions .folder-download-btn:focus-visible,
.review-admin[data-project-mode="files"] #video-grid .file-folder-group .file-folder-bottom-actions .folder-download-btn:active,
.review-admin[data-project-mode="files"] #video-grid .file-folder-group .file-folder-bottom-actions .folder-delete-btn:hover,
.review-admin[data-project-mode="files"] #video-grid .file-folder-group .file-folder-bottom-actions .folder-delete-btn:focus,
.review-admin[data-project-mode="files"] #video-grid .file-folder-group .file-folder-bottom-actions .folder-delete-btn:focus-visible,
.review-admin[data-project-mode="files"] #video-grid .file-folder-group .file-folder-bottom-actions .folder-delete-btn:active,
.review-client[data-project-mode="files"] #video-grid .file-folder-group .file-folder-bottom-actions .folder-download-btn:hover,
.review-client[data-project-mode="files"] #video-grid .file-folder-group .file-folder-bottom-actions .folder-download-btn:focus,
.review-client[data-project-mode="files"] #video-grid .file-folder-group .file-folder-bottom-actions .folder-download-btn:focus-visible,
.review-client[data-project-mode="files"] #video-grid .file-folder-group .file-folder-bottom-actions .folder-download-btn:active,
.review-client[data-project-mode="files"] #video-grid .file-folder-group .file-folder-bottom-actions .folder-delete-btn:hover,
.review-client[data-project-mode="files"] #video-grid .file-folder-group .file-folder-bottom-actions .folder-delete-btn:focus,
.review-client[data-project-mode="files"] #video-grid .file-folder-group .file-folder-bottom-actions .folder-delete-btn:focus-visible,
.review-client[data-project-mode="files"] #video-grid .file-folder-group .file-folder-bottom-actions .folder-delete-btn:active {
    background: transparent !important;
}

.review-admin[data-project-mode="files"] #video-grid .file-folder-group .file-folder-bottom-actions .folder-delete-btn,
.review-admin[data-project-mode="files"] #video-grid .file-folder-group .file-folder-bottom-actions .folder-delete-btn:hover,
.review-admin[data-project-mode="files"] #video-grid .file-folder-group .file-folder-bottom-actions .folder-delete-btn:focus,
.review-admin[data-project-mode="files"] #video-grid .file-folder-group .file-folder-bottom-actions .folder-delete-btn:focus-visible,
.review-admin[data-project-mode="files"] #video-grid .file-folder-group .file-folder-bottom-actions .folder-delete-btn:active,
.review-client[data-project-mode="files"] #video-grid .file-folder-group .file-folder-bottom-actions .folder-delete-btn,
.review-client[data-project-mode="files"] #video-grid .file-folder-group .file-folder-bottom-actions .folder-delete-btn:hover,
.review-client[data-project-mode="files"] #video-grid .file-folder-group .file-folder-bottom-actions .folder-delete-btn:focus,
.review-client[data-project-mode="files"] #video-grid .file-folder-group .file-folder-bottom-actions .folder-delete-btn:focus-visible,
.review-client[data-project-mode="files"] #video-grid .file-folder-group .file-folder-bottom-actions .folder-delete-btn:active {
    color: var(--danger) !important;
}

.review-admin[data-project-mode="files"] #video-grid .file-folder-group.is-goodybag .file-folder-bottom-actions .soft-btn:hover,
.review-admin[data-project-mode="files"] #video-grid .file-folder-group.is-goodybag .file-folder-bottom-actions .soft-btn:focus,
.review-admin[data-project-mode="files"] #video-grid .file-folder-group.is-goodybag .file-folder-bottom-actions .soft-btn:focus-visible,
.review-admin[data-project-mode="files"] #video-grid .file-folder-group.is-goodybag .file-folder-bottom-actions .soft-btn:active,
.review-client[data-project-mode="files"] #video-grid .file-folder-group.is-goodybag .file-folder-bottom-actions .soft-btn:hover,
.review-client[data-project-mode="files"] #video-grid .file-folder-group.is-goodybag .file-folder-bottom-actions .soft-btn:focus,
.review-client[data-project-mode="files"] #video-grid .file-folder-group.is-goodybag .file-folder-bottom-actions .soft-btn:focus-visible,
.review-client[data-project-mode="files"] #video-grid .file-folder-group.is-goodybag .file-folder-bottom-actions .soft-btn:active {
    background: transparent !important;
}

.file-folder-group:not(.is-nested-folder) .file-folder-bottom-actions .folder-delete-btn {
    order: 1;
}

.file-folder-group:not(.is-nested-folder) .file-folder-bottom-actions .folder-create-btn {
    order: 2;
}

.file-folder-group:not(.is-nested-folder) .file-folder-bottom-actions .folder-download-btn {
    order: 4;
}

.file-folder-group:not(.is-nested-folder) .file-folder-bottom-actions .folder-rename-btn {
    order: 3;
}

.file-folder-group:not([open]) .folder-create-btn {
    display: none !important;
}

.file-folder-group .file-folder-bottom-actions .folder-rename-btn {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: normal;
}

.file-folder-info {
    color: var(--muted);
    font-size: 2rem;
}

.folder-rename-input {
    width: min(260px, 100%);
    min-width: 120px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 4px 10px;
    font: inherit;
    color: var(--ink);
    background: #fff;
}

.folder-rename-input:focus {
    outline: none;
    border-color: #bcc9d8;
    box-shadow: 0 0 0 2px rgba(188, 201, 216, 0.3);
}

.file-folder-summary-actions .folder-actions-menu {
    position: relative;
    display: inline-flex;
}

.file-folder-summary-actions .folder-actions-menu-btn {
    width: 48px;
    min-width: 48px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    justify-content: center;
}

.file-folder-summary-actions .folder-actions-menu-btn .dashboard-menu-icon-img {
    width: 22px;
    height: 22px;
}

.file-folder-summary-actions .folder-actions-menu-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    width: 190px;
    border: 1px solid #d6e0eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(18, 32, 47, 0.14);
    padding: 8px;
    display: grid;
    gap: 8px;
}

.file-folder-summary-actions .folder-actions-menu-popover[hidden] {
    display: none !important;
}

.file-folder-summary-actions .folder-actions-menu-popover .soft-btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
}

.review-admin.files-mode #video-grid .file-folder-group,
.review-admin.files-mode #video-grid .file-folder-summary,
.review-admin.files-mode #video-grid .file-row,
.review-admin.files-mode #video-grid .soft-btn,
.review-client.files-mode #video-grid .file-folder-group,
.review-client.files-mode #video-grid .file-folder-summary,
.review-client.files-mode #video-grid .file-row,
.review-client.files-mode #video-grid .soft-btn {
    box-shadow: none !important;
}

.review-admin.files-mode #video-grid .file-folder-group.folder-dragging,
.review-client.files-mode #video-grid .file-folder-group.folder-dragging {
    opacity: 1;
}

.review-admin.files-mode #video-grid .file-folder-group.folder-dragging-source .file-folder-summary,
.review-client.files-mode #video-grid .file-folder-group.folder-dragging-source .file-folder-summary {
    transform: scaleX(0.94);
    transform-origin: left center;
    opacity: 0.4;
    filter: saturate(0.9);
}

.review-admin.files-mode #video-grid .file-folder-group.folder-dragging-source .file-folder-summary-actions,
.review-client.files-mode #video-grid .file-folder-group.folder-dragging-source .file-folder-summary-actions {
    opacity: 0;
}

.review-admin.files-mode #video-grid .file-folder-group,
.review-client.files-mode #video-grid .file-folder-group {
    position: relative;
    transition: margin 120ms ease, box-shadow 120ms ease;
}

.file-folder-drop-split-overlay {
    position: absolute;
    inset: 8px;
    border-radius: 10px;
    border: 1px solid rgba(143, 181, 222, 0.6);
    background: rgba(247, 251, 255, 0.9);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    pointer-events: none;
    opacity: 0;
    transition: opacity 110ms ease;
    z-index: 3;
}

.file-folder-drop-split-option {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.78rem;
    color: #5f7898;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 10px 12px;
}

.file-folder-drop-split-right {
    border-left: 1px solid rgba(143, 181, 222, 0.45);
}

.review-admin.files-mode #video-grid .file-folder-group.folder-drop-split-active .file-folder-drop-split-overlay,
.review-client.files-mode #video-grid .file-folder-group.folder-drop-split-active .file-folder-drop-split-overlay {
    opacity: 1;
}

.review-admin.files-mode #video-grid .file-folder-group.folder-drop-split-reorder .file-folder-drop-split-left,
.review-client.files-mode #video-grid .file-folder-group.folder-drop-split-reorder .file-folder-drop-split-left {
    background: rgba(137, 171, 225, 0.2);
    color: #415d79;
}

.review-admin.files-mode #video-grid .file-folder-group.folder-drop-split-nest .file-folder-drop-split-right,
.review-client.files-mode #video-grid .file-folder-group.folder-drop-split-nest .file-folder-drop-split-right {
    background: rgba(137, 171, 225, 0.2);
    color: #415d79;
}

.review-admin.files-mode #video-grid .file-folder-group.file-drop-target-active::before,
.review-client.files-mode #video-grid .file-folder-group.file-drop-target-active::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 10px;
    border: 1px solid rgba(143, 181, 222, 0.55);
    background: rgba(247, 251, 255, 0.82);
    pointer-events: none;
    z-index: 4;
}

.review-admin.files-mode #video-grid .file-folder-group.file-drop-target-active::after,
.review-client.files-mode #video-grid .file-folder-group.file-drop-target-active::after {
    content: "Move file here";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(143, 181, 222, 0.65);
    background: rgba(255, 255, 255, 0.96);
    color: #4c6786;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    pointer-events: none;
    z-index: 5;
    white-space: nowrap;
}

.review-admin.files-mode #video-grid .file-folder-list.drop-target,
.review-client.files-mode #video-grid .file-folder-list.drop-target {
    border-radius: 10px;
    box-shadow: inset 0 0 0 2px rgba(143, 181, 222, 0.42);
    background: #f7fbff;
}

.review-admin.files-mode #video-grid .file-folder-list.upload-drop-target,
.review-client.files-mode #video-grid .file-folder-list.upload-drop-target {
    border-radius: 10px;
    box-shadow: none;
    background: #f4edff;
}

.review-admin.files-mode #video-grid .file-folder-group.drop-target,
.review-client.files-mode #video-grid .file-folder-group.drop-target {
    box-shadow: inset 0 0 0 2px rgba(143, 181, 222, 0.42);
    background: #f7fbff;
}

.review-admin.files-mode #video-grid .file-folder-group.upload-drop-target,
.review-client.files-mode #video-grid .file-folder-group.upload-drop-target {
    border-color: #8e5de8;
    background: #f4edff;
    box-shadow: none;
}

.review-admin[data-project-mode="files"] #video-grid .file-folder-group.is-goodybag,
.review-client[data-project-mode="files"] #video-grid .file-folder-group.is-goodybag {
    background: #f9f6fd;
    border-color: #ece4f6;
}

.review-admin[data-project-mode="files"] #video-grid .file-folder-group.is-goodybag .file-folder-summary,
.review-client[data-project-mode="files"] #video-grid .file-folder-group.is-goodybag .file-folder-summary {
    background: transparent;
}

.review-admin[data-project-mode="files"] #video-grid .file-folder-group.is-goodybag .file-folder-name,
.review-client[data-project-mode="files"] #video-grid .file-folder-group.is-goodybag .file-folder-name {
    color: var(--ink);
}

.review-admin[data-project-mode="files"] #create-goodybag-btn,
.review-client[data-project-mode="files"] #create-goodybag-btn {
    font-weight: inherit;
    -webkit-appearance: none;
    appearance: none;
    background: #fff !important;
    background-image: none !important;
    color: var(--ink);
}

.review-admin[data-project-mode="files"] #create-goodybag-btn:disabled,
.review-client[data-project-mode="files"] #create-goodybag-btn:disabled {
    -webkit-appearance: none;
    appearance: none;
    opacity: 1;
    background: #fff !important;
    background-image: none !important;
    color: var(--ink);
}

.review-admin[data-project-mode="files"] #create-goodybag-btn:hover,
.review-admin[data-project-mode="files"] #create-goodybag-btn:focus,
.review-admin[data-project-mode="files"] #create-goodybag-btn:focus-visible,
.review-admin[data-project-mode="files"] #create-goodybag-btn:active,
.review-client[data-project-mode="files"] #create-goodybag-btn:hover,
.review-client[data-project-mode="files"] #create-goodybag-btn:focus,
.review-client[data-project-mode="files"] #create-goodybag-btn:focus-visible,
.review-client[data-project-mode="files"] #create-goodybag-btn:active {
    background: #f9f6fd !important;
    background-color: #f9f6fd !important;
    border-color: #ece4f6 !important;
    color: #6b5f84 !important;
}

.review-admin[data-project-mode="files"] #video-grid .file-row.is-selected,
.review-client[data-project-mode="files"] #video-grid .file-row.is-selected {
    background: #eef5fe;
    border-color: #c9d8ea;
}

.review-admin[data-project-mode="files"] #video-grid .file-folder-group.is-goodybag .file-row.is-selected,
.review-client[data-project-mode="files"] #video-grid .file-folder-group.is-goodybag .file-row.is-selected {
    background: #fbf8ff;
    border-color: #ece4f6;
}

.review-admin[data-project-mode="files"] .file-folder-group.is-goodybag .file-folder-bottom-actions .soft-btn,
.review-client[data-project-mode="files"] .file-folder-group.is-goodybag .file-folder-bottom-actions .soft-btn,
.review-admin[data-project-mode="files"] .file-folder-group.is-goodybag .file-folder-bottom-actions .soft-btn:hover,
.review-admin[data-project-mode="files"] .file-folder-group.is-goodybag .file-folder-bottom-actions .soft-btn:focus,
.review-admin[data-project-mode="files"] .file-folder-group.is-goodybag .file-folder-bottom-actions .soft-btn:focus-visible,
.review-admin[data-project-mode="files"] .file-folder-group.is-goodybag .file-folder-bottom-actions .soft-btn:active,
.review-client[data-project-mode="files"] .file-folder-group.is-goodybag .file-folder-bottom-actions .soft-btn:hover,
.review-client[data-project-mode="files"] .file-folder-group.is-goodybag .file-folder-bottom-actions .soft-btn:focus,
.review-client[data-project-mode="files"] .file-folder-group.is-goodybag .file-folder-bottom-actions .soft-btn:focus-visible,
.review-client[data-project-mode="files"] .file-folder-group.is-goodybag .file-folder-bottom-actions .soft-btn:active {
    -webkit-appearance: none;
    appearance: none;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

.file-folder-info {
    font-size: 0.72rem;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.file-folder-list {
    margin-top: 8px;
    display: grid;
    gap: 8px;
}

.file-folder-list .file-row {
    width: 100%;
    margin-left: 0;
}

.file-folder-list .file-folder-group.is-nested-folder {
    width: 100%;
    margin-left: auto;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
}

.file-folder-list .file-folder-group.is-nested-folder + .file-folder-group.is-nested-folder {
    margin-top: 8px;
}

.file-folder-list .file-folder-group.is-nested-folder .file-folder-summary {
    min-height: 48px;
    gap: 10px;
    padding: 8px 12px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff9ec;
    border-color: #efe2bb;
    width: 100%;
    margin-left: 0;
}

.file-folder-list .file-folder-group.is-nested-folder > .file-folder-zip-progress {
    width: 100%;
    margin-right: 0;
}

.file-folder-list .file-folder-group.is-nested-folder .file-folder-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.file-folder-list .file-folder-group.is-nested-folder .file-folder-summary-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2px;
}

.file-folder-list .file-folder-group.is-nested-folder .file-folder-title-row {
    gap: 8px;
    align-items: center;
}

.file-folder-list .file-folder-group.is-nested-folder .file-folder-meta-row {
    margin-top: 0;
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.file-folder-list .file-folder-group.is-nested-folder .file-folder-info {
    font-size: 0.72rem;
}

.file-folder-list .file-folder-group.is-nested-folder .file-folder-corner-icon {
    width: 30px;
    height: 24px;
    opacity: 0.4;
}

.file-folder-list .file-folder-group.is-nested-folder .file-folder-settings-btn {
    width: 30px;
    min-width: 30px;
    height: 24px;
    min-height: 24px;
    border-radius: 7px;
}

.file-folder-list .file-folder-group.is-nested-folder .file-folder-settings-btn .clip-settings-icon-img {
    width: 17px;
    height: 17px;
}

.file-folder-list .file-folder-group.is-nested-folder .file-folder-summary-actions {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    min-height: 0;
    gap: 8px;
}

.file-folder-list .file-folder-group.is-nested-folder .file-folder-top-icons {
    width: auto;
    gap: 6px;
    align-items: center;
    order: 2;
}

.file-folder-list .file-folder-group.is-nested-folder .file-folder-bottom-actions {
    order: 1;
}

.review-client.files-mode #video-grid .file-folder-group.is-nested-folder[open] > .file-folder-summary .file-folder-bottom-actions,
.client-site-presentation .site-present-file-group-list .file-folder-group.is-nested-folder[open] > .file-folder-summary .file-folder-bottom-actions {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

.review-client.files-mode #video-grid .file-folder-group.is-nested-folder.folder-actions-open > .file-folder-summary .file-folder-bottom-actions,
.client-site-presentation .site-present-file-group-list .file-folder-group.is-nested-folder.folder-actions-open > .file-folder-summary .file-folder-bottom-actions {
    max-height: 64px;
    opacity: 1;
    pointer-events: auto;
}

.file-folder-list .file-folder-group.is-nested-folder .file-folder-chevron {
    margin-top: 0;
}

.file-folder-list .file-folder-group.is-nested-folder .file-folder-bottom-actions {
    gap: 8px;
}

.file-folder-list .file-folder-group.is-nested-folder .file-folder-bottom-actions .folder-create-btn {
    order: 2;
}

.file-folder-list .file-folder-group.is-nested-folder .file-folder-bottom-actions .folder-download-btn {
    order: 4;
}

.file-folder-list .file-folder-group.is-nested-folder .file-folder-bottom-actions .folder-delete-btn {
    order: 1;
}

.file-folder-list .file-folder-group.is-nested-folder .file-folder-bottom-actions .folder-rename-btn {
    order: 3;
}

.file-folder-list .file-folder-group.is-nested-folder .file-folder-bottom-actions .soft-btn {
    min-height: 0;
    height: auto;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 500 !important;
    background: transparent !important;
    background-color: transparent !important;
}

.file-folder-list .file-folder-group.is-nested-folder.folder-actions-open .file-folder-bottom-actions .folder-create-btn {
    display: inline-flex !important;
}

.file-folder-list .file-folder-group.is-nested-folder .file-folder-bottom-actions .folder-action-icon {
    width: 33px;
    min-width: 33px;
    height: 26px;
    min-height: 26px;
    padding: 0;
    background: transparent;
}

.file-folder-list .file-folder-group.is-nested-folder .file-folder-bottom-actions .folder-action-icon svg {
    width: 16px;
    height: 16px;
    opacity: 0.75;
}

.file-folder-list .file-folder-group.is-nested-folder .file-folder-bottom-actions .folder-action-icon.folder-delete-btn:hover,
.file-folder-list .file-folder-group.is-nested-folder .file-folder-bottom-actions .folder-action-icon.folder-delete-btn:focus,
.file-folder-list .file-folder-group.is-nested-folder .file-folder-bottom-actions .folder-action-icon.folder-delete-btn:focus-visible,
.file-folder-list .file-folder-group.is-nested-folder .file-folder-bottom-actions .folder-action-icon.folder-delete-btn:active {
    background: transparent;
    color: var(--danger);
    border-color: #e8b8b8;
}

.file-folder-list .file-folder-group.is-nested-folder .file-folder-list {
    margin-top: 8px;
}

.file-folder-list .file-folder-group.is-nested-folder .file-folder-list .file-row {
    width: 100%;
    margin-left: 0;
}

.video-list-row .card-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.video-list-row .clip-title {
    margin: 0;
    font-size: 1rem;
    color: var(--ink);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.video-list-row .clip-title-input {
    margin: 0;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.video-list-row .card-commented-pill {
    flex: 0 0 auto;
    align-self: center;
}

.video-list-row .card-comment-block {
    margin-top: 6px;
}

.video-list-row .card-comment-meta {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-list-row .file-row-actions {
    flex-wrap: nowrap;
}

.video-list-row .file-row-main {
    cursor: grab;
}

.video-list-row.dragging .file-row-main {
    cursor: grabbing;
}

.video-list-row .file-row-actions .soft-btn {
    min-height: 30px;
    border-radius: 8px;
    min-width: 74px;
    padding: 7px 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.review-admin[data-project-mode="video"] .video-list-row .file-row-actions .soft-btn,
.review-admin[data-project-mode="video"] .card-actions-below .soft-btn {
    padding: 0 12px;
    min-height: 29px;
    font-size: 0.92rem;
    font-weight: 400;
    border-radius: 10px;
    line-height: 1;
    white-space: nowrap;
}

.video-list-row .video-list-rename-btn {
    min-width: 38px;
}

.video-list-row .video-list-rename-btn:hover {
    background: #edf4fb;
    border-color: #c6d6e8;
    color: var(--ink);
}

.review-admin.video-list-mode .video-grid .video-list-row.is-selected,
.review-client.video-list-mode .video-grid .video-list-row.is-selected {
    background: #eef5fe;
    border-color: #c9d8ea;
    box-shadow: 0 0 0 1px rgba(178, 201, 229, 0.45);
}

.clip-actions-menu {
    position: relative;
    width: 100%;
}

.clip-settings-btn {
    width: 100%;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 10px;
    padding: 0 12px;
}

.review-admin[data-project-mode="video"] .clip-settings-btn {
    min-height: 29px;
}

.clip-settings-icon-img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}

.clip-actions-menu-popover {
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    z-index: 30;
    width: calc(300% + 16px);
    border: 1px solid #d6e0eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(18, 32, 47, 0.14);
    padding: 8px;
    display: grid;
    gap: 8px;
}

.clip-actions-menu-popover[hidden] {
    display: none !important;
}

.clip-actions-menu-popover .soft-btn {
    width: 100%;
    justify-content: center;
}

.review-admin[data-project-mode="video"] .clip-actions-menu-popover .soft-btn {
    min-height: 34px;
    font-size: 0.92rem;
    border-radius: 10px;
    padding: 0 12px;
}

.clip-actions-menu-popover .clip-action-delete-btn {
    color: var(--danger);
    border-color: #e8b8b8;
}

.clip-actions-menu-popover .clip-action-delete-btn:hover,
.clip-actions-menu-popover .clip-action-delete-btn:focus,
.clip-actions-menu-popover .clip-action-delete-btn:focus-visible {
    background: #fff5f5;
    border-color: #e2a2a2;
    color: var(--danger-ink);
}

.video-list-row .clip-actions-menu {
    width: auto;
}

.video-list-row .clip-settings-btn {
    width: 42px;
    min-width: 42px;
    min-height: 30px;
    padding: 0;
}

.video-list-row .clip-actions-menu-popover {
    width: 176px;
}

.client-site-page .layout {
    width: min(1400px, 95vw);
}

.site-title-wrap h1 {
    margin: 0;
    text-align: center;
}

.site-topbar-minimal {
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.site-topbar-minimal .site-title-wrap {
    width: 100%;
}

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

.site-item-select {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--muted);
}

.site-files-list {
    display: grid;
    gap: 10px;
}

.site-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.site-photo-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.site-photo-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.site-photo-meta,
.site-video-meta {
    display: grid;
    gap: 8px;
    padding: 10px;
}

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

.site-preview-section {
    padding: 12px;
}

.client-site-project-frame {
    width: 100%;
    min-height: 900px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.client-site-presentation .layout {
    width: min(1200px, 94vw);
    margin-top: 44px;
    position: relative;
}

.client-site-presentation.is-site-presentation-header-fixed .layout {
    padding-top: var(--site-presentation-header-height, 118px);
}

.client-site-presentation .site-topbar-minimal {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 120;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
    background: #ffffff;
    padding-top: 26px;
    padding-bottom: 32px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - min(1200px, 94vw) / 2);
    padding-right: calc(50vw - min(1200px, 94vw) / 2);
    border-bottom: 1px solid #d7e0ea;
    --site-tab-divider-bottom: 32px;
    --site-tab-divider-shift: 0px;
}

.client-site-presentation.is-site-presentation-header-fixed .site-topbar-minimal {
    position: fixed;
    inset: 0 0 auto 0;
    width: 100vw;
    margin: 0;
    padding-top: var(--site-presentation-header-padding-top, 26px);
    padding-bottom: var(--site-presentation-header-padding-bottom, 32px);
    padding-left: calc(50vw - min(1200px, 94vw) / 2);
    padding-right: calc(50vw - min(1200px, 94vw) / 2);
    box-shadow: 0 14px 30px rgba(21, 38, 63, 0.05);
}

.client-site-presentation .site-layout-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.client-site-presentation .site-layout-toggle-label {
    font-size: 0.74rem;
    color: #5c6f86;
    white-space: nowrap;
}

.client-site-presentation .site-layout-toggle-btn {
    min-height: 30px;
    height: 30px;
    padding: 6px 9px;
    border-radius: 9px;
    font-size: 0.8rem;
    font-weight: 400;
    white-space: nowrap;
}

.client-site-presentation .site-layout-toggle-btn.is-active {
    background: #eaf3fd !important;
    border-color: #c6d6e8 !important;
    color: #1f3f5c !important;
}

.client-site-presentation .site-messaging-toggle-btn {
    min-height: 30px;
    height: 30px;
    padding: 6px 9px;
    border-radius: 9px;
    font-size: 0.8rem;
    font-weight: 400;
    white-space: nowrap;
}

.client-site-presentation .site-messaging-toggle-btn.is-active {
    background: #eaf3fd !important;
    border-color: #c6d6e8 !important;
    color: #1f3f5c !important;
}

.client-site-presentation .site-messenger-topbar-btn {
    position: relative;
    min-height: 30px;
    height: 30px;
    padding: 6px 12px;
    border-radius: 9px;
    font-size: 0.8rem;
    font-weight: 400;
    white-space: nowrap;
}

.client-site-presentation .site-messenger-topbar-btn.is-open {
    background: #eaf3fd !important;
    border-color: #c6d6e8 !important;
    color: #1f3f5c !important;
}

.client-site-presentation .site-messenger-topbar-btn[hidden] {
    display: none !important;
}

.client-site-presentation .site-messenger-topbar-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e23d3d;
    color: #fff;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.client-site-presentation .site-messenger-topbar-badge[hidden] {
    display: none !important;
}

.client-site-presentation .site-messenger-widget {
    position: fixed;
    right: max(16px, calc(50vw - min(1200px, 94vw) / 2));
    bottom: 24px;
    z-index: 220;
}

.client-site-presentation .site-messenger-widget[hidden] {
    display: none !important;
}

.client-site-presentation .site-messenger-fab {
    position: relative;
    width: 31px;
    min-width: 31px;
    height: 31px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid #cdd9e8;
    background: #fff;
    color: #5f728d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 38px rgba(32, 47, 67, 0.16);
    cursor: pointer;
    overflow: visible;
}

.client-site-presentation .site-messenger-fab svg,
.client-site-presentation .site-messenger-fab::before {
    content: none;
}

.client-site-presentation .site-messenger-fab svg {
    display: block;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.client-site-presentation .site-messenger-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e23d3d;
    color: #fff;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.client-site-presentation .site-messenger-badge[hidden] {
    display: none !important;
}

.client-site-presentation .site-messenger-panel {
    position: absolute;
    right: 0;
    bottom: 58px;
    width: min(360px, calc(100vw - 32px));
    max-height: min(520px, calc(100vh - 120px));
    border: 1px solid #cdd9e8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 56px rgba(32, 47, 67, 0.2);
    overflow: hidden;
}

body.client-site-presentation:not([data-site-preview-controls="1"]) .site-messenger-widget {
    left: max(16px, calc(50vw - min(1200px, 94vw) / 2));
    right: auto;
    top: 70px;
    bottom: auto;
}

body.client-site-presentation.site-layout-tab-mode:not([data-site-preview-controls="1"]) .site-messenger-widget {
    top: 48px;
}

body.client-site-presentation:not([data-site-preview-controls="1"]) .site-messenger-fab {
    width: 31px;
    min-width: 31px;
    height: 31px;
    border-radius: 10px;
    box-shadow: none;
}

body.client-site-presentation:not([data-site-preview-controls="1"]) .site-messenger-panel {
    position: fixed;
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    width: min(560px, calc(100vw - 32px));
    max-height: min(680px, calc(100vh - 64px));
    transform: translate(-50%, -50%);
}

.client-site-presentation .site-messenger-panel[hidden] {
    display: none !important;
}

.client-site-presentation .site-messenger-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overscroll-behavior: contain;
}

.client-site-presentation .site-messenger-head {
    min-height: 48px;
    padding: 10px 12px 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #e1e8f1;
}

.client-site-presentation #site-messenger-close {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1;
    opacity: 0.75;
}

.client-site-presentation .site-messenger-list {
    min-height: 0;
    max-height: 330px;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overscroll-behavior: contain;
}

body.client-site-presentation:not([data-site-preview-controls="1"]) .site-messenger-list {
    max-height: none;
}

.client-site-presentation .site-messenger-empty {
    margin: 0;
    color: #6f7f96;
    font-size: 0.9rem;
}

.client-site-presentation .site-messenger-message {
    max-width: 88%;
    padding: 9px 11px;
    border: 1px solid #d8e2ef;
    border-radius: 14px;
    background: #f6f9fd;
    color: #162235;
}

.client-site-presentation .site-messenger-message.is-own {
    align-self: flex-end;
    background: #eaf3ff;
}

.client-site-presentation .site-messenger-message.is-other {
    align-self: flex-start;
}

.client-site-presentation .site-messenger-message-meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 3px;
    font-size: 0.72rem;
    color: #617188;
}

.client-site-presentation .site-messenger-message p {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 0.86rem;
    line-height: 1.35;
}

.client-site-presentation .site-messenger-form {
    padding: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    border-top: 1px solid #e1e8f1;
}

.client-site-presentation .site-messenger-form textarea {
    min-height: 42px;
    max-height: 110px;
    resize: vertical;
    border: 1px solid #cdd9e8;
    border-radius: 12px;
    padding: 10px 11px;
    font: inherit;
    font-size: 0.86rem;
}

.client-site-presentation .site-messenger-form textarea:focus,
.client-site-presentation .site-messenger-form textarea:focus-visible {
    outline: none;
    border-color: #cdd9e8;
    box-shadow: none;
}

@media (min-width: 721px) {
    .client-site-presentation .site-messenger-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .client-site-presentation .site-messenger-form button {
        display: none !important;
    }
}

.client-site-presentation .site-add-note-btn.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.client-site-presentation .site-layout-tabs-wrap {
    width: min(1200px, 94vw);
    margin: 10px auto 0;
}

.client-site-presentation .site-layout-tabs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.client-site-presentation .site-layout-mode-tab {
    min-height: 32px;
    height: 32px;
    border-radius: 999px;
    padding: 0 12px;
    font-size: 0.76rem;
    font-weight: 500;
}

.client-site-presentation .site-layout-mode-tab.is-active {
    background: #eaf3fd !important;
    border-color: #c6d6e8 !important;
    color: #1f3f5c !important;
}

.client-site-presentation .site-topbar-left-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: 14px;
    flex-wrap: wrap;
}

.client-site-presentation .site-topbar-left-cluster {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    margin-right: 14px;
}

.client-site-presentation .site-topbar-left-cluster .site-topbar-left-actions {
    margin-right: 0;
}

.client-site-presentation .site-zip-progress {
    width: min(320px, 90vw);
    display: grid;
    gap: 6px;
}

.client-site-presentation .site-zip-progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.74rem;
    color: #5b6e84;
    line-height: 1;
}

.client-site-presentation .site-zip-progress-left {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.client-site-presentation .site-zip-progress-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.client-site-presentation .site-zip-cancel-btn {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid #c8d3e0;
    background: transparent;
    color: #7a8ca1;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

.client-site-presentation .site-zip-cancel-btn[hidden] {
    display: none !important;
}

.client-site-presentation .site-zip-cancel-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.client-site-presentation .site-zip-progress-track {
    position: relative;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #dce5ef;
    overflow: hidden;
}

.client-site-presentation .site-zip-progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #7ea3e2;
    transition: width 200ms ease;
}

.client-site-presentation .site-portfolio-headline {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: auto;
    padding: 0;
    margin: 0 auto 0 0;
    box-sizing: border-box;
}

.client-site-presentation .site-topbar-minimal.has-preview-back .site-portfolio-headline {
    margin-right: auto;
    justify-content: flex-start;
}

.client-site-presentation .site-topbar-minimal.has-preview-back {
    padding-bottom: 37px;
}

.client-site-presentation .site-portfolio-headline-title {
    text-align: left;
}

.client-site-presentation .site-topbar-minimal.has-preview-back .site-portfolio-headline-title {
    text-align: left;
}

.client-site-presentation .site-portfolio-headline-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: auto;
}

.client-site-presentation .site-portfolio-headline-line {
    display: none;
}

.client-site-presentation .site-portfolio-headline-logo {
    width: auto;
    height: clamp(29px, 4.48vw, 46px);
    object-fit: contain;
}

.client-site-presentation .site-portfolio-headline-title {
    margin: 0;
    text-align: left;
    font-size: clamp(0.84rem, 1.19vw, 1.1rem);
    line-height: 1.1;
    font-weight: 400;
    color: #15253a;
}

.client-site-presentation .site-topbar-right-cluster {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-left: auto;
    flex: 1 1 auto;
    flex-wrap: wrap;
}

.client-site-presentation .site-topbar-left-controls,
.client-site-presentation .site-topbar-return-controls {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.client-site-presentation .site-topbar-left-controls {
    justify-content: flex-start;
}

.client-site-presentation .site-topbar-return-controls {
    justify-content: flex-end;
    margin-left: auto;
}

.client-site-presentation .site-topbar-right-cluster .site-layout-toggle {
    gap: 10px;
}

.client-site-presentation .site-topbar-right-cluster .client-back-btn {
    margin-left: 4px;
}

.client-site-presentation .site-topbar-minimal > .site-zip-progress {
    position: absolute;
    right: calc(50vw - min(1200px, 94vw) / 2);
    bottom: -3px;
    width: min(320px, 18vw);
    margin: 0;
    order: 0;
    z-index: 122;
}

.client-site-presentation .client-back-btn {
    position: static;
    left: auto;
    right: auto;
    transform: none;
    margin: 0;
}

.client-site-presentation .site-portfolio-headline-prefix {
    font-weight: 400;
    color: #15253a;
}

.client-site-presentation .site-portfolio-headline-sep {
    margin: 0 8px;
    color: #7a8da5;
    font-weight: 400;
}

.client-site-presentation .site-portfolio-headline-name {
    color: #15253a;
    font-weight: 700;
}

@media (max-width: 700px) {
    .client-site-presentation .site-topbar-minimal {
        gap: 10px;
    }

    .client-site-presentation .site-portfolio-headline {
        display: flex;
        justify-content: flex-start;
        gap: 8px;
    }

    .client-site-presentation .site-portfolio-headline-title {
        text-align: left;
    }

    .client-site-presentation .site-topbar-right-cluster {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }

    .client-site-presentation .site-topbar-minimal > .site-zip-progress {
        position: static;
        width: 100%;
        max-width: none;
        margin-top: 8px;
    }
}

.site-present-section {
    padding: 14px;
    border-radius: 0;
}

.client-site-presentation .site-present-section .library-head {
    justify-content: flex-start;
}

.client-site-presentation .site-present-section .library-head h2 {
    text-align: left;
    width: auto;
    margin-left: 0;
}

.client-site-presentation .site-present-section.mode-photo {
    border: 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.client-site-presentation .site-present-section.mode-photo .library-head,
.client-site-presentation .site-present-section.mode-photo .site-present-subtitle {
    width: min(1500px, 96vw);
    margin-left: auto;
    margin-right: auto;
    padding-left: 14px;
    padding-right: 14px;
}

.client-site-presentation .site-present-section.mode-photo .library-head,
.client-site-presentation .site-present-section.mode-photo .site-present-subtitle {
    display: none;
}

.site-present-subtitle {
    margin: 4px 0 12px;
    text-align: left;
}

.client-site-presentation .site-present-section.mode-blog {
    border: 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.client-site-presentation .site-present-section.mode-blog_collection {
    border: 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.site-present-blog-collection-list {
    --blog-collection-public-width: min(1200px, 94vw);
    --blog-collection-preview-width: 300px;
    --blog-collection-preview-height: 170px;
    width: var(--blog-collection-public-width);
    max-width: 100%;
    margin: 10px auto 0;
}

.site-present-blog-collection-reader-row {
    width: var(--blog-collection-public-width);
    max-width: 100%;
    margin: 0 auto;
}

.site-present-blog-collection-reader-row .site-present-blog-collection-close-btn {
    top: calc(var(--site-presentation-header-height, 132px) + 36px);
}

.site-present-blog-collection-reader-frame {
    min-height: 720px;
}

.client-site-presentation .site-present-blog-article {
    padding: 28px 0 14px;
}

.client-site-presentation .site-present-blog-video {
    width: 100%;
    max-height: 82vh;
    background: #000;
    border-radius: 12px;
}

.client-site-presentation .site-present-blog-audio {
    width: min(100%, 700px);
    margin: 0 auto;
}

.client-site-presentation .site-present-blog-empty {
    width: min(100% - 36px, 700px);
    margin: 0 auto;
}

.site-add-note-btn.is-active {
    background: #e9f1fb;
    border-color: #9eb6d6;
}

.site-notes-layer {
    position: relative;
    margin-top: 12px;
    min-height: 12px;
}

.site-notes-layer.site-notes-layer-global {
    position: absolute;
    inset: 0;
    z-index: 36;
    margin-top: 0;
    min-height: 0;
    pointer-events: none;
}

.site-notes-layer.site-notes-layer-global .site-note {
    pointer-events: auto;
}

.site-notes-layer.site-notes-layer-global .site-note[hidden] {
    display: none !important;
}

.site-note {
    position: absolute;
    border: 1px solid #b9cbe0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 18px rgba(20, 36, 58, 0.12);
    overflow: visible;
    resize: none;
    min-width: 190px;
    min-height: 72px;
}

.site-note-resize-handle {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 16px;
    height: 16px;
    border-bottom: 2px solid #9fb6d2;
    border-right: 2px solid #9fb6d2;
    border-radius: 0 0 8px 0;
    cursor: nwse-resize;
    z-index: 3;
    background: transparent;
}

.site-note-actions {
    position: absolute;
    top: -34px;
    left: 0;
    right: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.site-note-weight-controls {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #d0dceb;
    border-radius: 999px;
    background: #ffffff;
    padding: 2px;
    margin-left: auto;
}

.site-note-weight-btn {
    appearance: none;
    -webkit-appearance: none;
    min-width: 34px;
    height: 22px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #6c809a;
    font-size: 0.66rem;
    font-weight: 600;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.site-note-weight-btn.is-active {
    background: #e8f1fb !important;
    color: #1f3f66 !important;
}

.site-note-weight-btn:hover,
.site-note-weight-btn:focus,
.site-note-weight-btn:focus-visible,
.site-note-weight-btn:active {
    background: transparent !important;
    color: #6c809a !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.site-note-weight-btn.is-active:hover,
.site-note-weight-btn.is-active:focus,
.site-note-weight-btn.is-active:focus-visible,
.site-note-weight-btn.is-active:active {
    background: #e8f1fb !important;
    color: #1f3f66 !important;
    box-shadow: none !important;
}

.site-note-drag-handle {
    appearance: none;
    -webkit-appearance: none;
    min-width: 58px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid #d0dceb;
    background: #ffffff;
    color: #8a9db6;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
    padding: 0 12px;
    cursor: grab;
}

.site-note-drag-handle:hover,
.site-note-drag-handle:focus,
.site-note-drag-handle:focus-visible,
.site-note-drag-handle:active {
    background: #ffffff !important;
    color: #8a9db6 !important;
    border-color: #d0dceb !important;
    box-shadow: none !important;
}

.site-note-drag-handle:active {
    cursor: grabbing;
}

.site-note-delete {
    appearance: none;
    -webkit-appearance: none;
    position: static;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid #d0dceb;
    background: #fff;
    color: #8a9db6;
    padding: 0;
    line-height: 1;
    font-size: 0.765rem;
    font-weight: 700;
}

.site-note-delete:hover,
.site-note-delete:focus,
.site-note-delete:focus-visible,
.site-note-delete:active {
    background: #ffffff;
    color: #8a9db6;
    border-color: #d0dceb;
    box-shadow: none;
}

.site-note-text {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #1e2f45;
    font-size: 0.95rem;
    line-height: 1.35;
    padding: 10px;
    resize: none;
    white-space: pre-wrap;
    overflow: auto;
}

.site-note:not(.is-readonly) .site-note-text {
    padding-right: 10px;
}

.site-note-text:focus {
    outline: none;
}

.site-note.is-readonly {
    resize: none;
}

.site-note.is-readonly .site-note-text {
    padding-top: 10px;
}

.site-section-tab-wrap {
    display: flex;
    justify-content: flex-start;
    margin-bottom: -1px;
}

.site-section-tab {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 46px;
    padding: 0 19px;
    border-radius: 15px 15px 0 0;
    border: 1px solid #b9cbe0;
    border-bottom: 0;
    background: #8ea5c2;
    color: #ffffff;
}

.client-site-presentation .site-section-tab {
    gap: 12px;
    min-height: 39px;
    padding: 0 16px;
    border-radius: 13px 13px 0 0;
}

.site-present-section.mode-video .site-section-tab {
    background: #a8c3e6;
    border: 0;
}

.site-present-section.mode-files .site-section-tab {
    background: #e3c15a;
    border-color: #d6b350;
}

.site-present-section.mode-audio .site-section-tab {
    background: #d59fd6;
    border-color: #c790c8;
}

.site-present-section.mode-files .site-present-file-row:first-child {
    border-top-left-radius: 20px;
}

.site-present-section.mode-audio .site-present-audio-pill:first-child {
    border-top-left-radius: 20px;
}

.site-present-section.mode-video .site-present-video-grid .site-present-video-card:first-child {
    border-top-left-radius: 0;
    border-top: 1px solid var(--line);
}

.site-present-section.mode-video .site-present-video-grid .site-present-video-card:first-child .site-present-video-player.custom-video-player {
    border-top-left-radius: 0;
}

.site-section-tab-label {
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.site-section-tab-title {
    font-size: 1.02rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.site-section-tab-sep {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.18rem;
    line-height: 1;
}

.client-site-presentation .site-section-tab-label,
.client-site-presentation .site-section-tab-title {
    font-size: 0.87rem;
}

.client-site-presentation .site-section-tab-sep {
    font-size: 1rem;
}

.site-present-hero {
    margin: 0 0 12px;
    position: relative;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #000;
}

.site-present-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.18) 0%,
        rgba(0, 0, 0, 0.32) 56%,
        rgba(0, 0, 0, 0.46) 100%
    );
    pointer-events: none;
}

.site-present-hero img {
    display: block;
    width: 100%;
    height: clamp(420px, 80vh, 980px);
    max-height: none;
    object-fit: cover;
    border-radius: 0;
}

.site-present-hero-copy {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 24px 72px;
}

.site-present-hero-copy h3 {
    position: relative;
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 5vw, 4.2rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: clamp(1.3rem, 3.1vw, 2.35rem) clamp(2.9rem, 8.3vw, 6rem);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.site-present-hero-copy h3::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 255, 255, 0.9);
    pointer-events: none;
}

.site-present-hero-subtitle {
    position: absolute;
    left: 50%;
    bottom: clamp(74px, calc(9.6vh + 32px), 144px);
    transform: translateX(-50%);
    margin: 0;
    max-width: min(1100px, 92vw);
    color: rgba(255, 255, 255, 0.96);
    font-size: 0.84rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.68);
    text-align: center;
}

.site-present-photo-grid {
    column-count: 3;
    gap: 12px;
    column-gap: 10px;
}

.site-present-photo-btn {
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    display: block;
    width: 100%;
    break-inside: avoid;
    margin-bottom: 10px;
    position: relative;
}

.site-present-photo-btn img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0;
}

.site-photo-favorite-heart {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 4;
    width: 28px;
    height: 28px;
    border-radius: 0;
    border: 0;
    background: transparent;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0;
    line-height: 1;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, top 0.2s ease, left 0.2s ease, right 0.2s ease, bottom 0.2s ease;
    cursor: pointer;
    user-select: none;
    padding: 0;
}

.site-photo-favorite-heart .photo-favorite-icon {
    width: 24px;
    height: 24px;
}

.site-photo-favorite-heart .photo-favorite-icon path {
    fill: transparent;
    stroke: #fff;
    stroke-width: 2.05;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: none;
}

.site-present-photo-btn:hover .site-photo-favorite-heart,
.site-present-photo-btn:focus-within .site-photo-favorite-heart,
.site-photo-favorite-heart.is-active {
    opacity: 1;
    transform: translateY(0);
}

.site-photo-favorite-heart:hover,
.site-photo-favorite-heart:focus,
.site-photo-favorite-heart:focus-visible {
    background: transparent;
    border: 0;
    color: #fff;
    outline: none;
    box-shadow: none;
}

.site-photo-favorite-heart.is-active {
    background: transparent;
    border: 0;
    color: #fff;
}

.site-photo-favorite-heart.is-active .photo-favorite-icon path {
    fill: #fff;
    stroke: #fff;
}

.site-present-photo-hero-btn {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 22px;
    position: relative;
    overflow: hidden;
}

.site-present-photo-hero-btn img {
    width: 100%;
    height: clamp(500px, 82vh, 1040px);
    object-fit: cover;
}

.site-present-photo-hero-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.site-present-photo-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    pointer-events: none;
    z-index: 1;
}

.site-present-photo-hero-frame {
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: clamp(18px, 3.4vw, 40px) clamp(28px, 7.2vw, 88px);
    background: rgba(0, 0, 0, 0.08);
}

.site-present-photo-hero-title {
    font-size: clamp(1.6rem, 4vw, 3.52rem);
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.site-present-photo-hero-subtitle {
    font-size: clamp(0.85rem, 1.3vw, 1.15rem);
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.site-present-video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.client-site-presentation .site-present-video-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(100%, 1620px);
    row-gap: 28px;
    column-gap: 20px;
    align-items: start;
    grid-auto-flow: row dense;
    margin-left: auto;
    margin-right: auto;
}

.site-present-video-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.client-site-presentation .site-present-video-card {
    width: auto;
    max-width: none;
    justify-self: stretch;
    box-shadow: var(--shadow);
    border-color: #cfd9e6;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

.client-site-presentation .site-present-video-card.is-wide,
.client-site-presentation:not(.site-layout-tab-mode) .site-present-video-card.wide-169 {
    grid-column: span 2;
    width: 100%;
    justify-self: stretch;
    max-width: none;
}

.client-site-presentation .site-present-video-card.ratio-4x5,
.client-site-presentation .site-present-video-card.ratio-9x16,
.client-site-presentation .site-present-video-card.ratio-portrait {
    width: min(100%, 460px);
}

.site-present-video-card video {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
}

.client-site-presentation .site-present-video-player.custom-video-player {
    position: relative;
    aspect-ratio: var(--site-video-ratio, 16 / 9);
    height: auto;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
}

.client-site-presentation .site-present-video-controls {
    margin: 0;
    border-radius: 0;
    border: 0;
    background: #ffffff;
    color: #12202f;
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
    gap: 8px;
    padding: 6px 7px;
}

.client-site-presentation .site-present-video-controls .dialog-video-toggle {
    width: 30px;
    height: 28px;
    border-radius: 8px;
    border-color: #d8e1ec;
    background: #ffffff;
    color: #12202f;
}

.client-site-presentation .site-present-video-controls .dialog-video-toggle:hover {
    background: #edf4fb;
}

.client-site-presentation .site-present-video-controls .site-present-video-fullscreen-btn {
    width: 30px;
    height: 28px;
    min-width: 30px;
    min-height: 28px;
    border: 1px solid #d8e1ec;
    background: #ffffff;
    border-radius: 8px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #12202f;
}

.client-site-presentation .site-present-video-controls .site-present-video-fullscreen-btn:hover,
.client-site-presentation .site-present-video-controls .site-present-video-fullscreen-btn:focus,
.client-site-presentation .site-present-video-controls .site-present-video-fullscreen-btn:focus-visible,
.client-site-presentation .site-present-video-controls .site-present-video-fullscreen-btn:active {
    background: #edf4fb;
}

.client-site-presentation .site-present-video-controls .dialog-video-seek {
    accent-color: #7ea8d7;
    background: #dfe8f2;
    height: 4px;
    min-width: 0;
}

.client-site-presentation .site-present-video-controls .dialog-video-seek::-webkit-slider-runnable-track {
    height: 4px;
    background: #dfe8f2;
}

.client-site-presentation .site-present-video-controls .dialog-video-seek::-moz-range-track {
    height: 4px;
    background: #dfe8f2;
}

.client-site-presentation .site-present-video-controls .dialog-video-seek::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
    margin-top: -5px;
    background: #b5bfcc;
}

.client-site-presentation .site-present-video-controls .dialog-video-seek::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #b5bfcc;
}

.client-site-presentation .site-present-video-controls .dialog-video-time {
    color: #12202f;
    min-width: 48px;
    font-size: 0.76rem;
    font-weight: 400;
    text-align: right;
}

.site-present-video-card > h3 {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink);
    text-align: left;
}

.site-present-video-meta-line {
    margin: 0;
    padding: 0 12px 12px;
    font-size: 0.9rem;
    line-height: 1.35;
}

.client-site-presentation .site-present-section.mode-video .site-present-video-meta-line {
    display: none;
}

.site-present-file-list {
    display: grid;
    gap: 10px;
}

.site-present-file-group-list {
    display: grid;
    gap: 14px;
}

.site-files-collab-embed-shell {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.site-files-collab-embed {
    display: block;
    width: 100%;
    min-height: 740px;
    height: 940px;
    border: 0;
    background: transparent;
}

.site-audio-shared-project-embed-shell {
    width: min(1200px, 94vw);
    max-width: 100%;
    margin: 0 auto;
}

.site-audio-shared-project-embed {
    min-height: 260px;
    height: 260px;
}

.site-video-shared-project-embed-shell {
    width: min(1200px, 94vw);
    max-width: 100%;
    margin: 0 auto;
}

.site-video-shared-project-embed {
    min-height: 520px;
    height: 980px;
}

.site-present-file-folder {
    border: 1px solid #ccd8e6;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.site-present-file-folder-head {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    padding: 14px 18px;
    font-weight: 700;
    color: #1c2f47;
    background: #f6f9fe;
    border-bottom: 1px solid #d7e2f0;
}

.site-present-file-folder-head::-webkit-details-marker {
    display: none;
}

.site-present-file-folder-head::after {
    content: '';
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-right: 2px solid #748aa6;
    border-bottom: 2px solid #748aa6;
    transform: rotate(45deg);
    margin-left: 6px;
    transition: transform 160ms ease;
}

.site-present-file-folder[open] .site-present-file-folder-head::after {
    transform: rotate(225deg);
}

.site-present-file-folder-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-present-file-folder-count {
    flex: 0 0 auto;
    min-width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid #bfd0e4;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.84rem;
    color: #405775;
}

.site-present-file-folder .site-present-file-list {
    padding: 12px;
}

.site-present-file-row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 10px 12px;
    background: #fff;
}

.site-photo-dialog {
    width: min(1200px, 96vw);
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 12px;
}

.site-photo-dialog::backdrop {
    background: rgba(0, 0, 0, 0.6);
}

.site-photo-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.site-photo-dialog-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.site-photo-dialog-actions .soft-btn.is-active {
    background: #dceaf9;
    border-color: #b2cae6;
}

.site-photo-dialog img {
    display: block;
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 0;
    background: #0a0d12;
}

.client-site-presentation .site-present-section.mode-files .file-row.site-file-preview-enabled {
    cursor: pointer;
}

.client-site-presentation .site-present-section.mode-files .file-row.site-file-preview-enabled:focus,
.client-site-presentation .site-present-section.mode-files .file-row.site-file-preview-enabled:focus-visible {
    outline: none;
    border-color: #b8cbe0;
    box-shadow: 0 0 0 1px rgba(184, 203, 224, 0.45);
}

.client-site-presentation .site-files-preview-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    width: min(1280px, 96vw);
    max-width: 96vw;
    max-height: min(94dvh, 94vh);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 0;
    overflow: hidden;
}

.client-site-presentation .site-files-preview-dialog .dialog-body {
    grid-template-columns: 1fr;
    max-height: calc(min(94dvh, 94vh) - 82px);
    overflow-y: auto;
}

.client-site-presentation .site-files-preview-dialog #dialog-video,
.client-site-presentation .site-files-preview-dialog #dialog-image {
    max-height: min(64vh, calc(100dvh - 280px));
}

.client-site-presentation .site-files-preview-dialog #dialog-pdf-preview {
    height: min(70vh, calc(100dvh - 280px));
    min-height: 320px;
}

.client-site-presentation .site-files-preview-dialog .site-files-preview-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 8px;
}

.client-site-presentation .site-files-preview-dialog .site-files-preview-actions > * {
    width: min(320px, 100%);
}

body.client-site-page.client-site-presentation.site-files-preview-open {
    overflow: hidden;
}

body.client-site-page.client-site-presentation.site-comment-dialog-open {
    overflow: hidden;
}

.site-video-comment-dialog {
    width: min(680px, 94vw);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
}

.site-video-comment-dialog::backdrop {
    background: transparent;
}

.site-video-comment-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.site-video-comment-dialog-list {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfdff;
    padding: 10px;
    max-height: min(40vh, 360px);
    overflow: auto;
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.site-video-comment-row {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    padding: 8px 10px;
    display: grid;
    gap: 6px;
}

.site-video-comment-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.site-video-comment-row-head-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.site-video-comment-row p {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.3;
}

.site-video-comment-delete-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #cdd9e8;
    border-radius: 999px;
    background: #fff;
    color: #6f7f94;
    line-height: 1;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.site-video-comment-delete-btn:hover,
.site-video-comment-delete-btn:focus,
.site-video-comment-delete-btn:focus-visible {
    border-color: #de8f8f;
    color: #bb4d4d;
    outline: none;
}

.site-video-comment-dialog-form {
    display: grid;
    gap: 10px;
}

.site-video-comment-dialog-form input,
.site-video-comment-dialog-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    font: inherit;
}

.site-video-comment-dialog-form textarea {
    min-height: 92px;
    resize: vertical;
}

.site-video-comment-dialog-actions {
    display: flex;
    justify-content: flex-end;
}

.site-item-comment-btn.is-commented {
    border-color: #9ab6db;
    color: #1a3c63;
    background: #eaf2fc;
}

.site-video-comment-dialog.video-dialog {
    width: min(1200px, 94vw);
    max-width: min(1200px, 94vw);
    max-height: calc(100dvh - 48px);
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: auto;
}

.site-video-comment-dialog.video-dialog .dialog-head {
    padding: 18px 20px;
    margin-bottom: 0;
}

.site-video-comment-dialog.video-dialog .dialog-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 20px 20px;
}

.site-video-comment-dialog.video-dialog .preview-wrap,
.site-video-comment-dialog.video-dialog .comments-wrap {
    width: 100%;
    min-width: 0;
}

.site-video-comment-dialog.video-dialog .site-video-comment-dialog-list {
    margin-bottom: 0;
    display: block;
    gap: 0;
}

.site-video-comment-dialog.video-dialog #site-video-comment-dialog-close {
    height: 40px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 14px;
    background: #fff;
    border-color: #c6d6e8;
    color: #12202f;
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1;
}

.site-video-comment-dialog.video-dialog #site-video-comment-dialog-close:hover,
.site-video-comment-dialog.video-dialog #site-video-comment-dialog-close:focus,
.site-video-comment-dialog.video-dialog #site-video-comment-dialog-close:focus-visible {
    background: #edf4fb;
    border-color: #c6d6e8;
    color: #12202f;
    box-shadow: none;
}

.site-video-comment-dialog-preview {
    width: 100%;
}

.site-video-comment-audio-preview {
    display: grid;
    gap: 12px;
}

.site-video-comment-audio-preview h3 {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 600;
}

.site-video-comment-video-preview {
    position: relative;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
}

.site-video-comment-video-preview-media {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: min(60vh, calc(100dvh - 260px));
    border-radius: 0;
    background: transparent;
    object-fit: contain;
    margin: 0 auto;
}

.site-video-comment-dialog.video-dialog.site-video-comment-dialog--video .dialog-body {
    grid-template-columns: 1.2fr 0.8fr;
}

.site-video-comment-dialog.video-dialog .site-video-comment-row {
    display: block;
    gap: 0;
    border-color: #e4ebf2;
    border-radius: 8px;
    padding: 8px;
}

.site-video-comment-dialog.video-dialog .site-video-comment-row-head {
    align-items: flex-start;
    gap: 8px;
}

.site-video-comment-dialog.video-dialog .site-video-comment-row-head-main {
    align-items: center;
    gap: 8px;
}

.site-video-comment-preview-track {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
}

.site-video-comment-dialog.video-dialog.audio-dialog .site-video-comment-preview-play {
    width: 52px;
    height: 52px;
}

.site-video-comment-dialog.video-dialog.audio-dialog .site-video-comment-preview-waveform {
    height: 50px;
}

.site-video-comment-dialog.video-dialog.audio-dialog .site-video-comment-dialog-form #site-video-comment-author,
.site-video-comment-dialog.video-dialog.audio-dialog .site-video-comment-dialog-form #site-video-comment-message,
.site-video-comment-dialog.video-dialog.audio-dialog .site-video-comment-dialog-form button[type="submit"] {
    width: 100%;
}

.site-video-comment-dialog.video-dialog.audio-dialog .site-video-comment-dialog-form #site-video-comment-message {
    min-height: 0;
    height: 100%;
    resize: vertical;
}

body.client-site-page.client-site-presentation .site-video-comment-dialog.video-dialog.audio-dialog {
    width: min(1035px, 81.075vw);
    max-width: min(1035px, 81.075vw);
    border-color: #d2d9e3;
    box-shadow: 0 22px 52px rgba(18, 32, 47, 0.18);
}

body.client-site-page.client-site-presentation .site-video-comment-dialog.video-dialog.audio-dialog:focus,
body.client-site-page.client-site-presentation .site-video-comment-dialog.video-dialog.audio-dialog:focus-visible {
    outline: none;
    border-color: #d2d9e3;
}

body.client-site-page.client-site-presentation .site-video-comment-dialog.video-dialog.audio-dialog .dialog-head {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding-left: 12px;
    padding-right: 12px;
}

body.client-site-page.client-site-presentation .site-video-comment-dialog.video-dialog.audio-dialog #site-video-comment-dialog-title {
    display: none;
}

body.client-site-page.client-site-presentation .site-video-comment-dialog.video-dialog.audio-dialog .dialog-head-copy {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-width: 0;
}

body.client-site-page.client-site-presentation .site-video-comment-dialog.video-dialog.audio-dialog .dialog-head-meta {
    width: 100%;
    margin: 0;
    text-align: left;
    justify-self: start;
}

body.client-site-page.client-site-presentation .site-video-comment-dialog.video-dialog.audio-dialog #site-video-comment-dialog-close {
    height: 34px;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 0.78rem;
}

body.client-site-page.client-site-presentation .site-video-comment-dialog.video-dialog.audio-dialog .site-video-comment-audio-preview h3 {
    font-size: 0.8rem;
    line-height: 1.25;
}

body.client-site-page.client-site-presentation .site-video-comment-dialog.video-dialog.audio-dialog .site-video-comment-preview-track {
    column-gap: 10px;
}

body.client-site-page.client-site-presentation .site-video-comment-dialog.video-dialog.audio-dialog .site-video-comment-preview-play {
    width: 39px;
    height: 39px;
    border-width: 1.7px;
    background: #ffffff;
    border-color: #d2d9e3;
    color: #12202f;
}

body.client-site-page.client-site-presentation .site-video-comment-dialog.video-dialog.audio-dialog .site-video-comment-preview-waveform {
    height: 36px;
    background: #ffffff;
    border: 1px solid #d2d9e3;
}

body.client-site-page.client-site-presentation .site-video-comment-dialog.video-dialog.audio-dialog .site-video-comment-preview-waveform .audio-waveform-base {
    opacity: 1;
}

body.client-site-page.client-site-presentation .site-video-comment-dialog.video-dialog.audio-dialog .site-video-comment-preview-waveform .audio-waveform-base span {
    background: #d9dfe7;
}

body.client-site-page.client-site-presentation .site-video-comment-dialog.video-dialog.audio-dialog .site-video-comment-preview-waveform .audio-waveform-progress span {
    background: #a9c4e8;
}

body.client-site-page.client-site-presentation .site-video-comment-dialog.video-dialog.audio-dialog .preview-wrap,
body.client-site-page.client-site-presentation .site-video-comment-dialog.video-dialog.audio-dialog .comments-wrap,
body.client-site-page.client-site-presentation .site-video-comment-dialog.video-dialog.audio-dialog .site-video-comment-dialog-list,
body.client-site-page.client-site-presentation .site-video-comment-dialog.video-dialog.audio-dialog .site-video-comment-dialog-form input,
body.client-site-page.client-site-presentation .site-video-comment-dialog.video-dialog.audio-dialog .site-video-comment-dialog-form textarea,
body.client-site-page.client-site-presentation .site-video-comment-dialog.video-dialog.audio-dialog .site-video-comment-dialog-form button[type="submit"] {
    border-color: #d2d9e3;
}

body.client-site-page.client-site-presentation .site-video-comment-dialog.video-dialog.audio-dialog .comments-wrap {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
    grid-template-areas:
        "title title"
        "list form";
    grid-template-rows: auto minmax(0, 1fr);
    align-items: stretch;
    gap: 12px;
}

body.client-site-page.client-site-presentation .site-video-comment-dialog.video-dialog.audio-dialog .comments-wrap h4 {
    grid-area: title;
    margin: 0;
}

body.client-site-page.client-site-presentation .site-video-comment-dialog.video-dialog.audio-dialog .site-video-comment-dialog-list {
    grid-area: list;
    min-height: 0;
    height: 100%;
    max-height: min(44vh, 380px);
}

body.client-site-page.client-site-presentation .site-video-comment-dialog.video-dialog.audio-dialog .site-video-comment-dialog-form {
    grid-area: form;
    display: grid;
    gap: 10px;
    align-content: stretch;
    grid-template-rows: auto minmax(120px, 1fr) auto;
    height: 100%;
    align-self: stretch;
}

body.client-site-page.client-site-presentation .site-video-comment-dialog.video-dialog.audio-dialog .site-video-comment-dialog-form #site-video-comment-message {
    min-height: 0;
    height: 100%;
    resize: vertical;
}

body.client-site-page.client-site-presentation .site-video-comment-dialog.video-dialog.audio-dialog .site-video-comment-dialog-form input:focus,
body.client-site-page.client-site-presentation .site-video-comment-dialog.video-dialog.audio-dialog .site-video-comment-dialog-form input:focus-visible,
body.client-site-page.client-site-presentation .site-video-comment-dialog.video-dialog.audio-dialog .site-video-comment-dialog-form textarea:focus,
body.client-site-page.client-site-presentation .site-video-comment-dialog.video-dialog.audio-dialog .site-video-comment-dialog-form textarea:focus-visible {
    outline: none;
    border-color: #a9c4e8;
    box-shadow: 0 0 0 3px rgba(169, 196, 232, 0.24);
}

.client-site-presentation .share-details {
    margin-bottom: 0;
}

.client-site-presentation .site-present-section + .site-present-section {
    --section-divider-gap: 172px;
    margin-top: var(--section-divider-gap);
    border-top: 0;
    position: relative;
}

.client-site-presentation .site-present-section.mode-audio + .site-present-section.mode-audio {
    --section-divider-gap: 86px;
}

.client-site-presentation.site-layout-tab-mode .site-present-section {
    margin-top: 0 !important;
}

.client-site-presentation.site-layout-tab-mode .layout {
    margin-top: 0;
}

body.client-site-presentation.site-layout-tab-mode {
    background: #f7f9fc;
}

.client-site-presentation.site-layout-tab-mode .site-present-section:not([hidden]) {
    margin-top: 200px !important;
}

.client-site-presentation.site-layout-tab-mode .site-present-section.mode-audio:not([hidden]) ~ .site-present-section.mode-audio:not([hidden]) {
    margin-top: 100px !important;
}

.client-site-presentation.site-layout-tab-mode .site-present-section.mode-files:not([hidden]) ~ .site-present-section.mode-files:not([hidden]) {
    margin-top: 52px !important;
}

.client-site-presentation.site-layout-tab-mode .site-present-section.is-first-visible-tab-section {
    margin-top: 0 !important;
}

.client-site-presentation.site-layout-tab-mode .site-section-tab-wrap {
    display: none;
}

.client-site-presentation.site-layout-tab-mode .site-layout-tabs-wrap {
    width: 100%;
    order: 10;
    margin-top: 10px;
    margin-bottom: 0;
    position: relative;
    z-index: 121;
    text-align: center;
    transform: translateY(var(--site-tab-divider-shift));
}

.client-site-presentation.site-layout-tab-mode .site-topbar-minimal {
    border-bottom-color: transparent;
    padding-top: 56px;
    background: #ffffff;
    --site-tab-divider-bottom: 26px;
    --site-tab-divider-shift: 10px;
}

body.client-site-presentation[data-site-preview-controls="1"].site-layout-tab-mode .site-topbar-minimal {
    padding-top: 26px;
    padding-bottom: 28px;
    --site-tab-divider-bottom: 20px;
    --site-tab-divider-shift: 4px;
}

.client-site-presentation.site-layout-tab-mode .site-topbar-minimal:not(.has-preview-back) {
    padding-bottom: 37px;
}

.client-site-presentation.site-layout-tab-mode .site-topbar-minimal > .site-zip-progress {
    bottom: calc(var(--site-tab-divider-bottom) - 3px);
}

.client-site-presentation.site-layout-tab-mode .site-topbar-minimal::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -2px;
    width: 100vw;
    height: calc(var(--site-tab-divider-bottom) + 2px);
    box-sizing: border-box;
    background: #f7f9fc;
    pointer-events: none;
}

.client-site-presentation.site-layout-tab-mode .site-topbar-minimal {
    justify-content: center;
}

.client-site-presentation.site-layout-tab-mode.is-site-presentation-header-fixed .site-topbar-minimal {
    box-shadow: none;
}

.client-site-presentation.site-layout-tab-mode .site-portfolio-headline {
    width: 100%;
    justify-content: center;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.client-site-presentation.site-layout-tab-mode .site-portfolio-headline-title {
    font-size: 1.06rem;
}

.client-site-presentation.site-layout-tab-mode #site-download-btn {
    display: none !important;
}

.client-site-presentation.site-layout-tab-mode .site-layout-tabs {
    gap: 0;
    flex-wrap: nowrap;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    border: 1px solid #b9cbe0;
    border-bottom: 0;
}

.client-site-presentation.site-layout-tab-mode .layout,
.client-site-presentation.site-layout-tab-mode .site-present-section {
    background: #f7f9fc;
}

.client-site-presentation.site-layout-tab-mode .site-layout-mode-tab {
    min-height: 31px;
    height: 31px;
    min-width: 108px;
    padding: 0 12px;
    border-radius: 0;
    border: 0 !important;
    font-size: 0.775rem;
    font-weight: 600;
    color: #ffffff !important;
    box-shadow: none !important;
    transition: filter 160ms ease, opacity 160ms ease, transform 120ms ease;
}

.client-site-presentation.site-layout-tab-mode .site-layout-mode-tab + .site-layout-mode-tab {
    border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.client-site-presentation.site-layout-tab-mode .site-layout-mode-tab.mode-video {
    background: #9bb3d6 !important;
}

.client-site-presentation.site-layout-tab-mode .site-layout-mode-tab.mode-photo {
    background: #b2c49a !important;
}

.client-site-presentation.site-layout-tab-mode .site-layout-mode-tab.mode-files {
    background: #d9bd63 !important;
}

.client-site-presentation.site-layout-tab-mode .site-layout-mode-tab.mode-audio {
    background: #bc97cb !important;
}

.client-site-presentation.site-layout-tab-mode .site-layout-mode-tab.mode-blog {
    background: #b8a5d9 !important;
}

.client-site-presentation.site-layout-tab-mode .site-layout-mode-tab:hover,
.client-site-presentation.site-layout-tab-mode .site-layout-mode-tab:focus-visible {
    filter: none;
    color: #ffffff !important;
    outline: none;
    box-shadow: none !important;
}

.client-site-presentation.site-layout-tab-mode .site-layout-mode-tab:active {
    filter: none;
    color: #ffffff !important;
}

.client-site-presentation.site-layout-tab-mode .site-layout-mode-tab.is-active {
    filter: none;
    color: #ffffff !important;
}

.client-site-presentation.site-layout-tab-mode .site-layout-mode-tab.mode-video:hover {
    background: #7f95b8 !important;
}

.client-site-presentation.site-layout-tab-mode .site-layout-mode-tab.mode-photo:hover {
    background: #93a87c !important;
}

.client-site-presentation.site-layout-tab-mode .site-layout-mode-tab.mode-files:hover {
    background: #c0a44f !important;
}

.client-site-presentation.site-layout-tab-mode .site-layout-mode-tab.mode-audio:hover {
    background: #9f7dae !important;
}

.client-site-presentation.site-layout-tab-mode .site-layout-mode-tab.mode-blog:hover {
    background: #9e8ac1 !important;
}

.client-site-presentation.site-layout-tab-mode .site-layout-mode-tab.mode-video:active,
.client-site-presentation.site-layout-tab-mode .site-layout-mode-tab.mode-video.is-active,
.client-site-presentation.site-layout-tab-mode .site-layout-mode-tab.mode-video:focus-visible {
    background: #9bb3d6 !important;
}

.client-site-presentation.site-layout-tab-mode .site-layout-mode-tab.mode-photo:active,
.client-site-presentation.site-layout-tab-mode .site-layout-mode-tab.mode-photo.is-active,
.client-site-presentation.site-layout-tab-mode .site-layout-mode-tab.mode-photo:focus-visible {
    background: #b2c49a !important;
}

.client-site-presentation.site-layout-tab-mode .site-layout-mode-tab.mode-files:active,
.client-site-presentation.site-layout-tab-mode .site-layout-mode-tab.mode-files.is-active,
.client-site-presentation.site-layout-tab-mode .site-layout-mode-tab.mode-files:focus-visible {
    background: #d9bd63 !important;
}

.client-site-presentation.site-layout-tab-mode .site-layout-mode-tab.mode-audio:active,
.client-site-presentation.site-layout-tab-mode .site-layout-mode-tab.mode-audio.is-active,
.client-site-presentation.site-layout-tab-mode .site-layout-mode-tab.mode-audio:focus-visible {
    background: #bc97cb !important;
}

.client-site-presentation.site-layout-tab-mode .site-layout-mode-tab.mode-blog:active,
.client-site-presentation.site-layout-tab-mode .site-layout-mode-tab.mode-blog.is-active,
.client-site-presentation.site-layout-tab-mode .site-layout-mode-tab.mode-blog:focus-visible {
    background: #b8a5d9 !important;
}

@media (max-width: 1200px) {
    .client-site-presentation.site-layout-tab-mode .site-layout-tabs {
        border-radius: 15px 15px 0 0;
    }

    .client-site-presentation.site-layout-tab-mode .site-layout-mode-tab {
        min-height: 30px;
        height: 30px;
        min-width: 92px;
        padding: 0 10px;
        font-size: 0.74rem;
    }
}

@media (max-width: 860px) {
    .client-site-presentation.site-layout-tab-mode .site-layout-tabs {
        flex-wrap: wrap;
        border-radius: 14px;
        border-bottom: 0;
    }

    .client-site-presentation.site-layout-tab-mode .site-layout-mode-tab {
        min-width: 0;
        flex: 1 1 46%;
        font-size: 1.05rem;
    }

    .client-site-presentation.site-layout-tab-mode .site-layout-mode-tab + .site-layout-mode-tab {
        border-left: 0;
    }
}

.client-site-presentation .site-present-section + .site-present-section::before {
    content: none;
}

.client-site-presentation .site-present-section.mode-video {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.client-site-presentation .site-present-section.mode-video .site-section-tab-wrap {
    width: min(100%, 1620px);
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
}

.client-site-presentation .site-present-section.mode-video .library-head {
    justify-content: center;
    margin-top: -54px;
}

.client-site-presentation .site-present-section.mode-video .library-head h2 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.5rem;
}

.client-site-presentation .site-present-section.mode-audio {
    border: 0;
    border-radius: 0;
    background: #f7f9fc;
    padding: 38px 0 54px;
    box-shadow: 0 0 0 100vmax #f7f9fc;
    clip-path: inset(0 -100vmax);
}

.client-site-presentation.site-layout-tab-mode .site-present-section.mode-audio {
    padding-top: 0;
}

.client-site-presentation .site-present-section.mode-audio .site-section-tab-wrap {
    width: min(100%, 1620px);
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
}

.client-site-presentation .site-present-section.mode-audio .library-head {
    justify-content: center;
    margin-top: -24px;
}

.client-site-presentation .site-present-section.mode-audio .library-head h2 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.5rem;
    font-weight: 700;
}

.client-site-presentation .site-present-section.mode-files {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.client-site-presentation .site-present-section.mode-files .site-section-tab-wrap {
    width: min(100%, 1620px);
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
}

.client-site-presentation .site-present-section.mode-files .library-head {
    justify-content: center;
    margin-top: -24px;
}

.client-site-presentation .site-present-section.mode-files .library-head h2 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.5rem;
}

.client-site-presentation .site-section-mode-label,
.client-site-presentation .site-section-mode-sep {
    color: #15253a;
}

.client-site-presentation .site-section-mode-title {
    color: #15253a;
}

.client-site-presentation .site-present-section.mode-files .site-section-mode-title {
    font-weight: 600;
}

.client-site-presentation .site-present-section.mode-files .site-section-heading {
    width: min(1200px, 94vw);
    max-width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "title actions";
    align-items: center;
    gap: 14px;
}

.client-site-presentation .site-present-section.mode-files .site-section-heading-title {
    grid-area: title;
    align-items: center;
    min-height: var(--dash-pill-height);
    margin-left: 0;
    margin-right: auto;
    justify-content: flex-start;
    text-align: left;
}

.client-site-presentation .site-present-section.mode-files .site-section-heading-actions {
    grid-area: actions;
    justify-self: end;
}

.client-site-presentation .site-present-section.mode-files .site-section-mode-label {
    font-size: clamp(0.95rem, 1.5vw, 1.08rem);
    font-weight: 400;
}

.client-site-presentation .site-present-section.mode-files .site-section-mode-sep {
    margin: 0 8px;
    font-size: clamp(0.95rem, 1.5vw, 1.08rem);
    font-weight: 400;
}

.client-site-presentation .site-present-section.mode-files .site-section-mode-title {
    font-size: clamp(0.95rem, 1.5vw, 1.08rem);
    font-weight: 700;
}

.client-site-presentation .site-section-heading {
    width: min(100%, 1620px);
    margin: 0 auto 14px;
    padding: 0 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
}

.client-site-presentation .site-section-heading-title {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
    text-align: right;
}

.client-site-presentation .site-section-heading-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.client-site-presentation .site-section-blog-language-form {
    margin-left: 0;
}

.client-site-presentation .site-download-section-btn {
    flex: 0 0 auto;
    font-weight: 400;
}

.client-site-presentation .site-download-favorites-btn {
    font-weight: 400;
}

.client-site-presentation .site-present-audio-playback-controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.client-site-presentation .site-present-audio-playback-controls[hidden] {
    display: none !important;
}

.client-site-presentation .site-topbar-minimal > .site-present-audio-playback-controls {
    position: absolute;
    right: max(16px, calc(50vw - min(1200px, 94vw) / 2));
    top: 18px;
    margin-left: 0;
    order: initial;
    z-index: 123;
}

.client-site-presentation .site-topbar-minimal > .site-present-audio-playback-controls + .site-topbar-right-cluster {
    margin-left: auto;
}

.client-site-presentation.site-layout-tab-mode .site-topbar-minimal > .site-present-audio-playback-controls {
    top: 48px;
}

.client-site-presentation .site-present-audio-mode-btn {
    width: 31px;
    height: 31px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5f728d;
}

.client-site-presentation .site-present-audio-mode-btn svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.client-site-presentation .site-present-audio-mode-btn text {
    fill: currentColor;
    stroke: none;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    text-anchor: middle;
    dominant-baseline: middle;
}

.client-site-presentation .site-present-audio-mode-btn.is-active,
.client-site-presentation .site-present-audio-mode-btn[aria-pressed="true"] {
    border-color: #ccd8e6;
    background: #eaf3ff;
    color: #0b62d6;
}

.client-site-presentation .site-present-section.mode-files.mode-files-collab .site-section-heading {
    width: min(1200px, 94vw);
    max-width: 100%;
    margin-bottom: 0;
    padding-top: 25px;
    padding-bottom: 0;
    box-sizing: border-box;
    gap: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "title actions";
    align-items: center;
}

.client-site-presentation .site-files-collab-heading-controls {
    grid-area: actions;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 auto;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.client-site-presentation .site-files-collab-heading-controls > .soft-btn {
    min-height: var(--dash-pill-height);
    height: var(--dash-pill-height);
    padding: 0 var(--dash-pill-padding-x);
    border-radius: var(--dash-pill-radius);
    font-size: calc(var(--dash-pill-font-size) * 0.9);
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}

.client-site-presentation .site-files-collab-upload-proxy {
    grid-area: upload;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-width: 0;
    min-height: 76px;
    justify-content: center;
    border-style: dashed;
    border-color: #b7c8da;
    background: #fff;
    font-size: 1rem;
    font-weight: 400;
}

.client-site-presentation .site-files-collab-upload-proxy.is-uploading {
    justify-content: stretch;
    align-items: center;
    text-align: left;
    border-style: solid;
    background: #fff;
    cursor: default;
}

.client-site-presentation .site-files-collab-upload-inline-row {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 0 18px;
    font-weight: 400;
}

.client-site-presentation .site-files-collab-upload-inline-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #1b2d45;
}

.client-site-presentation .site-files-collab-upload-inline-meta {
    white-space: nowrap;
    color: #5f7390;
}

.client-site-presentation .site-files-collab-upload-inline-progress {
    position: absolute;
    left: 14px;
    right: auto;
    bottom: 13px;
    z-index: 1;
    display: block;
    height: 5px;
    max-width: calc(100% - 28px);
    border-radius: 999px;
    background: rgba(126, 161, 200, 0.9);
    transition: width 140ms ease;
}

.client-site-presentation .site-files-collab-upload-proxy.upload-drop-target,
.client-site-presentation .site-files-collab-upload-proxy.upload-drop-target:hover,
.client-site-presentation .site-files-collab-upload-proxy.upload-drop-target:focus,
.client-site-presentation .site-files-collab-upload-proxy.upload-drop-target:focus-visible,
.client-site-presentation .site-files-collab-upload-proxy.upload-drop-target:active {
    border-style: dashed;
    border-color: #98b5d6;
    background: #f6fbff;
}

.client-site-presentation .site-present-section.mode-files.mode-files-collab .site-section-heading-title {
    grid-area: title;
    align-items: center;
    min-height: var(--dash-pill-height);
    margin-left: 0;
    margin-right: auto;
    justify-content: flex-start;
    text-align: left;
}

.client-site-presentation .site-present-section.mode-files.mode-files-collab .site-section-mode-label {
    font-size: clamp(0.95rem, 1.5vw, 1.08rem);
    font-weight: 400;
}

.client-site-presentation .site-present-section.mode-files.mode-files-collab .site-section-mode-sep {
    margin: 0 8px;
    font-size: clamp(0.95rem, 1.5vw, 1.08rem);
    font-weight: 400;
}

.client-site-presentation .site-present-section.mode-files.mode-files-collab .site-section-mode-title {
    font-size: clamp(0.95rem, 1.5vw, 1.08rem);
    font-weight: 700;
}

.client-site-presentation .site-present-section.mode-files.mode-files-collab .site-files-collab-embed-shell,
.client-site-presentation .site-present-section.mode-files.mode-files-collab .site-present-file-group-list {
    width: min(1200px, 94vw);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.client-site-presentation .site-present-section.mode-audio.mode-audio-collab .site-section-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "title actions";
    align-items: center;
    gap: 20px;
}

.client-site-presentation .site-present-section.mode-audio.mode-audio-collab .site-section-heading-title {
    grid-area: title;
    margin-left: 0;
    margin-right: auto;
    justify-content: flex-start;
    text-align: left;
}

.client-site-presentation .site-present-section.mode-audio.mode-audio-collab .site-files-collab-heading-controls {
    grid-area: actions;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-end;
    margin-left: auto;
}

.client-site-presentation .site-present-section.mode-audio.mode-audio-collab .site-files-collab-upload-proxy {
    grid-area: auto;
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 31px;
    height: 31px;
    padding: 0 18px;
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
    font-size: 0.8rem;
    white-space: nowrap;
}

.client-site-presentation .site-present-section.mode-audio.mode-audio-collab .site-files-collab-download-all-proxy {
    min-height: 31px;
    height: 31px;
    white-space: nowrap;
}

.client-site-presentation .site-files-collab-upload-progress {
    flex: 1 1 100%;
    max-width: min(760px, 92vw);
    border: 1px solid #d4deea;
    border-radius: 12px;
    background: #fff;
    padding: 8px 10px;
}

.client-site-presentation .site-files-collab-upload-progress-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
}

.client-site-presentation .site-files-collab-upload-progress-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.82rem;
    color: #1b2d45;
}

.client-site-presentation .site-files-collab-upload-progress-meta {
    font-size: 0.78rem;
    color: #5f7390;
    white-space: nowrap;
}

.client-site-presentation .site-files-collab-upload-cancel-proxy {
    min-height: 28px;
    height: 28px;
    padding: 0 10px;
    font-size: 0.74rem;
    white-space: nowrap;
}

.client-site-presentation .site-files-collab-upload-progress-bar {
    display: block;
    margin-top: 8px;
    height: 4px;
    width: 0%;
    border-radius: 999px;
    background: #8caedd;
    transition: width 140ms ease;
}

@media (max-width: 980px) {
    .client-site-presentation .site-files-collab-upload-progress-row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "name cancel"
            "meta meta";
        row-gap: 4px;
    }

    .client-site-presentation .site-files-collab-upload-progress-name {
        grid-area: name;
    }

    .client-site-presentation .site-files-collab-upload-cancel-proxy {
        grid-area: cancel;
        justify-self: end;
    }

    .client-site-presentation .site-files-collab-upload-progress-meta {
        grid-area: meta;
    }
}

@media (max-width: 1280px) {
    .client-site-presentation .site-files-collab-upload-proxy {
        min-width: 0;
    }

    .client-site-presentation .site-files-collab-upload-inline-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }

    .client-site-presentation .site-files-collab-upload-inline-meta {
        white-space: normal;
    }
}

@media (max-width: 980px) {
    .client-site-presentation .site-present-section.mode-files.mode-files-collab .site-section-heading {
        align-items: flex-start;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "title"
            "actions"
            "upload";
    }

    .client-site-presentation .site-present-section.mode-files.mode-files-collab .site-section-heading-title {
        margin-left: 0;
        justify-content: flex-start;
        text-align: left;
    }

    .client-site-presentation .site-files-collab-heading-controls {
        width: 100%;
        justify-content: flex-start;
    }

    .client-site-presentation .site-files-collab-upload-proxy {
        min-width: 0;
    }
}

.client-site-presentation .site-section-heading .site-section-mode-label {
    font-size: 1.06rem;
    font-weight: 400;
    line-height: 1.2;
    color: #15253a;
}

.client-site-presentation .site-section-heading .site-section-mode-sep {
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1;
    color: #7a8da5;
}

.client-site-presentation .site-section-heading .site-section-mode-title {
    font-size: 1.06rem;
    font-weight: 700;
    line-height: 1.2;
    color: #15253a;
}

.client-site-presentation .site-present-section.mode-video:not(.mode-video-collab),
.client-site-presentation .site-present-section.mode-photo:not(.mode-photo-collab) {
    padding-top: 38px;
}

body.client-site-page.client-site-presentation.site-layout-tab-mode .site-present-section.mode-blog,
body.client-site-page.client-site-presentation.site-layout-tab-mode .site-present-section.mode-blog_collection {
    padding-top: 38px;
}

.client-site-presentation.site-layout-tab-mode .site-section-heading {
    margin-top: 2px;
}

.client-site-presentation.site-layout-tab-mode .site-section-heading-title {
    order: 1;
    margin-left: 0;
    margin-right: auto;
    justify-content: flex-start;
    text-align: left;
}

.client-site-presentation.site-layout-tab-mode .site-section-heading-actions {
    order: 2;
    margin-left: auto;
}

.client-site-presentation.site-layout-tab-mode .site-present-section.mode-files.mode-files-collab .site-section-heading-title {
    margin-left: 0;
    margin-right: auto;
}

.client-site-presentation.site-layout-tab-mode .site-files-collab-heading-controls {
    grid-area: actions;
    flex: 0 1 auto;
    margin-left: auto;
    justify-content: flex-end;
}

.client-site-presentation:not(.site-layout-tab-mode) .site-section-heading {
    margin-top: 18px;
    margin-bottom: 16px;
}

.client-site-presentation:not(.site-layout-tab-mode) .site-topbar-minimal {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
}

.client-site-presentation:not(.site-layout-tab-mode) .site-topbar-minimal > .site-messenger-widget {
    position: static;
    grid-column: 1;
    justify-self: start;
    align-self: center;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    z-index: 122;
}

.client-site-presentation:not(.site-layout-tab-mode) .site-portfolio-headline {
    grid-column: 2;
    justify-self: center;
    justify-content: center;
    width: auto;
    margin: 0;
    text-align: center;
}

.client-site-presentation:not(.site-layout-tab-mode) .site-portfolio-headline-title {
    text-align: center;
}

.client-site-presentation:not(.site-layout-tab-mode) .site-topbar-right-cluster {
    grid-column: 3;
    justify-self: end;
    justify-content: flex-end;
    width: 100%;
    margin-left: 0;
}

body.client-site-presentation[data-site-preview-controls="1"]:not(.site-layout-tab-mode) .site-topbar-minimal {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    row-gap: 14px;
}

body.client-site-presentation[data-site-preview-controls="1"] .site-topbar-minimal > .site-messenger-widget .site-messenger-fab {
    display: none !important;
}

body.client-site-presentation[data-site-preview-controls="1"] .site-topbar-minimal > .site-messenger-widget .site-messenger-panel {
    position: fixed;
    right: max(16px, calc(50vw - min(1200px, 94vw) / 2));
    top: max(84px, calc(var(--site-presentation-header-padding-top, 26px) + 48px));
    bottom: auto;
    width: min(430px, calc(100vw - 32px));
    max-height: min(620px, calc(100vh - 116px));
    transform: none;
}

body.client-site-presentation[data-site-preview-controls="1"]:not(.site-layout-tab-mode) .site-portfolio-headline {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    justify-content: flex-start;
    text-align: left;
}

body.client-site-presentation[data-site-preview-controls="1"]:not(.site-layout-tab-mode) .site-portfolio-headline-title {
    text-align: left;
}

body.client-site-presentation[data-site-preview-controls="1"]:not(.site-layout-tab-mode) .site-topbar-right-cluster {
    display: contents;
}

body.client-site-presentation[data-site-preview-controls="1"]:not(.site-layout-tab-mode) .site-topbar-left-controls {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    justify-content: flex-start;
    align-self: center;
}

body.client-site-presentation[data-site-preview-controls="1"]:not(.site-layout-tab-mode) .site-topbar-return-controls {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    justify-content: flex-end;
    align-self: center;
    margin-left: 0;
}

body.client-site-presentation[data-site-preview-controls="1"] .site-topbar-return-controls {
    gap: 8px;
    flex-wrap: nowrap;
}

body.client-site-presentation[data-site-preview-controls="1"] .site-topbar-right-cluster .client-back-btn {
    margin-left: 0;
}

.client-site-presentation.is-site-presentation-header-fixed .site-topbar-minimal {
    position: fixed;
    inset: 0 0 auto 0;
    width: 100vw;
    margin: 0;
    padding-top: var(--site-presentation-header-padding-top, 26px);
    padding-bottom: var(--site-presentation-header-padding-bottom, 32px);
    padding-left: calc(50vw - min(1200px, 94vw) / 2);
    padding-right: calc(50vw - min(1200px, 94vw) / 2);
}

.client-site-presentation:not(.site-layout-tab-mode) .site-section-heading-title {
    order: 1;
    margin-left: 0;
    margin-right: auto;
    justify-content: flex-start;
    text-align: left;
}

.client-site-presentation:not(.site-layout-tab-mode) .site-section-heading-actions {
    order: 2;
    margin-left: auto;
}

.client-site-presentation.site-layout-tab-mode .site-present-section.mode-video .site-present-video-grid .site-present-video-card:first-child {
    border-top-left-radius: 0;
    border-top: 1px solid var(--line);
}

.client-site-presentation.site-layout-tab-mode .site-present-section.mode-video .site-present-video-grid .site-present-video-card:first-child .site-present-video-player.custom-video-player {
    border-top-left-radius: 0;
}

.client-site-presentation.site-layout-tab-mode .site-present-section.mode-video .site-present-video-grid {
    width: min(100%, 1800px);
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 28px;
    column-gap: 20px;
    align-items: start;
    grid-auto-flow: row dense;
}

.client-site-presentation.site-layout-tab-mode .site-present-section.mode-video .site-present-video-card {
    width: auto;
    max-width: none;
    justify-self: stretch;
    cursor: default;
    border-radius: var(--radius);
    border-color: var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.client-site-presentation.site-layout-tab-mode .site-present-section.mode-video .site-present-video-card.wide-169 {
    grid-column: span 2;
}

.client-site-presentation.site-layout-tab-mode .site-present-section.mode-video .site-present-video-card .card-meta {
    gap: 10px;
    padding: 14px 30px 16px;
}

.client-site-presentation.site-layout-tab-mode .site-present-section.mode-video .site-present-video-card .title-row {
    align-items: center;
}

.client-site-presentation.site-layout-tab-mode .site-present-section.mode-video .site-present-video-card .clip-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.client-site-presentation.site-layout-tab-mode .site-present-section.mode-video .site-present-video-card .card-actions {
    justify-content: flex-end;
}

.client-site-presentation.site-layout-tab-mode .site-present-section.mode-video .site-present-video-card .card-actions .soft-btn {
    min-height: 27px;
    padding: 0 13px;
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.1;
}

.client-site-presentation.site-layout-tab-mode .site-present-section.mode-video .site-present-video-controls {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    gap: 10px;
    margin-top: 0;
    margin-bottom: 2px;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.client-site-presentation.site-layout-tab-mode .site-present-section.mode-video .site-present-video-controls.has-caption-menu {
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
}

.client-site-presentation.site-layout-tab-mode .site-present-section.mode-video .site-present-video-controls .project-card-video-time {
    min-width: 78px;
    font-size: 0.86rem;
    line-height: 1;
    white-space: nowrap;
}

.client-site-presentation.site-layout-tab-mode .site-present-section.mode-video .site-present-video-card .card-actions .site-item-comment-btn {
    min-height: 27px;
    height: 27px;
    min-width: 0;
    padding: 0 11px;
    border-radius: 10px;
    font-size: 0.76rem;
    font-weight: 400;
    line-height: 1.1;
}

.client-site-presentation.site-layout-tab-mode .site-present-section.mode-files .site-present-file-row:first-child {
    border-top-left-radius: 20px;
}

.client-site-presentation.site-layout-tab-mode .site-present-section.mode-audio .site-present-audio-pill:first-child {
    border-top-left-radius: 20px;
}

.client-site-presentation .site-portfolio-footer {
    margin-top: 72px;
    padding-top: 20px;
    padding-bottom: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.review-client.client-site-presentation.files-mode .layout,
.review-client.preview-page.files-mode .layout {
    min-height: calc(100dvh - 44px);
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    padding-bottom: 100px;
}

.review-client.embedded-client-view.files-mode[data-site-scoped-project-view="1"][data-hide-embed-toolbar="1"] .layout {
    min-height: 0;
    display: block;
    padding-bottom: 0;
}

.review-client.client-site-presentation.files-mode .site-portfolio-footer,
.review-client.preview-page.files-mode .preview-site-footer {
    margin-top: auto;
    padding-top: 20px;
    padding-bottom: 16px;
}

.client-site-presentation .site-portfolio-footer-logo {
    width: clamp(38px, 3.315vw, 58px);
    height: auto;
    object-fit: contain;
    opacity: 0.47;
}

.site-present-audio-list {
    display: grid;
    gap: 16px;
}

.site-present-audio-pill {
    border: 1px solid #ccd8e6;
    border-radius: 20px;
    background: #ffffff;
    padding: 18px 24px;
    display: grid;
    gap: 10px;
    box-shadow: var(--shadow);
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

.site-present-audio-pill-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-left: 0;
    min-height: 26px;
}

.site-present-audio-pill-head strong {
    font-size: 0.92rem;
    font-weight: 600;
    min-width: 0;
    max-width: calc(100% - 280px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-present-audio-pill-head .site-present-audio-meta {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
}

.site-present-audio-pill-head .site-item-comment-btn {
    margin-left: auto;
}

.site-present-audio-pill-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
    flex: 0 0 auto;
}

.site-present-audio-pill-actions .site-item-comment-btn {
    margin-left: 0;
    font-weight: 400;
}

.site-present-audio-pill-actions .site-audio-track-action-icon {
    width: 31px;
    min-width: 31px;
    height: 25px;
    min-height: 25px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-present-audio-pill-actions .site-audio-track-action-icon svg {
    width: 14px;
    height: 14px;
}

.site-present-audio-pill-actions .download-file-btn svg {
    opacity: 0.75;
}

.site-present-audio-pill-actions .delete-file-btn {
    color: var(--danger);
    border-color: #e8b8b8;
}

.site-present-audio-pill-track {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
}

.site-present-audio-play-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid #9db9da;
    background: #eaf3fd;
    color: #1f4e81;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.site-present-audio-play-btn:hover,
.site-present-audio-play-btn:focus,
.site-present-audio-play-btn:focus-visible,
.site-present-audio-play-btn:active {
    border-color: #8bb0d8;
    background: #dbeaf9;
    color: #1a4472;
}

.site-present-audio-wave {
    height: 14px;
    border-radius: 999px;
    background: #f3f7fd;
    display: flex;
    align-items: flex-end;
    gap: 1px;
    padding: 0 8px;
    overflow: hidden;
}

.site-present-audio-wave-bar {
    flex: 1 1 0;
    min-width: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #8ea7c2 0%, #6f89a5 100%);
    align-self: center;
}

.site-present-audio-pill.is-playing .site-present-audio-wave-bar {
    background: linear-gradient(180deg, #7f9fc8 0%, #607d9d 100%);
}

.site-present-audio-time {
    min-width: 92px;
    text-align: right;
    color: #536a87;
    font-variant-numeric: tabular-nums;
}

.site-present-audio-element {
    display: none;
}

.client-site-presentation .site-present-audio-waveform {
    background: #ffffff;
    border: 1px solid #d2d9e3;
}

.client-site-presentation .site-present-audio-waveform .audio-waveform-base {
    opacity: 1;
}

.client-site-presentation .site-present-audio-waveform .audio-waveform-base span {
    background: #d9dfe7;
}

.client-site-presentation .site-present-audio-waveform .audio-waveform-progress span {
    min-height: 5px;
    background: #a9c4e8;
}

.client-site-presentation .site-present-audio-pill-track {
    align-items: start;
    grid-template-columns: auto minmax(0, 1fr);
    overflow: hidden;
}

.client-site-presentation .site-present-audio-pill-track.has-reset-control {
    grid-template-columns: auto auto minmax(0, 1fr);
}

.client-site-presentation .site-present-audio-pill-track.has-reset-control .audio-reset-start-btn {
    align-self: start;
    margin-top: calc((42px - 29px) / 2);
}

.client-site-presentation .site-present-audio-play-btn {
    width: 42px;
    height: 42px;
    border-width: 2px;
    align-self: start;
}

.client-site-presentation .site-present-section.mode-audio .site-present-audio-pill {
    overflow: hidden;
}

.client-site-presentation .site-present-section.mode-audio .site-present-audio-pill.is-playback-mode-active {
    border-color: #ccd8e6;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
    box-shadow: none;
}

.client-site-presentation .site-present-section.mode-audio .site-present-audio-pill.is-audio-keyboard-target:not(.is-playback-mode-active) {
    position: relative;
    z-index: 0;
    border-color: #ccd8e6;
    background: #ffffff;
    box-shadow: none;
}

.client-site-presentation .site-present-section.mode-audio .site-present-audio-pill.is-audio-keyboard-target:not(.is-playback-mode-active)::before {
    content: "";
    position: absolute;
    top: 84px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    border-radius: 0 0 20px 20px;
    background: linear-gradient(180deg, rgba(233, 243, 255, 0.42) 0%, rgba(233, 243, 255, 0.78) 100%);
    pointer-events: none;
}

.client-site-presentation .site-present-section.mode-audio .site-present-audio-pill.is-audio-keyboard-target:not(.is-playback-mode-active) > * {
    position: relative;
    z-index: 1;
}

.client-site-presentation .site-present-section.mode-audio .site-present-audio-pill.is-audio-queued-target .site-present-audio-pill-head,
.client-site-presentation .site-present-section.mode-audio .site-present-audio-pill.is-audio-queued-target .site-present-audio-waveform .audio-waveform-base span {
    opacity: 1;
}

.client-site-presentation .site-present-section.mode-audio .site-present-audio-pill.is-audio-queued-target .site-present-audio-waveform .audio-waveform-progress span {
    background: #8fb7ec;
    opacity: 0.5;
}

.client-site-presentation .site-present-section.mode-audio .site-present-audio-pill.is-playback-mode-active .site-present-audio-waveform .audio-waveform-progress span {
    background: #8fb7ec;
}

.client-site-presentation .site-present-section.mode-audio .site-present-audio-pill-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-left: 0;
}

.client-site-presentation .site-present-section.mode-audio .site-present-audio-pill-head strong {
    width: 100%;
    max-width: none;
}

.client-site-presentation .site-present-section.mode-audio .audio-track-main,
.client-site-presentation .site-present-section.mode-audio .site-present-audio-waveform,
.client-site-presentation .site-present-section.mode-audio .site-present-audio-time-row {
    min-width: 0;
    width: 100%;
}

.client-site-presentation .site-present-audio-time-row {
    position: relative;
    max-width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
}

.client-site-presentation .site-present-audio-total {
    margin-left: 0;
    text-align: right;
}

.client-site-presentation .site-present-audio-time-row .site-present-audio-meta {
    position: static;
    transform: none;
    justify-self: center;
    min-width: 0;
    max-width: 100%;
    font-size: inherit;
    line-height: inherit;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: auto;
}

@media (max-width: 900px) {
    .site-present-audio-pill-head {
        flex-wrap: wrap;
        align-items: baseline;
    }

    .site-present-audio-pill-head strong {
        max-width: none;
    }

    .site-present-audio-pill-head .site-present-audio-meta {
        position: static;
        left: auto;
        transform: none;
        width: 100%;
        text-align: left;
        pointer-events: auto;
        white-space: normal;
    }
}

.client-site-presentation .site-present-file-row {
    border: 1px solid #ccd8e6;
    border-radius: 20px;
    background: #ffffff;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: var(--shadow);
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

.client-site-presentation .site-present-file-list {
    display: grid;
    gap: 16px;
    width: min(100%, 1620px);
    margin-left: auto;
    margin-right: auto;
}

.client-site-presentation .site-present-file-group-list {
    width: min(1200px, 94vw);
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    gap: 10px;
    align-items: start;
    align-content: start;
}

/* In portfolio files grid, avoid stacked-list sibling margins that shift
   the second card in each row downward. Grid gap already handles spacing. */
.client-site-presentation .site-present-file-group-list > .file-folder-group + .file-folder-group {
    margin-top: 0;
}

.client-site-presentation .site-present-file-group-list .site-folder-download-pill {
    display: none;
}

.client-site-presentation .site-present-file-group-list .file-folder-group[open] > .file-folder-summary .site-folder-download-pill {
    display: inline-flex;
}

/* Portfolio files section: use the same files-mode card styling scope as #video-grid. */
.client-site-presentation .site-present-section.mode-files .site-present-file-group-list .file-folder-group,
.client-site-presentation .site-present-section.mode-files .site-present-file-group-list .file-folder-summary,
.client-site-presentation .site-present-section.mode-files .site-present-file-group-list .file-row,
.client-site-presentation .site-present-section.mode-files .site-present-file-group-list .soft-btn {
    box-shadow: none !important;
}

.client-site-presentation .site-present-section.mode-files .site-present-file-group-list .file-row-main-files {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 18px;
    row-gap: 0;
}

.client-site-presentation .site-present-section.mode-files .site-present-file-group-list .file-row-title {
    font-size: 0.95rem;
}

.client-site-presentation .site-present-section.mode-files .site-present-file-group-list .file-folder-name {
    font-size: 1.05rem;
    font-weight: 700;
}

.review-client.embedded-client-view.files-mode[data-site-scoped-project-view="1"][data-hide-embed-toolbar="1"] #video-grid .file-folder-name {
    font-size: 0.8925rem;
    font-weight: 600;
}

.client-site-presentation .site-present-section.mode-files .site-present-file-group-list .file-row-main-files .file-row-meta {
    align-self: center;
    justify-self: end;
    text-align: right;
}

.client-site-presentation .site-present-audio-list {
    width: min(100%, 1620px);
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12.5px;
}

.client-site-presentation .site-present-section.mode-audio .site-present-audio-pill {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    gap: 8px;
}

.client-site-presentation .site-present-section.mode-audio .site-present-audio-pill-head {
    min-height: 25px;
    padding-left: 84px;
}

.client-site-presentation .site-present-section.mode-audio .site-present-audio-pill-head strong {
    font-size: 0.8rem;
    line-height: 1.25;
}

.client-site-presentation .site-present-section.mode-audio .site-present-audio-pill-actions {
    gap: 8px;
}

.client-site-presentation .site-present-section.mode-audio .site-present-audio-pill-actions .site-item-comment-btn {
    height: 25px;
    min-height: 25px;
    padding: 0 9px;
    border-radius: 9px;
    font-size: 0.68rem;
    font-weight: 400;
    line-height: 1;
}

.client-site-presentation .site-present-section.mode-audio .site-present-audio-pill-actions .site-audio-track-action-icon {
    height: 25px;
    min-height: 25px;
}

.client-site-presentation .site-present-section.mode-audio .site-present-audio-pill-track.has-reset-control {
    grid-template-columns: 39px 25px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    overflow: visible;
}

.client-site-presentation .site-present-section.mode-audio .site-present-audio-pill-track.has-reset-control .audio-reset-start-btn {
    width: 25px;
    height: 25px;
    border-width: 1.3px;
    align-self: center;
    margin-top: 0;
}

.client-site-presentation .site-present-section.mode-audio .site-present-audio-pill-track.has-reset-control .audio-reset-start-btn svg {
    width: 14px;
    height: 14px;
}

.client-site-presentation .site-present-section.mode-audio .site-present-audio-play-btn {
    width: 39px;
    height: 39px;
    border-width: 1.7px;
    background: #ffffff;
    border-color: #d2d9e3;
    color: #12202f;
    align-self: center;
}

.client-site-presentation .site-present-section.mode-audio .site-present-audio-play-btn:hover,
.client-site-presentation .site-present-section.mode-audio .site-present-audio-play-btn:focus,
.client-site-presentation .site-present-section.mode-audio .site-present-audio-play-btn:focus-visible,
.client-site-presentation .site-present-section.mode-audio .site-present-audio-play-btn:active {
    background: #ffffff;
    border-color: #d2d9e3;
    color: #12202f;
    box-shadow: none;
}

.client-site-presentation .site-present-section.mode-audio .site-present-audio-waveform {
    height: 36px;
    background: #ffffff;
    border: 1px solid #d2d9e3;
}

.client-site-presentation .site-present-section.mode-audio .site-present-audio-time-row {
    max-width: 100%;
}

.client-site-presentation .site-present-file-meta {
    min-width: 0;
}

.client-site-presentation .site-present-file-meta strong {
    display: inline;
    margin-bottom: 0;
    font-size: 0.92rem;
    font-weight: 600;
}

@media (max-width: 920px) {
    .client-site-presentation .site-present-audio-list {
        grid-template-columns: 1fr;
    }

    .client-site-presentation .site-present-section.mode-audio .site-present-audio-pill {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
    }

    .client-site-presentation .site-present-section.mode-audio .site-present-audio-pill-head {
        padding-left: 0;
    }
}

.client-site-presentation .site-present-file-meta .site-present-file-meta-extra {
    font-size: 0.95rem;
    font-weight: 400;
    color: #5d6f87;
}

.client-site-presentation .site-present-file-meta p {
    margin: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

.client-site-presentation .site-present-file-download {
    flex: 0 0 auto;
}

@media (max-width: 1200px) {
    .client-site-presentation .site-present-file-group-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 1200px) {
    .site-present-photo-grid {
        column-count: 2;
    }
}

@media (max-width: 900px) {
    .site-present-video-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .client-site-presentation .site-present-video-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .client-site-presentation .site-present-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .client-site-presentation .site-present-video-grid {
        grid-template-columns: 1fr;
    }

    .client-site-presentation .site-present-video-card.is-wide,
    .client-site-presentation .site-present-video-card.wide-169 {
        grid-column: span 1;
    }
}


@media (max-width: 700px) {
    .site-present-photo-grid {
        column-count: 1;
    }

    .client-photo-hero-overlay h1 {
        padding: clamp(1rem, 6vw, 1.6rem) clamp(1.3rem, 7vw, 2.2rem);
    }

    .client-photo-hero-subtitle {
        max-width: 94vw;
        font-size: 0.98rem;
    }
}

.site-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
}

.site-video-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.site-video-item video,
.site-video-item img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #081118;
}

.custom-video-player {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
    background: #000;
}

.preview-inline-controls {
    margin-top: 10px;
}

.preview-video-shell {
    width: 100%;
    display: grid;
    gap: 10px;
}

.preview-page .layout {
    width: min(1200px, 94vw);
    margin-top: 30px;
}

.preview-page .preview-site-topbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 120;
    box-sizing: border-box;
    width: 100vw;
    --preview-topbar-sticky-height: 60px;
    min-height: var(--preview-topbar-sticky-height);
    margin-bottom: 16px;
    padding-top: 8px;
    padding-bottom: 6px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: var(--preview-inline-gap);
    padding-right: var(--preview-inline-gap);
    background: #ffffff;
    --preview-inline-gap: max(24px, calc((100vw - min(1200px, 94vw)) / 2));
}

.review-client.preview-page.client-photo-mode .preview-site-topbar {
    --preview-inline-gap: max(24px, calc((100vw - min(1200px, 94vw)) / 2));
    --preview-topbar-sticky-height: 60px;
    --preview-audio-scroll-shield: 17px;
    flex-wrap: nowrap;
    padding-top: calc(8px + var(--preview-audio-scroll-shield));
    padding-bottom: 6px;
    isolation: isolate;
}

.review-client.preview-page.audio-mode .preview-site-topbar,
.review-client.preview-page[data-project-mode="video"] .preview-site-topbar,
.review-client.preview-page[data-project-mode="files"][data-share-alias]:not([data-share-alias=""]) .preview-site-topbar,
.review-client.preview-page[data-project-mode="files"][data-embed-project-header="1"] .preview-site-topbar,
.review-client.preview-page.dashboard-quick-preview[data-project-mode="files"] .preview-site-topbar {
    --preview-topbar-sticky-height: 60px;
    --preview-audio-scroll-shield: 17px;
    flex-wrap: nowrap;
    padding-top: calc(8px + var(--preview-audio-scroll-shield));
    padding-bottom: 6px;
    isolation: isolate;
}

.review-client.preview-page.audio-mode .preview-site-topbar {
    --preview-inline-gap: max(16px, calc((100vw - min(900px, 70.5vw)) / 2));
}

.review-client.preview-page[data-project-mode="video"] .preview-site-topbar,
.review-client.preview-page[data-project-mode="files"][data-share-alias]:not([data-share-alias=""]) .preview-site-topbar,
.review-client.preview-page[data-project-mode="files"][data-embed-project-header="1"] .preview-site-topbar,
.review-client.preview-page.dashboard-quick-preview[data-project-mode="files"] .preview-site-topbar {
    --preview-inline-gap: max(24px, calc((100vw - min(1200px, 94vw)) / 2));
}

.review-client.preview-page.audio-mode,
.review-client.preview-page[data-project-mode="video"],
.review-client.preview-page[data-project-mode="files"][data-share-alias]:not([data-share-alias=""]),
.review-client.preview-page[data-project-mode="files"][data-embed-project-header="1"],
.review-client.preview-page.dashboard-quick-preview[data-project-mode="files"] {
    --preview-topbar-sticky-height: 60px;
}

.review-client.preview-page.audio-mode.is-preview-header-scrolled .preview-site-topbar,
.review-client.preview-page[data-project-mode="video"].is-preview-header-scrolled .preview-site-topbar,
.review-client.preview-page[data-project-mode="files"][data-share-alias]:not([data-share-alias=""]).is-preview-header-scrolled .preview-site-topbar,
.review-client.preview-page[data-project-mode="files"][data-embed-project-header="1"].is-preview-header-scrolled .preview-site-topbar,
.review-client.preview-page.dashboard-quick-preview[data-project-mode="files"].is-preview-header-scrolled .preview-site-topbar {
    --preview-audio-scroll-shield: 20px;
}

.review-client.preview-page.audio-mode .preview-site-topbar .site-portfolio-headline,
.review-client.preview-page[data-project-mode="video"] .preview-site-topbar .site-portfolio-headline,
.review-client.preview-page[data-project-mode="files"][data-share-alias]:not([data-share-alias=""]) .preview-site-topbar .site-portfolio-headline,
.review-client.preview-page[data-project-mode="files"][data-embed-project-header="1"] .preview-site-topbar .site-portfolio-headline,
.review-client.preview-page.dashboard-quick-preview[data-project-mode="files"] .preview-site-topbar .site-portfolio-headline {
    flex: 1 1 auto;
}

.review-client.preview-page.audio-mode .preview-site-topbar-actions,
.review-client.preview-page[data-project-mode="video"] .preview-site-topbar-actions,
.review-client.preview-page[data-project-mode="files"][data-share-alias]:not([data-share-alias=""]) .preview-site-topbar-actions,
.review-client.preview-page[data-project-mode="files"][data-embed-project-header="1"] .preview-site-topbar-actions,
.review-client.preview-page.dashboard-quick-preview[data-project-mode="files"] .preview-site-topbar-actions {
    flex: 0 0 auto;
    width: auto;
    justify-content: flex-end;
}

.review-client.preview-page.audio-mode .preview-site-topbar-actions-main,
.review-client.preview-page[data-project-mode="video"] .preview-site-topbar-actions-main,
.review-client.preview-page[data-project-mode="files"][data-share-alias]:not([data-share-alias=""]) .preview-site-topbar-actions-main,
.review-client.preview-page[data-project-mode="files"][data-embed-project-header="1"] .preview-site-topbar-actions-main,
.review-client.preview-page.dashboard-quick-preview[data-project-mode="files"] .preview-site-topbar-actions-main {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.review-client.preview-page[data-project-mode="video"] {
    --preview-video-header-height: 96px;
    --preview-video-header-padding-top: 26px;
    --preview-video-header-padding-bottom: 24px;
}

.review-client.preview-page[data-project-mode="photo"] {
    --preview-video-header-height: 96px;
    --preview-video-header-padding-top: 26px;
    --preview-video-header-padding-bottom: 24px;
}

.review-client.preview-page[data-project-mode="audio"] {
    --preview-video-header-height: 96px;
    --preview-video-header-padding-top: 26px;
    --preview-video-header-padding-bottom: 24px;
    background: #f7f9fc;
}

.review-client.preview-page[data-project-mode="files"][data-share-alias]:not([data-share-alias=""]) {
    --preview-video-header-height: 96px;
    --preview-video-header-padding-top: 26px;
    --preview-video-header-padding-bottom: 24px;
    background: #f7f9fc;
}

.review-client.preview-page[data-project-mode="files"][data-embed-project-header="1"] {
    --preview-video-header-height: 96px;
    --preview-video-header-padding-top: 26px;
    --preview-video-header-padding-bottom: 24px;
}

.review-client.preview-page.dashboard-quick-preview[data-project-mode="files"] {
    --preview-video-header-height: 125px;
    --preview-video-header-padding-top: 26px;
    --preview-video-header-padding-bottom: 24px;
}

.review-client.preview-page[data-project-mode="blog"].dashboard-quick-preview {
    --preview-video-header-height: 132px;
    --preview-video-header-padding-top: 28px;
    --preview-video-header-padding-bottom: 28px;
}

.review-client.preview-page[data-project-mode="video"].is-preview-video-header-fixed .layout,
.review-client.preview-page[data-project-mode="files"][data-share-alias]:not([data-share-alias=""]).is-preview-video-header-fixed .layout,
.review-client.preview-page[data-project-mode="files"][data-embed-project-header="1"].is-preview-header-fixed .layout,
.review-client.preview-page.client-photo-mode.is-preview-header-fixed .layout,
.review-client.preview-page.client-blog-mode.dashboard-quick-preview.is-preview-header-fixed .layout {
    padding-top: var(--preview-video-header-height);
}

.review-client.preview-page.audio-mode[data-client-write-enabled="1"].is-preview-header-fixed .layout {
    padding-top: calc(var(--preview-video-header-height, 96px) + 42px);
}

.review-client.preview-page.audio-mode.embedded-client-view[data-site-scoped-project-view="1"][data-embed-audio-header="1"][data-client-write-enabled="1"].is-preview-header-fixed .layout {
    padding-top: var(--preview-video-header-height, 96px);
}

.review-client.preview-page.audio-mode.embedded-client-view[data-site-scoped-project-view="1"][data-embed-audio-header="1"].is-preview-header-fixed #video-grid {
    margin-top: 12.5px;
}

.review-client.preview-page.audio-mode.embedded-client-view[data-site-scoped-project-view="1"][data-embed-audio-header="1"][data-client-write-enabled="1"].is-preview-header-fixed #video-grid {
    margin-top: calc(6px + 53px + 20px - 10px + 12.5px);
}

.review-client.preview-page.dashboard-quick-preview.audio-mode.is-preview-header-fixed .layout {
    padding-top: calc(var(--preview-video-header-height, 96px) - 24px);
}

.review-client.preview-page.dashboard-quick-preview[data-project-mode="files"].is-preview-header-fixed .layout {
    padding-top: var(--preview-video-header-height, 96px);
}

.review-client.preview-page.dashboard-quick-preview.audio-mode {
    background: #f7f9fc;
}

.review-client.preview-page.dashboard-quick-preview.audio-mode:not(.client-login-page) .layout {
    min-height: calc(100dvh - var(--preview-video-header-height, 96px));
}

.review-client.preview-page.dashboard-quick-preview.audio-mode.is-preview-header-fixed .preview-site-topbar {
    border-bottom: 1px solid #d7e0ea;
    box-shadow: 0 14px 30px rgba(21, 38, 63, 0.05);
}

.review-client.preview-page.audio-mode[data-client-write-enabled="0"].is-preview-header-fixed .layout {
    padding-top: var(--preview-video-header-height, 96px);
}

.review-client.preview-page[data-project-mode="video"][data-client-write-enabled="1"].is-preview-video-header-fixed .layout {
    padding-top: calc(var(--preview-video-header-height, 96px) + 42px);
}

.review-client.preview-page.dashboard-quick-preview[data-project-mode="video"].is-preview-video-header-fixed .layout {
    padding-top: var(--preview-video-header-height, 96px);
}

.review-client.preview-page[data-project-mode="files"][data-client-write-enabled="1"][data-embed-project-header="1"].is-preview-header-fixed .layout {
    padding-top: calc(var(--preview-video-header-height, 96px) + 42px);
}

.review-client.preview-page[data-project-mode="files"][data-client-write-enabled="1"][data-share-alias]:not([data-share-alias=""]).is-preview-video-header-fixed .layout {
    padding-top: calc(var(--preview-video-header-height, 96px) + 42px);
}

.review-client.preview-page.client-photo-mode[data-client-write-enabled="1"].is-preview-header-fixed .layout {
    padding-top: calc(var(--preview-video-header-height, 156px) + 42px);
}

.review-client.preview-page[data-project-mode="video"].is-preview-video-header-fixed .preview-site-topbar,
.review-client.preview-page[data-project-mode="files"][data-share-alias]:not([data-share-alias=""]).is-preview-video-header-fixed .preview-site-topbar,
.review-client.preview-page[data-project-mode="files"][data-embed-project-header="1"].is-preview-header-fixed .preview-site-topbar,
.review-client.preview-page.dashboard-quick-preview[data-project-mode="files"].is-preview-header-fixed .preview-site-topbar,
.review-client.preview-page.client-photo-mode.is-preview-header-fixed .preview-site-topbar,
.review-client.preview-page.client-blog-mode.dashboard-quick-preview.is-preview-header-fixed .preview-site-topbar,
.review-client.preview-page.audio-mode.is-preview-header-fixed .preview-site-topbar {
    --preview-inline-gap: max(24px, calc((100vw - min(1200px, 94vw)) / 2));
    --preview-topbar-sticky-height: var(--preview-video-header-height);
    position: fixed;
    inset: 0 0 auto 0;
    width: 100vw;
    min-height: var(--preview-video-header-height);
    margin: 0;
    padding-top: var(--preview-video-header-padding-top);
    padding-bottom: var(--preview-video-header-padding-bottom);
    margin-left: 0;
    margin-right: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(21, 38, 63, 0.05);
}

.review-client.preview-page.audio-mode.is-preview-header-fixed .preview-site-topbar {
    --preview-inline-gap: max(16px, calc((100vw - min(900px, 70.5vw)) / 2));
    min-height: var(--preview-video-header-height);
    padding-top: 26px;
    padding-bottom: 24px;
}

.review-client.preview-page[data-project-mode="video"].is-preview-video-header-fixed .preview-site-topbar,
.review-client.preview-page[data-project-mode="files"][data-share-alias]:not([data-share-alias=""]).is-preview-video-header-fixed .preview-site-topbar {
    --preview-inline-gap: max(24px, calc((100vw - min(1200px, 94vw)) / 2));
    min-height: var(--preview-video-header-height);
    padding-top: 26px;
    padding-bottom: 24px;
}

.review-client.preview-page.dashboard-quick-preview[data-project-mode="files"].is-preview-header-fixed .preview-site-topbar {
    --preview-inline-gap: max(24px, calc((100vw - min(1200px, 94vw)) / 2));
    min-height: var(--preview-video-header-height);
    padding-top: 26px;
    padding-bottom: 24px;
}

.review-client.preview-page.audio-mode.is-preview-header-fixed .client-audio-dropzone-row,
.review-client.preview-page[data-project-mode="video"].is-preview-video-header-fixed .client-video-dropzone-row,
.review-client.preview-page[data-project-mode="files"][data-share-alias]:not([data-share-alias=""]).is-preview-video-header-fixed .client-video-dropzone-row,
.review-client.preview-page[data-project-mode="files"][data-embed-project-header="1"].is-preview-header-fixed .client-video-dropzone-row,
.review-client.preview-page.client-photo-mode.is-preview-header-fixed .client-photo-dropzone-row {
    position: fixed;
    top: calc(var(--preview-video-header-height, 96px) - 10px);
    left: 0;
    right: 0;
    z-index: 121;
    width: 100vw;
    margin: 0;
    padding-left: var(--preview-inline-gap, max(16px, calc((100vw - min(900px, 70.5vw)) / 2)));
    padding-right: var(--preview-inline-gap, max(16px, calc((100vw - min(900px, 70.5vw)) / 2)));
    background: #ffffff;
    border-bottom: 1px solid #d7e0ea;
}

.review-client.preview-page[data-project-mode="video"].is-preview-video-header-fixed .client-video-dropzone-row {
    padding-left: var(--preview-inline-gap, max(24px, calc((100vw - min(1200px, 94vw)) / 2)));
    padding-right: var(--preview-inline-gap, max(24px, calc((100vw - min(1200px, 94vw)) / 2)));
}

.review-client.preview-page[data-project-mode="files"][data-share-alias]:not([data-share-alias=""]).is-preview-video-header-fixed .client-video-dropzone-row {
    padding-left: var(--preview-inline-gap, max(24px, calc((100vw - min(1200px, 94vw)) / 2)));
    padding-right: var(--preview-inline-gap, max(24px, calc((100vw - min(1200px, 94vw)) / 2)));
}

.review-client.preview-page[data-project-mode="files"][data-embed-project-header="1"].is-preview-header-fixed .client-video-dropzone-row {
    padding-left: var(--preview-inline-gap, max(24px, calc((100vw - min(1200px, 94vw)) / 2)));
    padding-right: var(--preview-inline-gap, max(24px, calc((100vw - min(1200px, 94vw)) / 2)));
}

.review-client.preview-page.client-photo-mode.is-preview-header-fixed .client-photo-dropzone-row {
    padding-left: var(--preview-inline-gap, max(24px, calc((100vw - min(1200px, 94vw)) / 2)));
    padding-right: var(--preview-inline-gap, max(24px, calc((100vw - min(1200px, 94vw)) / 2)));
}

.review-client.preview-page.audio-mode.is-preview-header-fixed .preview-site-topbar,
.review-client.preview-page[data-project-mode="video"].is-preview-video-header-fixed .preview-site-topbar,
.review-client.preview-page[data-project-mode="files"][data-client-write-enabled="1"][data-share-alias]:not([data-share-alias=""]).is-preview-video-header-fixed .preview-site-topbar,
.review-client.preview-page.client-photo-mode[data-client-write-enabled="1"].is-preview-header-fixed .preview-site-topbar {
    border-bottom: 0;
    box-shadow: none;
}

.review-client.preview-page[data-project-mode="video"][data-client-write-enabled="0"].is-preview-video-header-fixed .preview-site-topbar,
.review-client.preview-page[data-project-mode="audio"][data-client-write-enabled="0"].is-preview-header-fixed .preview-site-topbar,
.review-client.preview-page[data-project-mode="files"][data-client-write-enabled="0"][data-share-alias]:not([data-share-alias=""]).is-preview-video-header-fixed .preview-site-topbar {
    border-bottom: 1px solid #d7e0ea;
    box-shadow: 0 14px 30px rgba(21, 38, 63, 0.05);
}

.review-client.preview-page.dashboard-quick-preview[data-project-mode="video"].is-preview-video-header-fixed .preview-site-topbar {
    border-bottom: 1px solid #d7e0ea;
    box-shadow: 0 14px 30px rgba(21, 38, 63, 0.05);
}

.review-client.preview-page.dashboard-quick-preview.is-preview-header-fixed .preview-site-topbar,
.review-client.preview-page.dashboard-quick-preview.client-photo-mode[data-client-write-enabled="1"].is-preview-header-fixed .preview-site-topbar,
.review-client.preview-page.dashboard-quick-preview[data-project-mode="video"].is-preview-video-header-fixed .preview-site-topbar {
    border-bottom: 1px solid #d7e0ea;
    box-shadow: 0 14px 30px rgba(21, 38, 63, 0.05);
}

.review-client.preview-page.dashboard-quick-preview[data-project-mode="files"] .preview-site-topbar {
    --preview-inline-gap: max(24px, calc((100vw - min(1200px, 94vw)) / 2));
}

.review-client.preview-page[data-project-mode="video"][data-client-write-enabled="0"] .client-video-dropzone-row,
.review-client.preview-page[data-project-mode="files"][data-client-write-enabled="0"][data-share-alias]:not([data-share-alias=""]) .client-video-dropzone-row {
    display: none !important;
}

.blog-reader-page.blog-reader-preview-mode .blog-reader-preview-topbar {
    --preview-topbar-sticky-height: var(--preview-video-header-height);
    position: fixed;
    inset: 0 0 auto 0;
    width: 100vw;
    min-height: var(--preview-video-header-height);
    margin: 0;
    padding-top: var(--preview-video-header-padding-top);
    padding-bottom: var(--preview-video-header-padding-bottom);
    padding-left: var(--preview-inline-gap);
    padding-right: var(--preview-inline-gap);
    margin-left: 0;
    margin-right: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(21, 38, 63, 0.05);
}

.review-client.preview-page.audio-mode .preview-site-topbar::before,
.review-client.preview-page[data-project-mode="video"] .preview-site-topbar::before,
.review-client.preview-page[data-project-mode="files"][data-share-alias]:not([data-share-alias=""]) .preview-site-topbar::before,
.review-client.preview-page.dashboard-quick-preview[data-project-mode="files"] .preview-site-topbar::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: #ffffff;
}

.preview-page .preview-back-btn {
    position: static;
    transform: none;
    display: inline-flex;
    align-items: center;
    margin: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    height: var(--dash-pill-height);
    min-height: var(--dash-pill-height);
    padding: 0 var(--dash-pill-padding-x);
    font-size: calc(var(--dash-pill-font-size) * 0.9);
    border-radius: var(--dash-pill-radius);
    font-weight: 400;
    z-index: 140;
    line-height: 1;
    letter-spacing: 0;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
}

.preview-page .preview-site-topbar-actions {
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 8px;
    justify-content: flex-end;
    min-height: var(--dash-pill-height);
    margin: 0;
    flex: 0 0 auto;
}

.preview-page .preview-site-topbar-actions .client-photo-download-wrap {
    width: auto;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: nowrap;
}

.preview-page .preview-site-topbar-actions .client-photo-download-wrap .soft-btn {
    min-width: 0;
}

.preview-page .preview-header-download-btn {
    position: static;
    transform: none;
    margin: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    height: var(--dash-pill-height);
    min-height: var(--dash-pill-height);
    padding: 0 var(--dash-pill-padding-x);
    border-radius: var(--dash-pill-radius);
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: calc(var(--dash-pill-font-size) * 0.9);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    z-index: 140;
}

.review-client.preview-page.audio-mode .preview-audio-playback-controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.review-client.preview-page.audio-mode .preview-audio-playback-controls[hidden] {
    display: none !important;
}

.review-client.preview-page.audio-mode .site-present-audio-mode-btn {
    width: var(--dash-pill-height);
    height: var(--dash-pill-height);
    min-width: var(--dash-pill-height);
    min-height: var(--dash-pill-height);
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5f728d;
}

.review-client.preview-page.audio-mode .site-present-audio-mode-btn svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.review-client.preview-page.audio-mode .site-present-audio-mode-btn text {
    fill: currentColor;
    stroke: none;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    text-anchor: middle;
    dominant-baseline: middle;
}

.review-client.preview-page.audio-mode .site-present-audio-mode-btn.is-active,
.review-client.preview-page.audio-mode .site-present-audio-mode-btn[aria-pressed="true"] {
    border-color: #ccd8e6;
    background: #eaf3ff;
    color: #0b62d6;
}

.preview-page .preview-header-share-btn {
    position: static;
    transform: none;
    margin: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    height: var(--dash-pill-height);
    min-height: var(--dash-pill-height);
    padding: 0 var(--dash-pill-padding-x);
    border-radius: var(--dash-pill-radius);
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: calc(var(--dash-pill-font-size) * 0.9);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    z-index: 140;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.preview-page .preview-header-share-btn.is-active {
    background: #eaf3fd !important;
    border-color: #c6d6e8 !important;
    color: #1f3f5c !important;
}

.preview-page .preview-files-menu-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.preview-page .preview-header-menu-btn {
    position: static;
    transform: none;
    margin: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    height: var(--dash-pill-height);
    min-height: var(--dash-pill-height);
    padding: 0 var(--dash-pill-padding-x);
    border-radius: var(--dash-pill-radius);
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: calc(var(--dash-pill-font-size) * 0.9);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    z-index: 140;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.preview-page .preview-files-menu-wrap.is-open .preview-header-menu-btn {
    background: #eaf3fd !important;
    border-color: #c6d6e8 !important;
    color: #1f3f5c !important;
}

.preview-page .preview-files-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #c7d4e4;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(25, 46, 74, 0.14);
    padding: 8px;
    display: grid;
    gap: 8px;
    z-index: 220;
}

.preview-page .preview-files-menu-action {
    width: 100%;
    justify-content: center;
}

.preview-page .preview-share-panel {
    width: min(1200px, 94vw);
    margin: 8px auto 16px;
    display: grid;
    gap: 10px;
}

.preview-page.files-mode .preview-share-panel {
    margin: 16px auto 16px;
}

.preview-page .preview-share-panel[hidden] {
    display: none !important;
}

.preview-page .preview-share-panel .share-details-head {
    justify-content: flex-start;
    margin-bottom: 4px;
}

.preview-page .preview-share-panel .share-details-head h2 {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(0.96rem, 1.25vw, 1.1rem);
    font-weight: 400;
    color: #1f3045;
}

.preview-page .preview-share-panel .share-library-layout {
    display: block;
}

.preview-page .preview-share-panel .share-access-panel {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    margin-bottom: 0;
}

.preview-page .preview-share-panel .share-projects-wrap {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.preview-page .preview-share-panel .share-access-list-wrap {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.preview-page .preview-share-panel .share-projects-wrap .share-access-summary-collapsible {
    margin: 0;
}

.preview-page .preview-share-panel .share-projects-wrap .share-access-summary-collapsible-summary {
    justify-content: flex-start;
    background: #eaf3fd;
    border-color: #c6d6e8;
    color: #1f3f5c;
}

.preview-page .preview-share-panel .share-projects-wrap .share-access-summary-collapsible-title {
    color: #1f3f5c;
}

.preview-page .preview-share-panel .share-projects-wrap .share-projects-count {
    border-color: #b7cce3;
    color: #1f3f5c;
    background: #f6faff;
}

.preview-page .preview-share-panel .share-grid-video-pills {
    grid-template-columns: minmax(230px, 2fr) repeat(6, minmax(120px, 1fr));
    gap: 10px;
}

.preview-page .preview-share-panel .share-grid-video-pills .soft-btn,
.preview-page .preview-share-panel .share-grid-video-pills .share-pill-input {
    min-height: 42px;
}

.preview-page .preview-share-panel #preview-share-link-output {
    grid-column: 1 / -1;
    text-align: left;
}

.preview-page .preview-share-panel #preview-share-link-output.is-error {
    color: #b54343;
    border-color: rgba(181, 67, 67, 0.5);
}

@media (max-width: 980px) {
    .preview-page .preview-share-panel .share-grid-video-pills {
        grid-template-columns: 1fr;
    }
}

.preview-page .preview-back-btn .client-back-btn-prefix {
    color: #d12a2a;
}

.preview-page .preview-back-btn.preview-back-btn-plain .client-back-btn-suffix {
    color: inherit;
    font-weight: 400;
}

.preview-page .preview-back-btn .client-back-btn-sep {
    display: inline-block;
    margin: 0 8px;
    font-weight: 400;
}

.preview-page .site-portfolio-headline {
    display: flex;
    align-items: center;
    align-self: center;
    justify-content: flex-start;
    flex: 1 1 min-content;
    min-width: 0;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.preview-page .site-portfolio-headline-title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    min-height: var(--dash-pill-height);
    text-align: left;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: clamp(0.95rem, 1.5vw, 1.08rem);
    line-height: 1.2;
    font-weight: 400;
    color: #15253a;
}

.preview-page .site-portfolio-headline-prefix {
    font-weight: 400;
}

.preview-page .site-portfolio-headline-sep {
    margin: 0 8px;
    color: #7a8da5;
    font-weight: 400;
    line-height: 1;
}

.preview-page .site-portfolio-headline-name {
    font-weight: 700;
}

.preview-page .site-portfolio-headline-subtitle {
    margin-left: 14px;
    font-size: 0.9em;
    font-weight: 400;
    color: #6f839a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 42vw;
}

.preview-page .preview-subtitle-edit-btn {
    margin-left: 8px;
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.preview-page .preview-subtitle-edit-btn svg {
    width: 14px;
    height: 14px;
}

.review-client.preview-page.client-photo-mode .client-photo-hero-overlay {
    --preview-hero-overlay-inset-y: 19px;
    position: absolute;
    inset: 0;
    min-height: 0;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    padding-bottom: calc(var(--client-photo-hero-overlay-bottom, var(--preview-hero-overlay-inset-y)) + 10vh);
}

.review-client.preview-page.client-photo-mode .client-photo-hero-copy {
    width: auto;
    max-width: min(560px, calc(100vw - (var(--preview-inline-gap) * 2)));
    justify-items: center;
}

.review-client.preview-page.client-photo-mode .client-photo-hero-overlay h1 {
    font-size: clamp(0.84rem, 1.19vw, 1.1rem);
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
    text-align: center;
    line-height: 1;
    padding: clamp(12px, 1.8vw, 18px) clamp(18px, 2.6vw, 26px);
}

.review-client.preview-page.client-photo-mode .client-photo-hero-overlay h1::before {
    border-width: 1px;
}

.preview-page .preview-site-footer {
    margin-top: 72px;
    padding-top: 20px;
    padding-bottom: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview-page .preview-site-footer .site-portfolio-footer-logo {
    width: clamp(38px, 3.315vw, 58px);
    height: auto;
    object-fit: contain;
    opacity: 0.47;
}

/* Keep preview/client footer at the viewport bottom for non-files modes. */
.review-client.preview-page:not(.files-mode):not(.client-login-page) .layout,
.review-client.client-site-presentation:not(.files-mode):not(.client-login-page) .layout {
    min-height: calc(100dvh - 43px);
    display: flex;
    flex-direction: column;
}

.review-client.preview-page:not(.files-mode):not(.client-login-page) .layout > section:last-of-type,
.review-client.client-site-presentation:not(.files-mode):not(.client-login-page) .layout > section:last-of-type {
    flex: 1 1 auto;
}

.review-client.preview-page.dashboard-quick-preview.audio-mode:not(.client-login-page) .layout > .client-media-section {
    flex: 0 0 auto;
    padding-top: 28px;
}

.review-client.preview-page.dashboard-quick-preview.audio-mode .client-media-section .library-head {
    display: none;
}

.review-client.preview-page.dashboard-quick-preview.audio-mode .video-grid .clip-card.is-playback-mode-active {
    border-color: #bfd1e6;
    background: linear-gradient(180deg, #ffffff 0%, #e9f3ff 100%);
    box-shadow: none;
}

.review-client.preview-page.dashboard-quick-preview.audio-mode .video-grid .clip-card.is-audio-keyboard-target:not(.is-playback-mode-active) {
    border-color: #cbd8e8;
    background: #ffffff;
    box-shadow: none;
}

.review-client.preview-page.dashboard-quick-preview.audio-mode .video-grid .clip-card.is-audio-keyboard-target:not(.is-playback-mode-active) .card-meta {
    position: relative;
    z-index: 0;
}

.review-client.preview-page.dashboard-quick-preview.audio-mode .video-grid .clip-card.is-audio-keyboard-target:not(.is-playback-mode-active) .card-meta::before {
    content: "";
    position: absolute;
    top: 76px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    background: linear-gradient(180deg, rgba(233, 243, 255, 0.42) 0%, rgba(233, 243, 255, 0.78) 100%);
    pointer-events: none;
}

.review-client.preview-page.dashboard-quick-preview.audio-mode .video-grid .clip-card.is-audio-keyboard-target:not(.is-playback-mode-active) .audio-track-row,
.review-client.preview-page.dashboard-quick-preview.audio-mode .video-grid .clip-card.is-audio-keyboard-target:not(.is-playback-mode-active) .audio-track-media {
    position: relative;
    z-index: 1;
}

.review-client.preview-page.dashboard-quick-preview.audio-mode .video-grid .clip-card.is-audio-queued-target .title-row,
.review-client.preview-page.dashboard-quick-preview.audio-mode .video-grid .clip-card.is-audio-queued-target .audio-waveform-base span {
    opacity: 1;
}

.review-client.preview-page.dashboard-quick-preview.audio-mode .video-grid .clip-card.is-audio-queued-target .audio-waveform-progress span {
    background: #8fb7ec;
    opacity: 0.5;
}

.review-client.preview-page.dashboard-quick-preview.audio-mode .video-grid .clip-card.is-playback-mode-active .audio-waveform-progress span {
    background: #8fb7ec;
}

.review-client.preview-page:not(.files-mode):not(.client-login-page) .preview-site-footer,
.review-client.client-site-presentation:not(.files-mode):not(.client-login-page) .site-portfolio-footer {
    margin-top: auto;
    padding-top: 28px;
}

.custom-video-element {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.site-video-item .custom-video-player {
    aspect-ratio: 16 / 9;
    border-radius: 0;
}

.preview-ratio-wrap .custom-video-player {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.preview-page .preview-video-shell .preview-ratio-wrap,
.preview-page .preview-video-shell .preview-ratio-wrap .custom-video-player,
.preview-page .preview-video-shell .preview-ratio-wrap .custom-video-element {
    border-radius: 0;
}

.preview-page .site-video-item {
    border-radius: 0;
}

.preview-page .preview-share-content {
    display: grid;
    gap: 12px;
    margin-bottom: 0;
}

.preview-page.preview-audio-page .preview-share-content {
    gap: 44px;
    padding-top: 22px;
}

.preview-page.preview-audio-page .preview-audio-shell {
    width: 100%;
}

.preview-page.preview-audio-page .preview-audio-shell .audio-track-row {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.preview-page.preview-audio-page .preview-audio-shell .audio-play-toggle {
    margin-top: -7px;
}

.preview-page.preview-audio-page .preview-audio-shell .audio-track-main {
    gap: 10px;
    min-width: 0;
}

.preview-page.preview-audio-page .preview-audio-shell .audio-waveform {
    height: 32px;
    border: 1px solid transparent;
    background: #f4f8fe;
}

.preview-page.preview-audio-page .preview-audio-shell .audio-time-row {
    max-width: none;
    width: 100%;
    font-size: 0.86rem;
}

.preview-page.preview-audio-page .preview-actions-with-download {
    align-items: center;
    padding-bottom: 34px;
}

.preview-page.preview-audio-page .preview-download-btn {
    min-height: 30px;
    padding: 5px 9px;
    border-radius: 9px;
    font-size: 0.78rem;
}

.client-video-download-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

.preview-page .client-video-download-wrap {
    justify-content: center;
    margin-top: 124px;
    margin-bottom: 34px;
}

.preview-page .preview-download-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    min-height: 35px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 400;
}

.clip-card.is-selected {
    border-color: var(--line);
    box-shadow: var(--shadow);
}

.video-grid:not(.photo-grid) .clip-card.is-selected .thumb-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 1;
}

.review-admin[data-project-mode="video"] .video-grid:not(.photo-grid) .clip-card.is-selected .thumb-box::after {
    display: none;
}

.review-admin[data-project-mode="video"] .video-grid:not(.photo-grid) .clip-card.is-selected .thumb-box::before {
    content: 'Selected';
    position: absolute;
    top: 14px;
    right: 18px;
    z-index: 3;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1;
    text-shadow: 0 1px 6px rgba(16, 32, 48, 0.35);
    pointer-events: none;
}

.clip-card.dragging {
    opacity: 0.55;
}

.clip-card.drag-over {
    outline: 2px solid #2ca287;
    outline-offset: -2px;
}

.select-inline-btn {
    min-width: 66px;
}

.select-inline-btn.active {
    background: #edf4fb;
    border-color: #c6d6e8;
    color: #2c4b66;
}

.thumb-box {
    width: 100%;
    aspect-ratio: var(--ratio, 16 / 9);
    background: #081118;
    display: grid;
    place-items: center;
    overflow: hidden;
    position: relative;
}

.clip-comment-pill-stack {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 3;
    display: grid;
    gap: 6px;
    pointer-events: none;
}

.clip-comment-pill {
    pointer-events: auto;
    display: grid;
    gap: 3px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(207, 46, 66, 0.24);
    background: rgba(255, 255, 255, 0.92);
    color: #3f526b;
    box-shadow: 0 4px 12px rgba(18, 32, 47, 0.12);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    text-align: left;
}

.clip-comment-pill:hover,
.clip-comment-pill:focus,
.clip-comment-pill:focus-visible {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(207, 46, 66, 0.34);
    box-shadow: 0 6px 14px rgba(18, 32, 47, 0.14);
}

.clip-comment-pill-line {
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.clip-comment-pill-summary {
    font-size: 0.72rem;
    font-weight: 600;
    color: #cf2e42;
}

.clip-comment-pill-note {
    font-size: 0.74rem;
    font-weight: 400;
    color: #4f627a;
}

.thumb-box img,
.thumb-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-box .card-preview-image {
    width: 100%;
    height: 100%;
}

.review-admin[data-project-mode="video"] .thumb-box .card-preview-image,
.review-admin[data-project-mode="video"] .thumb-box .card-preview-video,
.review-client[data-project-mode="video"] .thumb-box .card-preview-image,
.review-client[data-project-mode="video"] .thumb-box .card-preview-video {
    object-fit: contain;
    background: #081118;
}

.review-client[data-project-mode="video"] .clip-card {
    border-radius: 0 0 var(--radius) var(--radius);
    overflow: visible;
}

.review-client[data-project-mode="video"] .clip-card .thumb-box,
.review-client[data-project-mode="video"] .clip-card .thumb-box .card-preview-image,
.review-client[data-project-mode="video"] .clip-card .thumb-box .card-preview-video {
    border-radius: 0;
}

.review-admin[data-project-mode="video"] .clip-card,
.review-client[data-project-mode="video"] .clip-card {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.review-admin[data-project-mode="video"] .clip-card .thumb-box,
.review-admin[data-project-mode="video"] .clip-card .thumb-box .card-preview-image,
.review-admin[data-project-mode="video"] .clip-card .thumb-box .card-preview-video,
.review-client[data-project-mode="video"] .clip-card .thumb-box,
.review-client[data-project-mode="video"] .clip-card .thumb-box .card-preview-image,
.review-client[data-project-mode="video"] .clip-card .thumb-box .card-preview-video {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.client-site-presentation .site-present-section.mode-video .site-present-video-card,
.client-site-presentation .site-present-section.mode-video .site-present-video-player.custom-video-player,
.client-site-presentation .site-present-section.mode-video .site-present-video-card video {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.client-site-presentation.site-layout-tab-mode .site-present-section.mode-video .site-present-video-card,
.client-site-presentation.site-layout-tab-mode .site-present-section.mode-video .site-present-video-player.custom-video-player,
.client-site-presentation.site-layout-tab-mode .site-present-section.mode-video .site-present-video-card video {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.card-preview-poster-placeholder {
    display: grid;
    place-items: center;
    background: #081118;
    color: #8ea2bc;
    font-size: 0.85rem;
    text-align: center;
    padding: 10px;
}

.card-preview-audio {
    width: 100%;
}

.audio-card-meta {
    gap: 10px;
}

.audio-row {
    cursor: grab;
}

.audio-row.is-selected {
    border-color: #9fb8d4;
    box-shadow: 0 0 0 2px rgba(47, 127, 217, 0.14);
}

.audio-row.is-selected .card-meta {
    background: #f4f8fe;
}

.audio-row .card-meta {
    padding: 14px 16px;
}

.review-admin.audio-mode.video-list-mode .audio-row .card-meta,
.review-client.audio-mode.video-list-mode .audio-row .card-meta {
    padding: 10px 14px;
}

.audio-select-zone {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.audio-row .clip-title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-weight: 600;
}

.audio-row .muted {
    white-space: normal;
    overflow-wrap: anywhere;
}

.review-admin.audio-mode.video-list-mode .audio-row .audio-track-main,
.review-client.audio-mode.video-list-mode .audio-row .audio-track-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.review-admin.audio-mode.video-list-mode .audio-row .audio-top-meta,
.review-client.audio-mode.video-list-mode .audio-row .audio-top-meta {
    max-width: none;
    width: 100%;
    min-width: 0;
}

.review-admin.audio-mode.video-list-mode .audio-row .audio-top-label,
.review-client.audio-mode.video-list-mode .audio-row .audio-top-label,
.review-admin.audio-mode.video-list-mode .audio-row .audio-mix-cue-row,
.review-client.audio-mode.video-list-mode .audio-row .audio-mix-cue-row,
.review-admin.audio-mode.video-list-mode .audio-row .audio-time-elapsed,
.review-client.audio-mode.video-list-mode .audio-row .audio-time-elapsed {
    display: none !important;
}

.review-admin.audio-mode.video-list-mode .audio-row .audio-waveform-row,
.review-client.audio-mode.video-list-mode .audio-row .audio-waveform-row {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 0;
    order: 3;
}

.review-admin.audio-mode.video-list-mode .audio-row .audio-waveform-row .audio-waveform,
.review-client.audio-mode.video-list-mode .audio-row .audio-waveform-row .audio-waveform {
    display: none !important;
}

.review-admin.audio-mode.video-list-mode .audio-row .audio-inline-actions .soft-btn,
.review-client.audio-mode.video-list-mode .audio-row .audio-inline-actions .soft-btn {
    min-width: 92px;
    min-height: 34px;
    padding: 8px 14px;
}

.review-admin.audio-mode.video-list-mode .audio-row .audio-track-row,
.review-client.audio-mode.video-list-mode .audio-row .audio-track-row {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.review-admin.audio-mode.video-list-mode .audio-row .audio-track-row.has-reset-control,
.review-client.audio-mode.video-list-mode .audio-row .audio-track-row.has-reset-control {
    grid-template-columns: auto auto minmax(0, 1fr);
}

.review-admin.audio-mode.video-list-mode .audio-row .audio-play-toggle,
.review-client.audio-mode.video-list-mode .audio-row .audio-play-toggle {
    width: 36px;
    height: 36px;
}

.review-admin.audio-mode.video-list-mode .audio-row .audio-top-title,
.review-client.audio-mode.video-list-mode .audio-row .audio-top-title {
    font-size: 0.98rem;
    font-weight: 400;
}

.review-admin.audio-mode.video-list-mode .audio-row .audio-time-row,
.review-client.audio-mode.video-list-mode .audio-row .audio-time-row {
    margin-left: 0;
    width: auto;
    max-width: none;
    font-size: 0.95rem;
    color: #6f8198;
    justify-content: flex-end;
    order: 2;
}

.review-admin.audio-mode.video-list-mode .audio-row .audio-time-total,
.review-client.audio-mode.video-list-mode .audio-row .audio-time-total {
    margin-left: 0;
    font-weight: 400;
}

.audio-row.is-generated-mix .card-meta {
    background: #fdfbfe;
    border-color: #caa9d8;
}

.audio-row.is-generated-mix .clip-title {
    color: #7f4f97;
}

.audio-row.is-generated-mix .audio-format-chip {
    border-color: #c193ce;
    color: #7f4f97;
    background: rgba(193, 147, 206, 0.5);
}

.audio-row.is-generated-mix .audio-waveform-base {
    background: #dac5e6;
}

.audio-row.is-generated-mix .audio-waveform-base span {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.7);
}

.audio-row.is-generated-mix .audio-waveform-progress span {
    background: #8f4bb6;
}

.audio-mix-cue-row {
    margin-top: 3px;
    position: relative;
    height: 22px;
    padding: 0 10px;
    font-size: 0.84rem;
    color: #6d577a;
    overflow: visible;
}

.audio-mix-cue-item {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    white-space: nowrap;
    transition: color 120ms ease, text-shadow 120ms ease, font-weight 120ms ease;
}

.audio-mix-cue-item.is-origin {
    transform: none;
}

.audio-mix-cue-item.is-end {
    transform: translateX(-100%);
}

.audio-mix-cue-item strong {
    color: #7f4f97;
    font-weight: 600;
    margin-right: 4px;
}

.audio-mix-cue-item.is-active {
    color: #61337a;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(154, 87, 188, 0.38);
}

.audio-mix-cue-item.is-active strong {
    color: #733f93;
    text-shadow: 0 0 10px rgba(154, 87, 188, 0.45);
}

.audio-card-actions {
    display: inline-grid;
    grid-template-columns: repeat(4, minmax(96px, 1fr));
    gap: 8px;
    width: min(440px, 100%);
}

.audio-card-actions .soft-btn {
    width: 100%;
    min-height: 38px;
    justify-content: center;
}

.audio-top-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-width: 0;
    width: 100%;
    max-width: calc(100% - 114px);
    font-size: 0.92rem;
    font-weight: 600;
    color: #5d6f87;
    line-height: 1.2;
}

.audio-top-title {
    display: block;
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #31465f;
    font-size: 0.821rem;
    font-weight: 600;
}

.audio-top-divider {
    color: #5d6f87;
    font-weight: 500;
}

.audio-top-label {
    flex: 1 1 0;
    color: #6f8198;
    font-weight: 400;
    font-size: 0.78rem;
    white-space: nowrap;
    text-align: right;
}

.audio-waveform-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.audio-waveform-row .audio-waveform {
    flex: 1 1 auto;
    min-width: 0;
}

.audio-inline-actions {
    flex: 0 0 auto;
    display: grid;
    gap: 8px;
    justify-items: end;
}

.audio-inline-actions .soft-btn {
    width: auto;
    min-width: 104px;
    min-height: 38px;
    justify-content: center;
}

.review-admin[data-project-mode="audio"] .audio-inline-actions {
    position: relative;
    align-self: center;
}

.review-admin[data-project-mode="audio"] .audio-inline-actions .edit-track-btn {
    grid-row: 1;
}

.review-admin[data-project-mode="audio"] .video-grid .clip-card.audio-row.is-playback-mode-active {
    border-color: #ccd8e6;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
    box-shadow: none;
}

.review-admin[data-project-mode="audio"] .video-grid .clip-card.audio-row.is-audio-keyboard-target:not(.is-playback-mode-active) {
    border-color: #ccd8e6;
    background: #ffffff;
    box-shadow: none;
    overflow: hidden;
}

.review-admin[data-project-mode="audio"] .video-grid .clip-card.audio-row.is-audio-keyboard-target:not(.is-playback-mode-active) .card-meta {
    position: relative;
    z-index: 0;
}

.review-admin[data-project-mode="audio"] .video-grid .clip-card.audio-row.is-audio-keyboard-target:not(.is-playback-mode-active) .card-meta::before {
    content: "";
    position: absolute;
    top: 76px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    background: linear-gradient(180deg, rgba(233, 243, 255, 0.42) 0%, rgba(233, 243, 255, 0.78) 100%);
    pointer-events: none;
}

.review-admin[data-project-mode="audio"] .video-grid .clip-card.audio-row.is-audio-keyboard-target:not(.is-playback-mode-active) .audio-track-row,
.review-admin[data-project-mode="audio"] .video-grid .clip-card.audio-row.is-audio-keyboard-target:not(.is-playback-mode-active) .audio-track-media {
    position: relative;
    z-index: 1;
}

.review-admin[data-project-mode="audio"] .audio-row.is-selected .card-meta {
    background: transparent;
}

.review-admin[data-project-mode="audio"] .video-grid .clip-card.audio-row.is-selected {
    border-color: var(--line);
    box-shadow: var(--shadow);
}

.review-admin[data-project-mode="audio"] .video-grid .clip-card.audio-row .audio-waveform {
    background: #ffffff;
    border: 1px solid #d2d9e3;
}

.review-admin[data-project-mode="audio"] .video-grid .clip-card.audio-row .audio-waveform-base {
    opacity: 1;
}

.review-admin[data-project-mode="audio"] .video-grid .clip-card.audio-row .audio-waveform-base span {
    background: #d9dfe7;
}

.review-admin[data-project-mode="audio"] .video-grid .clip-card.audio-row .audio-waveform-progress span,
.review-admin[data-project-mode="audio"] .video-grid .clip-card.audio-row.is-playback-mode-active .audio-waveform-progress span {
    background: #a9c4e8;
}

.review-admin[data-project-mode="audio"] .video-grid .clip-card.audio-row.is-audio-queued-target .audio-top-meta {
    opacity: 1;
}

.review-admin[data-project-mode="audio"] .video-grid .clip-card.audio-row.is-audio-queued-target .audio-waveform-progress span {
    background: #a9c4e8;
    opacity: 0.5;
}

.review-admin[data-project-mode="audio"] .audio-track-delete-btn {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    width: 32px;
    min-width: 32px;
    height: 24px;
    min-height: 24px;
    padding: 0;
    border-radius: 8px;
    border-color: #f0b8bb;
    color: #cf3d42;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1;
}

.review-admin[data-project-mode="audio"] .audio-track-delete-btn:hover,
.review-admin[data-project-mode="audio"] .audio-track-delete-btn:focus,
.review-admin[data-project-mode="audio"] .audio-track-delete-btn:focus-visible {
    border-color: #e28a8e;
    color: #c53338;
    background: #fff;
}

.review-admin[data-project-mode="audio"] .audio-main-workspace.is-playlist-open .audio-row .audio-track-delete-btn,
.review-admin.audio-mode.video-list-mode .audio-row .audio-track-delete-btn {
    width: 32px;
    min-width: 32px;
    height: 24px;
    min-height: 24px;
    justify-self: end;
}

.review-admin[data-project-mode="audio"] .audio-main-workspace.is-playlist-open .audio-row .audio-inline-actions .audio-track-delete-btn,
.review-admin.audio-mode.video-list-mode .audio-row .audio-inline-actions .audio-track-delete-btn {
    width: 32px;
    min-width: 32px;
    height: 24px;
    min-height: 24px;
    padding: 0;
}

.audio-top-meta .audio-commented-pill-inline {
    height: 30px;
    min-height: 30px;
    min-width: 84px;
    padding: 0 10px;
    font-size: 0.72rem;
    font-weight: 500;
    border-color: #f3b2bc;
    color: #cf2e42;
    background: #ffffff;
}

.audio-top-meta .audio-commented-pill-inline:hover,
.audio-top-meta .audio-commented-pill-inline:focus,
.audio-top-meta .audio-commented-pill-inline:focus-visible {
    border-color: #e894a2;
    color: #c2273b;
    background: #ffffff;
}

.audio-track-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
}

.audio-track-row.has-reset-control {
    grid-template-columns: auto auto minmax(0, 1fr);
}

.audio-play-toggle {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 2px solid #d0dae6;
    background: #fff;
    color: #142338;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex: 0 0 auto;
}

.review-admin.audio-mode .audio-reset-start-btn,
.review-client.audio-mode .audio-reset-start-btn,
.client-site-presentation .audio-reset-start-btn,
.video-dialog.audio-dialog .audio-reset-start-btn,
.review-client.preview-page.audio-mode.dashboard-project-preview .audio-reset-start-btn {
    width: 29px;
    height: 29px;
    border-radius: 999px;
    border: 1.5px solid #d0dae6;
    background: #fff;
    color: #5f728d;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex: 0 0 auto;
}

.review-admin.audio-mode .audio-reset-start-btn svg,
.review-client.audio-mode .audio-reset-start-btn svg,
.client-site-presentation .audio-reset-start-btn svg,
.video-dialog.audio-dialog .audio-reset-start-btn svg,
.review-client.preview-page.audio-mode.dashboard-project-preview .audio-reset-start-btn svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.review-admin.audio-mode .audio-reset-start-btn:hover,
.review-admin.audio-mode .audio-reset-start-btn:focus,
.review-admin.audio-mode .audio-reset-start-btn:focus-visible,
.review-admin.audio-mode .audio-reset-start-btn:active,
.review-client.audio-mode .audio-reset-start-btn:hover,
.review-client.audio-mode .audio-reset-start-btn:focus,
.review-client.audio-mode .audio-reset-start-btn:focus-visible,
.review-client.audio-mode .audio-reset-start-btn:active,
.client-site-presentation .audio-reset-start-btn:hover,
.client-site-presentation .audio-reset-start-btn:focus,
.client-site-presentation .audio-reset-start-btn:focus-visible,
.client-site-presentation .audio-reset-start-btn:active,
.video-dialog.audio-dialog .audio-reset-start-btn:hover,
.video-dialog.audio-dialog .audio-reset-start-btn:focus,
.video-dialog.audio-dialog .audio-reset-start-btn:focus-visible,
.video-dialog.audio-dialog .audio-reset-start-btn:active,
.review-client.preview-page.audio-mode.dashboard-project-preview .audio-reset-start-btn:hover,
.review-client.preview-page.audio-mode.dashboard-project-preview .audio-reset-start-btn:focus,
.review-client.preview-page.audio-mode.dashboard-project-preview .audio-reset-start-btn:focus-visible,
.review-client.preview-page.audio-mode.dashboard-project-preview .audio-reset-start-btn:active {
    background: #fff !important;
    color: #142338 !important;
    border-color: #d0dae6 !important;
    box-shadow: none !important;
}

.audio-play-toggle:hover,
.audio-play-toggle:focus,
.audio-play-toggle:focus-visible,
.audio-play-toggle:active {
    background: #fff !important;
    color: #142338 !important;
    border-color: #d0dae6 !important;
    box-shadow: none !important;
}

.audio-track-main {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.audio-track-main > .title-row {
    padding-left: 0;
}

.audio-row .card-meta > .title-row:last-of-type {
    padding-left: 58px;
}

.audio-format-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.audio-comment-chip-btn {
    cursor: pointer;
    background: #ffffff;
}

.audio-card-title-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.audio-card-title-actions .audio-commented-pill-inline {
    height: 26px;
    min-height: 26px;
    min-width: 78px;
    padding: 0 9px;
    border-radius: 999px;
    border: 1px solid #f3b2bc;
    background: #ffffff;
    color: #cf2e42;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.audio-waveform {
    --progress: 0%;
    --progress-x: 0px;
    position: relative;
    height: 42px;
    border-radius: 8px;
    background: #f3f7fc;
    overflow: hidden;
    cursor: pointer;
}

.audio-waveform-base,
.audio-waveform-progress {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(var(--wave-bars, 320), minmax(1px, 1fr));
    align-items: center;
    gap: 0;
    padding: 8px 10px;
}

.audio-waveform-base {
    opacity: 0.28;
}

.audio-waveform-base span,
.audio-waveform-progress span {
    display: block;
    height: var(--h, 55%);
    border-radius: 999px;
    align-self: center;
}

.audio-waveform-base span {
    background: #0b62d6;
}

.audio-waveform-progress {
    width: 100%;
    overflow: visible;
    clip-path: inset(0 calc(100% - var(--progress-x, 0px)) 0 0);
}

.audio-waveform-progress span {
    background: #0b62d6;
}

.audio-comment-marker-layer {
    position: absolute;
    inset: 8px 10px;
    pointer-events: none;
    z-index: 6;
}

.audio-comment-marker {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    margin-top: -6px;
    border: 0;
    border-radius: 999px;
    background: #bc97cb;
    border: 2px solid #bc97cb;
    box-shadow: 0 2px 7px rgba(188, 151, 203, 0.28);
    z-index: 6;
    cursor: pointer;
    padding: 0;
    pointer-events: auto;
}

.audio-comment-marker:hover,
.audio-comment-marker:focus,
.audio-comment-marker:focus-visible {
    background: #b58ac6;
    border-color: #b58ac6;
    box-shadow: 0 3px 9px rgba(188, 151, 203, 0.34);
    outline: none;
}

.audio-mix-divider-layer {
    position: absolute;
    inset: 8px 10px;
    pointer-events: none;
    z-index: 4;
}

.audio-mix-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    margin-left: -1px;
    border-radius: 999px;
    background: rgba(127, 79, 151, 0.68);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.audio-mix-divider.is-active {
    width: 3px;
    margin-left: -1.5px;
    background: #8f4bb6;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.65), 0 0 10px rgba(145, 77, 185, 0.55);
}

.audio-time-row {
    display: flex;
    position: relative;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    max-width: calc(100% - 114px);
    font-size: 0.78rem;
    color: var(--muted);
}

.audio-time-total {
    margin-left: auto;
}

.audio-track-media {
    display: none;
}

.dialog-audio-preview {
    width: 100%;
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 4px 0;
}

.dialog-audio-preview .audio-time-row {
    max-width: 100%;
    justify-content: space-between;
}

.dialog-audio-preview .audio-time-total {
    margin-left: 0;
}

.dialog-audio-preview[hidden] {
    display: none !important;
}

.video-dialog.audio-dialog .dialog-media-shell {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 8px;
}

.video-dialog.audio-dialog #dialog-audio {
    display: none !important;
}

.video-dialog.audio-dialog .audio-track-row {
    align-items: center;
}

.video-dialog.audio-dialog .audio-play-toggle {
    width: 52px;
    height: 52px;
}

.video-dialog.audio-dialog .audio-waveform {
    height: 50px;
}

.review-client[data-project-mode="audio"] .video-dialog.audio-dialog #dialog-title {
    display: none;
}

.review-client[data-project-mode="audio"] .video-dialog.audio-dialog .dialog-head {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding-left: 12px;
    padding-right: 12px;
}

.review-client[data-project-mode="audio"] .video-dialog.audio-dialog .dialog-head-copy {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-width: 0;
}

.review-client[data-project-mode="audio"] .video-dialog.audio-dialog .dialog-head-meta {
    width: 100%;
    margin: 0;
    text-align: left;
    justify-self: start;
}

.review-client[data-project-mode="audio"] .video-dialog.audio-dialog .dialog-audio-preview .clip-title {
    font-size: 0.8rem;
    line-height: 1.25;
}

.review-client[data-project-mode="audio"] .video-dialog.audio-dialog .dialog-audio-preview .audio-track-row {
    column-gap: 10px;
    row-gap: 8px;
}

.review-client[data-project-mode="audio"] .video-dialog.audio-dialog .dialog-audio-preview .audio-play-toggle {
    width: 39px;
    height: 39px;
    border-width: 1.7px;
}

.review-client[data-project-mode="audio"] .video-dialog.audio-dialog .dialog-audio-preview .audio-waveform {
    height: 36px;
}

.review-client[data-project-mode="audio"] .video-dialog.audio-dialog .audio-waveform {
    background: #ffffff;
    border: 1px solid #d2d9e3;
}

.review-client[data-project-mode="audio"] .video-dialog.audio-dialog .audio-waveform-base {
    opacity: 1;
}

.review-client[data-project-mode="audio"] .video-dialog.audio-dialog .audio-waveform-base span {
    background: #d9dfe7;
}

.review-client[data-project-mode="audio"] .video-dialog.audio-dialog .audio-waveform-progress span {
    background: #a9c4e8;
}

.video-dialog.audio-dialog .dialog-body {
    grid-template-columns: 1fr;
    gap: 10px;
}

.video-dialog.audio-dialog .preview-wrap {
    display: grid;
    gap: 10px;
}

.video-dialog.audio-dialog .thumb-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.video-dialog.audio-dialog .thumb-form > * {
    width: auto;
    min-width: 0;
}

.video-dialog.audio-dialog .thumb-form .soft-btn,
.video-dialog.audio-dialog .thumb-form .dialog-download,
.video-dialog.audio-dialog #close-dialog {
    padding: 0 16px;
    height: 40px;
    min-height: 40px;
    font-size: 0.92rem;
    font-weight: 400;
    border-radius: 14px;
    line-height: 1;
    white-space: nowrap;
}

.video-dialog.audio-dialog .comments-wrap {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
    grid-template-areas:
        "title title"
        "list form";
    grid-template-rows: auto minmax(0, 1fr);
    align-items: stretch;
    gap: 12px;
}

.video-dialog.audio-dialog .comments-list {
    grid-area: list;
    min-height: 0;
    height: 100%;
    max-height: min(44vh, 380px);
}

.video-dialog.audio-dialog .comments-wrap h4 {
    grid-area: title;
    margin: 0;
}

.video-dialog.audio-dialog .comment-form {
    grid-area: form;
    display: grid;
    gap: 10px;
    align-content: stretch;
    grid-template-rows: auto minmax(120px, 1fr) auto;
    height: 100%;
    align-self: stretch;
}

.video-dialog.audio-dialog .comment-form .name-highlight {
    display: none;
}

.video-dialog.audio-dialog .comment-form #comment-author,
.video-dialog.audio-dialog .comment-form #comment-message,
.video-dialog.audio-dialog .comment-form button[type="submit"] {
    width: 100%;
}

.video-dialog.audio-dialog .comment-form #comment-message {
    min-height: 0;
    height: 100%;
    resize: vertical;
}

.review-client[data-project-mode="audio"] .video-dialog.audio-dialog {
    border-color: #d2d9e3;
    outline: none;
    box-shadow: 0 22px 52px rgba(18, 32, 47, 0.18);
}

.review-client[data-project-mode="audio"] .video-dialog.audio-dialog:focus,
.review-client[data-project-mode="audio"] .video-dialog.audio-dialog:focus-visible {
    outline: none;
    border-color: #d2d9e3;
}

.review-client[data-project-mode="audio"] .video-dialog.audio-dialog .preview-wrap,
.review-client[data-project-mode="audio"] .video-dialog.audio-dialog .comments-wrap,
.review-client[data-project-mode="audio"] .video-dialog.audio-dialog .comments-list,
.review-client[data-project-mode="audio"] .video-dialog.audio-dialog .comment-form #comment-author,
.review-client[data-project-mode="audio"] .video-dialog.audio-dialog .comment-form #comment-message,
.review-client[data-project-mode="audio"] .video-dialog.audio-dialog .comment-form button[type="submit"] {
    border-color: #d2d9e3;
}

.review-client[data-project-mode="audio"] .video-dialog.audio-dialog .comment-form #comment-author:focus,
.review-client[data-project-mode="audio"] .video-dialog.audio-dialog .comment-form #comment-author:focus-visible,
.review-client[data-project-mode="audio"] .video-dialog.audio-dialog .comment-form #comment-message:focus,
.review-client[data-project-mode="audio"] .video-dialog.audio-dialog .comment-form #comment-message:focus-visible {
    outline: none;
    border-color: #a9c4e8;
    box-shadow: 0 0 0 3px rgba(169, 196, 232, 0.24);
}

.video-dialog.audio-dialog #close-dialog {
    min-width: 0;
}

.review-client[data-project-mode="audio"] .video-dialog.audio-dialog #close-dialog {
    height: 34px;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 0.78rem;
}

.video-dialog.audio-dialog #dialog-delete-btn {
    color: #d61f1f !important;
    border-color: #d61f1f !important;
    background: #fff !important;
}

.video-dialog.audio-dialog #dialog-delete-btn:hover,
.video-dialog.audio-dialog #dialog-delete-btn:focus,
.video-dialog.audio-dialog #dialog-delete-btn:focus-visible {
    color: #d61f1f !important;
    border-color: #d61f1f !important;
    background: #fff5f5 !important;
}

.audio-play-toggle .play-icon,
.audio-play-toggle .pause-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: block;
}

.grid-play-btn {
    position: absolute;
    left: 50%;
    bottom: 15%;
    transform: translateX(-50%);
    width: auto;
    height: auto;
    border-radius: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    display: grid;
    place-items: center;
    z-index: 4;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
    padding: 0;
}

.grid-play-btn:hover,
.grid-play-btn:focus,
.grid-play-btn:focus-visible,
.grid-play-btn:active {
    background: transparent !important;
    border: 0 !important;
    color: #fff !important;
    box-shadow: none !important;
}

.grid-play-btn .play-icon,
.grid-play-btn .pause-icon,
.dialog-play-btn .play-icon {
    display: block;
    width: 44px;
    height: 44px;
    fill: #fff;
}

video::-webkit-media-controls-overlay-play-button {
    display: none !important;
}

.grid-play-btn .pause-icon {
    width: 38px;
    height: 38px;
}

.grid-play-btn.playing {
    opacity: 0.9;
}

.clip-card.is-playing .grid-play-btn {
    opacity: 0;
    pointer-events: none;
}

.card-meta {
    padding: 16px 18px 18px;
    display: grid;
    gap: 8px;
}

.title-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
}

.card-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
}

.card-commented-pill {
    justify-self: end;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    min-width: 84px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid #f3b2bc;
    background: #ffffff;
    color: #cf2e42;
    font-size: 0.648rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.clip-title,
.card-meta h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
}

.card-title-row .clip-title {
    grid-column: 1 / 2;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    white-space: normal;
    word-break: break-word;
}

.card-title-row .clip-title-input {
    grid-column: 1 / 2;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.project-card-video-controls {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    width: 100%;
}

.project-card-video-controls.no-caption-menu {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.project-card-video-controls .project-card-video-toggle {
    width: 30px;
    height: 28px;
    justify-self: start;
    border-radius: 8px;
    border-color: #d8e1ec;
    background: #ffffff;
    color: #12202f;
}

.project-card-video-controls .project-card-video-seek {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    max-width: none;
    min-width: 0;
    accent-color: #7ea8d7;
    background: transparent;
    border: 0;
    padding: 0;
    line-height: 1;
    height: 14px;
    min-height: 14px;
    margin: 0;
    align-self: center;
    display: block;
}

.project-card-video-controls .project-card-video-seek::-webkit-slider-runnable-track {
    height: 4px;
    background: #dfe8f2;
    border-radius: 999px;
}

.project-card-video-controls .project-card-video-seek::-moz-range-track {
    height: 4px;
    background: #dfe8f2;
    border-radius: 999px;
}

.project-card-video-controls .project-card-video-seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    margin-top: -5px; /* centers 14px thumb on 4px track */
    background: #b5bfcc;
    border: 0;
    border-radius: 50%;
}

.project-card-video-controls .project-card-video-seek::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #b5bfcc;
    border: 0;
    border-radius: 50%;
}

.project-card-video-controls .project-card-video-time {
    color: #12202f;
    min-width: 78px;
    font-size: 0.76rem;
    font-weight: 400;
    text-align: right;
    justify-self: end;
    width: auto;
    white-space: nowrap;
}

.preview-page .project-card-video-controls .project-card-video-seek {
    accent-color: #b5bfcc;
}

.preview-page .project-card-video-controls .project-card-video-seek::-webkit-slider-thumb {
    width: 12px;
    height: 12px;
    margin-top: -4px; /* centers 12px thumb on 4px track */
    background: #b5bfcc;
}

.preview-page .project-card-video-controls .project-card-video-seek::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #b5bfcc;
    border: 0;
    border-radius: 50%;
}

.project-card-video-controls .project-card-video-fullscreen-btn {
    width: 30px;
    height: 28px;
    min-width: 30px;
    min-height: 28px;
    justify-self: end;
    border: 1px solid #d8e1ec;
    background: #ffffff;
    border-radius: 8px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #12202f;
}

.project-card-video-controls .project-card-video-fullscreen-btn:hover,
.project-card-video-controls .project-card-video-fullscreen-btn:focus,
.project-card-video-controls .project-card-video-fullscreen-btn:focus-visible,
.project-card-video-controls .project-card-video-fullscreen-btn:active {
    background: #edf4fb;
}

.cc-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 20px;
    padding: 0 7px;
    border: 1px solid rgba(17, 24, 39, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
}

.cc-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.cc-menu-trigger {
    min-width: 34px;
    height: 28px;
    padding-inline: 8px;
    font-weight: 700;
}

.cc-menu-popover {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    z-index: 40;
    min-width: 130px;
    max-width: 220px;
    display: grid;
    gap: 4px;
    padding: 6px;
    border: 1px solid rgba(17, 24, 39, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.cc-menu-option {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    white-space: nowrap;
}

.dialog-subtitles-panel {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.92);
}

.dialog-subtitles-head,
.dialog-subtitle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dialog-subtitles-list {
    display: grid;
    gap: 8px;
}

.dialog-subtitle-row {
    padding: 8px;
    border: 1px solid rgba(17, 24, 39, 0.1);
    border-radius: 8px;
    background: #fff;
}

.dialog-subtitle-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.dialog-subtitle-copy strong,
.dialog-subtitle-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-card-video-fullscreen-btn .site-present-video-fullscreen-icon {
    width: 20px;
    height: 20px;
    display: block;
    object-fit: contain;
}

.clip-inline-video-controls {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
    gap: 10px;
}

.clip-inline-video-controls .cc-menu,
.client-site-presentation .site-present-video-controls .cc-menu {
    justify-self: end;
}

.clip-inline-video-controls .cc-menu-trigger,
.client-site-presentation .site-present-video-controls .cc-menu-trigger {
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    height: 28px;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
}

.review-client[data-project-mode="video"] .clip-card .card-meta .clip-inline-video-controls {
    margin-top: 0;
    margin-bottom: 2px;
}

.clip-inline-video-controls .project-card-video-toggle {
    width: 30px;
    height: 28px;
    min-width: 30px;
    min-height: 28px;
    padding: 0;
    border-radius: 10px;
    font-size: 0.77rem;
    line-height: 1;
    display: grid;
    place-items: center;
}

.preview-page .clip-inline-video-controls .project-card-video-toggle {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 11px;
    align-self: center;
}

.clip-inline-video-controls .project-card-video-toggle .play-icon,
.clip-inline-video-controls .project-card-video-toggle .pause-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
    display: block;
}

.clip-inline-video-controls .project-card-video-seek {
    align-self: center;
}

.clip-inline-video-controls .project-card-video-time {
    font-size: 0.86rem;
    line-height: 1;
    min-width: 78px;
    text-align: right;
    font-weight: 400;
    white-space: nowrap;
}

.clip-inline-video-controls .project-card-video-fullscreen-btn {
    width: 30px;
    height: 28px;
    min-width: 30px;
    min-height: 28px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid #d8e1ec;
    background: #ffffff;
    color: #12202f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.clip-inline-video-controls .project-card-video-fullscreen-btn:hover,
.clip-inline-video-controls .project-card-video-fullscreen-btn:focus,
.clip-inline-video-controls .project-card-video-fullscreen-btn:focus-visible {
    background: #edf4fb;
}

.preview-page .clip-inline-video-controls .project-card-video-fullscreen-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 11px;
}

.review-client.preview-page.dashboard-quick-preview[data-project-mode="video"] .clip-inline-video-controls .cc-menu-trigger {
    height: 36px;
    min-height: 36px;
    border-radius: 11px;
}

.review-client.preview-page[data-project-mode="video"][data-share-alias]:not([data-share-alias=""]) .clip-inline-video-controls .cc-menu-trigger {
    height: 36px;
    min-height: 36px;
    border-radius: 11px;
}

.review-client[data-project-mode="video"] .clip-inline-video-controls .project-card-video-toggle .play-icon,
.review-client[data-project-mode="video"] .clip-inline-video-controls .project-card-video-toggle .pause-icon,
.client-site-presentation .clip-inline-video-controls .project-card-video-toggle .play-icon,
.client-site-presentation .clip-inline-video-controls .project-card-video-toggle .pause-icon {
    width: 12px;
    height: 12px;
}

.review-client[data-project-mode="video"] .clip-inline-video-controls .project-card-video-fullscreen-btn .site-present-video-fullscreen-icon,
.client-site-presentation .clip-inline-video-controls .project-card-video-fullscreen-btn .site-present-video-fullscreen-icon {
    width: 12px;
    height: 12px;
}

.review-client.preview-page.dashboard-quick-preview[data-project-mode="video"] .clip-inline-video-controls .project-card-video-fullscreen-btn .site-present-video-fullscreen-icon {
    width: 19.5px;
    height: 19.5px;
}

.review-client.preview-page[data-project-mode="video"][data-share-alias]:not([data-share-alias=""]) .clip-inline-video-controls .project-card-video-fullscreen-btn .site-present-video-fullscreen-icon {
    width: 20.3px !important;
    height: 20.3px !important;
}

.review-client[data-project-mode="video"] .clip-card .card-meta {
    gap: 10px;
    padding: 14px 30px 16px;
}

.review-client[data-project-mode="video"] .clip-card .title-row {
    align-items: center;
}

.review-client[data-project-mode="video"] .clip-card .clip-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.review-client[data-project-mode="video"] .clip-card .card-actions .soft-btn {
    min-height: 27px;
    padding: 0 13px;
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.1;
}

.review-client[data-project-mode="video"] .clip-card .card-actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.client-site-presentation .site-present-section.mode-video .site-present-video-card .card-actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.review-client[data-project-mode="video"] .clip-card .card-actions .video-track-action-icon,
.client-site-presentation .site-present-section.mode-video .site-present-video-card .card-actions .video-track-action-icon {
    width: 31px;
    min-width: 31px;
    height: 27px;
    min-height: 27px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.review-client[data-project-mode="video"] .clip-card .card-actions .video-track-action-icon svg,
.client-site-presentation .site-present-section.mode-video .site-present-video-card .card-actions .video-track-action-icon svg {
    width: 14px;
    height: 14px;
}

.review-client[data-project-mode="video"] .clip-card .card-actions .video-track-action-icon.download-file-btn svg,
.client-site-presentation .site-present-section.mode-video .site-present-video-card .card-actions .video-track-action-icon.download-file-btn svg {
    opacity: 0.75;
}

.review-client[data-project-mode="video"] .clip-card .card-actions .video-track-action-icon.delete-file-btn,
.client-site-presentation .site-present-section.mode-video .site-present-video-card .card-actions .video-track-action-icon.delete-file-btn {
    color: var(--danger);
    border-color: #e8b8b8;
}

.review-client.preview-page[data-project-mode="video"][data-share-alias]:not([data-share-alias=""]) .clip-card .card-actions .video-track-action-icon.delete-file-btn {
    width: 36px;
    min-width: 36px;
}

.review-client[data-project-mode="video"] .clip-card .thumb-box {
    position: relative;
}

.review-client[data-project-mode="video"] .clip-card .card-commented-thumb-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    cursor: pointer;
    height: 27px;
    min-height: 27px;
    min-width: 84px;
    padding: 0 11px;
    border-radius: 10px;
    border: 1px solid #ef9daa;
    background: rgba(255, 255, 255, 0.5);
    color: #cf2e42;
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1;
}

.client-site-presentation .site-present-section.mode-video .site-present-video-card .site-video-comment-overlay-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    cursor: pointer;
    height: 27px;
    min-height: 27px;
    min-width: 84px;
    padding: 0 11px;
    border-radius: 10px;
    border: 1px solid #ef9daa;
    background: rgba(255, 255, 255, 0.5);
    color: #cf2e42;
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1;
}

.review-client[data-project-mode="video"] .clip-card .card-commented-thumb-btn:hover,
.review-client[data-project-mode="video"] .clip-card .card-commented-thumb-btn:focus,
.review-client[data-project-mode="video"] .clip-card .card-commented-thumb-btn:focus-visible,
.client-site-presentation .site-present-section.mode-video .site-present-video-card .site-video-comment-overlay-btn:hover,
.client-site-presentation .site-present-section.mode-video .site-present-video-card .site-video-comment-overlay-btn:focus,
.client-site-presentation .site-present-section.mode-video .site-present-video-card .site-video-comment-overlay-btn:focus-visible {
    background: rgba(255, 255, 255, 0.5);
    border-color: #ef9daa;
}

.review-client .comment-head-main {
    width: 100%;
    justify-content: space-between;
}

.review-client .comment-meta {
    margin-left: auto;
    text-align: right;
}

.review-client[data-project-mode="video"] .clip-card .card-actions .card-commented-pill-inline {
    min-height: 27px;
    height: 27px;
    min-width: 0;
    padding: 0 11px;
    border-radius: 10px;
    font-size: 0.76rem;
}

.review-client.audio-mode .card-actions .card-commented-pill-inline {
    min-height: 38px;
    height: 38px;
    min-width: 0;
    border-radius: 10px;
    font-size: 0.78rem;
}

.review-admin[data-project-mode="video"] .grid-play-btn,
.review-client[data-project-mode="video"] .grid-play-btn {
    display: none;
}

.review-admin[data-project-mode="video"] .card-actions-below,
.review-client[data-project-mode="video"] .card-actions-below {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-title-row.is-editing .clip-title {
    display: none;
}

.card-title-row.is-editing .clip-title-input {
    display: block;
}

.card-actions {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.card-actions.audio-card-actions {
    display: inline-grid;
    grid-template-columns: repeat(4, minmax(96px, 1fr));
    gap: 8px;
    width: min(440px, 100%);
    align-items: stretch;
}

.card-actions.audio-card-actions .soft-btn {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    justify-content: center;
}

.review-client.audio-mode .audio-row .card-actions {
    display: inline-grid;
    grid-template-columns: repeat(3, minmax(96px, 1fr));
    gap: 8px;
    width: min(360px, 100%);
    align-items: stretch;
}

.review-client.audio-mode .audio-row .card-actions .soft-btn {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    justify-content: center;
}

.review-client.preview-page.audio-mode .clip-card .audio-meta-row {
    padding-left: 58px;
    align-items: flex-start;
}

.review-client.preview-page.audio-mode .video-grid .clip-card {
    width: 75%;
    max-width: 75%;
    margin-left: auto;
    margin-right: auto;
}

.review-client.preview-page.audio-mode.dashboard-project-preview .video-grid .clip-card {
    cursor: default;
}

.review-client.preview-page.audio-mode .clip-card .audio-track-row {
    grid-template-columns: auto auto minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 10px;
    row-gap: 8px;
    align-items: center;
}

.review-client.preview-page.audio-mode .clip-card .card-meta {
    padding: 12px 14px;
}

.review-client.preview-page.audio-mode .clip-card .clip-title {
    font-size: 0.8rem;
    line-height: 1.25;
}

.review-client.preview-page.audio-mode .clip-card .audio-track-main {
    display: contents;
}

.review-client.preview-page.audio-mode .clip-card .audio-track-main > .title-row {
    grid-column: 3;
    grid-row: 1;
}

.review-client.preview-page.audio-mode .clip-card .audio-waveform {
    grid-column: 3;
    grid-row: 2;
}

.review-client.preview-page.audio-mode .clip-card .audio-time-row {
    grid-column: 3;
    grid-row: 3;
}

.review-client.preview-page.audio-mode .clip-card .audio-play-toggle,
.review-client.preview-page.audio-mode .clip-card .audio-reset-start-btn {
    grid-row: 2;
    align-self: center;
}

.review-client.preview-page.audio-mode .clip-card .audio-play-toggle {
    width: 39px;
    height: 39px;
    border-width: 1.7px;
}

.review-client.preview-page.audio-mode .clip-card .audio-reset-start-btn {
    width: 25px;
    height: 25px;
    border-width: 1.3px;
}

.review-client.preview-page.audio-mode .clip-card .audio-reset-start-btn svg {
    width: 14px;
    height: 14px;
}

.review-client.preview-page.audio-mode .video-grid .clip-card.is-playback-mode-active {
    border-color: #ccd8e6;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
    box-shadow: none;
}

.review-client.preview-page.audio-mode .video-grid .clip-card.is-audio-queued-target:not(.is-playback-mode-active) {
    border-color: #ccd8e6;
    background: #ffffff;
    box-shadow: none;
    overflow: hidden;
}

.review-client.preview-page.audio-mode .video-grid .clip-card.is-audio-queued-target:not(.is-playback-mode-active) .card-meta {
    position: relative;
    z-index: 0;
}

.review-client.preview-page.audio-mode .video-grid .clip-card.is-audio-queued-target:not(.is-playback-mode-active) .card-meta::before {
    content: "";
    position: absolute;
    top: 76px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    background: linear-gradient(180deg, rgba(233, 243, 255, 0.42) 0%, rgba(233, 243, 255, 0.78) 100%);
    pointer-events: none;
}

.review-client.preview-page.audio-mode .video-grid .clip-card.is-audio-queued-target:not(.is-playback-mode-active) .audio-track-row,
.review-client.preview-page.audio-mode .video-grid .clip-card.is-audio-queued-target:not(.is-playback-mode-active) .audio-track-media {
    position: relative;
    z-index: 1;
}

.review-client.preview-page.audio-mode .video-grid .clip-card.is-audio-queued-target .title-row,
.review-client.preview-page.audio-mode .video-grid .clip-card.is-audio-queued-target .audio-waveform-base span {
    opacity: 1;
}

.review-client.preview-page.audio-mode .video-grid .clip-card.is-audio-queued-target .audio-waveform-progress span {
    background: #8fb7ec;
    opacity: 0.5;
}

.review-client.preview-page.audio-mode .video-grid .clip-card.is-playback-mode-active .audio-waveform-progress span {
    background: #8fb7ec;
}

.review-client.preview-page.audio-mode .clip-card .audio-waveform {
    width: 100%;
    max-width: 100%;
    height: 36px;
    background: #ffffff;
    border: 1px solid #d2d9e3;
}

.review-client.preview-page.audio-mode .clip-card .audio-waveform-base {
    opacity: 1;
}

.review-client.preview-page.audio-mode .clip-card .audio-waveform-base span {
    background: #d9dfe7;
}

.review-client.preview-page.audio-mode .clip-card .audio-waveform-progress span {
    background: #a9c4e8;
}

.review-client.preview-page.audio-mode .clip-card .audio-time-row {
    max-width: 100%;
}

.review-client.preview-page.audio-mode .clip-card .audio-file-meta {
    text-align: left;
}

.review-client.preview-page.audio-mode .clip-card .card-actions {
    display: inline-flex;
    width: auto;
}

.review-client.preview-page.audio-mode .clip-card .audio-comment-chip-btn {
    height: 25px;
    min-height: 25px;
    padding: 0 9px;
    border-radius: 9px;
    font-size: 0.68rem;
    font-weight: 400;
    line-height: 1;
}

.card-actions-below {
    margin-top: 2px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    gap: 8px;
}

.card-edit-icon-btn {
    width: 24px;
    height: 24px;
    border-radius: 7px;
}

.card-edit-icon-btn svg {
    width: 12px;
    height: 12px;
}

.card-actions-below .soft-btn {
    padding: 8px 10px;
    width: 100%;
}

.card-comment-block {
    display: grid;
    gap: 4px;
}

.card-comment-meta {
    font-size: 0.8rem;
    line-height: 1.3;
}

.move-video-panel {
    display: grid;
    gap: 10px;
}

.create-library-panel {
    gap: 12px;
}

.create-library-mode-pills {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.create-library-mode-pill,
.add-to-library-mode-pill {
    min-height: 40px;
}

.create-library-mode-pill.is-active,
.create-library-mode-pill[aria-pressed="true"],
.add-to-library-mode-pill.is-active,
.add-to-library-mode-pill[aria-pressed="true"] {
    background: #dbe8f7;
    border-color: #b9cee5;
    color: #1f3f5c;
}

.create-library-mode-pill[data-mode="video"].is-active,
.create-library-mode-pill[data-mode="video"][aria-pressed="true"],
.add-to-library-mode-pill[data-mode="video"].is-active,
.add-to-library-mode-pill[data-mode="video"][aria-pressed="true"] {
    background: #dbe8f7;
    border-color: #b9cee5;
    color: #1f3f5c;
}

.create-library-mode-pill[data-mode="photo"].is-active,
.create-library-mode-pill[data-mode="photo"][aria-pressed="true"],
.add-to-library-mode-pill[data-mode="photo"].is-active,
.add-to-library-mode-pill[data-mode="photo"][aria-pressed="true"] {
    background: #e8f3dd;
    border-color: #c7deaf;
    color: #365327;
}

.create-library-mode-pill[data-mode="audio"].is-active,
.create-library-mode-pill[data-mode="audio"][aria-pressed="true"],
.add-to-library-mode-pill[data-mode="audio"].is-active,
.add-to-library-mode-pill[data-mode="audio"][aria-pressed="true"] {
    background: #efe3f5;
    border-color: #d7b9e3;
    color: #5a3c67;
}

.create-library-mode-pill[data-mode="files"].is-active,
.create-library-mode-pill[data-mode="files"][aria-pressed="true"],
.add-to-library-mode-pill[data-mode="files"].is-active,
.add-to-library-mode-pill[data-mode="files"][aria-pressed="true"] {
    background: #f7efcc;
    border-color: #e6d598;
    color: #5a4a1f;
}

.add-to-library-target-select {
    max-height: 230px;
    overflow-y: auto;
}

.file-row.file-row-moved-marker {
    opacity: 0.94;
}

.file-row.file-row-moved-marker .file-row-main-files {
    gap: 2px;
}

.file-row.file-row-moved-marker .file-row-meta strong {
    color: #22364f;
}

.file-row-used-inline {
    color: #e33636;
    font: inherit;
}

.file-row-moved-pill {
    color: #2f4763;
    border-color: #b9cee5;
    background: #eef5fc;
}

.file-row-moved-pill:hover,
.file-row-moved-pill:focus,
.file-row-moved-pill:focus-visible {
    color: #22364f;
    border-color: #aac3de;
    background: #e4effa;
}

@media (max-width: 900px) {
    .create-library-mode-pills {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.name-highlight {
    font-size: 0.82rem;
    color: #2c4b66;
    font-weight: 600;
    background: #edf4fb;
    border: 1px solid #c6d6e8;
    border-radius: 8px;
    padding: 6px 8px;
}

.dialog-section-label {
    font-size: 0.82rem;
    color: #2c4b66;
    font-weight: 600;
}

#create-library-status.status-error,
#add-to-library-status.status-error {
    color: #c7392f;
    font-weight: 600;
}

.name-required-active {
    border-color: #c6d6e8 !important;
    box-shadow: 0 0 0 3px rgba(198, 214, 232, 0.35);
}

.muted {
    color: var(--muted);
    font-size: 0.88rem;
}

.empty-state {
    color: var(--muted);
}

.video-dialog {
    border: 0;
    border-radius: 16px;
    width: min(1100px, 96vw);
    padding: 0;
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.3);
}

.review-admin.files-mode .video-dialog,
.review-client.files-mode .video-dialog {
    max-height: min(96dvh, calc(100dvh - 16px));
    overflow: hidden;
}

.review-admin.files-mode .video-dialog .dialog-body,
.review-client.files-mode .video-dialog .dialog-body {
    max-height: calc(100dvh - 92px);
    overflow-y: auto;
}

.client-sites-dialog {
    width: min(1127px, 96vw);
}

.media-search-dialog {
    width: min(980px, 96vw);
}

.media-search-dialog .dialog-head {
    --portfolio-inline-action-height: calc(var(--dash-pill-height) * 0.9);
    --portfolio-inline-action-padding-x: calc(var(--dash-pill-padding-x) * 0.9);
    --portfolio-inline-action-radius: calc(var(--dash-pill-radius) * 0.9);
    --portfolio-inline-action-font-size: calc(var(--dash-pill-font-size) * 0.9);
}

.media-search-dialog .media-search-close-btn {
    min-width: var(--portfolio-inline-action-height);
}

.dashboard-sharepoints-dialog {
    width: min(1180px, 96vw);
}

.dashboard-sharepoints-dialog .dialog-head {
    align-items: center;
}

.dashboard-sharepoints-dialog .dashboard-sharepoints-close-btn {
    min-width: var(--portfolio-inline-action-height);
}

.client-sites-dialog .dialog-body {
    max-height: min(84vh, 860px);
    overflow: auto;
}

.portfolio-inline-dialog-body {
    max-height: none;
    overflow: visible;
}

.media-search-dialog .dialog-body {
    max-height: min(84vh, 860px);
    overflow: auto;
}

.dashboard-sharepoints-dialog .dialog-body {
    max-height: min(84vh, 860px);
    overflow: auto;
}

.dashboard-sharepoints-panel {
    display: grid;
    gap: 12px;
}

.dashboard-sharepoints-mode-pills {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
}

.dashboard-sharepoints-mode-pill {
    height: var(--dash-pill-height);
    min-height: var(--dash-pill-height);
    padding: 0 var(--dash-pill-padding-x) !important;
    border-radius: var(--dash-pill-radius) !important;
    font-family: "Avenir Next", "Segoe UI", sans-serif !important;
    font-size: calc(var(--dash-pill-font-size) * 0.9) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    background: #fff;
    color: var(--ink);
    border-color: #d2dbe5;
}

.dashboard-sharepoints-mode-pill.is-active {
    background: #edf4fb;
    border-color: #bdcce0;
    color: #2d415d;
}

.dashboard-sharepoints-mode-pill[data-mode="video"].is-active {
    background: #a8c3e6;
    border-color: #9ab5d8;
    color: #fff;
}

.dashboard-sharepoints-mode-pill[data-mode="photo"].is-active {
    background: #bfd6a8;
    border-color: #b1ca98;
    color: #fff;
}

.dashboard-sharepoints-mode-pill[data-mode="files"].is-active {
    background: #e3c15a;
    border-color: #d8b545;
    color: #fff;
}

.dashboard-sharepoints-mode-pill[data-mode="audio"].is-active {
    background: #d59fd6;
    border-color: #c58bc7;
    color: #fff;
}

.dashboard-sharepoints-mode-pill[data-mode="blog"].is-active {
    background: #c7b3e5;
    border-color: #b8a2d8;
    color: #fff;
}

.dashboard-sharepoints-mode-pill[data-mode="portfolio"].is-active {
    background: #9ec6ca;
    border-color: #8ab6bb;
    color: #fff;
}

.dashboard-sharepoints-list {
    border: 1px solid #d6e0eb;
    border-radius: 14px;
    background: #fff;
    padding: 8px;
    max-height: min(58vh, 560px);
    overflow: auto;
    display: grid;
    gap: 8px;
}

.dashboard-sharepoint-row {
    border: 1px solid #dce6f1;
    border-radius: 12px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    background: #ffffff;
}

.dashboard-sharepoint-row-main {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.dashboard-sharepoint-row-title {
    font-size: 0.96rem;
    font-weight: 600;
    color: #1c2e40;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-sharepoint-row-meta {
    font-size: 0.82rem;
    color: #617892;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-sharepoint-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.dashboard-sharepoint-open-btn,
.dashboard-sharepoint-delete-btn {
    min-height: 32px;
    height: 32px;
    padding: 0 12px;
    font-size: 0.74rem;
    line-height: 1;
    border-radius: 10px;
}

.media-search-panel {
    display: grid;
    gap: 12px;
}

.search-project-hit {
    border-width: 1px;
    border-style: solid;
}

.search-project-hit-video {
    border-color: #92afd1;
    background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
    box-shadow: 0 0 0 1px rgba(168, 195, 230, 0.34), 0 8px 18px rgba(18, 70, 136, 0.1);
}

.search-project-hit-photo {
    border-color: #bfd6a8;
    background: linear-gradient(180deg, #f8fcf4 0%, #ffffff 100%);
}

.search-project-hit-files {
    border-color: #e3c15a;
    background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
}

.search-project-hit-audio {
    border-color: #d59fd6;
    background: linear-gradient(180deg, #fdf7fd 0%, #ffffff 100%);
}

.search-project-hit-blog {
    border-color: #c7b3e5;
    background: linear-gradient(180deg, #fbf8ff 0%, #ffffff 100%);
}

.search-project-hit-portfolio {
    border-color: #8fbfc3;
    background: linear-gradient(180deg, #f3fbfc 0%, #ffffff 100%);
}

.search-project-hit-pinned {
    border-color: var(--pin-accent-line);
    background: linear-gradient(180deg, #f5f7fa 0%, #ffffff 100%);
}

.search-project-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
}

.search-project-chip-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.search-project-chip-video {
    background: #a8c3e6;
    border-color: #92afd1;
    color: #fff;
}

.search-project-hit-video .upload-head strong {
    color: #2f4760;
}

.search-project-chip-photo {
    background: #bfd6a8;
    color: #fff;
}

.search-project-chip-files {
    background: #e3c15a;
    color: #fff;
}

.search-project-chip-audio {
    background: #d59fd6;
    color: #fff;
}

.search-project-chip-blog {
    background: #c7b3e5;
    color: #fff;
}

.search-project-chip-portfolio {
    background: #8fbfc3;
    color: #fff;
}

.search-project-chip-pinned {
    background: var(--pin-accent);
    border-color: var(--pin-accent-line);
    color: #fff;
}

.search-hit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-hit-actions .project-action-btn {
    min-height: 30px;
    padding: 0 12px;
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1;
}

.search-media-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
}

.search-media-main {
    min-width: 0;
}

.search-media-title-line {
    display: block;
    min-width: 0;
}

.search-media-title-line strong {
    display: block;
}

.search-media-meta-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
    min-width: 0;
}

.search-media-inline-meta {
    font-size: 0.95em;
    white-space: nowrap;
}

.search-media-inline-meta-time {
    font-size: 0.82em;
}

.search-media-project-divider {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    white-space: nowrap;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

.search-media-head .search-project-chip-group {
    align-self: start;
    margin-top: 0;
}

.search-media-project-divider-video {
    border-bottom-color: #a8c3e6;
}

.search-media-project-divider-photo {
    border-bottom-color: #a9c290;
}

.search-media-project-divider-files {
    border-bottom-color: #ceab43;
}

.search-media-project-divider-audio {
    border-bottom-color: #bf8bc0;
}

.search-media-project-divider-blog {
    border-bottom-color: #ae98d3;
}

.search-media-project-divider-portfolio {
    border-bottom-color: #8fbfc3;
}

.search-media-project-divider-pinned {
    border-bottom-color: var(--pin-accent-line);
}

.search-media-hit .search-media-actions {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    padding-right: 0;
    margin-top: 8px;
}

.project-folder-card.search-focus-flash .folder-body {
    outline: none;
}

.website-create-panel,
.website-manage-panel {
    display: grid;
    gap: 14px;
}

.website-create-panel {
    gap: 16px;
}

/* Portfolio create area: remove outer wrapper pill, keep inner blocks only. */
.client-sites-dialog .website-create-panel.share-details.project-panel,
.portfolio-inline-dialog-body .website-create-panel.share-details.project-panel {
    margin: 0 0 14px 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.client-sites-dialog .dialog-head {
    padding-left: 12px;
}

.client-sites-dialog .dialog-head h3 {
    font-weight: 600;
    margin-left: 8px;
}

/* Portfolio list row should not be wrapped in an extra "pill" container */
.client-sites-dialog .website-manage-panel.share-details.project-panel,
.portfolio-inline-dialog-body .website-manage-panel.share-details.project-panel {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.website-create-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.55fr) auto minmax(120px, 0.6fr) minmax(120px, 0.6fr) auto;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
}

.website-create-row input {
    min-width: 0;
    width: 100%;
}

.client-sites-dialog .project-action-btn,
.client-sites-dialog #create-client-site-btn,
.client-sites-dialog #close-client-sites-dialog,
.portfolio-inline-dialog-body .project-action-btn,
.portfolio-inline-dialog-body #create-client-site-btn {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    min-height: var(--dash-pill-height);
    height: var(--dash-pill-height);
    padding: 0 var(--dash-pill-padding-x);
    border-radius: var(--dash-pill-radius);
    font-size: var(--dash-pill-font-size);
    font-weight: 400;
    line-height: 1;
}

.client-sites-dialog #close-client-sites-dialog {
    min-height: var(--dash-pill-height);
    height: var(--dash-pill-height);
    padding: 0 var(--dash-pill-padding-x);
    border-radius: var(--dash-pill-radius);
    font-size: var(--dash-pill-font-size);
}

.client-sites-dialog #client-site-name,
.portfolio-inline-dialog-body #client-site-name {
    min-height: 40px;
    height: 40px;
    padding: 0 16px;
    border-radius: 14px;
    font-size: 0.92rem;
}

.client-sites-dialog #client-site-username,
.client-sites-dialog #client-site-password,
.portfolio-inline-dialog-body #client-site-username,
.portfolio-inline-dialog-body #client-site-password {
    min-height: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 14px;
    font-size: 0.9rem;
}

.client-sites-dialog #client-site-username.is-transparent-pill,
.client-sites-dialog #client-site-password.is-transparent-pill,
.portfolio-inline-dialog-body #client-site-username.is-transparent-pill,
.portfolio-inline-dialog-body #client-site-password.is-transparent-pill {
    opacity: 0;
    background: transparent;
    border-color: transparent;
    color: transparent;
    pointer-events: none;
    box-shadow: none;
}

.client-sites-dialog #client-site-username.is-transparent-pill::placeholder,
.client-sites-dialog #client-site-password.is-transparent-pill::placeholder,
.portfolio-inline-dialog-body #client-site-username.is-transparent-pill::placeholder,
.portfolio-inline-dialog-body #client-site-password.is-transparent-pill::placeholder {
    color: transparent;
}

.website-create-security {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.website-create-security-label {
    font-size: 0.82rem;
    color: var(--muted);
}

.website-protected-toggle {
    min-width: 132px;
    min-height: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1;
}

.website-download-toggle {
    min-width: 142px;
    min-height: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1;
}

.website-comments-toggle {
    min-width: 142px;
    min-height: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1;
}

.website-comments-toggle.is-on {
    background: rgba(11, 98, 214, 0.5);
    border-color: var(--line);
    color: #ffffff;
}

.website-comments-toggle.is-on:hover,
.website-comments-toggle.is-on:focus,
.website-comments-toggle.is-on:focus-visible {
    background: rgba(11, 98, 214, 0.62);
    border-color: var(--line);
    color: #ffffff;
}

.website-comments-toggle.is-off {
    background: rgba(227, 54, 54, 0.5);
    border-color: var(--line);
    color: #ffffff;
}

.website-comments-toggle.is-off:hover,
.website-comments-toggle.is-off:focus,
.website-comments-toggle.is-off:focus-visible {
    background: rgba(227, 54, 54, 0.62);
    border-color: var(--line);
    color: #ffffff;
}

.website-comments-toggle.is-disabled,
.website-comments-toggle:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.website-download-toggle.is-allow {
    background: rgba(11, 98, 214, 0.5);
    border-color: var(--line);
    color: #ffffff;
}

.website-download-toggle.is-allow:hover,
.website-download-toggle.is-allow:focus,
.website-download-toggle.is-allow:focus-visible {
    background: rgba(11, 98, 214, 0.62);
    border-color: var(--line);
    color: #ffffff;
}

.website-download-toggle.is-deny {
    background: rgba(227, 54, 54, 0.5);
    border-color: var(--line);
    color: #ffffff;
}

.website-download-toggle.is-deny:hover,
.website-download-toggle.is-deny:focus,
.website-download-toggle.is-deny:focus-visible {
    background: rgba(227, 54, 54, 0.62);
    border-color: var(--line);
    color: #ffffff;
}

.website-download-toggle.is-disabled,
.website-download-toggle:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.website-protected-toggle.is-off {
    background: rgba(227, 54, 54, 0.5);
    border-color: var(--line);
    color: #ffffff;
    box-shadow: none;
}

.website-protected-toggle.is-off:hover {
    background: rgba(227, 54, 54, 0.62);
    border-color: var(--line);
    color: #ffffff;
}

.website-protected-toggle.is-on {
    background: rgba(11, 98, 214, 0.5);
    border-color: var(--line);
    color: #ffffff;
    box-shadow: none;
}

.website-protected-toggle.is-on:hover,
.website-protected-toggle.is-on:focus,
.website-protected-toggle.is-on:focus-visible {
    background: rgba(11, 98, 214, 0.62);
    border-color: var(--line);
    color: #ffffff;
}

.website-helper {
    margin: -2px 0 0;
    max-width: 760px;
}

.website-status {
    min-height: 1.1rem;
    margin: 0;
}

.website-status.is-error {
    color: var(--danger);
}

.website-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.website-manage-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    padding: 0 16px;
    width: 100%;
    min-height: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #eaf3fd;
    border-color: #c6d6e8;
    color: #1f3f5c;
    font: inherit;
    font-weight: 400;
    font-size: 0.92rem;
    line-height: 1;
    cursor: pointer;
    position: relative;
    padding-right: 16px;
}

.website-manage-toggle:hover {
    background: #eaf3fd;
    border-color: #c6d6e8;
    color: #1f3f5c;
}

.website-manage-toggle:focus,
.website-manage-toggle:focus-visible,
.website-manage-toggle:active,
.website-manage-toggle.is-open {
    background: #eaf3fd;
    border-color: #c6d6e8;
    color: #1f3f5c;
    outline: none;
    box-shadow: none;
}

.website-manage-toggle::after {
    content: none;
}

.website-manage-chevron {
    margin-top: 0;
    margin-left: 12px;
    position: static;
    color: #7c8a9e;
    opacity: 0.7;
    transform: rotate(0deg);
    transition: transform 140ms ease;
    pointer-events: none;
}

.website-manage-toggle.is-open .website-manage-chevron {
    transform: rotate(-180deg);
}

.website-manage-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.78rem;
    color: var(--muted);
    background: #fff;
    margin-right: auto;
}

.website-manage-count-inline {
    display: inline;
    margin-left: 2px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #1f3f5c;
    font-size: 0.92rem;
    line-height: 1;
    font-weight: 400;
}

.client-site-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}

.client-site-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    cursor: pointer;
    list-style: none;
    position: relative;
}

.client-site-summary-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.client-site-title-divider {
    color: #8da0b8;
    font-weight: 500;
}

.client-site-summary-state-pills {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.client-site-summary-state-pills .share-access-state-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.client-site-summary-state-pills .share-access-state-pill > span {
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.client-site-credentials-inline-btn {
    min-height: 31px;
    height: 31px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 0.68rem;
    font-weight: 400;
    line-height: 1;
}

.client-site-card-head::-webkit-details-marker {
    display: none;
}

.client-site-card-chevron {
    position: absolute;
    left: 50%;
    top: 50%;
    margin-top: 0;
    transform: translate(-50%, -50%) rotate(0deg);
    pointer-events: none;
}

.client-site-card[open] .client-site-card-chevron {
    transform: translate(-50%, -50%) rotate(-180deg);
}

.client-site-card:not([open]) {
    padding: 10px 14px;
    gap: 0;
}

.client-site-card:not([open]) .client-site-card-head {
    min-height: 40px;
    align-items: center;
}

.client-site-card-meta {
    display: grid;
    gap: 4px;
}

.client-site-card-meta strong {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.2;
}

.client-site-count {
    margin: 0;
}

.client-site-summary-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.client-site-state-pill {
    pointer-events: none;
}

.client-site-state-pill-toggle {
    pointer-events: auto;
}

.client-sites-dialog .client-site-card .soft-btn,
.client-sites-dialog .client-site-card .project-action-btn,
.portfolio-inline-dialog-body .client-site-card .soft-btn,
.portfolio-inline-dialog-body .client-site-card .project-action-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    box-sizing: border-box !important;
    height: var(--dash-pill-height) !important;
    min-height: var(--dash-pill-height) !important;
    padding: 0 var(--dash-pill-padding-x) !important;
    border-radius: var(--dash-pill-radius) !important;
    font-size: var(--dash-pill-font-size) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

/* Compact header action row in portfolio cards (about 20% smaller) */
.client-sites-dialog .client-site-summary-actions,
.client-sites-dialog .client-site-summary-center-actions,
.portfolio-inline-dialog-body .client-site-summary-actions,
.portfolio-inline-dialog-body .client-site-summary-center-actions,
.portfolio-inline-dialog-body .client-site-summary-bottom-actions {
    --client-site-summary-pill-height: calc(var(--dash-pill-height) * 0.9);
    --client-site-summary-pill-padding-x: calc(var(--dash-pill-padding-x) * 0.9);
    --client-site-summary-pill-radius: calc(var(--dash-pill-radius) * 0.9);
    --client-site-summary-pill-font-size: calc(var(--dash-pill-font-size) * 0.9);
}

.client-sites-dialog .client-site-summary-actions .project-action-btn,
.client-sites-dialog .client-site-summary-center-actions .project-action-btn,
.client-sites-dialog .client-site-summary-actions .client-site-public-link,
.portfolio-inline-dialog-body .client-site-summary-actions .project-action-btn,
.portfolio-inline-dialog-body .client-site-summary-center-actions .project-action-btn,
.portfolio-inline-dialog-body .client-site-summary-actions .client-site-public-link,
.portfolio-inline-dialog-body .client-site-summary-bottom-actions .project-action-btn {
    height: var(--client-site-summary-pill-height) !important;
    min-height: var(--client-site-summary-pill-height) !important;
    padding: 0 var(--client-site-summary-pill-padding-x) !important;
    border-radius: var(--client-site-summary-pill-radius) !important;
    font-family: "Avenir Next", "Segoe UI", sans-serif !important;
    font-size: var(--client-site-summary-pill-font-size) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
}

.client-sites-dialog .client-site-summary-state-pills .client-site-credentials-inline-btn,
.client-sites-dialog .client-site-summary-state-pills .client-site-summary-copy-link-btn,
.client-sites-dialog .client-site-summary-state-pills .client-site-state-pill.is-password,
.portfolio-inline-dialog-body .client-site-summary-state-pills .client-site-credentials-inline-btn,
.portfolio-inline-dialog-body .client-site-summary-state-pills .client-site-summary-copy-link-btn,
.portfolio-inline-dialog-body .client-site-summary-state-pills .client-site-state-pill.is-password {
    appearance: none !important;
    -webkit-appearance: none !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: var(--client-site-summary-pill-height, calc(var(--dash-pill-height) * 0.9)) !important;
    min-height: var(--client-site-summary-pill-height, calc(var(--dash-pill-height) * 0.9)) !important;
    padding: 0 var(--client-site-summary-pill-padding-x, calc(var(--dash-pill-padding-x) * 0.9)) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--client-site-summary-pill-radius, calc(var(--dash-pill-radius) * 0.9)) !important;
    background: #ffffff !important;
    color: var(--ink) !important;
    font-family: "Avenir Next", "Segoe UI", sans-serif !important;
    font-size: var(--client-site-summary-pill-font-size, calc(var(--dash-pill-font-size) * 0.9)) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.client-sites-dialog .client-site-summary-state-pills .client-site-state-pill.is-password,
.portfolio-inline-dialog-body .client-site-summary-state-pills .client-site-state-pill.is-password {
    background: linear-gradient(90deg, var(--status-pill-accent) 0 5%, #ffffff 5% 100%) !important;
    color: var(--ink) !important;
}

.client-sites-dialog .client-site-section-item,
.portfolio-inline-dialog-body .client-site-section-item {
    min-height: var(--dash-pill-height);
    padding: 0 12px;
    border-radius: var(--dash-pill-radius);
}

.client-sites-dialog .client-site-section-summary,
.portfolio-inline-dialog-body .client-site-section-summary {
    align-items: center;
}

.client-site-card-body {
    display: grid;
    gap: 16px;
    padding-top: 6px;
    border-top: 1px solid rgba(210, 219, 229, 0.8);
}

.client-site-editor-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 16px;
}

.client-site-editor-grid.is-link-only {
    grid-template-columns: minmax(220px, 1fr);
}

#client-site-list.is-focused-site-active .client-site-card.is-dimmed {
    opacity: 0.42;
    filter: grayscale(0.2);
}

#client-site-list.is-focused-site-active .client-site-card.is-focused {
    opacity: 1;
    filter: none;
}

.client-site-editor-block {
    display: grid;
    gap: 8px;
}

.client-sites-dialog .client-site-row-actions,
.portfolio-inline-dialog-body .client-site-row-actions {
    align-items: center;
}

.client-sites-dialog .client-site-rename-input,
.portfolio-inline-dialog-body .client-site-rename-input {
    min-height: 0;
    height: auto;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: var(--dash-pill-font-size);
    line-height: 1.2;
}

.client-site-block-label {
    margin: 0;
    font-size: 0.82rem;
    letter-spacing: 0;
    text-transform: none;
}

.client-site-link-chip {
    display: flex;
    align-items: center;
    min-height: 0;
    height: auto;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fbfe;
    color: var(--muted);
    font-size: var(--dash-pill-font-size);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.client-site-sections-wrap {
    display: grid;
    gap: 10px;
}

.client-site-sections-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
}

.client-site-sections-head .client-site-block-label {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    text-transform: none;
    letter-spacing: 0;
}

.client-site-sections-hint {
    flex: 0 0 auto;
    font-size: 0.82rem;
    white-space: nowrap;
}

.client-site-sections-head .client-site-section-add-btn {
    margin-left: auto;
    margin-right: 0;
    flex: 0 0 auto;
}

.client-site-sections-list {
    display: grid;
    gap: 9px;
    justify-items: center;
}

.client-site-section-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: min(100%, 1060px);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.client-site-section-summary {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    width: auto;
    max-width: 100%;
    min-width: 0;
    position: relative;
}

.client-site-section-title-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 clamp(210px, 21vw, 301px);
    width: clamp(210px, 21vw, 301px);
    min-height: 39px;
    padding: 0 14px;
    border-radius: var(--dash-pill-radius);
    overflow: hidden;
    position: relative;
    cursor: grab;
}

.client-site-section-title-pill:active {
    cursor: grabbing;
}

.client-site-section-drag {
    color: #8f9bad;
    font-size: 0.92rem;
    line-height: 1;
    letter-spacing: -0.15em;
    cursor: inherit;
    user-select: none;
}

.client-site-section-rank {
    color: #111;
    font-size: 0.8rem;
    font-weight: 700;
    min-width: 1.6rem;
}

.client-site-section-name {
    min-width: 0;
    flex: 1 1 auto;
    color: #111;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-site-section-toggle-wrap {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    flex: 0 1 auto;
    min-width: 0;
}

.client-site-section-toggle {
    flex: 0 0 auto;
    min-height: 32px;
    height: 32px;
    min-width: 0;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 0.82rem;
    white-space: nowrap;
}

.client-site-section-toggle.is-visually-reserved {
    visibility: hidden;
    pointer-events: none;
}

.client-site-section-toggle.is-write.is-on {
    border-color: rgba(87, 129, 195, 0.45);
    box-shadow: inset 5px 0 0 rgba(87, 129, 195, 0.8);
}

.client-site-section-mode {
    flex: 0 0 auto;
    margin-left: auto;
    font-size: 0.92rem;
    font-weight: 600;
    color: #fff;
    text-align: right;
}

.client-site-section-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.client-site-section-add-btn,
.client-site-section-remove-btn {
    min-width: 21px;
    width: 21px;
    height: 21px;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    line-height: 1;
    font-weight: 600;
}

.client-sites-dialog .client-site-card .client-site-section-add-btn,
.client-sites-dialog .client-site-card .client-site-section-remove-btn,
.portfolio-inline-dialog-body .client-site-card .client-site-section-add-btn,
.portfolio-inline-dialog-body .client-site-card .client-site-section-remove-btn {
    min-width: 17px !important;
    width: 17px !important;
    min-height: 17px !important;
    height: 17px !important;
    max-height: 17px !important;
    padding: 0 !important;
    font-size: 0.62rem !important;
    line-height: 1 !important;
}

.client-site-section-item.is-dragging {
    opacity: 0.58;
}

.client-site-section-item.is-drag-over .client-site-section-summary::before {
    content: "";
    position: absolute;
    inset: -6px -8px;
    z-index: 5;
    border: 1px solid rgba(138, 160, 192, 0.42);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 14px 30px rgba(88, 107, 137, 0.14);
    backdrop-filter: blur(2px);
    pointer-events: none;
}

.client-site-section-item.is-drag-over .client-site-section-summary::after {
    content: attr(data-drop-label);
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    z-index: 6;
    color: #334b67;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0;
    pointer-events: none;
}

.client-site-section-item.is-drag-over .client-site-section-title-pill,
.client-site-section-item.is-drag-over .client-site-section-toggle-wrap {
    opacity: 0.32;
}

.client-site-section-item.mode-video {
    border-color: transparent;
}

.client-site-section-item.mode-video .client-site-section-title-pill {
    background: #dce7f5;
}

.client-site-section-item.mode-photo {
    border-color: transparent;
}

.client-site-section-item.mode-photo .client-site-section-title-pill {
    background: #dde9d2;
}

.client-site-section-item.mode-files {
    border-color: transparent;
}

.client-site-section-item.mode-files .client-site-section-title-pill {
    background: #f2e1a4;
}

.client-site-section-item.mode-audio {
    border-color: transparent;
}

.client-site-section-item.mode-audio .client-site-section-title-pill {
    background: #e8cde9;
}

.client-site-section-item.mode-blog {
    border-color: transparent;
}

.client-site-section-item.mode-blog .client-site-section-title-pill {
    background: #e6d9f6;
}

.client-site-danger-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-top: 2px;
}

#create-client-site-btn {
    background: var(--pin-accent);
    border-color: var(--pin-accent-line);
    color: #fff;
    font-weight: 400;
}

#create-client-site-btn:hover {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.14)),
        linear-gradient(var(--pin-accent), var(--pin-accent));
    background-blend-mode: multiply;
    border-color: var(--pin-accent-line);
    color: #fff;
}

.client-site-pick {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    font-size: 0.92rem;
    line-height: 1;
    overflow: hidden;
}

.client-site-pick-children {
    display: grid;
    gap: 6px;
    margin: 6px 0 8px;
    padding-left: 12px;
}

.client-site-pick.client-site-pick-folder-child {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.84rem;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.88);
}

.client-site-pick.client-site-pick-folder.is-partial {
    background: #e9eef7;
    border-color: transparent;
}

.client-site-mode-group.mode-photo .client-site-pick.client-site-pick-folder.is-partial {
    background: #e8efe0;
}

.client-site-mode-group.mode-audio .client-site-pick.client-site-pick-folder.is-partial {
    background: #efe1f0;
}

.client-site-pick input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border: 1px solid #8a95a4;
    border-radius: 3px;
    background: #fff;
    position: relative;
    margin: 0;
    flex: 0 0 auto;
}

.client-site-pick input[type="checkbox"]:checked {
    background: #fff;
    border-color: transparent;
}

.client-site-pick input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 3px;
    height: 7px;
    border-right: 1.5px solid #111;
    border-bottom: 1.5px solid #111;
    transform: rotate(45deg);
}

.client-site-mode-group.mode-video .client-site-pick:has(input[type="checkbox"]:checked) {
    background: #dce7f5;
    border-color: transparent;
}

.client-site-mode-group.mode-photo .client-site-pick:has(input[type="checkbox"]:checked) {
    background: #dde9d2;
    border-color: transparent;
}

.client-site-mode-group.mode-files .client-site-pick:has(input[type="checkbox"]:checked) {
    background: #f2e1a4;
    border-color: transparent;
}

.client-site-mode-group.mode-audio .client-site-pick:has(input[type="checkbox"]:checked) {
    background: #e8cde9;
    border-color: transparent;
}

.client-site-mode-group.mode-blog .client-site-pick:has(input[type="checkbox"]:checked) {
    background: #e6d9f6;
    border-color: transparent;
}

.client-site-mode-group.mode-pinned .client-site-pick:has(input[type="checkbox"]:checked) {
    background: #dde3ec;
    border-color: transparent;
}

.client-site-pick.is-disabled-by-collection,
.client-site-pick:has(input[type="checkbox"]:disabled) {
    opacity: 0.48;
}

.client-site-pick-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
}

.client-site-pick-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-site-playlist-flag {
    flex: 0 0 auto;
    margin-left: auto;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #c280cc;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
}

.client-site-pin-count {
    flex: 0 0 auto;
    min-width: 20px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(92, 109, 133, 0.16);
    color: #49596f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1;
}

.video-dialog::backdrop {
    background: rgba(8, 20, 30, 0.15);
}

body.review-client.embedded-client-view .video-dialog::backdrop {
    background: transparent;
}

.video-dialog.site-video-comment-dialog::backdrop {
    background: transparent;
}

.video-dialog {
    position: relative;
}

.review-admin[data-project-mode="video"] .video-dialog {
    background:
        radial-gradient(1180px 560px at 50% 640px, rgba(154, 183, 221, 0.30) 0%, rgba(154, 183, 221, 0.08) 62%, rgba(154, 183, 221, 0) 88%),
        linear-gradient(180deg, #ffffff 0%, #f6f9ff 62%, #e8f0fb 100%);
}

.dialog-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 14px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

.dialog-head-actions {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.dialog-download {
    display: inline-block;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--ink);
    background: #fff;
}

.dialog-download:hover {
    background: #edf4fb;
}

.dialog-head h3 {
    margin: 0;
}

#dialog-title {
    font-weight: 600;
}

.dialog-title-wrap {
    min-width: 0;
}

.video-dialog .dialog-title-wrap .title-edit-btn {
    width: 27px;
    min-width: 27px;
    height: 27px;
    min-height: 27px;
    padding: 0;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
}

.video-dialog .dialog-title-wrap .title-edit-btn svg {
    width: 11px;
    height: 11px;
}

.video-dialog .dialog-title-wrap .title-edit-btn:hover,
.video-dialog .dialog-title-wrap .title-edit-btn:focus,
.video-dialog .dialog-title-wrap .title-edit-btn:focus-visible,
.video-dialog .dialog-title-wrap .title-edit-btn:active {
    box-shadow: none !important;
}

.video-dialog #close-dialog,
.video-dialog .thumb-form .soft-btn,
.video-dialog .thumb-form .dialog-download,
.video-dialog .comment-form button[type="submit"] {
    height: var(--dash-pill-height);
    min-height: var(--dash-pill-height);
    padding: 0 var(--dash-pill-padding-x);
    border-radius: var(--dash-pill-radius);
    font-size: calc(var(--dash-pill-font-size) * 0.9);
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}

.video-dialog .thumb-form .dialog-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#comment-author {
    border-color: #c6d6e8;
}

#clip-preview-close,
#close-share-preview-dialog,
#close-move-video-dialog,
#close-create-library-dialog,
#close-add-to-library-dialog,
#close-client-sites-dialog {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    font-weight: 400;
    height: 40px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 14px;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}

#clip-preview-close:hover,
#close-share-preview-dialog:hover,
#close-move-video-dialog:hover,
#close-create-library-dialog:hover,
#close-add-to-library-dialog:hover,
#close-client-sites-dialog:hover {
    background: #edf4fb;
    border-color: #c6d6e8;
    color: var(--ink);
}

#clip-preview-close:focus,
#clip-preview-close:focus-visible,
#close-share-preview-dialog:focus,
#close-share-preview-dialog:focus-visible,
#close-move-video-dialog:focus,
#close-move-video-dialog:focus-visible,
#close-create-library-dialog:focus,
#close-create-library-dialog:focus-visible,
#close-add-to-library-dialog:focus,
#close-add-to-library-dialog:focus-visible,
#close-client-sites-dialog:focus,
#close-client-sites-dialog:focus-visible {
    outline: none;
    box-shadow: none;
}

.clip-preview-body {
    padding: 12px;
}

#clip-preview-video {
    width: 100%;
    border-radius: 10px;
    background: #000;
    max-height: 70vh;
}

.dialog-body {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 12px;
    padding: 12px;
}

.dialog-body.preview-only {
    grid-template-columns: 1fr;
}

.share-preview-panel {
    --share-preview-grid-cols:
        minmax(150px, 0.95fr)
        minmax(150px, 0.95fr)
        minmax(170px, 1fr)
        minmax(170px, 1fr)
        minmax(170px, 1fr);
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    margin: 0 auto;
    text-align: left;
}

.share-preview-auth-row {
    display: grid;
    grid-template-columns: var(--share-preview-grid-cols);
    align-items: center;
    gap: 10px;
    width: 100%;
}

.share-preview-auth-row > * {
    min-width: 0;
}

.share-preview-auth-label {
    color: #61748a;
    font-size: calc(var(--dash-pill-font-size) * 0.95);
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.share-preview-auth-toggle,
.share-preview-auth-input {
    width: 100%;
    min-width: 0;
    height: var(--dash-pill-height);
    min-height: var(--dash-pill-height);
    border-radius: var(--dash-pill-radius);
    font-size: calc(var(--dash-pill-font-size) * 0.9);
}

.share-preview-auth-toggle {
    padding: 0 var(--dash-pill-padding-x);
    line-height: 1;
}

.share-preview-auth-toggle.is-off {
    background: rgba(227, 54, 54, 0.5);
    border-color: var(--line);
    color: #ffffff;
}

.share-preview-auth-toggle.is-off:hover,
.share-preview-auth-toggle.is-off:focus,
.share-preview-auth-toggle.is-off:focus-visible {
    background: rgba(227, 54, 54, 0.62);
    border-color: var(--line);
    color: #ffffff;
}

.share-preview-auth-toggle.is-on {
    background: rgba(11, 98, 214, 0.5);
    border-color: var(--line);
    color: #ffffff;
}

.share-preview-auth-toggle.is-on:hover,
.share-preview-auth-toggle.is-on:focus,
.share-preview-auth-toggle.is-on:focus-visible {
    background: rgba(11, 98, 214, 0.62);
    border-color: var(--line);
    color: #ffffff;
}

.share-preview-auth-input {
    padding: 0 var(--dash-pill-padding-x);
    border: 1px solid var(--line);
    background: #f8fbfe;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: calc(var(--dash-pill-font-size) * 0.9);
    font-weight: 400;
    line-height: 1;
}

.share-preview-auth-input::placeholder {
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: calc(var(--dash-pill-font-size) * 0.9);
    font-weight: 400;
    line-height: 1;
}

.share-preview-auth-input:disabled {
    background: #eef3f8;
    border-color: #d7e0ea;
    color: #8a97a6;
    opacity: 0.75;
    cursor: not-allowed;
}

.share-preview-row {
    display: grid;
    grid-template-columns: var(--share-preview-grid-cols);
    align-items: center;
    gap: 10px;
    width: 100%;
}

.share-preview-row > * {
    min-width: 0;
}

.share-preview-download-toggle {
    width: 100%;
    min-width: 0;
    height: var(--dash-pill-height);
    min-height: var(--dash-pill-height);
    padding: 0 var(--dash-pill-padding-x);
    font-size: calc(var(--dash-pill-font-size) * 0.9);
    font-weight: 400;
    border-radius: var(--dash-pill-radius);
    line-height: 1;
    justify-content: center;
    white-space: nowrap;
}

.share-preview-download-toggle.is-allow {
    background: #3f79d8 !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

.share-preview-download-toggle.is-allow:hover,
.share-preview-download-toggle.is-allow:focus,
.share-preview-download-toggle.is-allow:focus-visible {
    background: #3367be !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

.share-preview-download-toggle.is-deny {
    background: #d84d4d !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

.share-preview-download-toggle.is-deny:hover,
.share-preview-download-toggle.is-deny:focus,
.share-preview-download-toggle.is-deny:focus-visible {
    background: #bf3a3a !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

.share-preview-primary-btn {
    width: 100%;
    min-width: 0;
    height: var(--dash-pill-height);
    min-height: var(--dash-pill-height);
    padding: 0 var(--dash-pill-padding-x);
    font-size: calc(var(--dash-pill-font-size) * 0.9);
    font-weight: 400;
    border-radius: var(--dash-pill-radius);
    line-height: 1;
    justify-content: center;
    white-space: nowrap;
    background: var(--pin-accent);
    border-color: var(--pin-accent-line);
    color: #ffffff;
}

.share-preview-primary-btn:hover,
.share-preview-primary-btn:focus,
.share-preview-primary-btn:focus-visible {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.14)),
        linear-gradient(var(--pin-accent), var(--pin-accent));
    background-blend-mode: multiply;
    border-color: var(--pin-accent-line);
    color: #ffffff;
}

.share-preview-output {
    width: 100%;
    min-width: 0;
    flex: none;
    height: var(--dash-pill-height);
    min-height: var(--dash-pill-height);
    border-radius: var(--dash-pill-radius);
    font-size: calc(var(--dash-pill-font-size) * 0.9);
    padding: 0 var(--dash-pill-padding-x);
    text-align: center;
    background: #f8fbfe;
    border: 1px solid var(--line);
    font-weight: 400;
    line-height: 1;
}

#preview-link-output,
#blog-share-link-output {
    grid-column: 1 / 4;
}

#copy-preview-link-btn,
#blog-share-copy-link-btn {
    grid-column: 4 / 5;
}

#open-preview-link-btn,
#blog-share-open-link-btn {
    grid-column: 5 / 6;
}

.share-preview-output::placeholder {
    font-size: calc(var(--dash-pill-font-size) * 0.9);
    font-weight: 400;
    color: var(--ink);
    opacity: 1;
}

#copy-preview-link-btn,
#open-preview-link-btn,
#blog-share-copy-link-btn,
#blog-share-open-link-btn {
    width: 100%;
    min-width: 0;
    height: var(--dash-pill-height);
    min-height: var(--dash-pill-height);
    padding: 0 var(--dash-pill-padding-x);
    border-radius: var(--dash-pill-radius);
    font-size: calc(var(--dash-pill-font-size) * 0.9);
    font-weight: 400;
    line-height: 1;
    justify-content: center;
    white-space: nowrap;
}

#create-preview-link-btn,
#copy-preview-link-btn,
#open-preview-link-btn,
#blog-share-create-link-btn,
#blog-share-copy-link-btn,
#blog-share-open-link-btn {
    font-family: "Avenir Next", "Segoe UI", sans-serif !important;
    font-size: calc(var(--dash-pill-font-size) * 0.9) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
}

.share-preview-open-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.share-preview-status {
    min-height: 1.2em;
    margin: 0;
    text-align: center;
    align-self: center;
    padding: 2px 2px 0;
}

.share-preview-status.is-error {
    color: #b54343;
}

.share-preview-list-head {
    width: 100%;
}

.share-preview-list-wrap {
    margin-top: 4px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.42);
    padding: 10px;
    display: grid;
    gap: 8px;
}

.share-preview-list-toggle {
    margin: 0;
    border: 0;
    background: transparent;
    padding: 0;
    width: 100%;
    font-size: 1rem;
    font-weight: 600;
    color: #2b3f56;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    justify-content: flex-start;
}

.share-preview-list-toggle:hover,
.share-preview-list-toggle:focus,
.share-preview-list-toggle:focus-visible {
    color: #22374f;
}

.share-preview-list-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 0.73rem;
    color: #607387;
    font-weight: 500;
}

.share-preview-list {
    display: grid;
    gap: 8px;
}

.share-preview-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border: 1px solid #d9e3ee;
    border-radius: 12px;
    background: #ffffff;
    padding: 8px 10px;
}

.share-preview-item-main {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.share-preview-item-link {
    margin: 0;
    color: #2b3f56;
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-preview-item-meta {
    margin: 0;
    color: #6b7f94;
    font-size: 0.76rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-preview-item-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.share-preview-item-actions .share-preview-action-btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 108px !important;
    min-width: 108px !important;
    max-width: 108px !important;
    flex: 0 0 108px !important;
    height: var(--dash-pill-height) !important;
    min-height: var(--dash-pill-height) !important;
    border-radius: var(--dash-pill-radius);
    padding: 0 !important;
    font-family: "Avenir Next", "Segoe UI", sans-serif !important;
    font-size: calc(var(--dash-pill-font-size) * 0.9) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    white-space: nowrap;
    text-decoration: none;
    -webkit-font-smoothing: antialiased;
}

.share-preview-item-actions .danger {
    border-color: #efc4c4;
    color: var(--danger);
}

@media (max-width: 900px) {
    .share-preview-auth-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .share-preview-auth-label {
        padding-left: 2px;
    }
    .share-preview-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .share-preview-download-toggle,
    .share-preview-primary-btn,
    .share-preview-output,
    #copy-preview-link-btn,
    #open-preview-link-btn {
        width: 100%;
        min-width: 0;
    }
}

#share-preview-dialog {
    width: min(1180px, 94vw);
    max-width: 94vw;
}

#share-preview-dialog .dialog-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
}

#close-share-preview-dialog {
    position: static;
    right: auto;
    top: auto;
    transform: none;
    margin-left: auto;
    width: auto;
    min-width: 70px;
    height: calc(var(--dash-pill-height) * 0.8);
    min-height: calc(var(--dash-pill-height) * 0.8);
    padding: 0 calc(var(--dash-pill-padding-x) * 0.8);
    font-size: calc(var(--dash-pill-font-size) * 0.9);
    line-height: 1;
}

#share-preview-dialog .dialog-head h3 {
    margin-left: 12px;
}

.dialog-head-copy {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: baseline;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

.preview-wrap,
.comments-wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
}

.dialog-media-shell {
    position: relative;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
}

#dialog-video {
    display: block;
    width: auto;
    max-width: 100%;
    border-radius: 0;
    background: transparent;
    max-height: min(60vh, calc(100dvh - 260px));
    object-fit: contain;
    margin: 0 auto;
}

#dialog-audio {
    display: block;
    width: min(900px, 96%);
    margin: 24px auto;
}

#dialog-video[hidden],
#dialog-audio[hidden],
#dialog-image[hidden],
#dialog-pdf-preview[hidden],
#dialog-unsupported-preview[hidden] {
    display: none !important;
}

#dialog-image {
    display: block;
    width: auto;
    max-width: 100%;
    border-radius: 10px;
    background: transparent;
    max-height: min(60vh, calc(100dvh - 260px));
    object-fit: contain;
    margin: 0 auto;
}

#dialog-pdf-preview {
    display: block;
    width: min(1100px, 95%);
    height: 60vh;
    min-height: 420px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    margin: 0 auto;
}

#dialog-unsupported-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: min(860px, 95%);
    min-height: 240px;
    border: 1px dashed var(--line);
    border-radius: 10px;
    background: #f8fbff;
    color: #4b5f74;
    font-size: 0.96rem;
    line-height: 1.5;
    white-space: pre-line;
    padding: 24px;
    margin: 0 auto;
}

#dialog-unsupported-preview.dialog-text-preview {
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    white-space: pre-wrap;
    overflow: auto;
    max-height: min(60vh, calc(100dvh - 260px));
}

#dialog-video.format-16x9 {
    max-width: 100%;
}

#dialog-image.format-16x9 {
    max-width: 100%;
}

#dialog-video.format-9x16 {
    max-width: 100%;
}

#dialog-image.format-9x16 {
    max-width: 100%;
}

#dialog-video.format-4x5 {
    max-width: 100%;
}

#dialog-image.format-4x5 {
    max-width: 100%;
}

#dialog-video.format-1x1 {
    max-width: 100%;
}

#dialog-image.format-1x1 {
    max-width: 100%;
}

.meta {
    margin: 8px 0 12px;
    color: var(--muted);
    font-size: 0.9rem;
}

.dialog-head-meta {
    margin: 0;
    font-size: 0.78rem;
    color: #69819a;
    white-space: nowrap;
    justify-self: end;
    align-self: center;
    text-align: right;
}

.dialog-toast {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 12;
    padding: 12px 18px;
    border: 1px solid rgba(198, 214, 232, 0.95);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(18, 32, 47, 0.14);
    color: #2c4b66;
    font-size: 0.95rem;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.dialog-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.thumb-form {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    align-items: center;
    width: 100%;
}

.review-admin[data-project-mode="video"] .thumb-form {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    justify-content: stretch;
}

.review-admin[data-project-mode="video"] .thumb-form #dialog-download {
    grid-column: 3 / 4;
}

.thumb-form > * {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.review-admin.files-mode .thumb-form,
.review-client.files-mode.client-write-enabled .thumb-form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.thumb-form-photo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.thumb-form-photo > * {
    width: auto;
}

.comments-wrap {
    display: grid;
    gap: 8px;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-height: 420px;
}

.comments-wrap h4 {
    margin: 0;
    font-weight: 600;
}

.review-admin[data-project-mode="video"] .dialog-head-copy {
    display: contents;
}

.review-admin[data-project-mode="video"] .dialog-head {
    position: relative;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding-right: 118px;
}

.review-admin[data-project-mode="video"] #share-preview-dialog .dialog-head {
    position: static;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-right: 14px;
}

.review-admin[data-project-mode="video"] .dialog-body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.review-admin[data-project-mode="video"] #share-preview-dialog .dialog-body.preview-only {
    grid-template-columns: 1fr;
}

.review-admin[data-project-mode="video"] .comments-wrap {
    min-width: 0;
}

.review-admin[data-project-mode="video"] .preview-wrap,
.review-admin[data-project-mode="video"] .comments-wrap {
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(1px) saturate(110%);
}

.review-admin[data-project-mode="video"] .comments-list {
    background: rgba(255, 255, 255, 0.12);
}

.review-admin[data-project-mode="video"] .comment {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(198, 214, 232, 0.9);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.review-admin[data-project-mode="video"] .comment.is-targeted {
    background: rgba(222, 236, 252, 0.72);
    border-color: rgba(170, 196, 226, 0.95);
    box-shadow: inset 0 0 0 1px rgba(235, 244, 255, 0.9);
}

.review-admin[data-project-mode="video"] .comment-form #comment-author,
.review-admin[data-project-mode="video"] .comment-form #comment-message {
    background: rgba(255, 255, 255, 0.2);
}

.review-admin[data-project-mode="video"] #dialog-title {
    grid-column: 1;
    width: 100%;
    text-align: left;
    justify-self: start;
    padding-left: 12px;
}

.review-admin[data-project-mode="video"] .dialog-head-meta {
    grid-column: 2;
    position: static;
    transform: none;
    justify-self: end;
    align-self: center;
}

.review-admin[data-project-mode="video"] #close-dialog {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    height: calc(var(--dash-pill-height) * 0.81);
    min-height: calc(var(--dash-pill-height) * 0.81);
    padding: 0 calc(var(--dash-pill-padding-x) * 0.9);
    font-size: calc(var(--dash-pill-font-size) * 0.9);
    background: #fff;
    border-color: #c6d6e8;
    color: #12202f;
}

.review-admin[data-project-mode="video"] #close-dialog:hover,
.review-admin[data-project-mode="video"] #close-dialog:focus,
.review-admin[data-project-mode="video"] #close-dialog:focus-visible {
    background: #edf4fb;
    border-color: #c6d6e8;
    color: #12202f;
    box-shadow: none;
}

.review-admin[data-project-mode="video"] .comments-wrap h4 {
    text-align: left;
    font-weight: 600;
}

.review-client[data-project-mode="video"] .dialog-head {
    position: relative;
    border-bottom: 0;
}

.review-client[data-project-mode="video"] .dialog-head::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    border-bottom: 1px solid var(--line);
}

.review-client[data-project-mode="video"] #close-dialog,
.review-client[data-project-mode="audio"] #close-dialog {
    background: #fff;
    border-color: #c6d6e8;
    color: #12202f;
}

.review-client[data-project-mode="video"] #close-dialog:hover,
.review-client[data-project-mode="video"] #close-dialog:focus,
.review-client[data-project-mode="video"] #close-dialog:focus-visible,
.review-client[data-project-mode="audio"] #close-dialog:hover,
.review-client[data-project-mode="audio"] #close-dialog:focus,
.review-client[data-project-mode="audio"] #close-dialog:focus-visible {
    background: #edf4fb;
    border-color: #c6d6e8;
    color: #12202f;
    box-shadow: none;
}

.review-client[data-project-mode="video"] .comments-wrap h4 {
    font-weight: 600;
}

/* In client share preview, there is no admin action row under the player.
   Cap media height a bit tighter so modal proportions match the editor dialog. */
.review-client[data-project-mode="video"] #dialog-video,
.review-client[data-project-mode="video"] #dialog-image {
    max-height: min(56vh, 640px);
}

.review-admin[data-project-mode="video"] .thumb-form > * {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.video-dialog .comment-form #comment-author,
.video-dialog .comment-form #comment-message,
.video-dialog .comment-form #comment-author::placeholder,
.video-dialog .comment-form #comment-message::placeholder {
    font-size: calc(var(--dash-pill-font-size) * 0.9);
    font-weight: 400;
}

.comments-list {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    padding: 8px;
    min-height: 0;
    max-height: min(44vh, 380px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

.comments-list::-webkit-scrollbar {
    width: 10px;
}

.comments-list::-webkit-scrollbar-track {
    background: #edf3fa;
    border-radius: 999px;
}

.comments-list::-webkit-scrollbar-thumb {
    background: #b7c8dc;
    border-radius: 999px;
    border: 2px solid #edf3fa;
}

.comments-list::-webkit-scrollbar-thumb:hover {
    background: #9fb4cc;
}

.comment {
    border: 1px solid #e4ebf2;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 8px;
}

.comment.is-targeted {
    border-color: transparent;
    background: #e8f1fd;
    box-shadow: none;
}

.comment:last-child {
    margin-bottom: 0;
}

.comment-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    margin-bottom: 4px;
}

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

.comment-author {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.15;
    color: #5c6f86;
}

.comment-meta {
    font-size: 0.63rem;
    font-weight: 400;
    line-height: 1.15;
    color: #647a94;
}

.comment-head-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.comment-delete {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid #d8e1ea;
    background: #fff;
    color: #58708a;
    line-height: 1;
    font-size: 0.8rem;
    padding: 0;
}

.comment-delete:hover {
    background: #f2f6fa;
}

.comment-done-toggle {
    border: 0;
    border-radius: 999px;
    height: 20px;
    padding: 0 8px;
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1;
    text-transform: none;
}

.comment-done-toggle.is-undone {
    background: #d84d57;
    color: #ffffff;
}

.comment-done-toggle.is-done {
    border-color: transparent;
    background: #1f9a5f;
    color: #ffffff;
}

.comment-done-toggle:hover,
.comment-done-toggle:focus,
.comment-done-toggle:focus-visible {
    box-shadow: none;
}

.dialog-play-btn {
    display: none !important;
}

.dialog-play-btn:hover {
    background: transparent;
}

.dialog-video-controls {
    position: static;
    display: grid;
    grid-template-columns: auto minmax(120px, 1fr) auto auto auto auto auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin: 6px 0 12px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.dialog-video-controls.is-visible {
    opacity: 1;
}

.dialog-video-controls[hidden] {
    display: none !important;
}

.dialog-video-toggle {
    width: 38px;
    height: 35px;
    border-radius: 14px;
    color: var(--ink);
    display: grid;
    place-items: center;
    padding: 0;
    flex-shrink: 0;
    border: 1px solid var(--line);
    background: #fff;
}

.review-client[data-project-mode="video"] .dialog-video-toggle {
    width: 48px;
    height: 44px;
}

.dialog-video-toggle:hover {
    background: #edf4fb;
}

.dialog-video-toggle svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.dialog-video-toggle .site-present-video-fullscreen-icon {
    width: 20px;
    height: 20px;
    display: block;
    object-fit: contain;
}

.dialog-video-fullscreen-btn {
    width: 35px;
    height: 35px;
    min-width: 35px;
}

.dialog-download-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    padding: 0 14px;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.blog-reader-media .blog-reader-video-shell {
    position: relative;
}

.blog-reader-media .blog-reader-video-shell .custom-video-player {
    aspect-ratio: auto;
    height: auto;
    background: transparent;
}

.blog-reader-media .blog-reader-video-shell .custom-video-element {
    display: block;
    width: 100%;
    height: auto;
    max-height: 82vh;
    object-fit: contain;
    background: transparent;
}

.blog-reader-media .blog-reader-video-shell:fullscreen,
.blog-reader-media .blog-reader-video-shell:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-reader-media .blog-reader-video-shell:fullscreen .custom-video-player,
.blog-reader-media .blog-reader-video-shell:-webkit-full-screen .custom-video-player {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.blog-reader-media .blog-reader-video-shell:fullscreen .custom-video-element,
.blog-reader-media .blog-reader-video-shell:-webkit-full-screen .custom-video-element {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
}

.blog-reader-media .blog-reader-video-controls {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 6;
    grid-template-columns: auto minmax(120px, 1fr) auto auto auto auto auto;
    align-items: center;
    white-space: nowrap;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #fff;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    opacity: 0;
    transform: translateY(7px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.blog-reader-media .blog-reader-video-controls [data-custom-video-toggle] {
    order: 1;
}

.blog-reader-media .blog-reader-video-controls .dialog-video-seek {
    order: 2;
}

.blog-reader-media .blog-reader-video-controls .cc-menu {
    order: 3;
}

.blog-reader-media .blog-reader-video-controls .dialog-video-time {
    order: 4;
}

.blog-reader-media .blog-reader-video-controls .blog-reader-video-download-icon.dialog-download-inline {
    order: 5;
}

.blog-reader-media .blog-reader-video-controls .dialog-video-volume-wrap {
    order: 6;
}

.blog-reader-media .blog-reader-video-controls [data-custom-video-fullscreen] {
    order: 7;
}

.blog-reader-media .blog-reader-video-controls .cc-menu {
    justify-self: end;
}

.blog-reader-media .blog-reader-video-controls .cc-menu-trigger {
    width: 35px;
    min-width: 35px;
    max-width: 35px;
    height: 35px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    box-shadow: none;
}

.blog-reader-media .blog-reader-video-controls .cc-menu-trigger:hover,
.blog-reader-media .blog-reader-video-controls .cc-menu-trigger:focus,
.blog-reader-media .blog-reader-video-controls .cc-menu-trigger:focus-visible {
    background: transparent;
    color: #fff;
    box-shadow: none;
}

.blog-reader-media .blog-reader-video-controls .cc-menu-popover {
    right: 0;
    bottom: calc(100% + 8px);
}

.blog-reader-media .blog-reader-video-controls.is-visible,
.blog-reader-media .blog-reader-video-shell.blog-video-controls-open .blog-reader-video-controls,
.blog-reader-media .blog-reader-video-shell:focus-within .blog-reader-video-controls {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.blog-reader-media .blog-reader-video-shell.blog-video-controls-compact .blog-reader-video-controls {
    left: 14px;
    right: auto;
    bottom: 14px;
    grid-template-columns: auto;
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    color: #111827;
}

.blog-reader-media .blog-reader-video-shell.blog-video-controls-compact .blog-reader-video-controls > :not([data-custom-video-toggle]) {
    display: none;
}

.blog-reader-media .blog-reader-video-shell.blog-video-controls-hidden .blog-reader-video-controls {
    opacity: 0;
    transform: translateY(7px);
    pointer-events: none;
}

.blog-reader-media .blog-reader-video-shell.blog-video-controls-compact .dialog-video-toggle {
    color: #fff;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: none;
}

.blog-reader-media .blog-reader-video-download-icon.dialog-download-inline {
    width: 35px;
    min-width: 35px;
    padding: 0;
}

.blog-reader-media .blog-reader-video-controls .dialog-video-toggle,
.blog-reader-media .blog-reader-video-controls .blog-reader-video-download-icon.dialog-download-inline {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.blog-reader-media .blog-reader-video-controls .dialog-video-toggle:hover,
.blog-reader-media .blog-reader-video-controls .blog-reader-video-download-icon.dialog-download-inline:hover {
    background: transparent;
}

.blog-reader-media .blog-reader-video-shell.blog-video-controls-compact .dialog-video-toggle,
.blog-reader-media .blog-reader-video-shell.blog-video-controls-compact .dialog-video-toggle:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: none;
}

.blog-reader-media .blog-reader-video-controls .dialog-video-seek {
    height: 4px;
    background: rgba(255, 255, 255, 0.9);
    accent-color: #fff;
}

.blog-reader-media .blog-reader-video-controls .dialog-video-seek::-webkit-slider-runnable-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.9);
}

.blog-reader-media .blog-reader-video-controls .dialog-video-seek::-moz-range-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.9);
}

.blog-reader-media .blog-reader-video-controls .dialog-video-seek::-webkit-slider-thumb {
    width: 10px;
    height: 10px;
    margin-top: -3px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.75);
}

.blog-reader-media .blog-reader-video-controls .dialog-video-seek::-moz-range-thumb {
    width: 10px;
    height: 10px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.75);
}

.blog-reader-media .blog-reader-video-shell.blog-video-is-playing .blog-reader-video-controls {
    color: #fff;
}

.blog-reader-media .blog-reader-video-shell.blog-video-is-playing .blog-reader-video-controls .dialog-video-toggle,
.blog-reader-media .blog-reader-video-shell.blog-video-is-playing .blog-reader-video-controls .blog-reader-video-download-icon.dialog-download-inline {
    color: #fff;
    background: transparent;
}

.blog-reader-media .blog-reader-video-shell.blog-video-is-playing.blog-video-controls-compact .dialog-video-toggle,
.blog-reader-media .blog-reader-video-shell.blog-video-is-playing.blog-video-controls-compact .dialog-video-toggle:hover {
    color: #fff;
    background: transparent;
}

.blog-reader-media .blog-reader-video-shell.blog-video-is-playing .blog-reader-video-controls .dialog-video-seek {
    background: rgba(255, 255, 255, 0.9);
    accent-color: #fff;
}

.blog-reader-media .blog-reader-video-shell.blog-video-is-playing .blog-reader-video-controls .dialog-video-seek::-webkit-slider-runnable-track {
    background: rgba(255, 255, 255, 0.9);
}

.blog-reader-media .blog-reader-video-shell.blog-video-is-playing .blog-reader-video-controls .dialog-video-seek::-moz-range-track {
    background: rgba(255, 255, 255, 0.9);
}

.blog-reader-media .blog-reader-video-shell.blog-video-is-playing .blog-reader-video-controls .dialog-video-seek::-webkit-slider-thumb {
    background: #fff;
    border-color: rgba(255, 255, 255, 0.75);
}

.blog-reader-media .blog-reader-video-shell.blog-video-is-playing .blog-reader-video-controls .dialog-video-seek::-moz-range-thumb {
    background: #fff;
    border-color: rgba(255, 255, 255, 0.75);
}

.blog-reader-media-medium .blog-reader-video-controls {
    left: 10px;
    right: 10px;
    bottom: 10px;
    grid-template-columns: 22px minmax(80px, 1fr) auto auto 22px 22px 22px;
    gap: 8px;
    font-size: 0.68rem;
}

.blog-reader-media-medium .blog-reader-video-controls .dialog-video-toggle {
    width: 22px;
    height: 22px;
    min-width: 22px;
}

.blog-reader-media-medium .blog-reader-video-controls .dialog-video-toggle svg,
.blog-reader-media-medium .blog-reader-video-controls .blog-reader-video-download-icon svg {
    width: 10px;
    height: 10px;
}

.blog-reader-media-medium .blog-reader-video-download-icon.dialog-download-inline {
    width: 22px;
    min-width: 22px;
    height: 22px;
    min-height: 22px;
    border-radius: 0;
}

.blog-reader-media-medium .dialog-video-time {
    font-size: 0.68rem;
}

.blog-reader-media-medium .blog-reader-video-shell.blog-video-controls-compact .blog-reader-video-controls {
    left: 10px;
    bottom: 10px;
}

.blog-reader-media-medium .blog-reader-video-shell.blog-video-controls-compact .dialog-video-toggle {
    width: 34px;
    height: 34px;
    min-width: 34px;
}

.blog-reader-media-medium .blog-reader-video-shell.blog-video-controls-compact .dialog-video-toggle svg {
    width: 13px;
    height: 13px;
}

.blog-reader-media .blog-reader-video-shell:fullscreen .blog-reader-video-controls,
.blog-reader-media .blog-reader-video-shell:-webkit-full-screen .blog-reader-video-controls {
    left: max(18px, env(safe-area-inset-left));
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
}

.blog-reader-media .blog-reader-video-shell:fullscreen.blog-video-controls-compact .blog-reader-video-controls,
.blog-reader-media .blog-reader-video-shell:-webkit-full-screen.blog-video-controls-compact .blog-reader-video-controls {
    left: max(18px, env(safe-area-inset-left));
    right: auto;
    bottom: max(18px, env(safe-area-inset-bottom));
}

.review-client[data-project-mode="video"] .preview-wrap {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.review-client[data-project-mode="video"] .dialog-media-shell {
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    margin-bottom: 0;
    padding: 12px 0 0;
}

.review-client[data-project-mode="video"] #dialog-video,
.review-client[data-project-mode="video"] #dialog-image {
    margin: 0 auto;
    margin-bottom: 12px;
}

.review-client[data-project-mode="video"] .dialog-video-controls {
    grid-template-columns: auto minmax(140px, 1fr) auto auto auto;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    margin-top: auto;
    margin-bottom: 0;
}

.review-client[data-project-mode="video"] .dialog-video-seek {
    align-self: center;
}

.review-client[data-project-mode="video"] .dialog-video-time {
    align-self: center;
}

.review-client[data-project-mode="video"] .dialog-video-toggle {
    width: 38px;
    height: 35px;
    border-radius: 12px;
}

.review-client[data-project-mode="video"] .dialog-download-inline {
    justify-self: end;
    height: calc(var(--dash-pill-height) * 0.96);
    min-height: calc(var(--dash-pill-height) * 0.96);
    padding: 0 calc(var(--dash-pill-padding-x) * 0.84);
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: calc(var(--dash-pill-font-size) * 0.9) !important;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1;
}

.dialog-video-fullscreen-btn:hover,
.dialog-video-fullscreen-btn:focus,
.dialog-video-fullscreen-btn:focus-visible,
.dialog-video-fullscreen-btn:active {
    background: #edf4fb;
    border-color: #c6d6e8;
    box-shadow: none;
}

.review-admin[data-project-mode="video"] .video-dialog button:focus,
.review-admin[data-project-mode="video"] .video-dialog .soft-btn:focus,
.review-admin[data-project-mode="video"] .video-dialog a.soft-btn:focus,
.review-admin[data-project-mode="video"] .video-dialog button:focus-visible,
.review-admin[data-project-mode="video"] .video-dialog .soft-btn:focus-visible,
.review-admin[data-project-mode="video"] .video-dialog a.soft-btn:focus-visible,
.review-admin[data-project-mode="video"] .video-dialog button:active,
.review-admin[data-project-mode="video"] .video-dialog .soft-btn:active,
.review-admin[data-project-mode="video"] .video-dialog a.soft-btn:active {
    box-shadow: none !important;
}

.dialog-video-seek {
    width: 100%;
    margin: 0;
    accent-color: #587ed4;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 999px;
    background: #dfe8f2;
}

.dialog-video-seek::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 999px;
    background: #dfe8f2;
}

.dialog-video-seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #b5bfcc;
    margin-top: -1px;
    border: 0;
}

.dialog-video-seek::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: #dfe8f2;
}

.dialog-video-seek::-moz-range-thumb {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #b5bfcc;
    border: 0;
}

.dialog-video-volume {
    width: 100%;
    margin: 0;
    accent-color: #587ed4;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 999px;
    background: #dfe8f2;
}

.dialog-video-volume::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 999px;
    background: #dfe8f2;
}

.dialog-video-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #7ea8d7;
    margin-top: -4px;
    border: 0;
}

.dialog-video-volume::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: #dfe8f2;
}

.dialog-video-volume::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #7ea8d7;
    border: 0;
}

.dialog-video-volume-wrap {
    position: relative;
    display: inline-grid;
    place-items: center;
}

.dialog-video-volume-pop {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    z-index: 30;
}

.dialog-video-volume-pop[hidden] {
    display: none !important;
}

.dialog-video-volume-vertical {
    width: 96px;
    height: 6px;
    margin: 0;
    transform: rotate(-90deg);
    transform-origin: center;
}

.dialog-video-time {
    min-width: 100px;
    text-align: right;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.blog-reader-media .blog-reader-video-shell:not(.blog-video-controls-compact) .dialog-video-time {
    color: #fff;
}

.blog-reader-media .blog-reader-video-shell:not(.blog-video-controls-compact) .blog-reader-video-controls .dialog-video-toggle,
.blog-reader-media .blog-reader-video-shell:not(.blog-video-controls-compact) .blog-reader-video-controls .blog-reader-video-download-icon.dialog-download-inline {
    color: #fff;
}

.blog-reader-audio-shell .blog-reader-audio-controls {
    grid-template-columns: auto minmax(140px, 1fr) auto auto auto;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid rgba(17, 24, 39, 0.24);
    border-radius: 12px;
    background: rgba(17, 24, 39, 0.62);
    color: #fff;
    box-shadow: none;
}

.blog-reader-audio-shell .blog-reader-audio-controls .dialog-video-toggle,
.blog-reader-audio-shell .blog-reader-audio-controls .blog-reader-video-download-icon.dialog-download-inline {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    box-shadow: none;
}

.blog-reader-audio-shell .blog-reader-audio-controls .dialog-video-toggle:hover,
.blog-reader-audio-shell .blog-reader-audio-controls .dialog-video-toggle:focus,
.blog-reader-audio-shell .blog-reader-audio-controls .blog-reader-video-download-icon.dialog-download-inline:hover,
.blog-reader-audio-shell .blog-reader-audio-controls .blog-reader-video-download-icon.dialog-download-inline:focus {
    background: transparent;
    color: #fff;
    box-shadow: none;
}

.blog-reader-audio-shell .blog-reader-audio-controls .dialog-video-time {
    color: #fff;
}

.blog-reader-audio-shell .blog-reader-audio-controls .dialog-video-seek,
.blog-reader-audio-shell .blog-reader-audio-controls .dialog-video-seek::-webkit-slider-runnable-track,
.blog-reader-audio-shell .blog-reader-audio-controls .dialog-video-seek::-moz-range-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.92);
}

.blog-reader-audio-shell .blog-reader-audio-controls .dialog-video-seek::-webkit-slider-thumb {
    width: 10px;
    height: 10px;
    margin-top: -3px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.75);
}

.blog-reader-audio-shell .blog-reader-audio-controls .dialog-video-seek::-moz-range-thumb {
    width: 10px;
    height: 10px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.75);
}

@media (max-width: 720px) {
    .blog-reader-audio-shell .blog-reader-audio-controls {
        grid-template-columns: auto minmax(80px, 1fr) auto auto auto;
        gap: 8px;
    }

    .blog-reader-audio-shell .blog-reader-audio-controls .dialog-video-time {
        min-width: 74px;
        font-size: 0.72rem;
    }
}

.blog-reader-media .blog-reader-video-controls .dialog-video-volume,
.blog-reader-audio-shell .blog-reader-audio-controls .dialog-video-volume {
    width: 96px;
    height: 4px;
    accent-color: #fff;
    background: rgba(255, 255, 255, 0.92);
}

.blog-reader-media .blog-reader-video-controls .dialog-video-volume::-webkit-slider-runnable-track,
.blog-reader-audio-shell .blog-reader-audio-controls .dialog-video-volume::-webkit-slider-runnable-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.92);
}

.blog-reader-media .blog-reader-video-controls .dialog-video-volume::-moz-range-track,
.blog-reader-audio-shell .blog-reader-audio-controls .dialog-video-volume::-moz-range-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.92);
}

.blog-reader-media .blog-reader-video-controls .dialog-video-volume::-webkit-slider-thumb {
    width: 10px;
    height: 10px;
    margin-top: -3px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.75);
}

.blog-reader-media .blog-reader-video-controls .dialog-video-volume::-moz-range-thumb {
    width: 10px;
    height: 10px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.75);
}

.blog-reader-audio-shell .blog-reader-audio-controls .dialog-video-volume::-webkit-slider-thumb {
    width: 10px;
    height: 10px;
    margin-top: -3px;
    background: #b9c1cc;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.blog-reader-audio-shell .blog-reader-audio-controls .dialog-video-volume::-moz-range-thumb {
    width: 10px;
    height: 10px;
    background: #b9c1cc;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.blog-reader-media .blog-reader-video-controls .dialog-video-volume-btn:focus,
.blog-reader-media .blog-reader-video-controls .dialog-video-volume-btn:focus-visible,
.blog-reader-audio-shell .blog-reader-audio-controls .dialog-video-volume-btn:focus,
.blog-reader-audio-shell .blog-reader-audio-controls .dialog-video-volume-btn:focus-visible {
    outline: none;
    background: transparent;
    box-shadow: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.card-preview-video::-webkit-media-controls-start-playback-button,
#dialog-video::-webkit-media-controls-start-playback-button,
.custom-video-element::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
}

.dialog-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: auto;
    height: auto;
    border-radius: 0;
    border: 0;
    background: transparent;
    color: #111;
    font-size: 3rem;
    font-weight: 300;
    line-height: 1;
    display: grid;
    place-items: center;
    padding: 0;
    text-shadow: none;
    opacity: 0.9;
}

.dialog-nav-btn:hover {
    background: transparent;
    color: #000;
    opacity: 1;
}

.dialog-nav-btn:focus,
.dialog-nav-btn:focus-visible,
.dialog-nav-btn:active {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.dialog-nav-prev {
    left: 12px;
}

.dialog-nav-next {
    right: 12px;
}

.video-dialog.photo-lightbox {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    background: #e7e7e7;
}

.video-dialog.photo-lightbox .dialog-head,
.video-dialog.photo-lightbox .meta,
.video-dialog.photo-lightbox .comments-wrap,
.video-dialog.photo-lightbox #dialog-video,
.video-dialog.photo-lightbox #dialog-play-btn {
    display: none !important;
}

.video-dialog.photo-lightbox .dialog-body {
    display: block;
    padding: 32px 38px 34px;
    height: 100%;
}

.video-dialog.photo-lightbox .preview-wrap {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    width: 100%;
    height: 100%;
}

.video-dialog.photo-lightbox .dialog-media-shell {
    width: 100%;
    height: 100%;
    padding: 0;
    display: grid;
    place-items: center;
}

.video-dialog.photo-lightbox #dialog-image {
    width: auto;
    height: auto;
    max-width: min(70vw, calc(100vw - 220px));
    max-height: min(70dvh, calc(100dvh - 220px));
    display: block;
    border-radius: 0;
    object-fit: contain;
    background: transparent;
    padding: 0;
    box-shadow: none;
    margin: 0;
}

.video-dialog.photo-lightbox #site-photo-dialog-image {
    width: auto;
    height: auto;
    max-width: min(70vw, calc(100vw - 220px));
    max-height: min(70dvh, calc(100dvh - 220px));
    display: block;
    border-radius: 0;
    object-fit: contain;
    background: transparent;
    padding: 0;
    box-shadow: none;
    margin: 0;
}

.site-photo-dialog.video-dialog.photo-lightbox {
    border: 0;
    padding: 0;
    background: #e7e7e7;
}

.dialog-back-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    right: auto;
    z-index: 6;
    background: transparent;
    color: #5d6166;
    border: 0;
    font-size: 0;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
}

.dialog-back-btn[hidden],
.dialog-favorite-btn[hidden],
.dialog-nav-btn[hidden] {
    display: none !important;
}

.dialog-back-btn::before {
    content: "←";
    font-size: 1.5rem;
    line-height: 1;
}

.dialog-back-btn:hover {
    background: transparent;
    color: #2f343a;
}

.dialog-favorite-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 5;
    width: 51px;
    height: 51px;
    min-width: 51px;
    min-height: 51px;
    border-radius: 0;
    background: transparent;
    border: 0;
    appearance: none;
    -webkit-appearance: none;
    padding: 0;
    display: grid;
    place-items: center;
    color: #fff;
    box-shadow: none;
}

.dialog-favorite-btn.active {
    border-color: transparent;
    color: inherit;
}

.dialog-favorite-btn .photo-favorite-icon {
    width: 36px;
    height: 36px;
}

.dialog-favorite-btn .photo-favorite-icon path {
    fill: none;
    stroke: #fff;
    stroke-width: 2.05;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: none;
}

.dialog-favorite-btn.active .photo-favorite-icon path {
    fill: #fff;
    stroke: #fff;
}

.dialog-favorite-btn:hover .photo-favorite-icon path {
    stroke: #fff;
}

.dialog-favorite-btn.active:hover .photo-favorite-icon path {
    fill: #fff;
    stroke: #fff;
}

.dialog-favorite-btn:hover,
.dialog-favorite-btn:focus,
.dialog-favorite-btn:focus-visible,
.dialog-favorite-btn:active {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.dialog-favorite-btn:focus,
.dialog-favorite-btn:focus-visible {
    outline: none;
    box-shadow: none;
    background: transparent !important;
    border-color: transparent !important;
}

.comment p {
    margin: 0;
    color: var(--ink);
    white-space: pre-wrap;
}

.comment-form {
    display: grid;
    gap: 8px;
}

.preview-ratio-wrap {
    width: 100%;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview-ratio-wrap.ratio-16x9 {
    max-width: 1200px;
    aspect-ratio: 16 / 9;
}

.preview-ratio-wrap.ratio-9x16 {
    max-width: 520px;
    aspect-ratio: 9 / 16;
}

.preview-ratio-wrap.ratio-4x5 {
    max-width: 760px;
    aspect-ratio: 4 / 5;
}

.preview-ratio-wrap.ratio-1x1 {
    max-width: 820px;
    aspect-ratio: 1 / 1;
}

.preview-image-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 0;
    overflow: visible;
    background: transparent;
}

.preview-image-wrap img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
    object-fit: contain;
    background: transparent;
}

.client-site-presentation .site-present-section.mode-photo .site-present-photo-hero-btn::after,
.client-site-presentation .site-present-section.mode-photo .site-present-photo-hero-overlay {
    display: none !important;
}

.preview-actions-with-download {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.preview-expiry-note {
    font-weight: 400;
    letter-spacing: 0.01em;
}

.preview-expiry-days {
    color: #e33636;
    font-weight: 700;
}

.preview-actions-with-download .preview-expiry-note {
    margin: 0;
    text-align: left;
}

.preview-actions-with-download .soft-btn {
    margin-left: auto;
}

.preview-expiry-centered {
    text-align: center;
    width: 100%;
}

.preview-page .topbar {
    margin-bottom: 34px;
}

.review-client.preview-page.dashboard-quick-preview.client-photo-mode .layout {
    width: min(1200px, 94vw);
    margin-top: 30px;
}

.review-client.preview-page.dashboard-quick-preview.client-photo-mode .preview-site-topbar {
    --preview-inline-gap: max(24px, calc((100vw - min(1200px, 94vw)) / 2));
    margin-bottom: 34px;
}

.review-client.preview-page.dashboard-quick-preview.client-photo-mode .client-photo-hero {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
    left: auto;
    right: auto;
    margin: 0 auto 28px;
    border: 0;
    border-radius: 0;
    background: #000;
}

.review-client.preview-page.dashboard-quick-preview.client-photo-mode .client-photo-hero::after {
    display: none;
}

.review-client.preview-page.dashboard-quick-preview.client-photo-mode .client-photo-hero-media {
    position: absolute;
    inset: 0;
}

.review-client.preview-page.dashboard-quick-preview.client-photo-mode .client-photo-hero img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
}

.review-client.preview-page.dashboard-quick-preview.client-photo-mode .client-photo-hero-overlay {
    min-height: 0;
    padding-bottom: 24px;
}

.review-client.preview-page.dashboard-quick-preview.client-photo-mode .video-grid.photo-grid {
    width: 100%;
    max-width: 1200px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-client.preview-page.dashboard-quick-preview.client-photo-mode .video-grid.photo-grid .thumb-box::after,
.review-client.preview-page.dashboard-quick-preview.client-photo-mode .video-grid.photo-grid .photo-liked-indicators,
.review-client.preview-page.dashboard-quick-preview.client-photo-mode .video-grid.photo-grid .photo-favorite-btn,
.review-client.preview-page.dashboard-quick-preview.client-photo-mode .dialog-favorite-btn {
    display: none !important;
}

@media (max-width: 1100px) {
    .layout {
        width: min(1200px, 96vw);
    }

    .review-admin .video-grid,
    .review-client .video-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .review-admin.files-mode .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .review-client.files-mode .video-grid {
        grid-template-columns: 1fr;
    }

    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .projects-dashboard .project-folder-card,
    .projects-dashboard .folder-body {
        min-width: 0;
    }

    .projects-dashboard .folder-body .share-actions {
        flex-wrap: nowrap;
        justify-content: flex-end;
    }

    .projects-dashboard .folder-body .project-action-btn {
        flex: 0 0 auto;
        justify-content: center;
        min-width: 0;
    }

    .grid-play-btn {
        left: 50%;
        bottom: 50%;
        transform: translate(-50%, 50%);
        font-size: 1.9rem;
    }

    .review-admin .video-grid.photo-grid {
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        justify-content: stretch;
    }

    .review-client.client-photo-mode .video-grid.photo-grid {
        width: min(1145px, 100%);
        grid-template-columns: repeat(3, minmax(0, 375px));
        justify-content: center;
    }

    .review-admin[data-project-mode="photo"].photo-grid-scale-50:not(.video-list-mode) .video-grid.photo-grid {
        width: 50%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .review-client.preview-page.client-photo-mode:not(.dashboard-quick-preview) .preview-site-topbar {
        --preview-inline-gap: max(24px, calc((100vw - min(1200px, 94vw)) / 2));
    }

    .video-dialog.audio-dialog .comments-wrap {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "list"
            "form";
    }

    .video-dialog.audio-dialog .comments-list {
        max-height: 260px;
    }

    .video-dialog.audio-dialog .thumb-form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .dialog-body {
        grid-template-columns: 1fr;
    }

    .comments-wrap {
        min-height: 320px;
    }

    .title-row {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .review-admin .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .review-admin.files-mode .video-grid,
    .review-client.files-mode .video-grid {
        grid-template-columns: 1fr;
    }

    .review-admin.files-mode #video-grid .file-folder-columns-shell,
    .review-client.files-mode #video-grid .file-folder-columns-shell {
        grid-template-columns: 1fr;
    }

    .review-admin[data-project-mode="video"].video-grid-scale-50:not(.video-list-mode) .video-grid {
        width: 50%;
        margin: 0 auto;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        row-gap: 10px;
        column-gap: 8px;
    }

    .review-client .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .client-top-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .review-admin .video-grid .clip-card.wide-169 {
        grid-column: span 2;
    }

    .review-client .video-grid .clip-card.wide-169 {
        grid-column: span 2;
    }

    .review-admin .video-grid.photo-grid {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
    }

    .review-client.client-photo-mode .video-grid.photo-grid {
        width: min(760px, 100%);
        grid-template-columns: repeat(2, minmax(0, 375px));
        justify-content: center;
    }

    .review-admin[data-project-mode="photo"].photo-grid-scale-50:not(.video-list-mode) .video-grid.photo-grid {
        width: 50%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .review-client.preview-page.client-photo-mode:not(.dashboard-quick-preview) .preview-site-topbar {
        --preview-inline-gap: max(24px, calc((100vw - min(1200px, 94vw)) / 2));
    }
}

@media (min-width: 769px) and (max-width: 900px) {
    .projects-dashboard .topbar {
        flex-wrap: wrap;
        row-gap: 10px;
        margin-bottom: 0;
    }

    .projects-dashboard .topbar .dashboard-brand-title-row {
        margin: -10px 0 0;
        align-self: flex-start;
        display: inline-flex;
        transform: translateY(-10px) scale(1);
        transform-origin: left top;
    }

    .projects-dashboard .topbar-actions {
        width: 100%;
        margin-left: 0;
        align-self: flex-start;
        justify-content: flex-start;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 4px;
        overflow: visible;
    }

    .projects-dashboard .topbar-actions .soft-btn {
        height: 36px;
        min-height: 36px;
        padding: 0 8px;
        border-radius: 11px;
        font-size: 0.76rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .projects-dashboard .topbar-actions .modules-menu {
        min-width: 0;
        flex: 1 1 0;
    }

    .projects-dashboard .topbar-actions #modules-menu-btn,
    .projects-dashboard .topbar-actions #open-media-search-btn {
        min-width: 0;
        flex: 1 1 0;
    }

    .projects-dashboard .topbar-actions #dashboard-menu-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        flex: 0 0 36px;
        padding: 0;
    }

    .projects-dashboard .topbar-actions .dashboard-menu {
        flex: 0 0 auto;
        min-width: 36px;
        margin-left: 0;
    }

    .projects-dashboard .topbar-actions #dashboard-create-folder-btn {
        display: none !important;
    }

    .projects-dashboard .dashboard-menu-popover .dashboard-view-inline-group {
        display: none !important;
    }

    .projects-dashboard .project-folders-spacer {
        min-height: 0;
        margin-bottom: 0;
    }

    .projects-dashboard .library-tabs-section {
        margin-top: 30px;
    }

    .projects-dashboard .project-grid,
    .projects-dashboard .pinned-projects-cards,
    .projects-dashboard .library-tab-cards {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        column-gap: 16px;
        row-gap: 10px;
    }

    .projects-dashboard:not(.dashboard-list-view) .project-folder-card.mobile-bottom-pill-card {
        position: relative;
        align-self: start;
        overflow: visible;
    }

    .projects-dashboard:not(.dashboard-list-view) .project-folder-card.mobile-bottom-pill-card .folder-body {
        position: relative;
        border-radius: 14px;
        padding-top: 10px;
        padding-bottom: 10px;
        overflow: visible;
    }

    .projects-dashboard:not(.dashboard-list-view) .project-folder-card.mobile-bottom-pill-card .folder-head-row {
        position: absolute;
        left: 50%;
        bottom: 0;
        width: auto;
        min-height: 0;
        height: auto;
        margin: 0;
        padding: 0;
        transform: translate(-50%, 0);
        display: flex;
        justify-content: center;
        z-index: 6;
        pointer-events: auto;
    }

    .projects-dashboard:not(.dashboard-list-view) .project-folder-card.mobile-bottom-pill-card .folder-top {
        position: static;
        margin: 0;
        pointer-events: auto;
        min-height: 36px;
        height: 36px;
        padding: 0 15px;
        gap: 12px;
    }

    .projects-dashboard:not(.dashboard-list-view) .project-folder-card.mobile-bottom-pill-card .folder-top-name,
    .projects-dashboard:not(.dashboard-list-view) .project-folder-card.mobile-bottom-pill-card .folder-top-label,
    .projects-dashboard:not(.dashboard-list-view) .project-folder-card.mobile-bottom-pill-card .folder-top-meta {
        font-size: 0.78rem;
    }

    .projects-dashboard:not(.dashboard-list-view) .project-folder-card.mobile-bottom-pill-card .folder-top-divider {
        height: 15px;
    }

    .projects-dashboard:not(.dashboard-list-view) .project-folder-card.project-create-card .folder-head-row.create-head-spacer {
        display: none;
    }

    .projects-dashboard:not(.dashboard-list-view) .project-folder-card.project-create-card .folder-body {
        padding-top: 10px;
    }

    .projects-dashboard:not(.dashboard-list-view) .project-folder-card.project-create-card .folder-actions-row.create-actions-spacer {
        display: none;
    }

    .projects-dashboard .library-tabs-header {
        display: flex;
        align-items: flex-end;
        gap: 10px;
    }

    .projects-dashboard .library-tabs-nav {
        display: flex;
        align-items: flex-end;
        width: 100%;
        gap: 0;
    }

    .projects-dashboard .library-tabs-nav .library-tab-toggle {
        flex: 1 1 0;
        min-width: 0;
        min-height: 34px;
        height: 34px;
        padding: 0 10px;
        font-size: 0.79rem;
        font-weight: 600;
        border-radius: 0;
    }

    .projects-dashboard .library-tabs-nav .library-tab-toggle:first-child:not(.library-tab-toggle-plus) {
        border-radius: 10px 0 0 0;
    }

    .projects-dashboard .library-tabs-nav .library-tab-toggle:last-child:not(.library-tab-toggle-plus) {
        border-radius: 0 10px 0 0;
    }

    .projects-dashboard .library-tabs-nav.is-single-tab .library-tab-toggle:not(.library-tab-toggle-plus) {
        border-radius: 10px 10px 0 0;
    }

    .projects-dashboard .library-tab-body {
        border-radius: 0 0 14px 14px;
        padding: 14px 12px 16px;
    }

    .projects-dashboard .library-tabs-section:not(.is-expanded) .library-tab-body {
        min-height: 42px;
        padding-top: 0;
        padding-bottom: 0;
    }
}

@media (max-width: 900px) {
    .review-client.preview-page.dashboard-quick-preview.client-photo-mode .video-grid.photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .review-client.preview-page.dashboard-quick-preview.client-photo-mode .video-grid.photo-grid {
        grid-template-columns: 1fr;
    }

    .review-client.preview-page.dashboard-quick-preview.client-photo-mode .client-photo-hero {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 768px) {
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="search"],
    input[type="url"],
    input[type="tel"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px !important;
    }

    .layout {
        margin: 14px auto 28px;
    }

    .review-admin[data-project-mode="video"] .project-header-sticky {
        top: 0;
        padding-top: calc(8px + env(safe-area-inset-top, 0px));
    }

    .review-admin[data-project-mode="video"] .project-header-sticky::before {
        top: calc(-1 * env(safe-area-inset-top, 0px));
        height: calc(100% + env(safe-area-inset-top, 0px));
    }

    .review-admin[data-project-mode="video"] .project-header-sticky::after {
        top: calc(-40px - env(safe-area-inset-top, 0px));
        height: calc(40px + env(safe-area-inset-top, 0px));
    }

    .topbar {
        align-items: flex-start;
        gap: 12px;
    }

    .brand-logo {
        height: 46px;
    }

    .projects-dashboard .topbar,
    .review-admin .topbar,
    .review-client .topbar {
        flex-wrap: nowrap;
        align-items: flex-start;
    }

    .projects-dashboard .topbar {
        flex-wrap: wrap;
        row-gap: 10px;
        margin-bottom: 0;
    }

    .projects-dashboard .topbar .dashboard-brand-title-row {
        margin: -10px 0 0;
        align-self: flex-start;
        display: block;
        transform: translateY(-10px) scale(1);
        transform-origin: left top;
    }

    .projects-dashboard .topbar .dashboard-brand-title-row {
        display: inline-flex;
    }

    .projects-dashboard .topbar-actions,
    .review-admin .topbar-actions,
    .review-client .client-top-actions {
        width: auto;
        margin-left: auto;
        justify-content: flex-end;
        flex-wrap: wrap;
        row-gap: 6px;
    }

    .projects-dashboard .topbar-actions {
        width: 100%;
        margin-left: 0;
        align-self: flex-start;
        justify-content: flex-start;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 4px;
        overflow: visible;
    }

    .projects-dashboard .topbar-actions .soft-btn {
        height: 36px;
        min-height: 36px;
        padding: 0 8px;
        border-radius: 11px;
        font-size: 0.76rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .projects-dashboard .topbar-actions .pin-mode-menu {
        min-width: 0;
        flex: 1 1 0;
    }

    .projects-dashboard .topbar-actions .modules-menu {
        min-width: 0;
        flex: 1 1 0;
    }

    .projects-dashboard .topbar-actions #dashboard-delete-selection-btn,
    .projects-dashboard .topbar-actions #pin-mode-btn,
    .projects-dashboard .topbar-actions #modules-menu-btn,
    .projects-dashboard .topbar-actions #manage-client-sites-btn,
    .projects-dashboard .topbar-actions #open-media-search-btn {
        min-width: 0;
    }

    .projects-dashboard .topbar-actions #dashboard-delete-selection-btn,
    .projects-dashboard .topbar-actions #modules-menu-btn,
    .projects-dashboard .topbar-actions #manage-client-sites-btn,
    .projects-dashboard .topbar-actions #open-media-search-btn {
        flex: 1 1 0;
    }

    .projects-dashboard .topbar-actions #pin-mode-btn,
    .projects-dashboard .topbar-actions #modules-menu-btn {
        width: 100%;
    }

    .projects-dashboard .topbar-actions .modules-menu-popover {
        width: min(230px, 92vw);
    }

    .projects-dashboard .topbar-actions #dashboard-create-blog-btn {
        flex: 1 1 0;
    }

    .projects-dashboard .topbar-actions #dashboard-menu-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        flex: 0 0 36px;
        padding: 0;
    }

    .projects-dashboard .topbar-actions .dashboard-menu {
        flex: 0 0 auto;
        min-width: 36px;
        margin-left: 0;
    }

    .projects-dashboard .topbar-actions #dashboard-create-folder-btn {
        display: none !important;
    }

    .projects-dashboard .dashboard-menu-popover .dashboard-view-inline-group {
        display: none !important;
    }

    .projects-dashboard .dashboard-sharepoints-mode-pills {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }

    .projects-dashboard .dashboard-sharepoints-mode-pill {
        min-height: 36px;
        height: 36px;
        padding: 0 8px !important;
        font-size: 0.8rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .blog-studio-shell {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .blog-studio-sidebar {
        max-height: 220px;
    }

    .blog-editor-row {
        grid-template-columns: 1fr;
    }

    .blog-block-card-head,
    .blog-block-actions,
    .blog-block-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .blog-block-size-row {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .projects-dashboard .project-folders-spacer {
        min-height: 0;
        margin-bottom: 0;
    }

    .review-admin[data-project-mode="video"] .topbar-actions,
    .review-admin[data-project-mode="photo"] .topbar-actions,
    .review-admin[data-project-mode="audio"] .topbar-actions {
        width: 100%;
        display: flex;
        flex-wrap: nowrap !important;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        row-gap: 0;
        overflow: visible;
    }

    .review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone,
    .review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone,
    .review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone {
        width: 96px !important;
        min-width: 96px !important;
        max-width: 96px !important;
        flex: 0 0 96px !important;
        flex-basis: 96px !important;
        height: 36px;
        min-height: 36px;
        padding: 0 14px;
    }

    .review-admin[data-project-mode="video"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone > p,
    .review-admin[data-project-mode="photo"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone > p,
    .review-admin[data-project-mode="audio"] .project-header-sticky .topbar-actions #dropzone.topbar-upload-dropzone > p {
        font-size: 0.84rem;
        font-weight: 500;
        line-height: 1;
    }

    .review-admin[data-project-mode="video"] .topbar-actions #bulk-delete-btn,
    .review-admin[data-project-mode="photo"] .topbar-actions #bulk-delete-btn,
    .review-admin[data-project-mode="audio"] .topbar-actions #bulk-delete-btn {
        width: auto;
        min-width: 96px;
        flex: 0 0 auto;
        height: 36px !important;
        min-height: 36px !important;
        padding: 0 12px !important;
        margin-right: 0;
    }

    .review-admin[data-project-mode="video"] .topbar-actions #share-client-btn,
    .review-admin[data-project-mode="photo"] .topbar-actions #share-client-btn,
    .review-admin[data-project-mode="audio"] .topbar-actions #share-client-btn {
        margin-left: auto;
    }

    .review-admin[data-project-mode="video"] .topbar-actions #share-client-btn,
    .review-admin[data-project-mode="photo"] .topbar-actions #share-client-btn,
    .review-admin[data-project-mode="audio"] .topbar-actions #share-client-btn,
    .review-admin[data-project-mode="video"] .topbar-actions .dashboard-return-btn,
    .review-admin[data-project-mode="photo"] .topbar-actions .dashboard-return-btn,
    .review-admin[data-project-mode="audio"] .topbar-actions .dashboard-return-btn {
        height: 36px !important;
        min-height: 36px !important;
        padding: 0 12px !important;
        font-size: 0.83rem !important;
    }

    .review-admin[data-project-mode="video"] .topbar-actions .sync-menu,
    .review-admin[data-project-mode="photo"] .topbar-actions .sync-menu,
    .review-admin[data-project-mode="audio"] .topbar-actions .sync-menu {
        flex: 0 0 auto;
        min-width: 36px;
    }

    .review-admin[data-project-mode="video"] .topbar-actions .sync-menu .dashboard-menu-btn,
    .review-admin[data-project-mode="photo"] .topbar-actions .sync-menu .dashboard-menu-btn,
    .review-admin[data-project-mode="audio"] .topbar-actions .sync-menu .dashboard-menu-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        padding: 0 !important;
    }

    .review-admin[data-project-mode="video"] .sync-menu-popover .dashboard-view-inline-group,
    .review-admin[data-project-mode="photo"] .sync-menu-popover .dashboard-view-inline-group,
    .review-admin[data-project-mode="audio"] .sync-menu-popover .dashboard-view-inline-group {
        display: none !important;
    }

    .review-admin[data-project-mode="photo"] .topbar-actions #show-favorites-btn {
        display: none !important;
    }

    .review-admin[data-project-mode="audio"] .topbar-actions {
        gap: 6px;
    }

    .review-admin[data-project-mode="audio"] .topbar-actions #share-client-btn {
        order: 20;
        margin-left: 0;
        min-width: 66px;
        padding: 0 10px !important;
    }

    .review-admin[data-project-mode="audio"] .topbar-actions .audio-editor-playback-controls {
        order: 29;
        gap: 6px;
        flex: 0 0 auto;
    }

    .review-admin[data-project-mode="audio"] .topbar-actions .audio-editor-playback-controls .site-present-audio-mode-btn {
        width: 36px;
        min-width: 36px;
        height: 36px !important;
        min-height: 36px !important;
    }

    .review-admin[data-project-mode="audio"] .topbar-actions .audio-editor-playback-controls .site-present-audio-mode-btn svg {
        width: 16px !important;
        height: 16px !important;
    }

    .review-admin[data-project-mode="audio"] .topbar-actions .audio-editor-playback-controls .site-present-audio-mode-btn[data-audio-playback-mode="continuous"] svg {
        width: 13px !important;
        height: 13px !important;
    }

    .review-admin[data-project-mode="audio"] .topbar-actions .playlist-topbar-menu {
        display: inline-flex !important;
        order: 30;
        flex: 0 0 auto;
    }

    .review-admin[data-project-mode="audio"] .topbar-actions #create-mix-btn {
        min-width: 98px;
        height: 36px !important;
        min-height: 36px !important;
        padding: 0 10px !important;
        font-size: 0.78rem !important;
        white-space: nowrap;
    }

    .review-admin[data-project-mode="audio"] .topbar-actions .dashboard-return-btn {
        order: 50;
        min-width: 98px;
        padding: 0 10px !important;
        gap: 6px;
    }

    .review-admin[data-project-mode="audio"] .topbar-actions .sync-menu {
        order: 40;
        margin-left: 0;
    }

    .review-admin[data-project-mode="audio"] .audio-waveform-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        align-items: center;
    }

    .review-admin[data-project-mode="audio"] .audio-inline-actions .soft-btn.edit-track-btn {
        min-width: 56px;
        width: 56px;
        height: 34px;
        min-height: 34px;
        padding: 0 8px;
        border-radius: 10px;
        font-size: 0.8rem;
        line-height: 1;
    }

    .review-admin[data-project-mode="audio"] .audio-waveform {
        height: 38px;
    }

    .review-admin[data-project-mode="audio"] .audio-main-workspace.is-mobile-split,
    .review-admin[data-project-mode="audio"] .audio-main-workspace.is-mobile-split.is-playlist-open {
        grid-template-columns: minmax(136px, 40%) minmax(0, 1fr) !important;
        grid-template-areas:
            "sidebar panel"
            "content content";
        gap: 10px;
        align-items: start;
    }

    .review-admin[data-project-mode="audio"] .audio-main-workspace.is-mobile-split #audio-library-sidebar {
        grid-area: sidebar;
        order: 1;
        min-width: 0;
    }

    .review-admin[data-project-mode="audio"] .audio-main-workspace.is-mobile-split #playlist-upload-panel {
        grid-area: panel;
        order: 2;
        display: grid !important;
        position: static;
        margin-bottom: 0;
        min-width: 0;
        padding: 10px;
        gap: 8px;
        border: 1px dashed #c6d6e8;
        border-radius: 14px;
        background: #ffffff;
        text-align: center;
    }

    .review-admin[data-project-mode="audio"] .audio-main-workspace.is-mobile-split #audio-library-content {
        grid-area: content;
        order: 3;
        min-width: 0;
    }

    .review-admin[data-project-mode="audio"] .audio-library-sidebar.is-mobile-split {
        padding: 10px 8px 8px;
    }

    .review-admin[data-project-mode="audio"] .audio-library-sidebar.is-mobile-split .audio-library-sidebar-head {
        margin-bottom: 8px;
    }

    .review-admin[data-project-mode="audio"] .audio-library-sidebar-tabs.is-mobile-split {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
        gap: 8px;
        align-items: center;
        margin-left: 0;
    }

    .review-admin[data-project-mode="audio"] .audio-library-sidebar-tabs.is-mobile-split .audio-library-sidebar-tab-playlists {
        margin-left: 0;
    }

    .review-admin[data-project-mode="audio"] .audio-library-sidebar-tabs.is-mobile-split .audio-library-sidebar-tab {
        min-height: 28px;
        border-radius: 999px;
        font-size: 0.78rem;
        font-weight: 500;
        justify-content: center;
    }

    .review-admin[data-project-mode="audio"] .audio-library-sidebar-tabs.is-mobile-split .audio-library-sidebar-tab.is-active {
        background: #bf95c8 !important;
        color: #ffffff !important;
    }

    .review-admin[data-project-mode="audio"] .audio-library-sidebar-tabs.is-mobile-split .audio-library-sidebar-create-btn {
        display: inline-flex !important;
        margin: 0;
    }

    .review-admin[data-project-mode="audio"] .audio-library-sidebar.is-mobile-split .audio-library-list {
        display: grid;
        gap: 6px;
        max-height: 182px;
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 2px;
    }

    .review-admin[data-project-mode="audio"] .audio-library-sidebar.is-mobile-split .audio-library-item {
        min-height: 36px;
        font-size: 0.84rem;
        padding: 0 8px;
    }

    .review-admin[data-project-mode="audio"] .audio-library-sidebar.is-mobile-split .audio-library-group-children {
        padding-left: 8px;
    }

    .review-admin[data-project-mode="audio"] .audio-main-workspace.is-mobile-split #playlist-target-trigger {
        min-height: 44px;
        height: 44px;
        border-radius: 14px;
        border-color: #cfdae6;
        font-size: 1.02rem;
    }

    .review-admin[data-project-mode="audio"] .audio-main-workspace.is-mobile-split #playlist-target-label {
        padding: 0 42px;
        font-size: 1.02rem;
        font-weight: 500;
    }

    .review-admin[data-project-mode="audio"] .audio-main-workspace.is-mobile-split #playlist-dropzone {
        min-height: 98px;
        padding: 0 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-color: #c6d6e8;
        background: #fcfeff;
        text-align: center;
    }

    .review-admin[data-project-mode="audio"] .audio-main-workspace.is-mobile-split .playlist-track-list-wrap {
        min-height: 52px;
        padding: 8px;
        border: 1px solid #dce5ef;
        border-radius: 12px;
        background: #ffffff;
        display: grid;
        gap: 6px;
    }

    .review-admin[data-project-mode="audio"] .audio-main-workspace.is-mobile-split .playlist-track-list {
        max-height: 124px;
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 2px;
    }

    .review-admin[data-project-mode="audio"] .audio-main-workspace.is-mobile-split .playlist-track-list-head {
        padding-top: 0;
        padding-bottom: 0;
    }

    .review-admin[data-project-mode="video"] .project-card-video-controls {
        grid-template-columns: 36px minmax(0, 1fr) auto 36px;
        gap: 8px;
    }

    .review-admin[data-project-mode="video"] .project-card-video-controls .project-card-video-toggle {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        border-radius: 10px;
    }

    .review-admin[data-project-mode="video"] .project-card-video-controls .project-card-video-fullscreen-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        border-radius: 10px;
    }

    .review-admin[data-project-mode="video"] .video-dialog {
        position: fixed;
        inset: 0;
        width: 100vw;
        max-width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        margin: 0;
        border-radius: 0;
        overflow: hidden;
    }

    .review-admin[data-project-mode="video"] .video-dialog .dialog-head {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "title close"
            "meta meta";
        align-items: start;
        row-gap: 6px;
        column-gap: 8px;
        padding: 10px 12px;
        padding-right: 12px;
    }

    .review-admin[data-project-mode="video"] .video-dialog #dialog-title {
        grid-area: title;
        padding-left: 0;
        margin: 0;
        font-size: 0.98rem;
        line-height: 1.25;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .review-admin[data-project-mode="video"] .video-dialog .dialog-head-meta {
        grid-area: meta;
        justify-self: start;
        align-self: start;
        text-align: left;
        white-space: normal;
        font-size: 0.72rem;
        line-height: 1.2;
        margin: 0;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .review-admin[data-project-mode="video"] .video-dialog #close-dialog {
        grid-area: close;
        position: static;
        transform: none;
        justify-self: end;
        align-self: start;
        height: 34px;
        min-height: 34px;
        padding: 0 12px;
        font-size: 0.78rem;
    }

    .review-admin[data-project-mode="video"] .video-dialog .dialog-body {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
        max-height: calc(100dvh - 86px - env(safe-area-inset-top, 0px));
        overflow-y: auto;
    }

    .review-admin[data-project-mode="video"] .video-dialog .preview-wrap,
    .review-admin[data-project-mode="video"] .video-dialog .comments-wrap {
        padding: 10px;
    }

    .review-admin[data-project-mode="video"] .video-dialog #dialog-video,
    .review-admin[data-project-mode="video"] .video-dialog #dialog-image {
        max-height: 42vh;
    }

    .review-admin[data-project-mode="video"] .video-dialog .thumb-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .review-admin[data-project-mode="video"] .video-dialog #dialog-rename-btn,
    .review-admin[data-project-mode="video"] .video-dialog #dialog-replace-btn,
    .review-admin[data-project-mode="video"] .video-dialog #dialog-download {
        display: none !important;
    }

    .review-admin[data-project-mode="video"] .video-dialog .thumb-form > * {
        min-width: 0;
    }

    .review-admin[data-project-mode="video"] .video-dialog .comments-wrap {
        min-height: 0;
        gap: 6px;
    }

    .review-admin[data-project-mode="video"] .video-dialog .comments-list {
        max-height: min(26vh, 220px);
    }

    .review-admin[data-project-mode="video"] .video-dialog .comment-form {
        gap: 6px;
    }

    .review-admin[data-project-mode="video"] .video-dialog .comment-form #comment-message {
        min-height: 88px;
    }

    .review-client .video-dialog {
        position: fixed;
        inset: 0;
        width: 100vw;
        max-width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        margin: 0;
        border-radius: 0;
        overflow: hidden;
    }

    .review-client .video-dialog .dialog-head {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "title close"
            "meta meta";
        align-items: start;
        row-gap: 6px;
        column-gap: 8px;
        padding: 10px 12px;
        padding-right: 12px;
    }

    .review-client .video-dialog #dialog-title {
        grid-area: title;
        padding-left: 0;
        margin: 0;
        font-size: 0.98rem;
        line-height: 1.25;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .review-client .video-dialog .dialog-head-meta {
        grid-area: meta;
        justify-self: start;
        align-self: start;
        text-align: left;
        white-space: normal;
        font-size: 0.72rem;
        line-height: 1.2;
        margin: 0;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .review-client .video-dialog #close-dialog {
        grid-area: close;
        position: static;
        transform: none;
        justify-self: end;
        align-self: start;
        height: 34px;
        min-height: 34px;
        padding: 0 12px;
        font-size: 0.78rem;
    }

    .review-client .video-dialog .dialog-body {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px;
        max-height: calc(100dvh - 86px - env(safe-area-inset-top, 0px));
        overflow-y: auto;
    }

    .review-client .video-dialog .preview-wrap,
    .review-client .video-dialog .comments-wrap {
        padding: 8px;
    }

    .review-client .video-dialog #dialog-video,
    .review-client .video-dialog #dialog-image {
        max-height: 36vh;
    }

    .review-client .video-dialog .comments-wrap {
        min-height: 0;
        gap: 4px;
        grid-template-rows: auto minmax(0, 112px) auto;
    }

    .review-client .video-dialog .comments-list {
        max-height: 112px !important;
        padding: 6px;
    }

    .review-client .video-dialog .comment-form {
        gap: 4px;
    }

    .review-client .video-dialog .comment-form #comment-author {
        min-height: 34px;
        height: 34px;
        padding: 0 10px;
        font-size: 0.82rem;
    }

    .review-client .video-dialog .comment-form #comment-message {
        min-height: 58px;
        max-height: 74px;
        padding: 8px 10px;
        font-size: 0.82rem;
    }

    .review-client .video-dialog .comment-form button[type="submit"] {
        min-height: 34px;
        height: 34px;
        font-size: 0.82rem;
    }

    .review-client .video-dialog .comment {
        padding: 6px 8px;
        margin-bottom: 4px;
    }

    .review-client .video-dialog .comment-head {
        gap: 6px;
    }

    .review-client .video-dialog .comment-head-main {
        flex: 1 1 auto;
    }

    .review-client .video-dialog .comment-meta {
        font-size: 0.58rem;
    }

    .review-client .video-dialog .comment-head-actions {
        margin-left: 0;
    }

    .site-video-comment-dialog {
        display: flex;
        flex-direction: column;
        width: 100vw;
        max-width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        margin: 0;
        border-radius: 0;
        padding: 12px;
        overflow: hidden;
    }

    .site-video-comment-dialog-list {
        max-height: none;
        flex: 1 1 auto;
        min-height: 0;
        padding: 6px;
    }

    .site-video-comment-row {
        padding: 6px 8px;
        gap: 4px;
    }

    .site-video-comment-dialog-form {
        gap: 6px;
    }

    .site-video-comment-dialog-form input {
        min-height: 34px;
        height: 34px;
        padding: 0 10px;
        font-size: 0.82rem;
    }

    .site-video-comment-dialog-form textarea {
        min-height: 58px;
        max-height: 74px;
        padding: 8px 10px;
        font-size: 0.82rem;
    }

    .site-video-comment-dialog-actions .soft-btn {
        min-height: 34px;
        height: 34px;
        font-size: 0.82rem;
    }

    .review-admin[data-project-mode="video"].video-selection-active .topbar-actions #bulk-delete-btn {
        margin-right: 0;
    }

    .review-admin #share-details {
        margin-bottom: 12px;
        padding: 10px;
        border-radius: 12px;
    }

    .review-admin #share-details .share-details-head {
        margin-bottom: 10px;
    }

    .review-admin #share-details .share-details-head h2 {
        margin: 0;
        font-size: 0.98rem;
        line-height: 1.2;
    }

    .review-admin #share-details .share-library-layout {
        gap: 10px;
    }

    .review-admin #share-details .share-access-panel {
        gap: 10px;
        padding: 10px;
        overflow: visible;
    }

    .review-admin #share-details .share-grid-video-pills {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        align-items: stretch;
    }

    .review-admin #share-details .share-grid-video-pills > * {
        min-width: 0;
    }

    .review-admin #share-details .share-grid-video-pills #share-name,
    .review-admin #share-details .share-grid-video-pills #create-share-login {
        grid-column: 1 / -1;
    }

    .review-admin #share-details .share-grid-video-pills .soft-btn,
    .review-admin #share-details .share-grid-video-pills .share-pill-input {
        min-height: 40px;
        height: 40px;
        font-size: 0.88rem;
    }

    .review-admin #share-details .share-grid-video-pills .share-pill-input {
        padding: 0 12px;
    }

    .review-admin #share-details .share-grid-video-pills .share-video-pill-field.is-disabled {
        display: none;
    }

    .review-admin[data-project-mode="video"] #share-details .share-grid-video-pills {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        column-gap: 6px;
        row-gap: 6px;
        align-items: stretch;
    }

    .review-admin[data-project-mode="video"] #share-details .share-grid-video-pills #share-name {
        grid-column: 1 / -1;
    }

    .review-admin[data-project-mode="video"] #share-details .share-grid-video-pills #share-require-login-toggle {
        grid-column: 1 / span 2;
    }

    .review-admin[data-project-mode="video"] #share-details .share-grid-video-pills #share-download-toggle-btn {
        grid-column: 3 / span 2;
    }

    .review-admin[data-project-mode="video"] #share-details .share-grid-video-pills #share-comments-toggle-btn {
        grid-column: 5 / span 2;
    }

    .review-admin[data-project-mode="video"] #share-details .share-grid-video-pills #share-username-field {
        grid-column: 1 / span 3;
    }

    .review-admin[data-project-mode="video"] #share-details .share-grid-video-pills #share-password-field {
        grid-column: 4 / span 3;
    }

    .review-admin[data-project-mode="video"] #share-details .share-grid-video-pills #create-share-login {
        grid-column: 1 / -1;
    }

    .review-admin[data-project-mode="video"] #share-details .share-grid-video-pills .soft-btn,
    .review-admin[data-project-mode="video"] #share-details .share-grid-video-pills .share-pill-input {
        min-height: 36px;
        height: 36px;
        min-width: 0;
        padding: 0 8px;
        font-size: 0.76rem;
    }

    .review-admin[data-project-mode="video"] #share-details .share-grid-video-pills .share-pill-input {
        padding: 0 10px;
    }

    .review-admin[data-project-mode="video"] #share-access-list .share-access-row-compact .share-access-video-head {
        min-height: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        row-gap: 6px;
        padding: 6px 8px 8px;
        align-items: flex-start;
    }

    .review-admin[data-project-mode="video"] #share-access-list .share-access-row-compact .share-access-video-title {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        row-gap: 5px;
        width: 100%;
        min-width: 0;
        align-items: start;
    }

    .review-admin[data-project-mode="video"] #share-access-list .share-access-row-compact .share-access-video-alias {
        font-size: 0.98rem;
        line-height: 1.05;
    }

    .review-admin[data-project-mode="video"] #share-access-list .share-access-row-compact .share-access-title-divider {
        display: none !important;
    }

    .review-admin[data-project-mode="video"] #share-access-list .share-access-row-compact .share-access-state-pills {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
        width: 100%;
        min-width: 0;
    }

    .review-admin[data-project-mode="video"] #share-access-list .share-access-row-compact .share-access-state-pill {
        min-width: 0;
        width: 100%;
        min-height: 26px;
        height: 26px;
        padding: 0 4px !important;
        border-radius: 9px;
        font-size: 0.58rem !important;
        line-height: 1.1 !important;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .review-admin[data-project-mode="photo"] #share-access-list .share-access-row-compact .share-access-video-head {
        min-height: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        row-gap: 6px;
        padding: 6px 8px 8px;
        align-items: flex-start;
    }

    .review-admin[data-project-mode="photo"] #share-access-list .share-access-row-compact .share-access-video-title {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        row-gap: 5px;
        width: 100%;
        min-width: 0;
        align-items: start;
    }

    .review-admin[data-project-mode="photo"] #share-access-list .share-access-row-compact .share-access-title-divider {
        display: none !important;
    }

    .review-admin[data-project-mode="photo"] #share-access-list .share-access-row-compact .share-access-state-pills {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
        width: 100%;
        min-width: 0;
    }

    .review-admin[data-project-mode="photo"] #share-access-list .share-access-row-compact .share-access-state-pill {
        min-width: 0;
        width: 100%;
        min-height: 26px;
        height: 26px;
        padding: 0 4px !important;
        border-radius: 9px;
        font-size: 0.62rem !important;
        line-height: 1.1 !important;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .review-admin[data-project-mode="video"] #share-access-list .share-access-row-compact .share-access-video-actions,
    .review-admin[data-project-mode="photo"] #share-access-list .share-access-row-compact .share-access-video-actions,
    .review-admin[data-project-mode="audio"] #share-access-list .share-access-row-compact .share-access-video-actions,
    .review-admin[data-project-mode="files"] #share-access-list .share-access-row-compact .share-access-video-actions {
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
        width: 100%;
        margin-left: 0;
    }

    .review-admin[data-project-mode="video"] #share-access-list .share-access-row-compact .share-access-video-actions .soft-btn,
    .review-admin[data-project-mode="photo"] #share-access-list .share-access-row-compact .share-access-video-actions .soft-btn,
    .review-admin[data-project-mode="audio"] #share-access-list .share-access-row-compact .share-access-video-actions .soft-btn,
    .review-admin[data-project-mode="files"] #share-access-list .share-access-row-compact .share-access-video-actions .soft-btn {
        min-width: 0;
        flex: 1 1 0;
        min-height: 32px;
        height: 32px;
        padding: 0 6px !important;
        border-radius: 10px;
        font-size: 0.66rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .review-admin #share-details .share-grid,
    .review-admin #share-details .share-grid-compact {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .review-admin #share-details .share-grid-compact {
        align-items: stretch;
    }

    .review-admin #share-details .share-grid .soft-btn,
    .review-admin #share-details .share-grid .share-pill-input {
        min-height: 40px;
        height: 40px;
        font-size: 0.88rem;
    }

    .review-admin[data-project-mode="video"] .share-access-list-wrap,
    .review-admin[data-project-mode="photo"] .share-access-list-wrap,
    .review-admin[data-project-mode="audio"] .share-access-list-wrap,
    .review-admin[data-project-mode="files"] .share-access-list-wrap {
        margin-top: 10px;
    }

    .review-admin[data-project-mode="video"] .share-projects-wrap,
    .review-admin[data-project-mode="photo"] .share-projects-wrap,
    .review-admin[data-project-mode="audio"] .share-projects-wrap,
    .review-admin[data-project-mode="files"] .share-projects-wrap {
        margin-top: 8px;
        margin-bottom: 8px;
    }

    .review-admin #share-details .share-projects-wrap .share-access-summary-collapsible-summary {
        min-height: 40px;
        padding: 0 12px;
        font-size: 0.86rem;
    }

    .projects-dashboard .library-tabs-section {
        margin-top: 30px;
    }

    .upload-activity-popover {
        right: -4px;
        width: min(320px, 90vw);
    }

    .project-nav-btn,
    .soft-btn,
    button {
        min-height: 44px;
    }

    .client-sites-dialog .client-site-card .soft-btn,
    .client-sites-dialog .client-site-card .project-action-btn,
    .portfolio-inline-dialog-body .client-site-card .soft-btn,
    .portfolio-inline-dialog-body .client-site-card .project-action-btn {
        min-height: var(--dash-pill-height) !important;
        height: var(--dash-pill-height) !important;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .projects-dashboard .project-grid,
    .projects-dashboard .pinned-projects-cards,
    .projects-dashboard .library-tab-cards {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        column-gap: 16px;
        row-gap: 10px;
    }

    .projects-dashboard:not(.dashboard-list-view) .project-folder-card.mobile-bottom-pill-card {
        position: relative;
        align-self: start;
        overflow: visible;
    }

    .projects-dashboard:not(.dashboard-list-view) .project-folder-card.mobile-bottom-pill-card .folder-body {
        position: relative;
        border-radius: 14px;
        padding-top: 10px;
        padding-bottom: 10px;
        overflow: visible;
    }

    .projects-dashboard:not(.dashboard-list-view) .project-folder-card.mobile-bottom-pill-card .folder-head-row {
        position: absolute;
        left: 50%;
        bottom: 0;
        width: auto;
        min-height: 0;
        height: auto;
        margin: 0;
        padding: 0;
        transform: translate(-50%, 0);
        display: flex;
        justify-content: center;
        z-index: 6;
        pointer-events: auto;
    }

    .projects-dashboard:not(.dashboard-list-view) .project-folder-card.mobile-bottom-pill-card .folder-top {
        position: static;
        margin: 0;
        pointer-events: auto;
        min-height: 36px;
        height: 36px;
        padding: 0 15px;
        gap: 12px;
    }

    .projects-dashboard:not(.dashboard-list-view) .project-folder-card.mobile-bottom-pill-card .folder-top-name,
    .projects-dashboard:not(.dashboard-list-view) .project-folder-card.mobile-bottom-pill-card .folder-top-label,
    .projects-dashboard:not(.dashboard-list-view) .project-folder-card.mobile-bottom-pill-card .folder-top-meta {
        font-size: 0.78rem;
    }

    .projects-dashboard:not(.dashboard-list-view) .project-folder-card.mobile-bottom-pill-card .folder-top-divider {
        height: 15px;
    }

    /* Mobile row alignment: keep create card container aligned with neighboring cards. */
    .projects-dashboard:not(.dashboard-list-view) .project-folder-card.project-create-card .folder-head-row.create-head-spacer {
        display: none;
    }

    .projects-dashboard:not(.dashboard-list-view) .project-folder-card.project-create-card .folder-body {
        padding-top: 10px;
    }

    .projects-dashboard:not(.dashboard-list-view) .project-folder-card.project-create-card .folder-actions-row.create-actions-spacer {
        display: none;
    }

    .projects-dashboard .library-tabs-header {
        display: flex;
        align-items: flex-end;
        gap: 10px;
    }

    .projects-dashboard .library-tabs-nav {
        display: flex;
        align-items: flex-end;
        width: 100%;
        gap: 0;
    }

    .projects-dashboard .library-tabs-nav .library-tab-toggle {
        flex: 1 1 0;
        min-width: 0;
        min-height: 34px;
        height: 34px;
        padding: 0 10px;
        font-size: 0.79rem;
        font-weight: 600;
        border-radius: 0;
    }

    .projects-dashboard .library-tabs-nav .library-tab-toggle:first-child:not(.library-tab-toggle-plus) {
        border-radius: 10px 0 0 0;
    }

    .projects-dashboard .library-tabs-nav .library-tab-toggle:last-child:not(.library-tab-toggle-plus) {
        border-radius: 0 10px 0 0;
    }

    .projects-dashboard .library-tabs-nav.is-single-tab .library-tab-toggle:not(.library-tab-toggle-plus) {
        border-radius: 10px 10px 0 0;
    }

    .projects-dashboard .library-audio-filter-row {
        margin-left: auto;
        transform: translateY(-3px);
        padding-bottom: 0;
    }

    .projects-dashboard .library-tab-body {
        border-radius: 0 0 14px 14px;
        padding: 14px 12px 16px;
    }

    .projects-dashboard .library-tabs-section:not(.is-expanded) .library-tab-body {
        min-height: 42px;
        padding-top: 0;
        padding-bottom: 0;
    }

    .website-create-row,
    .client-site-card-head,
    .client-site-sections-head,
    .client-site-section-item,
    .client-site-summary-actions,
    .client-site-danger-row {
        align-items: stretch;
    }

    .client-site-editor-grid {
        grid-template-columns: 1fr;
    }

    .share-link-panel {
        grid-template-columns: 1fr;
    }

    .client-site-card-head,
    .client-site-section-item {
        flex-direction: column;
    }

    .client-site-section-summary {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .client-site-section-title-pill,
    .client-site-section-toggle-wrap {
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
    }

    .client-site-summary-actions,
    .client-site-section-controls {
        width: 100%;
    }

    .client-sites-dialog .website-create-panel,
    .portfolio-inline-dialog-body .website-create-panel {
        gap: 10px;
    }

    .client-sites-dialog .website-create-row,
    .portfolio-inline-dialog-body .website-create-row {
        grid-template-columns: 1fr;
        gap: 8px;
        align-items: stretch;
    }

    .client-sites-dialog .website-create-security,
    .portfolio-inline-dialog-body .website-create-security {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        white-space: normal;
    }

    .client-sites-dialog .website-protected-toggle,
    .client-sites-dialog .website-download-toggle,
    .client-sites-dialog .website-comments-toggle,
    .portfolio-inline-dialog-body .website-protected-toggle,
    .portfolio-inline-dialog-body .website-download-toggle,
    .portfolio-inline-dialog-body .website-comments-toggle {
        min-width: 0;
        width: 100%;
        min-height: 36px;
        height: 36px;
        padding: 0 8px;
        border-radius: 11px;
        font-size: 0.78rem;
    }

    .client-sites-dialog #client-site-name,
    .client-sites-dialog #client-site-username,
    .client-sites-dialog #client-site-password,
    .client-sites-dialog #create-client-site-btn,
    .portfolio-inline-dialog-body #client-site-name,
    .portfolio-inline-dialog-body #client-site-username,
    .portfolio-inline-dialog-body #client-site-password,
    .portfolio-inline-dialog-body #create-client-site-btn {
        width: 100%;
        min-width: 0;
        min-height: 36px;
        height: 36px;
        border-radius: 11px;
    }

    .folder-body {
        min-height: 0;
        padding: 12px;
    }

    .folder-preview {
        min-height: 0;
    }

    .dialog-head {
        flex-wrap: wrap;
        gap: 10px;
    }

    .dialog-head-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .video-dialog {
        width: 100vw;
        max-width: 100vw;
        max-height: 100dvh;
        margin: 0;
        border-radius: 0;
    }
}

@media (min-width: 621px) and (max-width: 768px) {
    .projects-dashboard:not(.dashboard-list-view):not(.dashboard-grid-scale-50) .project-grid,
    .projects-dashboard:not(.dashboard-list-view):not(.dashboard-grid-scale-50) .pinned-projects-cards,
    .projects-dashboard:not(.dashboard-list-view):not(.dashboard-grid-scale-50) .library-tab-cards {
        grid-template-columns: repeat(auto-fill, 240px);
        column-gap: 24px;
        row-gap: 24px;
    }

    .projects-dashboard:not(.dashboard-list-view):not(.dashboard-grid-scale-50) .project-folder-card .folder-body {
        padding: 28px 14px 0;
    }

    .projects-dashboard:not(.dashboard-list-view):not(.dashboard-grid-scale-50) .project-folder-card.project-create-card .folder-body {
        padding-top: 28px;
    }
}

@media (max-width: 620px) {
    .review-admin .video-grid {
        grid-template-columns: 1fr;
    }

    .review-client .video-grid {
        grid-template-columns: 1fr;
    }

    .review-admin .video-grid .clip-card.wide-169 {
        grid-column: span 1;
    }

    .review-client .video-grid .clip-card.wide-169 {
        grid-column: span 1;
    }

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

    .share-actions > * {
        width: 100%;
    }

    .website-create-row > *,
    .client-site-summary-actions > *,
    .client-site-section-toggle-wrap > *,
    .client-site-section-controls > *,
    .client-site-danger-row > * {
        width: 100%;
    }

    .project-panel {
        padding: 12px;
    }

    .dialog-body {
        padding: 8px;
        gap: 8px;
    }

    .preview-wrap,
    .comments-wrap {
        padding: 8px;
    }

    .review-admin .video-grid.photo-grid {
        width: 100%;
        grid-template-columns: repeat(1, minmax(0, 1fr));
        justify-content: stretch;
    }

    .review-client.client-photo-mode .video-grid.photo-grid {
        width: min(375px, 100%);
        grid-template-columns: repeat(1, minmax(0, 375px));
        justify-content: center;
    }

    .review-admin[data-project-mode="photo"].photo-grid-scale-50:not(.video-list-mode) .video-grid.photo-grid {
        width: 100%;
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .review-admin[data-project-mode="photo"].photo-grid-scale-50:not(.video-list-mode) #video-grid.video-grid.photo-grid {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .layout {
        width: 94vw;
    }

    .title-edit-wrap {
        width: 100%;
        flex-wrap: wrap;
    }

    #app-title-input {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* iPhone Safari-only runtime class (set in app.js):
       use a fixed header stack and measured layout offset to prevent
       video content bleeding into the top browser/status strip. */
    html.ios-safari-video-top-mask::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: var(--ios-video-header-offset, calc(120px + env(safe-area-inset-top, 0px)));
        background: #fff;
        z-index: 10000;
        pointer-events: none;
    }

    html.ios-safari-video-top-mask body.review-admin[data-project-mode="video"] .layout {
        margin-top: 0 !important;
        padding-top: var(--ios-video-header-offset, calc(120px + env(safe-area-inset-top, 0px))) !important;
    }

    html.ios-safari-video-top-mask body.review-admin[data-project-mode="video"] .project-header-sticky {
        position: fixed !important;
        top: 0 !important;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0 !important;
        padding-left: max(8px, env(safe-area-inset-left, 0px));
        padding-right: max(8px, env(safe-area-inset-right, 0px));
        z-index: 10001 !important;
    }
}

/* Final mobile guardrails for client/library comment dialogs.
   Kept near the end so it wins over earlier breakpoint rules. */
@media (max-width: 768px) {
    body.review-client dialog#video-dialog[open],
    body.preview-page dialog#video-dialog[open] {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    body.review-client dialog#video-dialog[open] .dialog-head,
    body.preview-page dialog#video-dialog[open] .dialog-head {
        padding: 10px 12px !important;
    }

    body.review-client dialog#video-dialog[open] .dialog-body,
    body.preview-page dialog#video-dialog[open] .dialog-body {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        padding: 8px !important;
        max-height: calc(100dvh - 78px - env(safe-area-inset-top, 0px)) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }

    body.review-client dialog#video-dialog[open] .preview-wrap,
    body.review-client dialog#video-dialog[open] .comments-wrap,
    body.preview-page dialog#video-dialog[open] .preview-wrap,
    body.preview-page dialog#video-dialog[open] .comments-wrap {
        width: 100% !important;
        min-width: 0 !important;
        padding: 8px !important;
        box-sizing: border-box;
    }

    body.review-client dialog#video-dialog[open] .comments-wrap,
    body.preview-page dialog#video-dialog[open] .comments-wrap {
        min-height: 0 !important;
        gap: 6px !important;
        grid-template-rows: auto minmax(0, 132px) auto !important;
        overflow: hidden !important;
    }

    body.review-client dialog#video-dialog[open] .comments-list,
    body.preview-page dialog#video-dialog[open] .comments-list {
        max-height: 132px !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 6px !important;
        box-sizing: border-box;
    }

    body.review-client dialog#video-dialog[open] .comment-form,
    body.preview-page dialog#video-dialog[open] .comment-form {
        gap: 6px !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    body.review-client dialog#video-dialog[open] .comment-form #comment-author,
    body.preview-page dialog#video-dialog[open] .comment-form #comment-author {
        min-height: 34px !important;
        height: 34px !important;
        padding: 0 10px !important;
        font-size: 0.82rem !important;
    }

    body.review-client dialog#video-dialog[open] .comment-form #comment-message,
    body.preview-page dialog#video-dialog[open] .comment-form #comment-message {
        min-height: 54px !important;
        max-height: 70px !important;
        padding: 8px 10px !important;
        font-size: 0.82rem !important;
    }

    body.review-client dialog#video-dialog[open] .comment-form #comment-author,
    body.review-client dialog#video-dialog[open] .comment-form #comment-message,
    body.preview-page dialog#video-dialog[open] .comment-form #comment-author,
    body.preview-page dialog#video-dialog[open] .comment-form #comment-message {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body.review-client dialog#video-dialog[open] .comment-head,
    body.preview-page dialog#video-dialog[open] .comment-head {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: start !important;
        gap: 6px !important;
    }

    body.review-client dialog#video-dialog[open] .comment-head-main,
    body.preview-page dialog#video-dialog[open] .comment-head-main {
        min-width: 0 !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 4px 8px !important;
    }

    body.review-client dialog#video-dialog[open] .comment-meta,
    body.preview-page dialog#video-dialog[open] .comment-meta {
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        font-size: 0.58rem !important;
    }

    body.review-client dialog#video-dialog[open] .comment-head-actions,
    body.preview-page dialog#video-dialog[open] .comment-head-actions {
        margin-left: 0 !important;
        align-self: start !important;
    }

    body.review-client dialog#video-dialog[open] .dialog-download-inline,
    body.preview-page dialog#video-dialog[open] .dialog-download-inline {
        min-width: 84px !important;
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 10px !important;
        border-radius: 10px !important;
        font-size: 0.76rem !important;
    }

    body.client-site-page.client-site-presentation dialog#site-files-preview-dialog[open] {
        position: fixed !important;
        inset: 0 !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    body.client-site-page.client-site-presentation dialog#site-files-preview-dialog[open] .dialog-head {
        padding: 10px 12px !important;
    }

    body.client-site-page.client-site-presentation dialog#site-files-preview-dialog[open] .dialog-body {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        padding: 8px !important;
        max-height: calc(100dvh - 78px - env(safe-area-inset-top, 0px)) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }

    body.client-site-page.client-site-presentation dialog#site-files-preview-dialog[open] .preview-wrap {
        width: 100% !important;
        min-width: 0 !important;
        padding: 8px !important;
        box-sizing: border-box;
    }

    body.client-site-page.client-site-presentation dialog#site-files-preview-dialog[open] .site-files-preview-actions > * {
        width: 100% !important;
        min-width: 0 !important;
    }

    body.client-site-page.client-site-presentation dialog#site-video-comment-dialog[open] {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        padding: 10px !important;
        overflow: auto !important;
        box-sizing: border-box;
    }

    body.client-site-page.client-site-presentation dialog#site-video-comment-dialog[open] .site-video-comment-dialog-list {
        min-height: 0 !important;
        max-height: none !important;
        flex: 1 1 auto !important;
    }

    body.client-site-page.client-site-presentation dialog#site-video-comment-dialog[open] .site-video-comment-dialog-form {
        gap: 6px !important;
    }

    body.client-site-page.client-site-presentation dialog#site-video-comment-dialog[open] .site-video-comment-dialog-form input,
    body.client-site-page.client-site-presentation dialog#site-video-comment-dialog[open] .site-video-comment-dialog-form textarea {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Pilot dark mode scope: dashboard + video project only */
html[data-theme="dark"] body.projects-dashboard {
    color: #e8eef7;
    background:
        radial-gradient(1320px 680px at 50% 700px, rgba(44, 72, 108, 0.42) 0%, rgba(44, 72, 108, 0.16) 58%, rgba(44, 72, 108, 0) 84%),
        linear-gradient(180deg, #101821 0%, #101821 360px, #0f1724 540px, #0d1420 100%);
}

html[data-theme="dark"] body.projects-dashboard .project-header-sticky,
html[data-theme="dark"] body.review-admin[data-project-mode="video"] .project-header-sticky,
html[data-theme="dark"] body.review-admin[data-project-mode="blog"] .project-header-sticky {
    background: #121c28;
}

html[data-theme="dark"] body.projects-dashboard .project-header-sticky::before,
html[data-theme="dark"] body.projects-dashboard .project-header-sticky::after,
html[data-theme="dark"] body.review-admin[data-project-mode="video"] .project-header-sticky::before,
html[data-theme="dark"] body.review-admin[data-project-mode="video"] .project-header-sticky::after,
html[data-theme="dark"] body.review-admin[data-project-mode="blog"] .project-header-sticky::before,
html[data-theme="dark"] body.review-admin[data-project-mode="blog"] .project-header-sticky::after {
    background: #121c28;
}

html[data-theme="dark"] body.projects-dashboard.dashboard-scroll-locked .project-header-sticky,
html[data-theme="dark"] body.projects-dashboard.dashboard-scroll-locked .project-header-sticky::before,
html[data-theme="dark"] body.projects-dashboard.dashboard-scroll-locked .project-header-sticky::after {
    background: transparent;
}

html[data-theme="dark"] body.projects-dashboard.dashboard-prompter-active .project-header-sticky,
html[data-theme="dark"] body.projects-dashboard.dashboard-prompter-active .project-header-sticky::before,
html[data-theme="dark"] body.projects-dashboard.dashboard-prompter-active .project-header-sticky::after {
    background: #121c28;
}

html[data-theme="dark"] body.projects-dashboard .soft-btn,
html[data-theme="dark"] body.projects-dashboard .ghost.soft-btn,
html[data-theme="dark"] body.projects-dashboard .dashboard-menu-btn,
html[data-theme="dark"] body.review-admin[data-project-mode="video"] .soft-btn,
html[data-theme="dark"] body.review-admin[data-project-mode="video"] .ghost.soft-btn {
    background: #1a2736;
    border-color: transparent;
    color: #e2ebf6;
}

html[data-theme="dark"] body.projects-dashboard .soft-btn:hover,
html[data-theme="dark"] body.projects-dashboard .soft-btn:focus,
html[data-theme="dark"] body.projects-dashboard .soft-btn:focus-visible,
html[data-theme="dark"] body.review-admin[data-project-mode="video"] .soft-btn:hover,
html[data-theme="dark"] body.review-admin[data-project-mode="video"] .soft-btn:focus,
html[data-theme="dark"] body.review-admin[data-project-mode="video"] .soft-btn:focus-visible {
    background: #223347;
    border-color: transparent;
    color: #ecf2fa;
}

html[data-theme="dark"] body.projects-dashboard .dashboard-menu-popover,
html[data-theme="dark"] body.projects-dashboard .dashboard-language-list,
html[data-theme="dark"] body.projects-dashboard .pin-mode-popover,
html[data-theme="dark"] body.projects-dashboard .modules-menu-popover {
    background: #172332;
    border-color: #33475d;
    box-shadow: 0 16px 34px rgba(2, 8, 14, 0.45);
}

html[data-theme="dark"] body.projects-dashboard .dashboard-language-option,
html[data-theme="dark"] body.projects-dashboard .dashboard-menu-link,
html[data-theme="dark"] body.projects-dashboard .dashboard-menu-section-toggle,
html[data-theme="dark"] body.projects-dashboard .pin-mode-create-btn,
html[data-theme="dark"] body.projects-dashboard .pin-mode-option,
html[data-theme="dark"] body.projects-dashboard .pin-mode-turn-off-btn,
html[data-theme="dark"] body.projects-dashboard .modules-menu-option {
    background: #1c2b3c;
    border-color: #32465c;
    color: #dce7f3;
}

html[data-theme="dark"] body.projects-dashboard .modules-menu-option:hover,
html[data-theme="dark"] body.projects-dashboard .modules-menu-option:focus-visible {
    background: #223347;
    border-color: #46607a;
    color: #f5f8fc;
}

html[data-theme="dark"] body.projects-dashboard .modules-menu-check {
    background: #142131;
    border-color: #405870;
}

html[data-theme="dark"] body.projects-dashboard .dashboard-view-inline-label {
    color: #dce7f3;
}

html[data-theme="dark"] body.projects-dashboard .dashboard-view-inline-divider {
    background: #41566f;
}

html[data-theme="dark"] body.projects-dashboard .dashboard-menu-section-toggle[aria-expanded="true"] {
    background: #26384d;
    border-color: #415b77;
    color: #eef4fb;
}

html[data-theme="dark"] body.projects-dashboard .dashboard-menu-section-chevron {
    color: #b6c6d8;
}

html[data-theme="dark"] body.projects-dashboard .dashboard-view-inline-options .soft-btn {
    background: #1c2b3c;
    border-color: #32465c;
    color: #dce7f3;
}

html[data-theme="dark"] body.projects-dashboard .dashboard-view-inline-options .soft-btn.is-active {
    background: #26384d !important;
    border-color: #415b77 !important;
    color: #eef4fb !important;
}

html[data-theme="dark"] body.projects-dashboard .dashboard-language-option:hover,
html[data-theme="dark"] body.projects-dashboard .dashboard-language-option:focus,
html[data-theme="dark"] body.projects-dashboard .dashboard-language-option:focus-visible,
html[data-theme="dark"] body.projects-dashboard .dashboard-language-option.is-active,
html[data-theme="dark"] body.projects-dashboard .dashboard-menu-link:hover,
html[data-theme="dark"] body.projects-dashboard .dashboard-menu-link:focus,
html[data-theme="dark"] body.projects-dashboard .dashboard-menu-link:focus-visible {
    background: #26384d;
    border-color: #415b77;
    color: #eef4fb;
}

html[data-theme="dark"] body.projects-dashboard .share-details,
html[data-theme="dark"] body.projects-dashboard .blog-studio-sidebar,
html[data-theme="dark"] body.projects-dashboard .blog-editor-panel,
html[data-theme="dark"] body.projects-dashboard .blog-empty-panel,
html[data-theme="dark"] body.projects-dashboard .blog-block-card,
html[data-theme="dark"] body.projects-dashboard .project-folder-card,
html[data-theme="dark"] body.projects-dashboard .library-tab-body,
html[data-theme="dark"] body.projects-dashboard .library-mode-summary,
html[data-theme="dark"] body.projects-dashboard .folder-body,
html[data-theme="dark"] body.projects-dashboard .uploads-panel {
    background: #162231;
    border-color: #30445a;
    color: #d9e5f2;
}

html[data-theme="dark"] body.projects-dashboard .blog-post-list-item,
html[data-theme="dark"] body.projects-dashboard .blog-editor-fields input,
html[data-theme="dark"] body.projects-dashboard .blog-editor-fields select,
html[data-theme="dark"] body.projects-dashboard .blog-block-card textarea,
html[data-theme="dark"] body.projects-dashboard .blog-block-card input,
html[data-theme="dark"] body.projects-dashboard .blog-block-card select,
html[data-theme="dark"] body.projects-dashboard .blog-block-media-preview {
    background: #1c2b3c;
    border-color: #32465c;
    color: #dce7f3;
}

html[data-theme="dark"] body.projects-dashboard .blog-post-list-item:hover,
html[data-theme="dark"] body.projects-dashboard .blog-post-list-item:focus,
html[data-theme="dark"] body.projects-dashboard .blog-post-list-item:focus-visible,
html[data-theme="dark"] body.projects-dashboard .blog-post-list-item.is-active {
    background: #26384d;
    border-color: #415b77;
    color: #eef4fb;
}

html[data-theme="dark"] body.projects-dashboard .blog-empty-panel h4,
html[data-theme="dark"] body.projects-dashboard .blog-block-card-head strong {
    color: #eef4fb;
}

html[data-theme="dark"] body.projects-dashboard .library-tabs-section {
    background: transparent;
}

html[data-theme="dark"] body.projects-dashboard .project-folder-card .folder-top,
html[data-theme="dark"] body.projects-dashboard .project-folder-card .folder-top-video,
html[data-theme="dark"] body.projects-dashboard .project-folder-card .folder-top-pinned,
html[data-theme="dark"] body.projects-dashboard .project-folder-card .folder-top-photo,
html[data-theme="dark"] body.projects-dashboard .project-folder-card .folder-top-files,
html[data-theme="dark"] body.projects-dashboard .project-folder-card .folder-top-audio,
html[data-theme="dark"] body.projects-dashboard .project-folder-card .folder-top-blog,
html[data-theme="dark"] body.projects-dashboard .project-folder-card .folder-top-portfolio {
    background: #162231;
    border-color: #30445a;
}

html[data-theme="dark"] body.projects-dashboard .project-folder-card .folder-top-label,
html[data-theme="dark"] body.projects-dashboard .project-folder-card .folder-top-name {
    color: #e6eef8;
}

html[data-theme="dark"] body.projects-dashboard .project-folder-card .folder-top-divider {
    background: rgba(230, 238, 248, 0.6);
}

html[data-theme="dark"] body.projects-dashboard .pinned-selection-close-bar {
    border-bottom-color: #30445a;
}

html[data-theme="dark"] body.projects-dashboard .pinned-selection-preview-tile {
    background: #1e3044;
    color: #d9e5f2;
}

html[data-theme="dark"] body.projects-dashboard .pinned-selection-preview-tile.is-fallback {
    border-color: #30445a;
}

html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-video,
html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-pinned,
html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-photo,
html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-files,
html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-audio,
html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-blog,
html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-portfolio {
    --lib-bg: #162231;
    --lib-bg-strong: #203144;
    --lib-ink: #e6eef8;
    background: #162231;
    color: #e6eef8;
    border-color: #30445a;
}

html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tabs-nav {
    border-bottom-color: transparent;
}

html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-plus,
html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-plus.is-active {
    background: var(--pin-accent) !important;
    background-image: none !important;
    color: #ffffff;
    border: 0 !important;
    border-bottom: 0 !important;
}

html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-plus:hover,
html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-plus:focus,
html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-plus:focus-visible {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.14)),
        linear-gradient(var(--pin-accent), var(--pin-accent)) !important;
    background-blend-mode: multiply !important;
    border-color: transparent !important;
    color: #ffffff;
}

html[data-theme="dark"] body.projects-dashboard .library-tab-body,
html[data-theme="dark"] body.projects-dashboard .project-folder-card .project-action-btn,
html[data-theme="dark"] body.projects-dashboard .project-folder-card .project-card-menu-popover {
    border-color: transparent;
}

html[data-theme="dark"] body.projects-dashboard .project-folder-card,
html[data-theme="dark"] body.projects-dashboard .folder-body {
    border-color: #1b2c45;
}

html[data-theme="dark"] body.projects-dashboard .folder-body {
    border-radius: 14px;
}

html[data-theme="dark"] body.projects-dashboard .project-folder-card .folder-top {
    border-color: transparent;
    padding-left: 0;
}

html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-video.is-active,
html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-pinned.is-active,
html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-photo.is-active,
html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-files.is-active,
html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-audio.is-active,
html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-blog.is-active,
html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-portfolio.is-active {
    background-image: none;
    background-color: #203144;
    color: #f0f5fb;
}

html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-video:hover,
html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-video:focus,
html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-video:focus-visible,
html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-pinned:hover,
html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-pinned:focus,
html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-pinned:focus-visible,
html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-photo:hover,
html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-photo:focus,
html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-photo:focus-visible,
html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-files:hover,
html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-files:focus,
html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-files:focus-visible,
html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-audio:hover,
html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-audio:focus,
html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-audio:focus-visible,
html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-blog:hover,
html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-blog:focus,
html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-blog:focus-visible,
html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-portfolio:hover,
html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-portfolio:focus,
html[data-theme="dark"] body.projects-dashboard .library-tabs-section .library-tab-toggle-portfolio:focus-visible {
    background-image: none;
    background-color: #203144;
    color: #f0f5fb;
    border-color: #3a526b;
}

html[data-theme="dark"] body.projects-dashboard input[type="text"],
html[data-theme="dark"] body.projects-dashboard input[type="password"],
html[data-theme="dark"] body.projects-dashboard select {
    background: #1a2a3a;
    border-color: #334b63;
    color: #e3edf7;
}

html[data-theme="dark"] body.projects-dashboard .muted {
    color: #9cb0c5;
}

html[data-theme="dark"] body.review-admin[data-project-mode="video"] {
    color: #e6edf8;
    background:
        radial-gradient(1320px 680px at 50% 700px, rgba(46, 76, 111, 0.38) 0%, rgba(46, 76, 111, 0.15) 62%, rgba(46, 76, 111, 0) 86%),
        linear-gradient(180deg, #101820 0%, #101820 360px, #0d1420 540px, #0b121b 100%);
}

html[data-theme="dark"] body.review-admin[data-project-mode="video"] #dropzone,
html[data-theme="dark"] body.review-admin[data-project-mode="video"] .share-details,
html[data-theme="dark"] body.review-admin[data-project-mode="video"] .share-access-summary-wrap,
html[data-theme="dark"] body.review-admin[data-project-mode="video"] .clip-card {
    background: rgba(20, 32, 46, 0.86);
    border-color: #30455b;
    color: #e4edf7;
}

html[data-theme="dark"] body.review-admin[data-project-mode="video"] .video-dialog {
    background:
        radial-gradient(1120px 520px at 50% 620px, rgba(50, 78, 110, 0.34) 0%, rgba(50, 78, 110, 0.14) 58%, rgba(50, 78, 110, 0) 84%),
        linear-gradient(180deg, #172230 0%, #131c28 62%, #111923 100%);
    border-color: #36506a;
    color: #e5edf7;
}

html[data-theme="dark"] body.review-admin[data-project-mode="video"] .video-dialog .dialog-head {
    border-bottom-color: #2d4258;
}

html[data-theme="dark"] body.review-admin[data-project-mode="video"] .video-dialog #dialog-title,
html[data-theme="dark"] body.review-admin[data-project-mode="video"] .video-dialog .comments-wrap h4 {
    color: #eef4fb;
}

html[data-theme="dark"] body.review-admin[data-project-mode="video"] .video-dialog .dialog-head-meta,
html[data-theme="dark"] body.review-admin[data-project-mode="video"] .video-dialog .meta,
html[data-theme="dark"] body.review-admin[data-project-mode="video"] .video-dialog .muted {
    color: #9eb2c8;
}

html[data-theme="dark"] body.review-admin[data-project-mode="video"] .preview-wrap,
html[data-theme="dark"] body.review-admin[data-project-mode="video"] .comments-wrap {
    background: rgba(20, 32, 46, 0.54);
    border-color: #36506a;
}

html[data-theme="dark"] body.review-admin[data-project-mode="video"] .comments-list {
    background: rgba(15, 25, 37, 0.44);
    border-color: #36506a;
}

html[data-theme="dark"] body.review-admin[data-project-mode="video"] .comment {
    background: rgba(28, 43, 60, 0.58);
    border-color: rgba(64, 87, 112, 0.92);
}

html[data-theme="dark"] body.review-admin[data-project-mode="video"] .comment.is-targeted {
    background: rgba(46, 73, 103, 0.72);
    border-color: rgba(98, 130, 166, 0.95);
}

html[data-theme="dark"] body.review-admin[data-project-mode="video"] .video-dialog .comment-form #comment-author,
html[data-theme="dark"] body.review-admin[data-project-mode="video"] .video-dialog .comment-form #comment-message {
    background: rgba(24, 38, 54, 0.74);
    border-color: #3a536f;
    color: #e8f0f9;
}

html[data-theme="dark"] body.review-admin[data-project-mode="video"] .video-dialog .comment-form #comment-author::placeholder,
html[data-theme="dark"] body.review-admin[data-project-mode="video"] .video-dialog .comment-form #comment-message::placeholder {
    color: #8ea3b9;
}

html[data-theme="dark"] body.review-admin[data-project-mode="video"] .dialog-video-controls {
    border-color: #36506a;
    background: rgba(18, 31, 45, 0.74);
}

html[data-theme="dark"] body.review-admin[data-project-mode="video"] .dialog-video-seek,
html[data-theme="dark"] body.review-admin[data-project-mode="video"] .dialog-video-seek::-webkit-slider-runnable-track,
html[data-theme="dark"] body.review-admin[data-project-mode="video"] .dialog-video-seek::-moz-range-track {
    background: #31465f;
}

html[data-theme="dark"] body.review-admin[data-project-mode="video"] .dialog-video-time {
    color: #dfe9f4;
}

/* Keep files preview/client footer compact, but in normal page flow. */

.review-client.preview-page.files-mode .preview-site-footer,
.review-client.client-site-presentation.files-mode .site-portfolio-footer {
    margin-top: auto;
    margin-bottom: 0;
    padding-top: 24px;
    padding-bottom: 16px;
    flex-direction: column;
    gap: 8px;
}

.review-client.preview-page.files-mode .preview-site-footer .site-portfolio-footer-logo,
.review-client.client-site-presentation.files-mode .site-portfolio-footer .site-portfolio-footer-logo {
    transform: none;
}

.files-goodybag-expiry-footer-note {
    margin: 0;
    font-size: 0.846rem;
    line-height: 1.25;
    color: #637893;
    text-align: center;
}

/* Footer breathing room in preview + client presentation:
   keep clear space between last card row and NCNE logo. */
.review-client.preview-page:not(.client-login-page) .preview-site-footer,
.client-site-page.client-site-presentation .site-portfolio-footer {
    margin-top: auto;
    padding-top: clamp(34px, 6vh, 64px);
    padding-bottom: clamp(18px, 3vh, 28px);
}

.review-client.preview-page.files-mode .preview-site-footer,
.client-site-page.client-site-presentation.files-mode .site-portfolio-footer {
    padding-top: clamp(28px, 5vh, 52px);
    padding-bottom: 16px;
}

.review-client.preview-page.dashboard-quick-preview.files-mode .layout {
    padding-bottom: 0;
}

.review-client.preview-page.files-mode[data-share-alias]:not([data-share-alias=""]) .layout {
    padding-bottom: 0;
}

.review-client.preview-page.dashboard-quick-preview.files-mode .site-present-file-group-list .file-folder-name,
.review-client.preview-page.dashboard-quick-preview.files-mode .site-present-file-group-list .file-row-title,
.review-client.preview-page.dashboard-quick-preview.files-mode .file-folder-columns-shell .file-folder-name,
.review-client.preview-page.dashboard-quick-preview.files-mode .file-folder-columns-shell .file-row-title {
    font-weight: 600;
}

.review-client.preview-page:not(.client-login-page) .preview-site-footer .site-portfolio-footer-logo,
.client-site-page.client-site-presentation .site-portfolio-footer .site-portfolio-footer-logo,
.project-logo-footer .project-logo-footer-image {
    margin-top: clamp(26px, 4.5vh, 44px);
}

/* In portfolio tab mode the footer should follow the active tab, not the
   last section in DOM order. Audio already behaved this way because it is
   the final section; make Files and Video use the same footer language. */
body.client-site-page.client-site-presentation.site-layout-tab-mode:not(.client-login-page) .layout {
    min-height: calc(100dvh - 43px);
    display: flex;
    flex-direction: column;
}

body.client-site-page.client-site-presentation.site-layout-tab-mode:not(.client-login-page) .layout > .site-present-section {
    flex: 0 0 auto;
}

body.client-site-page.client-site-presentation.site-layout-tab-mode:not(.client-login-page) .layout > .site-present-section.is-first-visible-tab-section:not([hidden]) {
    flex: 1 1 auto;
}

body.client-site-page.client-site-presentation.site-layout-tab-mode.site-active-tab-files:not(.client-login-page) .layout > .site-present-section.is-first-visible-tab-section:not([hidden]) {
    flex: 1 1 auto;
}

body.client-site-page.client-site-presentation.site-layout-tab-mode.site-active-tab-files.site-active-tab-has-multiple-sections:not(.client-login-page) .layout > .site-present-section.mode-files:not([hidden]) {
    flex: 0 0 auto;
}

body.client-site-page.client-site-presentation.site-layout-tab-mode.site-active-tab-audio.site-active-tab-has-multiple-sections:not(.client-login-page) .layout > .site-present-section.mode-audio:not([hidden]) {
    flex: 0 0 auto;
}

body.client-site-page.client-site-presentation.site-layout-tab-mode:not(.client-login-page) .site-portfolio-footer {
    position: static;
    margin-top: auto;
    padding-top: clamp(34px, 6vh, 64px);
    padding-bottom: calc(clamp(18px, 3vh, 28px) + 20px);
}

body.client-site-page.client-site-presentation.site-layout-tab-mode:not(.client-login-page) .site-portfolio-footer .site-portfolio-footer-logo {
    margin-top: 0;
}

/* Blog editor overrides must come after the legacy dashboard form styles. */
body.projects-dashboard .dashboard-blog-date-input,
body.projects-dashboard #blog-title-input,
body.projects-dashboard #blog-subtitle-input,
body.projects-dashboard .dashboard-blog-caption,
body.review-admin.blog-project-workspace #blog-title-input,
body.review-admin.blog-project-workspace #blog-subtitle-input {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

body.projects-dashboard #blog-title-input,
body.projects-dashboard #blog-subtitle-input,
body.review-admin.blog-project-workspace #blog-title-input,
body.review-admin.blog-project-workspace #blog-subtitle-input {
    min-height: 0 !important;
    resize: none !important;
    overflow: hidden !important;
}

body.projects-dashboard #blog-title-input,
body.review-admin.blog-project-workspace #blog-title-input {
    margin: 0 0 14px !important;
}

body.projects-dashboard #blog-subtitle-input,
body.review-admin.blog-project-workspace #blog-subtitle-input {
    margin: 0 0 36px !important;
}

body.projects-dashboard .dashboard-blog-date-input {
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    font-size: 0.92rem !important;
    line-height: 1.4 !important;
}

body.projects-dashboard .dashboard-blog-date-input:focus,
body.projects-dashboard .dashboard-blog-date-input:focus-visible,
body.projects-dashboard #blog-title-input:focus,
body.projects-dashboard #blog-title-input:focus-visible,
body.projects-dashboard #blog-subtitle-input:focus,
body.projects-dashboard #blog-subtitle-input:focus-visible,
body.projects-dashboard .dashboard-blog-caption:focus,
body.projects-dashboard .dashboard-blog-caption:focus-visible,
body.review-admin.blog-project-workspace #blog-title-input:focus,
body.review-admin.blog-project-workspace #blog-title-input:focus-visible,
body.review-admin.blog-project-workspace #blog-subtitle-input:focus,
body.review-admin.blog-project-workspace #blog-subtitle-input:focus-visible {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

body.projects-dashboard .dashboard-blog-textarea,
body.projects-dashboard .dashboard-blog-textarea * {
    color: var(--blog-body-text-color, #6b778a) !important;
}

/* Blog project editor keeps editable text as text, not input shells. */
body.review-admin.blog-project-workspace .dashboard-blog-date-input,
body.review-admin.blog-project-workspace .dashboard-blog-caption {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

body.review-admin.blog-project-workspace .dashboard-blog-date-input:focus,
body.review-admin.blog-project-workspace .dashboard-blog-date-input:focus-visible,
body.review-admin.blog-project-workspace .dashboard-blog-caption:focus,
body.review-admin.blog-project-workspace .dashboard-blog-caption:focus-visible {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

body.review-admin.blog-project-workspace .dashboard-blog-media > .dashboard-blog-media-tools {
    z-index: 20;
    pointer-events: auto;
}

body.review-admin.blog-project-workspace .dashboard-blog-media > .dashboard-blog-media-tools select,
body.review-admin.blog-project-workspace .dashboard-blog-media > .dashboard-blog-media-tools button,
body.review-admin.blog-project-workspace .dashboard-blog-media > .dashboard-blog-caption-tools button,
body.review-admin.blog-project-workspace .dashboard-blog-media > .dashboard-blog-caption-tools input {
    pointer-events: auto;
}

body.projects-dashboard .dashboard-blog-textarea a {
    color: #0b66d8 !important;
    text-decoration: underline !important;
    text-underline-offset: 0.13em;
}

/* Blog toolbar must visually match the dashboard top menu without changing it. */
body.projects-dashboard .dashboard-blog-toolbar .soft-btn,
body.projects-dashboard .dashboard-blog-toolbar .ghost.soft-btn,
body.projects-dashboard .dashboard-blog-toolbar .soft-btn.danger,
body.projects-dashboard .dashboard-blog-toolbar select.soft-btn {
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    height: 40px !important;
    min-height: 30px !important;
    max-height: 40px !important;
    padding: 7px 9px !important;
    margin: 0 !important;
    border: 1px solid var(--line) !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--ink) !important;
    box-shadow: none !important;
    font-family: "Avenir Next", "Segoe UI", sans-serif !important;
    font-size: 0.82rem !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    outline: none !important;
}

body.projects-dashboard .dashboard-blog-toolbar .dashboard-blog-toggle {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 0 !important;
}

body.projects-dashboard .dashboard-blog-toolbar .soft-btn:hover,
body.projects-dashboard .dashboard-blog-toolbar .soft-btn.danger:hover,
body.projects-dashboard .dashboard-blog-toolbar select.soft-btn:hover {
    background: #edf4fb !important;
    border-color: #c6d6e8 !important;
    color: var(--ink) !important;
    box-shadow: none !important;
    outline: none !important;
}

body.projects-dashboard .dashboard-blog-toolbar .soft-btn:focus,
body.projects-dashboard .dashboard-blog-toolbar .soft-btn:focus-visible,
body.projects-dashboard .dashboard-blog-toolbar .soft-btn:active,
body.projects-dashboard .dashboard-blog-toolbar .soft-btn.danger:focus,
body.projects-dashboard .dashboard-blog-toolbar .soft-btn.danger:focus-visible,
body.projects-dashboard .dashboard-blog-toolbar .soft-btn.danger:active,
body.projects-dashboard .dashboard-blog-toolbar select.soft-btn:focus,
body.projects-dashboard .dashboard-blog-toolbar select.soft-btn:focus-visible {
    background: #fff !important;
    border-color: var(--line) !important;
    color: var(--ink) !important;
    box-shadow: none !important;
    outline: none !important;
}

body.projects-dashboard .dashboard-blog-toolbar .soft-btn:disabled {
    opacity: 1 !important;
}

.review-client.preview-page.dashboard-quick-preview.client-blog-mode .layout,
.review-client.preview-page.embedded-client-view.client-blog-mode .layout {
    max-width: none;
    padding-inline: clamp(28px, 4vw, 72px);
}

.review-client.preview-page.dashboard-quick-preview.client-blog-mode .preview-site-topbar,
.review-client.preview-page.embedded-client-view.client-blog-mode .preview-site-topbar {
    max-width: none;
    padding-top: 8px;
    padding-bottom: 8px;
}

.review-client.preview-page.dashboard-quick-preview.client-blog-mode .preview-site-topbar-actions-main {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.review-client.preview-page.dashboard-quick-preview.client-blog-mode .dashboard-quick-blog-language-form {
    margin-left: 0;
}

.review-client.preview-page.dashboard-quick-preview.client-blog-mode .dashboard-quick-blog-language-select {
    min-height: var(--dash-pill-height);
    height: var(--dash-pill-height);
    font-family: "Avenir Next", "Segoe UI", sans-serif;
}

.review-client.preview-page.dashboard-quick-preview.client-blog-mode .client-media-section,
.review-client.preview-page.embedded-client-view.client-blog-mode .client-media-section {
    display: none;
}

.review-client.preview-page.dashboard-quick-preview.client-blog-mode .dashboard-quick-blog-preview,
.review-client.preview-page.embedded-client-view.client-blog-mode .dashboard-quick-blog-preview {
    padding: clamp(42px, 6vw, 86px) 0 24px;
}

.review-client.preview-page.dashboard-quick-preview.client-blog-mode .dashboard-quick-blog-article,
.review-client.preview-page.embedded-client-view.client-blog-mode .dashboard-quick-blog-article {
    max-width: min(1120px, 100%);
    margin: 0 auto;
}

.review-client.preview-page.dashboard-quick-preview.client-blog-mode .dashboard-quick-blog-article .blog-article-head,
.review-client.preview-page.dashboard-quick-preview.client-blog-mode .dashboard-quick-blog-article .blog-reader-text,
.review-client.preview-page.dashboard-quick-preview.client-blog-mode .dashboard-quick-blog-article .blog-reader-media-medium,
.review-client.preview-page.dashboard-quick-preview.client-blog-mode .dashboard-quick-blog-article .blog-reader-media-small,
.review-client.preview-page.embedded-client-view.client-blog-mode .dashboard-quick-blog-article .blog-article-head,
.review-client.preview-page.embedded-client-view.client-blog-mode .dashboard-quick-blog-article .blog-reader-text,
.review-client.preview-page.embedded-client-view.client-blog-mode .dashboard-quick-blog-article .blog-reader-media-medium,
.review-client.preview-page.embedded-client-view.client-blog-mode .dashboard-quick-blog-article .blog-reader-media-small {
    max-width: min(760px, 100%);
}

@media (max-width: 768px) {
    body.projects-dashboard .dashboard-blog-toolbar .soft-btn,
    body.projects-dashboard .dashboard-blog-toolbar .ghost.soft-btn,
    body.projects-dashboard .dashboard-blog-toolbar .soft-btn.danger,
    body.projects-dashboard .dashboard-blog-toolbar select.soft-btn {
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        padding: 0 8px !important;
        border-radius: 11px !important;
        font-size: 0.76rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    body.projects-dashboard .dashboard-blog-toolbar .dashboard-blog-toggle {
        width: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        padding: 0 !important;
    }
}
