/* Ratchet Sites hub (#/marketing/site). shop.css tokens only. */
.rx-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 1180px) { .rx-layout { grid-template-columns: minmax(0, 1fr) 420px; } .rx-preview { position: sticky; top: 16px; } }
.rx-first { max-width: 860px; }
.rx-card-head { margin-bottom: 12px; }
.rx-card-head h2 { font: 600 17px/1.25 var(--font-display); margin: 0; }
.rx-hint { font-size: 13px; color: var(--ink-2); margin: 4px 0 0; }
.rx-h3 { font-size: 13px; font-weight: 600; margin: 16px 0 6px; color: var(--ink-2); }
.rx-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rx-row input { flex: 1; min-width: 220px; }
.rx-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.rx-actions.start { justify-content: flex-start; }
.rx-badge { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--fill); color: var(--ink-2); white-space: nowrap; }
.rx-badge.is-ok { background: var(--green-soft, #e3f4e8); color: var(--green); }
.rx-badge.is-warn { background: #fff4ce; color: #7a5a00; }
.rx-badge.is-bad { background: #fdecea; color: var(--red); }
.rx-status { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 14px; }
.rx-check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin-top: 12px; }
.rx-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.rx-links, .rx-locs, .rx-promos, .rx-found, .rx-done { list-style: none; margin: 0; padding: 0; }
.rx-link, .rx-locs li, .rx-promos li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }
.rx-link:last-child, .rx-locs li:last-child, .rx-promos li:last-child { border-bottom: 0; }
.rx-link > div:first-child, .rx-promos li > span, .rx-locs li > span { display: flex; flex-direction: column; gap: 2px; }
.rx-locs li > span { flex-direction: row; align-items: center; gap: 8px; }
.rx-link-sel { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rx-found li, .rx-done li { padding: 5px 0 5px 20px; position: relative; font-size: 14px; }
.rx-found li::before, .rx-done li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.rx-chat { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; max-height: 420px; overflow-y: auto; }
.rx-chat:empty { display: none; }
.rx-turn p { margin: 0; padding: 9px 12px; border-radius: 14px; font-size: 14px; white-space: pre-wrap; max-width: 92%; }
.rx-turn.is-person { justify-self: end; }
.rx-turn.is-person p { background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.rx-turn.is-assistant p { background: var(--fill); border-bottom-left-radius: 5px; }
.rx-ask textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; resize: vertical; }
.rx-ask-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.rx-ask-bar .primary { margin-left: auto; }
.rx-attach { font-size: 13px; color: var(--accent); cursor: pointer; font-weight: 500; }
.rx-file { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rx-attached { display: flex; gap: 6px; flex-wrap: wrap; }
.rx-chip { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--fill); }
.rx-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.rx-tpl { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; border-radius: var(--r-m); background: var(--surface); box-shadow: 0 0 0 .5px var(--hair-strong); text-align: left; min-height: 0; height: auto; }
.rx-tpl[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent); }
.rx-tpl small { font-size: 12px; color: var(--ink-2); font-weight: 400; white-space: normal; }
.rx-tpl-swatch { width: 100%; height: 44px; border-radius: 8px; background: linear-gradient(180deg, #eef3f8, #fff); margin-bottom: 4px; box-shadow: 0 0 0 .5px var(--hair) inset; }
.rx-tpl.tpl-bold .rx-tpl-swatch { background: linear-gradient(160deg, #111214, #2a2d33 60%, var(--accent)); }
.rx-tpl.tpl-neighborhood .rx-tpl-swatch { background: radial-gradient(circle at 20% 0%, var(--accent-soft), #fbf7f0 70%); }
.rx-domain { padding: 10px 0; border-bottom: 1px solid var(--hair); }
.rx-domain:last-child { border-bottom: 0; }
.rx-dc { margin-top: 8px; }
.rx-records { border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.rx-records td { padding: 4px 10px 4px 0; vertical-align: top; }
.rx-preview { background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 .5px var(--hair); padding: 12px; }
.rx-preview-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.rx-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; }
.rx-frame-wrap.is-phone { max-width: 390px; }
.rx-frame { display: block; width: 100%; height: 720px; border: 0; background: #fff; }
