
/* SaveItBro Premium Frontend
   Shared across all languages and pages */

:root {
  --blue: #111111;
  --pink: #111111;
  --text: #171717;
  --muted: #666666;
  --border: #e8e8e8;
}

body {
  font-family: Inter, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto,
    "Noto Sans", "Noto Sans Arabic",
    "Noto Sans Devanagari", sans-serif;
  color: var(--text);
  background: #fafafa;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

header {
  background: #fff;
  border-bottom: 1px solid #eeeeee;
  box-shadow: 0 2px 14px rgba(21,30,62,.035);
}

.logo {
  color: #171717;
  font-weight: 800;
  letter-spacing: -1.25px;
}

#languageSelector {
  color: #171717 !important;
  -webkit-text-fill-color: #171717 !important;
  background: #fff !important;
  border: 1px solid #e2e2e2;
  border-radius: 11px;
  box-shadow: 0 2px 6px rgba(18,32,70,.04);
  font-size: 15px;
  font-weight: 600;
  opacity: 1;
  -webkit-appearance: menulist;
  appearance: auto;
}

#languageSelector option {
  color: #171717;
  background: #fff;
}

main {
  max-width: 1060px;
}

.hero {
  color: #171717;
  background: transparent;
  padding: 42px 12px 28px;
  border-radius: 0;
}

.hero h1 {
  max-width: 760px;
  margin: 0 auto 12px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.17;
  font-weight: 800;
  letter-spacing: -1.35px;
  text-wrap: balance;
}

.subtitle {
  max-width: 680px;
  margin-bottom: 26px;
  color: #666666;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.7;
}

.tabs {
  max-width: 740px;
  margin-bottom: 0;
  padding: 14px 14px 0;
  background: #fff;
  border: 1px solid #eaeaea;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  gap: 7px;
}

.tab {
  flex: 1 1 0;
  min-width: 0;
  padding: 12px 7px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #666666;
  font-size: 14px;
  font-weight: 650;
  transition: background .15s ease,
              color .15s ease;
}

.tab.active {
  background: #f3f3f3;
  color: #111111;
  border-color: #eeeeee;
}

.tab:focus-visible,
#downloadBtn:focus-visible,
#pasteBtn:focus-visible,
#videoUrl:focus-visible,
#languageSelector:focus-visible {
  outline: 3px solid #cccccc;
  outline-offset: 2px;
}

.download-box {
  max-width: 740px;
  padding: 16px 20px 22px;
  border: 1px solid #eaeaea;
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(0,0,0,.09);
}

#videoUrl {
  border: 1px solid #dddddd;
  background: #fff;
  color: #171717;
  font-size: 16px;
  box-shadow: inset 0 1px 2px rgba(15,23,42,.02);
}

#videoUrl::placeholder {
  color: #999999;
  opacity: 1;
}

#pasteBtn {
  background: #f5f5f5;
  color: #111111;
  font-weight: 700;
}

#downloadBtn {
  background: #111111;
  color: #fff;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -.15px;
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
}

#downloadBtn:not(:disabled):hover {
  background: #111111;
}

#downloadBtn:disabled {
  opacity: .7;
  cursor: wait;
}

#downloadLoader {
  color: #444444;
}

#downloadLoader p {
  color: #555555;
}

#status {
  color: #444444;
  line-height: 1.6;
}

#photoGallery {
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
}

#photoGrid img {
  max-width: 100%;
  border-radius: 10px;
}

.section {
  padding-top: 46px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 1.6px;
}

.section h2,
.guide h2 {
  color: #171717;
  font-size: clamp(23px, 3vw, 31px);
  line-height: 1.28;
  font-weight: 750;
  letter-spacing: -.65px;
}

.guide h3,
.step h3 {
  color: #222222;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
}

.step {
  background: #fff;
  border-color: #eaeaea;
  box-shadow: 0 4px 18px rgba(38,49,96,.035);
}

.step-number {
  color: #111111;
}

.step p,
.guide p,
.guide li {
  color: #666666;
  font-size: 16px;
  line-height: 1.85;
}

