* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: #f6f7f9;
    color: #17191c;
}


.topbar {
    height: 70px;
    background: white;

    border-bottom: 1px solid #e6e8eb;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 32px;
}


.logo {
    font-size: 20px;
    font-weight: 700;
}


.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px;
}


.narrow {
    max-width: 650px;
}


.page-header,
.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 30px;
}


h1 {
    margin: 0 0 8px;
    font-size: 32px;
}


p {
    color: #6b7280;
}


.button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 0 18px;

    border-radius: 9px;

    border: 0;

    cursor: pointer;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;
}


.button {
    background: #111827;
    color: white;
}


.secondary-button {
    background: #eef0f3;
    color: #17191c;
}


.logout {
    margin-left: 20px;
    color: #6b7280;
}


.board-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(280px, 1fr)
        );

    gap: 18px;
}


.board-card {
    background: white;

    border: 1px solid #e6e8eb;

    border-radius: 14px;

    padding: 22px;
}


.board-card h2 {
    margin-top: 0;
}


.progress {
    height: 7px;

    background: #e5e7eb;

    border-radius: 99px;

    overflow: hidden;
}


.progress-bar {
    height: 100%;

    background: #111827;
}


.small {
    font-size: 13px;
}


.board-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}


.upload-box {
    background: white;

    border: 2px dashed #d5d8dd;

    border-radius: 14px;

    padding: 30px;

    margin-bottom: 30px;

    text-align: center;
}


.creative-list {
    display: flex;

    flex-direction: column;

    gap: 30px;
}


.creative-card,
.client-creative {
    background: white;

    border-radius: 16px;

    border: 1px solid #e3e6ea;

    padding: 24px;
}


.creative-number,
.creative-label {
    font-size: 13px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .06em;

    color: #6b7280;

    margin-bottom: 18px;
}


.creative-media {
    width: 100%;

    max-height: 600px;

    object-fit: contain;

    display: block;

    background: #111;

    border-radius: 10px;
}


.copy-section {
    margin-top: 24px;
}


.copy-section label,
.field label {
    display: block;

    font-size: 13px;

    font-weight: 600;

    margin-bottom: 7px;

    color: #374151;
}


.copy-section textarea,
.copy-section input,
.field textarea,
.field input {
    width: 100%;

    border: 1px solid #d7dbe0;

    border-radius: 9px;

    padding: 12px;

    font-size: 15px;

    font-family: inherit;

    background: white;

    margin-bottom: 16px;
}


.copy-section textarea {
    min-height: 110px;

    resize: vertical;
}


.client-container {
    max-width: 760px;

    margin: 0 auto;

    padding: 30px 18px 80px;
}


.client-header {
    padding: 20px 0 30px;

    text-align: center;
}


.client-header h1 {
    font-size: 28px;
}


.client-creative {
    margin-bottom: 28px;

    transition:
        border-color .2s,
        box-shadow .2s;
}


.client-creative.completed {
    border-color: #b7dfc2;
}


.client-media {
    width: 100%;

    max-height: 700px;

    object-fit: contain;

    background: #111;

    border-radius: 10px;

    display: block;

    margin-bottom: 25px;
}


.field {
    margin-bottom: 6px;
}


.field textarea {
    min-height: 140px;

    resize: vertical;
}


.field input,
.field textarea {
    font-size: 16px;
}


.creative-status {
    color: #6b7280;

    font-size: 13px;

    display: flex;

    gap: 7px;

    align-items: center;
}


.completed .creative-status {
    color: #188038;
}


.client-footer {
    text-align: center;

    background: white;

    border-radius: 14px;

    padding: 30px;

    margin-top: 40px;
}


.login-container {
    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;
}


.login-card {
    background: white;

    width: 100%;

    max-width: 400px;

    padding: 35px;

    border-radius: 16px;

    border: 1px solid #e3e6ea;
}


.login-card input {
    width: 100%;

    padding: 13px;

    margin:
        6px
        0
        18px;

    border:
        1px solid #d7dbe0;

    border-radius: 8px;

    font-size: 16px;
}


.login-card button {
    width: 100%;

    padding: 13px;

    background: #111827;

    color: white;

    border: 0;

    border-radius: 8px;

    font-weight: 600;

    cursor: pointer;
}


.error {
    background: #fee2e2;

    color: #991b1b;

    padding: 12px;

    border-radius: 8px;

    margin-bottom: 18px;
}


.empty {
    background: white;

    padding: 50px;

    text-align: center;

    border-radius: 14px;

    border: 1px solid #e3e6ea;
}


@media (max-width: 650px) {

    .topbar {
        padding: 0 16px;
    }

    .container {
        padding:
            25px
            14px;
    }

    .board-header,
    .page-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 15px;
    }

    .creative-card,
    .client-creative {
        padding: 16px;
    }

}

.copy-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.copy-row textarea,
.copy-row input {
    flex: 1;
    margin-bottom: 16px;
}


.copy-row textarea {
    min-height: 110px;
}


