: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;
}

.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;
}

.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.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;
}

.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;
}

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

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

.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;
}

.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;
}

.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;
}

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

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

.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-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="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 #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;
}

.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="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="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="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="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;
}

.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 Share */
.review-admin[data-project-mode="files"] .topbar-actions #bulk-delete-btn { order: 10; }
.review-admin[data-project-mode="files"] .topbar-actions #clear-selection-btn { order: 20; }
.review-admin[data-project-mode="files"] .topbar-actions #create-library-btn { order: 30; }
.review-admin[data-project-mode="files"] .topbar-actions #add-to-library-btn { order: 40; }
.review-admin[data-project-mode="files"] .topbar-actions #topbar-preview-btn { order: 50; }
.review-admin[data-project-mode="files"] .topbar-actions #share-client-btn { order: 60; }
.review-admin[data-project-mode="files"] .topbar-actions .dashboard-return-btn { order: 70; }

/* Keep Video-mode CTA ordering stable with upload pill next to Select All */
.review-admin[data-project-mode="video"] .topbar-actions #bulk-delete-btn { order: 5; }
.review-admin[data-project-mode="video"] .topbar-actions #dropzone.topbar-upload-dropzone { order: 10; }
.review-admin[data-project-mode="video"] .topbar-actions #select-all-btn { order: 20; }
.review-admin[data-project-mode="video"] .topbar-actions #selection-mode-btn { order: 30; }
.review-admin[data-project-mode="video"] .topbar-actions #topbar-preview-btn { order: 40; }
.review-admin[data-project-mode="video"] .topbar-actions #share-client-btn { order: 50; }
.review-admin[data-project-mode="video"] .topbar-actions .view-topbar-menu { order: 60; }
.review-admin[data-project-mode="video"] .topbar-actions .dashboard-return-btn { order: 70; }

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

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: 500;
    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;
}

.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-title {
    margin: 0 0 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #41556d;
    letter-spacing: 0.01em;
}

.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);
}

.review-admin[data-project-mode="audio"] #app-title-text {
    font-size: clamp(1.2rem, 2.4vw, 1.6rem);
    font-weight: 700;
}

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

.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: hidden;
    padding-bottom: 24px;
}

.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;
}

#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);
}

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-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 {
    --files-dropzone-label-size: 0.99rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
    margin-bottom: 16px;
}

.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 {
    margin-bottom: 0;
    padding: 24px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.files-dropzone-row .dropzone > p {
    margin: 0;
    font-size: var(--files-dropzone-label-size);
}

.files-dropzone-actions {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    min-width: 0;
}

.files-dropzone-actions-left {
    justify-content: flex-start;
}

.files-dropzone-actions-right {
    justify-content: flex-end;
}

.files-dropzone-actions #create-folder-btn,
.files-dropzone-actions #create-goodybag-btn {
    width: 100%;
    min-width: 0;
    min-height: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--files-dropzone-label-size);
    font-weight: 400;
}

.files-dropzone-actions #create-folder-btn,
.files-dropzone-actions #create-goodybag-btn,
.files-dropzone-row .dropzone {
    min-height: 130px;
}

.files-dropzone-actions #create-folder-btn:hover,
.files-dropzone-actions #create-folder-btn:focus,
.files-dropzone-actions #create-folder-btn:focus-visible,
.files-dropzone-actions #create-folder-btn:active {
    background: #edf4fb;
    border-color: #c6d6e8;
    color: var(--ink);
}

.files-dropzone-actions #create-goodybag-btn:hover,
.files-dropzone-actions #create-goodybag-btn:focus,
.files-dropzone-actions #create-goodybag-btn:focus-visible,
.files-dropzone-actions #create-goodybag-btn:active {
    background: #f2ecfb !important;
    border-color: #d7cdea !important;
    color: #5f547a !important;
}

.files-dropzone-row .dropzone:hover,
.review-admin[data-project-mode="files"] .files-dropzone-row .dropzone.active,
.review-client[data-project-mode="files"] .files-dropzone-row .dropzone.active {
    background: #fff !important;
    color: inherit !important;
}

@media (max-width: 920px) {
    .files-dropzone-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .files-dropzone-actions {
        justify-content: flex-start;
    }
}

.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: auto;
    min-width: 256px;
    max-width: 368px;
    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 #7ea1d8;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    flex: 0 1 auto;
}

