:root {
    --bg: #161b22;
    --surface: #161b22;
    --surface2: #161b22;
    --border: rgba(255, 255, 255, 0.07);
    --border2: rgba(255, 255, 255, 0.12);
    --text: #e6edf3;
    --muted: #8b949e;
    --muted2: #6e7681;
    --accent: #254979;
    --accent2: #325d9c;
}

@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Mono:wght@400;500&family=DM+Sans:wght@300;400;500;600&display=swap");

.dsv *,
.dsv *::before,
.dsv *::after {
    box-sizing: border-box;
}

.dsv {
    --bg: #161b22;
    --surface: #161b22;
    --surface2: #161b22;
    --border: rgba(255, 255, 255, 0.07);
    --border2: rgba(255, 255, 255, 0.12);
    --text: #e6edf3;
    --muted: #8b949e;
    --muted2: #6e7681;
    --accent: #254979;
    --accent2: #325d9c;
    --gold: #f0b429;
    --green: #3fb950;
    --red: #f85149;
    --pink: #f778ba;
    font-family: "DM Sans", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* TOP BAR */
.dsv-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 2rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 1rem;
    flex-wrap: wrap;
}

.dsv-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.dsv-back:hover {
    color: var(--text);
}

.dsv-topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dsv-key-label {
    font-family: "DM Mono", monospace;
    font-size: 0.72rem;
    color: var(--muted2);
    background: var(--surface2);
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.dsv-gcal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.dsv-gcal-btn:hover {
    background: #1558b0;
}

/* HERO */
.dsv-hero {
    position: relative;
    overflow: hidden;
    padding: 3rem 2rem 2.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.dsv-hero-bg-text {
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-family: "Syne", sans-serif;
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.025);
    letter-spacing: -0.05em;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.dsv-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.dsv-hero-left {
    flex: 1;
    min-width: 280px;
}

.dsv-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.dsv-pill {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 99px;
    border: 1px solid;
}

.dsv-pill-type {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--muted);
    background: var(--surface2);
}

.dsv-pill-status {
    border-color: var(--accent);
    color: var(--accent2);
    background: rgba(59, 130, 246, 0.1);
}

.dsv-s-confirmed,
.dsv-s-done {
    border-color: var(--green) !important;
    color: var(--green) !important;
    background: rgba(63, 185, 80, 0.1) !important;
}

.dsv-s-canceled,
.dsv-s-unreachable {
    border-color: var(--red) !important;
    color: var(--red) !important;
    background: rgba(248, 81, 73, 0.1) !important;
}

.dsv-s-in-progress {
    border-color: var(--accent) !important;
    color: var(--accent2) !important;
    background: rgba(59, 130, 246, 0.1) !important;
}

.dsv-s-draft {
    border-color: var(--muted2) !important;
    color: var(--muted) !important;
    background: rgba(110, 118, 129, 0.1) !important;
}

.dsv-s-pre-confirmed {
    border-color: #4ade80 !important;
    color: #4ade80 !important;
    background: rgba(74, 222, 128, 0.1) !important;
}

.dsv-s-to-be-confirmed {
    border-color: var(--gold) !important;
    color: var(--gold) !important;
    background: rgba(240, 180, 41, 0.1) !important;
}

.dsv-title {
    font-family: "Syne", sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #fff;
    margin: 0 0 1.5rem;
}

.dsv-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.dsv-meta-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--muted);
}

.dsv-meta-item>i {
    color: var(--accent);
    font-size: 0.85rem;
}

.dsv-meta-item>div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.dsv-meta-main {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.dsv-meta-sub {
    font-size: 0.72rem;
    color: var(--muted2);
}

/* Right stats */
.dsv-hero-right {
    flex-shrink: 0;
}

.dsv-shoot-id {
    text-align: right;
    margin-bottom: 1rem;
}

.dsv-shoot-id-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--muted2);
    text-transform: uppercase;
    font-family: "DM Mono", monospace;
}

.dsv-shoot-id-num {
    font-family: "Syne", sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.dsv-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.dsv-stat {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.6rem 1rem;
    text-align: center;
}

.dsv-stat-num {
    display: block;
    font-family: "Syne", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.dsv-stat-lbl {
    display: block;
    font-size: 0.65rem;
    color: var(--muted2);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

/* MOODBOARD STRIP */
.dsv-strip {
    display: flex;
    height: 160px;
    overflow: hidden;
    background: var(--bg);
}

.dsv-strip-item {
    flex: 1;
    overflow: hidden;
    cursor: zoom-in;
    transition: flex 0.3s;
}

.dsv-strip-item:hover {
    flex: 2;
}

.dsv-strip-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.dsv-strip-item:hover img {
    transform: scale(1.06);
}

/* BODY GRID */
.dsv-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
}

@media (min-width: 768px) {
    .dsv-body {
        grid-template-columns: 60% 40%;
    }
}

/* PANELS */
.dsv-panel {
    padding: 1.75rem;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.dsv-panel:last-child {
    border-right: none;
}

.dsv-col-mid {
    display: flex;
    flex-direction: column;
}

.dsv-panel-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted2);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "DM Mono", monospace;
}

.dsv-panel-label i {
    color: var(--accent);
}

.dsv-count {
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: 99px;
    padding: 0px 7px;
    font-size: 0.65rem;
    color: var(--muted);
    font-family: "DM Mono", monospace;
    margin-left: 0.3rem;
}

/* IG Cards */
.dsv-ig-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}

.dsv-ig-list.dsv-multi {
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .dsv-ig-list.dsv-multi {
        grid-template-columns: 1fr 1fr;
    }
}

.dsv-ig-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 8px 12px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.2s;
}

.dsv-ig-card:hover {
    border-color: var(--border2);
}

.dsv-ig-card--shortlist {
    background: rgba(59, 130, 246, 0.04);
    border-color: rgba(59, 130, 246, 0.2);
}

.dsv-ig-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid transparent;
    background: linear-gradient(var(--surface2), var(--surface2)) padding-box,
        linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045) border-box;
}

.dsv-ig-initials {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dsv-ig-card-info {
    flex: 1;
    min-width: 0;
}

.dsv-ig-card-name {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dsv-ig-card-handle {
    display: block;
    font-size: 0.72rem;
    color: var(--muted);
    text-decoration: none;
}

.dsv-ig-card-handle:hover {
    color: var(--pink);
}

.dsv-ig-open-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(228, 64, 95, 0.1);
    color: var(--pink);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.2s;
    flex-shrink: 0;
}

.dsv-ig-open-btn:hover {
    background: rgba(228, 64, 95, 0.2);
}

.dsv-ig-embed-wrap {
    margin-top: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface2);
}

.dsv-ig-embed-wrap .instagram-media {
    min-width: 100% !important;
    margin: 0 !important;
}

.dsv-ig-list:not(.dsv-multi) .dsv-ig-embed-wrap {
    max-width: 550px;
    max-height: 530px
}

