:root {
    color-scheme: light;

    --background: #edf0f4;
    --panel: #ffffff;
    --panel-soft: #f8f9fb;
    --text: #172033;
    --muted: #667085;
    --border: #dfe3eb;
    --border-strong: #cbd2dc;

    --brand: #b51f2b;
    --brand-dark: #8f1721;

    --success: #167251;
    --warning: #8a5b08;
    --blue: #294d9b;
    --violet: #7046a1;

    --shadow:
        0 10px 28px rgba(23, 32, 51, 0.055);
}

html {
    min-height: 100%;
}

body.app-body {
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
}

button,
input,
textarea,
select {
    font: inherit;
}

.app-header {
    position: sticky;
    z-index: 20;
    top: 0;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;

    min-height: 72px;
    padding: 11px 28px;

    border-bottom: 1px solid var(--border);
    color: var(--text);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(15px);
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.app-logo {
    display: grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    place-items: center;

    border-radius: 11px;
    color: #ffffff;
    background: var(--brand);

    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.app-brand-copy strong {
    display: block;
    font-size: 15px;
    letter-spacing: 0.015em;
}

.app-brand-copy span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
}

.workspace-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.workspace-nav a {
    padding: 8px 11px;
    border-radius: 8px;
    color: var(--muted);
    background: transparent;
    font-size: 13px;
    font-weight: 700;
}

.workspace-nav a:hover {
    color: var(--text);
    background: #f2f4f7;
}

.workspace-nav a.active {
    color: var(--text);
    background: #eceff3;
}

.header-user {
    padding-left: 14px;
    border-left: 1px solid var(--border);
    text-align: right;
}

.header-user strong {
    display: block;
    font-size: 13px;
}

.header-user span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

.header-logout {
    display: inline-flex;
    min-height: 38px;
    padding: 8px 13px;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: 9px;
    background: #ffffff;

    font-size: 13px;
    font-weight: 750;
}

.header-logout:hover {
    background: #f6f7f9;
}

.workspace {
    width: min(1380px, calc(100% - 40px));
    margin: 0 auto;
    padding: 34px 0 70px;
}

.page-heading,
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 26px;
}

.page-heading h1,
.page-header h1 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: clamp(31px, 4vw, 48px);
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.page-heading p,
.page-header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.eyebrow {
    margin-bottom: 8px;
    color: var(--brand);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.16em;
}

.page-heading-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card,
.empty-state,
.shoot-card {
    border: 1px solid var(--border);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.card {
    padding: 22px 24px;
    border-radius: 18px;
}

.card h2 {
    margin-bottom: 8px;
    color: var(--text);
    font-size: 20px;
}

.muted {
    color: var(--muted) !important;
}

.button,
.button-link,
.primary-button {
    display: inline-flex;
    min-height: 42px;
    padding: 10px 16px;
    justify-content: center;
    align-items: center;

    border: 1px solid var(--brand);
    border-radius: 10px;

    color: #ffffff;
    background: var(--brand);

    font-weight: 800;
    cursor: pointer;
}

.button:hover,
.button-link:hover,
.primary-button:hover {
    border-color: var(--brand-dark);
    background: var(--brand-dark);
}

.button.secondary {
    border-color: var(--border);
    color: var(--text);
    background: #ffffff;
}

.button.secondary:hover {
    border-color: var(--border-strong);
    background: #f6f7f9;
}

.button.small {
    min-height: 36px;
    padding: 7px 11px;
    border-radius: 8px;
    font-size: 12px;
}

.button:disabled,
button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.shoot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.shoot-card {
    display: flex;
    min-width: 0;
    min-height: 245px;
    padding: 22px;
    flex-direction: column;

    border-radius: 17px;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}

.shoot-card-link:hover {
    transform: translateY(-2px);
    border-color: #c8ced8;
    box-shadow: 0 16px 34px rgba(23, 32, 51, 0.09);
}

.shoot-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.shoot-card h2 {
    margin: 24px 0;
    font-size: 22px;
    line-height: 1.28;
    letter-spacing: -0.02em;
}

.shoot-date {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.shoot-card-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    margin-top: auto;
}

.shoot-card-details > div {
    min-width: 0;
}

.shoot-card-details strong {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shoot-card-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.055em;
}

.shoot-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin: 18px -22px -22px;
    padding: 14px 22px;

    border-top: 1px solid var(--border);
    color: var(--brand);

    font-size: 13px;
    font-weight: 800;
}