.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.86);
    font-weight: 600;
    line-height: 1;
    color: #31506e;
    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="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: #7ea1d8;
}

.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: #f4edff !important;
    border: 1px dashed #7ea1d8 !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="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: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-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[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: #ffffff;
}

.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 {
    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="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 {
    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 {
    width: auto;
    margin-left: 0;
    margin-right: 0;
}

.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%;
}

.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: flex-start;
    margin-bottom: 14px;
}

.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;
}

.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;
}

#share-status:empty {
    display: none;
}

.share-library-layout {
    display: grid;
    gap: 14px;
}

.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;
}

.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;
}

/* Photo/files mode has no comments toggle pill, so use 6 columns total (1 + 5). */
.review-admin[data-project-mode="photo"] .share-grid-video-pills,
.review-admin[data-project-mode="files"] .share-grid-video-pills {
    grid-template-columns: minmax(230px, 2fr) repeat(5, minmax(120px, 1fr));
}

.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(37, 150, 95, 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(37, 150, 95, 0.62);
    border-color: var(--line);
    color: #fff;
}

.share-grid-video-pills .share-require-login-toggle.is-off {
    background: rgba(11, 98, 214, 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(11, 98, 214, 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-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-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-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-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.58;
    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-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;
}

.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;
}

.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="files"] .share-projects-wrap .share-projects-list {
    margin-top: 12px;
}

.share-projects-wrap .share-projects-list {
    margin-top: 10px;
}

@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;
}

.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-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: 600;
}

.share-access-video-title {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.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-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-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;
}

.client-site-picker-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 6px 0 4px;
}

.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;
}

.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: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.client-site-mode-group {
    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-pinned .client-site-mode-summary {
    background: var(--pin-accent);
}

.client-site-mode-group.mode-video .client-site-mode-summary:hover,
.client-site-mode-group.mode-video .client-site-mode-summary:focus-visible,
.client-site-mode-group.mode-photo .client-site-mode-summary:hover,
.client-site-mode-group.mode-photo .client-site-mode-summary:focus-visible,
.client-site-mode-group.mode-files .client-site-mode-summary:hover,
.client-site-mode-group.mode-files .client-site-mode-summary:focus-visible,
.client-site-mode-group.mode-audio .client-site-mode-summary:hover,
.client-site-mode-group.mode-audio .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: 178px;
    overflow: auto;
}

.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-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .client-site-mode-groups {
        grid-template-columns: 1fr;
    }
}

.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: pointer;
}

.review-admin .video-grid.photo-grid .clip-card {
    cursor: grab;
}

.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: 2px solid #2ca287;
    outline-offset: 0;
}

.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.24) 0%,
        rgba(0, 0, 0, 0.46) 52%,
        rgba(0, 0, 0, 0.68) 100%
    );
    z-index: 2;
}

.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-indicator {
    --heart-color: #fff;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    background: transparent;
    color: var(--heart-color);
    font-size: 0;
    line-height: 1;
    pointer-events: none;
}

.photo-liked-indicators {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.photo-liked-indicator svg {
    width: 18px;
    height: 18px;
    display: block;
    filter: none;
}

.photo-liked-indicator path {
    fill: var(--heart-color);
    stroke: none;
    stroke-width: 0;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.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: 10px;
    min-height: 30px;
}

.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 {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    align-content: start;
}

.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, minmax(240px, 1fr));
}

.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 .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;
}

.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-projects-cards.is-centered-cards {
    align-content: center;
}

.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: 1px solid var(--line);
}

