:root {
    --ink: #20140d;
    --muted: #775f45;
    --paper: #fff8ea;
    --paper-2: #f3dfbd;
    --line: rgba(116, 82, 44, .18);
    --gold: #c88a32;
    --red: #9f3526;
    --green: #2f6b35;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.camp-page {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 8%, rgba(208, 139, 50, .26), transparent 28%),
        radial-gradient(circle at 92% 14%, rgba(122, 46, 31, .22), transparent 30%),
        linear-gradient(135deg, #f8eedb 0%, #e7c998 48%, #f4e8d1 100%);
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
}

.camp-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: min(1180px, calc(100% - 28px));
    margin: 14px auto 0;
    padding: 12px 14px;
    border: 1px solid rgba(255, 248, 234, .55);
    border-radius: 22px;
    background: rgba(37, 24, 16, .78);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 50px rgba(43, 26, 14, .22);
}

.camp-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff3d9;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #251810;
    background: linear-gradient(135deg, #ffe4a3, #b56c20);
    font-weight: 900;
    font-size: 22px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}

.camp-brand strong,
.camp-brand em {
    display: block;
    line-height: 1.15;
}

.camp-brand strong {
    font-size: 17px;
    letter-spacing: .04em;
}

.camp-brand em {
    margin-top: 3px;
    color: rgba(255, 243, 217, .58);
    font-size: 11px;
    font-style: normal;
    text-transform: uppercase;
}

.camp-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.camp-nav::-webkit-scrollbar {
    display: none;
}

.camp-nav a {
    flex: 0 0 auto;
    padding: 9px 13px;
    border-radius: 999px;
    color: rgba(255, 243, 217, .78);
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
}

.camp-nav a.active,
.camp-nav a:hover {
    color: #2a1b11;
    background: #f1c46f;
}

.camp-shell {
    width: min(1180px, calc(100% - 28px));
    margin: 18px auto 72px;
}

.camp-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
    gap: 26px;
    min-height: 300px;
    padding: 36px;
    border-radius: 32px;
    overflow: hidden;
    color: #fff7e6;
    background:
        linear-gradient(110deg, rgba(23, 15, 10, .98), rgba(76, 45, 22, .92)),
        radial-gradient(circle at 75% 30%, rgba(238, 178, 83, .7), transparent 32%);
    box-shadow: 0 30px 90px rgba(58, 39, 20, .26);
}

.camp-hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(135deg, rgba(255,255,255,.08) 0 1px, transparent 1px),
        radial-gradient(circle at 85% 74%, rgba(229, 172, 78, .36), transparent 22%);
    background-size: 28px 28px, auto;
    pointer-events: none;
}

.camp-hero:after {
    content: "";
    position: absolute;
    right: -96px;
    bottom: -126px;
    width: 340px;
    height: 340px;
    border: 44px solid rgba(255, 236, 196, .12);
    border-radius: 50%;
}

.camp-hero__copy,
.camp-search-card {
    position: relative;
    z-index: 1;
}

.camp-kicker {
    margin: 0 0 10px;
    color: #e0ad5f;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: 11px;
    font-weight: 900;
}

.camp-hero h1 {
    max-width: 720px;
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -.04em;
}

.camp-hero p {
    max-width: 650px;
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 247, 230, .76);
}

.camp-search-card,
.camp-panel {
    border: 1px solid var(--line);
    background: rgba(255, 250, 239, .9);
    box-shadow: 0 18px 60px rgba(70, 48, 24, .12);
}

.camp-search-card {
    align-self: center;
    padding: 22px;
    border-radius: 24px;
    color: var(--ink);
}

.camp-search-card label {
    display: block;
    margin-bottom: 9px;
    color: #6a4b2b;
    font-weight: 900;
}

.camp-search-row {
    display: flex;
    gap: 10px;
}

.camp-search-row input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #d7bd91;
    border-radius: 15px;
    background: #fffaf0;
    outline: none;
    font-size: 16px;
    font-weight: 700;
}