.guide {
  border-bottom-color: #eaeaea;
}

.faq-item {
  border-bottom-color: #eaeaea;
}

.faq-item summary {
  color: #292929;
  font-size: 16px;
}

.faq-item p {
  color: #666666;
}

footer {
  background: #fff;
  border-top: 1px solid #eeeeee;
  color: #666666;
}

footer a {
  color: #111111;
}

@media (max-width: 480px) {
  main {
    width: calc(100% - 24px);
    margin-top: 12px;
  }

  .hero {
    padding: 26px 0 20px;
  }

  .hero h1 {
    font-size: clamp(27px, 7.3vw, 34px);
    letter-spacing: -.85px;
  }

  .subtitle {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .tabs {
    padding: 10px 9px 0;
    gap: 3px;
  }

  .tab {
    padding: 12px 2px;
    font-size: 12px;
  }

  .download-box {
    padding: 12px 12px 17px;
  }

  #videoUrl {
    padding: 15px 12px;
  }

  #pasteBtn {
    padding: 10px 12px;
  }

  #downloadBtn {
    padding: 16px;
    font-size: 17px;
  }

  #languageSelector {
    width: 132px;
    font-size: 14px;
  }

  .step {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tab {
    transition: none;
  }
}

/* =========================================
   SAVEITBRO MULTILINGUAL MOBILE FIX
   Light + Dark Mode
   ========================================= */

/* Prevent horizontal overflow */
html, body {
  max-width: 100%;
  overflow-x: clip;
}

*, *::before, *::after {
  box-sizing: border-box;
}

main, section, article, .guide,
.card, .step, .faq-item {
  min-width: 0;
  max-width: 100%;
}

/* Comfortable mobile spacing */
@media (max-width: 767px) {
  main > section,
  main > article {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1, h2, h3, p, li {
    overflow-wrap: break-word;
  }

  .guide, .card, .step {
    border-radius: 16px;
  }
}

/* Fix dark-mode pale cards */
html[data-saveitbro-theme="dark"] .guide,
html[data-saveitbro-theme="dark"] .card,
html[data-saveitbro-theme="dark"] .step,
html[data-saveitbro-theme="dark"] .faq-item,
html[data-saveitbro-theme="dark"] .notice,
html[data-saveitbro-theme="dark"] .warning,
html[data-saveitbro-theme="dark"] .info-box,
html[data-saveitbro-theme="dark"] .highlight,
html[data-saveitbro-theme="dark"] .callout,
html[data-saveitbro-theme="dark"] blockquote {
  background: #171717 !important;
  color: #eaeaea !important;
  border-color: #334155 !important;
}

/* Text inside dark cards */
html[data-saveitbro-theme="dark"] .guide *,
html[data-saveitbro-theme="dark"] .card *,
html[data-saveitbro-theme="dark"] .step *,
html[data-saveitbro-theme="dark"] .notice *,
html[data-saveitbro-theme="dark"] .warning *,
html[data-saveitbro-theme="dark"] .info-box *,
html[data-saveitbro-theme="dark"] .callout * {
  color: inherit;
}

html[data-saveitbro-theme="dark"] .guide a,
html[data-saveitbro-theme="dark"] .card a,
html[data-saveitbro-theme="dark"] .callout a {
  color: #cccccc !important;
}

/* Fix dark-mode tables */
html[data-saveitbro-theme="dark"] table,
html[data-saveitbro-theme="dark"] thead,
html[data-saveitbro-theme="dark"] tbody,
html[data-saveitbro-theme="dark"] tr,
html[data-saveitbro-theme="dark"] th,
html[data-saveitbro-theme="dark"] td {
  background: #171717 !important;
  color: #eaeaea !important;
  border-color: #555555 !important;
}

/* Tables fit narrow screens */
table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
}

th, td {
  padding: 12px;
  text-align: left;
  overflow-wrap: anywhere;
}