.copy-button {
    flex-shrink: 0;

    height: 42px;

    padding: 0 14px;

    border: 0;

    border-radius: 8px;

    background: #eef0f3;

    color: #17191c;

    font-weight: 600;

    cursor: pointer;
}


.copy-button:hover {
    background: #e1e4e8;
}


.creative-actions {
    display: flex;

    gap: 10px;

    align-items: center;

    margin-top: 8px;
}


.delete-button {
    min-height: 44px;

    padding: 0 18px;

    border: 0;

    border-radius: 9px;

    background: #fee2e2;

    color: #b91c1c;

    font-weight: 600;

    cursor: pointer;
}


.delete-button:hover {
    background: #fecaca;
}


.media-deleted {
    min-height: 260px;

    background: #f3f4f6;

    border-radius: 10px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 8px;

    color: #6b7280;
}


.media-deleted-icon {
    width: 48px;

    height: 48px;

    border-radius: 50%;

    background: #dcfce7;

    color: #15803d;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 22px;

    font-weight: 700;

    margin-bottom: 5px;
}


.topbar-right {
    display: flex;

    align-items: center;

    gap: 16px;
}


@media (max-width: 650px) {

    .copy-row {
        display: block;
    }

    .copy-button {
        margin-top: -8px;

        margin-bottom: 16px;
    }

    .creative-actions {
        flex-direction: column;

        align-items: stretch;
    }

}

/* =========================================================
   UPLOAD SYSTEM
========================================================= */

.upload-icon {
    width: 52px;
    height: 52px;

    margin: 0 auto 12px;

    border-radius: 50%;

    background: #eef0f3;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 24px;
    font-weight: 700;
}


.upload-limit {
    font-size: 13px;

    color: #9ca3af;
}


.drop-zone {
    margin-top: 20px;

    padding: 18px;

    border: 1px dashed #d1d5db;

    border-radius: 10px;

    color: #6b7280;

    font-size: 14px;

    transition:
        background .2s,
        border-color .2s;
}


.drop-zone.drag-active {
    background: #f0fdf4;

    border-color: #22c55e;

    color: #15803d;
}


.upload-queue {
    margin-bottom: 30px;
}


.upload-summary {
    background: white;

    border: 1px solid #e3e6ea;

    border-radius: 14px;

    padding: 18px;

    margin-bottom: 12px;
}


.upload-summary > div:first-child {
    display: flex;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 12px;
}


.overall-progress {
    width: 100%;

    height: 8px;

    background: #e5e7eb;

    border-radius: 999px;

    overflow: hidden;
}


.overall-progress-bar {
    height: 100%;

    background: #111827;

    transition: width .2s;
}


.overall-percent {
    margin-top: 7px;

    font-size: 12px;

    color: #6b7280;
}


.upload-item {
    background: white;

    border: 1px solid #e3e6ea;

    border-radius: 14px;

    padding: 16px;

    margin-bottom: 10px;

    display: flex;

    align-items: center;

    gap: 18px;
}


.upload-file-info {
    min-width: 230px;

    flex: 1;

    display: flex;

    align-items: center;

    gap: 12px;
}


.upload-file-icon {
    width: 42px;

    height: 42px;

    flex-shrink: 0;

    border-radius: 9px;

    background: #f3f4f6;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 700;

    color: #4b5563;
}


.upload-file-info strong {
    display: block;

    max-width: 360px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.file-meta {
    color: #9ca3af;

    font-size: 12px;

    margin-top: 4px;
}


.upload-progress {
    flex: 2;

    min-width: 260px;
}


.upload-progress-header {
    display: flex;

    justify-content: space-between;

    font-size: 12px;

    color: #4b5563;

    margin-bottom: 6px;
}


.progress-track {
    height: 8px;

    background: #e5e7eb;

    border-radius: 999px;

    overflow: hidden;
}


.progress-fill {
    height: 100%;

    background: #111827;

    transition: width .15s linear;
}


.upload-details {
    display: flex;

    justify-content: space-between;

    margin-top: 6px;

    font-size: 12px;

    color: #9ca3af;
}


.upload-status {
    font-size: 13px;

    white-space: nowrap;
}


.upload-status.waiting {
    color: #9ca3af;
}


.upload-status.complete {
    color: #15803d;

    font-weight: 600;
}


.upload-status.error {
    color: #b91c1c;

    display: flex;

    align-items: center;

    gap: 8px;
}


.cancel-upload,
.retry-upload {
    border: 0;

    border-radius: 7px;

    padding: 8px 12px;

    cursor: pointer;

    font-size: 12px;

    font-weight: 600;
}


.cancel-upload {
    background: #fee2e2;

    color: #b91c1c;
}


.cancel-upload:hover {
    background: #fecaca;
}


.retry-upload {
    background: #111827;

    color: white;
}


@media (max-width: 800px) {

    .upload-item {
        flex-direction: column;

        align-items: stretch;
    }


    .upload-file-info {
        min-width: 0;
    }


    .upload-progress {
        min-width: 0;
    }


    .upload-status {
        white-space: normal;
    }

}