.badge {
    display: inline-flex;
    min-height: 26px;
    padding: 5px 9px;
    align-items: center;

    border-radius: 999px;
    color: #475467;
    background: #eef0f3;

    font-size: 11px;
    font-weight: 850;
}

.status-draft {
    color: #475467;
    background: #eef0f3;
}

.status-uploading {
    color: var(--blue);
    background: #eef4ff;
}

.status-review {
    color: var(--violet);
    background: #f4edff;
}

.status-published {
    color: var(--success);
    background: #eaf8f2;
}

.status-archived {
    color: #475467;
    background: #e7e9ed;
}

.client-gallery-label {
    display: inline-flex;
    padding: 6px 9px;

    border-radius: 999px;
    color: var(--brand-dark);
    background: #fff0f1;

    font-size: 11px;
    font-weight: 850;
}

.empty-state {
    padding: 70px 30px;
    border-radius: 20px;
    text-align: center;
}

.empty-icon {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 42px;
}

.empty-state h2 {
    margin-bottom: 8px;
}

.empty-state p {
    margin: 0 auto 22px;
    max-width: 520px;
    color: var(--muted);
    line-height: 1.55;
}

.grid.two {
    gap: 18px;
}

.details {
    grid-template-columns: 140px 1fr;
    gap: 10px 16px;
}

.details dt {
    color: var(--muted);
    font-size: 13px;
}

.details dd {
    color: var(--text);
    font-size: 14px;
}

.client-checkbox-item {
    border-color: var(--border);
    background: var(--panel-soft);
}

.client-checkbox-item:hover {
    border-color: var(--border-strong);
    background: #ffffff;
}

.err-recent-events {
    border-color: var(--border);
    background: var(--panel-soft);
}

.err-event-row {
    border-color: var(--border);
}

.photo-section-header {
    margin-bottom: 18px;
}

.photo-grid {
    grid-template-columns: repeat(
        auto-fill,
        minmax(250px, 1fr)
    );
    gap: 16px;
}

.photo-card {
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(23, 32, 51, 0.045);
}

.photo-card.selected {
    outline-color: rgba(181, 31, 43, 0.55);
}

.photo-preview-link {
    background: #111720;
}

.photo-card-body {
    padding: 13px;
}

.photo-filename {
    color: var(--text);
    font-size: 13px;
}

.photo-meta {
    color: var(--muted);
    font-size: 11px;
}

.photo-select input:checked + span {
    background: var(--brand);
}

.operation-banner {
    border-color: rgba(41, 77, 155, 0.22);
    color: var(--blue);
    background: #eef4ff;
}

/* Login */

.login-body {
    display: grid;
    min-height: 100vh;
    padding: 32px 20px;
    place-items: center;

    color: #f4f7fb;
    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(73, 101, 145, 0.18),
            transparent 32%
        ),
        radial-gradient(
            circle at 90% 90%,
            rgba(42, 63, 96, 0.22),
            transparent 36%
        ),
        #0b1018;
}

.login-shell {
    width: min(100%, 440px);
}

.login-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.login-brand-mark {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;

    border: 1px solid #3a4658;
    border-radius: 15px;

    color: #f7f9fc;
    background: #182231;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 12px 30px rgba(0, 0, 0, 0.28);

    font-size: 20px;
    font-weight: 850;
}

.login-product-name {
    color: #f7f9fc;
    font-size: 18px;
    font-weight: 750;
}

.login-tagline {
    margin-top: 4px;
    color: #8f9bad;
    font-size: 12px;
}