/* Fix light mode */
html[data-saveitbro-theme="light"] .guide,
html[data-saveitbro-theme="light"] .card,
html[data-saveitbro-theme="light"] .step,
html[data-saveitbro-theme="light"] .notice,
html[data-saveitbro-theme="light"] .warning,
html[data-saveitbro-theme="light"] .info-box,
html[data-saveitbro-theme="light"] .callout {
  background: #ffffff !important;
  color: #1e293b !important;
  border-color: #e2e8f0 !important;
}

/* Responsive images */
img, video, iframe {
  max-width: 100%;
}

/* Preserve readable text */
html[data-saveitbro-theme="dark"] main p,
html[data-saveitbro-theme="dark"] main li {
  color: #cbd5e1;
}

html[data-saveitbro-theme="dark"] main h1,
html[data-saveitbro-theme="dark"] main h2,
html[data-saveitbro-theme="dark"] main h3 {
  color: #fafafa;
}


/* 2026-11-13: consistent content cards and compact FAQs across all languages.
   CSS only; no API, download form, translations or SEO markup changed. */
main > section.guide,
main > article.guide,
main > section#saveitbro-video-seo.guide {
  padding: 24px !important;
  margin-block: 16px !important;
  border-radius: 16px;
}
main > section.guide > :first-child,
main > article.guide > :first-child { margin-top: 0; }
main > section.guide > :last-child,
main > article.guide > :last-child { margin-bottom: 0; }
main .guide h2, main .guide h3,
main .guide p, main .guide li { max-width: 100%; overflow-wrap: anywhere; }
main .guide ol, main .guide ul { padding-inline-start: 1.5em; }
main .guide li { padding-inline-start: .15em; }
main #faq { min-width: 0; }
main #faq details,
main #faq .faq-item,
main #faq .faq-item details {
  min-height: 0 !important;
  height: auto !important;
  box-sizing: border-box;
}
main #faq .faq-item {
  padding: 0 !important;
  margin: 0 0 10px !important;
  border-radius: 12px;
  overflow: hidden;
}
main #faq details {
  margin: 0 0 10px !important;
  padding: 0 !important;
  border: 1px solid var(--border,#334155);
  border-radius: 12px;
  overflow: hidden;
}
main #faq .faq-item details { margin: 0 !important; border: 0; border-radius: 0; }
main #faq details > summary {
  display: list-item;
  list-style-position: inside;
  padding: 14px 16px !important;
  margin: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  line-height: 1.5 !important;
  font-size: 16px;
  overflow-wrap: anywhere;
  cursor: pointer;
}
main #faq details > p,
main #faq details > div {
  padding: 12px 16px 16px !important;
  margin: 0 !important;
  line-height: 1.7;
}
main #faq details[open] > summary { border-bottom: 1px solid var(--border,#334155); }
@media (max-width: 767px) {
  main > section.guide,
  main > article.guide,
  main > section#saveitbro-video-seo.guide {
    padding: 20px 18px !important;
    margin-block: 12px !important;
  }
  main #faq details > summary { padding: 13px 14px !important; font-size: 15px; }
  main #faq details > p, main #faq details > div { padding: 12px 14px 14px !important; }
}

/* Multilingual downloader layout: safe spacing for long translated headings.
   Applies to all pages that use the shared downloader hero. */
@media (max-width: 767px) {
  body > main:has(> .hero#download) {
    margin-top: 0 !important;
  }
  body > main > .hero#download {
    margin-top: 0 !important;
    padding-top: 18px !important;
    padding-bottom: 20px !important;
    padding-inline: 12px !important;
  }
  body > main > .hero#download > h1 {
    margin: 0 auto 14px !important;
    max-width: 100% !important;
    font-size: clamp(24px, 6.4vw, 33px) !important;
    line-height: 1.26 !important;
    letter-spacing: -0.35px !important;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
    text-wrap: balance;
  }
  body > main > .hero#download > .subtitle {
    margin: 0 auto 24px !important;
    max-width: 100% !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    overflow-wrap: break-word;
  }
  body > main > .hero#download .tabs,
  body > main > .hero#download .download-box {
    max-width: 100%;
    min-width: 0;
  }
  body > main > .hero#download .tab {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