.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:nth-last-child(2):not(.library-tab-toggle-plus) {
    border-radius: 0 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-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-video.is-active {
    --lib-bg: #a8c3e6;
    --lib-bg-strong: #dce7f5;
    background-image: none;
    background-color: #a8c3e6;
    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-video:hover,
.library-tab-toggle-video:focus,
.library-tab-toggle-video:focus-visible,
.library-tab-toggle-video:active,
.library-tab-toggle-photo:hover,
.library-tab-toggle-photo:focus,
.library-tab-toggle-photo:focus-visible,
.library-tab-toggle-photo:active,
.library-tab-toggle-files:hover,
.library-tab-toggle-files:focus,
.library-tab-toggle-files:focus-visible,
.library-tab-toggle-files:active,
.library-tab-toggle-audio:hover,
.library-tab-toggle-audio:focus,
.library-tab-toggle-audio:focus-visible,
.library-tab-toggle-audio:active {
    background-image: none;
    background-color: var(--lib-bg, #ffffff);
    color: #fff;
    border-color: transparent;
}

.library-tab-body {
    margin-top: 0;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 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: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

.library-audio-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
}

.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 {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.projects-dashboard .library-tabs-section.is-expanded .library-tab-cards-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.projects-dashboard .library-tabs-section.is-expanded .library-tab-cards-wrap::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.library-tab-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    justify-content: flex-start;
    align-content: start;
    gap: 24px;
}

.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-name {
    font-size: 0.92rem;
    font-weight: 400;
}

.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[data-library-tab-cards="audio"] .folder-top:not(.is-playlist-header) .folder-top-label,
.library-tab-cards[data-library-tab-cards="audio"] .folder-top:not(.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;
}

.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 .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;
}

.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-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: 400;
    line-height: 1;
    white-space: nowrap;
}

.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-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: #a8c3e6;
    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: #ffffff;
    border-color: #dbe4ee;
    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: #ffffff;
    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;
}

.folder-preview {
    width: 100%;
    aspect-ratio: 1 / 1;
    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-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: 0;
}

.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 {
    border: 0;
    border-radius: 0;
    background: transparent;
    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;
}

.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;
}

.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;
}

.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.files-mode .clip-card,
.review-client.files-mode .clip-card {
    cursor: default;
}

.review-admin.files-mode .video-grid,
.review-client.files-mode .video-grid {
    display: grid;
    grid-template-columns: 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: 10px;
}

.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;
}

.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(220px, 380px) minmax(260px, 1fr);
    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: start;
}

.file-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.file-row-action-icon {
    width: 37px;
    min-width: 37px;
    height: 29px;
    min-height: 29px;
    padding: 0;
}

.file-row-action-icon svg {
    width: 16px;
    height: 16px;
}

.file-row-action-icon.download-file-btn svg {
    opacity: 0.75;
}

.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;
}

.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;
}

.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.17rem;
}

.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-group:not(.is-nested-folder) .file-folder-top-icons {
    grid-area: icons;
    width: auto;
    justify-self: end;
}

.file-folder-chevron {
    font-size: 0.95rem;
    line-height: 1;
    color: #7c8a9e;
    margin-top: 2px;
}

.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;
}

.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: 3;
}

.file-folder-group:not(.is-nested-folder) .file-folder-bottom-actions .folder-create-btn {
    order: 1;
}

.file-folder-group:not(.is-nested-folder) .file-folder-bottom-actions .folder-download-btn {
    order: 2;
}

.file-folder-group:not([open]) .folder-create-btn {
    display: none !important;
}

.file-folder-info {
    color: var(--muted);
    font-size: 2rem;
}

.file-folder-title-row .folder-rename-btn {
    min-width: 20px;
    width: 20px;
    height: 20px;
    min-height: 20px;
    padding: 0;
    justify-content: center;
    opacity: 0.5;
}

.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;
}

.review-admin.files-mode #video-grid .file-folder-group.folder-drop-before .file-folder-summary,
.review-client.files-mode #video-grid .file-folder-group.folder-drop-before .file-folder-summary {
    box-shadow: inset 0 0 0 2px rgba(143, 181, 222, 0.42);
}

.review-admin.files-mode #video-grid .file-folder-group.folder-drop-after .file-folder-summary,
.review-client.files-mode #video-grid .file-folder-group.folder-drop-after .file-folder-summary {
    box-shadow: inset 0 0 0 2px rgba(143, 181, 222, 0.42);
}

.review-admin.files-mode #video-grid .file-folder-group.folder-drop-before::before,
.review-client.files-mode #video-grid .file-folder-group.folder-drop-before::before,
.review-admin.files-mode #video-grid .file-folder-group.folder-drop-after::after,
.review-client.files-mode #video-grid .file-folder-group.folder-drop-after::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    border-top: 3px solid rgba(122, 143, 166, 0.9);
    box-shadow: 0 0 0 6px rgba(245, 249, 255, 0.95);
    pointer-events: none;
    z-index: 2;
}

