[hidden] { display: none !important; }
.admin { background: #eef0ec; }
.login { min-height: 100svh; display: grid; place-items: center; padding: 20px; background: radial-gradient(80vmax 80vmax at 80% -10%, rgba(42,58,230,.35), transparent 60%), var(--navy-950); }
.login__card { width: min(400px, 100%); background: var(--paper); border-radius: 20px; padding: 30px; display: grid; gap: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.login__logo { width: 200px; margin: 0 auto 6px; }
.login h1 { font-size: 2rem; text-transform: uppercase; font-stretch: 80%; text-align: center; }
.login__back { text-align: center; font-size: .9rem; color: var(--ink-soft); }

.bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px; padding: 10px 20px; background: var(--navy-950); color: var(--on-dark); flex-wrap: wrap; }
.bar__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-stretch: 80%; text-transform: uppercase; letter-spacing: .02em; }
.bar__brand img { width: 32px; height: 32px; }
.tabs { display: flex; gap: 4px; margin-right: auto; overflow-x: auto; scrollbar-width: none; }
.tabs button { background: none; border: 0; color: var(--on-dark-soft); padding: 10px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tabs button[aria-selected=true] { background: rgba(255,255,255,.12); color: #fff; }
.tabs b { font-family: var(--font-mono); font-weight: 400; font-size: .75rem; opacity: .7; }
.tabs .badge { background: var(--cyan); color: var(--navy-950); opacity: 1; border-radius: 999px; padding: 1px 7px; }
.bar__end { display: flex; gap: 8px; }
.bar .btn--ghost { color: var(--on-dark); }
@media (max-width: 760px) { .bar__end { display: none; } .tabs { order: 3; flex-basis: 100%; } .bar__brand span { font-size: .9rem; } }

.pane { max-width: 1240px; margin: 0 auto; padding: 28px 20px 120px; }
.pane__head { margin-bottom: 24px; }
.pane__head h1 { font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; font-stretch: 78%; }
.pane__head p { color: var(--ink-soft); margin-top: 6px; }
.pane__head--row { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.pane__tools { display: flex; gap: 10px; flex-wrap: wrap; }
.pane__tools input { height: 42px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 14px; background: #fff; min-width: 220px; }

/* builder */
.builder { display: grid; grid-template-columns: 1fr 420px; gap: 24px; align-items: start; }
@media (max-width: 980px) { .builder { grid-template-columns: 1fr; } }
.step { background: #fff; border-radius: 16px; padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.step h2 { font-size: 1.35rem; text-transform: uppercase; font-stretch: 82%; display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step h2 span { width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 1rem; font-stretch: 100%; flex: none; }
.step h2 em { font-style: normal; font-family: var(--font-text); font-stretch: 100%; text-transform: none; font-weight: 400; font-size: .9rem; color: var(--ink-faint); }
.drop { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 34px 20px; border: 2px dashed rgba(42,58,230,.35); border-radius: 14px; background: rgba(42,58,230,.04); cursor: pointer; transition: background-color .2s, border-color .2s; }
.drop:hover, .drop.is-over { background: rgba(42,58,230,.09); border-color: var(--blue); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop svg { width: 44px; height: 44px; color: var(--blue); }
.drop b { font-size: 1.1rem; }
.drop span { color: var(--ink-soft); font-size: .92rem; max-width: 40ch; }
.photos { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.photo { position: relative; border-radius: 10px; overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 3; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo__cover { position: absolute; left: 8px; top: 8px; background: var(--blue); color: #fff; font-size: .7rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.photo__busy { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.75); font-size: .85rem; font-weight: 600; }
.photo__tools { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 6px; background: linear-gradient(0deg, rgba(0,0,0,.6), transparent); }
.photo__tools button { width: 32px; height: 32px; border-radius: 8px; border: 0; background: rgba(255,255,255,.92); cursor: pointer; display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
.photo__tools svg { width: 16px; height: 16px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font-weight: 500; cursor: pointer; }
.toggle input { width: 20px; height: 20px; accent-color: var(--blue); }

.price-in { display: flex; align-items: center; border: 2px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; transition: border-color .2s; }
.price-in:focus-within { border-color: var(--blue); }
.price-in span { padding: 0 6px 0 18px; font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; color: var(--ink-faint); }
.price-in input { border: 0; outline: 0; font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; padding: 10px 10px 10px 0; width: 100%; background: none; }
.seg { display: inline-flex; margin-top: 12px; background: var(--paper-2); border-radius: 999px; padding: 4px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 8px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg input:focus-visible + span { outline: 3px solid var(--cyan); }

.big-in { width: 100%; min-height: 56px; padding: 12px 16px; font-size: 1.1rem; border: 2px solid var(--line); border-radius: 12px; }
.big-in:focus { outline: 0; border-color: var(--blue); }
.detected { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; min-height: 30px; }
.det { display: inline-flex; gap: 6px; align-items: center; padding: 5px 10px; border-radius: 999px; background: rgba(34,198,240,.14); font-size: .84rem; }
.det i { font-style: normal; font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); }
.more { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.more summary { cursor: pointer; font-weight: 600; color: var(--blue); }
.more__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.field--dims { grid-column: 1 / -1; }
.dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dims input, .more__grid .field input, .more__grid .field select { min-height: 46px; }
@media (max-width: 560px) { .more__grid { grid-template-columns: 1fr; } }

.preview { background: #fff; border-radius: 16px; padding: 20px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.builder__side { position: sticky; top: 80px; }
@media (max-width: 980px) { .builder__side { position: static; } }
.preview__head { display: flex; justify-content: space-between; align-items: center; }
.preview__head h2 { font-size: 1.2rem; text-transform: uppercase; font-stretch: 82%; }
.link { background: none; border: 0; color: var(--blue); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.preview__img { aspect-ratio: 4 / 3; border-radius: 10px; background: var(--paper-2); overflow: hidden; display: grid; place-items: center; color: var(--ink-faint); font-size: .9rem; }
.preview__img img { width: 100%; height: 100%; object-fit: cover; }
.preview textarea { min-height: 220px; font-size: .92rem; line-height: 1.5; }
.hint { font-size: .82rem; color: var(--ink-faint); }
.publish { margin-top: 14px; display: grid; gap: 10px; }
.btn--big { min-height: 58px; font-size: 1.08rem; }
.progress { height: 6px; border-radius: 6px; background: var(--paper-2); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--blue); transition: width .3s; }

/* stock rows */
.rows, .enqs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 96px 1fr auto auto auto; gap: 16px; align-items: center; background: #fff; border-radius: 12px; padding: 10px 14px 10px 10px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.row img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--paper-2); }
.row__t b { display: block; line-height: 1.25; }
.row__t span { font-size: .85rem; color: var(--ink-faint); }
.row__p { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.row select { height: 40px; border-radius: 999px; border: 1.5px solid var(--line); padding: 0 12px; font-weight: 600; background: #fff; }
.row select[data-v=sold] { background: #fde8e6; border-color: #f2b8b2; }
.row select[data-v=reserved] { background: #fff4dc; border-color: #f0d07d; }
.row__a { display: flex; gap: 6px; }
.row__a button, .row__a a { height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; font-size: .88rem; text-decoration: none; display: inline-flex; align-items: center; }
.row__a .danger { color: #b42318; }
.row--sample { outline: 2px dashed #f0d77d; }
@media (max-width: 760px) {
  .row { grid-template-columns: 80px 1fr; }
  .row img { width: 80px; height: 60px; }
  .row__p { grid-column: 2; }
  .row select, .row__a { grid-column: 1 / -1; }
  .row select { width: 100%; }
}

.enq { background: #fff; border-radius: 12px; padding: 16px 18px; box-shadow: 0 1px 2px rgba(0,0,0,.06); display: grid; gap: 8px; }
.enq.is-done { opacity: .55; }
.enq__top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.enq__top b { font-size: 1.05rem; }
.enq__top time { font-size: .85rem; color: var(--ink-faint); }
.enq__about { font-size: .88rem; color: var(--blue); font-weight: 600; }
.enq p { white-space: pre-line; }
.enq__meta { font-size: .88rem; color: var(--ink-soft); }
.enq__a { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

.settings { background: #fff; border-radius: 16px; padding: 22px; box-shadow: var(--shadow); display: grid; gap: 14px; max-width: 680px; }
.empty-admin { background: #fff; border-radius: 12px; padding: 40px; text-align: center; color: var(--ink-soft); }

.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; background: var(--navy-950); color: #fff; padding: 14px 20px; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,.35); z-index: 100; font-weight: 500; display: flex; gap: 14px; align-items: center; animation: pop .35s var(--ease); }
.toast a { color: var(--cyan); }

/* add mode switch + facebook step */
.seg--mode { margin: 0 0 20px; }
.seg--mode span { padding: 10px 18px; font-size: .95rem; }
.step--fb { border: 2px solid rgba(24, 119, 242, .35); }
.step--fb h2 span { background: #1877f2; font-size: .72rem; }
.fb-link { display: flex; gap: 10px; }
.fb-link .btn { min-height: 56px; }
@media (max-width: 560px) { .fb-link { flex-direction: column; } }
#fbStatus.is-ok { color: var(--ok); font-weight: 600; }
#fbStatus.is-warn { color: var(--warn); font-weight: 600; }

.pane__head h1, .login h1, .step h2, .preview__head h2, .bar__brand { font-family: var(--font-display); font-stretch: 100%; font-weight: 600; letter-spacing: -0.01em; }
.price-in span, .price-in input, .row__p { font-family: var(--font-display); font-stretch: 100%; }

/* enquirers */
.pane__tools select { height: 42px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 14px; background: #fff; font-weight: 600; }
.report { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--navy-950); color: #fff; border-radius: 16px; padding: 18px 22px; margin-bottom: 18px; }
.report__nums { display: flex; gap: 28px; flex-wrap: wrap; }
.report__nums b { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.report__nums span { font-size: .85rem; color: var(--on-dark-soft); }
.report__act { display: grid; gap: 8px; justify-items: end; }
.report .hint { color: var(--on-dark-soft); }
.report .btn { --bg: var(--cyan); --fg: var(--navy-950); }
.enq__top { align-items: center; }
.enq__type { font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.enq__type--buy { background: rgba(42,58,230,.12); color: var(--blue); }
.enq__type--sell { background: rgba(15,138,95,.14); color: var(--ok); }
.enq__who b { font-size: 1.1rem; }
.enq__who span { color: var(--ink-soft); }
.enq__contact { display: flex; gap: 14px; flex-wrap: wrap; font-weight: 600; }
.enq__contact a { color: var(--blue); }
.enq__dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 4px 0; padding: 10px 12px; background: var(--paper); border-radius: 10px; font-size: .92rem; }
.enq__dl dt { color: var(--ink-faint); font-weight: 600; }
.enq__dl dd { margin: 0; }
.settings__h { font-size: 1.2rem; text-transform: uppercase; font-stretch: 82%; margin-top: 10px; }
.settings .hint { margin-top: 4px; }
@media (max-width: 640px) { .report__act { justify-items: start; } .report__nums { gap: 18px; } }
