/* GoRestyle editor v4 — sidebar panes, proposals, photo manager, on-page editing, assistant */
.editor { grid-template-columns: 440px 1fr; }
.sidebar { min-height: 0; }
.side-body { padding: 4px 22px 24px; }
.pane-title { font-size: 15px; margin: 18px 0 4px; }
.hint { line-height: 1.45; }
.btn-block { width: 100%; margin-top: 12px; }
.btn[disabled] { opacity: .5; cursor: progress; }
.select, .input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; font: 14px/1.3 inherit; font-family: inherit; background: #fff; color: var(--ink); }
.select:focus, .input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; font-weight: 500; }
.field small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 4px; line-height: 1.4; }
.field small.ok-note { color: #17803d; }
.x { border: 0; background: none; font-size: 18px; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.x:hover { background: var(--bg); color: var(--ink); }

/* proposals */
.proposals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.proposal { display: block; text-align: left; border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.proposal .thumb { display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.proposal .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.proposal:hover .thumb { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(0,0,0,.35); }
.proposal.on .thumb { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.proposal .meta { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proposal .meta i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line); flex: none; }
.presets-box { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; }
.presets-box summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.preset { border: 0; background: none; padding: 0; cursor: pointer; font: 600 11px inherit; font-family: inherit; color: var(--muted); text-align: left; }
.preset .thumb { display: block; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: #efeee9; position: relative; margin-bottom: 4px; }
.preset .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* photos */
.dropzone { display: grid; place-items: center; text-align: center; gap: 4px; padding: 26px 16px; border: 1.5px dashed #c9c6be; border-radius: 12px; cursor: pointer; margin-top: 16px; transition: background .2s, border-color .2s; }
.dropzone b { font-size: 14px; }
.dropzone span { font-size: 12px; color: var(--muted); }
.dropzone:hover, .dropzone.over { background: var(--accent-soft); border-color: var(--accent); }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.photo-grid.compact { grid-template-columns: repeat(5, 1fr); }
.photo { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #eee; border: 0; padding: 0; cursor: pointer; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo:not(.used) img { opacity: .82; }
.photo .badges { position: absolute; top: 5px; left: 5px; display: flex; gap: 3px; }
.photo .badges b { font-size: 10px; background: rgba(0,0,0,.65); color: #fff; padding: 2px 6px; border-radius: 99px; }
.photo .badges b.up { background: var(--accent); }
.photo .acts { position: absolute; inset: auto 0 0; display: grid; gap: 2px; padding: 5px; background: linear-gradient(transparent, rgba(0,0,0,.7)); opacity: 0; transition: opacity .2s; }
.photo:hover .acts, .photo:focus-within .acts { opacity: 1; }
.photo .acts button { border: 0; border-radius: 5px; font: 600 10.5px inherit; font-family: inherit; padding: 4px; background: rgba(255,255,255,.92); cursor: pointer; }
.photo .acts button:hover { background: #fff; }
.picker { border: 0; border-radius: 16px; padding: 0; width: min(860px, 92vw); max-height: 82vh; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.picker::backdrop { background: rgba(20,20,30,.45); }
.picker-head { position: sticky; top: 0; display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #fff; border-bottom: 1px solid var(--line); z-index: 2; }
.picker-head b { margin-right: auto; }
.picker .photo-grid { padding: 14px 18px 18px; margin: 0; }
.picker .photo:hover img { opacity: 1; transform: scale(1.03); }

/* sections */
.sections { display: grid; gap: 6px; }
.sec-row { display: flex; align-items: center; gap: 4px; padding: 7px 6px 7px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px; background: #fff; }
.sec-row .sec-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sec-row .tag { flex: none; margin: 0 4px 0 0; }
.sec-row button { flex: none; border: 0; background: none; width: 26px; height: 26px; border-radius: 6px; cursor: pointer; color: var(--muted); font-size: 13px; }
.sec-row button:hover { background: var(--bg); color: var(--ink); }
.sec-row.is-hidden .sec-name { text-decoration: line-through; opacity: .5; }
.add-row { display: flex; gap: 8px; margin-top: 10px; }
.add-row .select { flex: 1; }

/* business */
.hours-edit { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; margin-bottom: 6px; }
.adv { margin: 12px 0; }
.adv summary { cursor: pointer; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }

/* toolbar edit toggle */
.edit-toggle { margin-left: 8px; padding: 0; font-size: 13px; font-weight: 600; }

/* assistant */
.assistant { border-top: 1px solid var(--line); background: #fbfbfa; display: flex; flex-direction: column; max-height: 34vh; }
.chat { overflow-y: auto; padding: 12px 16px 4px; display: flex; flex-direction: column; gap: 8px; }
.msg { font-size: 13px; line-height: 1.45; padding: 8px 12px; border-radius: 12px; max-width: 88%; }
.msg.bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; }
.msg.user { background: var(--accent); color: #fff; align-self: flex-end; }
.msg.thinking { color: var(--muted); animation: pulse 1s infinite; }
.ask { display: flex; gap: 8px; padding: 10px 14px 12px; }
.ask textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: 14px/1.35 inherit; font-family: inherit; max-height: 90px; }
.ask textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.ask .btn { width: 40px; padding: 0; border-radius: 10px; font-size: 16px; }
.assistant.off .chat .msg { color: var(--muted); }
@media (max-width: 900px) { .editor { grid-template-columns: 1fr; } .assistant { max-height: none; } }

.assistant.off { max-height: none; }
.assistant.off .chat { padding: 8px 16px 0; }
.assistant.off .msg { font-size: 11.5px; padding: 6px 10px; border: 0; background: transparent; max-width: 100%; }
.assistant.off .ask { padding-top: 4px; }

/* proposals: whole-page previews that scroll on hover */
.proposal .thumb { aspect-ratio: 4 / 5; background: #f1f0ec; }
.proposal .thumb img { object-fit: cover; object-position: 50% 0; transition: object-position 7s cubic-bezier(.45,0,.55,1); }
.proposal:hover .thumb img, .proposal:focus-visible .thumb img { object-position: 50% 100%; transition-duration: 9s; }

/* page builder */
.blocks { display: grid; gap: 8px; margin-top: 14px; }
.blk { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.blk.open { border-color: var(--accent); box-shadow: 0 8px 24px -14px rgba(0,0,0,.3); }
.blk-row { display: flex; align-items: center; gap: 4px; padding-right: 6px; }
.blk-head { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 8px 6px 8px 8px; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.blk-thumb { flex: none; width: 72px; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: #efeee9; display: grid; place-items: center; }
.blk-thumb img, .var-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blk-thumb svg, .var-thumb svg { width: 100%; height: 100%; }
.blk-name { min-width: 0; display: grid; gap: 2px; }
.blk-name b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blk-name small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blk-name small i { font-style: normal; opacity: .75; }
.blk-acts { display: flex; flex: none; }
.blk-acts button { border: 0; background: none; width: 26px; height: 26px; border-radius: 6px; cursor: pointer; color: var(--muted); font-size: 13px; }
.blk-acts button:hover { background: var(--bg); color: var(--ink); }
.blk.is-hidden .blk-head { opacity: .45; }
.blk-body { padding: 4px 12px 14px; border-top: 1px solid var(--line); }
.var-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 8px; }
.var { border: 0; background: none; padding: 0; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.var-thumb { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: #efeee9; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.var:hover .var-thumb { transform: translateY(-2px); box-shadow: 0 8px 20px -12px rgba(0,0,0,.4); }
.var.on .var-thumb { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.var small { display: block; font-size: 11.5px; margin-top: 5px; color: var(--muted); }
.var.on small { color: var(--ink); font-weight: 600; }
.var-wait { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #d5d3cc; border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.blk-body svg rect, .blk-thumb svg rect, .blk-body svg path, .blk-body svg circle { fill: #c9c6be; }
.blk-body svg .img, .blk-thumb svg .img { fill: #b9c4cf; } .blk-body svg .img2, .blk-thumb svg .img2 { fill: #5d6773; }
.blk-body svg .w, .blk-thumb svg .w { fill: #fff; } .blk-body svg .l, .blk-thumb svg .l { fill: #ddd; }
.blk-body svg .o, .blk-thumb svg .o { fill: #fff; stroke: #c9c6be; stroke-width: .6; }
.tones { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.tones > span { font-size: 12px; color: var(--muted); font-weight: 600; margin-right: 4px; width: 100%; }
.tone { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 10px 4px 5px; font: 500 11.5px inherit; font-family: inherit; cursor: pointer; color: var(--ink); }
.tone i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
.tone.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

/* undo / redo */
.seg.hist button[disabled] { opacity: .4; cursor: default; }
.btn.danger { color: #b42318; }
/* YouTube picker */
.vp-body { padding: 16px 18px 20px; }
.vp-row { display: flex; gap: 8px; margin-bottom: 10px; }
.vp-row .input { flex: 1; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.vcard { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.vthumb { display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #111; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.vcard:hover .vthumb img { transform: scale(1.04); }
.vcard b { display: block; font-size: 12.5px; font-weight: 600; margin-top: 6px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard small { color: var(--muted); font-size: 11px; }

/* button popover */
.btnpop { position: fixed; z-index: 60; width: 340px; background: #fff; border-radius: 14px; padding: 16px 16px 12px; box-shadow: 0 24px 60px -12px rgba(0,0,0,.35); border: 1px solid var(--line); }
.bp-acts { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.bp-acts span { flex: 1; }
.bp-acts .btn { padding: 0 12px; min-height: 36px; font-size: 13px; }
.btnpop [hidden], .btnpop[hidden] { display: none !important; }

/* top-of-page photo order */
.hero-order { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 8px; }
.ho-item { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #eee; }
.ho-item img { width: 100%; height: 100%; object-fit: cover; }
.ho-n { position: absolute; top: 5px; left: 5px; font-size: 10px; font-weight: 700; background: rgba(0,0,0,.65); color: #fff; padding: 2px 7px; border-radius: 99px; }
.ho-item:first-child .ho-n { background: var(--accent); }
.ho-acts { position: absolute; inset: auto 0 0; display: flex; justify-content: center; gap: 4px; padding: 5px; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.ho-acts button { border: 0; width: 26px; height: 24px; border-radius: 6px; background: rgba(255,255,255,.92); cursor: pointer; font-size: 11px; }
.ho-acts button[disabled] { opacity: .35; cursor: default; }
.ho-acts [data-x] { color: #b42318; font-weight: 700; }

/* favourite designs */
.prop-wrap { position: relative; }
.fav { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92);
  color: #6b6b6b; font-size: 18px; line-height: 1; cursor: pointer; box-shadow: 0 4px 12px -4px rgba(0,0,0,.35); transition: transform .15s, color .15s; }
.fav:hover { transform: scale(1.1); color: #e8a400; }
.fav.on { color: #e8a400; }
.prop-filter { display: inline-flex; gap: 4px; padding: 3px; margin-top: 12px; border-radius: 999px; background: var(--bg); }
.prop-filter button { border: 0; background: none; padding: 6px 12px; border-radius: 999px; font: 600 12px inherit; font-family: inherit; color: var(--muted); cursor: pointer; }
.prop-filter button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.anim-seg { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 4px; } .anim-seg button { padding: 8px 4px; }

/* styles */
.style-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0 6px; }
.style-card { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.style-card .thumb { display: grid; place-items: center; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #f1f0ec; transition: transform .2s, box-shadow .2s; }
.style-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: object-position 7s cubic-bezier(.45,0,.55,1); }
.style-card:hover .thumb img { object-position: 50% 100%; transition-duration: 9s; }
.style-card:hover .thumb { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(0,0,0,.35); }
.style-card.on .thumb { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.st-name { display: block; font-size: 13px; font-weight: 700; margin-top: 7px; }
.st-name em { font-style: normal; font-size: 10px; font-weight: 700; background: var(--accent); color: #fff; padding: 2px 6px; border-radius: 99px; margin-left: 4px; vertical-align: 1px; }
.st-name em.rec { background: #e9f6ee; color: #17803d; }
.st-blurb { display: block; font-size: 11px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.more-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.var-group { font-size: 11.5px; font-weight: 600; color: var(--muted); margin: 12px 0 -4px; }
.var-more { margin-top: 6px; }
.var-more summary { cursor: pointer; font-size: 12px; color: var(--muted); padding: 6px 0; }
.bp-style { display: grid; grid-template-columns: repeat(3, 1fr); } .bp-style button { padding: 8px 4px; font-size: 12px; }
.chips { display: flex; gap: 6px; padding: 6px 14px 0; overflow-x: auto; scrollbar-width: none; }
.chips button { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 11px; font: 12px/1.2 inherit; font-family: inherit; color: var(--ink); cursor: pointer; white-space: nowrap; }
.chips button:hover { border-color: var(--accent); background: var(--accent-soft); }
/* publish */
.pub-btn { display: inline-flex; align-items: center; gap: 7px; }
.pub-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.55); }
.pub-btn.live .pub-dot { background: #4ade80; }
.pub-btn.dirty .pub-dot { background: #fbbf24; }
.pubdlg { width: min(640px, 94vw); }
.pub-body { padding: 6px 22px 20px; font-size: 14px; line-height: 1.5; }
.pub-step { padding: 16px 0; border-bottom: 1px solid var(--line); }
.pub-step.off { opacity: .55; }
.pub-step h4 { margin: 0 0 6px; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.pub-step h4 small { font-weight: 400; color: var(--muted); }
.pub-step h4 span { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; display: inline-grid; place-items: center; }
.pub-step p { margin: 6px 0 10px; }
.pub-live a { font-weight: 600; color: var(--accent); }
.pub-note { background: #fff7e0; border: 1px solid #f3dd9b; border-radius: 10px; padding: 10px 14px; margin-top: 12px; }
.pub-note small { display: block; color: var(--muted); margin-top: 4px; }
.pub-err { color: #b42318; background: #fef3f2; border-radius: 8px; padding: 8px 12px; }
.pub-busy { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.pub-busy i { width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pub-row { display: flex; gap: 8px; }
.pub-dns { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0; }
.pub-dns th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 4px 8px 4px 0; }
.pub-dns td { padding: 8px 8px 8px 0; border-top: 1px solid var(--line); vertical-align: middle; }
.pub-dns code, .pub-rd code { background: var(--bg); padding: 2px 6px; border-radius: 5px; font-size: 12.5px; }
.pub-dns .ok { color: #15803d; font-weight: 600; } .pub-dns .wait { color: #b45309; font-weight: 500; }
.pub-rd { margin: 8px 0 0; padding-left: 18px; font-size: 13px; }
.pub-foot { margin: 14px 0 0; font-size: 13px; }
.muted { color: var(--muted); }
.link-btn { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; font: inherit; font-size: 13px; }
.link-btn.danger { color: #b42318; }
/* health checklist */
.health-pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 12px 4px 5px; font: 600 12.5px/1 inherit; font-family: inherit; cursor: pointer; color: var(--ink); }
.health-pill:hover { border-color: var(--accent); }
.health-pill svg { width: 22px; height: 22px; transform: rotate(-90deg); }
.health-pill circle { fill: none; stroke-width: 4; }
.hp-bg { stroke: var(--line); }
.hp-fg { stroke: var(--muted); stroke-linecap: round; transition: stroke-dashoffset .6s; }
.health-pill.good .hp-fg { stroke: #16a34a; } .health-pill.mid .hp-fg { stroke: #f59e0b; } .health-pill.low .hp-fg { stroke: #dc2626; }
.hc-bar { height: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; margin: 16px 0 4px; }
.hc-bar span { display: block; height: 100%; background: linear-gradient(90deg, #f59e0b, #16a34a); border-radius: 99px; transition: width .6s; }
.hc-h { margin: 18px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.hc-list { list-style: none; margin: 0; padding: 0; }
.hc { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hc > i { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: 11px; color: #fff; }
.hc.must > i { border-color: #dc2626; } .hc.nice > i { border-color: #f59e0b; }
.hc.ok > i { background: #16a34a; border-color: #16a34a; }
.hc > div { flex: 1; min-width: 0; }
.hc b { display: block; font-size: 14px; font-weight: 600; }
.hc small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
.hc .btn { flex: none; }
.hc-done { margin-top: 14px; } .hc-done summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.hc-done .hc b { font-weight: 500; color: var(--muted); }
.btn-sm { padding: 6px 12px; font-size: 12.5px; }
.flash { animation: flash 1.6s; border-radius: 8px; }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 0 transparent; } }
/* SEO */
.seo-box { margin-top: 18px; }
.serp { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; background: #fff; font-family: arial, sans-serif; }
.serp b { display: block; color: #1a0dab; font-size: 17px; font-weight: 400; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp i { display: block; color: #006621; font-size: 12.5px; font-style: normal; margin: 2px 0; }
.serp span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #4d5156; font-size: 13px; line-height: 1.45; }
.count { font-style: normal; float: right; font-size: 11.5px; }
.count.ok { color: #16a34a; } .count.bad { color: #b45309; }
textarea.input { resize: vertical; }
/* Google import */
.g-import { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; cursor: pointer; font-family: inherit; color: var(--ink); }
.g-import:hover { border-color: #4285F4; box-shadow: 0 6px 18px -12px rgba(66,133,244,.8); }
.g-import svg { flex: none; }
.g-import b { display: block; font-size: 14px; }
.g-import small { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; margin-top: 2px; }
.g-results { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.g-results button { width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 14px; cursor: pointer; font-family: inherit; color: var(--ink); display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
.g-results button:hover { border-color: var(--accent); background: var(--accent-soft); }
.g-results b { font-size: 14px; } .g-results small { grid-column: 1; color: var(--muted); font-size: 12.5px; }
.g-results em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-size: 12.5px; color: #b45309; white-space: nowrap; }
.g-found { margin: 14px 0 2px; }
.g-opt { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.g-opt input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); }
.g-opt b { display: block; font-size: 14px; }
.g-opt small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.g-opt s { opacity: .6; margin-left: 4px; }
.g-opt:has(input:disabled) { opacity: .5; cursor: default; }
.g-acts { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
/* download / deliver */
.side-foot .btn { padding-left: 10px; padding-right: 10px; font-size: 14px; white-space: nowrap; }
.dldlg { width: min(760px, 95vw); }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-top: 16px; }
.dl-card { display: grid; grid-template-columns: 34px 1fr; gap: 2px 10px; align-items: start; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 14px; cursor: pointer; text-decoration: none; color: var(--ink); font-family: inherit; }
.dl-card:hover { border-color: var(--accent); background: var(--accent-soft); }
.dl-card i { grid-row: span 2; font-style: normal; font-size: 22px; line-height: 1.2; }
.dl-card b { font-size: 14px; } .dl-card small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.dl-ftp { border-bottom: 0; margin-top: 10px; border-top: 1px solid var(--line); }
.dl-ftp h4 span { background: var(--ink); }
.dl-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px 12px; }
.dl-wide { grid-column: span 2; } .dl-full { grid-column: 1 / -1; }
.dl-acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }
.dl-msg { margin: 8px 0 0; font-size: 13.5px; min-height: 1em; }
.dl-msg.ok { color: #15803d; } .dl-msg.err { color: #b42318; }
.spin { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; margin-right: 8px; vertical-align: -1px; }
.s-check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; }
@media (max-width: 640px) { .dl-form { grid-template-columns: 1fr 1fr; } }
.upg-list { margin: 10px 0 0; padding-left: 20px; line-height: 1.8; }
.delivered-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: #fff7e0; border-bottom: 1px solid #f3dd9b; color: #5c4400; font-size: 13px; text-align: center; padding: 7px 16px; }
.editor:has(> .delivered-bar) { padding-top: 32px; box-sizing: border-box; }
.dl-keep { margin: 16px 0 0; }
.btn[hidden], .pub-btn[hidden] { display: none !important; }
.dl-free { border-top: 1px solid var(--line); margin-top: 14px; }
.dl-free h4 span { background: #16a34a; font-size: 10px; width: auto; padding: 0 7px; border-radius: 99px; }
.fh-guide { margin-top: 12px; } .fh-guide summary { cursor: pointer; font-weight: 600; font-size: 13.5px; }
.fh-steps { margin: 10px 0 6px; padding-left: 20px; font-size: 13.5px; }
.fh-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; font-size: 13px; line-height: 1.5; }
.fh-cols ol { padding-left: 18px; margin: 6px 0 0; }
.fh-guide .pub-note { font-size: 12.5px; }
@media (max-width: 640px) { .fh-cols { grid-template-columns: 1fr; } }
.dl-first { border-top: 0; margin-top: 8px; padding-top: 10px; }
/* website switcher */
.switcher { position: relative; display: flex; align-items: center; gap: 10px; }
.sw-brand { font-weight: 800; font-size: 15px; color: var(--ink); text-decoration: none; padding-right: 10px; border-right: 1px solid var(--line); }
.sw-btn { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 7px 10px; cursor: pointer; font: inherit; color: var(--ink); }
.sw-btn:hover, .sw-btn[aria-expanded="true"] { border-color: var(--accent); }
.sw-btn b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-btn span { color: var(--muted); font-size: 12px; }
.sw-menu { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 50px -18px rgba(0,0,0,.35); padding: 8px; }
.sw-h { margin: 6px 8px 6px; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.sw-h small { font-weight: 500; }
.sw-list { max-height: 260px; overflow-y: auto; }
.sw-item { display: grid; grid-template-columns: 1fr auto; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.sw-item:hover { background: var(--bg); }
.sw-item.on { background: var(--accent-soft); }
.sw-item b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-item small { grid-column: 1; color: var(--muted); font-size: 12px; }
.sw-item i { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; color: var(--accent); font-weight: 700; }
.sw-new { border-top: 1px solid var(--line); margin-top: 6px; padding: 4px 2px 2px; }
.sw-row { display: flex; gap: 6px; padding: 0 6px; }
.sw-own { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); padding: 6px 8px 2px; }
.sw-all { display: block; border-top: 1px solid var(--line); margin-top: 6px; padding: 9px 10px 4px; font-size: 13px; font-weight: 600; text-decoration: none; }
/* AI credit meter */
.ai-meter { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted, #6b6f76); padding: 8px 16px 0; }
.ai-meter span { white-space: nowrap; font-weight: 600; }
.ai-meter b { white-space: nowrap; font-weight: 600; color: var(--ink, #16181b); }
.ai-bar { flex: 1; height: 7px; border-radius: 99px; background: rgba(0,0,0,.08); overflow: hidden; min-width: 60px; }
.ai-bar i { display: block; height: 100%; background: #16a34a; border-radius: 99px; transition: width .5s; }
.ai-meter.low .ai-bar i { background: #f59e0b; } .ai-meter.out .ai-bar i { background: #dc2626; }
.ai-meter.sm { padding: 0; min-width: 160px; }
.ac-plan .ai-meter { padding: 12px 0 0; max-width: 420px; }
.dl-main { text-align: center; padding: 18px 0 4px; }
.dl-big { font-size: 16px; padding: 15px 26px; }
.dl-sub { font-size: 12.5px; max-width: 520px; margin: 10px auto 0; }
.dl-howto { border-top: 1px solid var(--line); margin-top: 14px; }
.dl-howto h4 span { background: var(--ink); }
.dl-steps { list-style: none; counter-reset: st; padding: 0; margin: 10px 0; }
.dl-steps li { counter-increment: st; position: relative; padding: 8px 0 8px 40px; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; }
.dl-steps li::before { content: counter(st); position: absolute; left: 0; top: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; font-size: 13px; }
.dl-steps strong { display: block; font-size: 14px; }
.dl-steps span b { font-weight: 600; }
.dl-tips { font-size: 12.5px; color: var(--muted); padding-left: 18px; line-height: 1.55; }
/* GoRestyle logo */
.gr-logo { display: inline-flex; align-items: center; gap: 3px; text-decoration: none; color: #0f1a17; font: 700 21px/1 "Plus Jakarta Sans", "Inter", system-ui, sans-serif; letter-spacing: -.03em; }
.gr-logo b, .sw-brand b { display: inline-grid; place-items: center; height: 1.45em; padding: 0 .3em; border-radius: 7px; background: #4338ca; color: #fff; font-weight: 800; letter-spacing: -.02em; }
.sw-brand { text-decoration: none; font: 700 17px/1 "Plus Jakarta Sans", "Inter", system-ui, sans-serif; }
.sw-brand { border-right: 0; padding-right: 0; }
/* payment card */
.pay-card { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 24px; margin: 18px 0 6px; padding: 20px; border-radius: 18px;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #4338ca, #a5b4fc 55%, #f4c95d) border-box; border: 2px solid transparent;
  box-shadow: 0 24px 50px -30px rgba(67,56,202,.55); }
.pay-card.nudge { animation: nudge .5s; }
@keyframes nudge { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.pay-left small { display: block; color: var(--muted); font-size: 12px; margin-top: 8px; text-align: center; }
.pay-shot { position: relative; aspect-ratio: 4 / 3.3; border-radius: 12px; background: #eceae4 center top / cover no-repeat; border: 1px solid var(--line); overflow: hidden; }
.pay-shot span { position: absolute; left: 10px; top: 10px; background: rgba(22,24,27,.82); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 99px; }
.pay-kicker { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #4338ca; }
.pay-price { margin: 6px 0 0; display: flex; align-items: baseline; gap: 8px; }
.pay-price b { font: 600 46px/1 "Fraunces", Georgia, serif; letter-spacing: -.02em; }
.pay-price span { color: var(--muted); font-size: 14px; }
.pay-note { margin: 4px 0 12px; font-size: 13px; color: #4338ca; font-weight: 600; }
.pay-list { list-style: none; margin: 0 0 16px; padding: 0; font-size: 13.5px; }
.pay-list li { position: relative; padding: 5px 0 5px 24px; line-height: 1.4; }
.pay-list li::before { content: "✓"; position: absolute; left: 0; top: 5px; width: 17px; height: 17px; border-radius: 50%; background: #e7f4ed; color: #4338ca; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.pay-btn { width: 100%; padding: 15px 18px; font-size: 16px; border-radius: 12px; background: #4338ca; border-color: #4338ca; }
.pay-btn:hover { background: #18573f; }
.pay-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin: 10px 0 0; font-size: 11.5px; color: var(--muted); }
.pay-trust span::before { content: "• "; color: #a5b4fc; }
.pay-trust span:first-child::before { content: "🔒 "; }
.pay-wait { background: #eef7f2; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; line-height: 1.45; }
.pay-wait b { display: block; color: #4338ca; margin-bottom: 2px; }
.pay-msg { font-size: 13px; background: #fff7e0; border-radius: 8px; padding: 8px 12px; margin: 0 0 10px; }
.pay-msg.err { background: #fdecea; color: #8a1c13; }
.pay-skip { display: block; margin: 10px auto 0; font-size: 12px; color: var(--muted); }
.pay-done { text-align: center; color: #135b3c; font-weight: 600; margin: 14px 0 0; }
.pay-done.big { font-size: 17px; margin: 0 0 14px; }
@media (max-width: 640px) { .pay-card { grid-template-columns: 1fr; } }
.pay-card[hidden], .dl-main[hidden] { display: none !important; }
.pay-inv { text-align: center; margin: 0 0 12px; font-size: 13px; }
/* how-to tour (static/tour.js) */
.help-pill { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 13px; font: 600 12.5px/1 inherit; font-family: inherit; color: var(--ink); cursor: pointer; }
.help-pill:hover { border-color: #4338ca; color: #4338ca; }
.tour { position: fixed; inset: 0; z-index: 9990; }
.tour-block { position: fixed; inset: 0; }
.tour-spot { position: fixed; z-index: 1; border-radius: 12px; pointer-events: none; box-shadow: 0 0 0 2px #fff, 0 0 0 9999px rgba(14, 17, 22, .58);
  transition: top .35s cubic-bezier(.2,.8,.2,1), left .35s cubic-bezier(.2,.8,.2,1), width .35s cubic-bezier(.2,.8,.2,1), height .35s cubic-bezier(.2,.8,.2,1), opacity .2s; }
.tour-spot[style*="opacity:0"] { box-shadow: 0 0 0 9999px rgba(14, 17, 22, .58); }
.tour-card { position: fixed; z-index: 2; width: 360px; max-width: calc(100vw - 32px); background: #fff; color: var(--ink); border-radius: 16px; padding: 20px 22px 18px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.04); font: 14.5px/1.55 Inter, system-ui, sans-serif; outline: none;
  transition: top .35s cubic-bezier(.2,.8,.2,1), left .35s cubic-bezier(.2,.8,.2,1); animation: tour-in .25s ease-out; }
@keyframes tour-in { from { opacity: 0; transform: translateY(6px); } }
.tour-card.center { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 420px; padding: 28px 28px 22px; animation: none; }
.tour-card.dock { left: 16px; right: 16px; bottom: 16px; width: auto; max-width: none; }
.tour-arrow { position: absolute; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); display: none; }
.tour-card.at-right .tour-arrow { display: block; left: -7px; margin-top: -7px; }
.tour-card.at-left .tour-arrow { display: block; right: -7px; margin-top: -7px; }
.tour-card.at-bottom .tour-arrow { display: block; top: -7px; margin-left: -7px; }
.tour-card.at-top .tour-arrow { display: block; bottom: -7px; margin-left: -7px; }
.tour-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.tour-count { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: #4338ca; text-transform: uppercase; }
.tour-x { all: unset; cursor: pointer; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; color: var(--muted); margin-right: -8px; }
.tour-x:hover { background: #f1f0ec; color: var(--ink); }
.tour-card h3 { margin: 0 0 6px; font: 700 18px/1.3 "Plus Jakarta Sans", Inter, system-ui, sans-serif; letter-spacing: -.01em; }
.tour-card.center h3 { font-size: 22px; }
.tour-body { color: #3f434a; }
.tour-body b { color: var(--ink); font-weight: 600; }
.tour-ex { margin: 8px 0 8px; padding: 0; list-style: none; display: grid; gap: 5px; }
.tour-ex li { background: #f3f4ff; border-radius: 8px; padding: 6px 10px; font-size: 13.5px; color: #312e81; }
.tour-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.tour-dots { display: flex; gap: 5px; flex-wrap: wrap; }
.tour-dots i { width: 6px; height: 6px; border-radius: 50%; background: #dedcd6; }
.tour-dots i.done { background: #b9bcf3; } .tour-dots i.on { background: #4338ca; width: 16px; border-radius: 3px; }
.tour-btns { display: flex; gap: 8px; flex: none; }
.tour-btns .btn { padding: 10px 16px; font-size: 14px; }
.tour-next { background: #4338ca; border-color: #4338ca; }
@media (prefers-reduced-motion: reduce) { .tour-spot, .tour-card { transition: none; animation: none; } }
.rv-ask { display: flex; align-items: center; gap: 14px; justify-content: space-between; flex-wrap: wrap; margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: #eef0ff; color: #312e81; text-align: left; }
.rv-ask b { display: block; font-size: 14.5px; } .rv-ask small { color: #4a4d8a; font-size: 12.5px; }
.rv-ask .btn { background: #4338ca; border-color: #4338ca; color: #fff; }
.editor > .cf-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 51; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; background: #eef0ff; color: #312e81; padding: 8px 16px; font-size: 13.5px; }
.cf-resend { border: 1px solid #4338ca; background: #fff; color: #4338ca; border-radius: 999px; padding: 4px 12px; font: 600 12.5px Inter, sans-serif; cursor: pointer; }
.editor:has(> .cf-bar) { padding-top: 40px; box-sizing: border-box; }
.stock-search { display: flex; gap: 8px; margin: 6px 0 10px; }
.stock-search .input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; font: 14px Inter, system-ui, sans-serif; }
.badges b.stock { background: #4338ca; color: #fff; }
#stock-grid:empty { display: none; }
/* progress bars for style previews and new designs */
.job-prog { background: #eef0ff; border-radius: 12px; padding: 11px 13px 12px; margin: 4px 0 12px; }
.jp-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-size: 12.5px; color: #312e81; margin-bottom: 8px; }
.jp-top b { font-weight: 600; } .jp-top span { color: #4a4d8a; white-space: nowrap; font-variant-numeric: tabular-nums; }
.jp-bar { height: 6px; border-radius: 99px; background: #d9dcfb; overflow: hidden; }
.jp-bar i { display: block; height: 100%; width: 0; background: #4338ca; border-radius: inherit; transition: width .5s ease-out; }
.prop-ph .thumb { display: grid; place-items: center; background: #f1f0ec; border-radius: 10px; aspect-ratio: 4 / 5; border: 1px dashed #d5d3cc; }
.prop-ph .meta { color: var(--muted); font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .jp-bar i { transition: none; } }
