.page-create-character {
    background: #050608;
    color: #f5f5f5;
}

/* 전체 레이아웃 */
.create-layout {
    display: flex;
    gap: 24px;
    padding: 16px 20px 32px;
    box-sizing: border-box;
    align-items: stretch;
    min-height: calc(100vh - 90px);
    height: calc(100vh - 90px);
}

.create-layout__main {
    flex: 3;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.create-layout__preview-mount {
    flex: 1.6;
    min-width: 260px;
    height: 100%;
    display: flex;
}

.create-layout__preview {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    position: relative;
}

/* 카드 기본 */
.card {
    background: #15171c;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03);
}

/* 스텝 탭 */
.steps-nav {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #262a33;
    padding: 12px 0 8px;
    position: sticky;
    top: 0;
    background: #15171c;
    z-index: 5;
}

.steps-container {
    flex: 1;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.steps-nav__item {
    border: none;
    background: transparent;
    color: #c3c8d4;
    font-size: 13px;
    padding: 8px 4px;
    border-radius: 4px;
    cursor: pointer;
}

.steps-nav__item--active {
    background: linear-gradient(#38f28b);   
    color: #fff;
    font-weight: 600;
}

/* 각 스텝 패널 */
.step {
    display: none;
    height: 100%;
    min-height: 0;
}

.step--active {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.step__scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-top: 4px;
    padding-right: 8px;
    margin-right: -8px;
    padding-bottom: 24px;
}

.step__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-shrink: 0;
    position: sticky;
    z-index: 4;
    background: #15171c;
    padding: 12px 0;
}

.step__title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

/* 필드 */
.field-group {
    margin-bottom: 14px;
}

.field__label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
}

.field-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.field-inline--right {
    justify-content: flex-end;
}

.field__control {
    width: 100%;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid #2b2e36;
    background: #050608;
    padding: 8px 10px;
    font-size: 13px;
    color: #f5f5f5;
}

.field__control--textarea {
    min-height: 120px;
    resize: vertical;
}

.scene-helper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: #aeb4cc;
    font-size: 12px;
    flex-wrap: wrap;
}

.scene-helper--compact {
    margin-top: 4px;
}

.scene-insert-btn {
    border: 1px solid #2b2e36;
    background: #1a1c23;
    color: #38f28b;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.scene-insert-btn:hover {
    background: rgba(56, 242, 139, 0.12);
    border-color: rgba(56, 242, 139, 0.4);
}

.scene-helper__hint {
    color: #8c92ac;
}

.scene-text {
    font-size: 13px;
    line-height: 1.5;
    color: #e1e5f3;
}

.scene-text--scene {
    border-radius: 10px;
    padding: 8px 10px;
    color: #e1e5f3;
    margin: 4px 0;
}

.scene-text--line + .scene-text--scene,
.scene-text--scene + .scene-text--line {
    margin-top: 4px;
}

.field__control::placeholder {
    color: #7b8191;
}

.field__hint {
    font-size: 11px;
    color: #8c93a4;
    margin-top: 4px;
}

.image-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 8px 0;
}

.image-slot {
    border: 1px dashed #2f333d;
    border-radius: 10px;
    padding: 10px;
    background: #0b0d12;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.image-slot--empty {
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.image-slot__preview {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #181b22;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-slot__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 이미지 선택 모달 */
.image-picker-modal {
    position: fixed;
    inset: 0;
    background: rgba(5, 6, 8, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.image-picker-modal--hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.image-picker-modal--sheet {
    align-items: flex-end;
}

.image-picker-modal__panel,
.image-library,
.image-cropper {
    background: #15171c;
    border-radius: 18px;
    padding: 20px;
    width: min(420px, 92vw);
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.45);
    position: relative;
}

.image-picker-modal--sheet .image-picker-modal__panel,
.image-picker-modal--sheet .image-library,
.image-picker-modal--sheet .image-cropper {
    width: 100%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.image-picker-modal__title {
    margin: 0 0 16px;
    font-size: 16px;
}

.image-picker-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    color: #f5f5f5;
    font-size: 22px;
    cursor: pointer;
}

.image-picker-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.image-picker-option {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    transition: border 0.2s ease, transform 0.1s ease;
}

.image-picker-option:hover {
    border-color: #ff7a65;
    transform: translateY(-1px);
}

.image-library__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.image-library__header h3 {
    margin: 0;
    font-size: 16px;
}

.image-library__body {
    max-height: min(60vh, 520px);
    overflow: auto;
}

.image-library__status {
    font-size: 13px;
    color: #a9afc3;
    margin-bottom: 8px;
}

.image-library__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.image-library-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    color: #f5f5f5;
    font-size: 13px;
}

.image-library-card__thumb {
    width: 100%;
    padding-top: 130%;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
}

.image-library-card__title {
    font-size: 12px;
    color: #cfd4e7;
    text-align: left;
}

.image-cropper {
    width: min(500px, 92vw);
}

.image-cropper__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.image-cropper__header h3 {
    margin: 0;
    font-size: 16px;
}

#imageCropCanvas {
    width: 100%;
    height: auto;
    border-radius: 16px;
    background: #0b0d12;
    touch-action: none;
}

.image-cropper__controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
    font-size: 13px;
    color: #c7cadc;
}

