/* ===== CREATE COLLECTION ================================================= */
.cr-col{max-width:468px;margin:0 auto;padding-bottom:8px}
.cr-title{font-family:var(--font-display);font-size:48px;line-height:1;text-align:center;padding:40px 0 24px}
@media (max-width:600px){.cr-title{display:none}.cr-col{padding-top:8px}}

.cr-tabs{display:flex;gap:4px;padding:4px;background:var(--bg-secondary);border-radius:8px;margin-bottom:16px}
.cr-tab{flex:1;height:44px;border-radius:8px;font-size:14px;line-height:14px;font-weight:600;background:transparent;
color:var(--text-primary);display:inline-flex;align-items:center;justify-content:center;transition:background-color .15s,color .15s}
.cr-tab.active{background:var(--neutral-900);color:var(--text-inverse)}

.cr-field{width:100%;height:56px;padding:0 16px;border:none;border-radius:8px;background:var(--bg-secondary);
font-family:var(--font-body);font-size:16px;color:var(--text-primary);margin-bottom:12px;transition:background-color .15s}
.cr-field::placeholder{color:var(--text-tertiary)}
.cr-field:hover{background:var(--bg-tertiary)}
.cr-field:focus{outline:none;background:var(--bg-tertiary)}

textarea.cr-field{height:auto;min-height:104px;padding:16px;resize:vertical;line-height:24px}

.cr-city-wrap{position:relative;margin-bottom:12px}
.cr-city-wrap .cr-field{margin-bottom:0}

.cr-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 100; /* Увеличил z-index */
    background: var(--bg-primary);
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(30,30,30,.14);
    overflow: hidden;
    max-height: 248px;
    overflow-y: auto;
    display: block; /* Явно указываем display */
}
.cr-suggest button{display:block;width:100%;text-align:left;padding:13px 16px;font-size:16px;background:transparent;
color:var(--text-primary);border-bottom:1px solid var(--border-subtle)}
.cr-suggest button:last-child{border-bottom:none}
.cr-suggest button:hover{background:var(--bg-secondary)}

.cr-stepper{display:flex;align-items:center;height:56px;padding:0 6px 0 16px;background:var(--bg-secondary);
border-radius:8px;margin-bottom:12px}
.cr-stepper input{flex:1;border:none;background:transparent;font-family:var(--font-body);font-size:16px;
color:var(--text-primary);outline:none;width:100%}
.cr-stepper button{width:40px;height:40px;border-radius:8px;display:flex;align-items:center;justify-content:center;
color:var(--text-primary)}
.cr-stepper button:hover{background:var(--bg-tertiary)}
.cr-stepper svg{width:20px;height:20px}

.cr-rate-label{font-size:14px;line-height:20px;color:var(--text-tertiary);margin:6px 0 10px}
.cr-rate-label b{color:var(--text-primary);font-weight:600}

.cr-rate{display:flex;gap:4px;margin-bottom:18px}
.cr-rate button{flex:1 1 0;min-width:0;height:58px;border-radius:8px;background:var(--bg-secondary);
font-family:var(--font-display);font-size:55px;line-height:1;color:var(--text-primary);
display:flex;align-items:center;justify-content:center;padding:0;overflow:hidden;transition:background-color .12s,color .12s}
.cr-rate button[data-v="Mental"]{flex:0 0 auto;padding:0 10px}
.cr-rate button:not(.sel):hover{background:var(--bg-tertiary)}
.cr-rate button.sel{color:var(--neutral-900)}
.cr-rate button.sel[data-v="1"]{background:var(--accentcard-1)}
.cr-rate button.sel[data-v="2"]{background:var(--accentcard-2)}
.cr-rate button.sel[data-v="3"]{background:var(--accentcard-3)}
.cr-rate button.sel[data-v="4"]{background:var(--accentcard-4)}
.cr-rate button.sel[data-v="5"]{background:var(--accentcard-5)}
.cr-rate button.sel[data-v="6"]{background:var(--accentcard-6)}
.cr-rate button.sel[data-v="7"]{background:var(--accentcard-7)}
.cr-rate button.sel[data-v="8"]{background:var(--accent-300)}
.cr-rate button.sel[data-v="9"]{background:var(--accent-400)}
.cr-rate button.sel[data-v="Mental"]{background:var(--accent-500)}