.camp-search-row button,
.camp-actions button,
.small-btn {
    border: 0;
    border-radius: 15px;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.camp-search-row button {
    min-width: 116px;
    height: 48px;
    background: linear-gradient(135deg, #d28b33, #92331f);
}

.camp-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.camp-actions button.ghost,
.small-btn {
    height: 38px;
    padding: 0 14px;
    background: #241a13;
}

.camp-search-row button:hover,
.camp-actions button:hover,
.small-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(121, 62, 24, .24);
}

.camp-status {
    margin-top: 14px;
    padding: 11px 13px;
    border-radius: 15px;
    background: #f0dfbf;
    color: #5b4329;
    font-weight: 900;
    line-height: 1.5;
}

.camp-status.error {
    background: #ffe1da;
    color: var(--red);
}

.camp-status.success {
    background: #e5f2da;
    color: var(--green);
}

.camp-panel {
    margin-top: 18px;
    padding: 24px;
    border-radius: 28px;
}

.hidden {
    display: none !important;
}

.panel-title {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.panel-title h2 {
    margin: 0;
    font-size: clamp(22px, 3.4vw, 32px);
    font-weight: 900;
    letter-spacing: -.02em;
}

.panel-title.compact {
    align-items: center;
}

.role-meta {
    color: #725a3b;
    text-align: right;
    line-height: 1.75;
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.stat-card {
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, #fffaf1, #f0d9af);
    border: 1px solid #dfc395;
}

.stat-card span {
    display: block;
    color: #725a3b;
    margin-bottom: 6px;
    font-weight: 800;
}

.stat-card strong {
    display: block;
    font-size: clamp(22px, 4vw, 31px);
    color: #2b2118;
    word-break: break-all;
}

.pill {
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 999px;
    background: #2a2119;
    color: #ffe7b0;
    font-weight: 900;
}

.group-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.group-tabs a {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    padding: 8px 11px;
    border-radius: 999px;
    background: #efe0c7;
    color: #4c3520;
    cursor: pointer;
    font-weight: 900;
    font-size: 13px;
}

.skin-group {
    margin-top: 22px;
}

.skin-group__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e0c79e;
    padding-bottom: 9px;
}

.skin-group__head h3 {
    margin: 0;
    font-size: 21px;
    font-weight: 900;
}

.skin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 10px;
}

.skin-card {
    overflow: hidden;
    border-radius: 15px;
    background: #fffaf1;
    border: 1px solid #e0c79d;
    box-shadow: 0 8px 20px rgba(65, 43, 21, .07);
}

.skin-card__img {
    height: 78px;
    background: linear-gradient(135deg, #68431f, #d69b43);
    overflow: hidden;
}

.skin-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.skin-card__body {
    padding: 9px;
}

.skin-card__name {
    height: 35px;
    overflow: hidden;
    font-weight: 900;
    line-height: 1.3;
    font-size: 13px;
}

.skin-card__hero,
.skin-card__tag {
    margin-top: 4px;
    color: #7b6347;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.expand-btn {
    border: 0;
    background: transparent;
    color: #a35f19;
    font-weight: 900;
    cursor: pointer;
}

.poster-info {
    color: #6f5637;
    font-weight: 700;
}

.poster-preview {
    margin-top: 16px;
}

.poster-preview img {
    max-width: 100%;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(33, 27, 22, .18);
}

#rawJson {
    width: 100%;
    min-height: 240px;
    resize: vertical;
    border-radius: 16px;
    border: 1px solid #dfc9a8;
    background: #1f1711;
    color: #ffe7bd;
    padding: 14px;
    font-family: Consolas, Monaco, monospace;
    line-height: 1.5;
}

@media (max-width: 860px) {
    .camp-topbar {
        width: calc(100% - 16px);
        margin-top: 8px;
        padding: 9px;
        border-radius: 18px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .camp-brand strong {
        font-size: 15px;
    }

    .camp-brand em {
        display: none;
    }

    .camp-nav a {
        padding: 8px 10px;
        font-size: 12px;
    }

    .camp-shell {
        width: calc(100% - 16px);
        margin-top: 10px;
    }

    .camp-hero {
        grid-template-columns: 1fr;
        gap: 16px;
        min-height: 0;
        padding: 22px;
        border-radius: 24px;
    }

    .camp-hero h1 {
        font-size: 31px;
    }

    .camp-hero p {
        font-size: 14px;
    }

    .camp-search-card,
    .camp-panel {
        padding: 16px;
        border-radius: 22px;
    }

    .camp-search-row {
        gap: 8px;
    }

    .camp-search-row input,
    .camp-search-row button {
        height: 44px;
        font-size: 14px;
    }

    .camp-search-row button {
        min-width: 92px;
    }

    .camp-actions button.ghost {
        height: 36px;
        font-size: 13px;
    }

    .panel-title {
        align-items: flex-start;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .stat-card {
        padding: 12px;
        border-radius: 16px;
    }

    .role-meta {
        text-align: left;
        font-size: 13px;
    }

    .group-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .group-tabs a {
        flex: 0 0 auto;
    }

    .skin-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 5px;
    }

    .skin-card {
        border-radius: 12px;
    }

    .skin-card__img {
        height: 48px;
    }

    .skin-card__body {
        padding: 6px;
    }

    .skin-card__name {
        height: 31px;
        font-size: 12px;
        line-height: 1.28;
    }

    .skin-card__hero,
    .skin-card__tag {
        font-size: 9px;
        margin-top: 3px;
    }
}

@media (max-width: 380px) {
    .skin-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 5px;
    }

    .skin-card__img {
        height: 48px;
    }
}
.skin-card--missing {
    filter: grayscale(1);
    opacity: .58;
}

.skin-card--missing .skin-card__img {
    position: relative;
}

.skin-card--missing .skin-card__img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(38, 33, 27, .28);
}

