:root {
    --guided-ink: #18202c;
    --guided-muted: #697386;
    --guided-line: #dce6eb;
    --guided-soft: #f3f8fa;
    --guided-blue: #1779a6;
    --guided-blue-dark: #0c638e;
    --guided-sky: #eaf7fc;
    --guided-green: #17a673;
    --guided-red: #d15353;
}

* { box-sizing: border-box; }

.guided-page {
    margin: 0;
    overflow-x: hidden;
    color: var(--guided-ink);
    background:
        radial-gradient(circle at 83% 8%, rgba(169, 229, 245, .22), transparent 25rem),
        #f7fafb;
    font-family: "Kumbh Sans", sans-serif;
}

.guided-main { min-width: 0; max-width: 100%; }

.guided-shell {
    width: min(1120px, calc(100% - 64px));
    min-width: 0;
    max-width: 100%;
    margin: 0 auto;
    padding: 54px 0 96px;
}

.guided-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 36px;
}

.guided-kicker {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 12px;
    color: var(--guided-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.guided-kicker-dot { width: 4px; height: 4px; border-radius: 50%; background: #8db6c8; }
.guided-hero h1 { margin: 0; font-size: clamp(38px, 4.2vw, 58px); line-height: 1.03; letter-spacing: -.045em; }
.guided-hero p { max-width: 650px; margin: 16px 0 0; color: var(--guided-muted); font-size: 17px; line-height: 1.65; }

.guided-advanced-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    padding: 11px 15px;
    border: 1px solid var(--guided-line);
    border-radius: 12px;
    color: #4d5a6c;
    background: rgba(255, 255, 255, .8);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    transition: .18s ease;
}
.guided-advanced-link:hover { border-color: #b7d2dd; color: var(--guided-blue); transform: translateY(-1px); }

.guided-setup-grid { display: grid; width: 100%; min-width: 0; max-width: 100%; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 24px; align-items: stretch; }
.guided-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 28px;
    border: 1px solid var(--guided-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 50px rgba(46, 73, 89, .07);
}
.guided-card-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.guided-card-heading h2 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.guided-card-heading p { margin: 4px 0 0; color: var(--guided-muted); font-size: 13px; }
.guided-step-number {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    color: var(--guided-blue);
    background: var(--guided-sky);
    font-size: 13px;
    font-weight: 700;
}

.guided-dropzone {
    position: relative;
    display: block;
    width: 100%;
    min-height: 410px;
    overflow: hidden;
    padding: 0;
    border: 1.5px dashed #adccd8;
    border-radius: 18px;
    color: inherit;
    background: linear-gradient(145deg, #f5fbfd, #edf6f9);
    cursor: pointer;
    font: inherit;
    transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.guided-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    font-size: 16px;
    white-space: nowrap;
}
.guided-file-input:focus-visible + .guided-dropzone { outline: 3px solid rgba(23, 121, 166, .24); outline-offset: 3px; }
.guided-dropzone:hover, .guided-dropzone.is-dragging { border-color: var(--guided-blue); background: #eefaff; transform: translateY(-1px); }
.guided-dropzone-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; }
.guided-dropzone-empty strong { font-size: 17px; }
.guided-dropzone-empty > span:not(.guided-upload-icon) { color: var(--guided-muted); font-size: 12px; }
.guided-upload-mobile-copy { display: none; }
.guided-upload-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 6px; border-radius: 16px; color: var(--guided-blue); background: white; box-shadow: 0 8px 20px rgba(25, 110, 149, .12); }
.guided-image-preview { position: absolute; inset: 0; min-width: 0; max-width: 100%; overflow: hidden; background: #00ff00; }
.guided-image-preview img { display: block; width: 100%; min-width: 0; max-width: 100%; height: 100%; object-fit: contain; }
.guided-change-image, .guided-image-badge { position: absolute; z-index: 2; border-radius: 999px; background: rgba(18, 30, 42, .78); color: white; backdrop-filter: blur(7px); }
.guided-change-image { right: 13px; bottom: 13px; padding: 8px 11px; font-size: 11px; font-weight: 650; }
.guided-image-badge { left: 13px; top: 13px; padding: 7px 10px; font-size: 11px; font-weight: 700; }
.guided-image-badge.is-ready { background: rgba(4, 116, 72, .86); }

.guided-admin-image-option { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding: 11px 13px; border: 1px solid #cfe2eb; border-radius: 12px; background: #f4fbfe; cursor: pointer; }
.guided-admin-image-option[hidden] { display: none; }
.guided-admin-image-option input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--guided-blue); }
.guided-admin-image-option > span { display: flex; flex-direction: column; gap: 2px; }
.guided-admin-image-option strong { font-size: 12px; }
.guided-admin-image-option small { color: var(--guided-muted); font-size: 10px; line-height: 1.35; }

.guided-preparing { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--guided-sky); }
.guided-preparing div { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.guided-preparing strong { font-size: 12px; }
.guided-preparing span:last-child { overflow: hidden; color: var(--guided-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.guided-spinner { width: 18px; height: 18px; flex: 0 0 auto; border: 2px solid #c7dfe8; border-top-color: var(--guided-blue); border-radius: 50%; animation: guided-spin .75s linear infinite; }
@keyframes guided-spin { to { transform: rotate(360deg); } }

.guided-details-card { display: flex; flex-direction: column; }
.guided-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.guided-field > span { font-size: 12px; font-weight: 700; }
.guided-field small { color: #8a94a3; font-weight: 500; }
.guided-field input, .guided-field textarea {
    width: 100%;
    border: 1px solid #cfdde3;
    border-radius: 12px;
    outline: none;
    color: var(--guided-ink);
    background: #fff;
    font: inherit;
    font-size: 14px;
    transition: .18s ease;
}
.guided-field input { height: 48px; padding: 0 14px; }
.guided-field textarea { min-height: 96px; padding: 13px 14px; resize: vertical; line-height: 1.5; }
.guided-field input:focus, .guided-field textarea:focus { border-color: var(--guided-blue); box-shadow: 0 0 0 3px rgba(23, 121, 166, .1); }

.guided-pack-summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: auto 0 18px; padding: 14px; border: 1px solid #d9e8ed; border-radius: 14px; background: #f7fbfc; }
.guided-pack-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 11px; color: var(--guided-blue); background: #e4f4fa; }
.guided-pack-summary > div:nth-child(2) { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.guided-pack-summary strong { font-size: 12px; }
.guided-pack-summary span { color: var(--guided-muted); font-size: 10px; }
.guided-cost { color: var(--guided-ink) !important; font-weight: 700; white-space: nowrap; }
.guided-pack-credit-balance { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -4px 0 12px; padding: 12px 14px; border: 1px solid #d9e8ed; border-radius: 13px; background: #f7fbfc; font-size: 12px; }
.guided-pack-credit-balance span { color: var(--guided-muted); }
.guided-pack-credit-balance strong { color: var(--guided-ink); font-size: 13px; }
.guided-pack-credit-shortfall { margin: 0 0 12px; padding: 12px 14px; border: 1px solid #f0cd91; border-radius: 13px; color: #76510f; background: #fff9ec; font-size: 12px; line-height: 1.45; }
.guided-pack-credit-shortfall a { color: inherit; font-weight: 700; }

.guided-primary-btn, .guided-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 20px;
    border: 0;
    border-radius: 13px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: .18s ease;
}
.guided-primary-btn { color: white; background: linear-gradient(135deg, #1784b5, #106d9b); box-shadow: 0 10px 22px rgba(20, 112, 154, .21); }
.guided-primary-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 13px 28px rgba(20, 112, 154, .27); }
.guided-primary-btn:disabled { color: #91a4ae; background: #e4ecef; box-shadow: none; cursor: not-allowed; }
.guided-create-btn { width: 100%; }
.guided-secondary-btn { border: 1px solid #cddce2; color: #41505e; background: white; }
.guided-charge-note { margin: 10px 0 0; color: #89939f; text-align: center; font-size: 10px; }
.guided-inline-button { padding: 0; border: 0; color: var(--guided-blue); background: transparent; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.guided-inline-error { display: block; margin-top: 7px; color: #b42318; font-size: 11px; font-weight: 700; }
.guided-finish-ready-actions { display: flex; align-items: flex-start; flex-direction: column; width: fit-content; margin-top: 14px; }
.guided-finish-ready-btn { min-height: 44px; padding: 0 17px; font-size: 12px; }
.guided-field-error { margin: 10px 0 0; color: var(--guided-red); font-size: 12px; line-height: 1.45; }

.guided-alert { margin: -4px 0 12px; padding: 14px 16px; border: 1px solid #f0cd91; border-radius: 13px; color: #76510f; background: #fff9ec; font-size: 13px; line-height: 1.5; }
.guided-loading, .guided-gate { min-height: 65vh; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; text-align: center; }
.guided-loading p { color: var(--guided-muted); font-size: 13px; }
.guided-gate h1 { margin: 6px 0 0; }
.guided-gate p { margin: 0 0 8px; color: var(--guided-muted); }
.guided-gate-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; color: var(--guided-blue); background: var(--guided-sky); }

.guided-generation { padding: 30px; border: 1px solid var(--guided-line); border-radius: 22px; background: rgba(255, 255, 255, .94); box-shadow: 0 18px 50px rgba(46, 73, 89, .07); }
.guided-generation-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.guided-generation-header h2 { margin: 0; font-size: 28px; letter-spacing: -.035em; }
.guided-generation-header p { margin: 9px 0 0; color: var(--guided-muted); font-size: 13px; }
.guided-progress-orb { display: flex; width: 82px; height: 82px; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #cfe4eb; border-radius: 50%; background: #f0f9fc; }
.guided-progress-orb strong { font-size: 20px; }
.guided-progress-orb span { color: var(--guided-muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.guided-progress-track { height: 7px; overflow: hidden; margin: 24px 0; border-radius: 99px; background: #e8eff2; }
.guided-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #24b98e, #2a96bd); transition: width .35s ease; }
.guided-action-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.guided-action-card { position: relative; min-height: 112px; overflow: hidden; padding: 15px; border: 1px solid #dce7eb; border-radius: 14px; background: #fbfdfd; }
.guided-action-card.is-running { border-color: #9fcfdf; background: #f3fbfe; }
.guided-action-card.is-ready { border-color: #b7e0d2; background: #f5fcf9; }
.guided-action-card.is-error { border-color: #edbcbc; background: #fff8f8; }
.guided-action-card.is-ready[data-preview-action] { cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.guided-action-card.is-ready[data-preview-action]:hover { border-color: #72c5aa; box-shadow: 0 10px 24px rgba(23, 166, 115, .12); transform: translateY(-2px); }
.guided-action-card.is-ready[data-preview-action]:focus-visible { outline: 3px solid rgba(23, 166, 115, .25); outline-offset: 3px; }
.guided-action-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.guided-action-top strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.guided-action-status { display: inline-flex; align-items: center; gap: 5px; color: var(--guided-muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.guided-action-status i { font-size: 7px; }
.is-running .guided-action-status { color: var(--guided-blue); }
.is-ready .guided-action-status { color: var(--guided-green); }
.is-error .guided-action-status { color: var(--guided-red); }
.guided-action-card video { width: 72px; height: 58px; margin-top: 12px; border-radius: 8px; background: #00ff00; object-fit: cover; }
.guided-action-card p { margin: 13px 0 0; color: #87919c; font-size: 10px; line-height: 1.35; }
.guided-action-preview-hint { display: inline-flex; align-items: center; gap: 5px; margin-top: 9px; color: #087e59; font-size: 10px; font-weight: 700; }
.guided-retry-btn { margin-top: 10px; padding: 6px 9px; border: 1px solid #e3b0b0; border-radius: 8px; color: #ae4545; background: white; font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }
.guided-retry-btn.is-subtle { border-color: #d5d9e2; color: #5a6172; }
.guided-shop-card.is-owned { border-style: dashed; }
.guided-shop-card.is-owned .guided-shop-check { color: #5a6172; }

.guided-video-modal { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; padding: 24px; }
.guided-video-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: rgba(12, 22, 31, .68); backdrop-filter: blur(6px); cursor: default; }
.guided-video-panel { position: relative; width: min(680px, 100%); max-height: calc(100dvh - 48px); overflow: auto; padding: 22px; border: 1px solid rgba(210, 227, 234, .9); border-radius: 22px; background: #fff; box-shadow: 0 30px 90px rgba(6, 20, 30, .28); }
.guided-video-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.guided-video-header .guided-kicker { margin-bottom: 5px; }
.guided-video-header h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.guided-video-close { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; padding: 0; border: 1px solid var(--guided-line); border-radius: 12px; color: #40505d; background: #f7fafb; cursor: pointer; }
.guided-video-close:hover { border-color: #a9cbd8; color: var(--guided-blue); }
.guided-video-panel video { display: block; width: 100%; max-width: 100%; aspect-ratio: 1 / 1; border-radius: 15px; background: #00ff00; object-fit: contain; }
.guided-page.is-preview-open { overflow: hidden; }

.guided-complete { position: relative; overflow: hidden; padding: 72px 30px; border: 1px solid #cce5dd; border-radius: 24px; background: white; box-shadow: 0 24px 70px rgba(41, 92, 75, .1); text-align: center; }
.guided-complete > * { position: relative; z-index: 1; }
.guided-complete-glow { position: absolute; z-index: 0; top: -170px; left: 50%; width: 460px; height: 330px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(93, 222, 174, .24), transparent 70%); }
.guided-complete-check { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%; color: white; background: var(--guided-green); box-shadow: 0 12px 26px rgba(23, 166, 115, .25); }
.guided-complete .guided-kicker { justify-content: center; }
.guided-complete h2 { margin: 0; font-size: 36px; letter-spacing: -.04em; }
.guided-complete > p:not(.guided-kicker) { color: var(--guided-muted); }
.guided-complete-actions { display: flex; justify-content: center; gap: 12px; margin-top: 26px; }
.guided-complete.is-manage #open-animation-shop { order: 1; }
.guided-complete.is-manage #edit-character-link { order: 2; }
.guided-complete.is-manage #view-character-link { order: 3; }
.guided-mobile-advanced-note { display: none; }
.guided-code { margin-top: 18px; color: #71808c; font-size: 12px; }

.guided-shop-modal { position: fixed; z-index: 220; inset: 0; display: grid; place-items: center; padding: 24px; }
.guided-shop-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: rgba(12, 22, 31, .72); backdrop-filter: blur(7px); cursor: default; }
.guided-shop-panel { position: relative; display: flex; flex-direction: column; width: min(1040px, 100%); max-height: calc(100dvh - 48px); overflow: auto; padding: 28px; border: 1px solid #d8e5ea; border-radius: 26px; background: #f7fafb; box-shadow: 0 34px 100px rgba(6, 20, 30, .32); }
.guided-shop-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.guided-shop-header .guided-kicker { margin-bottom: 7px; }
.guided-shop-header h2 { max-width: 680px; margin: 0; font-size: 32px; line-height: 1.08; letter-spacing: -.04em; }
.guided-shop-header p { margin: 8px 0 0; color: var(--guided-muted); font-size: 13px; }
.guided-featured-pack { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 16px; width: 100%; padding: 18px 20px; border: 1px solid #bddfd4; border-radius: 19px; color: #14372d; background: linear-gradient(115deg, #eefbf6 0%, #f7fcff 68%, #edf7fb 100%); text-align: left; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.guided-featured-pack:hover { transform: translateY(-1px); border-color: #70c3a8; box-shadow: 0 12px 28px rgba(23, 166, 115, .1); }
.guided-featured-pack.is-selected { border-color: var(--guided-green); box-shadow: 0 0 0 3px rgba(23, 166, 115, .12); }
.guided-featured-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #24bc83, #1b96bd); font-size: 21px; }
.guided-featured-copy { display: grid; gap: 3px; }
.guided-featured-copy small { color: #16815d; font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.guided-featured-copy strong { font-size: 17px; }
.guided-featured-copy span { color: #6b7d77; font-size: 11px; }
.guided-featured-price { display: grid; justify-items: end; color: #26353b; }
.guided-featured-price strong { font-size: 21px; }
.guided-featured-price small { color: #76868c; font-size: 9px; text-transform: uppercase; }
.guided-featured-action { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 13px; border-radius: 11px; color: #fff; background: #172c35; font-size: 10px; font-weight: 800; }
.guided-shop-filters { display: flex; flex: 0 0 35px; gap: 8px; min-height: 35px; margin: 22px 0 13px; overflow-x: auto; scrollbar-width: none; }
.guided-shop-filters::-webkit-scrollbar { display: none; }
.guided-shop-filter { min-height: 35px; padding: 0 13px; border: 1px solid #d9e4e8; border-radius: 999px; color: #63737b; background: #fff; font: inherit; font-size: 10px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.guided-shop-filter.is-active { border-color: #9dcbdc; color: #096f98; background: #eef8fc; }
.guided-shop-categories { display: grid; gap: 23px; padding: 23px 0 104px; }
.guided-shop-category { display: grid; gap: 10px; }
.guided-shop-category-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.guided-shop-category-heading h3 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.guided-shop-category-heading span { color: #819097; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.guided-shop-category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.guided-shop-card { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; min-height: 128px; padding: 12px; border: 1px solid #dde6e9; border-radius: 16px; color: #18262d; background: #fff; text-align: left; cursor: pointer; transition: border-color .17s ease, box-shadow .17s ease, transform .17s ease; }
.guided-shop-card:hover { transform: translateY(-1px); border-color: #acd0dc; box-shadow: 0 9px 22px rgba(29, 75, 92, .08); }
.guided-shop-card.is-selected { border-color: #31aa82; background: #f5fcf9; box-shadow: inset 0 0 0 1px #31aa82; }
.guided-shop-card-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #127da5; background: #edf7fb; font-size: 15px; }
.guided-shop-card.is-selected .guided-shop-card-icon { color: #087957; background: #e3f7ef; }
.guided-shop-card-preview-shell { position: relative; display: block; width: 96px; aspect-ratio: 1 / 1; align-self: center; overflow: hidden; border-radius: 12px; background: rgb(56, 226, 0); }
.guided-shop-card-preview { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.guided-shop-card-preview-label { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 999px; color: #fff; background: rgba(16, 37, 44, .78); font-size: 7px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; backdrop-filter: blur(5px); }
.guided-shop-card-copy { min-width: 0; }
.guided-shop-card-copy strong { display: block; padding-right: 22px; font-size: 13px; }
.guided-shop-card-copy p { margin: 5px 0 9px; color: #7c898f; font-size: 9px; line-height: 1.35; }
.guided-shop-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 7px; color: #65757d; font-size: 9px; font-weight: 700; }
.guided-shop-check { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid #cedade; border-radius: 50%; color: transparent; background: #fff; font-size: 9px; }
.guided-shop-card.is-selected .guided-shop-check { border-color: var(--guided-green); color: #fff; background: var(--guided-green); }
.guided-shop-tray { position: sticky; z-index: 3; bottom: -28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: -84px -28px -28px; padding: 16px 28px; border-top: 1px solid #dce8eb; background: rgba(255, 255, 255, .95); box-shadow: 0 -10px 30px rgba(20, 53, 65, .08); backdrop-filter: blur(12px); }
.guided-shop-tray > div:first-child { display: grid; gap: 3px; }
.guided-shop-tray strong { font-size: 13px; }
.guided-shop-tray span { color: #77868d; font-size: 10px; }
.guided-shop-total { display: flex; align-items: center; gap: 14px; }
.guided-shop-total > span { display: grid; min-width: 55px; color: #54656d; text-align: right; }
.guided-shop-total > span strong { color: #18262d; font-size: 18px; }
.guided-shop-generate-wrap { display: grid; justify-items: end; gap: 6px; }
.guided-shop-error { max-width: 300px; margin: 0; color: #b42318; font-size: 10px; font-weight: 700; line-height: 1.35; text-align: right; }
.guided-shop-total .guided-primary-btn { min-height: 44px; border: 0; }
.guided-shop-total .guided-primary-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

[hidden] { display: none !important; }

@media (max-width: 1050px) {
    .guided-shell { width: min(900px, calc(100% - 40px)); }
    .guided-setup-grid { grid-template-columns: 1fr; }
    .guided-dropzone { min-height: 380px; }
    .guided-action-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .guided-shop-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
    .guided-desktop-only { display: none !important; }
    .guided-mobile-advanced-note:not([hidden]) { display: flex; align-items: center; justify-content: center; gap: 10px; max-width: 430px; margin: 18px auto 0; padding: 12px 14px; border: 1px solid #d6e4e9; border-radius: 13px; color: #64757d; background: #f7fafb; font-size: 11px; line-height: 1.4; text-align: left; }
    .guided-mobile-advanced-note i { color: var(--guided-blue); font-size: 15px; }
    .guided-mobile-advanced-note strong { display: block; color: var(--guided-ink); }
}

@media (max-width: 720px) {
    .guided-page .oto-app-main { padding-top: 62px; }
    .guided-main { width: 100%; }
    .guided-shell { width: min(100% - 24px, 620px); padding: 0 0 52px; }
    .guided-hero { flex-direction: column; gap: 14px; margin-bottom: 20px; }
    .guided-hero .guided-kicker { margin-bottom: 9px; font-size: 10px; }
    .guided-hero .guided-kicker-dot,
    .guided-hero .guided-kicker > span:last-child { display: none; }
    .guided-hero h1 { max-width: 330px; font-size: 34px; line-height: 1.06; }
    .guided-hero p { margin-top: 11px; font-size: 14px; line-height: 1.52; }
    .guided-advanced-link { min-height: 40px; padding: 8px 12px; font-size: 12px; }
    .guided-setup-grid { gap: 14px; }
    .guided-card, .guided-generation { padding: 16px; border-radius: 17px; }
    .guided-card-heading { align-items: flex-start; gap: 10px; margin-bottom: 14px; }
    .guided-card-heading h2 { font-size: 18px; }
    .guided-card-heading p { font-size: 12px; line-height: 1.4; }
    .guided-step-number { width: 29px; height: 29px; flex: 0 0 auto; border-radius: 9px; }
    .guided-dropzone { min-height: 0; aspect-ratio: 1 / 1; border-radius: 14px; }
    .guided-dropzone-empty { gap: 7px; padding: 18px; }
    .guided-dropzone-empty strong { font-size: 16px; }
    .guided-dropzone-empty > span:not(.guided-upload-icon) { font-size: 11px; line-height: 1.4; }
    .guided-upload-desktop-copy { display: none; }
    .guided-upload-mobile-copy { display: block; }
    .guided-upload-icon { width: 44px; height: 44px; border-radius: 14px; }
    .guided-field { margin-bottom: 14px; }
    .guided-field input { height: 45px; }
    .guided-field textarea { min-height: 82px; }
    .guided-pack-summary { grid-template-columns: auto minmax(0, 1fr); margin-top: 4px; }
    .guided-pack-summary > .guided-cost { grid-column: 2; justify-self: start; margin-top: -3px; }
    .guided-charge-note { margin-bottom: 0; }
    .guided-generation-header h2 { font-size: 23px; }
    .guided-generation-header p { font-size: 12px; line-height: 1.45; }
    .guided-finish-ready-actions, .guided-finish-ready-btn { width: 100%; }
    .guided-action-grid { grid-template-columns: 1fr; gap: 9px; }
    .guided-action-card { min-height: 82px; padding: 13px; }
    .guided-video-modal { align-items: center; padding: 12px; }
    .guided-video-panel { max-height: calc(100dvh - 24px); padding: 15px; border-radius: 17px; }
    .guided-video-header { margin-bottom: 12px; }
    .guided-video-header h2 { font-size: 20px; }
    .guided-video-close { width: 40px; height: 40px; }
    .guided-video-panel video { border-radius: 12px; }
    .guided-generation-header { align-items: flex-start; }
    .guided-progress-orb { width: 68px; height: 68px; }
    .guided-complete { padding: 48px 18px; }
    .guided-complete h2 { font-size: 30px; }
    .guided-complete-actions { flex-direction: column; align-items: stretch; }
    .guided-shop-modal { align-items: end; padding: 0; }
    .guided-shop-panel { width: 100%; max-height: 94dvh; padding: 20px 14px 14px; border-radius: 24px 24px 0 0; }
    .guided-shop-header { gap: 12px; margin-bottom: 14px; }
    .guided-shop-header h2 { font-size: 25px; }
    .guided-shop-header p { font-size: 11px; line-height: 1.45; }
    .guided-featured-pack { grid-template-columns: auto minmax(0, 1fr) auto; gap: 11px; padding: 14px; }
    .guided-featured-icon { width: 43px; height: 43px; border-radius: 13px; }
    .guided-featured-copy strong { font-size: 14px; }
    .guided-featured-copy span { font-size: 9px; }
    .guided-featured-price strong { font-size: 17px; }
    .guided-featured-action { display: none; }
    .guided-shop-categories { gap: 20px; padding: 18px 0 114px; }
    .guided-shop-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .guided-shop-card { grid-template-columns: 1fr; gap: 8px; min-height: 0; padding: 9px; }
    .guided-shop-card-preview-shell { width: 100%; border-radius: 10px; }
    .guided-shop-card-icon { width: 34px; height: 34px; }
    .guided-shop-card-copy strong { font-size: 12px; }
    .guided-shop-card-copy p { font-size: 8.5px; }
    .guided-shop-tray { align-items: stretch; gap: 10px; bottom: -14px; margin: -96px -14px -14px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); }
    .guided-shop-tray > div:first-child { display: none; }
    .guided-shop-total { width: 100%; justify-content: space-between; }
    .guided-shop-generate-wrap { flex: 1; }
    .guided-shop-error { max-width: none; text-align: left; }
    .guided-shop-total .guided-primary-btn { flex: 1; }
    .guided-shop-generate-wrap .guided-primary-btn { width: 100%; }
}