.review-admin.files-mode #video-grid .file-folder-group.folder-drop-before::before,
.review-client.files-mode #video-grid .file-folder-group.folder-drop-before::before {
    top: -3px;
    content: "Drop above";
    color: #5f7898;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-top: 3px solid rgba(122, 143, 166, 0.95);
    padding-top: 2px;
    display: flex;
    justify-content: center;
    text-align: center;
}

.review-admin.files-mode #video-grid .file-folder-group.folder-drop-after::after,
.review-client.files-mode #video-grid .file-folder-group.folder-drop-after::after {
    bottom: -3px;
    content: "Drop below";
    color: #5f7898;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-top: 3px solid rgba(122, 143, 166, 0.95);
    padding-top: 2px;
    display: flex;
    justify-content: center;
    text-align: center;
}

.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: min(100%, calc(100% - 160px));
    margin-left: auto;
}

.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: min(100%, calc(100% - 160px));
    margin-left: auto;
}

.file-folder-list .file-folder-group.is-nested-folder > .file-folder-zip-progress {
    width: min(360px, calc(100% - 24px));
    margin-right: 12px;
}

.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-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;
}

.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: 1;
}

.file-folder-list .file-folder-group.is-nested-folder .file-folder-bottom-actions .folder-download-btn {
    order: 2;
}

.file-folder-list .file-folder-group.is-nested-folder .file-folder-bottom-actions .folder-delete-btn {
    order: 3;
}

.file-folder-list .file-folder-group.is-nested-folder .file-folder-bottom-actions .soft-btn {
    min-height: 34px;
    height: 34px;
    padding-top: 0;
    padding-bottom: 0;
}

.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: min(100%, calc(100% - 160px));
    margin-left: auto;
}

.file-folder-list .file-folder-group.is-nested-folder[data-folder-depth="2"] > .file-folder-summary,
.file-folder-list .file-folder-group.is-nested-folder[data-folder-depth="2"] > .file-folder-list > .file-row {
    width: min(100%, calc(100% - 200px));
}

.file-folder-list .file-folder-group.is-nested-folder[data-folder-depth="3"] > .file-folder-summary,
.file-folder-list .file-folder-group.is-nested-folder[data-folder-depth="3"] > .file-folder-list > .file-row {
    width: min(100%, calc(100% - 240px));
}

.file-folder-list .file-folder-group.is-nested-folder[data-folder-depth="4"] > .file-folder-summary,
.file-folder-list .file-folder-group.is-nested-folder[data-folder-depth="4"] > .file-folder-list > .file-row {
    width: min(100%, calc(100% - 280px));
}

.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: 54px;
    position: relative;
}

.client-site-presentation .site-topbar-minimal {
    display: flex;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 120;
    margin-bottom: 84px;
    padding-bottom: 0;
    border-bottom: 0;
    background: #ffffff;
    padding-top: 32px;
    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;
}

.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-end;
    gap: 0;
    width: auto;
    padding: 0;
    margin: 0 0 0 auto;
    box-sizing: border-box;
}

.client-site-presentation .site-topbar-minimal.has-preview-back .site-portfolio-headline {
    margin-left: auto;
    justify-content: flex-end;
}

.client-site-presentation .site-portfolio-headline-title {
    text-align: right;
}

.client-site-presentation .site-topbar-minimal.has-preview-back .site-portfolio-headline-title {
    text-align: right;
}

.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: right;
    font-size: clamp(0.84rem, 1.19vw, 1.1rem);
    line-height: 1.1;
    font-weight: 400;
    color: #15253a;
}

.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-topbar-left-actions {
        margin-right: 0;
    }

    .client-site-presentation .site-topbar-left-cluster {
        margin-right: 0;
    }

    .client-site-presentation .site-portfolio-headline {
        display: flex;
        justify-content: center;
        gap: 8px;
    }

    .client-site-presentation .site-portfolio-headline-title {
        text-align: center;
    }
}

.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;
}

.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-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: 0;
}

.site-present-section.mode-audio .site-present-audio-pill:first-child {
    border-top-left-radius: 0;
}

.site-present-section.mode-video .site-present-video-grid .site-present-video-card:first-child {
    border-top-left-radius: 0;
    border-top: 0;
}

.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;
}

.site-present-photo-btn img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0;
}