.skin-card__miss {
    position: absolute;
    right: 6px;
    top: 6px;
    z-index: 2;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(31, 27, 22, .76);
    color: #f5ead9;
    font-size: 10px;
    font-weight: 800;
}
/* 20260705g: compact result layout and missing skin display */
.group-tabs a em {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(78, 64, 47, .14);
    color: #80674c;
    font-style: normal;
    font-size: 11px;
}

.poster-panel {
    overflow: hidden;
    border: 1px solid rgba(71, 45, 24, .18);
    background: linear-gradient(180deg, rgba(45, 30, 20, .96) 0 116px, rgba(255, 250, 239, .94) 116px);
}

.poster-panel .camp-kicker,
.poster-panel .panel-title h2 {
    color: #fff1d1;
}

.poster-panel .pill {
    background: #f0c46f;
    color: #2b1d13;
}

.poster-info {
    display: flex;
    align-items: center;
    min-height: 48px;
    margin-top: 8px;
    padding: 13px 15px;
    border: 1px solid #e3c894;
    border-radius: 16px;
    background: #fff8ea;
    color: #5e472d;
}

.poster-preview {
    padding: 10px;
    border: 1px solid #e2c793;
    border-radius: 20px;
    background: #fff8ea;
}

.poster-preview img {
    display: block;
    margin: 0 auto;
    border-radius: 14px;
}

.skin-card__img {
    position: relative;
}

.skin-card--missing {
    filter: grayscale(1);
    opacity: .64;
    background: #efe9df;
}

.skin-card--missing .skin-card__name,
.skin-card--missing .skin-card__hero,
.skin-card--missing .skin-card__tag {
    color: #6e675f;
}

@media (max-width: 860px) {
    .skin-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 5px;
    }

    .skin-card__img {
        height: 43px;
    }

    .skin-card__body {
        padding: 5px 4px 6px;
    }

    .skin-card__name {
        height: 28px;
        font-size: 11px;
        line-height: 1.25;
    }

    .skin-card__hero,
    .skin-card__tag {
        font-size: 8px;
        margin-top: 2px;
    }

    .skin-card__miss {
        right: 3px;
        top: 3px;
        padding: 1px 4px;
        font-size: 8px;
    }

    .poster-panel {
        background: linear-gradient(180deg, rgba(45, 30, 20, .96) 0 104px, rgba(255, 250, 239, .94) 104px);
    }
}

@media (max-width: 380px) {
    .skin-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 4px;
    }

    .skin-card__img {
        height: 40px;
    }
}
/* 20260705h: owned count in each category */
.skin-group__head > div {
    min-width: 0;
}

.skin-group__head h3 {
    line-height: 1.2;
}

.skin-group__head p {
    margin: 5px 0 0;
    color: #8a6b46;
    font-size: 13px;
    font-weight: 800;
}

.group-tabs a strong {
    min-width: auto;
}

@media (max-width: 860px) {
    .skin-group__head {
        align-items: flex-start;
    }

    .skin-group__head h3 {
        font-size: 18px;
    }

    .skin-group__head p {
        font-size: 12px;
    }
}
/* 20260709a: sales copy panel */
.copy-panel {
    border-color: rgba(159, 84, 32, .22);
    background:
        linear-gradient(135deg, rgba(255, 250, 239, .96), rgba(244, 226, 190, .94)),
        radial-gradient(circle at 90% 15%, rgba(200, 138, 50, .18), transparent 32%);
}