.dsv-model-name-only {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dsv-model-chip {
    background: var(--surface2);
    border: 1px solid var(--border2);
    color: var(--text);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.dsv-empty {
    color: var(--muted2);
    font-size: 0.85rem;
}

.dsv-shortlist-block {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border2);
}

.dsv-label-shortlist {
    color: var(--accent) !important;
}

.dsv-label-shortlist i {
    color: var(--accent) !important;
}

/* Location */
.dsv-location-addr {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    background: var(--surface2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.85rem;
}

.dsv-map {
    border-radius: 12px;
    overflow: hidden;
    height: 240px;
    border: 1px solid var(--border);
    filter: grayscale(30%) invert(92%) hue-rotate(180deg);
}

.dsv-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Links */
.dsv-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.dsv-link-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 9px 12px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.85rem;
    transition: border-color 0.2s, background 0.2s;
}

.dsv-link-row:hover {
    border-color: var(--border2);
    background: rgba(59, 130, 246, 0.05);
}

.dsv-link-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.dsv-link-host {
    flex: 1;
    font-weight: 500;
    color: var(--accent2);
}

.dsv-link-arrow {
    color: var(--muted2);
    font-size: 0.7rem;
}

/* Notes */
.dsv-panel-notes .dsv-panel-label i {
    color: var(--gold);
}

.dsv-notes-body {
    font-size: 0.88rem;
    line-height: 1.75;
    color: var(--muted);
    background: var(--surface2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: 8px;
    padding: 1rem 1.1rem;
}

/* Gallery sections */
.dsv-gallery-section {
    border-top: 1px solid var(--border);
    padding: 1.75rem;
}

.dsv-outfit-section .dsv-panel-label i {
    color: var(--pink);
}

.dsv-gallery-hd {
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.dsv-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.dsv-add-btn:hover {
    background: rgba(59, 130, 246, 0.25);
}

.dsv-add-btn-outfit {
    background: rgba(247, 120, 186, 0.15);
    color: var(--pink);
    border-color: rgba(247, 120, 186, 0.3);
}

.dsv-add-btn-outfit:hover {
    background: rgba(247, 120, 186, 0.25);
}

/* Add panel */
.dsv-add-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.25rem;
    animation: dsv-slide-in 0.2s ease;
}

@keyframes dsv-slide-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dsv-add-panel-inner {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.dsv-url-input {
    flex: 1;
    min-width: 200px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.88rem;
    font-family: inherit;
    color: var(--text);
    background: var(--surface2);
    outline: none;
}

.dsv-url-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dsv-panel-btns {
    display: flex;
    gap: 0.4rem;
}

.dsv-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
    font-family: inherit;
}

.dsv-btn:hover {
    opacity: 0.88;
}

.dsv-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dsv-btn-upload {
    background: #f1f5f9;
    color: var(--muted);
}

.dsv-btn-save {
    background: #059669;
    color: #fff;
}

.dsv-panel-hint {
    font-size: 0.75rem;
    color: var(--muted2);
    margin: 0.5rem 0 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.dsv-panel-hint i {
    color: var(--accent);
}

/* Masonry grid */
.dsv-masonry {
    columns: 180px;
    column-gap: 0.6rem;
}

.dsv-masonry--outfit {
    columns: 150px;
}

.dsv-masonry-item {
    break-inside: avoid;
    margin-bottom: 0.6rem;
    border-radius: 10px;
    overflow: hidden;
    cursor: zoom-in;
    position: relative;
    background: var(--surface2);
}

.dsv-masonry-item img {
    width: 100%;
    display: block;
    transition: transform 0.35s;
}

.dsv-masonry-item:hover img {
    transform: scale(1.04);
}

.dsv-img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    opacity: 0;
    transition: background 0.2s, opacity 0.2s;
}

.dsv-masonry-item:hover .dsv-img-overlay {
    background: rgba(0, 0, 0, 0.35);
    opacity: 1;
}

.dsv-empty-gallery {
    padding: 3rem 2rem;
    text-align: center;
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: 14px;
    color: var(--muted2);
}

.dsv-empty-gallery i {
    font-size: 2.5rem;
    opacity: 0.35;
    display: block;
    margin-bottom: 0.75rem;
}

.dsv-empty-gallery p {
    font-size: 0.9rem;
    margin: 0;
}

/* LIGHTBOX */
.dsv-lb {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.dsv-lb.active {
    display: flex;
}

.dsv-lb-stage {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dsv-lb img {
    max-width: 88vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 6px;
}

.dsv-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.dsv-lb-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dsv-lb-prev {
    left: 16px;
}

.dsv-lb-next {
    right: 16px;
}

.dsv-lb-x {
    position: absolute;
    top: -14px;
    right: -14px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dsv-lb-counter {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: "DM Mono", monospace;
}

/* ERROR */
.dsv-error {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--muted);
}

.dsv-error-code {
    display: block;
    font-family: "Syne", sans-serif;
    font-size: 5rem;
    font-weight: 800;
    color: var(--surface2);
    margin-bottom: 1rem;
}

.dsv-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 10px 20px;
    background: var(--surface2);
    color: var(--text);
    border: 1px solid var(--border2);
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
}

header#masthead {
    opacity: 1 !important;
    visibility: visible !important;
}

.dsv a {
    color: inherit;
}

/* GLOBAL STYLES & SHARED UTILS */
body {
    background: #161B22;
    color: var(--text);
    font-family: "DM Sans", system-ui, sans-serif;
    font-weight: 400;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "DM Sans", system-ui, sans-serif;
    font-weight: 500;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--surface);
    backdrop-filter: blur(10px);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 50;
    flex-wrap: wrap;
}

.nav-tab-btn {
    background: var(--surface2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--muted2);
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.nav-tab-btn:hover {
    background: var(--surface2);
    color: #2563eb;
    border-color: rgba(255, 255, 255, 0.4);
}

.nav-tab-btn.active {
    background: #2563eb;
    color: white !important;
    border-color: #2563eb;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.3);
}

/* Analytics Tab Styles */
[x-cloak] {
    display: none !important;
}

.metric-card {
    background: #03639c;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
}

.metric-label {
    font-size: 0.7rem;
    color: var(--muted2);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.chart-container {
    background: var(--surface);
    border: 1px solid #e6e6e6;
    border-radius: 24px;
    padding: 1.5rem;
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

.filter-select {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: white;
    outline: none;
    transition: all 0.2s;
}

.filter-select:focus {
    border-color: #3b82f6;
}

canvas {
    width: 100% !important;
    height: 100% !important;
}


body {
    font-family: "DM Sans", system-ui, sans-serif;

    background-color: #f3f4f6;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--surface);
    backdrop-filter: blur(10px);
    ottom: 0px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 50;
    flex-wrap: wrap;
}

#tab-models .glass {
    background: rgb(37 73 121 / 3%);
    border: 1px solid rgba(255, 255, 255, .08);
}

.nav-tab-btn {
    background: var(--surface2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--muted2);
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-tab-btn.active {
    background: #2563eb;
    /* Blue-600 */
    color: white !important;
    border-color: #2563eb;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.3);
}

/* Shared Glass Base */
.glass {
    backdrop-filter: blur(12px);
}

/* Models + Planner (dark) */
.glass-dark {
    backdrop-filter: blur(12px);
    background: rgba(15, 23, 42, .7);
    border: 1px solid rgba(255, 255, 255, .08);
}

/* Form Inputs (Shared) */
input,
select,
textarea {
    background: #162c49 !important;
    border: 1px solid #334155 !important;
    color: white !important;
}

select option {
    background: #1e293b;
    color: white;
}

select {
    color-scheme: dark;
}

/* MODULE SPECIFIC STYLES */

/* --- Model Manager Styles --- */
.stat-card {
    background: #254979;
    padding: 0.75rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Model List View (Ultra-Compact) --- */
#modelList.list-view-active {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.model-list-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.4rem 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.model-list-item:hover {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(255, 255, 255, 0.02);
}

.model-list-item-main {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.model-list-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
    text-transform: uppercase;
}

.model-list-info {
    flex: 1;
    min-width: 0;
}

.model-list-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.2rem 0.5rem;
    margin-bottom: 0.1rem;
}

.model-list-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.model-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    font-size: 0.72rem;
    color: var(--muted);
}

.model-list-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.model-list-meta-item i {
    color: var(--muted2);
    font-size: 0.65rem;
    width: 12px;
    text-align: center;
}

.model-list-pills-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.list-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    font-size: 0.68rem;
    color: var(--text);
    white-space: nowrap;
    line-height: 1.2;
}

.list-pill-lbl {
    color: var(--muted2);
    font-weight: 700;
    font-size: 0.62rem;
    text-transform: uppercase;
}

.compact-detail-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 0.68rem;
    white-space: nowrap;
}

.model-list-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 0.2rem 0.5rem;
}

.detail-item {
    font-size: 0.7rem;
}

.detail-label {
    display: block;
    color: var(--muted2);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

.detail-value {
    color: var(--text);
    font-weight: 600;
}

.model-list-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.model-list-item-tags-row {
    grid-column: 1 / -1;
}

.model-list-actions {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.model-list-action-btn {
    background: #254979;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.score-badge {
    background: #3b82f6;
    color: white;
    padding: 4px 12px;
    border-radius: 99px;
    font-weight: 800;
    font-size: 0.75rem;
}

.stat-label {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--muted2);
    margin-bottom: 2px;
    display: block;
}

.btn-edit {
    color: #b45309;
    border-color: #fde68a;
    background: var(--surface);
}

.btn-edit:hover {
    background: #fef3c7;
    border-color: #fbbf24;
}

.btn-delete {
    color: #dc2626;
    border-color: #fecaca;
    background: var(--surface);
    }

.btn-delete:hover {
    background: #fee2e2;
    border-color: #f87171;
}

.view-toggle-btn {
    background: #1e293b;
    border: 1px solid #334155;
    color: white;
    padding: 5px 11px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-toggle-btn:hover {
    background: #334155;
}

.view-toggle-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
}

.view-toggle-container {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Adjusted for dark mode contrast */
.modeling-range-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.modeling-range-option {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
}

#modelForm input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: #e9e9e9 !important;
    margin: 0;
    width: 18px;
    height: 18px;
    border: 1px solid white !important;
    border-radius: 4px;
    display: grid;
    place-content: center;
    cursor: pointer;
}

#modelForm input[type="checkbox"]::before {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em #162C49;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

#modelForm input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.modeling-range-tag {
    background: #3b82f6;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    display: inline-block;
    margin: 2px;
}

.ig-header-only {
    height: 120px !important;
    overflow: hidden !important;
    border-radius: 1rem;
    background: #0f172a;
}

