* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
body.public-studio-body { background: #eaf2ff; }
[hidden] { display: none !important; }

.guest-studio-page {
    --guest-ink: #142349;
    --guest-muted: #52617d;
    --guest-blue: #1164ef;
    --guest-heading: #142349;
    --guest-line: #cbd8ef;
    display: flex;
    width: 100%;
    min-height: 100dvh;
    flex-direction: column;
    overflow: visible;
    color: var(--guest-ink);
    background: #eaf2ff;
    font: 14px/1.4 Inter, Arial, sans-serif;
}
.guest-studio-header {
    height: 62px;
    min-height: 62px;
    flex: 0 0 62px;
    gap: 18px;
    padding: 0 22px;
    background: #f8fbff;
}
.guest-studio-header .studio-brand { font-size: 17px; }
.guest-studio-header .studio-brand-mark { width: 34px; height: 34px; border-radius: 10px; }
.guest-studio-header .studio-title { flex: 1 1 auto; min-width: 180px; }
.guest-header-state { display: inline-flex; align-items: center; gap: 7px; color: #64748b; font-size: 11px; white-space: nowrap; }
.guest-state-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #9ba8b8; }
.guest-studio-header .studio-header-login { flex: 0 0 auto; min-height: 34px; padding: 7px 13px; font-size: 11px; }

.guest-campaign-bar {
    z-index: 2;
    display: block;
    flex: 0 0 auto;
    min-height: 82px;
    padding: 0;
    border-bottom: 1px solid #dfe7f2;
    background: #f7faff;
    box-shadow: 0 2px 8px #18325308;
}
.guest-campaign-content {
    display: grid;
    grid-template-columns: minmax(170px, .62fr) minmax(440px, 1.7fr) minmax(250px, .95fr);
    align-items: center;
    gap: 14px;
    width: min(100%, 1280px);
    min-height: 82px;
    margin: 0 auto;
    padding: 9px 18px;
}
.guest-campaign-intro { display: grid; align-content: center; gap: 2px; min-width: 0; }
.guest-campaign-intro > strong { color: var(--guest-heading); font-size: 17px; line-height: 1.15; }
.guest-studio-page .studio-eyebrow { color: var(--guest-blue); }
.guest-campaign-intro > small { color: var(--guest-muted); font-size: 10px; line-height: 1.3; }
.guest-creative-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: min(100%, 820px); min-width: 0; }
.guest-creative-option {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr) 17px;
    align-items: center;
    gap: 7px;
    min-width: 0;
    min-height: 58px;
    padding: 6px;
    border: 1px solid #dce5f0;
    border-radius: 10px;
    background: #fff;
    color: var(--guest-ink);
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.guest-creative-option:hover { border-color: #9eb9ef; }
.guest-creative-option.is-selected { border-color: var(--guest-blue); background: #f0f5ff; box-shadow: 0 0 0 1px var(--guest-blue); }
.guest-creative-option > img { width: 45px; height: 44px; border-radius: 7px; object-fit: cover; }
.guest-creative-option strong, .guest-creative-option small { display: block; }
.guest-creative-option strong { font-size: 10px; line-height: 1.25; }
.guest-creative-option small { margin-top: 2px; color: var(--guest-muted); font-size: 8px; line-height: 1.2; }
.guest-creative-check { display: grid; width: 17px; height: 17px; place-items: center; border: 1px solid #cbd5e1; border-radius: 50%; color: transparent; font-size: 10px; }
.guest-creative-option.is-selected .guest-creative-check { border-color: var(--guest-blue); background: var(--guest-blue); color: #fff; }
.guest-goal-picker--top {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 3px 5px;
    min-width: 0;
    padding: 6px;
    border: 1px solid #cbd8e8;
    border-radius: 10px;
    background: #e9eff8;
    box-shadow: 0 2px 7px #2037530c;
}
.guest-goal-picker--top > .studio-eyebrow { grid-column: 1 / -1; }
.guest-goal-choice { display: flex; align-items: flex-start; gap: 6px; min-width: 0; padding: 5px 6px; border: 1px solid #d7e1ee; border-radius: 7px; background: #fff; color: var(--guest-ink); text-align: left; cursor: pointer; }
.guest-goal-choice.is-selected { border-color: var(--guest-blue); background: #dce8fc; box-shadow: 0 0 0 1px var(--guest-blue); }
.guest-radio-mark { position: relative; width: 14px; height: 14px; flex: 0 0 14px; margin-top: 1px; border: 1.5px solid #a8b4c4; border-radius: 50%; background: #fff; }
.guest-goal-choice.is-selected .guest-radio-mark { border: 4px solid var(--guest-blue); }
.guest-goal-choice strong, .guest-goal-choice small { display: block; }
.guest-goal-choice strong { font-size: 8px; line-height: 1.2; }
.guest-goal-choice small { margin-top: 1px; color: var(--guest-muted); font-size: 7px; line-height: 1.2; }

.guest-studio-main { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.guest-studio-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(420px, .96fr);
    gap: 12px;
    width: 100%;
    max-width: 1280px;
    height: 100%;
    min-height: 0;
    margin-inline: auto;
    padding: 12px 16px;
}
.guest-preview-panel {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    padding: 11px;
    border: 1px solid #dce5f0;
    border-radius: 13px;
    background: #f8fbff;
}
.guest-preview-heading { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.guest-preview-heading > div:first-child { display: grid; gap: 2px; }
.guest-preview-heading > div:first-child > strong { color: var(--guest-heading); font-size: 14px; line-height: 1.2; }
.guest-preview-heading .studio-preview-switch button.is-active { background: var(--guest-blue); color: #fff; box-shadow: none; }
.guest-preview-stage {
    display: grid;
    flex: 1 1 auto;
    min-height: 0;
    justify-items: center;
    align-items: start;
    overflow: hidden;
    padding: 10px;
    border-radius: 11px;
    background: linear-gradient(145deg, #e7edf5, #f0f4fa);
}
.guest-facebook-card {
    display: flex;
    width: min(100%, 31vw, 330px);
    height: min(543px, calc(56vh - 17px));
    flex-direction: column;
}
.guest-preview-stage.is-feed .guest-facebook-card { width: min(100%, 31vw, 330px); }
.guest-editable-copy, .guest-preview-title { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: text; }
.guest-editable-copy:hover { text-decoration: underline dotted #8ca8d7; text-underline-offset: 3px; }
.guest-facebook-card .guest-preview-copy {
    display: block;
    width: 100%;
    height: 52px;
    min-height: 52px;
    margin: 2px 0 6px;
    padding: 0 12px;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
}
.guest-preview-copy > span {
    display: -webkit-box;
    overflow: hidden;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.guest-facebook-card .studio-property-line { overflow-wrap: anywhere; }
.guest-facebook-card .studio-facebook-link > div { flex: 1 1 auto; min-width: 0; }
.guest-preview-title strong, .guest-preview-title small { overflow-wrap: anywhere; }
.guest-property-photo-frame { height: auto; min-height: 0; max-height: none; flex: 0 0 auto; aspect-ratio: 1 / 1; }
.guest-preview-stage .studio-property-photo { object-position: center 80%; }
.guest-preview-stage.is-feed .guest-property-photo-frame { min-height: 0; }
.guest-agent-overlay { min-height: 55px; gap: 8px; padding: 6px 10px; }
.guest-agent-overlay .studio-agent-photo-preview { width: 40px; height: 40px; }
.guest-agent-overlay > span:last-child { min-width: 0; }
.guest-agent-overlay strong { font-size: 10px; }
.guest-agent-overlay small { font-size: 8px; line-height: 1.25; }
.guest-preview-title { cursor: pointer; }
.guest-preview-title strong { font-size: 11px; }
.guest-preview-title small { font-size: 9px; }
.guest-preview-title strong, .guest-preview-title small { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; }
.guest-preview-title strong { -webkit-line-clamp: 2; }
.guest-preview-title small { -webkit-line-clamp: 1; }
.guest-facebook-card .studio-facebook-actions { margin-top: auto; }
.guest-preview-controls { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 9px; min-height: 40px; padding: 6px 3px 0; }
.guest-copy-choices { display: flex; align-items: center; gap: 5px; min-width: 0; }
.guest-copy-choices > span { color: #3f5068; font-size: 9px; font-weight: 700; white-space: nowrap; }
.guest-copy-choices button { width: 28px; height: 26px; border: 1px solid #d7e0ed; border-radius: 7px; background: #fff; color: #52647b; font-size: 10px; font-weight: 700; cursor: pointer; }
.guest-copy-choices button.is-selected { border-color: var(--guest-blue); background: var(--guest-blue); color: #fff; box-shadow: 0 0 0 1px var(--guest-blue); }
.guest-copy-choices button:disabled { opacity: .4; cursor: not-allowed; }
.guest-edit-copy-link { flex: 0 0 auto; font-size: 9px; }
.guest-photo-warning { grid-template-columns: auto 1fr; align-items: center; gap: 7px; margin: 6px 0 0; padding: 6px 8px; }
.guest-photo-warning strong { white-space: nowrap; }
.guest-photo-warning span { line-height: 1.25; }

.guest-settings-column { display: grid; align-content: start; gap: 9px; min-width: 0; min-height: 0; overflow: auto; padding-right: 2px; overscroll-behavior: contain; scrollbar-gutter: stable; }
.guest-settings-column .studio-card { padding: 10px 12px; border-color: #dce5f0; border-radius: 11px; box-shadow: 0 2px 7px #20375308; }
.guest-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.guest-card-heading > div:first-child { display: flex; align-items: center; gap: 9px; min-width: 0; }
.guest-card-heading > div:first-child > div { display: grid; gap: 1px; min-width: 0; }
.guest-card-heading .studio-eyebrow { letter-spacing: .1em; }
.guest-card-heading strong { color: var(--guest-heading); font-size: 12px; line-height: 1.2; }
.guest-section-title { color: var(--guest-heading); font-size: 13px !important; line-height: 1.2; }
.guest-card-heading small { color: var(--guest-muted); font-size: 8px; }
.guest-card-icon { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border: 1px solid #d9e5f7; border-radius: 8px; color: var(--guest-blue); font-size: 20px; }
.guest-card-heading .studio-page-action { color: var(--guest-blue); font-size: 9px; }
.guest-card-heading .studio-page-action:hover { color: #174fba; }
.guest-property-summary { display: grid; grid-template-columns: 105px minmax(0, 1fr); align-items: center; gap: 9px; margin-top: 6px; }
.guest-property-summary > img { width: 105px; height: 64px; border-radius: 8px; object-fit: cover; }
.guest-property-facts { display: grid; align-content: center; gap: 3px; min-width: 0; }
.guest-property-facts > strong { font-size: 11px; }
.guest-property-facts > span { color: #586a80; font-size: 9px; }
.guest-property-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 10px; }
.guest-property-meta > b { color: var(--guest-ink); font-size: 13px; }
.guest-property-meta > span { color: #586a80; font-size: 9px; }
.guest-property-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.guest-property-actions .studio-button { min-height: 30px; padding: 5px 8px; color: #2865d6; font-size: 9px; }
.guest-upload-button { position: relative; display: grid; place-items: center; overflow: hidden; cursor: pointer; }
.guest-upload-button input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.guest-property-toggles { display: grid; gap: 1px; margin-top: 6px; }
.guest-property-toggles .studio-check-row { margin: 0; font-size: 9px; line-height: 1.25; }
.guest-upload-name { display: block; margin-top: 3px; color: #8190a4; font-size: 8px; }
.guest-property-card .studio-remove-photo { margin-top: 2px; font-size: 9px; }

.guest-brand-card .guest-card-heading { margin-bottom: 7px; }
.guest-switch { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.guest-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.guest-switch-label { margin-left: 6px; color: #586a80; font-size: 8px; white-space: nowrap; }
.guest-switch-track { width: 35px; height: 20px; border-radius: 99px; background: #b8c2d0; transition: background .15s ease; }
.guest-switch-track::after { display: block; width: 16px; height: 16px; margin: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #152a4533; content: ""; transition: transform .15s ease; }
.guest-switch input:checked + .guest-switch-track { background: var(--guest-blue); }
.guest-switch input:checked + .guest-switch-track::after { transform: translateX(15px); }
.guest-switch input:focus-visible + .guest-switch-track { outline: 3px solid #2865ee66; outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.guest-agent-summary { display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: #1c304b; color: #fff; }
.guest-agent-summary > img { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; object-fit: cover; }
.guest-agent-summary > span { display: grid; flex: 1 1 auto; gap: 2px; min-width: 0; }
.guest-agent-summary strong { font-size: 10px; }
.guest-agent-summary small { overflow: hidden; color: #d4dfed; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.guest-agent-summary .studio-page-action { flex: 0 0 auto; }
.guest-agent-summary .studio-page-action { padding: 6px 8px; border: 1px solid #ffffff80; border-radius: 7px; color: #fff; }

.guest-destination-card .guest-card-heading { margin-bottom: 7px; }
.guest-destination-row { display: grid; grid-template-columns: minmax(150px, .9fr) minmax(0, 1fr); align-items: center; gap: 8px; }
.guest-destination-select { min-height: 31px; padding: 5px 8px; font-size: 10px; }
.guest-destination-details { display: flex; align-items: center; gap: 10px; padding: 2px 1px; }
.guest-destination-details a { color: #2865d6; font-size: 10px; font-weight: 700; text-decoration: none; }
.guest-destination-details a:hover { text-decoration: underline; }
.guest-website-field { margin-top: 5px; }
.guest-website-field .studio-label { margin-top: 0; }
.guest-website-field .studio-input { min-height: 30px; font-size: 10px; }
.guest-lead-info { padding: 7px 8px; border: 1px solid #e2eaf5; border-radius: 7px; background: #f7faff; color: #5b6d85; font-size: 9px; }
.guest-destination-bottom { display: grid; grid-template-columns: minmax(125px, .75fr) minmax(0, 1fr); align-items: end; gap: 8px; margin-top: 6px; padding-top: 6px; border-top: 1px solid #edf1f6; }
.guest-destination-bottom > label:first-child { display: grid; gap: 3px; color: #475970; font-size: 10px; font-weight: 700; }
.guest-destination-bottom .studio-input { min-height: 30px; padding: 4px 7px; font-size: 10px; }
.guest-permission { align-items: flex-start; margin: 0; font-size: 9px; line-height: 1.3; }
.guest-permission input { margin-top: 1px; }
.guest-goal-status { margin: 6px 0 0; color: #77869a; font-size: 8px; }
.guest-preview-helper { display: block; margin-top: 2px; color: #78879b; font-size: 8px; }

@media (min-width: 901px) and (min-height: 821px) {
    .guest-facebook-card { width: min(100%, 31vw, 330px, calc(56vh - 229px)); }
    .guest-preview-stage.is-feed .guest-facebook-card { width: min(100%, 31vw, 330px, calc(56vh - 229px)); }
    .guest-settings-column {
        grid-template-rows: none;
        align-content: start;
        overflow: auto;
    }
    .guest-settings-column > .studio-card { height: auto; min-height: 0; }
    .guest-property-summary { grid-template-columns: 105px minmax(0, 1fr); margin-top: 6px; }
    .guest-property-summary > img { width: 105px; height: 64px; }
    .guest-property-actions { gap: 6px; margin-top: 6px; }
    .guest-property-toggles { gap: 1px; margin-top: 6px; }
    .guest-switch { margin-top: 1px; }
    .guest-destination-row { margin-top: 4px; }
    .guest-destination-bottom { margin-top: 6px; }
    .guest-destination-card .guest-goal-status { margin-top: 6px; }
}

.guest-save-bar { min-height: 63px; padding: 7px 16px; border-top: 1px solid #dbe4ef; background: #f8fbff; }
.guest-save-message { display: grid; flex: 1 1 auto; gap: 2px; min-width: 0; }
.guest-save-message strong { font-size: 11px; }
.guest-save-message span { color: #75849a; font-size: 9px; }
.guest-save-bar .studio-button { min-height: 36px; padding: 8px 13px; font-size: 10px; }
.guest-save-bar .studio-button-blue { color: #fff; white-space: nowrap; }
.guest-save-bar a { text-decoration: none; }
.public-studio-status { position: fixed; z-index: 20; right: 16px; bottom: 76px; max-width: min(460px, calc(100% - 32px)); padding: 0; color: #40536b; font-size: 11px; }
.public-studio-status:not(:empty) { padding: 10px 13px; border: 1px solid #d9e2ef; border-radius: 8px; background: #fff; box-shadow: 0 8px 28px #152a4515; }
.studio-header-login:hover { color: #2865ee; }

.guest-edit-dialog { width: min(620px, calc(100vw - 28px)); max-height: min(88vh, 760px); padding: 0; border: 1px solid #d9e2ec; border-radius: 14px; box-shadow: 0 24px 80px #091a3040; }
.guest-edit-dialog::backdrop { background: #14233a8c; backdrop-filter: blur(3px); }
.guest-edit-dialog .studio-property-dialog-body { max-height: min(65vh, 540px); overflow: auto; }
.guest-edit-dialog .studio-property-dialog-footer { justify-content: flex-end; }
.guest-edit-dialog .studio-label { margin-top: 10px; }
.guest-edit-dialog .studio-field-pair { gap: 10px; }
.guest-home-value-note { padding: 10px; border: 1px solid #dce5f0; border-radius: 8px; background: #f7faff; color: #5c6e84; font-size: 12px; }

button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid #2865ee66; outline-offset: 2px; }

@media (max-width: 1200px) and (min-width: 901px) {
    .guest-campaign-content { width: min(100%, 940px); grid-template-columns: minmax(155px, .55fr) minmax(400px, 1.5fr) minmax(230px, .9fr); gap: 9px; padding-inline: 12px; }
    .guest-studio-grid { max-width: 940px; grid-template-columns: minmax(0, 1.02fr) minmax(390px, .98fr); gap: 9px; padding-inline: 10px; }
    .guest-preview-panel { padding: 8px; }
    .guest-settings-column .studio-card { padding: 8px 9px; }
    .guest-property-summary { grid-template-columns: 100px minmax(0,1fr); }
    .guest-property-summary > img { width: 100px; height: 65px; }
}
@media (min-width: 901px) and (max-height: 820px) {
    .guest-studio-header { height: 54px; min-height: 54px; flex-basis: 54px; padding-block: 7px; }
    .guest-campaign-bar { min-height: 64px; }
    .guest-campaign-content { min-height: 64px; padding-block: 5px; }
    .guest-creative-option { grid-template-columns: 36px minmax(0, 1fr) 16px; min-height: 48px; padding: 4px; }
    .guest-creative-option > img { width: 36px; height: 38px; }
    .guest-studio-grid { gap: 8px; padding: 8px 10px; }
    .guest-preview-panel { padding: 8px; }
    .guest-preview-panel { overflow: hidden; }
    .guest-preview-heading { margin-bottom: 5px; }
    .guest-settings-column { gap: 7px; }
    .guest-settings-column .studio-card { padding: 7px 8px; }
    .guest-facebook-card { width: min(100%, 31vw, 330px, calc(24.5vh + 10px)); height: calc(24.5vh + 205px); }
    .guest-preview-stage.is-feed .guest-facebook-card { width: min(100%, 31vw, 330px, calc(24.5vh + 10px)); }
    .guest-preview-stage { flex: 1 1 auto; min-height: 0; overflow: hidden; }
    .guest-facebook-card .studio-facebook-header { padding: 6px 9px 3px; }
    .guest-facebook-card .guest-preview-copy { height: 52px; min-height: 52px; margin: 2px 0 6px; padding-inline: 10px; font-size: 11px; line-height: 1.35; }
    .guest-preview-copy > span { -webkit-line-clamp: 3; }
    .guest-facebook-card .studio-property-line { overflow: hidden; padding: 3px 10px; font-size: 8px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
    .guest-facebook-card .studio-facebook-link { gap: 6px; padding: 4px 8px; }
    .guest-facebook-card .guest-preview-title strong { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .guest-facebook-card .guest-preview-title small { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
    .guest-facebook-card .studio-preview-cta { padding: 5px 8px; }
    .guest-facebook-card .studio-facebook-actions { gap: 12px; padding: 4px 8px; font-size: 8px; }
    .guest-preview-controls { min-height: 34px; gap: 7px; padding-top: 4px; }
    .guest-photo-warning { margin-top: 4px; padding: 5px 7px; }
    .guest-property-photo-frame { min-height: 0; max-height: none; aspect-ratio: 1 / 1; }
    .guest-save-bar { min-height: 54px; padding: 5px 10px; }
}
@media (min-width: 901px) and (max-height: 700px) {
    .guest-settings-column { gap: 5px; padding-right: 0; }
    .guest-settings-column .studio-card { padding: 6px 7px; }
    .guest-property-summary > img { height: 58px; }
    .guest-agent-summary > img { width: 36px; height: 36px; flex-basis: 36px; }
    .guest-destination-bottom { margin-top: 5px; }
}
@media (max-width: 900px) {
    .guest-studio-page { height: auto; min-height: 100dvh; overflow: visible; }
    .guest-studio-header { position: sticky; top: 0; z-index: 10; height: auto; min-height: 58px; flex-wrap: wrap; gap: 8px; padding: 9px 12px; }
    .guest-studio-header .studio-brand { gap: 6px; font-size: 15px; }
    .guest-studio-header .studio-brand-mark { width: 30px; height: 30px; }
    .guest-studio-header .studio-title { min-width: 0; padding-left: 9px; }
    .guest-studio-header .studio-title strong { font-size: 13px; }
    .guest-studio-header .studio-title span { font-size: 9px; }
    .guest-header-state { margin-left: auto; font-size: 9px; }
    .guest-studio-header .studio-header-login { min-height: 30px; padding: 6px 9px; font-size: 9px; }
    .guest-campaign-bar { min-height: 0; padding: 10px 12px; }
    .guest-campaign-content { width: 100%; max-width: none; min-height: 0; grid-template-columns: 1fr; gap: 9px; margin: 0; padding: 0; }
    .guest-campaign-intro > strong { font-size: 14px; }
    .guest-creative-choices { width: 100%; gap: 6px; }
    .guest-creative-option { grid-template-columns: 38px minmax(0,1fr) 14px; min-height: 54px; padding: 5px; }
    .guest-creative-option > img { width: 38px; height: 40px; }
    .guest-creative-option strong { font-size: 9px; }
    .guest-creative-option small { font-size: 7px; }
    .guest-goal-picker--top { grid-template-columns: 1fr 1fr; padding: 6px; border: 1px solid #dce5f0; }
    .guest-studio-main { overflow: visible; }
    .guest-studio-grid { width: 100%; max-width: none; grid-template-columns: 1fr; height: auto; margin: 0; padding: 10px; }
    .guest-preview-panel { min-height: 0; }
    .guest-preview-stage { min-height: 0; overflow: visible; }
    .guest-facebook-card { height: auto; }
    .guest-settings-column { overflow: visible; }
    .guest-settings-column .studio-card { padding: 12px; }
    .guest-property-summary { grid-template-columns: minmax(110px, 32%) minmax(0,1fr); }
    .guest-property-summary > img { width: 100%; height: 84px; }
    .guest-save-bar { position: sticky; bottom: 0; flex-wrap: wrap; gap: 6px; padding: 8px 10px; }
    .guest-save-message { flex-basis: 100%; }
    .guest-save-bar .studio-button { flex: 1 1 auto; min-width: 100px; }
    .public-studio-status { bottom: 140px; }
}

/* Guest editor visual system: bright, confident and unmistakably Homstir. */
.guest-studio-page {
    --guest-ink: #142349;
    --guest-muted: #52617d;
    --guest-blue: #1164ef;
    --guest-heading: #142349;
    --guest-line: #cbd8ef;
    height: 100dvh;
    min-height: 720px;
    overflow: hidden;
    background: #eaf2ff;
}
.guest-studio-header {
    height: 68px;
    min-height: 68px;
    flex-basis: 68px;
    gap: 19px;
    padding-inline: max(24px, calc((100vw - 1450px) / 2));
    border-bottom: 1px solid #d7e3f5;
    background: #fff;
}
.guest-studio-header .studio-brand { gap: 10px; color: #142349; font-size: 17px; }
.guest-studio-header .studio-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: #1164ef;
    box-shadow: 0 3px 8px #1164ef2b;
    color: white;
    font-size: 20px;
}
.guest-header-divider { width: 1px; height: 34px; flex: 0 0 1px; background: #dbe4f2; }
.guest-studio-header .studio-title {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 13px;
    min-width: 220px;
}
.guest-studio-header .studio-title strong { color: #142349; font-size: 15px; }
.guest-studio-header .studio-title span { color: #71809b; font-size: 12px; }
.guest-header-state { gap: 8px; color: #52617d; font-size: 11px; }
.guest-state-dot { width: 8px; height: 8px; flex-basis: 8px; background: #28b779; box-shadow: 0 0 0 3px #e4f7ee; }
.guest-header-profile { display: flex; align-items: center; gap: 9px; padding-left: 15px; border-left: 1px solid #e2e9f3; }
.guest-header-profile img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.guest-header-profile > span { display: grid; gap: 1px; }
.guest-header-profile strong { color: #20304f; font-size: 11px; }
.guest-header-profile small { color: #71809b; font-size: 9px; }
.guest-header-profile svg { width: 15px; height: 15px; margin-left: 4px; fill: none; stroke: #71809b; stroke-width: 1.7; }
.guest-studio-header .studio-header-login { min-height: 36px; padding: 8px 15px; border-radius: 8px; font-size: 11px; }

.guest-campaign-bar { min-height: 102px; border-bottom-color: #d6e2f4; background: #fff; box-shadow: 0 3px 9px #18325308; }
.guest-campaign-content {
    width: min(100%, 1480px);
    min-height: 102px;
    grid-template-columns: minmax(185px, .7fr) minmax(500px, 1.75fr) minmax(345px, 1fr);
    gap: 22px;
    padding: 12px 24px;
}
.guest-campaign-intro { gap: 3px; }
.guest-campaign-intro > strong { color: #142349; font-size: 16px; }
.guest-studio-page .studio-eyebrow { color: #1164ef; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.guest-campaign-intro > small { color: #687895; font-size: 10px; }
.guest-creative-choices { gap: 10px; width: 100%; }
.guest-creative-option {
    grid-template-columns: 55px minmax(0, 1fr) 18px;
    gap: 10px;
    min-height: 68px;
    padding: 7px;
    border-color: #d4deef;
    border-radius: 11px;
    box-shadow: 0 2px 6px #223b6008;
}
.guest-creative-option:hover { border-color: #9bb8ee; background: #f7faff; }
.guest-creative-option.is-selected { border-color: #1164ef; background: #f1f6ff; box-shadow: inset 0 0 0 1px #1164ef; }
.guest-creative-option > img { width: 55px; height: 52px; border-radius: 8px; }
.guest-creative-option strong { color: #1b2c4e; font-size: 11px; }
.guest-creative-option small { margin-top: 4px; color: #667692; font-size: 9px; }
.guest-creative-check { width: 18px; height: 18px; border-color: #c4d1e5; }
.guest-creative-option.is-selected .guest-creative-check { background: #1164ef; }
.guest-goal-picker--top {
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    padding: 7px;
    border-color: #d1ddef;
    border-radius: 11px;
    background: #f6f9ff;
    box-shadow: none;
}
.guest-goal-picker--top > .studio-eyebrow { padding: 0 3px 2px; }
.guest-goal-choice { align-items: flex-start; gap: 8px; padding: 8px 9px; border-color: #dce5f3; border-radius: 8px; }
.guest-goal-choice.is-selected { border-color: #1164ef; background: #eaf2ff; box-shadow: inset 0 0 0 1px #1164ef; }
.guest-radio-mark { width: 15px; height: 15px; flex-basis: 15px; }
.guest-goal-choice.is-selected .guest-radio-mark { border-color: #1164ef; }
.guest-goal-choice strong { color: #1c2c4c; font-size: 10px; line-height: 1.2; }
.guest-goal-choice small { margin-top: 3px; color: #687895; font-size: 8px; line-height: 1.3; }

.guest-studio-main { flex: 1 1 auto; min-height: 0; overflow: auto; }
.guest-studio-grid {
    width: min(100%, 1480px);
    max-width: 1480px;
    height: auto;
    min-height: 100%;
    grid-template-columns: minmax(0, 1.12fr) minmax(430px, .88fr);
    align-items: start;
    gap: 18px;
    padding: 18px 24px;
}
.guest-preview-panel {
    min-height: 100%;
    padding: 17px;
    border-color: #cbd8ef;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 22px #1a355509;
}
.guest-preview-heading { align-items: center; margin-bottom: 14px; }
.guest-preview-title-block { position: relative; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; }
.guest-preview-title-block .guest-eye-icon { grid-row: 1 / 3; display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid #d8e4f5; border-radius: 11px; background: #f3f7ff; }
.guest-eye-icon svg { width: 21px; height: 21px; fill: none; stroke: #1164ef; stroke-width: 1.7; }
.guest-preview-title-block .studio-eyebrow { grid-column: 2; }
.guest-preview-title-block .studio-eyebrow { width: max-content; padding: 3px 7px; border-radius: 999px; background: #eff5ff; letter-spacing: .08em; }
.guest-preview-helper { grid-column: 2; margin: 0; color: #74829a; font-size: 10px; }
.guest-preview-heading .studio-preview-switch { flex: 0 0 auto; }
.guest-preview-heading .studio-preview-switch button { min-height: 33px; padding: 7px 15px; border-radius: 7px; font-size: 11px; }
.guest-preview-heading .studio-preview-switch button.is-active { background: #1164ef; }
.guest-preview-heading .studio-preview-switch button { display: inline-flex; align-items: center; gap: 6px; }
.guest-preview-heading .studio-preview-switch button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.guest-preview-stage {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 17px;
    border: 1px solid #d8e3f2;
    border-radius: 12px;
    background: #edf3fc;
}
.guest-facebook-card {
    width: min(100%, 520px);
    height: auto;
    min-height: 0;
    overflow: hidden;
    border: 1px solid #d5dce6;
    border-radius: 11px;
    background: white;
    box-shadow: 0 6px 20px #10274b13;
}
.guest-preview-stage.is-feed .guest-facebook-card { width: min(100%, 620px); }
.guest-facebook-card .studio-facebook-header { padding: 13px 15px 8px; }
.guest-facebook-card .guest-preview-copy {
    height: auto;
    min-height: 0;
    max-height: 74px;
    margin: 4px 0 10px;
    padding: 0 15px;
    color: #25334b;
    font-size: 12px;
    line-height: 1.45;
}
.guest-preview-copy > span { -webkit-line-clamp: 4; }
.guest-property-photo-frame { width: 100%; aspect-ratio: 4 / 5; }
.guest-preview-stage.is-feed .guest-property-photo-frame { aspect-ratio: 4 / 5; }
.guest-preview-stage[data-image-format="square"] .guest-property-photo-frame { aspect-ratio: 1 / 1; }
.guest-preview-stage[data-image-format="landscape"] .guest-property-photo-frame { aspect-ratio: 1.91 / 1; }
.guest-preview-stage .studio-property-photo { object-position: center 58%; }
.guest-agent-overlay { min-height: 66px; gap: 10px; padding: 8px 12px; }
.guest-agent-overlay .studio-agent-photo-preview { width: 44px; height: 44px; }
.guest-agent-overlay strong { font-size: 11px; }
.guest-agent-overlay small { font-size: 9px; }
.guest-facebook-card .studio-property-line { padding: 8px 13px; font-size: 10px; }
.guest-facebook-card .studio-facebook-link { padding: 10px 13px; }
.guest-preview-title strong { color: #172847; font-size: 13px; }
.guest-preview-title small { color: #6d7c92; font-size: 10px; }
.guest-facebook-card .studio-preview-cta { border-radius: 7px; background: #e9edf3; color: #25354f; font-size: 10px; }
.guest-facebook-card .studio-facebook-actions { gap: 22px; padding: 9px 14px; border-top: 1px solid #edf0f4; color: #65738a; font-size: 10px; }
.guest-facebook-card .studio-facebook-actions small { margin-left: auto; color: #98a2b1; font-size: 9px; }
.guest-preview-controls { justify-content: flex-start; gap: 12px; min-height: 50px; padding: 10px 2px 2px; }
.guest-copy-choices { gap: 7px; }
.guest-copy-choices > span { margin-right: 3px; color: #53627c; font-size: 10px; }
.guest-copy-choices button { width: 30px; height: 29px; border-color: #cbd8ef; border-radius: 8px; color: #52617d; font-size: 11px; }
.guest-copy-choices button.is-selected { border-color: #1164ef; background: #1164ef; }
.guest-control-divider { align-self: stretch; width: 1px; margin: 2px 1px; background: #dce5f2; }
.guest-edit-copy-link { color: #1164ef; font-size: 10px; }
.guest-format-picker { display: flex; align-items: center; gap: 8px; margin-left: auto; color: #566580; font-size: 10px; font-weight: 700; }
.guest-format-picker > span { flex: 0 0 auto; white-space: nowrap; }
.guest-format-picker .studio-input { min-height: 34px; min-width: 190px; padding: 6px 9px; border-color: #cbd8ef; border-radius: 8px; color: #1c2d4c; font-size: 10px; }
.guest-photo-warning { grid-template-columns: auto 1fr; margin-top: 9px; padding: 9px 11px; border-radius: 9px; background: #f6f9ff; color: #60708a; font-size: 10px; }
.guest-photo-warning strong { color: #334867; }

.guest-settings-column { gap: 12px; overflow: visible; padding: 0; scrollbar-gutter: auto; }
.guest-settings-column .studio-card {
    padding: 16px 17px;
    border: 1px solid #cbd8ef;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 22px #1a355509;
}
.guest-card-heading { margin-bottom: 11px; }
.guest-card-heading > div:first-child { gap: 11px; }
.guest-card-icon { width: 36px; height: 36px; flex-basis: 36px; border-color: #d8e5f7; border-radius: 10px; background: #f2f7ff; color: #1164ef; }
.guest-card-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.guest-card-heading .guest-section-title { color: #142349; font-size: 14px !important; }
.guest-card-heading small { color: #70809b; font-size: 10px; }
.guest-card-heading .studio-page-action { font-size: 11px; }
.guest-property-summary { grid-template-columns: 145px minmax(0, 1fr); gap: 13px; margin-top: 0; }
.guest-property-summary > img { width: 145px; height: 92px; border: 1px solid #e0e7f1; border-radius: 10px; }
.guest-property-facts { gap: 5px; }
.guest-property-facts > strong { color: #172849; font-size: 14px; }
.guest-property-facts > span { color: #64738d; font-size: 11px; }
.guest-property-meta { gap: 4px 12px; }
.guest-property-meta > b { color: #142349; font-size: 15px; }
.guest-property-meta > span { font-size: 10px; }
.guest-property-actions { gap: 9px; margin-top: 12px; }
.guest-property-actions .studio-button { min-height: 37px; padding: 8px 11px; border-radius: 8px; color: #1164ef; font-size: 10px; }
.guest-property-toggles { gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #e9eef7; }
.guest-property-toggles .studio-check-row { color: #53627b; font-size: 10px; }
.guest-upload-name { margin-top: 6px; color: #7b899e; font-size: 9px; }
.guest-property-card .studio-remove-photo { font-size: 10px; }
.guest-brand-card .guest-card-heading { margin-bottom: 10px; }
.guest-switch { gap: 2px; }
.guest-switch-track { width: 39px; height: 22px; background: #b8c4d5; }
.guest-switch-track::after { width: 18px; height: 18px; }
.guest-switch input:checked + .guest-switch-track { background: #1164ef; }
.guest-switch input:checked + .guest-switch-track::after { transform: translateX(17px); }
.guest-switch-label { margin-left: 8px; color: #566580; font-size: 10px; }
.guest-agent-summary { gap: 11px; margin-top: 11px; padding: 10px 12px; border-radius: 10px; background: #142349; }
.guest-agent-summary > img { width: 46px; height: 46px; flex-basis: 46px; }
.guest-agent-summary strong { font-size: 11px; }
.guest-agent-summary small { color: #d3def1; font-size: 9px; }
.guest-agent-summary .studio-page-action { padding: 7px 10px; border-radius: 8px; font-size: 10px; }
.guest-destination-card .guest-card-heading { margin-bottom: 12px; }
.guest-destination-row { grid-template-columns: minmax(190px, .9fr) minmax(0, 1fr); gap: 12px; }
.guest-destination-select { min-height: 38px; border-radius: 8px; font-size: 11px; }
.guest-destination-details { gap: 14px; }
.guest-destination-details a { color: #1164ef; font-size: 10px; }
.guest-destination-bottom { grid-template-columns: minmax(145px, .7fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; padding-top: 12px; }
.guest-destination-bottom > label:first-child { color: #53627d; font-size: 10px; }
.guest-destination-bottom .studio-input { min-height: 36px; border-radius: 8px; font-size: 11px; }
.guest-permission { color: #52617d; font-size: 10px; }
.guest-goal-status { margin-top: 11px; color: #77869d; font-size: 9px; }

.guest-save-bar {
    position: relative;
    z-index: 5;
    min-height: 75px;
    gap: 12px;
    padding: 11px max(24px, calc((100vw - 1450px) / 2));
    border-top: 1px solid #d2deef;
    background: #fff;
    box-shadow: 0 -5px 16px #263e6108;
}
.guest-ready-mark { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; border-radius: 50%; background: #e5f7ed; color: #15965a; font-size: 16px; font-weight: 800; }
.guest-save-message { gap: 3px; }
.guest-save-message strong { color: #173354; font-size: 12px; }
.guest-save-message span { color: #657590; font-size: 10px; }
.guest-save-bar .studio-button { min-height: 40px; padding: 9px 17px; border-radius: 8px; font-size: 11px; }
.guest-save-bar .studio-button-blue { background: #1164ef; color: white; }
.guest-save-bar .studio-button-blue:hover { background: #0755d5; }
.public-studio-status { bottom: 90px; max-width: min(480px, calc(100% - 32px)); padding: 0; border-radius: 10px; color: #233655; font-size: 12px; }
.public-studio-status:not(:empty) { padding: 13px 16px; border-color: #cbd8ef; border-radius: 10px; background: #fff; box-shadow: 0 10px 34px #1423491a; }
.guest-edit-dialog { border-color: #cbd8ef; border-radius: 16px; }
.guest-edit-dialog .studio-property-dialog-body { padding: 18px 22px; }
.guest-edit-dialog .studio-property-dialog-footer { padding: 12px 22px; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #1164ef66; outline-offset: 2px; }

@media (max-width: 1200px) and (min-width: 901px) {
    .guest-campaign-content { grid-template-columns: minmax(160px, .6fr) minmax(390px, 1.45fr) minmax(300px, 1fr); gap: 12px; padding-inline: 16px; }
    .guest-studio-grid { grid-template-columns: minmax(0, 1fr) minmax(390px, .95fr); gap: 12px; padding-inline: 16px; }
    .guest-preview-panel { padding: 12px; }
    .guest-settings-column .studio-card { padding: 12px; }
}
@media (max-width: 900px) {
    .guest-studio-page { height: auto; min-height: 100dvh; overflow: visible; }
    .guest-studio-header { position: sticky; top: 0; flex-wrap: wrap; gap: 8px 12px; padding: 9px 14px; }
    .guest-studio-header .studio-brand { flex: 0 0 auto; }
    .guest-header-divider { height: 26px; }
    .guest-studio-header .studio-title { flex: 1 1 180px; min-width: 0; gap: 6px; flex-direction: column; align-items: flex-start; }
    .guest-studio-header .studio-title span { font-size: 9px; }
    .guest-header-state { display: none; }
    .guest-header-profile { display: none; }
    .guest-studio-header .studio-header-login { margin-left: auto; }
    .guest-campaign-bar { padding: 13px 14px; }
    .guest-campaign-content { grid-template-columns: 1fr; gap: 12px; padding: 0; }
    .guest-creative-choices { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .guest-creative-option { grid-template-columns: 43px minmax(0,1fr) 16px; min-height: 57px; gap: 7px; }
    .guest-creative-option > img { width: 43px; height: 43px; }
    .guest-goal-picker--top { grid-template-columns: 1fr 1fr; }
    .guest-studio-main { overflow: visible; }
    .guest-studio-grid { grid-template-columns: 1fr; gap: 13px; padding: 13px; }
    .guest-preview-panel { min-height: 0; padding: 13px; }
    .guest-preview-stage { min-height: 0; overflow: visible; }
    .guest-facebook-card, .guest-preview-stage.is-feed .guest-facebook-card { width: min(100%, 530px); }
    .guest-settings-column { overflow: visible; }
    .guest-settings-column .studio-card { padding: 15px; }
    .guest-save-bar { position: sticky; bottom: 0; flex-wrap: wrap; padding: 10px 13px; }
    .guest-save-message { flex: 1 1 calc(100% - 48px); }
    .guest-save-bar .studio-button { flex: 1 1 130px; }
    .public-studio-status { bottom: 115px; }
}
@media (max-width: 580px) {
    .guest-campaign-content { gap: 10px; }
    .guest-creative-choices { grid-template-columns: 1fr; }
    .guest-creative-option { grid-template-columns: 54px minmax(0,1fr) 18px; }
    .guest-creative-option > img { width: 54px; height: 46px; }
    .guest-goal-picker--top { grid-template-columns: 1fr; }
    .guest-preview-heading { align-items: flex-start; }
    .guest-preview-title-block { grid-template-columns: 34px 1fr; column-gap: 8px; }
    .guest-preview-title-block .guest-eye-icon { width: 34px; height: 34px; }
    .guest-preview-heading > .guest-preview-title-block > strong { font-size: 13px; }
    .guest-preview-heading .studio-preview-switch button { padding-inline: 10px; }
    .guest-preview-stage { padding: 7px; }
    .guest-preview-controls { flex-wrap: wrap; gap: 8px; }
    .guest-copy-choices { flex: 1 1 100%; }
    .guest-control-divider { display: none; }
    .guest-edit-copy-link { margin-left: auto; }
    .guest-format-picker { flex: 1 1 100%; justify-content: space-between; margin: 0; }
    .guest-format-picker .studio-input { flex: 0 1 65%; min-width: 0; }
    .guest-photo-warning { grid-template-columns: 1fr; }
    .guest-property-summary { grid-template-columns: 112px minmax(0,1fr); gap: 10px; }
    .guest-property-summary > img { width: 112px; height: 82px; }
    .guest-property-actions { grid-template-columns: 1fr 1fr; }
    .guest-agent-summary { flex-wrap: wrap; }
    .guest-agent-summary .studio-page-action { margin-left: auto; }
    .guest-destination-row { grid-template-columns: 1fr; }
    .guest-destination-bottom { grid-template-columns: 1fr; }
    .guest-save-bar { gap: 7px; }
    .guest-save-bar .studio-button { min-width: 0; padding: 8px 9px; font-size: 10px; }
}
@media (max-width: 520px) {
    .guest-header-state { max-width: 116px; overflow: hidden; text-overflow: ellipsis; }
    .guest-campaign-content { gap: 8px; }
    .guest-creative-choices { grid-template-columns: 1fr; }
    .guest-creative-option { grid-template-columns: 44px minmax(0,1fr) 16px; min-height: 49px; }
    .guest-creative-option > img { width: 44px; height: 39px; }
    .guest-goal-choice strong { font-size: 8px; }
    .guest-goal-choice small { font-size: 7px; }
    .guest-preview-panel { min-height: 0; padding: 8px; }
    .guest-preview-heading { align-items: flex-start; }
    .guest-preview-heading > div:first-child > strong { font-size: 11px; }
    .guest-preview-stage { min-height: 0; padding: 6px; }
    .guest-facebook-card { width: 100%; }
    .guest-preview-stage.is-feed .guest-facebook-card { width: 100%; }
    .guest-facebook-card .studio-facebook-header { padding: 8px 9px 4px; }
    .guest-facebook-card .studio-preview-copy { margin: 3px 9px 7px; font-size: 10px; }
    .guest-property-photo-frame { min-height: 0; max-height: none; aspect-ratio: 1 / 1; }
    .guest-preview-controls { flex-wrap: wrap; justify-content: flex-start; }
    .guest-copy-choices { flex: 1 1 100%; }
    .guest-edit-copy-link { margin-left: auto; }
    .guest-photo-warning { grid-template-columns: 1fr; }
    .guest-property-actions { grid-template-columns: 1fr 1fr; }
    .guest-destination-bottom { grid-template-columns: 1fr; }
    .guest-save-message span { font-size: 8px; }
    .guest-save-bar { gap: 5px; }
    .guest-save-bar .studio-button { min-width: 0; padding: 7px 6px; font-size: 9px; white-space: normal; }
}

/* The signed-in editor shares this exact workspace layout; only its account
   status and private campaign controls differ. */
.member-studio-page .studio-progress-header {
    flex-direction: row;
    align-items: center;
    min-height: 62px;
    padding: 7px 22px;
}
.member-studio-page .studio-progress-header-main {
    width: 100%;
    min-height: 44px;
}
.member-studio-page .studio-progress-row { display: none; }
.member-studio-page .studio-connection-state { white-space: nowrap; }
.member-studio-page .guest-preview-panel,
.member-studio-page .guest-settings-column {
    min-height: 0;
}
.member-studio-page .guest-settings-column {
    align-content: start;
    overflow: visible;
    padding-right: 0;
    scrollbar-gutter: auto;
}
.member-studio-page .campaign-settings-dialog {
    width: min(940px, calc(100vw - 28px));
    max-height: min(90dvh, 900px);
}
.member-studio-page .campaign-settings-dialog .studio-property-dialog-body {
    display: grid;
    gap: 12px;
    max-height: min(70dvh, 680px);
    overflow: auto;
}
.member-studio-page .campaign-settings-dialog .studio-account-settings {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.member-studio-page .campaign-settings-dialog .studio-location-fields,
.member-studio-page .campaign-settings-dialog .studio-budget-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.member-studio-page .campaign-settings-dialog .studio-input {
    min-width: 0;
}
.member-studio-page .agent-branding-fields .studio-input[readonly] {
    background: #f7f9fc;
    color: #52647b;
    cursor: default;
}
.member-studio-page .agent-branding-fields > a {
    margin-top: 3px;
    color: #2865d6;
    font-size: 10px;
    font-weight: 700;
}
.member-studio-page .guest-destination-details button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #2865d6;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}
.member-studio-page .guest-destination-details button:hover { text-decoration: underline; }
.member-studio-page [data-agent-profile] {
    margin-top: 7px;
    color: #9a3412;
    font-size: 10px;
}
.member-studio-page [data-agent-profile] p { margin: 0 0 3px; }
.member-studio-page .campaign-compact-card .guest-card-heading { margin-bottom: 8px; }
.member-studio-page .campaign-compact-grid {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 10px;
}
.member-studio-page .campaign-compact-section {
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid #e3eaf3;
    border-radius: 9px;
    background: #fbfdff;
}
.member-studio-page .campaign-compact-title {
    display: block;
    margin-bottom: 7px;
    color: #17469e;
    font-size: 10px;
    font-weight: 750;
}
.member-studio-page .campaign-location-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 84px;
    align-items: start;
    gap: 7px;
}
.member-studio-page .campaign-budget-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 8px;
}
.member-studio-page .campaign-compact-card .studio-label {
    display: block;
    margin: 0 0 3px;
    color: #465a74;
    font-size: 9px;
    line-height: 1.25;
}
.member-studio-page .campaign-compact-card .studio-input {
    min-width: 0;
    min-height: 31px;
    padding: 5px 7px;
    font-size: 10px;
}
.member-studio-page .campaign-compact-card small {
    display: block;
    margin-top: 2px;
    color: #77869a;
    font-size: 8px;
    line-height: 1.25;
}
.member-studio-page .campaign-compact-card .studio-selected-locations { margin-top: 3px; }
.member-studio-page .campaign-location-fields > div,
.member-studio-page .campaign-budget-fields > div { min-width: 0; }
.member-studio-page .campaign-budget-fields > div:nth-child(3),
.member-studio-page .campaign-budget-fields > div:nth-child(4) {
    padding-top: 6px;
    border-top: 1px solid #e9eef5;
}
.member-studio-page .campaign-meta-warning {
    padding: 8px 10px;
    border: 1px solid #f0d39a;
    border-radius: 8px;
    background: #fff7e5;
    color: #72501a;
    font-size: 10px;
}
.member-studio-page .campaign-meta-warning a { color: #174fba; font-weight: 700; }
.member-studio-page .meta-assets-hidden { display: none !important; }

@media (max-width: 900px) {
    .user-app-shell:has(.member-studio-page) {
        height: auto;
        min-height: 100dvh;
        overflow: visible;
    }
    .user-app-shell:has(.member-studio-page) > .user-main { min-height: 100dvh; }
    .user-app-shell:has(.member-studio-page) .user-content {
        height: auto;
        min-height: 100dvh;
        overflow: visible;
    }
    .member-studio-page .studio-progress-header { position: sticky; top: 0; z-index: 15; }
    .member-studio-page .studio-progress-header-main { flex-wrap: wrap; }
    .member-studio-page .studio-connection-state { margin-left: auto; }
    .member-studio-page .campaign-settings-dialog .studio-account-settings,
    .member-studio-page .campaign-settings-dialog .studio-location-fields,
    .member-studio-page .campaign-settings-dialog .studio-budget-fields { grid-template-columns: 1fr; }
    .member-studio-page .campaign-compact-grid { grid-template-columns: 1fr; }
}

@media (min-width: 901px) and (max-width: 1200px) {
    .member-studio-page .campaign-compact-grid { grid-template-columns: 1fr; }
}

@media (min-width: 901px) and (max-height: 649px) {
    .user-app-shell:has(.member-studio-page) {
        height: auto;
        min-height: 100dvh;
        overflow: visible;
    }
    .user-app-shell:has(.member-studio-page) .user-content {
        height: auto;
        min-height: 100dvh;
        overflow: visible;
    }
    .member-studio-page { height: auto; min-height: 100dvh; overflow: visible; }
    .member-studio-page .guest-studio-main { overflow: visible; }
    .member-studio-page .guest-studio-grid { height: auto; }
    .member-studio-page .guest-settings-column { overflow: visible; }
    .member-studio-page .guest-save-bar { position: sticky; bottom: 0; z-index: 10; }
}

@media (max-width: 580px) {
    .guest-studio-header { gap: 7px; padding-inline: 10px; }
    .guest-studio-header .studio-brand { gap: 6px; font-size: 14px; }
    .guest-studio-header .studio-brand-mark { width: 29px; height: 29px; }
    .guest-header-divider { display: none; }
    .guest-studio-header .studio-title { flex-basis: 125px; }
    .guest-studio-header .studio-title strong { font-size: 12px; }
    .guest-studio-header .studio-title span { max-width: 160px; font-size: 8px; }
    .guest-studio-header .studio-header-login { min-height: 29px; padding: 6px 9px; }
    .guest-preview-controls { flex-wrap: wrap; justify-content: flex-start; }
    .guest-copy-choices { flex: 1 1 100%; }
    .guest-format-picker { flex: 1 1 100%; justify-content: space-between; margin: 0; }
    .guest-format-picker .studio-input { flex: 0 1 65%; min-width: 0; }
    .guest-preview-stage { min-height: 0; padding: 7px; }
    .guest-facebook-card, .guest-preview-stage.is-feed .guest-facebook-card { width: 100%; }
    .guest-property-photo-frame { aspect-ratio: 4 / 5; }
    .guest-property-actions { grid-template-columns: 1fr 1fr; }
    .guest-destination-bottom { grid-template-columns: 1fr; }
    .guest-save-message span { font-size: 9px; }
}

/* Icon and preview details used by the reference-matched guest editor. */
.guest-creative-icon {
    display: grid;
    width: 55px;
    height: 52px;
    place-items: center;
    border: 1px solid #dce7f7;
    border-radius: 8px;
    background: #f2f7ff;
    color: #1164ef;
}
.guest-creative-icon svg,
.guest-card-icon svg,
.guest-agent-summary-brand svg,
.guest-agent-overlay-brand svg,
.guest-property-actions svg,
.guest-destination-details svg,
.guest-facebook-actions svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.guest-creative-icon svg { width: 24px; height: 24px; }
.guest-creative-option.is-selected .guest-creative-icon { border-color: #d2e1fb; background: #e7f0ff; }
.guest-studio-page .guest-header-state > span:last-child { color: #52617d; }
.guest-header-profile { gap: 8px; }
.guest-header-profile svg { margin-left: 0; }
.guest-facebook-card .studio-page-avatar svg { width: 17px; height: 17px; fill: #fff; }
.guest-facebook-card .studio-facebook-header > div small { display: flex; align-items: center; gap: 4px; }
.guest-facebook-card .studio-facebook-header > div small svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.guest-facebook-card .studio-facebook-actions > span { display: inline-flex; align-items: center; gap: 5px; }
.guest-facebook-card .studio-facebook-actions svg { width: 14px; height: 14px; }
.guest-agent-overlay-brand {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    margin-left: auto;
    padding-left: 12px;
    border-left: 1px solid #ffffff65;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
}
.guest-agent-overlay-brand svg { width: 17px; height: 17px; flex: 0 0 17px; }
.guest-property-meta-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; }
.guest-property-meta-facts > span { display: inline-flex; align-items: center; gap: 4px; color: #52617d; }
.guest-property-meta-facts svg { width: 13px; height: 13px; flex: 0 0 13px; fill: none; stroke: #60738f; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.guest-property-actions .studio-button svg,
.guest-property-actions .guest-upload-button svg,
.guest-destination-details svg { width: 14px; height: 14px; flex: 0 0 14px; }
.guest-property-actions .guest-upload-button > span { display: inline-flex; align-items: center; gap: 6px; }
.guest-destination-details a { display: inline-flex; align-items: center; gap: 4px; }
.guest-agent-summary > .guest-agent-summary-brand {
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    padding-left: 12px;
    border-left: 1px solid #ffffff65;
    color: #fff;
    white-space: nowrap;
}
.guest-agent-summary-brand svg { width: 17px; height: 17px; flex: 0 0 17px; }
.guest-optional-pill { padding: 4px 8px; border: 1px solid #e0e8f5; border-radius: 999px; background: #f6f9ff; color: #64748b; font-size: 9px; font-weight: 700; }
.guest-property-toggles .studio-check-row small { color: #71809a; font-size: 9px; font-weight: 400; }
.guest-save-bar .guest-ready-mark { width: 31px; height: 31px; flex: 0 0 31px; }
.guest-save-bar .guest-save-message { flex: 1 1 auto; }
.guest-save-bar .studio-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Override the shared signed-in editor's compact preview sizing for this guest page. */
.ad-studio-page.guest-studio-page .guest-preview-stage .guest-facebook-card {
    width: min(100%, 520px);
    height: auto;
    min-height: 0;
}
.ad-studio-page.guest-studio-page .guest-preview-stage.is-feed .guest-facebook-card {
    width: min(100%, 620px);
}
.ad-studio-page.guest-studio-page .guest-preview-stage .guest-property-photo-frame {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 4 / 5;
}
.ad-studio-page.guest-studio-page .guest-preview-stage[data-image-format="square"] .guest-property-photo-frame {
    height: auto;
    aspect-ratio: 1 / 1;
}
.ad-studio-page.guest-studio-page .guest-preview-stage[data-image-format="landscape"] .guest-property-photo-frame {
    height: auto;
    aspect-ratio: 1.91 / 1;
}
.ad-studio-page.guest-studio-page .guest-preview-stage .studio-property-photo {
    object-fit: cover;
    object-position: center center;
    transform: scale(1.28);
    transform-origin: center bottom;
}
.ad-studio-page.guest-studio-page .guest-preview-stage[data-image-format="square"] .studio-property-photo,
.ad-studio-page.guest-studio-page .guest-preview-stage[data-image-format="landscape"] .studio-property-photo {
    transform: none;
}
.ad-studio-page.guest-studio-page .guest-preview-stage .studio-agent-overlay { background: linear-gradient(90deg, #0b1b35f2, #142349dc); }
.ad-studio-page.guest-studio-page .guest-facebook-card .studio-preview-cta { background: #1164ef; color: #fff; }
.ad-studio-page.guest-studio-page .guest-preview-controls { flex-wrap: nowrap; }

@media (max-width: 900px) {
    .guest-creative-icon { width: 43px; height: 43px; }
    .guest-agent-overlay-brand { display: none; }
    .guest-preview-controls { flex-wrap: wrap; }
    .guest-save-bar { position: static; }
}
@media (max-width: 580px) {
    .guest-creative-icon { width: 54px; height: 46px; }
    .guest-preview-controls { flex-wrap: wrap; }
    .guest-format-picker { flex: 1 1 100%; }
    .guest-agent-overlay-brand { display: none; }
    .guest-agent-summary-brand { display: none !important; }
}

/* Keep the desktop editor entirely within the viewport, with no page or
   nested-panel scrolling. Mobile retains natural vertical page flow. */
@media (min-width: 901px) {
    html:has(.guest-studio-page),
    body:has(.guest-studio-page) {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    .guest-studio-page {
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }
    .guest-studio-main {
        flex: 1 1 0;
        min-height: 0;
        overflow: hidden;
    }
    .guest-studio-grid {
        height: 100%;
        min-height: 0;
        align-items: stretch;
        padding-block: 12px;
    }
    .guest-preview-panel {
        min-height: 0;
        overflow: hidden;
    }
    .guest-preview-stage {
        min-height: 0;
        overflow: hidden;
    }
    .guest-settings-column {
        min-height: 0;
        overflow: hidden;
    }
    .guest-facebook-card {
        transform: scale(.72);
        transform-origin: top center;
    }

    .member-studio-page .studio-progress-header {
        position: relative;
        height: 68px;
        min-height: 68px;
        flex: 0 0 68px;
        padding: 0 max(24px, calc((100vw - 1450px) / 2));
        border-bottom: 1px solid #d7e3f5;
        background: #fff;
        box-shadow: none;
    }
    .member-studio-page .studio-progress-header-main {
        width: 100%;
        min-height: 0;
        gap: 19px;
    }
    .member-studio-page .studio-title {
        display: flex;
        align-items: center;
        gap: 13px;
        min-width: 220px;
        padding-left: 16px;
        border-left: 1px solid #dbe4f2;
    }
    .member-studio-page .studio-title strong { color: #142349; font-size: 15px; }
    .member-studio-page .studio-title span { color: #71809b; font-size: 12px; }
    .member-studio-page .studio-drafts-link {
        min-height: 36px;
        padding: 9px 11px;
        border: 1px solid #dce5f3;
        border-radius: 8px;
        color: #52617d;
        font-size: 10px;
    }
    .member-studio-page .studio-connection-state {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
        padding: 0;
        border: 0;
        background: transparent;
        color: #52617d;
        font-size: 11px;
    }
    .member-studio-page .studio-connection-dot { background: #28b779; }
    .member-studio-page .studio-connection-action {
        padding: 7px 10px;
        border: 1px solid #dce5f3;
        border-radius: 8px;
        color: #1164ef;
        font-size: 10px;
        text-decoration: none;
    }
    .member-studio-page .studio-connection-action:hover { background: #f1f6ff; }
    .member-studio-page .studio-footer-actions { display: flex; gap: 9px; }
    .member-studio-page .guest-save-bar .studio-button { min-width: 130px; }
    .member-studio-page .guest-save-bar .studio-button-blue { background: #1164ef; }
}

@media (min-width: 901px) and (max-height: 820px) {
    .guest-studio-page .guest-facebook-card {
        transform: scale(.68);
    }
}

/* Campaign settings are a compact anchored utility panel, not a blocking modal. */
.member-studio-page .campaign-settings-dialog[open] {
    position: fixed;
    inset: auto 20px 20px auto;
    width: min(440px, calc(100vw - 32px));
    max-width: none;
    max-height: min(76dvh, 720px);
    margin: 0;
    border-color: #cbd8ef;
    border-radius: 14px;
    box-shadow: 0 18px 55px rgba(20, 36, 65, .22);
}
.member-studio-page .campaign-settings-dialog[open]::backdrop {
    background: rgba(20, 36, 65, .12);
    backdrop-filter: none;
}
.member-studio-page .campaign-settings-dialog .studio-property-dialog-header { padding: 14px 17px 11px; }
.member-studio-page .campaign-settings-dialog .studio-property-dialog-header h2 { font-size: 17px; }
.member-studio-page .campaign-settings-dialog .studio-property-dialog-header p { font-size: 10px; }
.member-studio-page .campaign-settings-dialog .studio-property-dialog-body {
    max-height: min(58dvh, 540px);
    padding: 11px 17px;
}
.member-studio-page .campaign-settings-dialog .studio-property-dialog-footer { padding: 9px 17px; }
.member-studio-page,
.member-studio-page button,
.member-studio-page input,
.member-studio-page select,
.member-studio-page textarea {
    font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}
.member-studio-page .studio-creative-option.is-selected,
.member-studio-page .studio-goal-option.is-selected,
.member-studio-page .guest-creative-option.is-selected,
.member-studio-page .guest-goal-choice.is-selected {
    border-color: #1164ef;
}
.member-studio-page .studio-input:focus,
.member-studio-page .guest-destination-select:focus,
.member-studio-page .guest-format-picker select:focus {
    border-color: #1164ef;
    box-shadow: 0 0 0 3px rgba(17, 100, 239, .14);
}

/* Keep selected creative framing consistent across the two supported ad ratios. */
.guest-studio-page .guest-property-photo-frame { aspect-ratio: 4 / 5; max-height: none; }
.guest-studio-page .guest-preview-stage[data-image-format="feed_vertical"] .guest-property-photo-frame { aspect-ratio: 4 / 5; }
.guest-studio-page .guest-preview-stage[data-image-format="landscape"] .guest-property-photo-frame { aspect-ratio: 1.91 / 1; }
.guest-studio-page .guest-preview-stage[data-image-format="square"] .guest-property-photo-frame { aspect-ratio: 1 / 1; }

/* Preserve the property facade in both feed crops; avoid the previous heavy zoom. */
.ad-studio-page.guest-studio-page .guest-preview-stage .studio-property-photo {
    object-fit: cover;
    object-position: center 58%;
    transform: none;
}
.ad-studio-page.guest-studio-page .guest-preview-stage[data-image-format="landscape"] .studio-property-photo {
    object-position: center 60%;
}

/* Replace template fallback art only. User-uploaded/imported photos remain untouched. */
.guest-studio-page[data-template-photo="1"]:has([data-guest-creative="open_house"].is-selected) .guest-property-photo-frame:not(:has(.studio-property-photo[src^="blob:"])) {
    background: url("../img/homepage/homstir-open-house-front-porch-v2.jpg") center 55% / cover no-repeat;
}
.guest-studio-page[data-template-photo="1"]:has([data-guest-creative="home_value"].is-selected) .guest-property-photo-frame:not(:has(.studio-property-photo[src^="blob:"])) {
    background: url("../img/homepage/homstir-shoal-creek-heatmap-v1.jpg") center / cover no-repeat;
}
.member-studio-page[data-template-photo="1"]:has([data-select-creative="open_house"].is-selected) .guest-property-photo-frame:not(:has(.studio-property-photo[src^="blob:"])) {
    background: url("../img/homepage/homstir-open-house-front-porch-v2.jpg") center 55% / cover no-repeat;
}
.member-studio-page[data-template-photo="1"]:has([data-select-creative="home_value"].is-selected) .guest-property-photo-frame:not(:has(.studio-property-photo[src^="blob:"])) {
    background: url("../img/homepage/homstir-shoal-creek-heatmap-v1.jpg") center / cover no-repeat;
}
.guest-studio-page[data-template-photo="1"]:has([data-guest-creative="open_house"].is-selected) .guest-property-photo-frame:not(:has(.studio-property-photo[src^="blob:"])) .studio-property-photo,
.guest-studio-page[data-template-photo="1"]:has([data-guest-creative="home_value"].is-selected) .guest-property-photo-frame:not(:has(.studio-property-photo[src^="blob:"])) .studio-property-photo,
.member-studio-page[data-template-photo="1"]:has([data-select-creative="open_house"].is-selected) .guest-property-photo-frame:not(:has(.studio-property-photo[src^="blob:"])) .studio-property-photo,
.member-studio-page[data-template-photo="1"]:has([data-select-creative="home_value"].is-selected) .guest-property-photo-frame:not(:has(.studio-property-photo[src^="blob:"])) .studio-property-photo {
    opacity: 0;
}

@media (max-width: 640px) {
    .member-studio-page .campaign-settings-dialog[open] {
        inset: auto 10px 10px 10px;
        width: auto;
        max-height: min(82dvh, 720px);
    }
}

/* Neighborhood Fame uses the same compact campaign chooser and token palette. */
.guest-creative-choices { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.member-studio-page .guest-creative-option { min-width: 0; }
.member-studio-page .guest-creative-option small { line-height: 1.25; }
.member-studio-page .guest-goal-choice:disabled {
    cursor: not-allowed;
    opacity: .58;
}
.neighborhood-pin-target {
    display: grid;
    gap: 6px;
    min-width: 0;
}
.neighborhood-search-results {
    display: grid;
    gap: 3px;
    max-height: 112px;
    overflow: auto;
}
.neighborhood-search-results:empty { display: none; }
.neighborhood-search-results button {
    padding: 7px 9px;
    border: 1px solid #d5e0f1;
    border-radius: 8px;
    background: #fff;
    color: #142349;
    text-align: left;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
}
.neighborhood-search-results button:hover,
.neighborhood-search-results button:focus-visible {
    border-color: #1164ef;
    background: #f4f8ff;
}
.neighborhood-pin-status,
.neighborhood-map-attribution,
.neighborhood-no-zip {
    display: block;
    color: #52617d;
    font-size: 9px;
    line-height: 1.35;
}
.neighborhood-no-zip {
    color: #334563;
    font-weight: 700;
}
.neighborhood-map {
    position: relative;
    height: 218px;
    overflow: hidden;
    border: 1px solid #cbd8ef;
    border-radius: 12px;
    background: #eaf2ff;
    cursor: crosshair;
    touch-action: none;
    isolation: isolate;
}
.neighborhood-map-tiles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.neighborhood-map-tiles img {
    position: absolute;
    width: 256px;
    height: 256px;
    max-width: none;
    user-select: none;
    pointer-events: none;
}
.neighborhood-map-radius {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    max-width: 95%;
    max-height: 95%;
    border: 2px solid rgba(17, 100, 239, .82);
    border-radius: 50%;
    background: rgba(17, 100, 239, .14);
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.neighborhood-map-pin {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 35px;
    color: #1164ef;
    filter: drop-shadow(0 2px 3px rgba(20, 35, 73, .35));
    transform: translate(-50%, -100%);
    pointer-events: none;
}
.neighborhood-map-pin svg { display: block; width: 100%; height: 100%; fill: #1164ef; stroke: #fff; stroke-width: 1.4; }
.neighborhood-map-pin svg circle { fill: #fff; stroke: none; }
.neighborhood-map-tools {
    position: absolute;
    z-index: 4;
    top: 8px;
    right: 8px;
    display: grid;
    overflow: hidden;
    border: 1px solid #cbd8ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 9px rgba(20, 35, 73, .16);
}
.neighborhood-map-tools button {
    width: 32px;
    height: 30px;
    border: 0;
    background: #fff;
    color: #142349;
    font: 700 18px/1 "DM Sans", sans-serif;
    cursor: pointer;
}
.neighborhood-map-tools button + button { border-top: 1px solid #e3eaf5; }
.neighborhood-map-tools button:hover { background: #f1f6ff; color: #1164ef; }
.campaign-location-fields [data-city-radius-field],
.campaign-location-fields [data-neighborhood-radius-field] { min-width: 0; }
.member-studio-page .neighborhood-map:focus-visible {
    outline: 3px solid rgba(17, 100, 239, .28);
    outline-offset: 2px;
}

@media (max-width: 1000px) {
    .guest-creative-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .guest-creative-choices { grid-template-columns: 1fr; }
    .neighborhood-map { height: 190px; }
}

@media (min-width: 901px) and (max-width: 1200px) {
    .guest-creative-option {
        position: relative;
        grid-template-columns: 25px minmax(0, 1fr);
        gap: 6px;
        min-height: 60px;
        padding: 6px 22px 6px 6px;
    }

    .guest-creative-option > .guest-creative-icon {
        width: 25px;
        height: 25px;
        flex-basis: 25px;
    }

    .guest-creative-option > .guest-creative-icon svg {
        width: 15px;
        height: 15px;
    }

    .guest-creative-option > span:nth-child(2) {
        min-width: 0;
    }

    .guest-creative-option strong {
        font-size: 9px;
        line-height: 1.15;
        word-break: normal;
        overflow-wrap: normal;
    }

    .guest-creative-option small {
        display: none;
    }

    .guest-creative-check {
        position: absolute;
        top: 5px;
        right: 5px;
        width: 14px;
        height: 14px;
    }
}

/* Keep the preview at one reliable 1:1 format and show more of the source photo. */
.ad-studio-page .guest-property-photo-frame {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    flex: 0 0 auto !important;
    max-height: none !important;
    background: #eaf2ff;
}

.ad-studio-page.guest-studio-page .guest-preview-stage .studio-property-photo {
    object-fit: contain !important;
    object-position: center !important;
    transform: scale(.92) !important;
    transform-origin: center center !important;
    background: #eaf2ff;
}

@media (min-width: 901px) {
    .ad-studio-page.guest-studio-page .guest-preview-stage .guest-facebook-card,
    .ad-studio-page.guest-studio-page .guest-preview-stage.is-feed .guest-facebook-card {
        width: min(100%, 420px, max(220px, calc(100dvh - 680px))) !important;
        transform: none !important;
    }
}

/* On shorter desktop windows, let all editor sections flow instead of clipping. */
@media (min-width: 901px) and (max-height: 950px) {
    html:has(.guest-studio-page),
    body:has(.guest-studio-page) {
        height: auto;
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .guest-studio-page {
        height: auto;
        min-height: 100dvh;
        overflow: visible;
    }

    .guest-studio-main {
        flex: 0 0 auto;
        min-height: 0;
        overflow: visible;
    }

    .guest-studio-grid {
        height: auto;
        min-height: 0;
        align-items: start;
        padding-bottom: 24px;
    }

    .guest-preview-panel,
    .guest-preview-stage,
    .guest-settings-column {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .guest-preview-stage {
        flex: 0 0 auto;
    }

    .guest-studio-page .guest-save-bar {
        position: relative;
        flex: 0 0 auto;
    }
}

@media (min-width: 901px) and (max-height: 649px) {
    .member-studio-page .guest-studio-main {
        padding-bottom: 68px;
    }

    .member-studio-page .guest-save-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 40;
        box-shadow: 0 -8px 24px rgb(26 44 76 / 10%);
    }
}
