/*
 * Krop onboarding: sign-up through "your portfolio is ready".
 *
 * Shares the visual language of Krop Studio (templates/studio/editor.html):
 * the system font, near-black ink with one grey for secondary text, filled
 * inputs, pill buttons and the same radii and easing. Everything is scoped
 * under body.ob so the rest of the console is untouched.
 */

.ob {
    --ob-ink: #1D1D1F;
    --ob-mute: #6E6E73;
    --ob-dim: #AEAEB2;
    --ob-bg: #FFFFFF;
    --ob-soft: #F5F5F7;
    --ob-fill: rgba(0, 0, 0, 0.05);
    --ob-fill-2: rgba(0, 0, 0, 0.08);
    --ob-line: rgba(0, 0, 0, 0.08);
    --ob-line-2: rgba(0, 0, 0, 0.14);
    --ob-accent: #0A84FF;
    --ob-ok: #248A3D;
    --ob-err: #D70015;
    --ob-sys: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ob-r-sm: 8px;
    --ob-r: 12px;
    --ob-r-lg: 16px;
    --ob-ease: cubic-bezier(0.2, 0, 0, 1);

    background: var(--ob-bg);
    color: var(--ob-ink);
    font: 15px/1.5 var(--ob-sys);
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ob a { color: inherit; }
.ob [x-cloak] { display: none !important; }

/* ---- top bar ---- */

.ob-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 60px;
    padding: 0 20px;
}
.ob-bar__brand { justify-self: start; display: inline-flex; align-items: center; }
.ob-bar__brand img { display: block; width: 52px; height: 52px; }
.ob-bar__right { justify-self: end; display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--ob-mute); white-space: nowrap; }
.ob-bar__right a { color: var(--ob-ink); font-weight: 500; text-decoration: none; }
.ob-bar__right a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 639px) {
    .ob-bar { padding: 0 16px; }
    .ob-bar__brand img { width: 44px; height: 44px; }
    .ob-bar__right .ob-bar__hint { display: none; }
}

/* Progress: four quiet segments, filled up to the current step */
.ob-steps { display: flex; gap: 4px; }
.ob-steps i { display: block; width: 20px; height: 3px; border-radius: 2px; background: var(--ob-fill-2); transition: background-color 0.3s var(--ob-ease); }
.ob-steps i.on { background: var(--ob-ink); }
@media (min-width: 640px) { .ob-steps i { width: 28px; } }

/* ---- page ---- */

.ob-page { width: 100%; max-width: 420px; margin: 0 auto; padding: 48px 20px 120px; }
.ob-page--md { max-width: 760px; }
.ob-page--lg { max-width: 1120px; }
.ob-page--xl { max-width: 1440px; }

.ob-head { margin-bottom: 32px; text-align: center; }
/* Titles may run wider than the 420px form so short ones keep to one line */
@media (min-width: 768px) { .ob-page:not(.ob-page--md):not(.ob-page--lg):not(.ob-page--xl) > .ob-head { margin-left: -80px; margin-right: -80px; } }
.ob-title { margin: 0; font-size: 32px; line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
.ob-sub { max-width: 40ch; margin: 12px auto 0; font-size: 17px; line-height: 1.45; color: var(--ob-mute); text-wrap: balance; }
.ob-text { color: var(--ob-mute); }
.ob-small { font-size: 13px; line-height: 1.45; color: var(--ob-mute); }
.ob-small a { color: var(--ob-ink); text-decoration: underline; text-underline-offset: 2px; }
.ob-center { text-align: center; }
.ob-note { margin-top: 40px; }
.ob-flush { margin: 0; }
@media (max-width: 639px) { .ob .ob-desktop-only { display: none; } }
@media (min-width: 640px) { .ob .ob-phone-only { display: none; } }
.ob-flush-top { padding-top: 0 !important; }
.ob-flush-bottom { padding-bottom: 0 !important; }

@media (min-width: 768px) {
    .ob-page { padding-top: 72px; }
    .ob-title { font-size: 40px; }
}

/* ---- buttons ---- */

.ob-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    padding: 0 24px;
    border: 1px solid var(--ob-line-2);
    border-radius: 999px;
    background: var(--ob-bg);
    color: var(--ob-ink);
    font: 600 15px/1 var(--ob-sys);
    letter-spacing: -0.01em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    transition: background-color 0.15s, border-color 0.15s, opacity 0.15s, transform 0.2s var(--ob-ease);
}
.ob a.ob-btn { color: var(--ob-ink); }
.ob-btn:hover { border-color: rgba(0, 0, 0, 0.3); }
.ob-btn:active { transform: scale(0.98); }
.ob-btn:focus-visible { outline: 2px solid var(--ob-accent); outline-offset: 3px; }
.ob-btn svg { width: 18px; height: 18px; flex: none; }