/* Arabic and other RTL locales keep their native writing direction. */
html[dir="rtl"] body > main > .hero#download > h1,
html[dir="rtl"] body > main > .hero#download > .subtitle {
  direction: rtl;
}

/* Readable notices in dark mode: no pale box with pale text. */
html[data-saveitbro-theme="dark"] .note,
html[data-saveitbro-theme="dark"] .intro,
html[data-saveitbro-theme="dark"] .feature,
html[data-saveitbro-theme="dark"] .cta,
html[data-saveitbro-theme="dark"] .container,
html[data-saveitbro-theme="dark"] main .note {
  background: #171717 !important;
  color: #eaeaea !important;
  border-color: #111111 !important;
}
html[data-saveitbro-theme="dark"] .note *,
html[data-saveitbro-theme="dark"] .intro *,
html[data-saveitbro-theme="dark"] .feature *,
html[data-saveitbro-theme="dark"] .cta * {
  color: #eaeaea !important;
}
html[data-saveitbro-theme="dark"] .note a,
html[data-saveitbro-theme="dark"] .intro a,
html[data-saveitbro-theme="dark"] .feature a,
html[data-saveitbro-theme="dark"] .cta a {
  color: #dddddd !important;
}
html[data-saveitbro-theme="light"] .note {
  background: #f5f5f5 !important;
  color: #171717 !important;
}
html[data-saveitbro-theme="light"] .note * { color: #171717 !important; }

/* Mobile Paste-in-field layout override — final stylesheet priority. */
@media(max-width:700px){
  body .hero .download-box .input-row,
  body.direct-landing .hero .download-box .input-row{
    position:relative!important;display:flex!important;flex-direction:row!important;
    flex-wrap:nowrap!important;align-items:center!important;gap:0!important;width:100%!important;
  }
  body .hero .download-box .input-row #videoUrl,
  body.direct-landing .hero .download-box .input-row #videoUrl{
    box-sizing:border-box!important;display:block!important;width:100%!important;
    flex:1 1 auto!important;min-width:0!important;
    padding-inline-end:100px!important;
  }
  body .hero .download-box .input-row #pasteBtn,
  body.direct-landing .hero .download-box .input-row #pasteBtn{
    position:absolute!important;inset-inline-end:6px!important;inset-inline-start:auto!important;
    top:50%!important;transform:translateY(-50%)!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    width:auto!important;min-width:68px!important;max-width:88px!important;
    height:40px!important;min-height:40px!important;max-height:40px!important;
    padding:0 10px!important;margin:0!important;flex:none!important;
    font-size:14px!important;line-height:1.2!important;border-radius:9px!important;z-index:5!important;
  }
}

