:root {
    color-scheme: dark;
    --bg: #09080d;
    --panel: #15131d;
    --panel-2: #1c1927;
    --line: #312c3f;
    --text: #f6f2ff;
    --muted: #aaa2bb;
    --accent: #bd29ff;
    --accent-2: #7d24f1;
    --success: #3ddc97;
    --warning: #ffbc42;
    --danger: #ff5e76;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 0%, rgba(189, 41, 255, .13), transparent 32rem),
        radial-gradient(circle at 100% 30%, rgba(84, 30, 180, .1), transparent 30rem),
        var(--bg);
}

a { color: inherit; }

button, input { font: inherit; }

button:focus-visible, input:focus-visible, a:focus-visible {
    outline: 3px solid rgba(189, 41, 255, .55);
    outline-offset: 2px;
}

.site-header {
    min-height: 68px;
    padding: 12px clamp(18px, 4vw, 56px);
    border-bottom: 1px solid var(--line);
    background: rgba(9, 8, 13, .9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; }

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 28px rgba(189, 41, 255, .28);
}

.header-actions { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .9rem; }
.header-actions form { margin: 0; }

.mode { border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.mode-github { color: var(--success); border-color: rgba(61, 220, 151, .45); }
.mode-local { color: var(--warning); border-color: rgba(255, 188, 66, .45); }

.page-shell { width: min(1500px, 100%); margin: 0 auto; padding: 38px clamp(18px, 4vw, 56px) 72px; }

.page-heading { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 28px; }
.compact-heading { align-items: center; }
.page-heading h1, .auth-card h1 { margin: 4px 0 8px; font-size: clamp(2rem, 4vw, 3.35rem); letter-spacing: -.04em; }
.eyebrow { margin: 0; color: #d683ff; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.muted { margin: 0; color: var(--muted); line-height: 1.55; }

.notice { min-width: 300px; max-width: 440px; padding: 14px 16px; border: 1px solid; border-radius: 14px; display: grid; gap: 4px; font-size: .86rem; }
.notice strong { color: var(--text); }
.notice span { color: var(--muted); }
.notice-warning { border-color: rgba(255, 188, 66, .4); background: rgba(255, 188, 66, .08); }
.notice-live { border-color: rgba(61, 220, 151, .4); background: rgba(61, 220, 151, .08); }

.messages { display: grid; gap: 10px; margin-bottom: 24px; }
.message, .form-errors { padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.message-success { border-color: rgba(61, 220, 151, .5); color: #95f3c8; }
.message-error, .form-errors { border-color: rgba(255, 94, 118, .55); color: #ff9baa; }
.form-errors p { margin: 0; }

.slot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.slot-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: 0 18px 50px rgba(0, 0, 0, .18); }
.slot-preview { position: relative; aspect-ratio: 16 / 9; background: #050507; overflow: hidden; border-bottom: 1px solid var(--line); }
.slot-card-vertical .slot-preview { aspect-ratio: 16 / 9; }
.slot-preview img { width: 100%; height: 100%; display: block; object-fit: contain; }
.ratio-badge { position: absolute; top: 12px; right: 12px; padding: 5px 8px; border-radius: 999px; background: rgba(5, 5, 7, .82); border: 1px solid rgba(255, 255, 255, .15); font-size: .72rem; font-weight: 800; }
.slot-body { padding: 19px; }
.slot-title-row { display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.slot-title-row h2 { margin: 0 0 4px; font-size: 1.18rem; }
.slot-title-row p, .last-change { margin: 0; color: var(--muted); font-size: .82rem; }
.text-link { color: #d683ff; font-weight: 700; font-size: .85rem; }
.last-change { margin-top: 12px; min-height: 20px; }

.upload-form { margin-top: 16px; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.upload-form .file-label { grid-column: 1 / -1; color: var(--muted); font-size: .8rem; }
input[type="file"], input[type="text"], input[type="password"], input[type="url"] { width: 100%; min-width: 0; color: var(--text); border: 1px solid var(--line); border-radius: 10px; background: #0d0b12; padding: 10px 12px; }
input[type="file"]::file-selector-button { margin-right: 10px; border: 0; border-radius: 7px; padding: 7px 10px; color: var(--text); background: #332a45; cursor: pointer; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; position: relative; overflow: hidden; padding: 9px 14px 9px 18px; color: var(--text); text-decoration: none; border: 1px solid var(--line); border-radius: 8px; background: #15131b; cursor: pointer; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; transition: background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.button::before { content: ""; position: absolute; inset: 7px auto 7px 0; width: 3px; border-radius: 0 3px 3px 0; background: #8b789e; }
.button:hover { border-color: #655378; background: #241e2d; transform: translateY(-1px); }
.button-primary { border-color: rgba(189, 41, 255, .52); background: #24172b; color: #f9eaff; }
.button-primary::before { background: var(--accent); box-shadow: 0 0 14px rgba(189, 41, 255, .58); }
.button-primary:hover { border-color: rgba(213, 117, 255, .8); background: #321c3c; box-shadow: 0 8px 22px rgba(0, 0, 0, .22); }
.button-quiet { background: transparent; }
.button-wide { width: 100%; }
.button-small { min-height: 34px; padding: 6px 10px; font-size: .8rem; }
.button:disabled { cursor: not-allowed; opacity: .45; }

.disabled-feature { margin-top: 26px; padding: 22px; display: flex; justify-content: space-between; align-items: center; gap: 28px; border: 1px dashed #433b51; border-radius: 18px; color: var(--muted); background: rgba(21, 19, 29, .5); }
.disabled-feature h2 { margin: 5px 0 7px; color: var(--text); }
.disabled-feature p { max-width: 780px; margin-bottom: 0; line-height: 1.5; }
.disabled-controls { min-width: min(100%, 400px); display: flex; gap: 8px; }

.atlas-list { display: grid; gap: 30px; }
.atlas-card { padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: 0 18px 50px rgba(0, 0, 0, .2); }
.atlas-header { display: flex; justify-content: space-between; align-items: start; gap: 30px; margin-bottom: 20px; }
.atlas-header h2 { margin: 5px 0; font-size: clamp(1.55rem, 3vw, 2.2rem); }
.atlas-header p { margin: 0; color: var(--muted); }
.atlas-meta { display: grid; justify-items: end; gap: 5px; color: var(--muted); font-size: .8rem; text-align: right; }
.atlas-meta code { overflow-wrap: anywhere; }
.atlas-current { margin-bottom: 22px; padding: 14px; display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 15px; background: rgba(5, 5, 7, .42); }
.atlas-current img { width: 116px; height: 116px; flex: 0 0 auto; object-fit: contain; background: #050507; border-radius: 9px; }
.atlas-current div { display: grid; gap: 5px; }
.atlas-current span { color: var(--muted); font-size: .84rem; }

.frame-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.frame-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #100e16; }
.frame-thumbnail { position: relative; display: grid; place-items: center; overflow: hidden; background: #050507; color: var(--muted); font-size: .75rem; }
.frame-grid-horizontal .frame-thumbnail { aspect-ratio: 2 / 1; }
.frame-grid-vertical .frame-thumbnail { aspect-ratio: 1 / 1.18; }
.frame-thumbnail img { width: 100%; height: 100%; display: block; object-fit: contain; }
.frame-thumbnail b { position: absolute; left: 8px; top: 8px; padding: 5px 7px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 7px; background: rgba(5, 5, 7, .86); color: var(--text); font-size: .72rem; }
.frame-body { padding: 12px; }
.frame-body > p { min-height: 18px; margin: 0 0 10px; color: var(--muted); font-size: .74rem; }
.frame-upload { display: grid; gap: 8px; }
.frame-upload label { color: var(--muted); font-size: .75rem; }
.frame-upload input[type="file"] { padding: 7px; font-size: .72rem; }
.frame-upload input[type="file"]::file-selector-button { padding: 5px 7px; }
.frame-upload .button { font-size: .8rem; }

.atlas-review-layout { grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); }
.atlas-review-image { aspect-ratio: 1; min-height: 0; }
.atlas-review-canvas { position: relative; width: min(100%, 72vh); aspect-ratio: 1; }
.atlas-review-canvas img { width: 100%; height: 100%; object-fit: contain; }
.atlas-overlay { position: absolute; inset: 0; display: grid; pointer-events: none; }
.atlas-columns-2 { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(4, 1fr); }
.atlas-columns-4 { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); }
.atlas-overlay span { border: 1px solid rgba(255, 255, 255, .16); }
.atlas-overlay .selected-frame { border: 4px solid #e24cff; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .75), 0 0 24px rgba(189, 41, 255, .75); background: rgba(189, 41, 255, .09); }

.auth-card { width: min(460px, 100%); margin: 8vh auto 0; padding: clamp(24px, 5vw, 42px); border: 1px solid var(--line); border-radius: 22px; background: var(--panel); box-shadow: 0 24px 80px rgba(0, 0, 0, .35); }
.auth-card h1 { font-size: 2.3rem; }
.stacked-form { display: grid; gap: 18px; margin-top: 26px; }
.field { display: grid; gap: 7px; }
.field label { color: var(--muted); font-size: .85rem; font-weight: 700; }

.review-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, .75fr); gap: 26px; }
.review-image, .review-details { border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.review-image { min-height: 420px; padding: 18px; display: grid; place-items: center; background: #050507; }
.review-image img { display: block; max-width: 100%; max-height: 70vh; object-fit: contain; }
.review-details { padding: 25px; }
.review-details h2 { margin-top: 0; }
.review-details dl { margin: 0; }
.review-details dl div { padding: 11px 0; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.review-details dt { color: var(--muted); }
.review-details dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.review-warning { margin-top: 20px; padding: 13px; border-radius: 10px; color: #f4d697; background: rgba(255, 188, 66, .08); border: 1px solid rgba(255, 188, 66, .35); font-size: .84rem; line-height: 1.45; }
.review-actions { margin-top: 20px; display: flex; justify-content: flex-end; gap: 10px; }

.table-shell { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; }
tbody tr:last-child td { border-bottom: 0; }
code { color: #dca4ff; }
.current-label { color: var(--success); font-size: .8rem; font-weight: 800; }
.empty-state { padding: 50px; text-align: center; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); }
.empty-state h2 { color: var(--text); }

@media (max-width: 920px) {
    .slot-grid, .review-layout { grid-template-columns: 1fr; }
    .page-heading, .disabled-feature, .atlas-header { align-items: stretch; flex-direction: column; }
    .notice { max-width: none; min-width: 0; }
    .review-image { min-height: 280px; }
    .atlas-meta { justify-items: start; text-align: left; }
    .frame-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .site-header { align-items: flex-start; }
    .header-actions { align-items: flex-end; flex-direction: column; gap: 7px; }
    .username { display: none; }
    .page-shell { padding-top: 26px; }
    .upload-form { grid-template-columns: 1fr; }
    .disabled-controls { min-width: 0; flex-direction: column; }
    .frame-grid { grid-template-columns: 1fr; }
    .atlas-current { align-items: flex-start; }
    .atlas-current img { width: 84px; height: 84px; }
}

/* Simple three-step banner workflow */
.simple-heading { max-width: 780px; margin-bottom: 22px; }
.simple-heading h1 { margin: 5px 0 9px; font-size: clamp(2.15rem, 5vw, 3.65rem); letter-spacing: -.045em; }
.publishing-status { margin: 16px 0 0; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; }
.publishing-status span { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px rgba(61, 220, 151, .65); }
.mode { opacity: .82; }

.workflow-steps {
    margin: 0 0 26px;
    padding: 13px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(21, 19, 29, .72);
}
.workflow-steps li { min-width: 0; padding: 10px 12px; display: flex; align-items: center; gap: 11px; border-radius: 11px; color: #a49bad; }
.workflow-steps li.is-complete, .workflow-steps li.is-active { color: var(--text); }
.workflow-steps li.is-active { background: rgba(189, 41, 255, .12); }
.workflow-steps b { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border: 1px solid #494253; border-radius: 50%; font-size: .8rem; }
.workflow-steps .is-complete b { border-color: rgba(61, 220, 151, .45); color: var(--success); background: rgba(61, 220, 151, .08); }
.workflow-steps .is-active b { border-color: var(--accent); color: white; background: var(--accent-2); }
.workflow-steps span { min-width: 0; display: grid; gap: 2px; }
.workflow-steps strong { font-size: .88rem; }
.workflow-steps small { overflow: hidden; color: var(--muted); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }

.preparation-guide {
    margin-bottom: 34px;
    padding: 20px 22px;
    display: grid;
    grid-template-columns: minmax(190px, .7fr) minmax(440px, 1.5fr);
    align-items: center;
    gap: 15px 28px;
    border: 1px solid rgba(189, 41, 255, .25);
    border-radius: 17px;
    background: linear-gradient(110deg, rgba(189, 41, 255, .09), rgba(21, 19, 29, .78));
}
.preparation-guide h2 { margin: 5px 0 0; font-size: 1.25rem; }
.preparation-rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.preparation-rules p { margin: 0; padding: 10px 12px; display: grid; gap: 3px; border: 1px solid var(--line); border-radius: 10px; background: rgba(5, 5, 7, .34); }
.preparation-rules strong { font-size: .8rem; }
.preparation-rules span { color: var(--muted); font-size: .8rem; }
.preparation-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.5; }

.section-heading { margin-bottom: 17px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.section-heading h2 { margin: 3px 0 0; font-size: clamp(1.45rem, 3vw, 2rem); }
.step-label { margin: 0; color: #d683ff; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.location-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.location-card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); transition: border-color .15s ease, transform .15s ease; }
.location-card:hover { border-color: #574b69; transform: translateY(-2px); }
.location-card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(189, 41, 255, .2), 0 16px 40px rgba(0, 0, 0, .18); }
.location-visual { height: 106px; display: grid; place-items: center; border-bottom: 1px solid var(--line); background: radial-gradient(circle, rgba(189, 41, 255, .16), transparent 66%), #0b0910; }
.location-visual span { display: block; border: 2px solid #b55be0; border-radius: 5px; background: linear-gradient(135deg, rgba(189, 41, 255, .48), rgba(71, 30, 115, .25)); box-shadow: 0 0 24px rgba(189, 41, 255, .22); }
.location-visual-horizontal span { width: 142px; aspect-ratio: 2 / 1; }
.location-visual-vertical-main span, .location-visual-vertical span { height: 82px; aspect-ratio: 1 / 2; }
.location-visual-vertical-main span { border-color: #e36cff; }
.location-body { padding: 17px 18px 11px; flex: 1; }
.location-code { margin: 0 0 6px; color: #d683ff !important; font-size: .7rem !important; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.location-body h3 { margin: 0 0 7px; font-size: 1.15rem; }
.location-body p { margin: 0 0 11px; color: var(--muted); font-size: .83rem; line-height: 1.45; }
.location-size { color: #d8d1e2; font-size: .75rem; }
.location-actions { padding: 8px 18px 17px; display: grid; gap: 10px; }
.button-selected { border-color: rgba(61, 220, 151, .5); color: #95f3c8; background: rgba(61, 220, 151, .08); }
.button-selected::before { background: #3ddc97; box-shadow: 0 0 12px rgba(61, 220, 151, .48); }
.subtle-link { justify-self: center; color: var(--muted); font-size: .74rem; text-decoration: none; }
.subtle-link:hover { color: var(--text); text-decoration: underline; }

.slides-section { margin-top: 48px; padding-top: 6px; scroll-margin-top: 18px; }
.slides-heading { align-items: center; }
.slides-heading .muted { margin-top: 6px; }
.simple-slide-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.simple-slide-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #100e16; }
.simple-slide-card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(189, 41, 255, .2); }
.simple-slide-image { position: relative; display: grid; place-items: center; overflow: hidden; background: #050507; color: var(--muted); font-size: .75rem; }
.simple-slide-grid-horizontal .simple-slide-image { aspect-ratio: 2 / 1; }
.simple-slide-grid-vertical .simple-slide-image { aspect-ratio: 1 / 1.4; }
.simple-slide-image img { width: 100%; height: 100%; display: block; object-fit: contain; }
.simple-slide-image b { position: absolute; top: 9px; left: 9px; padding: 5px 8px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 7px; color: white; background: rgba(5, 5, 7, .88); font-size: .75rem; }
.simple-slide-body { padding: 13px; }
.simple-slide-body > p { margin: 0 0 11px; color: var(--muted); font-size: .8rem; }
.simple-slide-body .button { font-size: .82rem; }
.simple-upload-form { display: grid; gap: 8px; }
.simple-upload-form label { color: #d8d1e2; font-size: .76rem; font-weight: 700; }
.simple-upload-form input[type="file"] { padding: 7px; font-size: .71rem; }
.simple-upload-form input[type="file"]::file-selector-button { padding: 5px 7px; }
.simple-upload-form .button { margin-top: 2px; font-size: .8rem; }

.single-upload-panel {
    margin-top: 24px;
    padding: clamp(18px, 3vw, 26px);
    display: grid;
    grid-template-columns: minmax(240px, .8fr) minmax(360px, 1.2fr);
    align-items: end;
    gap: 24px;
    scroll-margin-top: 18px;
    border: 1px solid rgba(189, 41, 255, .45);
    border-radius: 18px;
    background: linear-gradient(120deg, rgba(189, 41, 255, .11), rgba(21, 19, 29, .9));
}
.single-upload-panel h3 { margin: 5px 0 8px; font-size: 1.35rem; }
.single-upload-panel p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.single-upload-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 9px; }
.single-upload-form label { grid-column: 1 / -1; color: #d8d1e2; font-size: .84rem; font-weight: 700; }

.technical-details { margin-top: 22px; border: 1px solid var(--line); border-radius: 13px; color: var(--muted); background: rgba(21, 19, 29, .55); }
.technical-details summary { padding: 13px 16px; cursor: pointer; color: #c1b9cc; font-size: .8rem; font-weight: 700; }
.technical-details[open] summary { border-bottom: 1px solid var(--line); }
.technical-details-content { padding: 16px; display: flex; gap: 18px; align-items: center; }
.technical-details-content img { width: 112px; height: 112px; object-fit: contain; border-radius: 8px; background: #050507; }
.technical-details-content p { margin: 4px 0; font-size: .78rem; }

.review-heading { margin-bottom: 18px; }
.workflow-steps-review { margin-bottom: 24px; }
.simple-review-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .65fr); gap: 24px; align-items: stretch; }
.focused-preview, .publish-panel { border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.focused-preview { min-height: 430px; padding: 21px; display: grid; place-items: center; align-content: center; gap: 13px; background: #050507; }
.focused-preview-label { color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.focused-banner { overflow: hidden; display: grid; place-items: center; border-radius: 8px; background: #0a080d; box-shadow: 0 18px 45px rgba(0, 0, 0, .3); }
.focused-banner-horizontal { width: min(100%, 900px); aspect-ratio: 2 / 1; }
.focused-banner-vertical { width: min(100%, 430px); aspect-ratio: 1 / 2; }
.focused-banner img { width: 100%; height: 100%; display: block; object-fit: contain; }
.atlas-crop { position: relative; overflow: hidden; border-radius: 8px; background: #0a080d; box-shadow: 0 18px 45px rgba(0, 0, 0, .3); }
.atlas-crop img { position: absolute; display: block; max-width: none; object-fit: fill; }
.atlas-crop-columns-2 { width: min(100%, 900px); aspect-ratio: 2 / 1; }
.atlas-crop-columns-2 img { width: 200%; height: 400%; }
.atlas-crop-columns-4 { width: min(100%, 430px); aspect-ratio: 1 / 2; }
.atlas-crop-columns-4 img { width: 400%; height: 200%; }
.atlas-crop-columns-2.atlas-crop-frame-1 img { transform: translate(0, 0); }
.atlas-crop-columns-2.atlas-crop-frame-2 img { transform: translate(-50%, 0); }
.atlas-crop-columns-2.atlas-crop-frame-3 img { transform: translate(0, -25%); }
.atlas-crop-columns-2.atlas-crop-frame-4 img { transform: translate(-50%, -25%); }
.atlas-crop-columns-2.atlas-crop-frame-5 img { transform: translate(0, -50%); }
.atlas-crop-columns-2.atlas-crop-frame-6 img { transform: translate(-50%, -50%); }
.atlas-crop-columns-2.atlas-crop-frame-7 img { transform: translate(0, -75%); }
.atlas-crop-columns-2.atlas-crop-frame-8 img { transform: translate(-50%, -75%); }
.atlas-crop-columns-4.atlas-crop-frame-1 img { transform: translate(0, 0); }
.atlas-crop-columns-4.atlas-crop-frame-2 img { transform: translate(-25%, 0); }
.atlas-crop-columns-4.atlas-crop-frame-3 img { transform: translate(-50%, 0); }
.atlas-crop-columns-4.atlas-crop-frame-4 img { transform: translate(-75%, 0); }
.atlas-crop-columns-4.atlas-crop-frame-5 img { transform: translate(0, -50%); }
.atlas-crop-columns-4.atlas-crop-frame-6 img { transform: translate(-25%, -50%); }
.atlas-crop-columns-4.atlas-crop-frame-7 img { transform: translate(-50%, -50%); }
.atlas-crop-columns-4.atlas-crop-frame-8 img { transform: translate(-75%, -50%); }
.publish-panel { padding: clamp(22px, 3vw, 30px); }
.publish-panel h2 { margin: 9px 0 11px; font-size: 1.65rem; }
.publish-panel > p { color: var(--muted); line-height: 1.55; }
.change-badge { width: fit-content; margin: 0 !important; padding: 6px 9px; border: 1px solid rgba(61, 220, 151, .38); border-radius: 999px; color: #95f3c8 !important; background: rgba(61, 220, 151, .08); font-size: .74rem; font-weight: 800; }
.publish-summary { margin: 22px 0; border-top: 1px solid var(--line); }
.publish-summary div { padding: 12px 0; display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.publish-summary span { color: var(--muted); font-size: .82rem; }
.publish-summary strong { text-align: right; font-size: .84rem; }
.simple-review-actions { margin-top: 0; }
.publish-note { margin: 18px 0 0; font-size: .76rem; }
.preview-technical-details { margin-top: 22px; }
.preview-technical-grid { padding: 18px; display: grid; grid-template-columns: minmax(240px, 430px) 1fr; gap: 24px; align-items: center; }
.preview-technical-grid .atlas-review-canvas { width: 100%; }
.preview-technical-grid dl { margin: 0; }
.preview-technical-grid dl div { padding: 9px 0; display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); font-size: .78rem; }
.preview-technical-grid dd { margin: 0; text-align: right; overflow-wrap: anywhere; }

@media (max-width: 1050px) {
    .location-grid { grid-template-columns: 1fr; }
    .location-card { display: grid; grid-template-columns: 170px 1fr 220px; align-items: stretch; }
    .location-visual { height: 100%; min-height: 150px; border-right: 1px solid var(--line); border-bottom: 0; }
    .location-actions { align-content: center; }
    .simple-slide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .simple-review-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .workflow-steps { grid-template-columns: 1fr; }
    .workflow-steps small { white-space: normal; }
    .preparation-guide { grid-template-columns: 1fr; }
    .preparation-rules { grid-template-columns: 1fr; }
    .single-upload-panel { grid-template-columns: 1fr; }
    .location-card { display: flex; }
    .location-visual { height: 100px; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .section-heading { align-items: stretch; flex-direction: column; }
    .simple-slide-grid { grid-template-columns: 1fr; }
    .preview-technical-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .single-upload-form { grid-template-columns: 1fr; }
    .simple-review-actions { align-items: stretch; flex-direction: column-reverse; }
    .simple-review-actions form, .simple-review-actions .button { width: 100%; }
    .technical-details-content { align-items: flex-start; flex-direction: column; }
}