.copy-panel .panel-title {
    margin-bottom: 12px;
}

.sales-tools {
    margin-bottom: 12px;
}

.sales-title-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid #e3c794;
    border-radius: 16px;
    background: rgba(255, 248, 234, .72);
}

.sales-title-row span {
    color: #6f4d2a;
    font-size: 13px;
    font-weight: 900;
}

.sales-title-row input {
    min-width: 0;
    height: 36px;
    border: 1px solid #dfc49b;
    border-radius: 12px;
    background: #fffaf1;
    color: #2d2117;
    padding: 0 10px;
    font-weight: 800;
    outline: none;
}

.sales-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.sales-chips span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #2f2218;
    color: #ffe6ad;
    font-size: 12px;
    font-weight: 900;
}

#adText {
    width: 100%;
    min-height: 190px;
    resize: vertical;
    border: 1px solid #dec192;
    border-radius: 18px;
    background: #fffaf1;
    color: #2d2117;
    padding: 15px;
    outline: none;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.72;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
}

#adText:focus {
    border-color: #c88a32;
    box-shadow: 0 0 0 3px rgba(200, 138, 50, .16);
}

.copy-hint {
    margin-top: 10px;
    color: #806346;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.55;
}

.camp-search-row button:disabled,
.camp-actions button:disabled,
.small-btn:disabled {
    cursor: not-allowed;
    opacity: .52;
    transform: none;
    box-shadow: none;
}

@media (max-width: 860px) {
    #adText {
        min-height: 220px;
        font-size: 14px;
        line-height: 1.65;
    }

    .copy-panel .panel-title.compact {
        gap: 10px;
    }

    .copy-panel .small-btn {
        flex: 0 0 auto;
        height: 36px;
        padding: 0 12px;
        font-size: 13px;
    }

    .sales-title-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .sales-title-row .small-btn {
        width: 100%;
    }
}

/* 20260711a: local artwork composer */
.creative-entry {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
    padding: 20px 22px;
    border: 1px solid rgba(255, 229, 169, .62);
    border-radius: 8px;
    background: linear-gradient(115deg, #6d2142, #c9547b 58%, #e58e9e);
    color: #fff8f3;
    text-decoration: none;
    box-shadow: 0 18px 44px rgba(109, 33, 66, .24);
    transition: transform .18s ease, box-shadow .18s ease;
}

.creative-entry:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 24px 54px rgba(109, 33, 66, .3);
}

.creative-entry__mark {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 8px;
    background: rgba(255, 247, 240, .16);
    font-size: 24px;
    font-weight: 900;
}

.creative-entry__copy {
    min-width: 0;
}

.creative-entry__copy small,
.creative-entry__copy strong,
.creative-entry__copy em {
    display: block;
}

.creative-entry__copy small {
    color: #ffe5a9;
    font: 800 10px Arial, sans-serif;
    letter-spacing: .08em;
}

.creative-entry__copy strong {
    margin-top: 3px;
    font-size: 22px;
}

.creative-entry__copy em {
    margin-top: 5px;
    color: rgba(255, 248, 243, .78);
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
}

.creative-entry__action {
    padding: 11px 14px;
    border-radius: 6px;
    background: #ffe5a9;
    color: #6d2142;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
}

.artwork-shell {
    margin-top: 18px;
}

.artwork-workspace {
    margin-top: 0;
}

.artwork-workspace .panel-title h1 {
    margin: 0;
    font-size: clamp(25px, 3.4vw, 36px);
    line-height: 1.2;
    letter-spacing: 0;
}

.creative-panel {
    border-color: rgba(25, 72, 63, .24);
    background: rgba(249, 250, 244, .94);
}

.creative-layout {
    display: grid;
    grid-template-columns: minmax(290px, .62fr) minmax(0, 1.38fr);
    gap: 24px;
    align-items: start;
}

.creative-controls {
    display: grid;
    gap: 18px;
}

.art-upload {
    display: grid;
    place-items: center;
    min-height: 142px;
    padding: 18px;
    border: 1px dashed #9cb5a8;
    border-radius: 8px;
    background: #eff5ef;
    color: #234d45;
    cursor: pointer;
    text-align: center;
}

.art-upload input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.art-upload__plus {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #1f5349;
    color: #fff;
    font-size: 26px;
    line-height: 1;
}

