/* Image Background Remover and its own guides only. */
.smt-bgr-page { --tti-ink:#151523;--tti-muted:#62677a;--tti-purple:#7138e8;--tti-line:#e5def7;letter-spacing:0; }
.smt-bgr-page h1,.smt-bgr-page h2,.smt-bgr-page h3,.smt-bgr-page .smt-hub-kicker { text-align:center;letter-spacing:0; }
.smt-bgr-page .smt-tool-hero { padding-top:145px;padding-bottom:64px; }
.smt-bgr-page .smt-tool-hero-grid>div:first-child { text-align:center; }
.smt-bgr-page .smt-hub-kicker { margin-inline:auto; }
.smt-bgr-page .smt-hub-actions { justify-content:center;text-align:center; }
.smt-bgr-page .smt-tool-hero-visual { border-radius:8px;background:#f8f5ff;border:1px solid var(--tti-line); }
.smt-bgr-page .smt-tool-hero-visual h2 { font-size:25px;line-height:1.35;margin:0 0 24px; }
.smt-bgr-method-grid { display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px; }
.smt-bgr-method-grid>article { display:flex;flex-direction:column;min-width:0;padding:24px;border:1px solid var(--tti-line);border-radius:8px;background:#fff; }
.smt-bgr-method-grid h3 { font-size:20px;margin:0 0 16px; }
.smt-bgr-method-grid p { font-size:16px;line-height:1.65; }
.smt-bgr-method-grid code { margin-top:auto;padding:12px;border-radius:6px;background:#f5f0ff;color:#5325bc;text-align:center;font:400 14px/1.6 Arial,Helvetica,sans-serif; }
.smt-bgr-page .smt-tool-guide-grid { display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px; }
.smt-bgr-page .smt-tool-guide-card { display:flex;flex-direction:column;min-width:0;border-radius:8px; }
.smt-bgr-page .smt-tool-guide-card h3 { margin-top:0;font-size:21px; }
.smt-bgr-page .smt-tool-guide-card>p { margin-bottom:0; }
.smt-bgr-page .smt-tool-guide-card>a { display:block;margin-top:auto;padding-top:20px;text-align:center; }
.smt-bgr-page .smt-tool-cta { display:block;background:#f5f0ff;border:1px solid var(--tti-line);border-radius:8px;color:var(--tti-ink);text-align:center;margin-top:44px; }
.smt-bgr-page .smt-tool-cta h2 { color:var(--tti-ink);margin:18px auto; }
.smt-bgr-page .smt-tool-cta p:not(.smt-hub-kicker) { color:var(--tti-muted);max-width:850px;margin:0 auto; }
.smt-bgr-page .smt-tool-cta .smt-hub-actions { margin:26px 0 0; }
.smt-bgr-page .smt-hub-article-body>h2 { margin:54px 0 22px;scroll-margin-top:110px; }
.smt-bgr-page .smt-hub-article-body>p { margin-bottom:22px; }
.smt-bgr-page .smt-hub-faq+h2 { margin-top:66px; }
.smt-bgr-page .smt-tool-guide-nav { display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:24px;margin:0 0 38px;border-radius:8px;counter-reset:tti-guide; }
.smt-bgr-page .smt-tool-guide-nav>strong { grid-column:1/-1;font-size:24px;text-align:center;margin:0 0 10px; }
.smt-bgr-page .smt-tool-guide-nav>a { counter-increment:tti-guide;display:flex;align-items:center;gap:12px;min-width:0;font-size:16px;line-height:1.45;font-weight:600;padding:12px;border:1px solid var(--tti-line);border-radius:6px; }
.smt-bgr-page .smt-tool-guide-nav>a:last-of-type { grid-column:auto;justify-self:stretch;width:auto; }
.smt-bgr-page .smt-tool-guide-nav>a::before { content:counter(tti-guide);flex:0 0 30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:50%; }
.smt-bgr-page .smt-tool-guide-nav>a:nth-of-type(1) { background:#fcfaff; }.smt-bgr-page .smt-tool-guide-nav>a:nth-of-type(1)::before { background:#eee5ff;color:#5325bc; }
.smt-bgr-page .smt-tool-guide-nav>a:nth-of-type(2) { background:#f3f9ff; }.smt-bgr-page .smt-tool-guide-nav>a:nth-of-type(2)::before { background:#e1f1ff;color:#1265a9; }
.smt-bgr-page .smt-tool-guide-nav>a:nth-of-type(3) { background:#f2fbf7; }.smt-bgr-page .smt-tool-guide-nav>a:nth-of-type(3)::before { background:#ddf5e9;color:#08789d; }
.smt-bgr-page .smt-tool-guide-nav>a:nth-of-type(4) { background:#fff7f3; }.smt-bgr-page .smt-tool-guide-nav>a:nth-of-type(4)::before { background:#ffe8dd;color:#994021; }
.smt-bgr-page .smt-tool-guide-nav>a:nth-of-type(5) { background:#fff5f9; }.smt-bgr-page .smt-tool-guide-nav>a:nth-of-type(5)::before { background:#fde4ef;color:#9d2c60; }
.smt-bgr-page .smt-tool-guide-nav>a:nth-of-type(6) { background:#f2fbfa; }.smt-bgr-page .smt-tool-guide-nav>a:nth-of-type(6)::before { background:#dcf4f1;color:#146f68; }
.smt-bgr-page .smt-tool-guide-nav>a:nth-of-type(7) { background:#f7f8ff; }.smt-bgr-page .smt-tool-guide-nav>a:nth-of-type(7)::before { background:#e9edff;color:#424baf; }
.smt-bgr-page .smt-tool-guide-nav>a:nth-of-type(8) { background:#fffbf0; }.smt-bgr-page .smt-tool-guide-nav>a:nth-of-type(8)::before { background:#fff2cf;color:#83600d; }
.smt-bgr-page .smt-tool-guide-links { display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:24px; }
.smt-bgr-page .smt-tool-guide-links>a { display:flex;align-items:center;justify-content:center;text-align:center;min-height:80px;height:100%;padding:16px;margin:0;box-sizing:border-box;border-radius:6px;font-size:16px; }
.smt-bgr-guide .smt-tool-hero { padding-bottom:36px; }
.smt-bgr-guide .smt-hub-article-hero { max-width:1050px;text-align:center; }
.smt-bgr-guide .smt-hub-article-body { max-width:1080px; }
.smt-bgr-guide .smt-hub-section { padding-top:30px; }
.smt-bgr-page .smt-bgr-guides-section { padding-bottom:28px; }
.smt-bgr-page .smt-bgr-next-section { padding-top:54px; }
.smt-bgr-page .smt-tool-hero-grid{align-items:center}.smt-bgr-page .smt-tool-hero-grid>div:first-child>h1{font-size:42px;line-height:1.15}.smt-bgr-page .smt-bgr-heading{text-align:center;max-width:960px;margin:0 auto 30px}.smt-bgr-heading>p:last-child{margin:18px auto 0;max-width:850px}.smt-bgr-hero-example{padding:24px;border:1px solid #dfd4ee;background:#f7f2ff;border-radius:8px;text-align:center}.smt-bgr-hero-example h2{font-size:25px;margin:16px 0 20px}.smt-bgr-hero-example img{display:block;width:100%;height:auto;border-radius:6px}.smt-bgr-hero-example>p:last-child{font-size:14px;line-height:1.65;margin:18px 0 0}.smt-bgr-badges{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:24px}.smt-bgr-badges span{font-size:13px;padding:5px 10px;border:1px solid #ddcfee;border-radius:4px;background:#f6f1ff}.smt-bgr-frame{width:100%;height:1200px;display:block;border:0;background:#fff;min-width:0}.smt-bgr-frame-note{text-align:center;font-size:14px;margin:18px auto 28px;max-width:850px}.smt-bgr-method-grid{margin-top:32px}.smt-bgr-method-grid>article>div:last-child{margin-top:auto;padding:12px;border-radius:6px;background:#f5f0ff;color:#5325bc;text-align:center;font:400 14px/1.6 Arial,Helvetica,sans-serif}.smt-bgr-page .smt-tool-guide-grid>article{display:flex;flex-direction:column;min-width:0}.smt-bgr-page .smt-tool-guide-grid>article>h3{text-align:center;font-size:21px;margin:0 0 16px}.smt-bgr-page .smt-tool-guide-grid>article>a:last-child{margin-top:auto;padding-top:20px;text-align:center}.smt-bgr-page .smt-bgr-faq-title{margin-top:48px;margin-bottom:26px}.smt-bgr-page .smt-hub-section-soft .smt-hub-article-body>h2:first-child{margin-top:0}.smt-bgr-page .smt-hub-section{padding-top:48px;padding-bottom:48px}.smt-bgr-page .smt-tool-guide-nav>a:before{flex:none}.smt-bgr-page .smt-tool-hero{background:#fff}.smt-bgr-page .smt-tool-intro{margin-inline:auto}.smt-bgr-page .smt-hub-article-body>h2{text-align:center}.smt-bgr-page .smt-hub-article-hero{text-align:center}@media(max-width:700px){.smt-bgr-page .smt-tool-hero-grid>div:first-child>h1{font-size:34px}.smt-bgr-hero-example{padding:18px}.smt-bgr-page .smt-hub-section{padding-top:38px;padding-bottom:38px}}
.smt-bgr-page .smt-bgr-handoff{padding:18px 20px;border-left:4px solid #6b45b3;background:#f3edfc;border-radius:4px;font-size:15px;line-height:1.7}.smt-bgr-handoff strong{color:#523483}
/* Keep the hero-button shadow from painting over the privacy labels. */
.smt-bgr-page .smt-tool-hero .smt-hub-actions .smt-hub-btn,
.smt-bgr-page .smt-tool-hero .smt-hub-actions .smt-hub-btn:hover,
.smt-bgr-page .smt-tool-hero .smt-hub-actions .smt-hub-btn:focus {
  box-shadow: none !important;
}
.smt-bgr-page .smt-tool-hero .smt-hub-actions .smt-hub-btn:focus-visible {
  outline: 2px solid #7138e8;
  outline-offset: 4px;
}

/* These articles use the same framed guide treatment as the existing tools. */
.smt-bgr-page .smt-tool-guide-grid > article {
  background: #fff;
  border: 1px solid #e5def7;
  border-top: 4px solid var(--tool-purple, #7138e8);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(76, 49, 145, 0.08);
  padding: 26px;
}
.smt-bgr-page .smt-tool-guide-grid > article:nth-child(4n + 2) {
  border-top-color: var(--tool-blue, #1677d2);
}
.smt-bgr-page .smt-tool-guide-grid > article:nth-child(4n + 3) {
  border-top-color: var(--tool-green, #08789d);
}
.smt-bgr-page .smt-tool-guide-grid > article:nth-child(4n + 4) {
  border-top-color: #d18416;
}
.smt-bgr-page .smt-tool-guide-grid > article > p {
  color: var(--tool-muted, #62677a);
  font-size: 15px;
  line-height: 1.7;
  text-align: left;
}
.smt-bgr-page .smt-tool-guide-grid > article > a:last-child {
  align-self: center;
  color: var(--tool-purple-dark, #5325bc);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
}
.smt-bgr-page .smt-tool-guide-grid > article > a:last-child:hover {
  text-decoration: underline;
}
@media (max-width: 1100px) {
  .smt-bgr-page .smt-tool-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 700px) {
  .smt-bgr-page .smt-tool-guide-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

.smt-bgr-page .smt-tool-guide-card{background:#fff}.smt-bgr-page .smt-bgr-method-grid a{color:#6130a0}.smt-bgr-page .smt-tool-guide-links>a{margin:0!important;align-items:center;justify-content:center;text-align:center}.smt-bgr-page .smt-tool-guide-nav>a{margin:0!important}.smt-bgr-page .smt-tool-guide-nav>a::before{flex:0 0 30px}
@media(max-width:1100px){.smt-bgr-page .smt-tool-guide-links,.smt-bgr-page .smt-bgr-method-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:700px){.smt-bgr-page .smt-tool-guide-nav,.smt-bgr-page .smt-tool-guide-links,.smt-bgr-page .smt-bgr-method-grid{grid-template-columns:minmax(0,1fr)!important}.smt-bgr-page .smt-tool-guide-grid>article{padding:24px}}

/* The editor is isolated from the shared hub and guide layouts. */
.smt-bgr-page #bgr-editor {
  --bgr-ink: var(--tti-ink, #151523);
  --bgr-muted: var(--tti-muted, #62677a);
  --bgr-purple: var(--tti-purple, #7138e8);
  --bgr-line: var(--tti-line, #e5def7);
  color: var(--bgr-ink);
  min-width: 0;
  scroll-margin-top: 110px;
}

.smt-bgr-page #bgr-editor *,
.smt-bgr-page #bgr-editor *::before,
.smt-bgr-page #bgr-editor *::after {
  box-sizing: border-box;
}

.smt-bgr-page #bgr-editor [hidden] {
  display: none !important;
}

.smt-bgr-page .bgr-workspace {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
  min-width: 0;
}

.smt-bgr-page .bgr-workspace > section.bgr-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--bgr-line, #e5def7);
  border-radius: 8px;
  box-shadow: none;
}

.smt-bgr-page .bgr-panel.bgr-source {
  background: #f8f5ff;
  border-color: #dfd4f4;
}

.smt-bgr-page .bgr-panel.bgr-output {
  background: #f1faf5;
  border-color: #cce7da;
}

.smt-bgr-page .bgr-panel-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 150px;
}

.smt-bgr-page .bgr-panel h3 {
  margin: 0;
  color: var(--bgr-ink, #151523);
  font-size: 20px;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
}

.smt-bgr-page .bgr-panel-head > label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.smt-bgr-page #bgr-editor .bgr-panel-head > label select {
  flex: 1 1 140px;
  width: 0;
}

.smt-bgr-page .bgr-controls,
.smt-bgr-page .bgr-segment {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
}

.smt-bgr-page #bgr-editor button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  max-width: 100%;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 9px 14px;
  border: 1px solid #d8cee9;
  border-radius: 6px;
  background: #fff;
  color: #523483;
  box-shadow: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.smt-bgr-page #bgr-editor button:hover:not(:disabled) {
  background-color: #f2ecff;
  border-color: #a88adf;
}

.smt-bgr-page #bgr-editor .bgr-primary,
.smt-bgr-page #bgr-editor .bgr-button-primary,
.smt-bgr-page #bgr-editor .bgr-main-actions > button:first-child {
  background: var(--bgr-purple, #7138e8);
  border-color: var(--bgr-purple, #7138e8);
  color: #fff;
}

.smt-bgr-page #bgr-editor .bgr-primary:hover:not(:disabled),
.smt-bgr-page #bgr-editor .bgr-button-primary:hover:not(:disabled),
.smt-bgr-page #bgr-editor .bgr-main-actions > button:first-child:hover:not(:disabled) {
  background: #5b2abd;
  border-color: #5b2abd;
}

.smt-bgr-page #bgr-editor button[aria-pressed="true"],
.smt-bgr-page #bgr-editor button[aria-selected="true"] {
  border-color: #8c62d8;
  background: #eae0ff;
  color: #49248e;
  box-shadow: inset 0 0 0 1px #8c62d8;
}

.smt-bgr-page #bgr-editor button:disabled,
.smt-bgr-page #bgr-editor input:disabled,
.smt-bgr-page #bgr-editor select:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.smt-bgr-page #bgr-editor :is(button, input, select, summary):focus-visible {
  outline: 3px solid #176fba;
  outline-offset: 3px;
}

.smt-bgr-page #bgr-editor button svg,
.smt-bgr-page #bgr-editor button img {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  pointer-events: none;
}

.smt-bgr-page .bgr-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.smt-bgr-page #bgr-editor select,
.smt-bgr-page #bgr-editor input {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  height: 44px;
  margin: 0;
  border: 1px solid #d2cbdc;
  border-radius: 5px;
  background-color: #fff;
  color: var(--bgr-ink, #151523);
  font: inherit;
  font-size: 14px;
  letter-spacing: 0;
}

.smt-bgr-page #bgr-editor select {
  padding: 8px 30px 8px 10px;
}

.smt-bgr-page #bgr-editor input:not([type="range"]):not([type="color"]) {
  padding: 8px 10px;
}

.smt-bgr-page #bgr-editor input[type="color"] {
  padding: 4px;
  cursor: pointer;
}

.smt-bgr-page #bgr-editor input[type="range"] {
  height: auto;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--bgr-purple, #7138e8);
  cursor: pointer;
}

.smt-bgr-page .bgr-viewport {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  height: 380px;
  min-height: 380px;
  max-height: 380px;
  overflow: auto;
  overscroll-behavior: contain;
  isolation: isolate;
  border: 1px solid #cfd3dc;
  border-radius: 4px;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #e9ebef 25%, transparent 25%),
    linear-gradient(-45deg, #e9ebef 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e9ebef 75%),
    linear-gradient(-45deg, transparent 75%, #e9ebef 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}

/* Auto margins center fitted images without hiding oversized canvas edges. */
.smt-bgr-page .bgr-canvas-wrap {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  margin: auto;
}

.smt-bgr-page .bgr-canvas-wrap > canvas.bgr-canvas {
  display: block;
  flex: 0 0 auto;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.smt-bgr-page .bgr-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #53596b;
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
  overflow-wrap: anywhere;
  pointer-events: none;
}

.smt-bgr-page #bgr-cursor {
  position: absolute;
  z-index: 2;
  border: 1px solid #fff;
  border-radius: 50%;
  outline: 1px solid #252238;
  box-shadow: none;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.smt-bgr-page .bgr-source-note {
  min-width: 0;
  min-height: 46px;
  margin: 0;
  color: var(--bgr-muted, #62677a);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
  overflow-wrap: anywhere;
}

.smt-bgr-page .bgr-settings {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
  min-width: 0;
  margin: 24px 0 0;
  padding: 20px 0;
  border-top: 1px solid var(--bgr-line, #e5def7);
  border-bottom: 1px solid var(--bgr-line, #e5def7);
}

.smt-bgr-page .bgr-settings > *,
.smt-bgr-page .bgr-setting {
  min-width: 0;
}

.smt-bgr-page .bgr-settings label,
.smt-bgr-page .bgr-settings legend {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.smt-bgr-page .bgr-settings fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.smt-bgr-page .bgr-settings output {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.smt-bgr-page .bgr-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.smt-bgr-page #bgr-editor .bgr-swatches button {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--swatch, var(--bgr-swatch, #fff));
  border-color: #a7a4b0;
}

.smt-bgr-page #bgr-editor .bgr-swatches button:hover:not(:disabled) {
  background: var(--swatch, var(--bgr-swatch, #fff));
  border-color: var(--bgr-purple, #7138e8);
}

.smt-bgr-page .bgr-edit-toolbar,
.smt-bgr-page .bgr-main-actions,
.smt-bgr-page .bgr-export-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  margin: 20px 0 0;
}

.smt-bgr-page .bgr-edit-toolbar .bgr-segment {
  min-width: 0;
}

.smt-bgr-page #bgr-editor .bgr-export-actions button {
  flex: 0 1 auto;
  padding-inline: 12px;
  font-size: 13px;
}

.smt-bgr-page .bgr-status {
  margin: 24px 0 0;
  padding: 16px;
  color: #3c465c;
  background: #f5f7fa;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.65;
  text-align: center;
  overflow-wrap: anywhere;
}

.smt-bgr-page .bgr-status p,
.smt-bgr-page .bgr-notice p {
  margin: 0;
}

.smt-bgr-page #bgr-editor progress {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 12px;
  margin: 12px 0;
  accent-color: var(--bgr-purple, #7138e8);
}

.smt-bgr-page .bgr-notice {
  margin: 24px 0;
  padding: 16px;
  border-left: 3px solid #78acd7;
  border-radius: 4px;
  background: #eff7ff;
  color: #334e69;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.smt-bgr-page .bgr-error,
.smt-bgr-page .bgr-status.is-error,
.smt-bgr-page .bgr-status.error,
.smt-bgr-page .bgr-status[data-state="error"] {
  background: #fff2e9;
  color: #873b1d;
  border-left: 3px solid #c86a37;
}

.smt-bgr-page .bgr-export-note {
  max-width: 760px;
  margin: 14px auto 0;
  color: var(--bgr-muted, #62677a);
  font-size: 13px;
  line-height: 1.65;
  text-align: center;
  overflow-wrap: anywhere;
}

.smt-bgr-page .smt-bgr-limits {
  margin: 24px 0;
  padding-top: 16px;
  border-top: 1px solid #e3e5eb;
  color: var(--bgr-muted, #62677a);
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.smt-bgr-page .smt-bgr-limits summary {
  width: fit-content;
  max-width: 100%;
  padding: 8px 0;
  color: #444b5c;
  font-weight: 600;
  cursor: pointer;
}

.smt-bgr-page .smt-bgr-limits p {
  margin: 12px 0 0;
}

@media (max-width: 1000px) {
  .smt-bgr-page .bgr-settings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 801px) and (max-width: 1100px) {
  .smt-bgr-page .bgr-panel-head {
    min-height: 200px;
  }
}

@media (max-width: 800px) {
  .smt-bgr-page .bgr-workspace {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .smt-bgr-page .bgr-viewport {
    height: 320px;
    min-height: 320px;
    max-height: 320px;
  }
}

@media (max-width: 480px) {
  .smt-bgr-page .bgr-settings {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .smt-bgr-page #bgr-editor .bgr-controls > button,
  .smt-bgr-page #bgr-editor .bgr-segment > button {
    padding-inline: 10px;
  }

  .smt-bgr-page .bgr-export-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .smt-bgr-page #bgr-editor .bgr-export-actions button {
    flex-direction: column;
    gap: 4px;
    width: 100%;
    min-width: 0;
    min-height: 76px;
    padding: 8px 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .smt-bgr-page #bgr-editor button {
    transition: none;
  }
}
