:root {
    color-scheme: dark;
    --bg: #080c16;
    --panel: #101724;
    --line: #253044;
    --muted: #8e9cb2;
    --text: #e8edf6;
    --accent: #71e6d0
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: radial-gradient(ellipse at 85% 0, #12252c 0, transparent 35%), var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.65;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif
}

a {
    color: inherit;
    text-decoration: none
}

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

.topbar {
    height: 82px;
    border-bottom: 1px solid var(--line);
    padding: 0 max(28px, calc((100vw - 1320px)/2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    letter-spacing: 1.3px
}

.brand b {
    color: var(--accent)
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 36px;
    border: 1px solid var(--accent);
    border-radius: 9px;
    color: var(--accent);
    font-weight: 700
}

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

main {
    max-width: 1320px;
    padding: 40px 0px 64px;
    margin: auto
}

.heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 600;
    margin: 0 0 10px
}

h1 {
    font-size: 32px;
    letter-spacing: -1px;
    margin: 0;
    font-weight: 600
}

h1 span {
    color: var(--accent)
}

.muted {
    color: var(--muted);
    margin-bottom: 0
}

.badge {
    white-space: nowrap;
    padding: 7px 12px;
    border: 1px solid #315348;
    background: #142a28;
    color: var(--accent);
    border-radius: 30px;
    font-size: 12px
}

.notice {
    border: 1px solid #384434;
    background: #1b221d;
    color: #bdc9ac;
    font-size: 12px;
    border-radius: 10px;
    padding: 12px 16px
}

#status {
    color: var(--accent);
    min-height: 22px;
    font-size: 13px;
    margin: 14px 0
}

#status.error {
    color: #ffb0ac
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 24px
}

.sections {
    display: grid;
    gap: 22px
}

.panel {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    padding: 24px
}

.section-title {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    margin-bottom: 24px
}

.number {
    font-size: 11px;
    color: var(--accent);
    background: #18312f;
    border: 1px solid #2d4a46;
    border-radius: 7px;
    padding: 4px 8px;
    line-height: 22px
}

h2 {
    font-size: 16px;
    margin: 0;
    font-weight: 600
}

.section-title p {
    font-size: 12px;
    color: var(--muted);
    margin: 5px 0 0
}

.images {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px
}

.image-card {
    min-width: 0
}

.image-card>label {
    font-size: 12px
}

.upload-area {
    position: relative;
    width: 100%;
    height: 145px;
    background: #0a111d;
    border: 1px dashed #39475e;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    margin: 8px 0;
    color: var(--muted);
    text-align: center;
    font-size: 11px
}

.upload-area:hover {
    border-color: var(--accent)
}

.upload-area strong {
    font-size: 25px;
    font-weight: 300;
    color: var(--accent);
    margin-bottom: 4px
}

.upload-area img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.upload-area input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    padding: 0
}

.upload-area:focus-within {
    outline: 2px solid var(--accent);
    outline-offset: 3px
}

.file-name {
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: 11px;
    min-height: 32px
}

.image-card input[type=number] {
    margin-top: 5px
}

.hint {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
    margin: 12px 0 0
}

label {
    display: block;
    font-size: 12px;
    margin-bottom: 7px
}

.required {
    color: var(--accent)
}

input,
select,
textarea {
    color: var(--text);
    background: #0b1220;
    border: 1px solid #2c384e;
    border-radius: 8px;
    padding: 10px 12px;
    width: 100%;
    min-width: 0
}

textarea {
    resize: vertical;
    line-height: 1.7;
    font-size: 13px
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #71e6d060;
    outline-offset: 1px;
    border-color: var(--accent)
}

input:disabled {
    opacity: .45
}

input[type=checkbox] {
    width: 37px;
    height: 21px;
    accent-color: var(--accent);
    cursor: pointer
}

.text-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 11px;
    color: var(--muted);
    margin-top: 7px
}

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

.field small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 5px;
    overflow-wrap: anywhere
}

.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
    margin: 22px 0
}

.toggle-row label {
    margin: 0
}

.toggle-row .hint {
    margin: 3px 0 0
}

summary {
    cursor: pointer;
    font-size: 14px;
    font-weight: 600
}

summary span {
    float: right;
    font-size: 11px;
    color: var(--muted);
    font-weight: 400
}

.advanced {
    margin-top: 20px
}

.overview {
    position: sticky;
    top: 24px
}

.overview h2 {
    font-size: 18px
}