.image-cropper__controls input[type='range'] {
    flex: 1;
}

.image-cropper__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

@media (max-width: 768px) {
    .image-library__body {
        max-height: 70vh;
    }
}

.image-slot__placeholder {
    font-size: 12px;
    color: #6e7487;
    text-align: center;
    padding: 10px;
}

.image-slot__actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.image-slot__radios {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #c3c8d4;
}

.image-grid-actions {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.image-upload-cta {
    flex: 1;
    min-width: 220px;
    border: 1px solid #2f333d;
    border-radius: 12px;
    background: #0b0d12;
    color: #f5f5f5;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    cursor: pointer;
}

.image-upload-cta .cta-icon {
    font-size: 18px;
    opacity: 0.8;
}

.image-upload-cta .cta-label {
    font-weight: 600;
}

.image-upload-cta .cta-desc {
    font-size: 12px;
    color: #9aa0b5;
}

.image-upload-placeholder,
.image-slot--add {
    border: 1px dashed #2f333d;
    background: #0b0d12;
    color: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 32px;
    cursor: pointer;
    min-height: 180px;
    width: 100%;
    text-align: center;
}

.image-upload-placeholder .placeholder-icon,
.image-slot--add .add-card-icon {
    font-size: 28px;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.image-upload-placeholder .placeholder-text,
.image-slot--add .add-card-text,
.image-slot--add .add-card-hint {
    font-size: 13px;
    color: #a7adbf;
    line-height: 1.4;
}

.image-slot--add .add-card-text {
    font-weight: 600;
    color: #f5f5f5;
}

.image-slot--add .add-card-hint {
    font-size: 12px;
    color: #8c93a4;
}

.image-upload-placeholder:focus,
.image-slot--add:focus,
.image-upload-cta:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.scene-preset-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 12px 0 18px;
}

.scene-preset-label {
    font-size: 12px;
    color: #8f96a7;
}

.scene-preset-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.scene-preset-chips .chip {
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #d8dcee;
}

.scene-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin: 10px 0 6px;
}

.scene-slot {
    border-radius: 12px;
    background: #0f1117;
    border: 1px solid #2b2f39;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scene-slot__preview {
    border-radius: 10px;
    overflow: hidden;
    background: #1a1d27;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scene-slot__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scene-slot__fields {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.scene-slot__fields label {
    font-size: 12px;
    color: #a3a9bc;
}

.scene-slot__fields input,
.scene-slot__fields textarea,
.scene-slot__fields select {
    width: 100%;
    box-sizing: border-box;
    border-radius: 6px;
    border: 1px solid #2f333d;
    background: #07080d;
    color: #f5f5f5;
    padding: 6px 8px;
    font-size: 12px;
}

.scene-slot__fields textarea {
    min-height: 70px;
    resize: vertical;
}

.scene-slot__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.scene-grid-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.scene-slot--add {
    border: 1px dashed #2f333d;
    background: #0b0d12;
    color: #c3c8d4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 32px;
    min-height: 220px;
    text-align: center;
    cursor: pointer;
}

.scene-slot--add .add-card-icon {
    font-size: 30px;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.scene-slot--add .add-card-text {
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.scene-slot--add .add-card-hint {
    font-size: 12px;
    color: #9ca2b4;
}

.example-dialog {
    border: 1px solid #2b2e36;
    border-radius: 12px;
    padding: 12px;
    background: #090b11;
}

.example-dialog__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.example-pair {
    border: 1px solid #2f333d;
    border-radius: 10px;
    padding: 10px;
    background: #0f1117;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.example-pair__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #9da3b7;
}

.example-pair__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.example-pair textarea {
    min-height: 60px;
}

.example-pair__actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.tag-input {
    border: 1px solid #2b2e36;
    border-radius: 8px;
    padding: 6px;
    background: #050608;
    min-height: 44px;
}

.tag-input__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #1f222b;
    border: 1px solid #373a46;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 12px;
    color: #d6dae5;
}

.tag-chip button {
    border: none;
    background: transparent;
    color: #a3a8b9;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
}

.tag-input__field {
    flex: 1;
    min-width: 120px;
    border: none;
    background: transparent;
    color: #f5f5f5;
    font-size: 13px;
    padding: 4px 2px;
}

.tag-input__field:focus {
    outline: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* 파일 입력 숨기고 텍스트처럼 */
.field-group input[type="file"] {
    font-size: 12px;
    color: #c3c8d4;
}

/* 토글 / 라디오 */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.radio {
    display: flex;
    gap: 6px;
    font-size: 13px;
    color: #c3c8d4;
}

.radio input {
    margin-top: 2px;
}

.toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #c3c8d4;
}

.toggle input {
    margin: 0;
}

/* 스텝 하단 버튼 */
.step__footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 0;
    padding: 16px 0 0;
    border-top: 1px solid #23262f;
    position: sticky;
    bottom: 0;
    background: linear-gradient(180deg, rgba(21, 23, 28, 0.96), rgba(21, 23, 28, 1));
    z-index: 3;
}

