/* Commercial edition screens. Uses the tokens of app.css. */
.powered { font: 11px var(--mono); text-align: center; color: var(--faint); padding-top: 2px; }
code { font: 12px var(--mono); background: var(--surface-2); border: 1px solid var(--line); padding: 0 5px; border-radius: 4px; }
select.input.w-auto, .input.w-auto { width: auto; }
.mt0 { margin: 12px 0 0; }
.notice { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: var(--r-sm); background: var(--warn-soft); margin-bottom: 16px; font-size: 13px; flex-wrap: wrap; }
.notice svg { width: 16px; height: 16px; color: var(--warn); flex: none; }
.banner { display: flex; align-items: center; gap: 10px; padding: 8px 28px; font-size: 13px; background: var(--surface); border-bottom: 1px solid var(--line); }
.banner svg { width: 15px; height: 15px; color: var(--brand); flex: none; }
.banner b { font-weight: 600; }
.banner .btn { margin-left: auto; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.toggle-row { padding: 10px 0; border-bottom: 1px solid var(--line); gap: 10px; }
.toggle-row:last-child { border-bottom: 0; }
.list.compact li { padding: 7px 0; border: 0; }
.list.compact svg { width: 15px; height: 15px; color: var(--ok); flex: none; }

/* WordPress simplified */
.wp-hero { display: grid; grid-template-columns: 280px 1fr; overflow: hidden; }
.wp-hero-preview { background: var(--surface-2); border-right: 1px solid var(--line); padding: 20px; display: grid; place-items: center; }
.wp-hero-body { padding: 22px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.wp-hero-body h2 { font: 600 20px var(--mono); letter-spacing: -.02em; }
.mini-site { width: 100%; background: #fbf7f2; color: #3b2a1f; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); font-size: 9px; }
.ms-nav { display: flex; justify-content: space-between; padding: 7px 10px; }
.ms-nav span { color: #8a6f5c; }
.ms-hero { background: #8f4424; color: #fff; padding: 16px 12px; text-align: center; }
.ms-hero h3 { font: 700 13px Georgia, serif; margin: 0 0 4px; }
.ms-hero p { margin: 0 0 8px; opacity: .85; }
.ms-btn { background: #fff; color: #8f4424; padding: 3px 8px; border-radius: 3px; font-weight: 700; }
.ms-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px; }
.ms-cols i { height: 30px; border-radius: 3px; background: #efe4d7; }
.stat-line { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.stat-line:last-child { border-bottom: 0; }
.stat-line span { color: var(--muted); }
.stat-line b { font: 500 15px var(--mono); font-variant-numeric: tabular-nums; }
.stat-line em { font-style: normal; font-size: 12px; color: var(--faint); min-width: 64px; text-align: right; }
.stat-line em.up { color: var(--ok); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.tile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px;
  cursor: pointer; text-align: left; border: 0; border-radius: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; }
.tile:nth-child(4n) { border-right: 0; }
.tile:nth-last-child(-n+4) { border-bottom: 0; }
.tile:hover { background: var(--surface-2); }
.tile .kpi-ico { grid-row: span 2; background: transparent !important; border: 1px solid var(--line); color: var(--text) !important; }
.tile b { font-weight: 600; }

/* Theme builder */
.ai-card { padding: 16px 20px; }
.ai-glow { display: none; }
.ai-card .kpi-ico { background: var(--brand-soft); color: var(--brand); }
.g-builder { grid-template-columns: 340px minmax(0, 1fr); align-items: start; }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); cursor: pointer; }
.swatch input[type="color"] { width: 100%; height: 34px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 2px; background: var(--surface); cursor: pointer; }
.swatch.big { flex-direction: row; gap: 10px; font: 12px var(--mono); }
.swatch.big input[type="color"] { width: 48px; }
input[type="range"] { width: 100%; accent-color: var(--ink); }
.preview-card { overflow: hidden; position: sticky; top: 68px; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.browser-bar span { margin-left: 10px; font: 11.5px var(--mono); color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 2px 10px; border-radius: 4px; flex: 1; }
.site-preview { background: var(--bg); color: var(--tx); font-family: var(--fb); max-height: 620px; overflow: auto; font-size: 13px; line-height: 1.6; }
.site-preview h1, .site-preview h2, .site-preview h4, .site-preview b { font-family: var(--fh); }
.sp-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 26px; gap: 12px; }
.sp-header b { font-size: 15px; }
.sp-header nav { display: flex; gap: 16px; font-size: 12px; opacity: .8; }
.sp-centre { flex-direction: column; }
.sp-minimal nav { display: none; }
.sp-hero { background: var(--p); color: var(--on-p); text-align: center; padding: 56px 26px; }
.sp-hero h1 { font-size: 30px; margin: 0 0 10px; line-height: 1.15; letter-spacing: -.02em; }
.sp-hero p { margin: 0 auto 18px; max-width: 520px; opacity: .9; }
.sp-btn { display: inline-block; background: var(--bg); color: var(--tx); padding: 9px 18px; border-radius: var(--r); font-weight: 700; }
.sp-sec { padding: 40px 26px; text-align: center; }
.sp-sec.alt { background: var(--sf); }
.sp-sec h2 { font-size: 21px; margin: 0 0 8px; }
.sp-lead { max-width: 560px; margin: 0 auto; opacity: .85; }
.sp-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-top: 18px; text-align: left; }
.sp-item { background: var(--sf); padding: 16px; border-radius: var(--r); }
.sp-sec.alt .sp-item { background: var(--bg); }
.sp-item h4 { margin: 0 0 4px; color: var(--p); font-size: 15px; }
.sp-item p { margin: 0; font-size: 12.5px; opacity: .85; }
.sp-footer { background: var(--sf); text-align: center; padding: 20px; font-size: 12px; opacity: .85; }
/* The preview uses the theme's own tokens; keep panel tokens from leaking in. */
.site-preview { --r: 8px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.price { padding: 20px; display: flex; flex-direction: column; gap: 6px; position: relative; border-right: 1px solid var(--line); background: var(--surface); }
.price:last-child { border-right: 0; }
.price.featured { background: var(--surface-2); }
.price .badge { align-self: flex-start; background: var(--ink); color: var(--on-ink); order: -1; margin-bottom: 4px; }
.price h3 { font-size: 15px; font-weight: 600; }
.price .amount { font-size: 30px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price .amount small { font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.price ul { list-style: none; padding: 0; margin: 8px 0 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; color: var(--muted); }
.price li { display: flex; gap: 8px; align-items: center; }
.price li svg { width: 14px; height: 14px; color: var(--ok); flex: none; }
.price .btn { justify-content: center; }

/* White-label */
.dropzone { border: 1px dashed var(--line-strong); border-radius: var(--r-sm); padding: 18px; display: flex; gap: 10px; align-items: center; justify-content: center; color: var(--muted); }
.dropzone svg { width: 16px; height: 16px; }
.dotc { width: 9px; height: 9px; border-radius: 2px; display: inline-block; margin-right: 6px; }
.brand-preview { display: grid; grid-template-columns: 116px 1fr; height: 210px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); margin-top: 12px; }
.bp-side { background: var(--surface); border-right: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 8px; font-size: 11px; }
.bp-logo { width: 18px; height: 18px; border-radius: 4px; background: var(--brand); }
.bp-side i { height: 8px; border-radius: 3px; background: var(--surface-2); }
.bp-side i.on { background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
.bp-main { padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.bp-title { height: 10px; width: 46%; border-radius: 3px; background: var(--line-strong); }
.bp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; flex: 1; }
.bp-cards i { border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); }
.bp-btn { align-self: flex-start; color: #fff; font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 4px; background: var(--brand); }

/* Licence */
.how { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.how b { color: var(--text); font-weight: 600; }
.mono { font-family: var(--mono); }

/* Assistant */
.chat-fab { position: fixed; right: 20px; bottom: 20px; height: 40px; padding: 0 14px 0 12px; border-radius: 20px; border: 0; cursor: pointer; z-index: 150;
  color: var(--on-ink); background: var(--ink); box-shadow: var(--pop); display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.chat-fab::after { content: "Assistant"; }
.chat-fab svg { width: 16px; height: 16px; }
.chat-panel { position: fixed; right: 20px; bottom: 70px; width: min(380px, calc(100vw - 32px)); height: min(520px, calc(100vh - 120px));
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--pop); z-index: 150;
  display: flex; flex-direction: column; overflow: hidden; }
.chat-head { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.chat-head .kpi-ico { background: var(--brand-soft); color: var(--brand); }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 88%; padding: 9px 12px; border-radius: 8px; white-space: pre-wrap; font-size: 13px; }
.msg.bot { background: var(--surface-2); }
.msg.me { align-self: flex-end; color: var(--on-ink); background: var(--ink); }
.msg.pending { opacity: .6; }
.chat-form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form .btn { padding: 0 10px; }

@media (max-width: 1180px) { .g-builder, .wp-hero { grid-template-columns: minmax(0, 1fr); } .preview-card { position: static; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile:nth-child(2n) { border-right: 0; } .tile:nth-child(4n) { border-right: 0; } .tile:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); } .tile:nth-last-child(-n+2) { border-bottom: 0; } .wp-hero-preview { border-right: 0; border-bottom: 1px solid var(--line); } }
@media (max-width: 860px) { .pricing, .row2 { grid-template-columns: minmax(0, 1fr); } .price { border-right: 0; border-bottom: 1px solid var(--line); } .banner { padding: 8px 16px; flex-wrap: wrap; } .swatches { grid-template-columns: repeat(3, 1fr); } .chat-fab::after { content: none; } }