.preview-stage {
    background: linear-gradient(135deg, #182635, #0a121e);
    border-radius: 10px;
    padding: 18px;
    margin: 18px 0;
    display: flex;
    justify-content: center
}

#preview-frame {
    aspect-ratio: 9/16;
    width: 135px;
    max-width: 100%;
    position: relative;
    background: #111c2b;
    border: 1px solid #344257;
    border-radius: 7px;
    display: grid;
    place-items: center;
    overflow: hidden
}

#hero-image {
    width: 100%;
    height: 100%;
    position: absolute;
    object-fit: contain
}

#hero-empty {
    text-align: center;
    font-size: 12px;
    color: #acb9cb
}

#hero-empty small {
    font-size: 10px;
    color: var(--muted)
}

.frame-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: #080c16b3;
    border: 1px solid #435066;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 9px
}

dl {
    margin: 0
}

dl div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid #25304499;
    font-size: 12px
}

dt {
    color: var(--muted)
}

dd {
    margin: 0;
    text-align: right
}

.button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    width: 100%;
    border: 1px solid #37475c;
    background: #172333;
    color: var(--text);
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 10px
}

.button:hover {
    border-color: var(--accent)
}

.button.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #09231f;
    font-weight: 600;
    margin-top: 20px;
    justify-content: space-between;
    padding: 0 14px
}

.button:disabled {
    opacity: .45;
    cursor: wait
}

.button-pair {
    display: flex;
    gap: 10px
}

.button.subtle {
    background: transparent;
    color: var(--muted)
}

.export-note {
    font-size: 10px
}

footer {
    max-width: 1264px;
    margin: 0 auto;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--muted)
}

[hidden] {
    display: none !important
}

@media(min-width:1500px) {
    main {
        padding-top: 52px
    }
}

@media(max-width:1050px) {
    .layout {
        grid-template-columns: minmax(0, 1fr) 340px
    }

    .panel {
        padding: 18px
    }

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

@media(max-width:760px) {
    .topbar {
        height: 66px;
        padding: 0 18px
    }

    .brand {
        font-size: 10px;
        letter-spacing: .5px
    }

    .back {
        font-size: 11px
    }

    main {
        padding: 28px 16px 40px
    }

    h1 {
        font-size: 25px
    }

    .heading {
        align-items: flex-start
    }

    .badge {
        display: none
    }

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

    .overview {
        position: static
    }

    .fields {
        gap: 14px
    }

    .upload-area {
        height: 160px
    }

    .text-meta {
        flex-wrap: wrap
    }

    summary span {
        float: none;
        display: block;
        margin: 7px 0 0
    }

    footer {
        margin: 0 16px;
        gap: 10px;
        flex-wrap: wrap
    }

    .preview-stage {
        height: 250px
    }

    #preview-frame {
        height: 100%;
        width: auto
    }

    .muted {
        font-size: 12px
    }
}

@media(prefers-reduced-motion:no-preference) {

    .button,
    .upload-area {
        transition: border-color .15s, background .15s
    }
}

#overview-progress {
    margin: 16px 0;
    padding: 13px;
    border: 1px solid #315348;
    background: #142321;
    border-radius: 10px;
    font-size: 12px
}

#overview-status {
    color: var(--accent)
}

#generation-progress {
    display: block;
    width: 100%;
    height: 7px;
    margin: 12px 0 0;
    accent-color: var(--accent)
}

#result-video {
    display: block;
    width: 100%;
    margin: 18px 0 12px;
    border-radius: 10px;
    background: #000
}

#download-video {
    margin-bottom: 18px
}

#overview-progress-detail {
    overflow-wrap: anywhere
}

/* Full-width reference preview and generated video, with natural media height. */
.overview .preview-stage {
    display: block;
    width: 100%;
    height: auto;
    padding: 0;
    background: transparent;
    border-radius: 0;
    margin: 18px 0
}

.overview #preview-frame {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    aspect-ratio: auto !important;
    background: transparent;
    border: 0;
    border-radius: 10px;
    position: relative;
    overflow: hidden
}

.overview #hero-image {
    display: block;
    position: static;
    width: 100%;
    height: auto;
    object-fit: contain
}

.overview #hero-empty {
    display: block;
    padding: 44px 12px
}

.overview #result-video {
    width: 100%;
    height: auto;
    max-height: none;
    background: transparent;
    border-radius: 10px
}

#preview-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 4px #000;
    font-size: 12px;
    pointer-events: none
}

#preview-loading-text {
    background: #080c16b3;
    padding: 5px 10px;
    border-radius: 6px
}