.login-body .login-card {
    width: 100%;
    padding: 34px;

    border: 1px solid #283444;
    border-radius: 20px;

    color: #f4f7fb;
    background: rgba(19, 27, 39, 0.96);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.44),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.login-heading {
    margin-bottom: 27px;
}

.login-body .eyebrow {
    margin-bottom: 10px;
    color: #7f91aa;
    font-size: 10px;
}

.login-body h1 {
    margin: 0 0 9px;
    color: #f7f9fc;
    font-size: 30px;
    letter-spacing: -0.035em;
}

.login-description {
    margin: 0;
    color: #8f9bad;
    font-size: 14px;
    line-height: 1.55;
}

.login-form {
    display: grid;
    gap: 19px;
}

.login-form label {
    display: grid;
    gap: 9px;
}

.login-form label span {
    color: #c7cfda;
    font-size: 13px;
    font-weight: 650;
}

.login-form input {
    min-height: 48px;
    padding: 12px 14px;

    border: 1px solid #334154;
    border-radius: 10px;
    outline: none;

    color: #f5f7fa;
    background: #0f1722;
}

.login-form input:focus {
    border-color: #71839c;
    box-shadow: 0 0 0 3px rgba(113, 131, 156, 0.16);
}

.login-body .primary-button {
    min-height: 48px;
    margin-top: 4px;

    border: 1px solid #738198;
    color: #0b1018;
    background: #edf2f8;
}

.login-body .primary-button:hover {
    background: #ffffff;
}

.login-body .alert-error,
.login-body .alert {
    border: 1px solid #764049;
    color: #f3c8cd;
    background: #321c22;
}

.login-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;

    margin-top: 18px;
    padding: 0 4px;

    color: #697589;
    font-size: 11px;
}

@media (max-width: 1050px) {
    .shoot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workspace-nav {
        display: none;
    }
}

@media (max-width: 760px) {
    .app-header {
        position: static;
        align-items: flex-start;
        padding: 14px 16px;
    }

    .workspace {
        width: min(100% - 24px, 1380px);
        padding-top: 24px;
    }

    .header-user {
        display: none;
    }

    .page-heading,
    .page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-heading h1,
    .page-header h1 {
        font-size: 34px;
    }

    .shoot-grid {
        grid-template-columns: 1fr;
    }

    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .app-header {
        flex-direction: column;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
    }

    .app-brand-copy span {
        display: none;
    }

    .login-body {
        padding: 22px 14px;
    }

    .login-brand {
        justify-content: flex-start;
    }

    .login-body .login-card {
        padding: 26px 22px;
        border-radius: 17px;
    }

    .login-footer {
        align-items: center;
        flex-direction: column;
        gap: 5px;
    }

    .photo-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   Dark agency workspace
   ========================================================= */

body.app-body {
    color: #d7dce4;
    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(78, 91, 112, 0.12),
            transparent 30%
        ),
        #15181d;
}

.app-header {
    border-bottom-color: #333943;
    color: #f1f3f6;
    background: rgba(24, 27, 33, 0.97);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.02),
        0 12px 32px rgba(0, 0, 0, 0.25);
}

.app-brand-copy strong,
.header-user strong {
    color: #f1f3f6;
}

.app-brand-copy span,
.header-user span {
    color: #99a3b2;
}

.workspace-nav a {
    color: #a6afbd;
}

.workspace-nav a:hover,
.workspace-nav a.active {
    color: #ffffff;
    background: #2a2f37;
}

.header-user {
    border-left-color: #3a404a;
}

.header-logout {
    border-color: #404854;
    color: #d4d9e0;
    background: #252b34;
}

.header-logout:hover {
    background: #303741;
}

.page-heading h1,
.page-header h1 {
    color: #f3f4f6;
}

.page-heading p,
.page-header p,
.muted {
    color: #9ca6b5 !important;
}

.card,
.empty-state,
.shoot-card {
    border-color: #343a44;
    color: #d7dce4;
    background: #20242b;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.025),
        0 14px 38px rgba(0, 0, 0, 0.22);
}