.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(auto-fill, minmax(260px, 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: min(100%, 390px);
    justify-self: center;
    box-shadow: var(--shadow);
    border-color: #cfd9e6;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

.client-site-presentation .site-present-video-card.is-wide {
    grid-column: span 2;
    width: 100%;
    justify-self: stretch;
    max-width: none;
}

.site-present-video-card video {
    display: block;
    width: 100%;
    aspect-ratio: var(--site-video-ratio, 16 / 9);
    object-fit: contain;
    background: transparent;
    border-radius: 0;
}

.client-site-presentation .site-present-video-player.custom-video-player {
    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(84px, 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: auto;
    min-width: 0;
    height: auto;
    border: 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.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: transparent;
}

.client-site-presentation .site-present-video-controls .dialog-video-seek {
    accent-color: #7ea8d7;
    background: #dfe8f2;
    height: 4px;
}

.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: 66px;
    font-size: 0.76rem;
    font-weight: 400;
}

.site-present-video-card h3 {
    margin: 0;
    padding: 10px 12px;
    font-size: 0.92rem;
    font-weight: 400;
    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-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 img {
    display: block;
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 0;
    background: #0a0d12;
}

.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 + .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: transparent;
    padding: 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-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.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 {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-left: 62px;
}

.site-present-audio-pill-head strong {
    font-size: 0.92rem;
    font-weight: 600;
}

.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 {
    background: #a9c4e8;
}

.client-site-presentation .site-present-audio-pill-track {
    align-items: start;
}

.client-site-presentation .site-present-audio-play-btn {
    width: 42px;
    height: 42px;
    border-width: 2px;
    align-self: start;
}

.client-site-presentation .site-present-audio-time-row {
    max-width: 100%;
    justify-content: space-between;
}

.client-site-presentation .site-present-audio-total {
    margin-left: 0;
    text-align: right;
}

.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-audio-list {
    width: min(100%, 1620px);
    margin-left: auto;
    margin-right: auto;
}

.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;
}

.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) {
    .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 {
        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: 43px;
}

.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;
    min-height: 76px;
    margin-bottom: 27px;
    padding-top: 19px;
    padding-bottom: 19px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: var(--preview-inline-gap);
    padding-right: var(--preview-inline-gap);
    border-bottom: 1px solid #d7e0ea;
    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(0px, calc((100vw - min(1460px, 99vw)) / 2));
}

.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);
    padding: 6px 9px;
    font-size: 0.8rem;
    min-height: 30px;
    border-radius: 9px;
    font-weight: 400;
    z-index: 140;
}

.preview-page .preview-site-topbar-actions {
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 10px;
    justify-content: flex-end;
    min-height: 30px;
    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);
    padding: 6px 9px;
    font-size: 0.8rem;
    min-height: 30px;
    border-radius: 9px;
    font-weight: 400;
    z-index: 140;
}

.preview-page .preview-back-btn .client-back-btn-prefix {
    color: #d12a2a;
}

.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: 30px;
    text-align: left;
    font-size: clamp(0.84rem, 1.19vw, 1.1rem);
    line-height: 1;
    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;
}

.preview-page .site-portfolio-headline-name {
    font-weight: 700;
}

.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: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;
}

.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;
}

.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;
}

.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-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-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;
}

.audio-inline-actions .soft-btn {
    width: auto;
    min-width: 104px;
    min-height: 38px;
    justify-content: center;
}

.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-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;
}

.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%;
    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)) 0 0);
}

.audio-waveform-progress span {
    background: #0b62d6;
}

.audio-comment-marker-layer {
    position: absolute;
    inset: 0;
    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: #cf2e42;
    border: 2px solid #cf2e42;
    box-shadow: 0 2px 6px rgba(207, 46, 66, 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: #cf2e42;
    border-color: #b61f33;
    box-shadow: 0 3px 8px rgba(182, 31, 51, 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;
    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;
}

.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;
}

.video-dialog.audio-dialog #close-dialog {
    min-width: 0;
}

.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;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    width: 100%;
}

.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: 0;
    font-size: 0.76rem;
    font-weight: 400;
    text-align: right;
    justify-self: end;
    width: auto;
}

.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: auto;
    min-width: 0;
    height: auto;
    border: 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.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: transparent;
}

.clip-inline-video-controls {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
}

.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: 27px;
    height: 25px;
    min-width: 27px;
    min-height: 25px;
    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: 48px;
    text-align: right;
    font-weight: 400;
}

.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;
}

.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;
}

