.page-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.sales-layout {
  display: grid;
  grid-template-columns: minmax(260px, .68fr) minmax(400px, 1.32fr);
  gap: 20px;
  align-items: start;
}
.sales-readiness { position: sticky; top: 110px; }
.sales-readiness > p.muted { font-size: 13px; line-height: 1.65; }
.sales-checks { display: grid; margin: 22px 0; }
.sales-checks > div {
  display: flex;
  gap: 11px;
  align-items: center;
  border-top: 1px solid #edf0f3;
  padding: 13px 0;
}
.sales-checks > div:first-child { border-top: 0; }
.sales-checks > div > span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #f0f1f4;
  color: #858e9d;
  font-weight: 900;
}
.sales-checks > div > span.ready { background: #e3f4ed; color: var(--green); }
.sales-checks p { display: grid; margin: 0; }
.sales-checks strong { font-size: 12px; }
.sales-checks small { font-size: 10px; color: var(--muted); margin-top: 3px; }
.widget-installation {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #e6e9ee;
}
.widget-installation-heading { display: flex; align-items: flex-start; gap: 12px; }
.widget-installation-heading > div { flex: 1; min-width: 0; }
.widget-installation-heading .eyebrow { margin: 0 0 6px; }
.widget-installation-heading h3 { margin: 0; font-size: 16px; line-height: 1.35; }
.widget-installation > p.muted { margin: 11px 0; font-size: 12px; line-height: 1.55; }
.widget-installation-steps { margin: 14px 0; padding-left: 21px; color: #596477; font-size: 12px; line-height: 1.55; }
.widget-installation-steps li + li { margin-top: 6px; }
.widget-installation-seen { margin: 13px 0; color: #2a735f; font-size: 11px; font-weight: 750; line-height: 1.5; }
.widget-installation-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.widget-installation-actions .button { font-size: 11px; padding: 10px 12px; text-align: center; }
.sales-preview {
  --sales-banner: var(--navy);
  --sales-banner-text: #fff;
  --sales-accent: #e18436;
  --sales-accent-text: #fff;
  height: min(680px, calc(100vh - 180px));
  min-height: 530px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.sales-preview > header {
  background: var(--sales-banner);
  color: var(--sales-banner-text);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.sales-preview > header p { display: grid; margin: 0; }
.sales-preview > header strong { font-size: 13px; }
.sales-preview > header small { font-size: 10px; color: inherit; opacity: .75; margin-top: 3px; }
.sales-preview > header .status-pill { margin-left: auto; }
.preview-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sales-accent);
  color: var(--sales-accent-text);
  font-size: 12px;
  font-weight: 900;
}
.preview-mark img { display: block; width: 72%; height: 72%; object-fit: contain; }
.preview-messages { padding: 22px; overflow: auto; background: #f6f5f1; scroll-behavior: smooth; }
.preview-welcome { text-align: center; max-width: 420px; margin: 65px auto; color: var(--muted); }
.preview-welcome > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff1e5;
  color: var(--accent-dark);
  margin: 0 auto 15px;
}
.preview-welcome h2 { color: var(--ink); }
.preview-welcome p { font-size: 13px; line-height: 1.65; }
.preview-message {
  width: fit-content;
  max-width: 82%;
  border-radius: 13px;
  padding: 11px 14px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.preview-message.assistant { background: #fff; border: 1px solid #e2e5ea; border-bottom-left-radius: 4px; }
.preview-message.visitor { background: var(--navy); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.preview-message.typing { color: var(--muted); font-style: italic; }
.preview-links { font-size: 12px; font-weight: 700; color: var(--muted); margin: -3px 3px 13px; }
.preview-links a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.preview-contact-cta { display: block; margin: -1px 3px 14px; }
.preview-sources { font-size: 10px; font-weight: 700; color: var(--muted); margin: -3px 3px 13px; }
.preview-sources a { color: var(--blue); text-decoration: underline; }
.preview-composer { display: grid; grid-template-columns: 1fr auto; gap: 9px; padding: 13px; border-top: 1px solid var(--line); }
.preview-composer .button { padding-left: 20px; padding-right: 20px; }
.sales-preview .preview-composer .button { background: var(--sales-accent); color: var(--sales-accent-text); }
.preview-composer input:disabled { background: #f2f3f4; }
.widget-look-dialog { width: min(820px, calc(100% - 30px)); }
.widget-look-editor { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(310px, 1.3fr); gap: 24px; align-items: start; margin-top: 22px; }
.widget-look-controls { display: grid; gap: 17px; }
.widget-look-controls label { display: grid; gap: 8px; margin: 0; color: var(--ink); font-size: 13px; font-weight: 750; }
.widget-look-controls label small { color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.45; }
.widget-look-controls input[type="color"] { width: 100%; height: 46px; padding: 4px; border: 1px solid #cfd5df; border-radius: 9px; background: #fff; cursor: pointer; }
.widget-look-controls input[type="file"] { width: 100%; padding: 9px; border: 1px solid #cfd5df; border-radius: 9px; background: #fff; color: #536075; font-size: 11px; }
.widget-icon-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; }
.widget-icon-status span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.widget-icon-status .text-button { display: inline-block; flex: 0 0 auto; font-size: 10px; }
.widget-look-preview-wrap { min-width: 0; padding: 17px; border: 1px solid #e1e5eb; border-radius: 12px; background: #f6f5f1; }
.widget-look-preview-wrap .eyebrow { margin-bottom: 12px; }
.widget-look-live-preview { --look-banner: #101b33; --look-banner-text: #fff; --look-accent: #e18436; --look-accent-text: #fff; overflow: hidden; border: 1px solid #dde2e9; border-radius: 13px; background: #fff; box-shadow: 0 10px 30px rgba(20,32,58,.1); }
.widget-look-live-preview > header { display: flex; align-items: center; gap: 10px; padding: 14px 15px; background: var(--look-banner); color: var(--look-banner-text); }
.widget-look-live-preview > header div { display: grid; min-width: 0; }
.widget-look-live-preview > header strong { font-size: 12px; }
.widget-look-live-preview > header small { margin-top: 3px; color: inherit; opacity: .75; font-size: 9px; }
.widget-look-preview-mark { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; background: var(--look-accent); color: var(--look-accent-text); font-size: 11px; font-weight: 900; }
.widget-look-preview-mark img { display: block; width: 72%; height: 72%; object-fit: contain; }
.widget-look-preview-messages { display: grid; gap: 10px; min-height: 185px; padding: 20px 16px; background: #f7f6f2; }
.widget-look-preview-messages p { width: fit-content; max-width: 82%; margin: 0; padding: 10px 12px; border-radius: 12px; font-size: 11px; line-height: 1.45; }
.widget-look-preview-messages .assistant { border: 1px solid #e3e6eb; border-bottom-left-radius: 4px; background: #fff; }
.widget-look-preview-messages .visitor { margin-left: auto; border-bottom-right-radius: 4px; background: #101b33; color: #fff; }
.widget-look-live-preview > footer { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px; border-top: 1px solid #e4e7ec; }
.widget-look-live-preview > footer span { padding: 9px 10px; border: 1px solid #cdd3dd; border-radius: 8px; color: #8b94a3; font-size: 10px; }
.widget-look-live-preview > footer strong { display: grid; place-items: center; min-width: 58px; padding: 0 11px; border-radius: 8px; background: var(--look-accent); color: var(--look-accent-text); font-size: 10px; }
@media (max-width: 900px) {
  .sales-layout { grid-template-columns: 1fr; }
  .sales-readiness { position: static; }
  .sales-preview { height: 620px; }
}
@media (max-width: 560px) {
  .page-heading-actions { width: 100%; justify-content: flex-start; }
  .widget-look-editor { grid-template-columns: 1fr; }
  .sales-preview { height: calc(100vh - 190px); min-height: 480px; }
  .preview-message { max-width: 90%; }
  .sales-preview > header .status-pill { display: none; }
}