.ig-header-only .instagram-media {
    max-height: 120px !important;
    min-height: 120px !important;
}

.ig-limited {
    max-height: 450px;
    overflow: hidden;
    border-radius: 1rem;
    background: #0f172a;
    margin-top: 12px;
}

.ig-limited .instagram-media {
    max-height: 450px;
    min-height: 450px;
}

.compact-stat {
    background: rgba(30, 41, 59, 0.5);
    padding: 0.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.compact-stat-label {
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--muted2);
    margin-bottom: 2px;
    display: block;
}

.compact-stat-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

/* Hide/Show logic for tabs */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Mobile Responsive Fixes for Model Manager & Shoot Planner */
@media (max-width: 640px) {

    /* Model Manager - Filters responsive */
    #filtersContainer {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    #filtersContainer>div {
        width: 100%;
    }
}

@media (max-width: 480px) {

    /* Extra small phone layouts */
    body {
        font-size: 14px;
    }

    .p-4 {
        padding: 0.75rem !important;
    }

    .p-6 {
        padding: 1rem !important;
    }

    .p-8 {
        padding: 1.25rem !important;
    }

    .rounded-3xl {
        border-radius: 1.25rem;
    }

    /* Header sizing */
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.125rem;
    }

    /* Button sizing */
    button {
        font-size: 0.875rem;
    }

    /* Flex controls stack better */
    .flex.justify-between {
        flex-direction: column;
        align-items: flex-start;
    }

    .flex.gap-3 {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* Ensure no horizontal overflow */
    .max-w-full {
        overflow-x: hidden;
    }

    /* Calendar adjustments for tiny screens */
    .calendar-week-header>div {
        padding: 0.5rem 0.125rem !important;
        font-size: 0.6rem;
    }

    .calendar-day {
        padding: 0.25rem !important;
        min-height: 70px;
    }

    .calendar-event {
        font-size: 0.65rem;
        padding: 1px 3px;
        margin-bottom: 1px;
    }

    /* Input full width */
    input,
    select,
    textarea {
        font-size: 16px !important;
        /* Prevents zoom on focus */
    }

    /* Planner form spacing */
    .md\:col-span-2 {
        grid-column: auto;
    }

    /* Stat cards smaller */
    .stat-card {
        padding: 0.5rem;
    }

    /* Grid responsiveness */
    .grid.grid-cols-2 {
        grid-template-columns: 1fr !important;
    }

    .grid.grid-cols-3 {
        grid-template-columns: 1fr !important;
    }

    /* Table - ensure it's readable */
    .table-list {
        font-size: 0.75rem;
    }

    .table-list th,
    .table-list td {
        padding: 8px 12px;
    }
}

/* Ensure proper text wrapping and no overflow */
@media (max-width: 640px) {
    * {
        word-break: break-word;
    }

}

@media (min-width: 768px) {
    .model-list-details {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 1024px) {
    .model-list-item {
        display: grid;
        grid-template-columns: 250px 1fr auto;
        align-items: center;
        gap: 0.75rem;
        padding: 0.35rem 0.85rem;
    }

    .model-list-actions {
        justify-content: flex-end;
    }
}

body {
    margin: 0;
    padding: 0;
}

/* ─── BASE (matches modelmanager.html exactly) ─── */
body {
    background: var(--surface);
    color: var(--text);
    font-family: "DM Sans", system-ui, sans-serif;

    font-weight: 400;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "DM Sans", system-ui, sans-serif;

    font-weight: 500;
}

/* ─── NAV TABS ─── */
.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 50;
    flex-wrap: wrap;
}

.nav-tab-btn {
    background: var(--surface2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--muted2);
    padding: .75rem 1.5rem;
    border-radius: 99px;
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
}

.nav-tab-btn:hover {
    background: var(--surface2);
    color: #2563eb;
}

.nav-tab-btn.active {
    background: #2563eb;
    color: white !important;
    border-color: #2563eb;
    box-shadow: 0 0 15px rgba(37, 99, 235, .3);
}

/* ─── GLASS ─── */
.glass {
    backdrop-filter: blur(12px);
}

.glass-dark {
    backdrop-filter: blur(12px);
    background: rgb(37 73 121 / 3%);
    border: 1px solid rgba(255, 255, 255, .08);
}

/* ─── FORM INPUTS (dark, matches modelmanager) ─── */
input[type=text],
input[type=url],
input[type=file],
select,
textarea {
    background: #162c49 !important;
    border: 1px solid #334155 !important;
    color: white !important;
}

/* ─── STAT CARD ─── */
.stat-card {
    background: #254979;
    padding: .75rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, .1);
}

/* ─── VIEW TOGGLE ─── */
.view-toggle-btn {
    background: #1e293b;
    border: 1px solid #334155;
    color: white;
    padding: 5px 11px;
    border-radius: 8px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-edit:hover {
    background: #fef3c7;
}

.btn-del {
    color: #dc2626;
    border-color: #fecaca;
    background: var(--surface);
    }

.btn-del:hover {
    background: #fee2e2;
}

/* ─── BOARD GRID CARD ─── */
.board-card {
    background: #0D1B2D;
    border: 1px solid rgba(17, 36, 60, 1);
    border-radius: 2rem;
    overflow: hidden;
    transition: transform .2s, border-color .2s, box-shadow .2s;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
}

.board-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, .4);
    box-shadow: 0 12px 40px rgba(37, 99, 235, .15);
}

.board-card[draggable="true"] {
    cursor: move;
}

.board-card.dragging {
    opacity: 0.4;
    background: rgba(37, 99, 235, .2);
    border: 1px dashed #2563eb;
    transform: scale(1.02);
    pointer-events: none;
}

/* Strip style from shootplanner */
.board-card-strip {
    display: flex;
    gap: 4px;
    overflow: hidden;
    border-radius: 10px;
    height: 110px;
    flex-shrink: 0;
    cursor: pointer;
}

.board-card-strip img {
    flex: 1;
    object-fit: cover;
    min-width: 0;
    border-radius: 0;
}

.board-card-strip img:first-child {
    border-radius: 10px 0 0 10px;
}

.board-card-strip img:last-child {
    border-radius: 0 10px 10px 0;
}

.board-card-strip img:only-child {
    border-radius: 10px;
}

/* category pill */
.cat-pill {
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 99px;
}

.c-portrait {
    background: rgba(124, 58, 237, .2);
    color: #a78bfa;
    border: 1px solid rgba(124, 58, 237, .3);
}

.c-fashion {
    background: rgba(124, 58, 237, .2);
    color: #a78bfa;
    border: 1px solid rgba(124, 58, 237, .3);
}

.c-boudoir {
    background: rgba(219, 39, 119, .18);
    color: #f472b6;
    border: 1px solid rgba(219, 39, 119, .3);
}

.c-sensual {
    background: rgba(239, 68, 68, .18);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, .3);
}

.c-fitness {
    background: rgba(16, 185, 129, .18);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, .3);
}

.c-swimwear {
    background: rgba(6, 182, 212, .18);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, .3);
}

.c-custom {
    background: rgba(245, 158, 11, .18);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, .3);
}

/* ─── LIST VIEW ─── */
#boardList.list-active {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.board-list-item {
    background: rgba(15, 23, 42, .7);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 1.25rem;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: border-color .2s;
    cursor: pointer;
    backdrop-filter: blur(12px);
    flex-wrap: wrap;
}

.board-list-item:hover {
    border-color: rgba(37, 99, 235, .35);
}

.bl-mosaic {
    width: 68px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    display: grid;
    gap: 1px;
    background: #0a0e14;
}

.bl-mosaic.c0 {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f1c30;
}

.bl-mosaic.c0 i {
    color: #1e3a5f;
    font-size: 1.1rem;
}

.bl-mosaic.c1 {
    grid-template-columns: 1fr;
}

.bl-mosaic.c2 {
    grid-template-columns: 1fr 1fr;
}

.bl-mosaic.c3,
.bl-mosaic.c4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.bl-mosaic .mt {
    overflow: hidden;
}

.bl-mosaic .mt img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bl-info {
    flex: 1;
    min-width: 0;
}

.bl-name {
    font-size: .95rem;
    font-weight: 700;
    color: white;
}

.bl-meta {
    font-size: .78rem;
    color: var(--muted);
    margin-top: 2px;
}

.bl-actions {
    display: flex;
    gap: .5rem;
    flex-shrink: 0;
}

/* ─── BOARD PAGE ─── */
#boardPage {
    background: transparent;
    display: flex;
    flex-direction: column;
}

#boardPage.open {
    display: flex;
}

.bp-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 2rem;
    background: rgba(22, 27, 34, .95);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    flex-shrink: 0;
    gap: 1rem;
    flex-wrap: wrap;
    backdrop-filter: blur(12px);
}