/* Readable, consistently spaced navigation where premium pages have a header nav. */
@media(max-width:700px){
 body>header nav[aria-label]{
   display:flex!important;align-items:center!important;justify-content:flex-start!important;
   flex-wrap:nowrap!important;gap:15px!important;max-width:100%!important;
   overflow-x:auto!important;overflow-y:hidden!important;
   -webkit-overflow-scrolling:touch;scrollbar-width:none;
 }
 body>header nav[aria-label]::-webkit-scrollbar{display:none}
 body>header nav[aria-label] a{
   flex:0 0 auto!important;white-space:nowrap!important;
   font-size:13px!important;font-weight:600!important;line-height:24px!important;
   opacity:1!important;color:#111111!important;text-decoration:none!important;
 }
 body>header nav[aria-label] a:visited{color:#111111!important}
 html[data-saveitbro-theme="dark"] body>header nav[aria-label] a{color:#dddddd!important}
}

/* Permanent black-and-white palette. Visual colors only; no layout or logic changes. */
:root,html,html[data-theme],html[data-saveitbro-theme]{
  --blue:#111!important;--pink:#111!important;--text:#111!important;
  --muted:#555!important;--border:#ddd!important;
  --primary:#111!important;--primary-color:#111!important;
  --sb-bg:#fff!important;--sb-surface:#fff!important;--sb-text:#111!important;
  --sb-muted:#555!important;--sb-border:#ddd!important;--sb-accent:#111!important;
  color-scheme:light!important;
}
html body,html body header,html body footer,html body main,
html body .hero,html body .section,html body .sb-legal-header{
 background-color:#fff!important;color:#111!important;border-color:#ddd!important;
}
html body :is(.logo,.logo span,.brand,.brand span,.sb-legal-brand,.sb-legal-brand span,
.sb-legal-home,main h1,main h2,main h3,main h4,main p,main li,main a,
header a,footer a,.step-number,.step-num,.step-count,.step-index){
 color:#111!important;-webkit-text-fill-color:#111!important;
}
html body :is(.card,.step,.step-card,.guide,.guide-card,.content-card,.page-content,
.legal-content,.intro-card,.about-card,.privacy-card,.policy-card,.faq-item,
.faq-card,.faq-list details,.faq-list summary,.content-box,.feature-card,article){
 background:#fff!important;background-image:none!important;color:#111!important;
 border-color:#ddd!important;
}
html body :is(.tabs .tab,.tabs button,.tab-button){
 background:#fff!important;background-image:none!important;color:#111!important;
 border-color:#ddd!important;
}
html body :is(.tabs .active,.tabs [aria-selected="true"],.tab-button.active){
 background:#eee!important;color:#111!important;
}
html body :is(.download-btn,.download-button,.btn-primary,.primary-button,
#downloadBtn,button[type="submit"]){
 background:#111!important;background-image:none!important;
 color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#111!important;
}
html body :is(#languageSelector,#saveitbroLegalLanguage,.language-selector,select,input,textarea){
 background-color:#fff!important;color:#111!important;
 -webkit-text-fill-color:#111!important;border-color:#ccc!important;
}
html body :is(#saveitbroThemeToggle,[data-theme-toggle],.theme-toggle,.dark-mode-toggle){
 display:none!important;
}
html body #sb-scroll-share{background:#111!important;color:#fff!important}
html body #sb-share-toast{background:#111!important;color:#fff!important}

/* Hide only the secondary header navigation (Downloader / Videos / Photos / Stories / Guides). */
body > header nav[aria-label="Main navigation"],
body > header .header-inner > nav,
body > header .top-nav-inner > nav[aria-label="Main navigation"]{display:none!important}

/* Keep the language dropdown in the upper-right of landing-page headers. */
@media(max-width:767px){
 body > header:has(.sb-landing-language){position:relative!important}
 body > header .sb-landing-language{
   position:absolute!important;top:12px!important;right:16px!important;
   left:auto!important;inset-inline-start:auto!important;
   margin:0!important;display:block!important;z-index:20!important;
 }
 body > header .sb-landing-language select{
   display:block!important;max-width:140px!important;
 }
 body > header:has(.sb-landing-language) .header-inner{
   padding-right:155px!important;box-sizing:border-box!important;
 }
}

/* Selected downloader tab: solid black with white label. */
html body .tabs .tab.active,
html body .tabs button.active,
html body .tabs [aria-selected="true"],
html body .tab-button.active,
html body .tab.active {
  background:#111!important;
  background-image:none!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  border-color:#111!important;
}

/* Downloader tab contrast across every localized homepage.
   Styles only: no changes to tabs, translations or downloader behavior. */
html body .hero#download .tabs > button.tab.active,
html body .hero#download .tabs > button.tab[aria-selected="true"] {
  background:#000!important;background-color:#000!important;
  background-image:none!important;color:#fff!important;
  -webkit-text-fill-color:#fff!important;border-color:#000!important;
  opacity:1!important;
}
html body .hero#download .tabs > button.tab:not(.active):not([aria-selected="true"]) {
  background:#fff!important;background-color:#fff!important;
  background-image:none!important;color:#111!important;
  -webkit-text-fill-color:#111!important;border-color:#ddd!important;
  opacity:1!important;
}


/* Unified black-and-white presentation across localized homepage variants.
   Scoped to shared components; no downloader or translation behavior changed. */