.loading-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid #ffffff60;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: preview-spin 1s linear infinite;
    box-shadow: 0 0 6px #0003
}

@keyframes preview-spin {
    to {
        transform: rotate(360deg)
    }
}

@media(prefers-reduced-motion:reduce) {
    .loading-spinner {
        animation-duration: 3s
    }
}

#generate {
    justify-content: center;
    text-align: center
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 22px;
    margin-top: 24px
}

.template-card {
    display: block;
    min-width: 0
}

.template-card:hover {
    border-color: var(--accent)
}

.template-card img {
    width: 100%;
    height: 260px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 16px
}

.template-card h2 {
    overflow-wrap: anywhere
}
/* Flexible reference and guide cards. */
.image-toolbar,.image-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:14px 0; }
.image-actions .button { padding:7px 12px; min-height:34px; font-size:12px; }
.file-picker { position:absolute; width:1px; height:1px; opacity:0; overflow:hidden; }
label.button { cursor:pointer; display:inline-flex; margin:10px 0; }
label.button:focus-within { outline:2px solid var(--accent); outline-offset:3px; }
.image-card { min-width:0; }
.image-card > strong { display:block; margin-bottom:12px; overflow-wrap:anywhere; font-size:13px; }
#guide-images { margin-top:16px; }
#images:empty { display:none; }
button:disabled { cursor:default; opacity:.45; }

