/* ASA OS website editor (MKT-01). shop.css tokens and components only; this file adds the editor pieces. */
.ws-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 1180px) { .ws-layout { grid-template-columns: minmax(0, 1fr) 440px; } .ws-preview { position: sticky; top: 16px; } }
.ws-card-head { margin-bottom: 12px; }
.ws-card-head h2 { font: 600 17px/1.25 var(--font-display); margin: 0; }
.ws-card-head .ws-hint { margin-top: 4px; }
.ws-hint { font-size: 13px; color: var(--ink-2); margin: 4px 0 0; }
.ws-empty { font-size: 14px; color: var(--ink-2); margin: 0; }
.ws-meta { font-size: 13px; color: var(--ink-2); }
.ws-err { font-size: 13px; color: var(--red); margin: 4px 0 0; }
.ws-err:empty { display: none; }
.ws-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }

/* status */
.ws-status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ws-badge { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--fill); color: var(--ink-2); }
.ws-badge.is-live { background: var(--green-soft, #e3f4e8); color: var(--green); }
.ws-badge.is-off { background: #fdecea; color: var(--red); }
.ws-status-t { font-size: 14px; color: var(--ink-2); }
.ws-dirty { font-size: 13px; color: var(--amber); font-weight: 500; margin: 8px 0 0; }
.ws-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.ws-actions.start { justify-content: flex-start; }
.ws-ai-ok { margin-top: 12px; align-items: flex-start; }
.ws-slug { display: flex; align-items: stretch; max-width: 460px; }
.ws-slug > span { display: grid; place-items: center; padding: 0 10px; font-size: 14px; color: var(--ink-2); background: var(--fill); border-radius: var(--r-s, 8px) 0 0 var(--r-s, 8px); box-shadow: 0 0 0 .5px var(--hair-strong); }
.ws-slug input { flex: 1; min-width: 0; border-radius: 0 var(--r-s, 8px) var(--r-s, 8px) 0 !important; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }

/* fields */
.ws-fields { display: grid; gap: 14px; }
.ws-field { margin-top: 12px; }
.ws-field:first-child { margin-top: 0; }
.ws-field > label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.ws-field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.ws-field-head label { font-size: 13px; font-weight: 600; }
.ws-field input[type="text"], .ws-field textarea, .ws-svc textarea { width: 100%; box-sizing: border-box; }
.ws-field textarea, .ws-svc textarea { resize: vertical; font: inherit; font-size: 14px; line-height: 1.45; }
.ws-src { font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--ink-3); white-space: nowrap; }
.ws-src.is-ai { color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; }
.ws-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; }
.ws-check { display: flex; align-items: center; gap: 8px; font-size: 14px; min-height: 32px; cursor: pointer; }
.ws-check input[type="checkbox"] { flex: none; width: 18px; height: 18px; accent-color: var(--accent); }

/* services */
.ws-svcs { display: grid; gap: 10px; }
.ws-svc { border-radius: var(--r-m); box-shadow: 0 0 0 .5px var(--hair-strong); padding: 12px 14px; background: var(--surface); }
.ws-svc.is-off { background: var(--surface-2, var(--fill)); }
.ws-svc.is-off .ws-svc-ctl, .ws-svc.is-off textarea { opacity: .55; }
.ws-svc-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ws-svc-top .ws-check { flex: 1; min-width: 200px; }
.ws-svc-name { font-weight: 600; }
.ws-svc-name-in { flex: 1; min-width: 0; width: 100%; font-weight: 600; }
.ws-svc-kind { font-size: 12px; color: var(--ink-3); }
.ws-svc-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 6px; }
.ws-range { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--ink-2); }
.ws-money { width: 92px; text-align: right; font-variant-numeric: tabular-nums; }
.ws-svc textarea { margin-top: 6px; }

/* online requests */
.ws-req { border-radius: var(--r-m); box-shadow: 0 0 0 .5px var(--hair-strong); padding: 12px 14px; margin-top: 10px; background: var(--surface); }
.ws-req p { margin: 4px 0 0; font-size: 14px; }
.ws-req-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ws-req-actions { margin-top: 10px; display: grid; gap: 8px; }
.ws-match { display: grid; gap: 6px; padding: 8px 10px; border-radius: var(--r-s, 8px); background: var(--fill); font-size: 14px; }
.ws-match-btns, .ws-alts { display: flex; flex-wrap: wrap; gap: 6px; }
.ws-dismiss { display: flex; gap: 6px; flex-wrap: wrap; }
.ws-dismiss input { flex: 1; min-width: 180px; }
.ws-recent h3 { font-size: 13px; font-weight: 600; margin: 16px 0 6px; color: var(--ink-2); }
.ws-list { list-style: none; margin: 0; padding: 0; }
.ws-list li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }
.ws-list li:last-child { border-bottom: 0; }
.ws-list li a { margin-left: auto; font-size: 13px; }
.ws-records { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); }
.ws-records li { margin: 4px 0; }

/* preview */
.ws-preview { background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 .5px var(--hair); padding: 12px; }
.ws-preview-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.ws-pages { flex-wrap: wrap; }
.ws-frame-wrap { margin: 0 auto; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--hair-strong), 0 8px 24px rgba(0, 0, 0, .08); background: #fff; }
.ws-frame-wrap.is-phone { max-width: 390px; }
.ws-frame-wrap.is-desktop { max-width: 100%; }
.ws-frame { display: block; width: 100%; height: 720px; border: 0; background: #fff; }
@media (max-width: 1179px) { .ws-frame { height: 640px; } }
.btn-link { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 8px; font-size: 14px; font-weight: 500; background: var(--fill); color: var(--ink); }
.btn-link:hover { text-decoration: none; background: var(--fill-hover, var(--fill)); }
/* Phone: a request's matches, buttons and reason field stay inside the card. */
.ws-req, .ws-req-actions, .ws-match { min-width: 0; }
.ws-req-actions > *, .ws-match > *, .ws-match-btns > * { min-width: 0; max-width: 100%; }
.ws-req button { white-space: normal; text-align: left; overflow-wrap: anywhere; line-height: 1.3; }
.ws-req input[type="text"] { width: 100%; box-sizing: border-box; }
/* Ratchet (080): texts about an online booking */
.ws-texts { display: flex; flex-wrap: wrap; gap: 4px 10px; flex-basis: 100%; font-size: 12px; color: var(--muted); }
.ws-text.is-sent { color: var(--green, #1f7a4d); }
.ws-text.is-failed { color: var(--red, #b42318); }