.art-upload strong,
.art-upload em,
.art-upload small {
    display: block;
}

.art-upload strong {
    margin-top: 6px;
    font-size: 15px;
}

.art-upload em {
    margin-top: 4px;
    color: #5c7c70;
    font-size: 11px;
    font-style: normal;
}

.art-upload small {
    margin-top: 3px;
    color: #789087;
    font-size: 9px;
}

.art-control-group {
    display: grid;
    gap: 8px;
}

.art-control-label,
.art-copy-fields label {
    color: #4b5f55;
    font-size: 12px;
    font-weight: 900;
}

.art-choice-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.art-choice {
    min-height: 38px;
    border: 1px solid #ccd9d1;
    border-radius: 6px;
    background: #fff;
    color: #456056;
    cursor: pointer;
    font-weight: 900;
}

.art-choice.active {
    border-color: #1f5349;
    background: #1f5349;
    color: #fff;
}

.art-copy-fields {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 10px 12px;
}

.art-copy-fields input,
.art-copy-fields textarea {
    min-width: 0;
    height: 38px;
    border: 1px solid #ccd9d1;
    border-radius: 6px;
    background: #fff;
    color: #24342f;
    padding: 0 10px;
    font: 700 13px "Microsoft YaHei", sans-serif;
    outline: none;
}

.art-copy-fields textarea {
    height: 62px;
    padding: 8px 10px;
    line-height: 1.45;
    resize: vertical;
}

.art-copy-fields input:focus,
.art-copy-fields textarea:focus {
    border-color: #2e7967;
    box-shadow: 0 0 0 3px rgba(46, 121, 103, .13);
}

.art-actions {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
}

.art-primary-btn,
.art-secondary-btn,
.art-clear-btn {
    height: 42px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 900;
}

.art-primary-btn {
    border: 0;
    background: #9d3428;
    color: #fff;
}

.art-secondary-btn {
    border: 1px solid #1f5349;
    background: #edf5f1;
    color: #1f5349;
}

.art-primary-btn:disabled,
.art-secondary-btn:disabled {
    opacity: .55;
    cursor: wait;
}

.art-clear-btn {
    min-width: 72px;
    border: 1px solid #c8d4cd;
    background: #fff;
    color: #4e655b;
}

.artwork-status {
    padding: 10px 12px;
    border: 1px solid #c9d8d0;
    border-radius: 6px;
    background: #edf5f1;
    color: #315c50;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
}

.artwork-status.error {
    border-color: #e6b4aa;
    background: #fff0ec;
    color: #97392d;
}

.artwork-status.success {
    border-color: #afd1b1;
    background: #edf7e9;
    color: #2f6b35;
}

.creative-stage-wrap {
    display: grid;
    justify-items: center;
    gap: 14px;
    min-width: 0;
}

.art-preview {
    position: relative;
    width: min(100%, 490px);
    aspect-ratio: 4 / 5;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(21, 37, 31, .22);
}

.art-preview[data-ratio="1:1"] {
    aspect-ratio: 1;
}

.art-preview[data-ratio="3:4"] {
    aspect-ratio: 3 / 4;
}

.art-preview[data-ratio="2:3"] {
    max-width: 430px;
    aspect-ratio: 2 / 3;
}

.art-preview[data-ratio="9:16"] {
    max-width: 390px;
    aspect-ratio: 9 / 16;
}

.art-preview[data-ratio="16:9"] {
    max-width: 590px;
    aspect-ratio: 16 / 9;
}