.card h1,
.card h2,
.shoot-card h2,
.details dd {
    color: #f0f2f5;
}

.details dt {
    color: #929cab;
}

.shoot-card-footer {
    border-top-color: #343a44;
}

.shoot-card-link:hover {
    border-color: #515a68;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.button.secondary {
    border-color: #404854;
    color: #d4d9e0;
    background: #252b34;
}

.button.secondary:hover {
    border-color: #535d6b;
    background: #303741;
}

.client-checkbox-item,
.err-recent-events {
    border-color: #3a414c;
    color: #d7dce4;
    background: #252a31;
}

.client-checkbox-item:hover {
    border-color: #535d6b;
    background: #2b3038;
}


/* =========================================================
   Client gallery boxes
   ========================================================= */

.client-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.client-gallery-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #343a44;
    border-radius: 18px;
    background: #20242b;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.025),
        0 16px 42px rgba(0, 0, 0, 0.25);
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.client-gallery-card:hover {
    transform: translateY(-3px);
    border-color: #596271;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.35);
}

.client-gallery-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #101318;
}

.client-gallery-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.client-gallery-card:hover .client-gallery-cover img {
    transform: scale(1.025);
}

.client-gallery-cover-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            transparent 45%,
            rgba(8, 10, 13, 0.68) 100%
        );
}

.client-gallery-photo-count {
    position: absolute;
    right: 13px;
    bottom: 12px;
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 7px;
    color: #ffffff;
    background: rgba(13, 16, 21, 0.72);
    backdrop-filter: blur(8px);
    font-size: 11px;
    font-weight: 800;
}

.client-gallery-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-content: center;
    gap: 7px;
    color: #8e98a7;
    text-align: center;
}

.client-gallery-placeholder span {
    font-size: 32px;
    font-weight: 900;
}

.client-gallery-placeholder small {
    font-size: 11px;
}

.client-gallery-info {
    padding: 19px 20px 18px;
}

.client-gallery-date {
    color: #d83a48;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.client-gallery-info h2 {
    min-height: 2.6em;
    margin: 9px 0 20px;
    color: #f3f4f6;
    font-size: 21px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.client-gallery-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid #343a44;
}

.client-gallery-meta > span:first-child {
    display: grid;
    gap: 4px;
    color: #8e98a7;
    font-size: 11px;
}

.client-gallery-meta strong {
    overflow: hidden;
    max-width: 190px;
    color: #d9dee6;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-gallery-open {
    color: #e34957;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.client-gallery-empty {
    padding: 70px 30px;
    border: 1px solid #343a44;
    border-radius: 18px;
    color: #9ca6b5;
    background: #20242b;
    text-align: center;
}

.client-gallery-empty h2 {
    color: #f3f4f6;
}


/* =========================================================
   Photo Mechanic-style gallery
   ========================================================= */

.contact-sheet-box {
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid #303640;
    border-radius: 12px;
    color: #d7dce4;
    background: #101318;
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.32);
}

.contact-browser-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    min-height: 58px;
    padding: 10px 14px;
    border-bottom: 1px solid #303640;
    background:
        linear-gradient(
            180deg,
            #20252c 0%,
            #1a1f26 100%
        );
}

.contact-browser-header > div:first-child {
    min-width: 0;
}

.contact-browser-header strong {
    display: block;
    color: #f1f3f6;
    font-size: 14px;
}

.contact-file-count {
    display: block;
    margin-top: 3px;
    color: #8e98a7;
    font-size: 11px;
}

.contact-sheet-box .gallery-toolbar {
    justify-content: flex-end;
}

.contact-sheet-box .gallery-toolbar .button {
    min-height: 34px;
    margin: 0;
    padding: 7px 10px;
    border: 1px solid #404854;
    border-radius: 6px;
    color: #d4d9e0;
    background: #252b34;
    font-size: 11px;
}