.bp-back {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
    font-weight: 700;
    color: #8b949e;
    cursor: pointer;
    border: none;
    background: none;
    font-family: "DM Sans", system-ui, sans-serif;

    transition: color .2s;
}

.bp-back:hover {
    color: white;
}

.bp-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
}

/* ─── ADD PANEL  (identical look to shoot-view.php dsv-add-panel) ─── */
.insp-add-panel {
    background: rgba(15, 23, 42, .98);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    overflow: hidden;
    max-height: 0;
    transition: max-height .25s ease, padding .25s ease;
    flex-shrink: 0;
    padding: 0 2rem;
}

.insp-add-panel.open {
    max-height: 160px;
    padding: 1rem 2rem;
}

.insp-add-inner {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    align-items: center;
    max-width: 800px;
}

.insp-url-input {
    flex: 1;
    min-width: 220px;
    padding: 9px 12px;
    border: 1px solid #334155 !important;
    border-radius: 8px;
    font-size: .88rem;
    font-family: "DM Sans", system-ui, sans-serif;

    color: white !important;
    background: #162c49 !important;
    outline: none;
    transition: border-color .15s;
}

.insp-url-input:focus {
    border-color: #3b82f6 !important;
}

.insp-panel-btns {
    display: flex;
    gap: .5rem;
}

.insp-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .2s;
    font-family: "DM Sans", system-ui, sans-serif;

}

.insp-btn-upload {
    background: rgba(30, 41, 59, 1);
    border-color: var(--text);
    color: var(--muted2);
}

.insp-btn-upload:hover {
    background: #334155;
    color: white;
}

.insp-btn-save {
    background: #2563eb;
    color: white;
}

.insp-btn-save:hover {
    background: #1d4ed8;
}

.insp-panel-hint {
    font-size: .72rem;
    color: var(--muted);
    margin-top: .5rem;
}

.insp-panel-hint i {
    color: #3b82f6;
    margin-right: 4px;
}

/* ─── GALLERY (masonry, same as shoot-view) ─── */
.bp-gallery-wrap {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
}

.bp-masonry {
    columns: 200px;
    column-gap: 10px;
}

.bp-item {
    break-inside: avoid;
    margin-bottom: 10px;
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
    position: relative;
    background: #0f172a;
}

.bp-item img {
    width: 100%;
    display: block;
    transition: transform .3s;
}

.bp-item:hover img {
    transform: scale(1.04);
}

.bp-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background .2s, opacity .2s;
}

.bp-item:hover .bp-overlay {
    background: rgba(0, 0, 0, .45);
    opacity: 1;
}

.bp-overlay button {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: .85rem;
    transition: background .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bp-overlay button:hover {
    background: rgba(255, 255, 255, .28);
}

.bp-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    padding: 5rem 2rem;
    color: var(--muted);
    font-size: .9rem;
    border: 1px dashed rgba(255, 255, 255, .08);
    border-radius: 14px;
    margin: 1rem 0;
}

.bp-empty i {
    font-size: 2.5rem;
    opacity: .3;
}

/* ─── MODAL ─── */
.modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-bg.open {
    display: flex;
}

.modal-box {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 1.5rem;
    width: 460px;
    max-width: 95vw;
    padding: 2rem;
    animation: popIn .2s ease;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(.96) translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.modal-box h2 {
    color: white;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.m-label {
    display: block;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--muted2);
    margin-bottom: 6px;
}

.m-input {
    width: 100%;
    padding: .65rem .9rem;
    border-radius: .75rem;
    font-size: .88rem;
    outline: none;
    transition: border-color .15s;
    font-family: "DM Sans", system-ui, sans-serif;

}

.m-input:focus {
    border-color: #3b82f6 !important;
}

.m-row {
    margin-bottom: 1rem;
}

/* ─── TOAST ─── */
#toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: #0f172a;
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: .84rem;
    border-left: 3px solid #2563eb;
    z-index: 9998;
    transform: translateY(80px);
    opacity: 0;
    transition: all .3s;
    pointer-events: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .5);
    font-family: "DM Sans", system-ui, sans-serif;

    font-weight: 600;
}

#toast.show {
    transform: none;
    opacity: 1;
}