.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 {
    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 .clip-card .audio-waveform {
    width: 100%;
    max-width: 100%;
}

.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 {
    min-height: 30px;
    padding: 6px 9px;
    border-radius: 9px;
    font-size: 0.8rem;
    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-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);
}

.client-sites-dialog {
    width: min(1127px, 96vw);
}

.media-search-dialog {
    width: min(980px, 96vw);
}

.dashboard-sharepoints-dialog {
    width: min(1080px, 96vw);
}

.client-sites-dialog .dialog-body {
    max-height: min(84vh, 860px);
    overflow: auto;
}

.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(4, minmax(0, 1fr));
    gap: 8px;
}

.dashboard-sharepoints-mode-pill {
    min-height: 40px;
}

.dashboard-sharepoints-mode-pill[data-mode="video"].is-active {
    background: #dbe8f7;
    border-color: #b9cee5;
    color: #1f3f5c;
}

.dashboard-sharepoints-mode-pill[data-mode="photo"].is-active {
    background: #e8f3dd;
    border-color: #c7deaf;
    color: #365327;
}

.dashboard-sharepoints-mode-pill[data-mode="files"].is-active {
    background: #f7efcc;
    border-color: #e6d598;
    color: #5a4a1f;
}

.dashboard-sharepoints-mode-pill[data-mode="audio"].is-active {
    background: #efe3f5;
    border-color: #d7b9e3;
    color: #5a3c67;
}

.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-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: #2f6fbf;
    background: linear-gradient(180deg, #eaf3ff 0%, #ffffff 100%);
    box-shadow: 0 0 0 1px rgba(47, 111, 191, 0.24), 0 8px 18px rgba(18, 70, 136, 0.12);
}

.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-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: #2f6fbf;
    border-color: #25589a;
    color: #fff;
}

.search-project-hit-video .upload-head strong {
    color: #133d74;
}

.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-pinned {
    background: #b6cdc5;
    border-color: #9eb9b1;
    color: #1e3b34;
}

.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 {
    align-items: flex-start;
    gap: 12px;
}

.search-media-title-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    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;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

.search-media-project-divider-video {
    border-bottom-color: #2f6fbf;
}

.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-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: 2px solid rgba(80, 128, 182, 0.45);
    outline-offset: -2px;
}

.website-create-panel,
.website-manage-panel {
    display: grid;
    gap: 14px;
}

.website-create-panel {
    gap: 32px;
}