.contact-sheet-box .gallery-toolbar .button:hover {
    border-color: #535d6b;
    background: #303741;
}

.contact-sheet-box .gallery-toolbar .button:not(.secondary) {
    border-color: #697485;
    color: #101318;
    background: #e4e8ee;
}

.contact-sheet-box .operation-banner {
    margin: 10px 14px 0;
}

.contact-sheet-box .photo-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(176px, 1fr)
    );
    gap: 8px;
    padding: 12px;
}

.contact-sheet-box .photo-card {
    overflow: hidden;
    border: 1px solid #303640;
    border-radius: 5px;
    color: #d7dce4;
    background: #1b2027;
    box-shadow: none;
}

.contact-sheet-box .photo-card:hover {
    border-color: #667181;
}

.contact-sheet-box .photo-card.selected {
    outline: 2px solid #d83a48;
    outline-offset: -2px;
}

.contact-sheet-box .photo-preview-link {
    aspect-ratio: 4 / 3;
    background: #090b0e;
}

.contact-sheet-box .photo-card-body {
    padding: 8px;
}

.contact-sheet-box .photo-filename {
    color: #d7dce4;
    font-size: 11px;
    font-weight: 650;
}

.contact-sheet-box .photo-meta {
    min-height: auto;
    margin-top: 3px;
    color: #7f8998;
    font-size: 10px;
}

.contact-sheet-box .photo-err-status {
    margin-top: 6px;
}

.contact-sheet-box .err-badge {
    min-height: 20px;
    padding: 2px 6px;
    font-size: 9px;
}

.contact-sheet-box .photo-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin-top: 7px;
}

.contact-sheet-box .photo-actions .button,
.contact-sheet-box .photo-actions button {
    min-height: 29px;
    margin: 0;
    padding: 5px 7px;
    border-radius: 5px;
    font-size: 10px;
}

.contact-sheet-box .photo-actions .inline-form {
    display: contents;
}

.contact-sheet-box .photo-select {
    top: 5px;
    left: 5px;
    width: 27px;
    height: 27px;
}

.contact-sheet-box .photo-select span {
    width: 17px;
    height: 17px;
    border-radius: 3px;
}

.contact-sheet-box .empty-photo-state {
    padding: 50px 20px;
}

@media (max-width: 1050px) {
    .client-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .contact-browser-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .contact-sheet-box .gallery-toolbar {
        width: 100%;
        justify-content: flex-start;
    }

    .contact-sheet-box .photo-grid {
        grid-template-columns: repeat(
            3,
            minmax(0, 1fr)
        );
    }
}

@media (max-width: 560px) {
    .client-gallery-grid {
        grid-template-columns: 1fr;
    }

    .contact-sheet-box .photo-grid {
        grid-template-columns: repeat(
            2,
            minmax(0, 1fr)
        );
        gap: 6px;
        padding: 8px;
    }

    .contact-sheet-box .photo-actions {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   Shoot editing
   ========================================================= */

.shoot-edit-card {
    max-width: 820px;
    padding: 28px;
}

.shoot-edit-form {
    display: grid;
    gap: 24px;
}

.shoot-edit-field {
    display: grid;
    gap: 9px;
}

.shoot-edit-field > span {
    color: #e4e7ec;
    font-size: 13px;
    font-weight: 750;
}

.shoot-edit-field input,
.shoot-edit-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #404854;
    border-radius: 10px;
    outline: none;
    color: #f1f3f6;
    background: #171b21;
}

.shoot-edit-field input {
    min-height: 48px;
}

.shoot-edit-field textarea {
    min-height: 190px;
    resize: vertical;
    line-height: 1.55;
}

.shoot-edit-field input:hover,
.shoot-edit-field textarea:hover {
    border-color: #535d6b;
}

.shoot-edit-field input:focus,
.shoot-edit-field textarea:focus {
    border-color: #788599;
    box-shadow: 0 0 0 3px rgba(120, 133, 153, 0.16);
}

.shoot-edit-field small {
    color: #8e98a7;
    font-size: 11px;
    line-height: 1.45;
}

.shoot-edit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 4px;
}

