/* Onboarding modals + upload editor */

.onboarding-modal-root,
.upload-editor-root {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.onboarding-modal-root[hidden],
.upload-editor-root[hidden] {
    display: none !important;
}

.onboarding-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 12, 0.45);
}

.onboarding-modal,
.upload-editor-panel {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    border-radius: 22px;
    padding: 28px 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.upload-editor-root {
    background: rgba(12, 12, 14, 0.72);
}

.upload-editor-panel {
    width: min(440px, 100%);
    max-height: 100%;
    overflow: auto;
    background: #f4f4f5;
    border: 1px solid #d8d8dc;
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.35);
}

.onboarding-modal-title,
.upload-editor-panel h2 {
    margin: 0 0 10px;
    font-size: 1.35rem;
}

.onboarding-modal-body,
.upload-editor-help {
    margin: 0 0 18px;
    color: rgba(20, 20, 20, 0.72);
    line-height: 1.45;
}

.onboarding-modal-actions,
.upload-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.onboarding-modal-btn {
    appearance: none;
    border: 1px solid rgba(20, 20, 20, 0.14);
    background: rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    padding: 10px 16px;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.onboarding-modal-btn.primary {
    background: #141414;
    color: #fff;
    border-color: #141414;
}

.upload-editor-stage {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

#uploadEditorCanvas {
    display: block;
    width: min(100%, 360px);
    height: auto;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    background: #111;
    touch-action: none;
    cursor: grab;
}

.upload-editor-control {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 48px;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
    font-size: 0.92rem;
}

.upload-editor-help-touch { display: none; }
@media (max-width: 850px) and (pointer: coarse) {
    .upload-editor-zoom-control, .upload-editor-help-desktop { display: none; }
    .upload-editor-help-touch { display: inline; }
}

.upload-editor-control > span {
    color: #3f4549;
    font-size: 13px;
    font-weight: 760;
}

.upload-editor-control input[type="range"] {
    --range-progress: 50%;
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 28px;
    margin: 0;
    background: transparent;
    cursor: grab;
    touch-action: pan-y;
}

.upload-editor-control input[type="range"]:active {
    cursor: grabbing;
}

.upload-editor-control input[type="range"]::-webkit-slider-runnable-track {
    height: 7px;
    border: 1px solid #b7bec3;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        #777f85 0,
        #777f85 var(--range-progress),
        #d8dcdf var(--range-progress),
        #d8dcdf 100%
    );
    box-shadow: inset 0 1px 2px rgba(45, 52, 57, .2), 0 1px 0 #fff;
}

.upload-editor-control input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    margin-top: -7px;
    border: 2px solid #f8f9fa;
    border-radius: 50%;
    background: #737b81;
    box-shadow: 0 2px 5px rgba(30, 36, 40, .28), inset 0 1px 0 rgba(255, 255, 255, .32);
    transition: transform 110ms ease, background 110ms ease, box-shadow 110ms ease;
}

.upload-editor-control input[type="range"]:hover::-webkit-slider-thumb {
    background: #656d73;
    box-shadow: 0 3px 7px rgba(30, 36, 40, .32), inset 0 1px 0 rgba(255, 255, 255, .34);
}

.upload-editor-control input[type="range"]:active::-webkit-slider-thumb {
    transform: scale(.9);
    background: #596167;
}

.upload-editor-control input[type="range"]::-moz-range-track {
    height: 7px;
    border: 1px solid #b7bec3;
    border-radius: 999px;
    background: #d8dcdf;
    box-shadow: inset 0 1px 2px rgba(45, 52, 57, .2), 0 1px 0 #fff;
}

.upload-editor-control input[type="range"]::-moz-range-progress {
    height: 7px;
    border-radius: 999px;
    background: #777f85;
}

.upload-editor-control input[type="range"]::-moz-range-thumb {
    width: 17px;
    height: 17px;
    border: 2px solid #f8f9fa;
    border-radius: 50%;
    background: #737b81;
    box-shadow: 0 2px 5px rgba(30, 36, 40, .28);
    transition: transform 110ms ease, background 110ms ease;
}

.upload-editor-control input[type="range"]:active::-moz-range-thumb {
    transform: scale(.9);
    background: #596167;
}

.upload-editor-control input[type="range"]:focus-visible {
    outline: 2px solid rgba(66, 75, 81, .58);
    outline-offset: 2px;
    border-radius: 999px;
}

.upload-editor-control output {
    min-width: 48px;
    padding: 5px 7px;
    border: 1px solid #c7cdd1;
    border-radius: 9px;
    background: #e7eaec;
    color: #4a5156;
    box-shadow: inset 0 1px 2px rgba(45, 52, 57, .08), 0 1px 0 #fff;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    font-weight: 740;
    text-align: center;
}

.provider-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.provider-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(20, 20, 20, 0.14);
    background: rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    padding: 10px 16px;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.provider-divider {
    margin: 8px 0 0;
    text-align: center;
    color: rgba(20, 20, 20, 0.55);
    font-size: 0.9rem;
}

.provider-phone input {
    width: 100%;
    margin-bottom: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(20, 20, 20, 0.14);
    font: inherit;
}

.provider-status {
    min-height: 1.2em;
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: rgba(20, 20, 20, 0.7);
}