.ob-btn--primary, .ob a.ob-btn--primary { border-color: transparent; background: var(--ob-ink); color: #FFFFFF; }
.ob-btn--primary:hover { border-color: transparent; background: #000000; }

.ob-btn--block { display: flex; width: 100%; }
.ob-btn.is-disabled, .ob-btn:disabled { opacity: 0.35; pointer-events: none; cursor: default; }
.ob-btn.is-busy { opacity: 0.6; pointer-events: none; }

.ob-actions { display: grid; gap: 12px; margin-top: 32px; }
.ob-link { display: inline-block; padding: 6px 4px; font-size: 15px; font-weight: 500; color: var(--ob-mute); text-decoration: none; cursor: pointer; }
.ob a.ob-link { color: var(--ob-mute); }
.ob a.ob-link:hover { color: var(--ob-ink); }

.ob-social { display: grid; gap: 12px; }
.ob-terms { margin: 0; text-align: center; text-wrap: balance; }

.ob-or { display: flex; align-items: center; gap: 12px; margin: 24px 0; font-size: 13px; color: var(--ob-mute); }
.ob-or::before, .ob-or::after { content: ""; flex: 1; height: 1px; background: var(--ob-line); }

/* ---- form ---- */

.ob-form { display: grid; gap: 16px; }
.ob-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ob-field { display: grid; gap: 6px; min-width: 0; }
.ob-label { font-size: 13px; font-weight: 500; color: var(--ob-ink); }
.ob-help { font-size: 13px; color: var(--ob-mute); }
.ob-err, .ob-field .errorlist { margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.4; color: var(--ob-err); }

.ob-field input[type="text"],
.ob-field input[type="email"],
.ob-field input[type="password"],
.ob-field select,
.ob-field textarea {
    display: block;
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 0;
    border-radius: var(--ob-r);
    background: var(--ob-fill);
    box-shadow: none;
    color: var(--ob-ink);
    font: 16px/1.3 var(--ob-sys);
    letter-spacing: -0.01em;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color 0.15s, box-shadow 0.15s;
}
.ob-field textarea { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.5; }
.ob-field select { padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%236E6E73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.ob-field input::placeholder, .ob-field textarea::placeholder { color: var(--ob-dim); }
.ob-field input:hover, .ob-field select:hover, .ob-field textarea:hover { background-color: var(--ob-fill-2); }
.ob-field input:focus, .ob-field select:focus, .ob-field textarea:focus { background-color: var(--ob-bg); box-shadow: inset 0 0 0 1.5px var(--ob-ink); }
.ob-field.error input, .ob-field.error .ob-url, .ob-field.has-error input { box-shadow: inset 0 0 0 1.5px var(--ob-err); }
@media (min-width: 768px) {
    .ob-field input[type="text"], .ob-field input[type="email"], .ob-field input[type="password"], .ob-field select, .ob-field textarea { font-size: 15px; }
}

/* Portfolio address: "krop.com/" sits inside the field, the availability check marks the wrapper */
.ob-url { position: relative; display: flex; align-items: center; height: 46px; border-radius: var(--ob-r); background: var(--ob-fill); transition: background-color 0.15s, box-shadow 0.15s; }
.ob-url:hover { background: var(--ob-fill-2); }
.ob-url:focus-within { background: var(--ob-bg); box-shadow: inset 0 0 0 1.5px var(--ob-ink); }
.ob-url__prefix { flex: none; padding-left: 14px; color: var(--ob-mute); font-size: 16px; letter-spacing: -0.01em; white-space: nowrap; }
.ob-field .ob-url input[type="text"] { flex: 1; min-width: 0; height: 100%; padding: 0 76px 0 1px; background: transparent; box-shadow: none; }
.ob-url__state { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); display: none; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; }
.ob-url__state svg { width: 16px; height: 16px; }
.ob-url__ok { color: var(--ob-ok); }
.ob-url__no { color: var(--ob-err); }
.ob-url.success .ob-url__ok { display: inline-flex; }
.ob-url.error .ob-url__no { display: inline-flex; }
@media (min-width: 768px) { .ob-url__prefix { font-size: 15px; } }

/* Password with a show/hide toggle */
.ob-pass { position: relative; }
.ob-field .ob-pass input { padding-right: 64px; }
.ob-pass__toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 34px; padding: 0 10px; border: 0; border-radius: var(--ob-r-sm); background: none; color: var(--ob-mute); font: 500 13px/1 var(--ob-sys); cursor: pointer; }
.ob-pass__toggle:hover { color: var(--ob-ink); }

.ob-alert { padding: 12px 14px; border-radius: var(--ob-r); background: rgba(215, 0, 21, 0.06); color: var(--ob-err); font-size: 13px; line-height: 1.45; }
.ob-alert ul { margin: 4px 0 0; padding: 0; list-style: none; }
.ob-alert a { text-decoration: underline; }

.ob-captcha { min-height: 78px; }

.ob-account { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--ob-r); background: var(--ob-soft); font-size: 15px; }
.ob-account__mark { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ob-ink); color: #FFFFFF; font-weight: 600; text-transform: uppercase; }
.ob-account__who { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ob-account__who span { display: block; font-size: 13px; color: var(--ob-mute); }

/* Choice rows (album options): one high-contrast selection */
.ob-choices { display: grid; gap: 8px; }
.ob-choice { display: grid; gap: 10px; padding: 14px 16px; border-radius: var(--ob-r); background: var(--ob-soft); box-shadow: inset 0 0 0 1px transparent; cursor: pointer; transition: box-shadow 0.15s, background-color 0.15s; }
.ob-choice:hover { background: #EEEEF0; }
.ob-choice.on { background: var(--ob-bg); box-shadow: inset 0 0 0 1.5px var(--ob-ink); }
.ob-choice__head { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.ob-choice__head input[type="radio"] { width: 18px; height: 18px; margin: 0; accent-color: var(--ob-ink); }
.ob-choice .ob-field input, .ob-choice .ob-field select { background-color: var(--ob-bg); box-shadow: inset 0 0 0 1px var(--ob-line-2); }
.ob-choice.on .ob-field input, .ob-choice.on .ob-field select { background-color: var(--ob-soft); box-shadow: none; }
.ob-choice .ob-field input:focus, .ob-choice .ob-field select:focus { background-color: var(--ob-bg); box-shadow: inset 0 0 0 1.5px var(--ob-ink); }
.ob-folders { display: grid; gap: 4px; padding-left: 28px; font-size: 13px; color: var(--ob-mute); }
.ob-check { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
.ob-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--ob-ink); }

/* ---- add work ---- */

.ob-seg { display: flex; gap: 2px; width: max-content; max-width: 100%; margin: 0 auto 28px; padding: 3px; border-radius: 999px; background: var(--ob-fill); overflow-x: auto; scrollbar-width: none; }
.ob-seg::-webkit-scrollbar { display: none; }
.ob-seg a { flex: none; padding: 8px 16px; border-radius: 999px; color: var(--ob-mute); font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: color 0.12s, background-color 0.15s; }
.ob .ob-seg a { color: var(--ob-mute); }
.ob .ob-seg a:hover { color: var(--ob-ink); }
.ob .ob-seg a.up-current { background: var(--ob-bg); color: var(--ob-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.04); }

.ob-panel { padding: 8px; border-radius: var(--ob-r-lg); background: var(--ob-soft); }

/* The upload area: Uppy's dashboard, restyled as a soft drop zone */
.ob .uppy-Root { font-family: var(--ob-sys); }
.ob .uppy-Dashboard-inner { width: 100% !important; max-width: 100%; height: 440px !important; border: 1.5px dashed var(--ob-line-2); border-radius: var(--ob-r-lg); background: var(--ob-soft); }
.ob .uppy-Dashboard-innerWrap { border-radius: var(--ob-r-lg); }
.ob .uppy-Dashboard-AddFiles { border: 0; border-radius: var(--ob-r-lg); }
.ob .uppy-Dashboard-AddFiles-title { max-width: 360px; color: var(--ob-ink); font-size: 17px; font-weight: 500; line-height: 1.45; letter-spacing: -0.01em; }
.ob .uppy-Dashboard-browse { color: var(--ob-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ob .uppy-Dashboard-browse:hover, .ob .uppy-Dashboard-browse:focus { border-bottom: 0; color: #000000; }
.ob .uppy-Dashboard-note { color: var(--ob-mute); font-size: 13px; }
.ob .uppy-DashboardTab-btn { border-radius: var(--ob-r); }
.ob .uppy-DashboardTab-name { color: var(--ob-mute); font-size: 13px; font-weight: 500; }
.ob .uppy-Dashboard-isFixed .uppy-Dashboard-inner, .ob .uppy-size--md .uppy-Dashboard-inner { border-radius: var(--ob-r-lg); }
.ob .uppy-DashboardContent-bar, .ob .uppy-StatusBar { background: var(--ob-bg); }
.ob .uppy-DashboardContent-back, .ob .uppy-DashboardContent-addMore { color: var(--ob-ink); }
.ob .uppy-StatusBar-progress { background-color: var(--ob-ink); }
.ob .uppy-Dashboard-dropFilesHereHint { border: 1.5px dashed var(--ob-ink); border-radius: var(--ob-r-lg); background-color: rgba(255, 255, 255, 0.86); color: var(--ob-ink); }
@media (max-width: 767px) { .ob .uppy-Dashboard-inner { height: 360px !important; } }

/* Video, link and page steps */
.ob-narrow { max-width: 380px; margin: 0 auto; }
.ob-narrow--wide { max-width: 560px; }
.ob-gap-top { margin-top: 24px; }
.ob-field textarea.ob-mono { min-height: 128px; font: 13px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.ob-cover { display: grid; justify-items: center; gap: 8px; }
.ob-cover img { display: block; max-width: 100%; height: 144px; object-fit: contain; border-radius: var(--ob-r-sm); }
.ob-split .ob-panel { min-width: 0; }

/* Thumbnails on the album step */
.ob-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 16px 12px; align-content: start; min-height: 320px; padding: 16px; }
.ob-thumb { display: grid; gap: 6px; text-align: center; cursor: pointer; text-decoration: none; }
.ob-thumb img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.ob-thumb__wait { display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--ob-r-sm); background: var(--ob-bg); }
.ob-spin { width: 20px; height: 20px; color: var(--ob-mute); animation: ob-spin 1s linear infinite; }
@keyframes ob-spin { to { transform: rotate(360deg); } }
.ob-thumb--add { display: grid; place-items: center; aspect-ratio: 1; border: 1.5px dashed var(--ob-line-2); border-radius: var(--ob-r-sm); background: transparent; color: var(--ob-mute); font: 500 13px/1 var(--ob-sys); }
.ob-thumb--add:hover { border-color: var(--ob-ink); color: var(--ob-ink); }
.ob-thumb span { overflow: hidden; font-size: 13px; color: var(--ob-mute); white-space: nowrap; text-overflow: ellipsis; }
.ob-panel--rel { position: relative; }
.ob-editor__form { width: 100%; max-width: 420px; }
.ob-editor__img { display: block; width: 144px; height: 144px; margin: 0 auto; object-fit: contain; }
.ob-editor { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; border-radius: var(--ob-r-lg); background: var(--ob-soft); }

.ob-split { display: grid; gap: 32px; }
@media (min-width: 900px) {
    .ob-split { grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }
}

/* ---- templates ---- */

/* Krop Studio, offered ahead of the pre-made templates */
.ob-studio { display: grid; gap: 24px; align-items: center; margin: 0 0 56px; padding: 20px 20px 28px; border-radius: var(--ob-r-lg); background: var(--ob-soft); }
.ob-studio__art { order: -1; min-width: 0; }
.ob-studio .sh__stage svg { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--ob-line), 0 12px 32px rgba(0, 0, 0, 0.06); }
.ob-studio__title { margin: 0; font-size: 24px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.ob-studio__lede { max-width: 30em; margin: 10px 0 0; font-size: 17px; line-height: 1.45; color: var(--ob-mute); text-wrap: pretty; }
.ob-studio__cta { display: flex; width: 100%; margin-top: 24px; }
@media (min-width: 768px) {
    .ob-studio { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; padding: 40px 40px 40px 48px; }
    .ob-studio__art { order: 0; }
    .ob-studio__title { font-size: 32px; }
    .ob-studio__cta { display: inline-flex; width: auto; }
}
.ob-section { margin: 0 0 24px; }
.ob-section__title { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.ob-section__sub { margin: 6px 0 0; font-size: 15px; color: var(--ob-mute); }

.ob-themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
@media (min-width: 768px) { .ob-themes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; } }
.ob-theme { display: grid; gap: 10px; min-width: 0; }
.ob-theme__shot { position: relative; overflow: hidden; border-radius: var(--ob-r); background: var(--ob-soft); box-shadow: 0 0 0 1px var(--ob-line); aspect-ratio: 1040 / 890; }
.ob-theme__shot img, .ob-theme__shot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ob-ease); }
.ob-theme__tap { position: absolute; inset: 0; }
.ob-theme__over { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.25s var(--ob-ease); }
.ob-theme__over .ob-btn { height: 42px; min-width: 160px; }
.ob-theme__name { font-size: 15px; font-weight: 500; }
@media (hover: hover) and (min-width: 640px) {
    .ob-theme__tap { display: none; }
    .ob-theme__over { display: flex; }
    .ob-theme:hover .ob-theme__over, .ob-theme:focus-within .ob-theme__over { opacity: 1; }
    .ob-theme:hover .ob-theme__shot img, .ob-theme:hover .ob-theme__shot video { transform: scale(1.02); }
}

.ob-page--tight { padding-top: 24px; }
@media (min-width: 768px) { .ob-page--tight { padding-top: 32px; } }
.ob-h1 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; }
.ob-desc { margin: 12px 0 0; }
.ob-preview { display: grid; gap: 32px; }
@media (min-width: 900px) { .ob-preview { grid-template-columns: 1fr 300px; gap: 40px; align-items: start; } }
.ob-frame { overflow: hidden; border-radius: var(--ob-r-lg); background: var(--ob-bg); box-shadow: 0 0 0 1px var(--ob-line), 0 12px 40px rgba(0, 0, 0, 0.08); }
.ob-frame__bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; background: var(--ob-soft); border-bottom: 1px solid var(--ob-line); }
.ob-frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--ob-fill-2); }
.ob-frame__view { position: relative; aspect-ratio: 3 / 2; }
.ob-frame__view iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- details ---- */

.ob .jodit-container:not(.jodit_inline) { border: 0; border-radius: var(--ob-r); background: var(--ob-fill); overflow: hidden; }
.ob .jodit-container:not(.jodit_inline) .jodit-workplace { background: transparent; }
.ob .jodit-toolbar__box:not(:empty) { border-bottom: 1px solid var(--ob-line); background: transparent; }
.ob .jodit-status-report, .ob .jodit-status-bar { display: none; }
.ob .jodit-wysiwyg { font: 15px/1.5 var(--ob-sys); color: var(--ob-ink); }

/* ---- done ---- */

.ob-address { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 20px auto 0; padding: 10px 16px; width: max-content; max-width: 100%; border-radius: 999px; background: var(--ob-soft); font-size: 15px; font-weight: 500; text-decoration: none; }
.ob a.ob-address { color: var(--ob-ink); }
.ob-address span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-address svg { flex: none; width: 16px; height: 16px; color: var(--ob-mute); }

.ob-wait { display: grid; justify-items: center; gap: 12px; padding: 96px 20px; color: var(--ob-mute); text-align: center; }

/* ---- motion ---- */

@media (prefers-reduced-motion: reduce) {
    .ob *, .ob *::before, .ob *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