@media(max-width:640px) {
    .bp-masonry {
        columns: 130px;
    }

    .bp-topbar,
    .bp-stats,
    .bp-gallery-wrap,
    .insp-add-panel.open {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .insp-add-panel.open {
        max-height: 220px;
    }
}

.glass-planner {
    backdrop-filter: blur(12px);
    background: rgb(37 73 121 / 3%);
}

/* Shoot Planner Styles */
.status-confirmed {
    color: #10b981;
}

.status-done {
    color: #10b981;
}

.status-canceled {
    color: #ef4444;
}

.status-unreachable {
    color: #ef4444;
}

.status-in-progress {
    color: #3b82f6;
}

.status-last-resort {
    color: #f97316;
}

.status-pre-confirmed {
    color: #86efac;
}

.status-to-be-confirmed {
    color: #fbbf24;
}

.status-uncertain {
    color: var(--muted2);
}

.custom-scroll::-webkit-scrollbar {
    width: 6px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: #0f172a;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

.calendar-day {
    padding-bottom: 0.75rem;
}

.calendar-day:hover {
    background: rgba(30, 41, 59, 0.3);
}

.calendar-day:has(.calendar-event) {
    padding-bottom: 1.25rem;
}

.calendar-day.today {
    background: rgba(59, 130, 246, 0.1);
}

.calendar-day.other-month {
    opacity: 0.5;
}

.calendar-event {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 6px;
    padding: 4px 8px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: background 0.2s;
    border-left: 3px solid;
    font-size: 0.85rem;
    max-height: 24px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-event:hover {
    background: rgba(51, 65, 85, 0.8);
}

.calendar-week-header {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    background: #162C49;
}

.week-grid {
    align-items: start;
}

.month-view .calendar-day {
    padding-bottom: 0.5rem;
}

.month-view .calendar-event {
    font-size: 0.75rem;
    padding: 2px 6px;
}

.shoot-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.popup-content {
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.instagram-link {
    color: #e1306c;
    transition: all 0.2s;
}

.instagram-link:hover {
    color: #fd1d1d;
    transform: translateY(-1px);
}

.multi-model-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .multi-model-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

.multi-model-grid .ig-limited {
    max-height: 300px;
}

.multi-model-grid .ig-limited .instagram-media {
    max-height: 300px;
    min-height: 300px;
}

.moodboard-thumb {
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    margin: 2px;
    cursor: pointer;
    transition: 0.2s;
}

.moodboard-thumb:hover {
    opacity: 0.8;
}

.moodboard-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
}

.moodboard-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.moodboard-lightbox.active {
    display: flex;
}

.lb-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    backdrop-filter: blur(5px);
}

.lb-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lb-nav-btn.left {
    left: 20px;
}

.lb-nav-btn.right {
    right: 20px;
}

.planner-google-cal-btn {
    background-color: #3C74EC;
    color: white;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.planner-google-cal-btn:hover {
    background-color: #2c5aa0;
}

/* ===== SHOOT CARDS ===== */
.shoot-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
}

.shoot-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.2s;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(30, 60, 120, 0.06);
    position: relative;
}

.shoot-card:hover {
    box-shadow: 0 8px 32px rgba(30, 60, 120, 0.13);
    transform: translateY(-2px);
}

.shoot-card-accent {
    height: 4px;
    width: 100%;
    background: #2563eb;
    flex-shrink: 0;
}

.shoot-card-accent.accent-confirmed {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.shoot-card-accent.accent-done {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.shoot-card-accent.accent-canceled {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.shoot-card-accent.accent-in-progress {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.shoot-card-accent.accent-draft {
    background: linear-gradient(90deg, #94a3b8, #cbd5e1);
}

.shoot-card-accent.accent-pre-confirmed {
    background: linear-gradient(90deg, #86efac, #4ade80);
}

.shoot-card-accent.accent-to-be-confirmed {
    background: linear-gradient(90deg, #fbbf24, #fcd34d);
}

.shoot-card-body {
    padding: 1.25rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.shoot-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.shoot-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    flex: 1;
    min-width: 0;
}

.shoot-card-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 99px;
    white-space: nowrap;
    flex-shrink: 0;
}

.badge-confirmed,
.badge-done {
    background: #dcfce7;
    color: #166534;
}

.badge-canceled {
    background: #fee2e2;
    color: #991b1b;
}

.badge-in-progress {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-draft {
    background: #f1f5f9;
    color: var(--muted);
}

.badge-pre-confirmed {
    background: #d1fae5;
    color: #065f46;
}

.badge-to-be-confirmed {
    background: #fef9c3;
    color: #854d0e;
}

.badge-unreachable,
.badge-canceled {
    background: #fee2e2;
    color: #991b1b;
}

.badge-last-resort {
    background: var(--surface);
    7ed;
    color: #c2410c;
}

.badge-uncertain {
    background: var(--surface2);
    color: var(--muted);
}

.shoot-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.shoot-card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--muted);
}

.shoot-card-meta-item i {
    color: #93c5fd;
    font-size: 0.75rem;
    width: 14px;
    text-align: center;
}

.shoot-card-type-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 99px;
    background: #eff6ff;
    color: #2563eb;
    letter-spacing: 0.03em;
}

.shoot-card-models {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.shoot-model-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 4px 10px 4px 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
    cursor: default;
}

.shoot-model-chip.has-ig {
    cursor: pointer;
}

.shoot-model-chip.has-ig:hover {
    background: #fdf0f4;
    border-color: #e1306c;
    color: #e1306c;
}

.shoot-model-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 0;
}

.shoot-card-moodboard-strip {
    display: flex;
    gap: 4px;
    overflow: hidden;
    border-radius: 10px;
    height: 64px;
    flex-shrink: 0;
}

.shoot-card-moodboard-strip img {
    flex: 1;
    object-fit: cover;
    min-width: 0;
    border-radius: 0;
}

.shoot-card-moodboard-strip img:first-child {
    border-radius: 10px 0 0 10px;
}

.shoot-card-moodboard-strip img:last-child {
    border-radius: 0 10px 10px 0;
}

.shoot-card-moodboard-strip img:only-child {
    border-radius: 10px;
}

.shoot-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    border-top: 1px solid #f1f5f9;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.shoot-card-actions {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.shoot-card-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
    background: transparent;
    text-decoration: none;
}

.btn-share {
    color: #059669;
    border-color: #a7f3d0;
    background: #f0fdf4;
}

.btn-share:hover {
    background: #dcfce7;
    border-color: #6ee7b7;
}

.btn-view {
    color: #fff;
    background: #2563eb;
    border-color: #2563eb;
}

.btn-view:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-gcal {
    color: #fff;
    background: #4285f4;
    border-color: #4285f4;
}

.btn-gcal:hover {
    background: #3367d6;
}

.shoot-card-notes-preview {
    font-size: 0.78rem;
    color: var(--muted2);
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shoot-card-location {
    font-size: 0.8rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dsv {
    --bg: #161b22;
    --surface: #161b22;
    --surface2: #161b22;
    --border: rgba(255, 255, 255, 0.07);
    --border2: rgba(255, 255, 255, 0.12);
    --text: #e6edf3;
    --muted: #8b949e;
    --muted2: #6e7681;
    --accent: #254979;
    --accent2: #325d9c;
    --gold: #f0b429;
    --green: #3fb950;
    --red: #f85149;
    --pink: #f778ba;
    font-family: "DM Sans", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

.dsv-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.dsv-edit-btn:hover {
    background: rgba(59, 130, 246, 0.25);
}

.dsv-delete-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    background: rgba(248, 81, 73, 0.1);
    color: var(--red);
    border: 1px solid rgba(248, 81, 73, 0.25);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.dsv-delete-btn:hover {
    background: rgba(248, 81, 73, 0.2);
}

.dsv-section-edit-btn {
    background: none;
    border: none;
    color: var(--muted2);
    cursor: pointer;
    padding: 2px 6px;
    margin-left: 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    transition: color 0.2s, background 0.2s;
}

.dsv-section-edit-btn:hover {
    color: var(--accent2);
    background: var(--surface2);
}

.dsv-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    background: rgba(63, 185, 80, 0.12);
    color: var(--green);
    border: 1px solid rgba(63, 185, 80, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.dsv-share-btn:hover {
    background: rgba(63, 185, 80, 0.22);
}

/* Model row in edit panel */
.dsv-models-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.dsv-model-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.dsv-model-row .dsv-edit-input {
    flex: 1;
}

.dsv-model-remove-btn {
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.2);
    color: var(--red);
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.dsv-model-remove-btn:hover {
    background: rgba(248, 81, 73, 0.2);
}

.dsv-add-model-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 12px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent2);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.dsv-add-model-btn:hover {
    background: rgba(59, 130, 246, 0.2);
}

.dsv-model-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 40px;
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: 8px;
    z-index: 200;
    max-height: 180px;
    overflow-y: auto;
    display: none;
}

.dsv-model-suggestions.active {
    display: block;
}

.dsv-model-suggestion-item {
    padding: 8px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--text);
    transition: background 0.15s;
}

.dsv-model-suggestion-item:hover {
    background: rgba(59, 130, 246, 0.15);
}

/* Add images panel */
.dsv-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.dsv-add-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.25rem;
    animation: dsv-slide-down 0.2s ease;
}

.dsv-url-input:focus {
    border-color: var(--accent);
}

.dsv-panel-btns {
    display: flex;
    gap: 0.5rem;
}

.dsv-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.dsv-btn-upload {
    background: var(--surface2);
    color: var(--muted);
    border-color: var(--border);
}

.dsv-btn-upload:hover {
    background: var(--border);
}

.dsv-btn-save {
    background: rgba(63, 185, 80, 0.15);
    color: var(--green);
    border-color: rgba(63, 185, 80, 0.3);
}

.dsv-btn-save:hover {
    background: rgba(63, 185, 80, 0.25);
}

.dsv-panel-hint {
    font-size: 0.72rem;
    color: var(--muted2);
    margin: 0.5rem 0 0;
}

.dsv-empty-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem 2rem;
    color: var(--muted2);
    font-size: 0.88rem;
    border: 1px dashed var(--border);
    border-radius: 12px;
}

.dsv-empty-gallery i {
    font-size: 2rem;
    opacity: 0.4;
}

/* Thumbnail grids in edit panel */
.dsv-thumb-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.dsv-thumb-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 6px;
    overflow: visible;
    flex-shrink: 0;
}

.dsv-thumb-wrap img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    cursor: pointer;
}

.dsv-thumb-del {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 11px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 10;
    transition: background 0.15s, transform 0.15s;
}

.dsv-thumb-del:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Gallery image delete button */
.dsv-masonry-item {
    position: relative;
}

.dsv-masonry-del {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(248, 81, 73, 0.85);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.2s, background 0.15s;
}

.dsv-masonry-item:hover .dsv-masonry-del {
    opacity: 1;
}

.dsv-masonry-del:hover {
    background: var(--red);
}

/* Strip delete button */
.dsv-strip-item {
    position: relative;
    overflow: visible;
}

.dsv-strip-del {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(248, 81, 73, 0.85);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.2s;
}

.dsv-strip-item:hover .dsv-strip-del {
    opacity: 1;
}

/* Section edit buttons */
.dsv-edit-panel {
    background: var(--surface);
    border-bottom: 1px solid var(--border2);
    animation: dsv-slide-down 0.25s ease;
}

@keyframes dsv-slide-down {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.dsv-edit-panel-inner {
    padding: 1.5rem 2rem;
    max-width: 1400px;
}

.dsv-edit-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-family: "Syne", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent2);
}

.dsv-edit-close {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px 8px;
    border-radius: 6px;
}

.dsv-edit-close:hover {
    color: var(--text);
    background: var(--surface2);
}

.dsv-edit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dsv-edit-field--wide {
    grid-column: 1 / -1;
}

.dsv-edit-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted2);
    margin-bottom: 0.4rem;
    font-family: "DM Mono", monospace;
}

.dsv-edit-label span {
    text-transform: none;
    font-weight: 400;
    letter-spacing: 0;
}

.dsv-edit-input {
    width: 100%;
    padding: 8px 12px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.88rem;
    font-family: "DM Sans", sans-serif;
    outline: none;
    transition: border-color 0.15s;
}

.dsv-edit-input:focus {
    border-color: var(--accent);
}

.dsv-edit-textarea {
    resize: vertical;
    min-height: 80px;
}

.dsv-edit-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.dsv-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 9px 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    font-family: "DM Sans", sans-serif;
}

.dsv-save-btn:hover {
    opacity: 0.85;
}

.dsv-save-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dsv-cancel-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 9px 16px;
    background: var(--surface2);
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: "DM Sans", sans-serif;
}

.dsv-save-status {
    font-size: 0.8rem;
    color: var(--green);
    display: none;
}

.dsv-save-status.error {
    color: var(--red);
}

/* GEAR CHECKLIST IN EDIT */
.dsv-gear-check {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.dsv-gear-cat-block {
    min-width: 160px;
}

.dsv-gear-cat-hd {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted2);
    font-family: "DM Mono", monospace;
    margin-bottom: 0.5rem;
}

.dsv-gear-cat-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.dsv-gear-check-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    padding: 3px 10px;
    border-radius: 99px;
    border: 1px solid var(--border);
    color: var(--muted);
    cursor: pointer;
    background: var(--surface2);
    transition: all 0.15s;
    user-select: none;
}

