/* SiteMaker app styles (the client sites carry their own CSS).
   Brand colors were sampled from the original logo (assets/smlogo.png); the header now uses assets/sitemaker-logo.gif. */
:root {
  --navy: #1c1a5b;
  --navy-deep: #12113f;
  --blue: #1775ba;
  --cyan: #16c3ed;
  --orange: #ff9228;
  --orange-deep: #f57a1f;
  --grad: linear-gradient(135deg, var(--blue), var(--cyan));
  --grad-btn: linear-gradient(135deg, var(--navy), var(--blue));
  --ink: var(--navy);
  --muted: #5b6283;
  --line: #e3e7f0;
  --canvas: #f6f8fc;
  --white: #fff;
  --ring: rgba(22, 195, 237, 0.22);
  --shadow: 0 1px 2px rgba(28, 26, 91, 0.06), 0 8px 24px -12px rgba(28, 26, 91, 0.18);
  --shadow-lg: 0 30px 60px -30px rgba(28, 26, 91, 0.45);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.6 "Inter", ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; min-width: 0; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.wrap { max-width: 1152px; margin: 0 auto; padding: 0 20px; }
.page { padding-top: 48px; padding-bottom: 72px; }
.narrow { max-width: 420px; }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 20px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.grid2 { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.grid3 { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.grid4 { display: grid; gap: 24px; grid-template-columns: repeat(4, 1fr); }
.stack > * + * { margin-top: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.topnav { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.9); backdrop-filter: saturate(1.5) blur(12px); }
.topnav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--blue), var(--cyan) 55%, var(--orange)); opacity: 0.9; }
.topnav-in { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brandmark { display: flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
.brandmark img { display: block; height: 48px; width: auto; }
/* The logo GIF (500×200, animated cursor) has wide white margins: show just the word and cursor.
   Multiply blending drops its white background onto any light header. */
.logo-crop { --h: 38px; display: block; height: var(--h); width: calc(var(--h) * 4.55); overflow: hidden; }
.brandmark .logo-crop img { height: calc(var(--h) * 2.128); width: auto; max-width: none; margin: calc(var(--h) * -0.553) 0 0 calc(var(--h) * -0.372); mix-blend-mode: multiply; }
.topnav nav { display: flex; align-items: center; gap: 6px; }
.navlink { border: 0; background: none; font: inherit; font-weight: 500; color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.navlink:hover { color: var(--blue); }
.sitefoot { border-top: 1px solid var(--line); padding: 32px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.sitefoot a { color: inherit; }
.dropzone { border-radius: 14px; transition: outline-color .15s; outline: 2px dashed transparent; outline-offset: 6px; }
.dropzone.over { outline-color: var(--accent, #f57a1f); background: rgba(245, 122, 31, 0.04); }
.ed-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.legal { max-width: 760px; margin: 0 auto; line-height: 1.7; }
.legal h1 { margin-bottom: 4px; }
.legal-intro { font-size: 1.08rem; margin-top: 18px; }
.legal-toc { margin: 24px 0 8px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafd; }
.legal-toc p { margin: 0 0 6px; }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2 220px; column-gap: 28px; font-size: 14.5px; }
.legal-sec { padding-top: 26px; scroll-margin-top: 90px; }
.legal-sec h2 { font-size: 1.25rem; margin: 0 0 8px; }
.legal-sec p { margin: 0 0 12px; }
.legal-sec ul { padding-left: 20px; }
.legal-sec li { margin-bottom: 6px; }
.legal-other { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }

/* buttons + fields */
.btn, .btn-ghost, .btn-accent { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 11px 22px; font: 600 14px/1.4 inherit; font-family: inherit; text-decoration: none; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s, opacity 0.15s; }
.btn { background: var(--grad-btn); color: #fff; border: 0; box-shadow: 0 8px 20px -10px rgba(23, 117, 186, 0.8); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(23, 117, 186, 0.9); }
.btn-accent { background: linear-gradient(135deg, #ffab39, var(--orange)); color: var(--navy); border: 0; box-shadow: 0 10px 24px -10px rgba(255, 146, 40, 0.9); }
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(255, 146, 40, 1); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: 7px 16px; }
.btn[disabled], .btn-ghost[disabled], .btn-accent[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }
.field { display: block; width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 14px; font: inherit; font-size: 15px; color: var(--ink); outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.field:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px var(--ring); }
textarea.field { resize: vertical; }
.label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; }
.hint { color: var(--muted); font-size: 12px; margin-top: 6px; }
.legend { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
fieldset { border: 0; padding: 0; margin: 0; }
.alert { border-radius: 12px; padding: 12px 16px; font-size: 14px; }
.alert-error { background: #fef2f2; color: #b91c1c; }
.alert-ok { background: #ecfdf5; color: #065f46; }
.alert-warn { background: #fffbeb; color: #92400e; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.pad { padding: 24px; }
.choice { cursor: pointer; padding: 20px; transition: border-color 0.15s, box-shadow 0.15s; display: block; }
.choice:hover { border-color: var(--cyan); }
.choice.selected, .choice:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 4px var(--ring); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }

/* badges + steps */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; box-shadow: inset 0 0 0 1px currentColor; }
.badge-live { background: #ecfdf5; color: #047857; }
.badge-awaiting_content { background: #fffbeb; color: #92400e; }
.badge-pending_payment { background: #f4f4f5; color: #3f3f46; }
.badge-failed, .badge-suspended { background: #fef2f2; color: #b91c1c; }
.steps { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0 0 32px; font-size: 14px; color: var(--muted); }
.steps li { display: flex; align-items: center; gap: 8px; }
.steps span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 12px; }
.steps .done span { background: var(--grad); color: #fff; border-color: transparent; }
.steps .current { color: var(--ink); font-weight: 500; }

/* landing */
.hero { padding: 72px 0 80px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); max-width: 14em; }
.lead { font-size: 18px; color: var(--muted); max-width: 34em; margin-top: 22px; }
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.thumb { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.thumb iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: none; }
.price { font-size: 2.4rem; font-weight: 600; letter-spacing: -0.03em; }
.per { font-size: 0.45em; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; font-size: 14px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: rgba(22, 195, 237, 0.15); color: var(--blue); font-size: 11px; font-weight: 700; }

/* dashboard */
.sitecard { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; }
.sitecard + .sitecard { margin-top: 14px; }
.folder { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; background: #f4f4f5; border-radius: 6px; padding: 2px 6px; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th, table.list td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }

/* editor */
.editor { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
/* Editor navigation: a grouped sidebar beside the panel and preview. */
.wrap-wide { max-width: 1400px; }
.ed-shell { display: grid; grid-template-columns: 218px minmax(0, 1fr); gap: 36px; align-items: start; }
.ed-side { position: sticky; top: 92px; max-height: calc(100vh - 108px); overflow-y: auto; scrollbar-width: thin; display: flex; flex-direction: column; gap: 18px; padding: 16px 12px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 1px 2px rgba(28, 26, 91, 0.04); }
.ed-list { display: flex; flex-direction: column; gap: 18px; }
.ed-mbar, .pv-fab, .pv-close { display: none; }
/* Simple / Advanced view switch beside the site name */
.ed-head { align-items: center; }
.ed-view { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ed-vswitch { display: inline-flex; padding: 5px; gap: 4px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 26px -16px rgba(28, 26, 91, 0.5); }
.ed-vswitch button { display: grid; gap: 1px; min-width: 132px; padding: 9px 18px; border: 0; border-radius: 12px; background: none; font: inherit; text-align: left; color: var(--navy); cursor: pointer; transition: background 0.15s, color 0.15s; }
.ed-vswitch button b { font-size: 15px; font-weight: 700; }
.ed-vswitch button span { font-size: 12px; color: var(--muted); }
.ed-vswitch button:hover:not(.on) { background: var(--canvas); }
.ed-vswitch button.on { background: var(--grad-btn); color: #fff; box-shadow: 0 8px 18px -10px rgba(23, 117, 186, 0.9); }
.ed-vswitch button.on span { color: rgba(255, 255, 255, 0.85); }
.ed-vnote { margin: 0; font-size: 12px; color: var(--muted); }
.ed-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px dashed #b9cde4; border-radius: 14px; background: rgba(23, 117, 186, 0.05); font-size: 14px; color: #4a5070; }
.ed-more b { color: var(--navy); }
@media (max-width: 640px) {
  .ed-view { margin-left: 0; width: 100%; align-items: stretch; }
  .ed-vswitch { display: flex; }
  .ed-vswitch button { flex: 1; min-width: 0; text-align: center; }
  .ed-vnote { text-align: center; }
}
.ed-group { display: grid; gap: 2px; }
.ed-gtitle { margin: 0 0 6px; padding: 0 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: #9aa1bd; }
.ed-item { position: relative; display: flex; align-items: center; gap: 11px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 14px; color: #4a5070; text-align: left; cursor: pointer; transition: background 0.15s, color 0.15s; }
.ed-item:hover { background: var(--canvas); color: var(--navy); }
.ed-item.active { background: rgba(23, 117, 186, 0.09); color: var(--navy); font-weight: 600; }
.ed-item.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blue); }
.ed-ic { width: 18px; height: 18px; flex: none; color: #8a91ae; }
.ed-item:hover .ed-ic, .ed-item.active .ed-ic { color: var(--blue); }
.ed-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-lock { width: 13px; height: 13px; flex: none; color: #b7bdd3; }
.ed-n { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--canvas); font-size: 11px; font-weight: 600; color: var(--muted); }
.ed-item.active .ed-n { background: var(--blue); color: #fff; }
.ed-pubwrap { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ed-publish { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 13px; border: 0; border-radius: 14px; font: inherit; text-align: left; cursor: pointer; transition: filter 0.15s, transform 0.15s; }
.ed-publish .ed-ic { width: 22px; height: 22px; color: currentColor; }
.ed-publish .ed-label { display: grid; gap: 1px; white-space: normal; }
.ed-publish b { font-size: 15px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.ed-publish small { font-size: 12px; font-weight: 500; line-height: 1.3; opacity: 0.9; }
.ed-publish.is-pending { background: linear-gradient(135deg, #ff9228, #f2601d); color: #fff; box-shadow: 0 12px 24px -12px rgba(242, 96, 29, 0.9); }
.ed-publish.is-pending:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.ed-publish.is-done { background: #ecf8f1; color: #16794a; box-shadow: inset 0 0 0 1px #bfe6cf; }
.ed-publish.is-done:hover { background: #e2f4ea; }
.ed-publish:disabled { cursor: default; opacity: 0.85; }
.ed-visit { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; padding: 9px 12px; border-radius: 12px; color: var(--ink, #1c1a5b); font-weight: 600; font-size: 14px; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); }
.ed-visit .ed-ic { width: 18px; height: 18px; flex: none; }
.ed-visit .ed-label { display: inline; flex: 0 1 auto; white-space: nowrap; }
.ed-visit:hover { background: #f2f5fb; }
.ed-publish.active { outline: 3px solid rgba(23, 117, 186, 0.25); outline-offset: 2px; }
/* Unpublished changes: Publish (and on phones the save bar button) pulses until the site is updated. */
@keyframes ed-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 146, 40, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(255, 146, 40, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 146, 40, 0); }
}
.needs-publish .ed-publish { position: relative; animation: ed-pulse 1.8s ease-out infinite; }
@media (max-width: 960px) {
  .needs-publish #save-actions .btn:not(:disabled):last-child, .needs-publish #save-actions .btn-accent:not(:disabled):last-child { animation: ed-pulse 1.8s ease-out infinite; }
  .needs-publish .ed-current { position: relative; }
  .needs-publish .ed-current::after { content: ""; position: absolute; top: -3px; right: -3px; width: 11px; height: 11px; border-radius: 50%; background: #ff9228; border: 2px solid #fff; }
}
@media (prefers-reduced-motion: reduce) {
  .needs-publish .ed-publish, .needs-publish #save-actions .btn:not(:disabled):last-child, .needs-publish #save-actions .btn-accent:not(:disabled):last-child { animation: none; }
  .needs-publish .ed-publish { box-shadow: 0 0 0 3px rgba(255, 146, 40, 0.55); }
}
/* Narrower screens: an icon rail (names show on hover). */
@media (max-width: 1180px) and (min-width: 961px) {
  .ed-shell { grid-template-columns: 64px minmax(0, 1fr); gap: 24px; }
  .ed-side { padding: 12px 8px; gap: 10px; align-items: center; }
  .ed-gtitle, .ed-label, .ed-lock { display: none; }
  .ed-group { gap: 4px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .ed-group:last-of-type { border-bottom: 0; }
  .ed-item { justify-content: center; width: 44px; height: 40px; padding: 0; }
  .ed-item.active::before { left: -8px; }
  .ed-ic { width: 20px; height: 20px; }
  .ed-pubwrap { padding-bottom: 10px; }
  .ed-publish .ed-label { display: none; }
  .ed-publish { justify-content: center; width: 44px; height: 44px; padding: 0; }
}
.panel[hidden] { display: none; }
.savebar { position: sticky; bottom: 0; margin-top: 40px; padding: 16px 0; border-top: 1px solid var(--line); background: rgba(250, 250, 249, 0.95); backdrop-filter: blur(8px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.repeat { display: grid; gap: 10px; }
.repeat .item { padding: 14px; display: grid; gap: 8px; }
.inline { display: flex; gap: 8px; }
.x { flex: none; width: 42px; padding: 0; }
.opt { text-align: left; padding: 12px 14px; font: inherit; background: #fff; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.opt:hover { border-color: var(--cyan); }
.opt.selected { border-color: var(--blue); box-shadow: 0 0 0 4px var(--ring); }
.opt b { display: block; font-weight: 500; font-size: 14px; }
.opt span { display: block; color: var(--muted); font-size: 12px; }
.designs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dcard { display: block; text-align: left; padding: 8px 8px 12px; font: inherit; background: #fff; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; }
.dcard:hover { border-color: var(--cyan); }
.dcard.selected { border-color: var(--blue); box-shadow: 0 0 0 4px var(--ring); }
.dthumb { display: block; position: relative; height: 150px; overflow: hidden; border-radius: 8px; background: #f1f3f7; margin-bottom: 10px; }
.dthumb iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 1200px; border: 0; transform: scale(0.125); transform-origin: 0 0; pointer-events: none; }
.dcard b { display: block; font-weight: 600; font-size: 14px; padding: 0 4px; }
.dthumb .mine { position: absolute; left: 6px; top: 6px; z-index: 1; font-style: normal; background: var(--blue); color: #fff; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.dcard > span:last-child { display: block; color: var(--muted); font-size: 12px; padding: 2px 4px 0; line-height: 1.4; }
@media (max-width: 640px) { .designs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .dthumb { height: 120px; } .dthumb iframe { transform: scale(0.112); } .dcard { padding: 6px 6px 10px; } .dcard b { font-size: 13px; } .dcard > span:last-child { display: none; } }
.color { display: flex; gap: 8px; align-items: center; }
.color input[type="color"] { width: 54px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 3px; cursor: pointer; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 2px dashed var(--line); border-radius: 18px; padding: 34px 20px; cursor: pointer; font-size: 14px; }
.drop:hover, .drop.over { border-color: var(--cyan); background: #fff; }
.imgslot { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.imgbox { position: relative; width: 150px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: repeating-conic-gradient(#f4f4f5 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.imgbox img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.imgbox.contain img { object-fit: contain; padding: 10px; }
.imgbox button { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.92); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); cursor: pointer; }
.gallerygrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallerygrid .imgbox { width: 100%; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.checks li:last-child { border-bottom: 0; }
.ok { color: #047857; } .miss { color: #b45309; }
.previewpane { position: sticky; top: 92px; align-self: start; }
.browser { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); }
.browserbar { display: flex; gap: 6px; padding: 10px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.browserbar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browserbar span { min-width: 0; margin-left: 10px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame { position: relative; height: 70vh; overflow: hidden; background: #f4f4f5; }
.frame iframe { position: absolute; top: 0; left: 0; border: 0; background: #fff; height: 100%; width: 100%; transform-origin: 0 0; }
.toggle { display: flex; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 2px; font-size: 12px; }
.toggle button { border: 0; background: none; font: inherit; padding: 4px 12px; border-radius: 999px; color: var(--muted); cursor: pointer; }
.toggle button.on { background: var(--grad-btn); color: #fff; }

@media (max-width: 960px) {
  .editor { grid-template-columns: minmax(0, 1fr); }
  /* Tablets and phones: a bar with the current section, a menu of all sections, and previous/next. */
  .ed-shell { display: block; }
  .ed-side { position: sticky; top: 72px; z-index: 50; display: block; max-height: none; overflow: visible; margin: 0 -20px 22px; padding: 8px 16px; border-radius: 0; border-width: 0 0 1px; background: rgba(246, 248, 252, 0.97); backdrop-filter: saturate(1.4) blur(10px); box-shadow: none; }
  .ed-mbar { display: flex; gap: 8px; align-items: center; }
  .ed-current { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: 15px; font-weight: 600; color: var(--navy); cursor: pointer; text-align: left; }
  .ed-current .ed-ic { color: var(--blue); }
  .ed-count { font-size: 12px; font-weight: 500; color: var(--muted); }
  .ed-chev { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform 0.2s; }
  .ed-side.open .ed-chev { transform: rotate(180deg); }
  .ed-step { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--navy); cursor: pointer; }
  .ed-step svg { width: 20px; height: 20px; }
  .ed-step:disabled { opacity: 0.35; cursor: default; }
  .ed-list { display: none; position: absolute; left: 12px; right: 12px; top: calc(100% + 6px); max-height: min(70vh, 560px); overflow-y: auto; padding: 14px 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px -18px rgba(28, 26, 91, 0.45), 0 0 0 100vmax rgba(10, 14, 40, 0.28); }
  .ed-side.open .ed-list { display: flex; }
  .ed-item { padding: 11px 10px; font-size: 15px; }
  .ed-item.active::before { left: -12px; }
  /* The live preview is a button that opens it full screen. */
  .previewpane { display: none; }
  .editor.no-preview + .pv-fab { display: none; }
  .pv-fab { display: inline-flex; align-items: center; gap: 8px; position: fixed; right: 16px; bottom: 84px; z-index: 40; padding: 12px 18px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; font: inherit; font-size: 14px; font-weight: 600; box-shadow: 0 14px 30px -10px rgba(28, 26, 91, 0.6); cursor: pointer; }
  body.pv-open { overflow: hidden; }
  body.pv-open .previewpane { display: block; position: fixed; inset: 0; z-index: 70; padding: 12px; background: #f6f8fc; overflow: auto; }
  body.pv-open .frame { height: calc(100vh - 110px); height: calc(100dvh - 110px); }
  body.pv-open .pv-fab { display: none; }
  .pv-close { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font: inherit; font-size: 15px; color: var(--navy); cursor: pointer; }
  .grid3 { grid-template-columns: 1fr; }
  .previewpane { position: static; }
  .grid4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .swatches { grid-template-columns: repeat(2, 1fr); }
  .hide-sm { display: none; }
  .brandmark img { height: 38px; }
  .logo-crop { --h: 30px; }
  .grid2, .grid3, .grid4 { grid-template-columns: 1fr; }
  .gallerygrid { grid-template-columns: 1fr 1fr; }
  .page { padding-top: 32px; }
}

/* ---------- brand: landing page ---------- */
.btn-lg { padding: 15px 28px; font-size: 15.5px; }
.btn-glass { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 11px 22px; font: 600 14px/1.4 inherit; font-family: inherit; text-decoration: none; color: #fff; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.35); transition: background 0.15s; }
.btn-glass:hover { background: rgba(255, 255, 255, 0.2); }
.btn-glass.btn-lg { padding: 15px 28px; font-size: 15.5px; }
.grad-text { background: linear-gradient(90deg, var(--cyan), #7fe3f7 45%, var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-x { position: relative; overflow: hidden; color: #fff; padding: 96px 0 110px;
  background: radial-gradient(900px 500px at 85% 10%, rgba(22, 195, 237, 0.35), transparent 60%),
              radial-gradient(700px 500px at 10% 100%, rgba(255, 146, 40, 0.28), transparent 60%),
              linear-gradient(135deg, var(--navy-deep), var(--navy) 45%, #1d3d7c); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-x h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); line-height: 1.05; letter-spacing: -0.035em; color: #fff; margin-top: 22px; }
.hero-x .lead { font-size: 18.5px; color: rgba(255, 255, 255, 0.82); max-width: 32em; margin-top: 22px; }
.pill { display: inline-block; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); font-size: 13px; font-weight: 500; color: #bfefff; }
.hero-note { margin-top: 22px; font-size: 13.5px; color: rgba(255, 255, 255, 0.65); }
.hero-shot { position: relative; height: 380px; }
.hero-shot .thumb { border: 0; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6); }
.shot-back { position: absolute; right: 0; top: 0; width: 78%; transform: rotate(4deg); opacity: 0.85; }
.shot-front { position: absolute; left: 0; bottom: 0; width: 84%; transform: rotate(-3deg); }
.shot-front .thumb { outline: 6px solid rgba(255, 255, 255, 0.12); }
.pixels i { position: absolute; display: block; width: 18px; height: 18px; border-radius: 4px; opacity: 0.9; }
.pixels i:nth-child(1) { top: 12%; left: 48%; background: var(--orange); }
.pixels i:nth-child(2) { top: 18%; left: 51%; width: 12px; height: 12px; background: var(--cyan); }
.pixels i:nth-child(3) { top: 70%; left: 4%; width: 26px; height: 26px; background: var(--cyan); opacity: 0.5; }
.pixels i:nth-child(4) { top: 8%; right: 6%; background: #ffab39; }
.pixels i:nth-child(5) { bottom: 10%; right: 42%; width: 12px; height: 12px; background: var(--orange); }
.pixels i:nth-child(6) { top: 40%; left: 2%; width: 10px; height: 10px; background: #fff; opacity: 0.4; }
.pixels i:nth-child(7) { bottom: 18%; right: 3%; width: 22px; height: 22px; background: var(--blue); }
.section-x { padding-top: 96px; padding-bottom: 96px; }
.tint { background: linear-gradient(180deg, #eef4fb, #f6f8fc); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center-head { text-align: center; max-width: 640px; margin: 0 auto; }
.kicker { font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); }
.title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; margin-top: 10px; }
.step-card { padding: 34px 30px; transition: transform 0.2s, box-shadow 0.2s; }
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-card h3 { font-size: 1.2rem; margin-top: 22px; }
.num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #fff; font-weight: 800; font-size: 1.1rem; }
.num-blue { background: linear-gradient(135deg, var(--navy), var(--blue)); }
.num-cyan { background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.num-orange { background: linear-gradient(135deg, #ffab39, var(--orange-deep)); color: var(--navy); }
.tpl-card { display: block; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.tpl-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--cyan); }
.tpl-card .thumb { border: 0; }
.tpl-meta { padding: 14px 6px 6px; }
.tpl-meta b { display: block; font-size: 1.05rem; }
.tpl-meta span { display: block; color: var(--muted); font-size: 13px; }
.pricing { align-items: stretch; }
.price-card { position: relative; padding: 34px 30px; display: flex; flex-direction: column; }
.price-card .btn, .price-card .btn-accent { margin-top: auto; }
.price-card .checklist { margin-bottom: 28px; }
.price-card.featured { background: linear-gradient(160deg, var(--navy), #1d3d7c); color: #fff; border: 0; box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.price-card.featured .plan-name, .price-card.featured .price { color: #fff; }
.price-card.featured .monthly, .price-card.featured .plan-sum, .price-card.featured .per { color: rgba(255, 255, 255, 0.75); }
.price-card.featured .checklist li::before { background: rgba(22, 195, 237, 0.25); color: var(--cyan); }
.ribbon { position: absolute; top: 18px; right: 18px; padding: 4px 11px; border-radius: 999px; background: linear-gradient(135deg, #ffab39, var(--orange)); color: var(--navy); font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; }
.plan-name { display: block; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.price-card .price, .plan-choice .price { display: block; font-size: 2.6rem; font-weight: 800; letter-spacing: -0.035em; color: var(--ink); margin-top: 10px; line-height: 1.1; }
.monthly { display: block; color: var(--blue); font-weight: 600; font-size: 14px; margin-top: 2px; }
.plan-sum { display: block; color: var(--muted); margin-top: 14px; }
.cta-x { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 56px; border-radius: 28px; color: #fff;
  background: radial-gradient(600px 300px at 90% 0%, rgba(22, 195, 237, 0.45), transparent 60%), linear-gradient(135deg, var(--navy), #1d3d7c); }
.cta-x h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; }
.cta-x p { color: rgba(255, 255, 255, 0.78); margin-top: 8px; }
.cta-x > * { position: relative; }
.cta-x .pixels { position: absolute; inset: 0; }

/* ---------- plan + account page ---------- */
.section-title { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; font-weight: 700; margin-bottom: 20px; }
.section-title span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--grad); color: #fff; font-size: 13px; font-weight: 800; }
.plans { gap: 22px; align-items: stretch; }
.plan-choice { position: relative; padding: 28px 26px 24px; display: flex; flex-direction: column; }
.plan-choice .price { font-size: 2.3rem; }
.plan-choice .checklist { font-size: 13.5px; margin: 18px 0 20px; }
.plan-choice .pick { margin-top: auto; text-align: center; padding: 9px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); border: 1px dashed var(--line); }
.plan-choice:has(input:checked) .pick { background: var(--grad-btn); color: #fff; border: 0; }
.plan-choice .pick::before { content: "Choose"; }
.plan-choice:has(input:checked) .pick::before { content: "✓ Selected"; }
.plan-choice.is-current { border-color: var(--blue); box-shadow: 0 0 0 4px var(--ring); }
.plan-action { margin-top: auto; }
.ribbon-blue { background: var(--grad); color: #fff; }
.alert-warn a, .alert-ok a { color: inherit; font-weight: 600; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.swatch { display: flex; flex-direction: column; gap: 6px; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px; font: inherit; font-size: 12px; color: var(--muted); cursor: pointer; }
.swatch:hover { border-color: var(--cyan); color: var(--ink); }
.swatch span { display: flex; gap: 3px; padding: 6px; border-radius: 8px; width: 100%; justify-content: center; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.swatch i { width: 16px; height: 16px; border-radius: 50%; }
@media (max-width: 640px) { .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stock-note { margin: 0; font-size: 12.5px; color: #8a5a00; background: #fff6e6; border: 1px solid #ffe2b3; border-radius: 10px; padding: 7px 10px; }
.upsell { background: linear-gradient(135deg, #eef7fd, #fff); border-color: #bfe6f6; }
.upsell .btn-accent { display: inline-flex; }
.buybox { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; background: linear-gradient(135deg, #fff7ec, #fff); border-color: #ffd7a8; }
.ed-card summary { display: flex; justify-content: space-between; gap: 12px; align-items: center; cursor: pointer; list-style: none; }
.ed-card summary::-webkit-details-marker { display: none; }
.ed-card summary::after { content: "▾"; color: var(--muted); }
.ed-card[open] summary::after { content: "▴"; }
.ed-card summary b { flex: 1; font-weight: 600; }
.ed-card .order { display: flex; gap: 4px; }
.ed-card .order .x { width: 30px; height: 30px; padding: 0; font-size: 13px; }
.ed-card.is-child { margin-left: 22px; border-left: 3px solid var(--cyan); }
.pv-page select { padding: 5px 10px; font-size: 13px; width: auto; max-width: 220px; }
.niche-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nchip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink); transition: border-color .15s, background .15s, color .15s; }
.nchip:hover { border-color: var(--cyan); color: var(--blue); }
.nchip.on { background: var(--grad-btn); color: #fff; border-color: transparent; }
.tpl-pick { position: relative; }
.tpl-pick .ribbon { z-index: 2; }
.startgrid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.stack-lg > * + * { margin-top: 24px; }
.form-card { padding: 30px 32px; }
.summary { position: sticky; top: 96px; }
.summary-card { padding: 20px; }
.summary-card .row { gap: 8px; font-size: 14px; }
.total { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 1.05rem; font-weight: 700; }
.total b { font-size: 1.5rem; letter-spacing: -0.02em; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-shot { display: none; }
  .hero-x .pixels i:nth-child(1), .hero-x .pixels i:nth-child(2), .hero-x .pixels i:nth-child(5), .hero-x .pixels i:nth-child(6) { display: none; }
  .hero-x .pixels i:nth-child(3) { top: auto; bottom: 4%; }
  .startgrid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .price-card.featured { transform: none; }
}
@media (max-width: 640px) {
  .hero-x { padding: 64px 0 72px; }
  .section-x { padding-top: 64px; padding-bottom: 64px; }
  .cta-x { padding: 36px 26px; }
  .form-card { padding: 24px 20px; }
}

/* Unsplash photo picker */
.or-unsplash { display: flex; align-items: center; gap: 12px; margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.usp { width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border: 0; border-radius: 18px; padding: 20px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.45); }
.usp::backdrop { background: rgba(10, 14, 40, 0.55); }
.usp-head { display: flex; gap: 8px; align-items: center; }
.usp-head .field { flex: 1; }
.usp-msg { margin: 10px 2px; min-height: 1.2em; }
.usp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; max-height: 60vh; overflow-y: auto; }
.usp-item { position: relative; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: #eef1f6; cursor: pointer; aspect-ratio: 3 / 2; }
.usp-item:hover, .usp-item:focus-visible { border-color: var(--blue); }
.usp-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.usp-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 5px; font-size: 11.5px; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, 0.6)); }
.usp-item:disabled { opacity: 0.6; cursor: wait; }
.usp-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 12px; }

.imgslot .inline, .inline.mt-2 { flex-wrap: wrap; }
.usp [hidden] { display: none !important; }

/* Animations add-on card */
.anim-card { background: linear-gradient(135deg, #fff, #f3f9ff); border-color: #cfe6f7; }
.anim-card .alert { margin: 0 0 12px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; flex: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { width: 50px; height: 28px; border-radius: 999px; background: #cbd5e1; position: relative; transition: background 0.2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); transition: transform 0.2s; }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:focus-visible + span { outline: 3px solid var(--ring); outline-offset: 2px; }
.switch b { font-weight: 600; font-size: 14px; min-width: 26px; }

/* Messages tab: full width (no preview) and topic chips */
.editor.no-preview { grid-template-columns: minmax(0, 1fr); }
.editor.no-preview .previewpane { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chip { font: inherit; font-size: 13px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--cyan); }
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip.on::before { content: "✓ "; }

/* Category picker: search + group filter */
.cat-tools { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.cat-tools .niche-chips { gap: 8px; }
.cat-search { flex: none; max-width: 640px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); box-shadow: var(--shadow); }
.cat-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--ring); }
.cat-search input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 15px; padding: 13px 0; background: transparent; color: var(--ink); min-width: 0; }
button.nchip { font: inherit; font-size: 14px; cursor: pointer; }
.tpl-card[hidden] { display: none; }
@media (max-width: 640px) { .cat-tools .niche-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; } .cat-tools .niche-chips::-webkit-scrollbar { display: none; } .cat-tools .nchip { flex: none; } }

/* Category cards: show plainly that each holds several designs */
.cat-card { position: relative; margin: 14px 14px 0 0; box-shadow: 8px -8px 0 -1px #fff, 8px -8px 0 0 var(--line), 15px -15px 0 -2px #fff, 15px -15px 0 -1px var(--line), var(--shadow); }
.cat-card:hover { box-shadow: 8px -8px 0 -1px #fff, 8px -8px 0 0 var(--cyan), 15px -15px 0 -2px #fff, 15px -15px 0 -1px var(--cyan), var(--shadow-lg); }
.cat-thumb { position: relative; }
.cat-badge { position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--grad-btn); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.45); }
.cat-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.cat-meta .cat-cta { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: color-mix(in srgb, var(--blue) 10%, #fff); color: var(--blue); font-size: 13.5px; font-weight: 600; transition: background 0.2s, color 0.2s; }
.cat-card:hover .cat-cta { background: var(--grad-btn); color: #fff; }

/* Wording tab */
.wd-list { display: grid; gap: 4px; margin-top: 8px; }
.wd-row { padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; }
.wd-row.changed { background: #f3f9ff; border-color: #cfe6f7; }
.wd-orig { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.wd-row.changed .wd-orig { text-decoration: line-through; }

/* Keep-your-message-library choice when leaving Executive */
.keep-dialog { width: min(520px, calc(100vw - 32px)); border: 0; border-radius: 18px; padding: 28px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.45); }
.keep-dialog::backdrop { background: rgba(10, 14, 40, 0.55); }
.keep-dialog h2 { font-size: 1.35rem; }
.keep-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; }

/* Toolbar text editor */
.rt { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.rt:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--ring); }
.rt-bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); background: #f8fafc; position: sticky; top: 0; z-index: 1; }
.rt-b { font: inherit; font-size: 13px; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; }
.rt-b:hover { background: #e8eef6; }
.rt-area { padding: 14px 16px; outline: none; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; max-height: 70vh; overflow-y: auto; }
.rt-area h2 { font-size: 1.35rem; margin: 0.8em 0 0.3em; } .rt-area h3 { font-size: 1.1rem; margin: 0.8em 0 0.3em; }
.rt-area p { margin: 0 0 0.7em; } .rt-area ul, .rt-area ol { margin: 0 0 0.7em; padding-left: 1.4em; }
.rt-area blockquote { margin: 0.6em 0; padding-left: 14px; border-left: 3px solid var(--cyan); color: var(--muted); }
.rt-area a { color: var(--blue); }
.rt-v, .rt-i { position: relative; margin: 10px 0; padding: 12px 40px 12px 14px; border-radius: 10px; background: #eef4fb; color: var(--ink); font-size: 13px; user-select: none; }
.rt-i { padding: 6px; display: inline-block; max-width: 100%; } .rt-i img { max-height: 220px; border-radius: 6px; display: block; }
.rt-x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); }
.bl-row { align-items: center; gap: 12px; } .bl-row p { margin: 2px 0 0; }
.keep-list { display: grid; gap: 8px; margin-top: 14px; }
.keep-row { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.keep-row input { margin-top: 4px; }

/* Store tab */
.sp-thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--line); flex: none; display: inline-block; }
.order-head { width: 100%; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; gap: 12px; flex-wrap: wrap; }
label.chip:focus-within { outline: 2px solid var(--cyan); outline-offset: 2px; }
.vt-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.vt { width: 100%; border-collapse: collapse; font-size: 14px; }
.vt th, .vt td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.vt thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #f8fafc; }
.vt tbody tr:last-child th, .vt tbody tr:last-child td { border-bottom: 0; }
.vt tbody th { font-weight: 600; white-space: nowrap; }
.vt .field { min-width: 90px; padding: 8px 10px; }
.dcard.locked { opacity: .72; }
.dcard.locked:hover { opacity: 1; }
.dthumb .lock { position: absolute; top: 8px; left: 8px; z-index: 2; background: rgba(15, 23, 42, .82); color: #fff; font-style: normal; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px; }
/* SEO tab */
.gprev { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-family: Arial, sans-serif; }
.gprev .gp-u { font-size: 12px; color: #202124; overflow-wrap: anywhere; }
.gprev .gp-t { font-size: 18px; color: #1a0dab; line-height: 1.3; }
.gprev .gp-d { font-size: 13px; color: #4d5156; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.seo-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.seo-img { display: grid; gap: 4px; padding: 6px; border: 2px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; text-align: center; }
.seo-img img, .seo-img > span { width: 100%; aspect-ratio: 1.6; object-fit: cover; border-radius: 6px; background: #f1f5f9; display: grid; place-items: center; font-size: 11px; color: var(--muted); }
.seo-img small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seo-img.on { border-color: var(--blue); }
.seo-alt { display: flex; gap: 10px; align-items: center; }
.seo-alt img { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; flex: none; }
.seo-code { background: #f1f5f9; padding: 2px 6px; border-radius: 6px; font-size: 12px; overflow-wrap: anywhere; }
.seo-steps { padding-left: 18px; display: grid; gap: 6px; }
/* Partner portal */
.partner-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.partner-stats .card { display: grid; gap: 4px; }
.partner-stats b { font-size: 1.5rem; }
.partner-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 860px) { .partner-grid { grid-template-columns: 1fr; } }
.leaderboard { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.leaderboard li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: #f8fafc; font-size: 14px; }
.leaderboard li.me { background: #e0f2fe; }
.leaderboard .rank { width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; background: var(--navy, #1c1a5b); color: #fff; font-size: 12px; font-weight: 700; }
.leaderboard em { font-style: normal; color: var(--muted); font-size: 12px; }

/* "Let us design your logo" prompt and form */
.logo-help { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: -6px; padding: 14px 16px; border: 1px dashed #c9d3ea; border-radius: 14px; background: linear-gradient(135deg, rgba(23, 117, 186, 0.06), rgba(255, 146, 40, 0.07)); }
.logo-help > div { flex: 1; min-width: 200px; display: grid; gap: 2px; }
.logo-help .ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 18px; }
.logo-help.sent { border-style: solid; border-color: #bfe3cc; background: #f1faf4; }
.logo-help.sent .ic { background: #16a34a; }
.logo-help.paid { border-style: solid; border-color: #f7c48a; background: #fff8ef; }
.logo-help.paid .ic { background: var(--orange); }
.logo-dialog { width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 32px); border: 0; border-radius: 18px; padding: 26px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.45); }
.logo-dialog::backdrop { background: rgba(10, 14, 40, 0.55); }
.logo-dialog h2 { font-size: 1.35rem; }
.logo-dialog .x { padding: 6px 12px; }
.ld-form { display: grid; gap: 16px; }
.ld-form > label, .ld-form .grid2 > label { display: block; font-weight: 500; font-size: 14px; }
.ld-form label .field { display: block; width: 100%; margin-top: 6px; font-weight: 400; }
.ld-form .grid2 { gap: 16px; }
.ld-choices { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ld-choices legend { margin-bottom: 8px; padding: 0; }
.ld-choices label { cursor: pointer; }
.ld-choices input { position: absolute; opacity: 0; pointer-events: none; }
.ld-choices span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; background: #fff; transition: border-color 0.15s, background 0.15s; }
.ld-choices input:checked + span { border-color: var(--blue); background: rgba(23, 117, 186, 0.1); color: var(--navy); font-weight: 600; }
.ld-choices input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.ld-slots { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ld-slot { display: flex; align-items: center; gap: 6px; padding: 5px 6px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.ld-slot.on { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23, 117, 186, 0.15); }
.ld-sw { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18); cursor: pointer; padding: 0; }
.ld-form .ld-hex { width: 92px; padding: 6px 8px; font-family: ui-monospace, Menlo, monospace; font-size: 13px; margin: 0; }
.ld-rm { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 13px; padding: 4px 6px; border-radius: 50%; }
.ld-rm:hover { background: var(--canvas); color: #b91c1c; }
.ld-add { border: 1px dashed #b9c4dd; background: #fff; border-radius: 999px; padding: 11px 16px; font: inherit; font-size: 14px; color: var(--blue); cursor: pointer; }
.ld-add:hover { border-color: var(--blue); }
.ld-wheel { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--canvas); }
.ld-wheelbox { position: relative; width: 180px; height: 180px; flex: none; }
.ld-wheelbox canvas { width: 180px; height: 180px; border-radius: 50%; cursor: crosshair; touch-action: none; display: block; }
.ld-dot { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.3); pointer-events: none; }
.ld-side { display: grid; gap: 12px; flex: 1; min-width: 160px; }
.ld-big { display: block; height: 52px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.ld-side label { display: grid; gap: 6px; }
.ld-side input[type=range] { width: 100%; accent-color: var(--blue); }
.ld-side .btn-ghost { justify-self: start; }
.ld-form .ld-cnote { display: block; margin-top: 14px; font-weight: 500; font-size: 14px; }
.ld-done { text-align: center; display: grid; gap: 12px; justify-items: center; padding: 20px 0 8px; }
.ld-done .ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #16a34a; color: #fff; font-size: 28px; }
.logo-dialog .alert[hidden] { display: none; }
@media (max-width: 560px) { .logo-dialog { padding: 20px 16px; } .ld-form .grid2 { grid-template-columns: 1fr; } }
.ld-chip { display: inline-flex; align-items: center; gap: 5px; margin: 2px 2px 2px 0; padding: 2px 8px 2px 3px; border: 1px solid var(--line); border-radius: 999px; font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.ld-chip i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); }
.logo-addon { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid #f7c48a; border-radius: 12px; background: #fff8ef; cursor: pointer; }
.logo-addon input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--orange-deep); flex: none; }
.logo-addon > span { display: grid; gap: 3px; }
.logo-addon b { font-size: 14px; }
.aud-grid { gap: 18px; }
.aud-card { display: flex; flex-direction: column; gap: 4px; padding: 26px 24px; text-decoration: none; color: inherit; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.aud-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(28, 26, 91, 0.45); border-color: #cdd7ee; }
.aud-card h3 { font-size: 1.15rem; margin-top: 10px; }
.aud-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #fff; }
.aud-ic svg { width: 26px; height: 26px; }
.aud-church .aud-ic { background: linear-gradient(135deg, #1c1a5b, #1775ba); }
.aud-nonprofit .aud-ic { background: linear-gradient(135deg, #f57a1f, #ff9228); }
.aud-store .aud-ic { background: linear-gradient(135deg, #1775ba, #16c3ed); }
.aud-other .aud-ic { background: linear-gradient(135deg, #5b3fd1, #9b7bff); }
.aud-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 7px; font-size: 14px; flex: 1; }
.aud-list li { display: flex; gap: 8px; align-items: flex-start; }
.aud-list li::before { content: "✓"; color: var(--blue); font-weight: 700; }
.aud-cta { margin-top: 16px; font-weight: 600; font-size: 14px; color: var(--blue); }
@media (max-width: 960px) and (min-width: 641px) { .aud-grid { grid-template-columns: 1fr 1fr; } }
.setup-line { display: block; margin: 6px 0 0; font-size: 14px; font-weight: 500; color: #4a5070; }
.setup-line span { color: var(--muted); font-weight: 400; }
.price-card.featured .setup-line { color: rgba(255, 255, 255, 0.85); }
.price-card.featured .setup-line span { color: rgba(255, 255, 255, 0.6); }
.price .per { margin-left: 2px; }

/* Accessibility button (lib/render-a11y.php): sit above the editor's save bar. */
body:has(.savebar) .a11y { bottom: 92px; }

/* Guided tour (assets/tour.js): a spotlight on the real editor plus a card. */
.tour-spot { position: fixed; z-index: 2147483100; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(10, 14, 40, 0.58), 0 0 0 3px #ff9228; pointer-events: none; transition: left 0.25s, top 0.25s, width 0.25s, height 0.25s; }
.tour-card { position: fixed; z-index: 2147483200; width: min(360px, calc(100vw - 24px)); padding: 20px; border-radius: 18px; background: #fff; color: var(--navy); box-shadow: 0 30px 70px -20px rgba(10, 14, 40, 0.6); }
.tour-card.is-center { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); width: min(420px, calc(100vw - 24px)); text-align: center; }
.tour-art svg { display: block; width: 100%; max-width: 320px; height: auto; margin: 0 auto 6px; }
.tour-count { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #ff7a1a; }
.tour-title { margin: 4px 0 6px; font-size: 19px; }
.tour-text { margin: 0; font-size: 14.5px; line-height: 1.55; color: #4a5070; }
.tour-actions { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.tour-actions span { flex: 1; }
.tour-card.is-center .tour-actions { justify-content: center; }
.tour-card.is-center .tour-actions span { flex: 0; }
.tour-skip { border: 0; background: none; padding: 6px 2px; font: inherit; font-size: 13px; color: var(--muted); text-decoration: underline; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .tour-spot { transition: none; } }

/* Version history list (Publish section) */
.vlist li { align-items: center; gap: 12px; }
.vlist .badge { margin-left: 6px; vertical-align: middle; }

/* Your domain (editor) */
.dmethods { display: grid; gap: 10px; }
.dmethod { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; }
.dmethod input { grid-row: span 2; margin-top: 3px; }
.dmethod b { color: var(--navy); }
.dmethod span { font-size: 13.5px; color: var(--muted); }
.dmethod.on { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23, 117, 186, 0.12); }
.dns-table td, .dns-table th { vertical-align: top; }
.dns-table code { word-break: break-all; font-size: 13px; }

.dns-add { display: flex; flex-wrap: wrap; gap: 10px; }
.dns-add label { display: grid; gap: 4px; min-width: 110px; }
.dns-add label.grow { flex: 1; min-width: 220px; }