/* Portfolio create area: remove outer wrapper pill, keep inner blocks only. */
.client-sites-dialog .website-create-panel.share-details.project-panel {
    margin: 0 0 32px 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 {
    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 {
    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 {
    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 {
    min-height: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 14px;
    font-size: 0.9rem;
}

.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-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-protected-toggle.is-off {
    background: rgba(11, 98, 214, 0.5);
    border-color: var(--line);
    color: #ffffff;
    box-shadow: none;
}

.website-protected-toggle.is-off:hover {
    background: rgba(11, 98, 214, 0.62);
    border-color: var(--line);
    color: #ffffff;
}

.website-protected-toggle.is-on {
    background: rgba(37, 150, 95, 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(37, 150, 95, 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;
}

.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-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;
}

.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;
}

.client-site-card-head::-webkit-details-marker {
    display: none;
}

.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 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: var(--dash-pill-height);
    min-height: var(--dash-pill-height);
    padding: 0 var(--dash-pill-padding-x);
    border: 1px solid var(--line);
    border-radius: var(--dash-pill-radius);
    font-size: var(--dash-pill-font-size);
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    background: #fff;
    color: var(--ink);
}

.client-site-state-pill-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #7ea1d8;
    flex: 0 0 10px;
}

.client-site-state-pill.is-comments.is-off .client-site-state-pill-dot,
.client-site-state-pill.is-download.is-off .client-site-state-pill-dot {
    background: rgba(227, 54, 54, 0.8);
}

.client-site-state-pill.is-comments.is-on .client-site-state-pill-dot,
.client-site-state-pill.is-download.is-on .client-site-state-pill-dot {
    background: rgba(11, 98, 214, 0.8);
}

.client-sites-dialog .client-site-card .soft-btn,
.client-sites-dialog .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-site-summary-pill-height: calc(var(--dash-pill-height) * 0.8);
    --client-site-summary-pill-padding-x: calc(var(--dash-pill-padding-x) * 0.8);
    --client-site-summary-pill-radius: calc(var(--dash-pill-radius) * 0.8);
    --client-site-summary-pill-font-size: calc(var(--dash-pill-font-size) * 0.8);
}

.client-sites-dialog .client-site-summary-actions .client-site-state-pill,
.client-sites-dialog .client-site-summary-actions .project-action-btn,
.client-sites-dialog .client-site-summary-actions .client-site-public-link {
    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-size: var(--client-site-summary-pill-font-size) !important;
    line-height: 1 !important;
}

.client-sites-dialog .client-site-summary-actions .client-site-state-pill-dot {
    width: 8px;
    height: 8px;
    flex-basis: 8px;
}

.client-sites-dialog .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 {
    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-block {
    display: grid;
    gap: 8px;
}

.client-sites-dialog .client-site-row-actions {
    align-items: center;
}

.client-sites-dialog .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: 10px;
}

.client-site-section-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.client-site-section-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.client-site-section-drag {
    color: #8f9bad;
    font-size: 0.92rem;
    line-height: 1;
    letter-spacing: -0.15em;
    cursor: grab;
    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-mode {
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: 22px;
    font-size: 0.9rem;
    font-weight: 700;
    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 {
    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.mode-video {
    background: #dce7f5;
    border-color: transparent;
}

.client-site-section-item.mode-photo {
    background: #dde9d2;
    border-color: transparent;
}

.client-site-section-item.mode-files {
    background: #f2e1a4;
    border-color: transparent;
}

.client-site-section-item.mode-audio {
    background: #e8cde9;
    border-color: transparent;
}

.client-site-section-item.is-drag-over-before {
    box-shadow: inset 0 2px 0 #8aa0c0;
}

.client-site-section-item.is-drag-over-after {
    box-shadow: inset 0 -2px 0 #8aa0c0;
}

.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;
}

.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-pinned .client-site-pick:has(input[type="checkbox"]:checked) {
    background: #dde3ec;
    border-color: transparent;
}

.client-site-pick-text {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.client-site-pick-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-site-playlist-flag {
    flex: 0 0 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);
}

.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: #8aa2bf;
    border-color: #7b95b5;
    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: #809aba;
    border-color: #708cb0;
    color: #ffffff;
}

.share-preview-auth-toggle.is-on {
    background: #b4caa0;
    border-color: #a2ba8d;
    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: #abc399;
    border-color: #96b183;
    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 {
    grid-column: 1 / 4;
}

#copy-preview-link-btn {
    grid-column: 4 / 5;
}

#open-preview-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 {
    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 {
    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;
}

.review-admin[data-project-mode="video"] #dialog-video,
.review-client[data-project-mode="video"] #dialog-video {
    display: block;
    width: auto;
    max-width: 100%;
    border-radius: 0;
    background: transparent;
    max-height: 60vh;
    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] {
    display: none !important;
}

#dialog-image {
    display: block;
    width: auto;
    max-width: 100%;
    border-radius: 10px;
    background: transparent;
    max-height: 60vh;
    object-fit: contain;
    margin: 0 auto;
}

#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;
}

.thumb-form > * {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.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;
    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;
}

.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;
    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;
}

.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;
}

.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.client-photo-mode .topbar {
    margin-bottom: 0;
}

@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));
    }

    .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 .preview-site-topbar {
        --preview-inline-gap: max(0px, calc((100vw - min(1145px, 99vw)) / 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[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 .preview-site-topbar {
        --preview-inline-gap: max(0px, calc((100vw - min(760px, 99vw)) / 2));
    }
}

@media (max-width: 768px) {
    .layout {
        margin: 14px auto 28px;
    }

    .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-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 {
        align-self: flex-start;
    }

    .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 {
        min-height: var(--dash-pill-height) !important;
        height: var(--dash-pill-height) !important;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .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-summary-actions,
    .client-site-section-controls {
        width: 100%;
    }

    .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 (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-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%;
    }
}

/* 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 {
    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 {
    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 .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 {
    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 .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 {
    background: #1c2b3c;
    border-color: #32465c;
    color: #dce7f3;
}

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 .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 .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-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 {
    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 .library-tabs-section .library-tab-toggle-video,
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 {
    --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-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 {
    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-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 {
    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: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);
}