:root{--blue:#111!important;--pink:#111!important;--text:#111!important;--muted:#555!important;--border:#dedede!important}
html body{background:#fff!important;color:#111!important}
html body header,html body footer{background:#fff!important;color:#111!important;border-color:#ddd!important}
html body header .logo,html body header .logo span{color:#111!important}
html body .language-control label{display:none!important}
html body #languageSelector{background:#fff!important;color:#111!important;-webkit-text-fill-color:#111!important;border-color:#d5d5d5!important}
html body .hero,html body .hero h1,html body .hero .subtitle{background:#fff!important;color:#111!important}
html body .tabs,html body .download-box{background:#fff!important;border-color:#dedede!important}
html body .tabs button.tab.active,html body .tabs button.tab[aria-selected="true"],html body .tabs button.tab[data-active="true"]{background:#000!important;background-color:#000!important;background-image:none!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#000!important;opacity:1!important}
html body .tabs button.tab:not(.active):not([aria-selected="true"]):not([data-active="true"]){background:#fff!important;background-color:#fff!important;background-image:none!important;color:#111!important;-webkit-text-fill-color:#111!important;border-color:#ddd!important;opacity:1!important}
html body .download-box button[type="submit"],html body #downloadBtn,html body .download-btn{background:#111!important;background-image:none!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html body .input-row input{background:#fff!important;color:#111!important;border-color:#ddd!important}
html body .input-row button{background:#eee!important;color:#111!important;-webkit-text-fill-color:#111!important}
html body footer a,html body main a{color:#111!important}
html body .theme-toggle,html body #themeToggle,html body #saveitbroThemeToggle,html body [data-theme-toggle]{display:none!important}
html body .faq-item,html body details,html body .step-card{background:#fff!important;color:#111!important;border-color:#ddd!important}


/* 2026-11-14: compact, accessible mobile footer links without crowded rows. */
@media(max-width:767px){
  html body > footer{padding:28px 18px 36px!important;text-align:center!important}
  html body > footer > nav[aria-label="Instagram download tools"]{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px 12px!important;max-width:520px!important;
    margin:0 auto 24px!important;align-items:stretch!important;
  }
  html body > footer > nav[aria-label="Instagram download tools"] > a{
    display:flex!important;align-items:center!important;justify-content:center!important;
    padding:12px 7px!important;margin:0!important;
    border:1px solid #e2e2e2!important;border-radius:10px!important;
    background:#fff!important;color:#111!important;-webkit-text-fill-color:#111!important;
    font-size:13px!important;font-weight:600!important;line-height:1.3!important;
    text-align:center!important;text-decoration:none!important;
    min-width:0!important;overflow-wrap:break-word!important;
  }
  html body > footer > p{margin:15px auto!important;max-width:600px!important;line-height:1.6!important}
  html body > footer > p > a{
    display:inline-block!important;margin:4px 7px!important;
    font-size:14px!important;line-height:1.5!important;
  }
}
/* The old landing-page nav must not reappear beneath the unified header. */
html body > header.sb-global-header .header-inner nav,
html body > header.sb-global-header nav[aria-label="Main navigation"]{
  display:none!important;visibility:hidden!important;
}
html body > header.sb-global-header .sb-global-controls{
  position:static!important;transform:none!important;flex-shrink:0!important;
}
html body > header.sb-global-header .sb-global-controls .sb-landing-language{
  position:static!important;inset:auto!important;transform:none!important;
}

/* Keep the logo, FAQ and language dropdown on one mobile row.
   This also works before the shared header JavaScript finishes. */
@media(max-width:767px){
 html body > header:has(.sb-landing-language){
   display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
   justify-content:space-between!important;align-items:center!important;
   gap:8px!important;padding:14px 14px!important;min-height:74px!important;
   position:relative!important;
 }
 html body > header:has(.sb-landing-language) > .header-inner{
   display:flex!important;flex:0 1 auto!important;min-width:0!important;
   width:auto!important;max-width:none!important;padding:0!important;margin:0!important;
   align-items:center!important;justify-content:flex-start!important;
   flex-direction:row!important;
 }
 html body > header:has(.sb-landing-language) .header-inner > nav{
   display:none!important;visibility:hidden!important;
 }
 html body > header:has(.sb-landing-language) .header-inner > .logo{
   display:block!important;position:static!important;max-width:none!important;
   padding:0!important;margin:0!important;white-space:nowrap!important;
   font-size:clamp(19px,5vw,26px)!important;line-height:1.25!important;
 }
 html body > header:has(.sb-landing-language) > .sb-landing-language{
   display:block!important;position:static!important;inset:auto!important;
   margin:0 0 0 auto!important;transform:none!important;
 }
 html body > header:has(.sb-landing-language) > .sb-landing-language select{
   width:112px!important;max-width:29vw!important;height:42px!important;
 }
 html body > header:has(.sb-landing-language) > .sb-global-faq{
   position:static!important;inset:auto!important;transform:none!important;
   margin-left:auto!important;white-space:nowrap!important;
 }
 html body > header.sb-global-header .sb-global-controls{
   display:flex!important;flex-direction:row!important;align-items:center!important;
   gap:10px!important;margin-left:auto!important;position:static!important;
 }
 html body > header.sb-global-header .sb-global-controls .sb-landing-language select{
   width:112px!important;max-width:29vw!important;
 }
}

/* Keep Paste buttons monochrome across the homepage and translated landing pages. */
html body #pasteBtn,
html body .download-box .input-row #pasteBtn,
html body.direct-landing .hero .input-row #pasteBtn {
  background:#f1f1f1!important;
  background-color:#f1f1f1!important;
  background-image:none!important;
  color:#111!important;
  -webkit-text-fill-color:#111!important;
  border:1px solid #dedede!important;
}
html body #pasteBtn:hover,
html body #pasteBtn:focus-visible {
  background:#e7e7e7!important;
  background-color:#e7e7e7!important;
  color:#111!important;
  -webkit-text-fill-color:#111!important;
}

/* Monochrome consistency for standalone Story downloader and informational CTAs.
   Preserve button sizing, placement and existing JavaScript click handlers. */
html:not([data-saveitbro-theme="dark"]) body .download-panel .input-row #pasteBtn,
html:not([data-saveitbro-theme="dark"]) body .download-panel #pasteBtn,
html:not([data-saveitbro-theme="dark"]) body #pasteBtn.btn.secondary {
  background:#f1f1f1!important;
  background-color:#f1f1f1!important;
  background-image:none!important;
  color:#111!important;
  -webkit-text-fill-color:#111!important;
  border:1px solid #dedede!important;
}
html:not([data-saveitbro-theme="dark"]) body .cta,
html:not([data-saveitbro-theme="dark"]) body .intro {
  background:#f7f7f7!important;
  background-image:none!important;
  color:#111!important;
}
html:not([data-saveitbro-theme="dark"]) body .cta .button,
html:not([data-saveitbro-theme="dark"]) body a.button {
  background:#111!important;
  background-color:#111!important;
  background-image:none!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  border-color:#111!important;
}
html:not([data-saveitbro-theme="dark"]) body .cta .button:hover,
html:not([data-saveitbro-theme="dark"]) body a.button:hover {
  background:#333!important;
  background-color:#333!important;
}
html:not([data-saveitbro-theme="dark"]) body .note {border-left-color:#555!important}
html:not([data-saveitbro-theme="dark"]) body .logo span {color:#111!important}
html:not([data-saveitbro-theme="dark"]) body main a:not(.button) {color:#111!important}
html[data-saveitbro-theme="dark"] body .download-panel .input-row #pasteBtn,
html[data-saveitbro-theme="dark"] body #pasteBtn.btn.secondary {
  background:#333!important;background-color:#333!important;
  background-image:none!important;color:#fff!important;
  -webkit-text-fill-color:#fff!important;border:1px solid #555!important;
}
html[data-saveitbro-theme="dark"] body .cta .button,
html[data-saveitbro-theme="dark"] body a.button {
  background:#f4f4f4!important;background-color:#f4f4f4!important;
  color:#111!important;-webkit-text-fill-color:#111!important;
}