.shoot-edit-actions .button {
    margin: 0;
}

@media (max-width: 600px) {
    .shoot-edit-card {
        padding: 20px;
    }

    .shoot-edit-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   Contact sheet inspector
   ========================================================= */

.contact-gallery-workspace {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(360px, 38%);
    min-height: 620px;
}

.contact-gallery-workspace > .photo-grid {
    align-content: start;
    max-height: calc(100vh - 190px);
    overflow-y: auto;
    scrollbar-color: #4a5360 #171b20;
}

.contact-sheet-box .photo-preview-link {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    cursor: pointer;
}

.contact-sheet-box .photo-preview-link:hover {
    background: #090b0e;
}

.contact-sheet-box .photo-card.preview-active {
    border-color: #d83a48;
    box-shadow:
        inset 0 0 0 1px #d83a48,
        0 0 0 1px rgba(216, 58, 72, 0.18);
}

.photo-inspector {
    position: sticky;
    top: 0;
    align-self: start;
    min-width: 0;
    height: calc(100vh - 190px);
    overflow-y: auto;
    border-left: 1px solid #303640;
    background: #171b20;
}

.photo-inspector-preview {
    position: relative;
    display: grid;
    min-height: 430px;
    padding: 18px;
    place-items: center;
    background:
        linear-gradient(
            45deg,
            #111419 25%,
            #14181e 25%,
            #14181e 50%,
            #111419 50%,
            #111419 75%,
            #14181e 75%
        );
    background-size: 22px 22px;
}

.photo-inspector-preview img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 330px);
    object-fit: contain;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.38);
    transition: opacity 0.12s ease;
}

.photo-inspector-preview img.loading {
    opacity: 0.35;
}

.photo-inspector-loading {
    position: absolute;
    z-index: 2;
    padding: 7px 10px;
    border: 1px solid #46505d;
    border-radius: 6px;
    color: #d7dce4;
    background: rgba(24, 29, 36, 0.9);
    font-size: 11px;
}

.photo-inspector-info {
    padding: 17px 18px 20px;
    border-top: 1px solid #303640;
}

.photo-inspector-heading span {
    display: block;
    margin-bottom: 5px;
    color: #7f8998;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.photo-inspector-heading strong {
    display: block;
    overflow: hidden;
    color: #eef1f5;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.photo-inspector-meta {
    min-height: 18px;
    margin-top: 7px;
    color: #8e98a7;
    font-size: 11px;
}

.photo-inspector-download {
    display: flex;
    width: 100%;
    min-height: 42px;
    margin-top: 17px;
    padding: 10px 15px;
    align-items: center;
    justify-content: center;
    border: 1px solid #727e90;
    border-radius: 7px;
    color: #111419;
    background: #edf1f6;
    font-size: 12px;
    font-weight: 850;
}

.photo-inspector-download:hover {
    background: #ffffff;
}

.photo-inspector-mobile-back {
    display: none;
}

@media (max-width: 1100px) {
    .contact-gallery-workspace {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(320px, 42%);
    }
}

@media (max-width: 820px) {
    .contact-gallery-workspace {
        display: block;
        min-height: auto;
    }

    .contact-gallery-workspace > .photo-grid {
        max-height: none;
        overflow: visible;
    }

    .photo-inspector {
        position: fixed;
        z-index: 100;
        inset: 0;
        display: none;
        width: 100%;
        height: 100dvh;
        border: 0;
        background: #101318;
    }

    body.photo-inspector-mobile-open {
        overflow: hidden;
    }

    body.photo-inspector-mobile-open .photo-inspector {
        display: block;
    }

    .photo-inspector-mobile-back {
        position: sticky;
        z-index: 5;
        top: 0;
        display: flex;
        width: 100%;
        min-height: 48px;
        margin: 0;
        padding: 10px 14px;
        align-items: center;
        border: 0;
        border-bottom: 1px solid #303640;
        border-radius: 0;
        color: #d7dce4;
        background: #1a1f26;
        font-size: 12px;
        font-weight: 800;
    }

    .photo-inspector-preview {
        min-height: calc(100dvh - 190px);
        padding: 12px;
    }

    .photo-inspector-preview img {
        max-height: calc(100dvh - 230px);
    }
}


