/* Account pages: sign in, dashboard, upload, buy. Uses the site colors from styles.css. */
.acct-main { padding: clamp(28px, 5vw, 56px) 0 80px; }
.acct-wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }
.acct-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.acct-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.acct-head .who { color: var(--muted); font-size: .9375rem; margin: 6px 0 0; }
.hdr-links { display: flex; align-items: center; gap: 18px; }
.hdr-links a:not(.btn), .linkbtn { color: var(--text); font: inherit; font-weight: 500; font-size: .9375rem; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.hdr-links a:not(.btn):hover, .linkbtn:hover { color: var(--primary); text-decoration: underline; }
.box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); margin-bottom: 20px; }
.box h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin-bottom: 14px; }
.box h3 { margin-bottom: 8px; }
.muted { color: var(--muted); }
.balance { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--primary); color: var(--on-primary); border-radius: var(--radius); padding: 26px clamp(20px, 3vw, 32px); margin-bottom: 20px; }
.balance .num { font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 4rem); line-height: 1; }
.balance .lbl { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dark-accent); margin-bottom: 6px; }
.balance .btn { background: #FFFFFF; border-color: #FFFFFF; color: var(--primary); }
.balance .btn:hover { background: var(--surface-2); border-color: var(--surface-2); }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: .9375rem; }
.input, .select { font: inherit; color: var(--text); background: #FFFFFF; border: 1px solid var(--border); border-radius: 12px; padding: 0 16px; min-height: 50px; width: 100%; }
.input:focus, .select:focus { outline: 3px solid var(--primary); outline-offset: 2px; }
.msg { min-height: 1.3em; font-size: .9375rem; margin: 10px 0 0; }
.msg.ok { color: #1E6B35; } .msg.err { color: #A12727; }
.pill { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.pill.good { background: #DDEFE1; color: #1E6B35; } .pill.work { background: #E3EBF7; color: var(--primary); } .pill.bad { background: #F6DCDC; color: #A12727; }
.orders { display: grid; gap: 12px; }
.order { border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; background: #FFFFFF; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.order .t { font-weight: 700; } .order .s { color: var(--muted); font-size: .875rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 16px; }
.tile { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #FFFFFF; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-2); }
.tile .bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; font-size: .8125rem; }
.tile a { font-weight: 700; }
/* Credit log */
.log { border: 1px solid var(--border); border-radius: 12px; background: #FFFFFF; overflow: hidden; }
.log-head, .log-line, .log-group > summary { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 14px 18px; }
.log-head { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.log-line, .log-group { border-top: 1px solid var(--border); }
.log-group > summary { cursor: pointer; list-style: none; }
.log-group > summary::-webkit-details-marker { display: none; }
.log-group .sub { padding-left: 18px; background: var(--surface); }
.log .what b { display: block; font-weight: 700; }
.log .what span { color: var(--muted); font-size: .8125rem; }
.amt { font-weight: 700; text-align: right; min-width: 64px; font-variant-numeric: tabular-nums; }
.amt.minus { color: #A12727; } .amt.plus { color: #1E6B35; }
.bal { color: var(--muted); text-align: right; min-width: 56px; font-size: .875rem; font-variant-numeric: tabular-nums; }
/* Upload */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { border: 2px solid var(--border); border-radius: 12px; padding: 16px 18px; background: #FFFFFF; cursor: pointer; display: block; }
.choice input { position: absolute; opacity: 0; }
.choice:has(input:checked) { border-color: var(--primary); background: #EEF3FA; }
.choice:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }
.choice.off { opacity: .55; cursor: not-allowed; }
.choice b { display: block; } .choice span { color: var(--muted); font-size: .9rem; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid var(--border); }
.switch-row:first-of-type { border-top: 0; }
.switch-row .txt b { display: block; } .switch-row .txt span { color: var(--muted); font-size: .9rem; }
.switch { flex: none; width: 56px; height: 32px; border-radius: 999px; border: 0; background: #B9B6AE; position: relative; cursor: pointer; transition: background .15s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #FFFFFF; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch[aria-checked="true"] { background: var(--primary); }
.switch[aria-checked="true"]::after { transform: translateX(24px); }
.drop { display: block; border: 2px dashed var(--border); border-radius: 12px; background: #FFFFFF; padding: 30px 20px; text-align: center; cursor: pointer; }
.drop.over { border-color: var(--primary); background: #EEF3FA; }
.drop b { display: block; font-size: 1.0625rem; margin-bottom: 4px; }
.files { margin-top: 14px; display: grid; gap: 6px; max-height: 260px; overflow: auto; font-size: .9rem; }
.file { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: #FFFFFF; }
.file .bar { flex: none; width: 90px; height: 8px; border-radius: 99px; background: var(--surface-2); align-self: center; overflow: hidden; }
.file .bar i { display: block; height: 100%; width: 0; background: var(--primary); }
.sum { background: #EEF3FA; border: 1px solid #C9D7EC; border-radius: 12px; padding: 18px 20px; }
.sum dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; }
.sum dt { color: var(--text); } .sum dd { margin: 0; font-weight: 700; text-align: right; }
.sum dt.tot, .sum dd.tot { border-top: 1px solid #C9D7EC; padding-top: 8px; margin-top: 4px; font-size: 1.0625rem; }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pack { border: 1px solid var(--border); border-radius: var(--radius); background: #FFFFFF; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.pack .n { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; }
.pack .btn { margin-top: 10px; }
@media (max-width: 760px) { .choices, .packs { grid-template-columns: 1fr; } .log-head, .log-line, .log-group > summary { grid-template-columns: 1fr auto; } .log .bal { display: none; } }

/* Download billing: previews, bill, and the buy more credits popup */
.need { background: #E3EBF7; color: var(--primary); border: 1px solid #C5D3EA; border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; font-size: .9375rem; }
.pack { position: relative; }
.pack.fit { border: 2px solid var(--primary); }
.pack .fit-tag { position: absolute; top: -12px; left: 16px; background: var(--primary); color: #FFFFFF; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.bill { border: 1px solid var(--border); border-radius: 12px; background: #FFFFFF; padding: 16px 18px; margin-top: 14px; margin-bottom: 20px; max-width: 520px; }
.bill .row { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: .9375rem; }
.bill .row.tot { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px; font-weight: 700; font-size: 1.0625rem; }
.bill .row.have { color: var(--muted); font-size: .875rem; }
.tile.preview .bar { color: var(--muted); }
dialog.pop { border: 0; border-radius: 16px; padding: 28px; max-width: 440px; width: calc(100% - 32px); box-shadow: 0 20px 60px rgba(17, 48, 89, .3); background: #FFFFFF; color: var(--text); }
dialog.pop::backdrop { background: rgba(17, 48, 89, .55); }
dialog.pop h2 { font-size: 1.75rem; margin-bottom: 10px; }
dialog.pop p { margin: 0 0 10px; }
dialog.pop .row-actions { margin-top: 18px; }
[hidden] { display: none !important; }

/* Phones */
@media (max-width: 560px) {
  .hdr-links { gap: 0 16px; flex-wrap: wrap; justify-content: flex-end; }
  .hdr-links a:not(.btn), .linkbtn { white-space: nowrap; font-size: .9375rem; padding: 10px 0; }
  .packs { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pack { padding: 16px; }
  .pack .n { font-size: 2.1rem; }
  .pack .btn { padding-left: 10px; padding-right: 10px; font-size: .875rem; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tile .bar { flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px; }
  #go { width: 100%; min-height: 54px; }
  .drop { padding: 44px 16px; }
  .drop b { font-size: 1.25rem; }
  .bill { max-width: none; }
  dialog.pop .row-actions .btn { flex: 1; text-align: center; }
}
/* Photo queue */
.qhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.qhead span { color: var(--muted); font-size: .9rem; }
.qmeter { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.qmeter i { display: block; height: 100%; width: 0; background: var(--primary); transition: width .2s; }
.file { align-items: center; }
.file .fname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .fname .n { font-weight: 500; }
.fstate { display: flex; align-items: center; gap: 10px; flex: none; }
.fstate .bar { display: block; width: 70px; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.fstate .bar i { display: block; height: 100%; background: var(--primary); }
.fstate .pc { min-width: 2.6em; text-align: right; font-size: .8125rem; }
.fstate .ok { color: #1E6B35; font-weight: 700; font-size: .875rem; }
.fstate .x, .fstate .mini { background: none; border: 0; padding: 6px 2px; font: inherit; font-size: .8125rem; color: var(--muted); text-decoration: underline; cursor: pointer; }
.fstate .mini { color: #A12727; font-weight: 700; }
.files { max-height: 340px; }
@media (max-width: 560px) { .file { padding: 10px; } .fstate .bar { width: 44px; } .fstate .x { padding: 10px 2px; } }

/* Large preview */
.tile .pv { cursor: zoom-in; display: block; }
.tile .pv:focus-visible { outline: 3px solid var(--primary); outline-offset: -3px; }
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(10, 18, 34, .98); display: flex; align-items: center; justify-content: center; padding: 56px 16px 52px; }
.lb[hidden] { display: none; }
.lb img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; background: #FFFFFF; }
.lb-x { position: absolute; top: 12px; right: 12px; background: #FFFFFF; color: var(--primary); border: 0; border-radius: 999px; padding: 10px 20px; font: inherit; font-weight: 700; cursor: pointer; }
.lb-add { position: absolute; top: 12px; left: 12px; background: #FFC30F; color: #113059; border: 0; border-radius: 999px; padding: 10px 20px; font: inherit; font-weight: 700; cursor: pointer; }
.lb-add[hidden] { display: none; }
.lb-add:disabled { background: #FFFFFF; color: #113059; opacity: .85; cursor: default; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--primary); font-size: 2rem; line-height: 1; cursor: pointer; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-nav[hidden] { display: none; }
.lb-cap { position: absolute; bottom: 14px; left: 0; right: 0; margin: 0; text-align: center; color: #FFFFFF; font-size: .875rem; }
@media (max-width: 560px) { .lb { padding: 56px 0 48px; } .lb img { border-radius: 0; } .lb-nav { width: 44px; height: 44px; } }

/* Guide bar */
.guidebar { background: var(--primary); color: #FFFFFF; }
.guidebar-in { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.guidebar span { font-weight: 700; }
.guidebar .btn { background: #FFFFFF; color: var(--primary); border-color: #FFFFFF; }
@media (max-width: 560px) { .guidebar-in { flex-direction: column; align-items: stretch; text-align: center; gap: 8px; } .guidebar .btn { width: 100%; } }

/* Photo checkboxes */
.tile { position: relative; }
.pick { position: absolute; top: 8px; left: 8px; z-index: 2; display: block; width: 32px; height: 32px; cursor: pointer; }
.pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pick span { display: block; width: 32px; height: 32px; box-sizing: border-box; border-radius: 8px; background: #FFFFFF; border: 2px solid var(--primary); box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.pick input:checked + span { background: var(--primary); }
.pick input:checked + span::after { content: ''; display: block; width: 7px; height: 14px; margin: 4px 0 0 10px; border: solid #FFFFFF; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.pick input:focus-visible + span { outline: 3px solid #FFFFFF; outline-offset: 2px; box-shadow: 0 0 0 5px var(--primary); }
#dl-all:disabled { opacity: .5; cursor: not-allowed; }

.tile.on { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.paidtag { position: absolute; top: 8px; right: 8px; z-index: 2; background: #1F7A3E; color: #FFFFFF; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.actionbar { position: sticky; bottom: 0; z-index: 5; background: #FFFFFF; border-top: 1px solid var(--border); margin: 18px -4px 0; padding: 12px 4px calc(12px + env(safe-area-inset-bottom)); }
.actionbar .btn { width: 100%; }
.actionbar .bill { border: 0; padding: 0; margin: 0 0 10px; max-width: none; }
.actionbar .bill .row { padding: 2px 0; font-size: .875rem; }
.actionbar .bill .row.tot { margin-top: 4px; padding-top: 6px; font-size: 1rem; }
#pay-btn:disabled { opacity: .5; cursor: not-allowed; }

/* Gold flag for the Limited time tag on the 100 credit pack */
.flag-gold { display: block; width: fit-content; margin: 7px 0 0; background: #ffc30f; color: #113059; font-size: .72rem; font-weight: 700; letter-spacing: .02em; line-height: 1; padding: 6px 16px 6px 10px; border-radius: 3px 0 0 3px; clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 50%, 100% 100%, 0 100%); white-space: nowrap; }

.table-packs td .flag-gold { margin: 7px 0 0 auto; }

/* Buy page cart */
.pack .qty { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: auto; padding-top: 12px; }
.pack .qbtn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--primary); background: #FFFFFF; color: var(--primary); font-size: 1.4rem; line-height: 1; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.pack .qbtn:hover { background: #E8EEF8; }
.pack .qn { min-width: 28px; text-align: center; font-weight: 800; font-size: 1.25rem; color: var(--primary); }
.pack.has-qty { border: 2px solid var(--primary); background: #F4F7FC; }
.cart { margin-top: 18px; }
.cart-h { font-size: 1.25rem; margin: 0 0 8px; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0 12px; font-size: 1.125rem; }
.cart-total b { color: var(--primary); }
.cart .btn { width: 100%; justify-content: center; margin-top: 4px; }
.cart .btn[disabled] { opacity: .5; cursor: not-allowed; }
@media (max-width: 760px) { .cart { max-width: none; } }
.pack.guide-card { background: #F4F7FC; }
.pack.guide-card .btn { margin-top: auto; text-align: center; justify-content: center; }
.pack.guide-card .n { font-size: 2.1rem; }
.pack .guide-note { margin-top: 6px; text-align: center; }
.free-amt { color: #1E6B35; font-weight: 800; }
.free-line s { color: var(--muted, #6b7280); }
.pack .qbtn[disabled] { opacity: .35; cursor: not-allowed; }

.pack.fp-card { background: #F4F7FC; }
.pack.fp-card .n { font-size: 2.1rem; }
.pack.fp-card .btn { margin-top: auto; text-align: center; justify-content: center; }
.pack .fp-save { margin-top: 6px; }

.sec-divider { border: 0; border-top: 1px solid var(--border); margin: 28px 0 22px; }
.sec-h { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; margin: 0 0 4px; }
.sec-sub { margin: 0 0 14px; }

.fp-help { margin: 10px 0; }
.fp-warn { color: #8A5A00; font-weight: 600; }
.pack.fp-card .guide-note a { color: var(--primary); }

.tile .tw { border-top: 1px solid var(--border); padding: 8px 12px; font-size: .8125rem; }
.tile .tw-row { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.tile .tw-row.muted { color: var(--muted); }
.tile .tw-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 4px 0; }
.tile .tw-pick label { display: flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; min-height: 32px; }
.tile .tw-pick input { width: 20px; height: 20px; }
.tile .tw-pick select { font: inherit; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: #FFFFFF; }
.twbox { border: 1px solid var(--border); border-radius: 12px; background: #FFFFFF; padding: 16px 18px; margin-top: 18px; max-width: 640px; }
.twbox h3 { margin: 0 0 6px; }
.twbox .btn { width: 100%; margin-top: 8px; }

/* Virtual Staging page */
.stg-bal { background: var(--surface-2); border-radius: 999px; padding: 8px 16px; font-size: .9375rem; } .stg-bal .lbl { color: var(--muted); }
.stg-demo { background: #E3EBF7; color: var(--primary); border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-weight: 700; font-size: .9375rem; }
.stg-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.stg-tab { font: inherit; font-weight: 700; font-size: .9375rem; background: #FFFFFF; color: var(--primary); border: 2px solid var(--primary); border-radius: 999px; padding: 10px 20px; cursor: pointer; min-height: 44px; }
.stg-tab.on { background: var(--primary); color: var(--on-primary); }
.stg-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.stg-chip { font: inherit; font-weight: 500; font-size: .875rem; background: #FFFFFF; color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 9px 16px; cursor: pointer; min-height: 40px; text-align: left; }
.stg-chip.on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.stg-photo img { width: 100%; max-height: 360px; object-fit: contain; border-radius: 12px; background: var(--surface-2); margin-bottom: 14px; }
.stg-room { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-bottom: 10px; }
.stg-check { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; cursor: pointer; }
.stg-check input { width: 20px; height: 20px; accent-color: var(--primary); }
.stg-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.stg-style { font: inherit; text-align: left; background: #FFFFFF; border: 2px solid var(--border); border-radius: 12px; padding: 14px 16px; cursor: pointer; display: grid; gap: 4px; }
.stg-style strong { color: var(--text); } .stg-style span { color: var(--muted); font-size: .8125rem; }
.stg-style.on { border-color: var(--primary); background: #F2F6FC; }
.stg-themes, .stg-ex, .stg-rounds { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.stg-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin: 14px 0 22px; }
.stg-opt { display: grid; gap: 8px; }
.stg-cmp { position: relative; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; background: var(--surface-2); user-select: none; }
.stg-cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stg-cmp img.a { clip-path: inset(0 0 0 var(--p)); }
.stg-cmp input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.stg-cmp::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--p); width: 3px; background: #FFFFFF; box-shadow: 0 0 6px rgba(0,0,0,.4); pointer-events: none; }
.stg-cmp .lblb, .stg-cmp .lbla { position: absolute; top: 8px; background: rgba(17,48,89,.8); color: #FFFFFF; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; pointer-events: none; }
.stg-cmp .lblb { left: 8px; } .stg-cmp .lbla { right: 8px; }
.stg-dl { max-width: 520px; }
.stg-spin { width: 36px; height: 36px; border: 4px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: stgspin 1s linear infinite; margin-top: 10px; }
@keyframes stgspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .stg-spin { animation: none; } }
@media (max-width: 560px) { .stg-room { grid-template-columns: 1fr; } }

.stg-look { border: 0; padding: 0; margin: 0; min-width: 0; }
.stg-look.off { opacity: .45; }
.stg-look.off * { cursor: not-allowed; }

/* My Gallery */
.mg-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 14px 28px; align-items: end; margin-top: 14px; }
.mg-opts .field { margin: 0; }
.mg-opts .field label { display: block; margin-bottom: 6px; }
.mg-opts .select { width: 100%; max-width: none; }
.mg-opts .mg-chk { grid-column: 1 / -1; }
.mg-opts .mg-chk label { margin: 0; }
.mg-opts [hidden] { display: none; }
#mg-grid .tile .bar .btn { width: 100%; }
#mg-grid .tile .pv { cursor: default; }
@media (max-width: 640px) { .mg-opts { grid-template-columns: 1fr; } }

/* Virtual Staging steps: every step is on the page, grayed out until the step above it is chosen */
.stg-step { transition: opacity .2s; }
.stg-step.locked { opacity: .45; background: var(--surface-2); user-select: none; }
.stg-step.locked * { cursor: not-allowed; }
.stg-bal { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
#w-load { margin-bottom: 16px; }

dialog.pop .pay-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
dialog.pop .pay-actions .btn { width: 100%; text-align: center; justify-content: center; box-sizing: border-box; }
dialog.pop .pay-actions [hidden] { display: none; }

/* Staging preview: click to expand */
.stg-thumb { display: block; width: 100%; padding: 0; border: 0; background: var(--surface-2); border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 2; cursor: zoom-in; }
.stg-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stg-thumb:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.lb .stg-big { width: min(100%, calc((100vh - 120px) * 1.5)); max-height: calc(100vh - 120px); aspect-ratio: 3 / 2; border-radius: 6px; }
.lb .stg-big img { object-fit: contain; border-radius: 0; background: #FFFFFF; width: 100%; height: 100%; max-width: none; max-height: none; }
@media (max-width: 560px) { .lb .stg-big { width: 100%; border-radius: 0; } }

/* Sample text in the staging instructions box */
#own::placeholder { color: #9AA2AD; font-style: italic; opacity: 1; }

/* Free guide page */
.gift-banner { display: grid; gap: 4px; background: #F7F6F2; border-left: 4px solid var(--gold, #C9A24B); padding: 14px 18px; margin: 0 0 20px; border-radius: 4px; }
.gift-banner b { font-size: 1.25rem; color: #113059; }
.fg-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 40px; align-items: start; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.fg-copy h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 14px; }
.fg-sub { font-size: 1.125rem; margin: 0 0 22px; }
.fg-cover { display: block; width: min(100%, 320px); height: auto; border-radius: 6px; box-shadow: 0 12px 34px rgba(17, 48, 89, .22); margin: 0 0 22px; }
.fg-list { margin: 0 0 24px; padding-left: 22px; list-style: disc; display: grid; gap: 8px; }
.fg-box h2 { font-size: 1.75rem; margin-bottom: 8px; }
@media (max-width: 860px) { .fg-wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; } .fg-box { order: -1; } .fg-cover { width: min(100%, 240px); } }

/* Staging photo grid and cards */
.stg-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.stg-tile { font: inherit; text-align: left; padding: 0; background: #FFFFFF; border: 2px solid var(--border); border-radius: 12px; overflow: hidden; cursor: pointer; display: grid; }
.stg-tile:hover { border-color: var(--primary); }
.stg-tile.on { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.stg-tile .im { aspect-ratio: 3 / 2; background: var(--surface-2); display: block; }
.stg-tile .im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stg-tile .cap { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; padding: 8px 10px; font-size: .8125rem; }
.stg-tile .cap b { font-weight: 700; color: var(--text); }
.stg-tile .cap span { color: var(--muted); text-align: right; }
.stg-tile .cap span.go { color: #1E6B35; font-weight: 700; }
.stg-card { margin-top: 18px; }
.stg-card-h { margin-bottom: 12px; }
.stg-card h3 { font-size: 1.125rem; margin: 18px 0 8px; }
.stg-loadrow { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.stg-loadrow .stg-spin { margin: 0; }
.stg-tile .cap b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.stg-roomrow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 28px; }
.stg-auto { margin-bottom: 12px; font-weight: 600; }
.stg-look.off, fieldset.off { opacity: .45; }

.stg-wip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; aspect-ratio: 3 / 2; width: 100%; border: 1px dashed var(--border); border-radius: 12px; background: #f4f2ed; color: var(--muted, #5a5a5a); font-weight: 600; }
.stg-wip .stg-spin { margin-top: 0; }

/* Staging: other angles are being made */
.stg-working { display: flex; align-items: center; gap: 12px; background: #FFF6D6; border: 1px solid #ffc30f; color: #113059; border-radius: 10px; padding: 12px 16px; margin: 14px 0; font-weight: 600; line-height: 1.4; }
.stg-dot { flex: none; width: 18px; height: 18px; border: 3px solid #113059; border-right-color: transparent; border-radius: 50%; animation: stgspin .9s linear infinite; }
@media (prefers-reduced-motion: reduce) { .stg-dot { animation: none; } }

/* Staging: preview every angle before buying */
.grp-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 10px 0 14px; max-width: 640px; }
.grp-th { border: 1px solid var(--border, #D4D1CA); background: #fff; border-radius: 10px; padding: 0; overflow: hidden; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.grp-th:hover, .grp-th:focus-visible { border-color: #113059; outline: 2px solid #113059; outline-offset: 1px; }
.grp-th .im { display: block; aspect-ratio: 4 / 3; background: #F7F6F2; }
.grp-th img { display: block; width: 100%; height: 100%; object-fit: cover; }
.grp-th .cap { display: grid; padding: 8px 10px; font-size: .875rem; line-height: 1.3; }
.grp-th .cap span { color: #5C5A54; font-size: .8125rem; }

/* Staging large preview shows the staged picture only, no before and after slider. */
#lb-cmp.lb-only img.b, #lb-cmp.lb-only .lblb, #lb-cmp.lb-only .lbla, #lb-cmp.lb-only input[type=range] { display: none; }
#lb-cmp.lb-only img.a { clip-path: none; }
#lb-cmp.lb-only::after { display: none; }

/* My Listings (agent brand) */
.ml-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-top: 8px; }
.ml-card { display: grid; gap: 4px; text-align: left; font: inherit; color: var(--text); background: #FFFFFF; border: 1px solid var(--border); border-radius: 14px; padding: 10px 10px 14px; cursor: pointer; }
.ml-card:hover, .ml-card:focus-visible { border-color: var(--primary); box-shadow: var(--shadow); outline: none; }
.ml-card:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.ml-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: var(--surface-2); margin-bottom: 8px; }
.ml-img img { width: 100%; height: 100%; object-fit: cover; }
.ml-name { font-weight: 700; font-size: 1.0625rem; line-height: 1.25; padding: 0 4px; overflow-wrap: anywhere; }
.ml-sub { color: var(--muted); font-size: .875rem; padding: 0 4px; }
.ml-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 6px; }
.ml-title h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; margin: 0; overflow-wrap: anywhere; }
.ml-in { max-width: 380px; min-height: 44px; }
.ord-right { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
#ml-head { margin-bottom: 18px; }

/* Project cards with a picture (agent brand) */
html[data-brand="agent"] .order .o-body { flex: 1 1 220px; min-width: 0; }
.o-thumb { flex: none; width: 96px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.o-thumb img { width: 100%; height: 100%; object-fit: cover; }
.o-none { font-size: .75rem; color: var(--muted); text-align: center; padding: 4px; line-height: 1.2; }
@media (max-width: 560px) { .o-thumb { width: 72px; height: 56px; } }

.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.pager[hidden] { display: none; }

.fixbox textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--border, #D4D1CA); border-radius: 10px; background: #fff; }
.fixbox { margin-top: 8px; }

.ml-sec { grid-column: 1 / -1; width: 100%; margin: 14px 0 4px; font-size: 1.1rem; }
#ml-fp .orders { margin-top: 8px; }

/* Feedback button and box on the dashboard */
.fb-fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; background: var(--primary); color: #fff; border: 0; border-radius: 999px; padding: 12px 20px; font: inherit; font-weight: 700; font-size: .9375rem; cursor: pointer; box-shadow: 0 6px 20px rgba(17, 48, 89, .3); }
.fb-fab:hover { filter: brightness(1.12); }
html[data-brand="agent"] .fb-fab { background: var(--accent); color: #113059; }
.fb-types { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.fb-types label { cursor: pointer; }
.fb-types input { position: absolute; opacity: 0; pointer-events: none; }
.fb-types span { display: inline-block; padding: 8px 14px; border: 1.5px solid #C9C7C0; border-radius: 999px; font-size: .875rem; font-weight: 600; color: var(--text); }
.fb-types input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.fb-types input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
dialog.pop textarea { width: 100%; box-sizing: border-box; border: 1.5px solid #C9C7C0; border-radius: 12px; padding: 12px; font: inherit; resize: vertical; }