.upload-area .image-actions { position:absolute; top:8px; right:8px; z-index:3; display:flex; flex-wrap:nowrap; gap:6px; margin:0; }
.image-time-overlay { position:absolute; right:8px; bottom:8px; z-index:3; display:flex; align-items:center; gap:6px; max-width:calc(100% - 16px); padding:5px 7px; border:1px solid #ffffff4d; border-radius:8px; background:rgba(8,12,22,.86); backdrop-filter:blur(6px); cursor:default; }
.image-time-overlay label { margin:0; color:#e8edf6; font-size:11px; white-space:nowrap; }
.upload-area .image-time-overlay input { position:static; inset:auto; opacity:1; width:68px; height:30px; min-width:0; margin:0; padding:3px 5px; border:1px solid #526079; border-radius:5px; background:#0b1220; color:#fff; font-size:12px; cursor:text; }
.image-time-overlay input::placeholder { color:#a9b6c9; }
.image-action { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; padding:0; border:1px solid rgba(255,255,255,.3); border-radius:8px; color:#fff; background:rgba(8,12,22,.78); cursor:pointer; backdrop-filter:blur(6px); }
.image-action:hover { background:rgba(45,60,85,.95); }
.image-delete:hover { background:#a3293c; }
.image-action:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.image-action:disabled { opacity:.35; }

#basic { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
#basic .field { position:relative; min-width:0; }
#basic input,#basic select { width:100%; min-width:0; }
#basic .field-unit { position:absolute; right:10px; bottom:12px; font-size:11px; color:var(--muted); pointer-events:none; }
#basic #field-132-value { padding-right:32px; }
#basic #field-115-megapixels { padding-right:62px; }
@media(max-width:480px) { #basic { gap:8px; } #basic input,#basic select { padding-left:8px; font-size:12px; } #basic .field-unit { right:6px; font-size:10px; } }

/* Portrait preview with a single overlaid progress indicator. */
.overview #preview-frame { aspect-ratio:9 / 16 !important; background:#080c16; }
.overview #hero-image { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.overview #hero-empty { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; flex-direction:column; }
#preview-loading { inset:50% 14px auto; transform:translateY(-50%); padding:12px; gap:9px; border-radius:10px; background:rgba(8,12,22,.78); text-shadow:none; }
#preview-loading-text { padding:0; background:transparent; font-size:14px; font-weight:600; }
#preview-loading #generation-progress { width:100%; height:6px; margin:0; border:0; border-radius:4px; overflow:hidden; appearance:none; background:#ffffff35; }
#generation-progress::-webkit-progress-bar { background:#ffffff35; border-radius:4px; }
#generation-progress::-webkit-progress-value { background:var(--accent); border-radius:4px; }
#generation-progress::-moz-progress-bar { background:var(--accent); border-radius:4px; }

.result-video-wrap { position:relative; }
.overview .result-video-wrap #result-video { margin:0; }
.result-video-wrap:has(video:not([hidden])) { margin:18px 0 12px; }
#download-video { position:absolute; top:10px; right:10px; z-index:2; display:flex; align-items:center; justify-content:center; width:38px; height:38px; margin:0; color:#fff; background:rgba(8,12,22,.75); border:1px solid rgba(255,255,255,.3); border-radius:9px; backdrop-filter:blur(6px); }
#download-video:hover { background:rgba(45,60,85,.95); }
#download-video:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }


/* Shared console shell for reference generation and the template library. */
.reference-page .page-shell,
.reference-page main,
.reference-page footer {
    width: 100%;
    max-width: 1920px;
    margin-inline: auto;
    padding-inline: clamp(16px, 2.2vw, 42px);
}

.reference-page .site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 10px 24px;
    background: #080c16;
    font: 14px system-ui;
    color: #b4c6ff;
}

.reference-page .topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: block;
    height: auto;
    padding: 15px 0;
    border-bottom: 1px solid #1e293b;
    background: #0c1322ed;
    box-shadow: 0 12px 40px #00000038;
    backdrop-filter: blur(16px);
}

.reference-page .header-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 24px;
}

.reference-page .brand {
    flex-shrink: 0;
    letter-spacing: normal;
}

.reference-page .brand-icon {
    width: 42px;
    height: 42px;
    color: #22d3ee;
    background: linear-gradient(135deg, #0b2334, #13102b);
    border: 1px solid #22d3ee80;
    border-radius: 12px;
    box-shadow: 0 0 18px #00f3ff16;
}

.reference-page .brand-title {
    color: #f8fafc;
    font-size: 17px;
    font-weight: 750;
    letter-spacing: .035em;
}

.reference-page .brand-title span {
    margin-left: 4px;
    color: #22d3ee;
    font: 13px Consolas, monospace;
}

.reference-page .brand p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.reference-page .header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.reference-page .header-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 12px;
    border: 1px solid #06b6d447;
    border-radius: 9px;
    background: #06b6d414;
    color: #a5f3fc;
    font-size: 12px;
}

.reference-page .header-button:hover {
    background: #06b6d426;
}

@media(max-width:767px) {
    .reference-page .topbar { position: relative; }
}

@media(max-width:540px) {
    .reference-page .brand-title { font-size: 16px; }
    .reference-page .brand-title span { font-size: 12px; }
    .reference-page .brand p { font-size: 10px; }
    .reference-page .brand-icon { width: 38px; height: 38px; }
    .reference-page .header-actions { width: 100%; }
    .reference-page .header-button { min-height: 41px; }
}

.prompt-editor { position: relative; }
.prompt-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 7px; }
.prompt-heading label { margin: 0; }
.prompt-help-button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; padding: 0; border: 1px solid #3a5a65; border-radius: 50%; background: #14252e; color: var(--accent); font-size: 18px; cursor: pointer; }
.prompt-help-button:hover { background: #203b42; border-color: var(--accent); }
.prompt-help-button:focus-visible, .prompt-help-dialog button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
body:has(.prompt-help-dialog[open]) { overflow: hidden; }
.prompt-help-dialog { width: min(760px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 48px); padding: 0; border: 1px solid #34475d; border-radius: 16px; background: var(--panel); color: var(--text); box-shadow: 0 24px 80px #0009; overflow: hidden; }
.prompt-help-dialog[open] { display: flex; flex-direction: column; }
.prompt-help-dialog::backdrop { background: #020611bf; }
.prompt-help-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.prompt-help-header h2 { font-size: 18px; }
.prompt-help-content { padding: 0 24px 20px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.prompt-help-content section { margin-top: 22px; }
.prompt-help-content h3 { margin: 0 0 8px; color: var(--accent); font-size: 14px; }
.prompt-help-content p { margin: 8px 0; color: #bcc8d9; font-size: 13px; line-height: 1.85; }
.prompt-help-content .prompt-help-intro { margin-top: 18px; }
.prompt-help-example { white-space: pre-wrap; overflow-wrap: anywhere; padding: 14px; margin: 12px 0; border: 1px solid var(--line); border-radius: 8px; background: #0b1220; color: var(--text); font: inherit; font-size: 12px; line-height: 1.85; }
.prompt-help-footer { display: flex; justify-content: flex-end; padding: 12px 24px; border-top: 1px solid var(--line); flex-shrink: 0; }
.prompt-help-footer .button { width: auto; min-width: 100px; margin: 0; padding: 0 20px; }
@media(max-width:540px) { .prompt-help-header { padding: 14px 16px; } .prompt-help-content { padding: 0 16px 16px; } .prompt-help-footer { padding: 12px 16px; } }
.image-mentions { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; max-height: 280px; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: 0 12px 32px #0008; }
.image-mentions button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border: 0; border-radius: 6px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.image-mentions button:hover, .image-mentions button[aria-selected="true"] { background: #18312f; }
.image-mentions img { width: 44px; height: 44px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.image-mentions span { overflow-wrap: anywhere; min-width: 0; }

.templates-page .template-card { display:flex; flex-direction:column; }
.templates-page .template-media { width:100%; height:300px; margin-bottom:16px; border-radius:8px; overflow:hidden; background:#080c16; }
.templates-page .template-media img,
.templates-page .template-media video { display:block; width:100%; height:100%; margin:0; object-fit:contain; }
.templates-page .template-card h2 { font-size:17px; }
.templates-page .template-card .button { align-self:flex-start; margin-top:auto; }
.templates-page #load-more { margin-top:24px; }

#prompt-help-open { width:28px; height:28px; border-color:#71e6d026; background:#71e6d008; color:#9bb5c2; font-size:13px; transition:color .15s,background .15s,border-color .15s; }
#prompt-help-open:hover { color:var(--accent); background:#71e6d014; border-color:#71e6d066; }

.button-pair .save-template-option { display:flex; align-items:center; justify-content:center; gap:9px; margin:10px 0 0; min-height:42px; font-size:12px; }
.save-template-option input[type=checkbox] { width:16px; height:16px; margin:0; accent-color:var(--accent); }

/* Compact reference image upload tile. */
.image-toolbar .image-add-tile { position:relative; display:flex; align-items:center; justify-content:center; flex:0 0 64px; width:64px; height:64px; margin:0; padding:0; border:1px dashed #57504a; border-radius:11px; background:#ffffff03; cursor:pointer; transition:border-color .15s,background .15s; }
.image-add-plus { position:relative; display:block; width:24px; height:24px; color:#8b8580; }
.image-add-plus::before,.image-add-plus::after { content:""; position:absolute; background:currentColor; }
.image-add-plus::before { width:24px; height:1px; left:0; top:11.5px; }
.image-add-plus::after { width:1px; height:24px; left:11.5px; top:0; }
.image-toolbar .image-add-tile:hover { border-color:var(--accent); background:#71e6d008; }
.image-add-tile:hover .image-add-plus { color:var(--accent); }
.image-toolbar .image-add-tile:focus-within { outline:2px solid var(--accent); outline-offset:4px; }
.image-toolbar #image-count { margin:0; }

#images > .image-toolbar { align-self:end; justify-content:flex-start; margin:8px 0; min-height:145px; align-items:center; }
#images > .image-toolbar[hidden] { display:none; }

.image-preview-trigger { display:block; width:100%; height:100%; padding:0; border:0; background:transparent; cursor:zoom-in; }
.image-preview-trigger:focus-visible { outline:2px solid var(--accent); outline-offset:-3px; }
.image-preview-dialog { width:fit-content; max-width:94vw; max-height:94dvh; padding:0; border:1px solid var(--line); border-radius:12px; background:#080c16; overflow:hidden; }
.image-preview-dialog::backdrop { background:#000c; backdrop-filter:blur(5px); }
.image-preview-dialog > img { display:block; max-width:92vw; max-height:90dvh; object-fit:contain; }
.image-preview-close { position:absolute; top:12px; right:12px; z-index:1; display:grid; place-items:center; width:36px; height:36px; padding:0; border:1px solid #ffffff40; border-radius:50%; background:#080c16cc; color:#fff; cursor:pointer; }
.image-preview-close:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }

label.save-template-option:focus-within { outline:none; }
.save-template-option input[type=checkbox] { border:0; outline:none; box-shadow:none; border-radius:5px; }
.save-template-option:has(input:focus-visible) { outline:2px solid var(--accent); outline-offset:2px; }
#add-batch-task { justify-content:center; text-align:center; }

#add-batch-task { background:#a5b4fc; border-color:#a5b4fc; color:#182044; }
#add-batch-task:hover { background:#bbc6ff; border-color:#bbc6ff; }
#batch-task-status:empty { display:none; }

.sms-notify-option{display:flex;align-items:center;gap:10px;margin:15px 0;padding:12px 14px;border:1px solid #71e6d025;border-radius:9px;background:#71e6d005;cursor:pointer;color:#c5ddd3;font-size:12px}.sms-notify-option input[type=checkbox]{display:block;flex-shrink:0;width:16px;height:16px;min-height:0;margin:0;accent-color:#71e6d0}.sms-notify-option small{display:block;margin-top:3px;color:#849b92;font-size:10px}