/* =========================================================
   Language switchers
   ========================================================= */

.header-language-switcher,
.login-language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    border: 1px solid #3c434e;
    border-radius: 8px;
    background: #20252c;
}

.header-language-switcher a,
.login-language-switcher a {
    display: grid;
    min-width: 32px;
    min-height: 28px;
    padding: 4px 7px;
    place-items: center;
    border-radius: 5px;
    color: #8f99a8;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.04em;
}

.header-language-switcher a:hover,
.login-language-switcher a:hover {
    color: #ffffff;
    background: #303741;
}

.header-language-switcher a.active,
.login-language-switcher a.active {
    color: #ffffff;
    background: #c42634;
}

.login-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

@media (max-width: 720px) {
    .login-top-row {
        align-items: flex-start;
    }

    .header-language-switcher {
        order: 2;
    }
}


/* =========================================================
   Contact sheet: stable thumbnail rows for large galleries
   ========================================================= */

.contact-gallery-workspace > .photo-grid {
    grid-auto-rows: max-content;
    align-content: start;
    align-items: start;
}

.contact-sheet-box .photo-card {
    height: max-content;
    min-height: 0;
    align-self: start;
}

.contact-sheet-box .photo-preview-link {
    display: block;
    width: 100%;
    min-height: 110px;
    aspect-ratio: 4 / 3;
    flex: none;
}

.contact-sheet-box .photo-preview-link img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 110px;
    object-fit: cover;
}

.contact-sheet-box .photo-card-body {
    display: block;
    height: auto;
    flex: none;
}


/* =========================================================
   Shoot sports context and rosters
   ========================================================= */

.shoot-sport-settings {
    display: grid;
    gap: 18px;
    padding-top: 22px;
    border-top: 1px solid #343a44;
}

.shoot-edit-section-heading strong {
    color: #f0f2f5;
    font-size: 16px;
}

.shoot-edit-section-heading p {
    margin: 6px 0 0;
    color: #8e98a7;
    font-size: 12px;
    line-height: 1.5;
}

.shoot-team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.shoot-team-panel {
    display: grid;
    align-content: start;
    gap: 17px;
    min-width: 0;
    padding: 18px;
    border: 1px solid #343a44;
    border-radius: 12px;
    background: #1b1f25;
}

.shoot-team-panel h3 {
    margin: 0;
    color: #eef1f5;
    font-size: 14px;
}

.shoot-team-panel textarea {
    min-height: 260px;
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
    font-size: 12px;
}

@media (max-width: 800px) {
    .shoot-team-grid {
        grid-template-columns: 1fr;
    }
}


/* Client inspector approved caption */

.photo-client-caption {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #343a44;
    border-radius: 12px;
    background: #1b1f25;
}

.photo-client-caption[hidden] {
    display: none;
}

.photo-client-caption p {
    margin: 8px 0 0;
    color: #e8ebef;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
}


/* =========================================================
   Compact photographer AI panel
   ========================================================= */

.photo-ai-panel-compact {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #333b46;
    border-radius: 12px;
    background: #1b2027;
}

.photo-ai-panel-compact .photo-ai-heading {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.photo-ai-panel-compact .photo-ai-heading > div {
    min-width: 0;
}

.photo-ai-panel-compact .photo-ai-heading strong {
    display: block;
    color: #f1f3f6;
    font-size: 15px;
}

.photo-ai-panel-compact .photo-ai-status {
    display: block;
    margin-top: 3px;
    color: #8f99a8;
    font-size: 11px;
}

.photo-ai-panel-compact .photo-ai-message {
    margin-top: 9px;
    font-size: 11px;
}

.photo-ai-caption-label.compact {
    display: block;
    margin-top: 14px;
}

.photo-ai-caption-label.compact textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 128px;
    resize: vertical;
    padding: 13px 14px;
    border: 1px solid #495363;
    border-radius: 9px;
    color: #edf0f4;
    background: #11151a;
    font: 500 13px/1.5 system-ui, sans-serif;
}