.dsv-gear-check-item input {
    display: none;
}

.dsv-gear-check-item.checked,
.dsv-gear-check-item:has(input:checked) {
    background: rgba(139, 92, 246, 0.15);
    border-color: #a78bfa;
    color: #a78bfa;
}

.dsv-title {
    font-family: "Syne", sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #fff;
    margin: 0 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dsv-title span {
    flex-grow: 1;
}

.dsv-title .dsv-section-edit-btn {
    font-size: 1rem;
    padding: 6px 10px;
}

@media (min-width: 768px) {
    .dsv-body {
        grid-template-columns: 3fr 2fr;
    }
}

@media (min-width: 1100px) {
    .dsv-body {
        grid-template-columns: 3fr 2fr 280px;
    }
}

/* IG Cards */
.dsv-ig-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.dsv-ig-list.dsv-ig-list--multi {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.dsv-ig-list.dsv-ig-list--shortlist-multi {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.dsv-ig-list:not(.dsv-ig-list--multi):not(.dsv-ig-list--shortlist-multi) .dsv-ig-embed-wrap {
    max-width: 550px;
    max-height: 330px
}

/* Gear */
.dsv-panel-gear .dsv-panel-label i {
    color: #a78bfa;
}

.dsv-gear-category {
    margin-bottom: 1rem;
}

.dsv-gear-cat-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted2);
    margin-bottom: 0.4rem;
    font-family: "DM Mono", monospace;
}

.dsv-gear-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 5px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.83rem;
    color: var(--text);
}

.dsv-gear-item:last-child {
    border-bottom: none;
}

.dsv-gear-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #a78bfa;
    flex-shrink: 0;
}

.dsv-gear-name {
    flex: 1;
}

.dsv-gear-cond {
    font-size: 0.65rem;
    padding: 1px 7px;
    border-radius: 99px;
    background: var(--surface2);
    border: 1px solid var(--border2);
    color: var(--muted);
}

.dsv-gallery-hd {
    margin-bottom: 1.25rem;
}

.dsv-masonry {
    columns: 180px;
    column-gap: 0.6rem;
}

.glass-dark {
    backdrop-filter: blur(12px);
    background: rgba(15, 23, 42, .7);
    border: 1px solid rgba(255, 255, 255, .08);
}

/* ─── BASE ─── */
body {
    background: #161b22;
    color: #c9d1d9;
    font-family: "DM Sans", system-ui, sans-serif;

    font-weight: 400;
    overflow-x: hidden;
}

/* ─── NAV TABS ─── */
.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #161b22;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    position: sticky;
    top: 0;
    z-index: 50;
    flex-wrap: wrap;
}

.nav-tab-btn {
    background: #161b22;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #8b949e;
    padding: .75rem 1.5rem;
    border-radius: 99px;
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
}

.nav-tab-btn:hover {
    background: #1f2937;
    color: #60a5fa;
}

/* ─── FORM INPUTS (dark) ─── */
input[type=text],
input[type=url],
input[type=file],
select,
textarea {
    background: #162c49 !important;
    border: 1px solid #334155 !important;
    color: white !important;
}

/* ─── BOARD PAGE STYLES ─── */
.bp-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 2rem;
    background: rgba(22, 27, 34, .95);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    flex-shrink: 0;
    gap: 1rem;
    flex-wrap: wrap;
    backdrop-filter: blur(12px);
}

.bp-back {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
    font-weight: 700;
    color: #8b949e;
    cursor: pointer;
    border: none;
    background: none;
    font-family: "DM Sans", system-ui, sans-serif;

    transition: color .2s;
    text-decoration: none;
}

/* ─── ADD PANEL ─── */
.insp-add-panel {
    background: rgba(15, 23, 42, .98);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    overflow: hidden;
    max-height: 0;
    transition: max-height .25s ease, padding .25s ease;
    flex-shrink: 0;
    padding: 0 2rem;
}

/* ─── GALLERY (masonry) ─── */
.bp-gallery-wrap {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
}

.bp-masonry {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bp-masonry::after {
    content: '';
    flex-grow: 999999999;
}

.bp-item {
    height: 250px;
    flex: 1 1 auto;
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
    position: relative;
    background: #0f172a;
}

.bp-item img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    display: block;
    transition: transform .3s;
}

/* stats strip */
.bp-stats {
    display: flex;
    gap: 1rem;
    padding: .7rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    background: rgba(15, 23, 42, .6);
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
}

.bp-stat {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .8rem;
    color: var(--muted);
}

.bp-stat span {
    color: white;
    font-weight: 700;
}

.bp-stat i {
    color: #3b82f6;
    font-size: .75rem;
}

/* ─── LIGHTBOX ─── */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .97);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

#lightbox.open {
    display: flex;
}

.lb-stage {
    position: relative;
    max-width: 92vw;
    max-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-stage img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 6px;
}

.lb-close {
    position: absolute;
    top: -14px;
    right: -14px;
    background: rgba(255, 255, 255, .1);
    color: white;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: .9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .08);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    z-index: 10;
}

.lb-nav:hover {
    background: rgba(255, 255, 255, .2);
}

.lb-prev {
    left: 16px;
}

.lb-next {
    right: 16px;
}

.lb-counter {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: .72rem;
    color: rgba(255, 255, 255, .4);
    font-family: monospace;
}

@media(max-width:640px) {

    .bp-topbar,
    .bp-stats,
    .bp-gallery-wrap,
    .insp-add-panel.open {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .insp-add-panel.open {
        max-height: 220px;
    }
}

/* ─── SELECTION MODE ─── */
.bp-item.selection-mode {
    cursor: pointer;
}

.bp-item.selected {
    box-shadow: 0 0 0 3px #3b82f6;
}

.bp-item.selected img {
    opacity: 0.5;
}

.sel-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

.bp-item.selection-mode .sel-indicator {
    display: flex;
}

.bp-item.selected .sel-indicator {
    background: #3b82f6;
    border-color: #3b82f6;
}

.bp-item.selected .sel-indicator::after {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px;
    color: white;
}

/* ENFORCE UNIFIED BACKGROUND */
html,
body {
    background-color: #161b22 !important;
    background: #161b22 !important;
}

/* UNIFIED GLOBAL BACKGROUND OVERRIDES (#161B22) */
html, body, .dsv, .tab-content, .nav-tabs, #tab-models, .glass-dark, .glass-planner, .dsv-hero, .dsv-topbar {
    background-color: #161b22 !important;
    background: #161b22 !important;
}


/* Color Legend */
.color-legend { display: flex; flex-wrap: wrap; gap: 1rem; padding: 0.75rem 1rem; margin-bottom: 1rem; opacity: 0.7; }
.legend-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; color: var(--muted); }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════════
   MOBILE PWA OVERHAUL — Native App Experience
   Only affects screens ≤768px. Desktop is untouched.
   ═══════════════════════════════════════════════════════════════════ */

/* ─── PWA STANDALONE MODE ─── */
@media all and (display-mode: standalone) {
    body { -webkit-user-select: none; user-select: none; }
    /* Allow text selection only inside inputs and textareas */
    input, textarea, select, [contenteditable] {
        -webkit-user-select: text; user-select: text;
    }
}