.art-template-ink {
    background: linear-gradient(145deg, #151719, #45301b);
    color: #fff7e8;
}

.art-template-jade {
    background: linear-gradient(145deg, #0d312e, #166452);
    color: #f6f2da;
}

.art-template-paper {
    background: linear-gradient(145deg, #f8f3ea, #e8ddd0);
    color: #241b18;
}

.art-template-blush {
    background: linear-gradient(145deg, #6d2142, #e77c9b);
    color: #fff8f3;
}

.art-template-peach {
    background: linear-gradient(145deg, #85453f, #f2ac91);
    color: #fffaf4;
}

.art-template-berry {
    background: linear-gradient(145deg, #4d2346, #c96b9a);
    color: #fff6fb;
}

.art-preview__top {
    position: absolute;
    top: 5.5%;
    right: 6%;
    left: 6%;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 900;
}

.art-preview__brand {
    font-size: clamp(13px, 2.2vw, 18px);
}

.art-preview__serial {
    opacity: .65;
    font: 800 clamp(8px, 1.35vw, 11px) Arial, sans-serif;
    letter-spacing: .08em;
}

.art-preview__images {
    position: absolute;
    top: 17%;
    right: 6%;
    left: 6%;
    height: 51%;
    display: grid;
    gap: 6px;
}

.art-preview__image {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 4px;
    background: rgba(0, 0, 0, .12);
}

.art-preview__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.art-preview__count-1 {
    grid-template-columns: 1fr;
}

.art-preview__count-2 {
    grid-template-columns: repeat(2, 1fr);
}

.art-preview__count-3 {
    grid-template-columns: 1.45fr 1fr;
    grid-template-rows: repeat(2, 1fr);
}

.art-preview__count-3 .art-preview__image:first-child {
    grid-row: span 2;
}

.art-preview__count-4 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.art-preview__count-5,
.art-preview__count-6,
.art-preview__count-7,
.art-preview__count-8,
.art-preview__count-9 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.art-preview__empty {
    place-items: center;
    border: 1px dashed rgba(255, 255, 255, .55);
    border-radius: 5px;
    color: inherit;
    font-size: clamp(13px, 2.2vw, 18px);
    font-weight: 900;
    opacity: .76;
}

.art-preview__copy {
    position: absolute;
    top: 73%;
    right: 6%;
    left: 6%;
}

.art-preview__copy h3 {
    margin: 0;
    overflow: hidden;
    font-size: clamp(19px, 3.6vw, 31px);
    letter-spacing: 0;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.art-preview__copy p {
    margin: 6px 0 0;
    overflow: hidden;
    opacity: .72;
    font-size: clamp(10px, 1.8vw, 14px);
    font-weight: 700;
    line-height: 1.38;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.art-preview__tags {
    display: flex;
    gap: 5px;
    margin-top: 10px;
    overflow: hidden;
}

.art-preview__tags span {
    flex: 0 0 auto;
    padding: 3px 7px;
    background: #e2b45b;
    color: #17191c;
    font-size: clamp(8px, 1.35vw, 11px);
    font-weight: 900;
}

.art-template-jade .art-preview__tags span {
    background: #d9d094;
    color: #0d312e;
}

.art-template-paper .art-preview__tags span {
    background: #9d3428;
    color: #fff;
}

.art-template-blush .art-preview__tags span {
    background: #ffe5a9;
    color: #6d2142;
}

.art-template-peach .art-preview__tags span {
    background: #fff0cf;
    color: #85453f;
}

.art-template-berry .art-preview__tags span {
    background: #ffd7a8;
    color: #4d2346;
}

.artwork-strip {
    display: flex;
    width: min(100%, 490px);
    min-height: 54px;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 3px;
}

.artwork-thumb {
    position: relative;
    flex: 0 0 54px;
    height: 54px;
    overflow: hidden;
    border: 1px solid #c5d4cd;
    border-radius: 5px;
    background: #edf3ee;
    cursor: grab;
}

.artwork-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artwork-thumb__number,
.artwork-thumb__remove {
    position: absolute;
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 900;
}

.artwork-thumb__number {
    top: 3px;
    left: 3px;
    background: rgba(20, 39, 32, .78);
    color: #fff;
}

.artwork-thumb__remove {
    top: 3px;
    right: 3px;
    border: 0;
    background: #9d3428;
    color: #fff;
    cursor: pointer;
    line-height: 1;
}

@media (max-width: 860px) {
    .creative-entry {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px;
        padding: 16px;
    }

    .creative-entry__mark {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }

    .creative-entry__copy strong {
        font-size: 18px;
    }

    .creative-entry__copy em {
        font-size: 11px;
        line-height: 1.5;
    }

    .creative-entry__action {
        grid-column: 1 / -1;
        text-align: center;
    }

    .creative-layout {
        grid-template-columns: 1fr;
    }

    .creative-controls {
        gap: 14px;
    }

    .art-preview[data-ratio="9:16"] {
        max-width: min(100%, 340px);
    }

    .art-preview[data-ratio="2:3"] {
        max-width: min(100%, 370px);
    }

    .art-actions {
        grid-template-columns: 1fr 1fr;
    }

    .art-clear-btn {
        grid-column: 1 / -1;
    }
}