.photo-ai-caption-label.compact textarea:focus {
    border-color: #cf3344;
    outline: 2px solid rgba(207, 51, 68, 0.18);
}

.photo-ai-summary-line {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 9px;
    color: #919baa;
    font-size: 11px;
}

.photo-ai-caption-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 13px;
    align-items: center;
}

.photo-ai-caption-actions .button {
    min-height: 36px;
    padding: 8px 13px;
}

.photo-ai-caption-actions .muted {
    font-size: 11px;
}

.photo-ai-disclosure {
    margin-top: 12px;
    border-top: 1px solid #343b45;
}

.photo-ai-disclosure summary {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 5px;
    color: #c7cdd6;
    cursor: pointer;
    font-size: 12px;
    font-weight: 750;
    list-style-position: inside;
}

.photo-ai-disclosure summary:hover {
    color: #ffffff;
}

.photo-ai-people-cards {
    display: grid;
    gap: 7px;
    padding-bottom: 11px;
}

.photo-ai-person-card {
    display: flex;
    gap: 10px;
    padding: 9px 10px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #343d48;
    border-radius: 8px;
    background: #151a20;
}

.photo-ai-person-main {
    display: flex;
    min-width: 0;
    gap: 9px;
    align-items: center;
}

.photo-ai-person-order {
    display: grid;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 50%;
    color: #c8ced7;
    background: #29303a;
    font-size: 10px;
    font-weight: 800;
}

.photo-ai-person-identity {
    min-width: 0;
}

.photo-ai-person-identity strong,
.photo-ai-person-identity span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.photo-ai-person-identity strong {
    color: #eef1f5;
    font-size: 12px;
}

.photo-ai-person-identity span {
    margin-top: 2px;
    color: #8792a1;
    font-size: 10px;
}

.photo-ai-person-status {
    flex: 0 0 auto;
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
}

.photo-ai-person-status.confirmed {
    color: #bce8c7;
    background: rgba(44, 145, 76, 0.2);
}

.photo-ai-person-status.candidate {
    color: #f2d694;
    background: rgba(182, 128, 22, 0.2);
}

.photo-ai-person-status.warning {
    color: #f3b4b4;
    background: rgba(182, 45, 45, 0.2);
}

.photo-ai-person-status.unknown {
    color: #b9c0ca;
    background: #2b323c;
}

.photo-number-correction.compact {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        86px
        auto;
    gap: 7px;
    margin-top: 3px;
}

.photo-number-correction.compact select,
.photo-number-correction.compact input {
    box-sizing: border-box;
    min-width: 0;
    min-height: 38px;
    padding: 7px 9px;
    border: 1px solid #46505d;
    border-radius: 7px;
    color: #edf0f4;
    background: #11151a;
    font-size: 11px;
}

.photo-ai-technical-details {
    margin: 0 0 10px;
    padding-top: 3px;
    font-size: 11px;
}

.photo-ai-technical-details dt {
    color: #7f8998;
}

.photo-ai-technical-details dd {
    color: #d6dbe2;
}

.photo-ai-warnings {
    padding: 10px;
    border: 1px solid #55482d;
    border-radius: 8px;
    color: #d9c697;
    background: rgba(89, 66, 22, 0.18);
    font-size: 10px;
}

.photo-ai-warnings ul {
    margin: 6px 0 0;
    padding-left: 17px;
}

@media (max-width: 520px) {
    .photo-number-correction.compact {
        grid-template-columns: 1fr 82px;
    }

    .photo-number-correction.compact .button {
        grid-column: 1 / -1;
    }

    .photo-ai-person-card {
        align-items: flex-start;
    }
}