/* ─── iOS SAFE AREA SUPPORT ─── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    @media (max-width: 768px) {
        .nav-tabs {
            padding-bottom: calc(0.35rem + env(safe-area-inset-bottom)) !important;
            height: calc(60px + env(safe-area-inset-bottom)) !important;
            max-height: calc(60px + env(safe-area-inset-bottom)) !important;
        }
        body {
            padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important;
        }
    }
}

/* ─── FLOATING BOTTOM NAVIGATION BAR ─── */
@media (max-width: 768px) {

    /* ── The Bar ── */
    .nav-tabs {
        position: fixed !important;
        bottom: 10px !important;
        top: auto !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        padding: 0.35rem 0.5rem !important;
        height: 60px !important;
        max-height: 60px !important;
        gap: 0 !important;
        justify-content: space-around !important;
        background: rgba(15, 20, 28, 0.92) !important;
        backdrop-filter: blur(24px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 20px !important;
        z-index: 10000 !important;
        flex-wrap: nowrap !important;
        display: flex !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
    }

    /* ── Tab Buttons ── */
    .nav-tab-btn {
        flex-direction: column !important;
        padding: 0.3rem 0 !important;
        font-size: 0 !important;
        line-height: 0 !important;
        border: none !important;
        background: transparent !important;
        border-radius: 14px !important;
        min-width: 0 !important;
        flex: 1 !important;
        height: 44px !important;
        max-width: 64px !important;
        justify-content: center !important;
        align-items: center !important;
        color: rgba(139, 148, 158, 0.7) !important;
        transition: all 0.2s ease !important;
        gap: 2px !important;
        position: relative !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .nav-tab-btn i {
        font-size: 1.2rem !important;
        line-height: 1 !important;
        margin: 0 !important;
        display: block !important;
        transition: transform 0.2s ease, color 0.2s ease !important;
    }

    .nav-tab-btn .nav-label {
        display: none !important;
    }

    .nav-tab-btn:hover {
        background: rgba(255, 255, 255, 0.06) !important;
    }

    .nav-tab-btn.active {
        background: rgba(37, 99, 235, 0.18) !important;
        color: #60a5fa !important;
        border: none !important;
        box-shadow: none !important;
    }

    .nav-tab-btn.active i {
        transform: scale(1.1) !important;
        color: #60a5fa !important;
    }

    /* Active indicator dot */
    .nav-tab-btn.active::after {
        content: '';
        position: absolute;
        bottom: 3px;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: #60a5fa;
    }

    /* ── Body Padding for Fixed Nav ── */
    body {
        padding-bottom: 85px !important;
    }

    /* ─── GLOBAL MOBILE SPACING ─── */
    .p-4, .p-6, .p-8 {
        padding: 0.85rem !important;
    }
    
    .mb-8 { margin-bottom: 1.25rem !important; }
    .mb-12 { margin-bottom: 1.5rem !important; }
    .mt-4 { margin-top: 0.5rem !important; }
    .mt-12 { margin-top: 1.5rem !important; }
    .gap-8 { gap: 1rem !important; }

    /* ─── HERO / HEADER SECTIONS ─── */
    .relative.overflow-hidden.p-8 {
        padding: 1.25rem 1rem !important;
        border-radius: 1rem !important;
        margin-top: 0.25rem !important;
    }

    /* Hero title sizing */
    h1.text-4xl,
    .text-4xl {
        font-size: 1.5rem !important;
    }

    h2.text-2xl,
    .text-2xl {
        font-size: 1.15rem !important;
    }

    /* Hero large background text */
    .font-syne.text-\[clamp\(4rem\,10vw\,8rem\)\] {
        font-size: 3rem !important;
    }

    /* Flex layouts that need to stack */
    .flex.justify-between.items-center.gap-8 {
        gap: 0.75rem !important;
    }

    /* Plan New Shoot button - full width on mobile */
    #planShootBtn {
        width: 100% !important;
        padding: 0.75rem !important;
        font-size: 0.9rem !important;
        border-radius: 0.75rem !important;
    }

    /* ═══════════════════════════════════════════════════════
       MODEL DIRECTORY — COMPACT FILTERS
       ═══════════════════════════════════════════════════════ */

    /* Filter panel container */
    #advancedFiltersPanel {
        padding: 0.75rem !important;
        border-radius: 0.75rem !important;
        margin-top: 0.5rem !important;
    }

    /* Filter grid: 2 columns on mobile, always */
    #filtersContainer {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
    }

    /* Compact filter labels */
    #filtersContainer label {
        font-size: 8px !important;
        margin-bottom: 2px !important;
    }

    /* Compact filter selects and inputs */
    #filtersContainer select,
    #filtersContainer input[type="text"] {
        padding: 0.4rem 0.5rem !important;
        font-size: 0.75rem !important;
        border-radius: 0.5rem !important;
        height: 34px !important;
    }

    /* Filter chips area */
    #activeFilterChips {
        gap: 0.35rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* Search/Sort bar compact */
    .flex.items-center.gap-3.flex-wrap {
        gap: 0.35rem !important;
    }

    /* Search input */
    #searchInput {
        font-size: 0.85rem !important;
        padding: 0.6rem 0.75rem !important;
    }

    /* Sort dropdown */
    #sortSelect {
        font-size: 0.8rem !important;
        padding: 0.5rem !important;
    }

    /* View toggle buttons */
    .view-toggle-container {
        gap: 3px !important;
    }

    .view-toggle-btn {
        padding: 4px 8px !important;
        font-size: 0.75rem !important;
    }

    /* Model grid: 1 column on small, 2 on wider phones */
    #modelGrid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        padding-bottom: 5rem !important;
    }

    /* Color legend compact */
    .color-legend {
        gap: 0.5rem !important;
        padding: 0.5rem 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }

    .legend-item { font-size: 0.65rem !important; }

    /* ═══════════════════════════════════════════════════════
       SHOOT PLANNER — FILTERS & CALENDAR FIX
       ═══════════════════════════════════════════════════════ */

    /* Planner filter bar */
    .glass-planner.p-4.rounded-xl.mb-6 {
        padding: 0.65rem !important;
        border-radius: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }

    /* Filter grid: stack on mobile */
    .glass-planner .grid.grid-cols-1.md\:grid-cols-3 {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }

    /* Compact filter inputs in planner */
    #shootSearchInput {
        padding: 0.6rem 0.75rem !important;
        font-size: 0.85rem !important;
        border-radius: 0.65rem !important;
    }

    #statusFilterBtn,
    #typeFilterBtn {
        padding: 0.6rem 0.75rem !important;
        font-size: 0.85rem !important;
        border-radius: 0.65rem !important;
    }

    /* ── CALENDAR SECTION ── */
    #calendarSection {
        padding: 0.75rem !important;
        border-radius: 1rem !important;
        margin-bottom: 1rem !important;
    }

    /* Calendar header - stack controls */
    #calendarSection > .flex.justify-between {
        flex-direction: column !important;
        gap: 0.5rem !important;
        margin-bottom: 0.75rem !important;
        align-items: stretch !important;
    }

    #calendarSection h2 {
        font-size: 1rem !important;
    }

    /* Calendar navigation - compact horizontal layout */
    #calendarNav {
        gap: 0.35rem !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
    }

    #calendarNav h3,
    #currentWeek {
        font-size: 0.8rem !important;
        min-width: 120px !important;
    }

    #calendarNav button {
        padding: 0.35rem 0.5rem !important;
        font-size: 0.75rem !important;
    }

    #todayBtn {
        padding: 0.35rem 0.75rem !important;
        font-size: 0.72rem !important;
        margin-left: 0.25rem !important;
    }

    /* View toggle button */
    #toggleViewBtn {
        padding: 0.35rem 0.75rem !important;
        font-size: 0.72rem !important;
        align-self: center !important;
    }

    #toggleViewBtn span {
        font-size: 0.72rem !important;
    }

    /* ── WEEKLY CALENDAR VIEW ── */
    #weeklyView {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    #weeklyView > div {
        min-width: 420px !important;
    }

    /* Calendar week header - abbreviated day names */
    .calendar-week-header {
        background: #162C49 !important;
    }

    .calendar-week-header > div {
        padding: 0.5rem 0.15rem !important;
        font-size: 0.68rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Calendar day cells */
    .calendar-day {
        padding: 0.35rem !important;
        min-height: 80px !important;
    }

    .calendar-day .text-sm,
    .calendar-day .text-xs {
        font-size: 0.7rem !important;
    }

    /* Calendar events */
    .calendar-event {
        font-size: 0.65rem !important;
        padding: 2px 4px !important;
        margin-bottom: 2px !important;
        border-radius: 4px !important;
        max-height: 20px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* ── MONTHLY CALENDAR VIEW ── */
    #monthlyView .flex.justify-between {
        flex-direction: column !important;
        gap: 0.5rem !important;
        align-items: stretch !important;
    }

    #monthlyView .flex.gap-2.items-center {
        flex-wrap: wrap !important;
        gap: 0.35rem !important;
        justify-content: center !important;
    }

    #monthSelector {
        font-size: 0.8rem !important;
        padding: 0.35rem !important;
        margin-left: 0 !important;
    }

    #yearInput {
        font-size: 0.8rem !important;
        padding: 0.35rem !important;
        width: 4rem !important;
        margin-left: 0 !important;
    }

    .month-view .calendar-day {
        padding: 0.25rem !important;
        min-height: 60px !important;
    }

    .month-view .calendar-event {
        font-size: 0.6rem !important;
        padding: 1px 3px !important;
    }

    /* ═══════════════════════════════════════════════════════
       SHOOT PLANNER — FORM (Plan New Shoot)
       ═══════════════════════════════════════════════════════ */

    #planFormContainer {
        padding: 1rem !important;
        border-radius: 1rem !important;
        margin-bottom: 1rem !important;
    }

    #planFormContainer h2 {
        font-size: 1.15rem !important;
        margin-bottom: 0.75rem !important;
    }

    /* Form grid: single column on mobile */
    #shootForm {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    /* Form labels */
    #shootForm label {
        font-size: 0.65rem !important;
    }

    /* Form inputs */
    #shootForm input,
    #shootForm select,
    #shootForm textarea {
        padding: 0.65rem 0.75rem !important;
        font-size: 0.85rem !important;
        border-radius: 0.65rem !important;
    }

    /* Shortlist section full width */
    #shortlistSection {
        grid-column: auto !important;
    }

    /* Form buttons - stack and full width */
    .md\:col-span-4.flex.gap-4 {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    .md\:col-span-4.flex.gap-4 button {
        width: 100% !important;
        padding: 0.75rem !important;
        border-radius: 0.75rem !important;
        font-size: 0.85rem !important;
    }

    /* col-span overrides */
    .md\:col-span-2,
    .md\:col-span-4 {
        grid-column: auto !important;
    }

    /* ═══════════════════════════════════════════════════════
       SHOOT CARDS — COMPACT ON MOBILE
       ═══════════════════════════════════════════════════════ */

    .shoot-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    .shoot-card {
        border-radius: 14px !important;
    }

    .shoot-card-body {
        padding: 0.85rem 1rem !important;
        gap: 0.5rem !important;
    }

    .shoot-card-title {
        font-size: 0.92rem !important;
    }

    .shoot-card-meta {
        gap: 0.3rem 0.75rem !important;
    }

    .shoot-card-meta-item {
        font-size: 0.75rem !important;
    }

    .shoot-card-footer {
        padding: 0.5rem 1rem !important;
    }

    .shoot-card-action-btn {
        font-size: 0.72rem !important;
        padding: 4px 9px !important;
    }

    /* ═══════════════════════════════════════════════════════
       SHOOT POPUP / MODAL — MOBILE FULLSCREEN
       ═══════════════════════════════════════════════════════ */

    .shoot-popup .popup-content {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        height: 100vh !important;
    }

    .shoot-popup .popup-content .glass {
        border-radius: 0 !important;
        padding: 1rem !important;
        min-height: 100vh !important;
    }

    /* Popup multi-model grid */
    .multi-model-grid {
        grid-template-columns: 1fr !important;
    }

    /* ═══════════════════════════════════════════════════════
       GEAR INVENTORY — MOBILE COMPACT
       ═══════════════════════════════════════════════════════ */

    /* Gear checklist grid */
    #gearChecklist {
        grid-template-columns: 1fr !important;
    }

    /* ═══════════════════════════════════════════════════════
       INSPIRATIONS — MOBILE COMPACT
       ═══════════════════════════════════════════════════════ */

    /* Board cards grid */
    .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3 {
        grid-template-columns: 1fr !important;
    }

    .board-card {
        border-radius: 1rem !important;
    }

    /* Board page overlay */
    .bp-topbar {
        padding: 0.65rem 0.75rem !important;
    }

    .bp-gallery-wrap {
        padding: 0.75rem !important;
    }

    /* ═══════════════════════════════════════════════════════
       MODELS ANALYTICS — MOBILE COMPACT
       ═══════════════════════════════════════════════════════ */

    .metric-card {
        padding: 1rem !important;
        border-radius: 1rem !important;
    }

    .metric-value {
        font-size: 1.4rem !important;
    }

    .chart-container {
        padding: 0.75rem !important;
        border-radius: 1rem !important;
        min-height: 280px !important;
    }

    /* ═══════════════════════════════════════════════════════
       MODEL LIST VIEW — MOBILE COMPACT
       ═══════════════════════════════════════════════════════ */

    .model-list-item {
        padding: 0.5rem 0.65rem !important;
        border-radius: 10px !important;
    }

    .model-list-name {
        font-size: 0.82rem !important;
    }

    .model-list-meta {
        font-size: 0.68rem !important;
    }

    .model-list-details {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.15rem 0.35rem !important;
    }

    /* ═══════════════════════════════════════════════════════
       SHOOT VIEW (DSV) — MOBILE OPTIMIZED
       ═══════════════════════════════════════════════════════ */

    .dsv-topbar {
        padding: 0.65rem 0.75rem !important;
    }

    .dsv-hero {
        padding: 1.25rem 0.85rem 1rem !important;
    }

    .dsv-title {
        font-size: 1.3rem !important;
    }

    .dsv-meta-row {
        gap: 0.75rem !important;
    }

    .dsv-panel {
        padding: 1rem !important;
    }

    .dsv-strip {
        height: 100px !important;
    }

    .dsv-body {
        grid-template-columns: 1fr !important;
    }

    .dsv-ig-list.dsv-ig-list--multi {
        grid-template-columns: 1fr !important;
    }

    .dsv-ig-list.dsv-ig-list--shortlist-multi {
        grid-template-columns: 1fr !important;
    }

    .dsv-gallery-section {
        padding: 1rem !important;
    }

    .dsv-masonry {
        columns: 2 !important;
        column-gap: 0.4rem !important;
    }

    .dsv-edit-panel-inner {
        padding: 1rem !important;
    }

    .dsv-edit-grid {
        grid-template-columns: 1fr !important;
    }

    /* ═══════════════════════════════════════════════════════
       MODAL — MOBILE FULL-SCREEN SHEET
       ═══════════════════════════════════════════════════════ */

    .modal-box {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 1rem 1rem 0 0 !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        padding: 1.25rem !important;
    }

    /* ═══════════════════════════════════════════════════════
       FORM INPUTS — PREVENT iOS ZOOM + TOUCH TARGETS
       ═══════════════════════════════════════════════════════ */

    input, select, textarea {
        font-size: 16px !important;
        min-height: 44px;
        -webkit-appearance: none;
    }

    /* Touch target minimum 44px for all buttons */
    button, a.nav-tab-btn, .shoot-card-action-btn,
    .view-toggle-btn, .dsv-btn, .insp-btn {
        min-height: 36px;
        -webkit-tap-highlight-color: transparent;
    }

    /* ═══════════════════════════════════════════════════════
       LIGHTBOX — MOBILE TOUCH FRIENDLY
       ═══════════════════════════════════════════════════════ */

    .dsv-lb-nav, .lb-nav, .lb-nav-btn {
        width: 40px !important;
        height: 40px !important;
    }

    .dsv-lb-prev, .lb-prev { left: 8px !important; }
    .dsv-lb-next, .lb-next { right: 8px !important; }
    .lb-nav-btn.left { left: 8px !important; }
    .lb-nav-btn.right { right: 8px !important; }

    /* ═══════════════════════════════════════════════════════
       TOAST — POSITION ABOVE FLOATING NAV
       ═══════════════════════════════════════════════════════ */

    #toast {
        bottom: 90px !important;
        right: 16px !important;
        left: 16px !important;
        max-width: none !important;
        border-radius: 10px !important;
        font-size: 0.8rem !important;
    }

    /* ═══════════════════════════════════════════════════════
       GRID OVERRIDES — SINGLE COLUMN ON MOBILE
       ═══════════════════════════════════════════════════════ */

    .grid.grid-cols-2,
    .grid.grid-cols-3,
    .grid.grid-cols-4 {
        grid-template-columns: 1fr !important;
    }

    /* Stats grid exception: keep 2 cols */
    .grid.grid-cols-2.sm\:grid-cols-3.md\:grid-cols-4,
    .dsv-stats-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    /* ═══════════════════════════════════════════════════════
       MISC MOBILE POLISH
       ═══════════════════════════════════════════════════════ */

    /* Prevent horizontal scrollbar */
    html, body {
        overflow-x: hidden !important;
    }

    /* Smooth momentum scrolling */
    * {
        -webkit-overflow-scrolling: touch;
    }

    /* Word break for long text */
    * {
        word-break: break-word;
    }

    /* Stat cards on mobile */
    .stat-card {
        padding: 0.6rem !important;
        border-radius: 0.75rem !important;
    }

    .stat-card .text-2xl {
        font-size: 1.2rem !important;
    }

    /* Board card strip */
    .board-card-strip {
        height: 80px !important;
    }

    /* Moodboard strip on shoot card */
    .shoot-card-moodboard-strip {
        height: 48px !important;
    }

    /* Login page mobile */
    .login-container,
    form.login-form {
        max-width: 100% !important;
        margin: 0 0.75rem !important;
    }

    /* Compact scrollbar */
    ::-webkit-scrollbar { width: 3px; height: 3px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }
}

/* ─── EXTRA SMALL SCREENS (≤ 380px) ─── */
@media (max-width: 380px) {
    .nav-tabs {
        bottom: 6px !important;
        left: 8px !important;
        right: 8px !important;
        height: 54px !important;
        max-height: 54px !important;
        border-radius: 16px !important;
    }

    .nav-tab-btn {
        height: 40px !important;
    }

    .nav-tab-btn i {
        font-size: 1.1rem !important;
    }

    #filtersContainer {
        grid-template-columns: 1fr !important;
    }

    .shoot-cards-grid {
        gap: 0.5rem !important;
    }

    h1.text-4xl, .text-4xl {
        font-size: 1.25rem !important;
    }
}
