/* ShootVault — app styles (mobile-first, on top of Bootstrap 5.3) */

:root {
    --sv-primary: #4f46e5;
    --sv-primary-dark: #4338ca;
    --sv-primary-soft: #eef2ff;
    --sv-sidebar-bg: #1e1b2e;
    --sv-sidebar-text: #c9c6dc;
    --sv-sidebar-muted: #7f7b98;
    --sv-sidebar-active: rgba(255, 255, 255, .1);
    --sv-bg: #f5f6fa;
    --sv-border: #e6e7ef;
    --sv-radius: .85rem;
    --sv-sidebar-w: 260px;
    --bs-primary: #4f46e5;
    --bs-primary-rgb: 79, 70, 229;
    --bs-link-color: #4f46e5;
    --bs-link-color-rgb: 79, 70, 229;
    --bs-link-hover-color: #4338ca;
    --bs-link-hover-color-rgb: 67, 56, 202;
    --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

body { background: var(--sv-bg); color: #1f2333; }

/* Bootstrap primary colour override */
.btn-primary {
    --bs-btn-bg: var(--sv-primary); --bs-btn-border-color: var(--sv-primary);
    --bs-btn-hover-bg: var(--sv-primary-dark); --bs-btn-hover-border-color: var(--sv-primary-dark);
    --bs-btn-active-bg: var(--sv-primary-dark); --bs-btn-active-border-color: var(--sv-primary-dark);
    --bs-btn-disabled-bg: var(--sv-primary); --bs-btn-disabled-border-color: var(--sv-primary);
}
.btn-outline-primary {
    --bs-btn-color: var(--sv-primary); --bs-btn-border-color: var(--sv-primary);
    --bs-btn-hover-bg: var(--sv-primary); --bs-btn-hover-border-color: var(--sv-primary);
    --bs-btn-active-bg: var(--sv-primary-dark); --bs-btn-active-border-color: var(--sv-primary-dark);
}
.text-primary { color: var(--sv-primary) !important; }
.bg-primary-soft { background: var(--sv-primary-soft) !important; }
.form-control:focus, .form-select:focus, .form-check-input:focus {
    border-color: #a5b4fc; box-shadow: 0 0 0 .2rem rgba(79, 70, 229, .15);
}
.form-check-input:checked { background-color: var(--sv-primary); border-color: var(--sv-primary); }
.pagination { --bs-pagination-active-bg: var(--sv-primary); --bs-pagination-active-border-color: var(--sv-primary); --bs-pagination-color: var(--sv-primary); }

/* Touch-friendly inputs; 16px stops iPhone zoom on focus */
.form-control, .form-select { font-size: 1rem; min-height: 2.9rem; border-radius: .6rem; }
textarea.form-control { min-height: 6rem; }
.btn { border-radius: .6rem; font-weight: 500; }
.btn:not(.btn-sm):not(.btn-icon):not(.user-chip):not(.nav-link) { min-height: 2.75rem; }
.form-label { font-weight: 500; font-size: .92rem; margin-bottom: .35rem; }
.form-text { font-size: .8rem; }

.skip-link { position: absolute; left: .5rem; top: .5rem; z-index: 2000; background: #fff; padding: .5rem .75rem; border-radius: .5rem; }

/* ---------- App shell ---------- */
.app-shell { display: flex; min-height: 100vh; }
.app-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.app-content { flex: 1 0 auto; padding: 1rem; width: 100%; max-width: 1280px; }
@media (min-width: 768px) { .app-content { padding: 1.5rem; } }

/* Sidebar */
.app-sidebar {
    --bs-offcanvas-width: 280px;
    --bs-offcanvas-bg: var(--sv-sidebar-bg);
    background: var(--sv-sidebar-bg);
    color: var(--sv-sidebar-text);
    display: flex; flex-direction: column;
}
@media (min-width: 992px) {
    .app-sidebar {
        width: var(--sv-sidebar-w); flex: 0 0 var(--sv-sidebar-w);
        position: sticky; top: 0; height: 100vh; overflow-y: auto;
    }
}
.sidebar-brand { display: flex; align-items: center; gap: .5rem; padding: 1.1rem 1rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.brand-mark {
    width: 2.4rem; height: 2.4rem; border-radius: .7rem; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #6366f1, #a855f7); color: #fff; font-size: 1.15rem;
}
.brand-logo { width: 2.4rem; height: 2.4rem; border-radius: .7rem; object-fit: cover; background: #fff; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-studio { color: #fff; font-weight: 600; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.brand-app { color: var(--sv-sidebar-muted); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }

.sidebar-nav { padding: .75rem .65rem; flex: 1 1 auto; }
.nav-section { color: var(--sv-sidebar-muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; padding: .9rem .75rem .35rem; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.app-sidebar .nav-link {
    display: flex; align-items: center; gap: .75rem;
    color: var(--sv-sidebar-text); padding: .7rem .75rem; border-radius: .6rem;
    font-size: .95rem; text-align: left; text-decoration: none;
}
.app-sidebar .nav-link i { font-size: 1.1rem; width: 1.25rem; text-align: center; }
.app-sidebar a.nav-link:hover, .app-sidebar button.nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.app-sidebar .nav-link.active { background: var(--sv-sidebar-active); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 #818cf8; }
.app-sidebar .disabled-soon { opacity: .5; cursor: not-allowed; }
.badge-soon { margin-left: auto; font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; padding: .15rem .45rem; border-radius: 1rem; background: rgba(255,255,255,.1); color: var(--sv-sidebar-text); }
.sidebar-footer { padding: .65rem; border-top: 1px solid rgba(255,255,255,.06); }

/* Top bar */
.app-topbar {
    position: sticky; top: 0; z-index: 1020;
    display: flex; align-items: center; gap: .5rem;
    background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--sv-border);
    padding: .55rem 1rem; min-height: 3.75rem;
}
@media (min-width: 768px) { .app-topbar { padding: .6rem 1.5rem; } }
.btn-icon { width: 2.6rem; height: 2.6rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; border-radius: .6rem; padding: 0; }
.btn-icon:hover { background: var(--sv-bg); }
.topbar-title { min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.topbar-studio { font-size: .72rem; color: #6b7085; text-transform: uppercase; letter-spacing: .05em; }
.topbar-page { font-size: 1.1rem; font-weight: 600; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--sv-border); border-radius: 2rem; padding: .2rem .65rem .2rem .2rem; background: #fff; }
.user-chip-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
    width: 2.1rem; height: 2.1rem; border-radius: 50%; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--sv-primary-soft); color: var(--sv-primary); font-weight: 600; font-size: .85rem;
}
.avatar-lg { width: 4rem; height: 4rem; font-size: 1.4rem; }

.app-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem; font-size: .8rem; color: #8a8fa3; border-top: 1px solid var(--sv-border); }

/* ---------- Cards & widgets ---------- */
.card { border: 1px solid var(--sv-border); border-radius: var(--sv-radius); box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.card-header { background: #fff; border-bottom: 1px solid var(--sv-border); padding: .9rem 1.1rem; border-radius: var(--sv-radius) var(--sv-radius) 0 0 !important; }
.card-title-sm { font-size: 1rem; font-weight: 600; margin: 0; }
.card-body { padding: 1.1rem; }
@media (min-width: 768px) { .card-body { padding: 1.35rem; } }

.welcome-card {
    background: linear-gradient(120deg, #312e81 0%, #4f46e5 55%, #7c3aed 100%);
    color: #fff; border: 0;
}
.welcome-card .text-muted-light { color: rgba(255,255,255,.78); }

.stat-card { display: flex; align-items: center; gap: .9rem; }
.stat-icon { width: 2.9rem; height: 2.9rem; border-radius: .75rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; flex: 0 0 auto; }
.stat-value { font-size: 1.35rem; font-weight: 700; line-height: 1.1; }
.stat-label { font-size: .8rem; color: #6b7085; }
.tone-indigo { background: #eef2ff; color: #4f46e5; }
.tone-green { background: #ecfdf3; color: #059669; }
.tone-amber { background: #fff7ed; color: #d97706; }
.tone-rose { background: #fff1f2; color: #e11d48; }

.step-list { list-style: none; padding: 0; margin: 0; }
.step-list li { display: flex; gap: .75rem; padding: .7rem 0; border-bottom: 1px dashed var(--sv-border); }
.step-list li:last-child { border-bottom: 0; }
.step-dot { width: 1.75rem; height: 1.75rem; border-radius: 50%; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 600; background: #f1f2f6; color: #6b7085; }
.step-dot.done { background: #ecfdf3; color: #059669; }

.activity-list { list-style: none; margin: 0; padding: 0; }
.activity-list li { display: flex; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid #f1f2f6; font-size: .9rem; }
.activity-list li:last-child { border-bottom: 0; }

.empty-state { text-align: center; padding: 2.5rem 1rem; }
.empty-icon { width: 3.5rem; height: 3.5rem; border-radius: 50%; margin: 0 auto .75rem; display: flex; align-items: center; justify-content: center; background: var(--sv-primary-soft); color: var(--sv-primary); font-size: 1.5rem; }

.status-badge { font-weight: 500; }
.logo-preview { width: 5.5rem; height: 5.5rem; border-radius: 1rem; object-fit: cover; border: 1px solid var(--sv-border); background: #fff; }
.logo-placeholder { width: 5.5rem; height: 5.5rem; border-radius: 1rem; display: flex; align-items: center; justify-content: center; background: var(--sv-primary-soft); color: var(--sv-primary); font-size: 2rem; }

/* Sticky save bar on phones keeps the main button reachable with one hand */
.form-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
@media (max-width: 575.98px) {
    .form-actions { position: sticky; bottom: 0; background: var(--sv-bg); padding: .75rem 0; margin: 0 -.1rem; z-index: 5; }
    .form-actions .btn { flex: 1 1 auto; }
}

/* ---------- Guest pages (login, register, installer) ---------- */
.guest-body { background: radial-gradient(circle at 15% 10%, #e0e7ff 0, transparent 45%), radial-gradient(circle at 90% 90%, #f3e8ff 0, transparent 40%), var(--sv-bg); }
.guest-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem 1rem; }
.guest-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--sv-border); border-radius: 1.1rem; box-shadow: 0 12px 40px rgba(30, 27, 75, .08); padding: 1.5rem; }
.guest-card-wide { max-width: 640px; }
@media (min-width: 576px) { .guest-card { padding: 2.25rem; } }
.guest-brand { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.4rem; }
.guest-brand-name { font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
.guest-title { font-size: 1.4rem; font-weight: 700; margin-bottom: .25rem; letter-spacing: -.01em; }
.guest-foot { margin-top: 1.25rem; font-size: .82rem; color: #8a8fa3; text-align: center; }
.error-code { font-size: 3.5rem; font-weight: 800; line-height: 1; color: var(--sv-primary); margin-bottom: .5rem; }

.pw-wrap { position: relative; }
.pw-wrap .form-control { padding-right: 3rem; }
.pw-toggle { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #6b7085; width: 2.4rem; height: 2.4rem; border-radius: .5rem; }
.pw-wrap .form-control.is-invalid ~ .pw-toggle { right: 2rem; }
.pw-wrap .invalid-feedback { position: static; }

.req-list { list-style: none; padding: 0; margin: 0; }
.req-list li { display: flex; align-items: center; gap: .5rem; padding: .35rem 0; font-size: .92rem; }

.section-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: #6b7085; font-weight: 600; margin: 1.25rem 0 .75rem; }

@media print {
    .app-sidebar, .app-topbar, .app-footer, .form-actions, .btn { display: none !important; }
    .app-content { padding: 0; }
    body { background: #fff; }
}
.min-w-0 { min-width: 0; }

/* Bootstrap makes .offcanvas-lg transparent on large screens — keep our dark sidebar */
@media (min-width: 992px) {
    .app-sidebar.offcanvas-lg { background-color: var(--sv-sidebar-bg) !important; }
}

/* ---------- Phase 2: list pages, filters, forms ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.page-head h2 { font-size: 1.15rem; font-weight: 700; margin: 0; }
.page-head .page-sub { font-size: .85rem; color: #6b7085; }
.filter-bar .form-select, .filter-bar .form-control { min-height: 2.6rem; }

.list-card .card-body { padding: 0; }
.list-row { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; border-bottom: 1px solid #f1f2f6; }
.list-row:last-child { border-bottom: 0; }
.list-row.is-inactive .list-title, .list-row.is-inactive .row-icon { opacity: .55; }
a.list-row { color: inherit; text-decoration: none; }
a.list-row:hover { background: #fafbff; }
.list-main { flex: 1 1 auto; min-width: 0; }
.list-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-meta { font-size: .82rem; color: #6b7085; display: flex; flex-wrap: wrap; gap: .15rem .9rem; margin-top: .15rem; }
.list-meta i { margin-right: .2rem; }
.list-actions { flex: 0 0 auto; display: flex; align-items: center; gap: .35rem; }
.row-icon { width: 2.6rem; height: 2.6rem; border-radius: .7rem; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; background: var(--sv-primary-soft); color: var(--sv-primary); }
.row-code { min-width: 3.6rem; width: auto; padding: 0 .5rem; font-weight: 700; font-size: .85rem; letter-spacing: .02em; }
.btn-row { width: 2.4rem; height: 2.4rem; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: .55rem; }
.summary-strip { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .88rem; color: #4b5064; margin-bottom: .75rem; }
.summary-strip strong { color: #1f2333; }

/* Project form: function rows */
.event-row { border: 1px solid var(--sv-border); border-radius: .75rem; padding: .85rem; margin-bottom: .75rem; background: #fcfcfe; position: relative; }
.event-row .btn-remove { position: absolute; top: .45rem; right: .45rem; }
.event-row .event-num { font-size: .75rem; font-weight: 600; color: #6b7085; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem; }
.chip-btn { border: 1px dashed #c7cbe0; background: #fff; border-radius: 2rem; padding: .35rem .8rem; font-size: .85rem; color: #4b5064; }
.chip-btn:hover { border-color: var(--sv-primary); color: var(--sv-primary); }

/* Project view */
.info-grid { display: grid; grid-template-columns: 1fr; gap: .9rem 1.5rem; }
@media (min-width: 576px) { .info-grid { grid-template-columns: 1fr 1fr; } }
.info-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: #8a8fa3; }
.info-value { font-weight: 500; word-break: break-word; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: flex; gap: .85rem; padding: .7rem 0; border-bottom: 1px dashed var(--sv-border); }
.timeline li:last-child { border-bottom: 0; }
.date-box { width: 3.2rem; flex: 0 0 auto; text-align: center; border-radius: .6rem; background: var(--sv-primary-soft); color: var(--sv-primary); padding: .3rem 0; line-height: 1.1; }
.date-box .d { font-size: 1.15rem; font-weight: 700; }
.date-box .m { font-size: .68rem; text-transform: uppercase; font-weight: 600; }
.nav-tabs-scroll { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.nav-tabs-scroll .nav-link { white-space: nowrap; }
.nav-tabs-scroll .nav-link.disabled .badge-soon-light { font-size: .6rem; background: #f1f2f6; color: #8a8fa3; border-radius: 1rem; padding: .1rem .4rem; margin-left: .25rem; text-transform: uppercase; }

/* Deliverable types */
.dtype-row { display: flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-bottom: 1px solid #f1f2f6; }
.dtype-row:last-child { border-bottom: 0; }
.dtype-row .form-control { min-height: 2.5rem; }
.dtype-row.is-inactive .form-control { color: #9aa0b4; text-decoration: line-through; }
.dtype-order { display: flex; flex-direction: column; gap: 2px; }
.dtype-order .btn { width: 2rem; height: 1.3rem; padding: 0; line-height: 1; font-size: .8rem; min-height: 0 !important; }

/* ---------- Phase 3: shoot entry ---------- */
.card-row { border: 1px solid var(--sv-border); border-radius: .85rem; padding: .85rem; margin-bottom: .75rem; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.card-row-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.card-row-num { font-weight: 700; font-size: .9rem; }
.card-row-size { font-size: .8rem; color: var(--sv-primary); font-weight: 600; background: var(--sv-primary-soft); border-radius: 1rem; padding: .05rem .5rem; }
.card-row-size:empty { display: none; }
.copies-box { margin-top: .75rem; border-top: 1px dashed var(--sv-border); padding-top: .6rem; }
.copies-box.has-error { border-top-color: #dc3545; }
.copies-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; color: #6b7085; margin-bottom: .4rem; }
.copy-line { margin-bottom: .5rem; }
.copy-grid { display: grid; grid-template-columns: minmax(0, 1fr) 6.8rem auto; gap: .4rem; align-items: center; }
.copy-grid .copy-folder { grid-column: 1 / -1; }
@media (min-width: 768px) {
    .copy-grid { grid-template-columns: minmax(0, 1.2fr) 7rem minmax(0, 1.5fr) auto; }
    .copy-grid .copy-folder { grid-column: 3; grid-row: 1; }
    .copy-grid .btn-copy-remove { grid-column: 4; grid-row: 1; }
}
.copy-grid .form-select-sm, .copy-grid .form-control-sm { min-height: 2.5rem; font-size: .95rem; }
.copy-grid .btn-copy-remove { width: 2.5rem; height: 2.5rem; padding: 0; }
.defaults-card .copy-grid { grid-template-columns: minmax(0, 1fr) 6.8rem auto; }
.defaults-card { border-color: #c7d2fe; background: #fbfbff; }
.quick-crew { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.totals-big { font-size: 1.5rem; font-weight: 700; margin-bottom: .5rem; }
.totals-big span { font-size: .9rem; font-weight: 500; color: #6b7085; }
.totals-h { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: #8a8fa3; font-weight: 600; margin-bottom: .25rem; }
.totals-list { list-style: none; padding: 0; margin: 0; }
.totals-list li { display: flex; justify-content: space-between; gap: .5rem; padding: .3rem 0; border-bottom: 1px solid #f1f2f6; font-size: .92rem; }
.totals-list li:last-child { border-bottom: 0; }
.shoot-actions { align-items: center; }
.shoot-total-mini { font-weight: 600; font-size: .95rem; flex: 1 0 100%; }
@media (min-width: 576px) { .shoot-total-mini { flex: 0 0 auto; margin-right: auto; order: 2; } .shoot-actions .btn-primary { order: 0; } .shoot-actions .btn-outline-secondary { order: 1; } }
.media-pill { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 600; border-radius: 1rem; padding: .1rem .55rem; }
.media-photo { background: #eef2ff; color: #4338ca; }
.media-video { background: #fdf2f8; color: #be185d; }
.media-drone { background: #ecfeff; color: #0e7490; }
.media-audio { background: #fefce8; color: #a16207; }
.copy-chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; border: 1px solid var(--sv-border); border-radius: .5rem; padding: .15rem .45rem; background: #fff; margin: 0 .25rem .25rem 0; }
.copy-chip .ct { font-size: .68rem; text-transform: uppercase; color: #8a8fa3; }
.cap-bar .progress { height: .5rem; border-radius: 1rem; }
.cap-bar-compact { min-width: 9rem; }
.cap-text { display: flex; justify-content: space-between; gap: .5rem; font-size: .76rem; color: #6b7085; margin-top: .2rem; flex-wrap: wrap; }
.stat-mini { border: 1px solid var(--sv-border); border-radius: .75rem; padding: .7rem .85rem; background: #fff; }
.stat-mini .v { font-size: 1.25rem; font-weight: 700; }
.stat-mini .l { font-size: .78rem; color: #6b7085; }
.table-items td, .table-items th { vertical-align: top; font-size: .9rem; }
@media print {
    .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
    .no-print, .nav-tabs { display: none !important; }
    .print-only { display: block !important; }
    a { color: inherit; text-decoration: none; }
}
.print-only { display: none; }

/* Phase 3: collapsible disks per card */
.copies-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .4rem; }
.copies-head .copies-title { margin-bottom: 0; }
.copies-summary { font-size: .85rem; font-weight: 600; color: #374151; flex: 1 1 auto; min-width: 0; }
.copies-box.is-collapsed .copies-edit { display: none; }
.copies-box.is-collapsed .copies-head { margin-bottom: 0; }

/* Phase 3: entry view card blocks (work at any width) */
.item-block { padding: .8rem 1rem; border-bottom: 1px solid #f1f2f6; }
.item-block:last-child { border-bottom: 0; }
.item-top { display: flex; gap: .75rem; align-items: flex-start; }
.item-no { width: 1.6rem; height: 1.6rem; flex: 0 0 auto; border-radius: 50%; background: #f1f2f6; color: #6b7085; font-size: .78rem; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.item-copies { margin: .45rem 0 0 2.35rem; display: flex; flex-wrap: wrap; align-items: center; }
.copy-chip { max-width: 100%; flex-wrap: wrap; }
.copy-chip .folder-text { overflow-wrap: anywhere; }

/* ---------- Phase 4: deliverables & disk page ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip-filter { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--sv-border); background: #fff; color: #374151; border-radius: 2rem; padding: .35rem .8rem; font-size: .88rem; text-decoration: none; }
.chip-filter:hover { border-color: var(--sv-primary); color: var(--sv-primary); }
.chip-filter.active { background: var(--sv-primary); border-color: var(--sv-primary); color: #fff; }
.chip-count { font-weight: 700; font-size: .78rem; border-radius: 1rem; padding: 0 .4rem; background: #f1f2f6; color: #374151; }
.chip-filter.active .chip-count { background: rgba(255,255,255,.25); color: #fff; }
.chip-red .chip-count { background: #fee2e2; color: #b91c1c; }
.chip-amber .chip-count { background: #fef3c7; color: #b45309; }
.chip-indigo .chip-count { background: var(--sv-primary-soft); color: var(--sv-primary); }
.btn-plus1 { min-width: 2.8rem; height: 2.4rem; padding: 0 .5rem; font-weight: 700; border-radius: .55rem; }
.deliv-row .list-title { white-space: normal; }
.add-row { padding: .75rem 1rem; border-bottom: 1px solid #f1f2f6; }
.add-row:last-child { border-bottom: 0; }
.add-row.is-picked { background: #fbfbff; }
.add-row-fields { margin-top: .5rem; }
.js-collapse .add-row:not(.is-picked) .add-row-fields { display: none; }
.add-row-check .form-check-input { width: 1.3rem; height: 1.3rem; margin-top: .1rem; }
.disk-proj { padding: .85rem 1rem; border-bottom: 1px solid #f1f2f6; }
.disk-proj:last-child { border-bottom: 0; }
.disk-detail summary { font-size: .85rem; color: var(--sv-primary); cursor: pointer; margin-top: .35rem; }
.folder-text { overflow-wrap: anywhere; }