/* 미리보기 카드 */
.preview-header__title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.preview-card--list {
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin-bottom: 16px;
}

.character-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.12s ease-out;
    background: #161922;
    border-radius: 12px;
    padding: 0;
}

.character-card--preview {
    pointer-events: none;
}

.character-card__thumb {
    position: relative;
    padding-top: 110%;
    overflow: hidden;
    border-radius: 12px 12px 8px 8px;
    background: #0f1116;
}

.character-card__thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.character-card__badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 5px 7px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.character-card__body {
    padding: 10px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.character-card__title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.character-card__name {
    font-size: 15px;
    margin: 0;
}

.character-card__summary {
    margin: 0;
    color: #c6cada;
    font-size: 12px;
    line-height: 1.4;
}

.character-card__meta {
    display: flex;
    gap: 10px;
    color: #8f96a7;
    font-size: 11px;
}

.character-card__creator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.character-card__creator .creator-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2d3244;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.character-card__creator .creator-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.character-card__creator .creator-name {
    font-size: 12px;
    font-weight: 700;
    color: #f5f6fb;
}

.character-card__creator .creator-handle {
    font-size: 11px;
    color: #a5aac6;
}

.character-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.character-card__tags .tag,
.preview-card--list .tag {
    background: #1e222b;
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 11px;
    color: #c9cedb;
}

.preview-intro-block {
    margin-top: 16px;
}

.character-intro-hero {
    display: none;
    width: 100%;
    padding: 16px;
    gap: 16px;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
}

.character-intro-hero--preview {
    display: flex;
}

#previewPanel {
    position: relative;
}

#previewPanel.preview-panel--highlight {
    box-shadow: 0 0 0 2px rgba(56, 242, 139, 0.6);
    transition: box-shadow 0.3s ease;
}

#previewPanel.preview-panel--highlight::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    box-shadow: 0 0 18px rgba(56, 242, 139, 0.35);
    pointer-events: none;
}

.preview-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1800;
}

.preview-modal--open {
    opacity: 1;
    pointer-events: auto;
}

.preview-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.preview-modal__dialog {
    position: relative;
    width: min(520px, 94vw);
    max-height: 90vh;
    overflow-y: auto;
    background: #15171c;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.6);
    transform: translateY(20px);
    transition: transform 0.2s ease;
    z-index: 1900;
}

.preview-modal--open .preview-modal__dialog {
    transform: translateY(0);
}

.preview-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: transparent;
    color: #f5f5f5;
    font-size: 22px;
    cursor: pointer;
}

.preview-modal__content .create-layout__preview {
    overflow: visible;
    height: auto;
}

body.modal-open {
    overflow: hidden;
}

.intro-hero__image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #121319;
}

.intro-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.intro-hero__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    padding: 16px;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.intro-hero__label {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8b8d94;
}

.intro-hero__text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #e4e6eb;
}


/* 버튼(필요한 최소한만) */
.btn--secondary {
    background: #20232b;
    color: #f5f5f5;
    border: 1px solid #2b2e36;
    border-radius: 4px;
    font-size: 12px;
    padding: 6px 12px;
    cursor: pointer;
}

.btn--ghost {
    background: transparent;
    color: #c3c8d4;
    border-radius: 4px;
    border: 1px solid #2b2e36;
    font-size: 12px;
    padding: 5px 10px;
    cursor: pointer;
}

.btn--primary {
    background: linear-gradient(#38f28b);    color: #fff;
    border-radius: 4px;
    border: none;
    font-size: 13px;
    padding: 6px 16px;
    cursor: pointer;
}

/* 반응형 */
@media (max-width: 960px) {
    .create-layout {
        flex-direction: column;
        height: calc(100vh - 90px);
        min-height: calc(100vh - 90px);
        padding: 12px 12px 12px;
    }

    .create-layout__main {
        height: 100%;
        min-height: 0;
    }

    .create-layout__preview-mount {
        display: none;
    }

    .create-layout__preview {
        min-width: 0;
        height: auto;
        overflow: visible;
    }

    .steps-container {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .steps-nav {
        position: sticky;
        z-index: 90;
        background: #15171c;
        padding-left: 14px;
        padding-right: 14px;
        margin-left: -14px;
        margin-right: -14px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    }

    .step__header {
        position: sticky;
        z-index: 80;
        background: #15171c;
        padding: 14px 0 10px;
        margin: 0 -8px;
        padding-left: 8px;
        padding-right: 8px;
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
    }

    .step__scroll {
        flex: 1;
        overflow-y: auto;
        margin-right: 0;
        padding-right: 6px;
        padding-left: 2px;
        padding-top: 8px;
        padding-bottom: 80px;
    }

    .step__footer {
        position: sticky;
        bottom: calc(62px + env(safe-area-inset-bottom, 0px));
        margin-top: auto;
        border-top: 1px solid #23262f;
        background: rgba(5, 6, 8, 0.96);
        box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.45);
        padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0));
        z-index: 1100; /* below drawer (1201) but above content */
    }
}

@media (max-width: 600px) {
    .create-layout {
        padding: 10px 0px 4px;
    }
}