.cr-spoiler{border-top:1px solid var(--border-subtle)}
.cr-spoiler__head{display:flex;align-items:center;justify-content:space-between;padding:16px 0;cursor:pointer;
font-size:16px;line-height:20px;color:var(--text-primary);width:100%;background:transparent;text-align:left}
.cr-spoiler__head svg{width:22px;height:22px;color:var(--text-primary)}
.cr-spoiler__head .pm-v{transition:opacity .25s ease}
.cr-spoiler.open .cr-spoiler__head .pm-v{opacity:0}
.cr-spoiler__body{overflow:hidden;max-height:0;transition:max-height .3s ease-out}
.cr-spoiler.open .cr-spoiler__body{max-height:1400px}
.cr-spoiler__inner{padding-bottom:4px}

.cr-help{font-size:14px;line-height:20px;color:var(--text-tertiary);margin:-4px 0 14px}
.cr-uplabel{font-size:16px;line-height:20px;font-weight:600;margin:4px 0 10px}

.cr-photos{display:flex;gap:10px;overflow-x:auto;padding-bottom:6px;margin-bottom:10px}
.cr-photo{position:relative;width:84px;height:84px;border-radius:8px;background:var(--bg-secondary);flex:none;
display:flex;align-items:center;justify-content:center;background-size:cover;background-position:center;color:var(--text-tertiary)}
.cr-photo.add{cursor:pointer}
.cr-photo.add:hover{background:var(--bg-tertiary)}
.cr-photo .ph{width:28px;height:28px}
.cr-photo .cover{position:absolute;left:5px;bottom:5px;background:var(--accent-500);color:var(--neutral-900);
font-size:10px;line-height:1;font-weight:600;padding:3px 6px;border-radius:4px}
.cr-photo .rm{position:absolute;top:5px;right:5px;width:22px;height:22px;border-radius:50%;background:var(--neutral-0);
display:flex;align-items:center;justify-content:center;box-shadow:0 1px 3px rgba(0,0,0,.2);cursor:pointer}
.cr-photo .rm svg{width:12px;height:12px;color:var(--neutral-900)}

.cr-notes{font-size:14px;line-height:22px;color:var(--text-tertiary);margin-bottom:16px}

.cr-color-row{display:flex;align-items:center;justify-content:space-between;padding:14px 0;border-top:1px solid var(--border-subtle);margin-bottom:16px}
.cr-color-row .lbl{font-size:16px;color:var(--text-tertiary)}
.cr-swatches{display:flex;gap:14px}
.cr-swatch{width:32px;height:32px;border-radius:50%;cursor:pointer}
.cr-swatch.sel{box-shadow:0 0 0 2px var(--neutral-0),0 0 0 4px var(--neutral-900)}

.cr-actions{display:flex;flex-direction:column;gap:12px;padding-bottom:40px}
.cr-btn{height:52px;border-radius:8px;font-size:16px;font-weight:600;display:flex;align-items:center;justify-content:center}
.cr-btn--primary{background:var(--accent-500);color:var(--neutral-900)}
.cr-btn--primary:hover{background:var(--accent-600)}
.cr-btn--secondary{background:var(--bg-secondary);color:var(--text-primary)}
.cr-btn--secondary:hover{background:var(--neutral-200)}

.toast{position:fixed;left:50%;bottom:96px;transform:translateX(-50%) translateY(20px);z-index:120;
background:var(--neutral-900);color:var(--neutral-0);padding:13px 22px;border-radius:8px;font-size:14px;line-height:18px;
opacity:0;visibility:hidden;transition:opacity .25s ease,transform .25s ease,visibility .25s}
.toast.show{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0)}

/* Скрываем старый input file */
.mt-hidden-input{display:none}

@media (max-width: 768px) {
  .apppost {
        margin-top: 75px;
  }
}

/* Drag and drop стили */
.cr-photos.drag-over {
    background: var(--bg-tertiary);
    border: 2px dashed var(--accent-500);
    border-radius: 8px;
}

.cr-photo.dragging {
    opacity: 0.5;
}

.cr-photo.drag-over-target {
    border: 2px solid var(--accent-500);
    transform: scale(1.05);
}

.cr-photo[draggable="true"] {
    cursor: move;
}