
  :root{
    --brand:#0b5fff;
    --text:#0f172a;
    --muted:#475569;
    --line:rgba(15,23,42,.10);
    --card:#ffffff;
    --shadow: 0 18px 55px rgba(2, 6, 23, .10);
    --shadow-soft: 0 8px 28px rgba(2, 6, 23, .10);
    --radius: 22px;
    --toolbar-h: 64px;
  }

  *{box-sizing:border-box}
  html,body{height:100%}

  body{
    margin:0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
    color:var(--text);

    /* blue tiles background */
    background:
      linear-gradient(90deg, rgba(255,255,255,.70), rgba(255,255,255,.70)),
      linear-gradient(45deg, rgba(11,95,255,.10) 25%, transparent 25%, transparent 75%, rgba(11,95,255,.10) 75%, rgba(11,95,255,.10)),
      linear-gradient(45deg, rgba(11,95,255,.06) 25%, transparent 25%, transparent 75%, rgba(11,95,255,.06) 75%, rgba(11,95,255,.06));
    background-size: auto, 120px 120px, 120px 120px;
    background-position: 0 0, 0 0, 60px 60px;

    /* dynamic room for fixed toolbar */
    padding-top: calc(var(--toolbar-h, 64px) + 8px);
  }

  a{color:var(--brand); text-decoration:none}
  a:hover{text-decoration:underline}

  .page{
    padding: 1px 8px 40px;
    max-width: 1120px;
    margin: 0 auto;
  }

  /* ====== TOP TOOLBAR ====== */
  .toolbar{
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 80;
    background: rgba(248,250,252,.88);
    border-bottom: 1px solid rgba(11, 95, 255, .35);
    backdrop-filter: blur(10px);
  }

  .toolbarInner{
    max-width: 1120px;
    margin: 0 auto;
    padding: 10px 18px;
    display: grid;
    grid-template-columns: auto 1fr auto; /* account | status | theme/install */
    align-items: center;
    gap: 10px;
  }

  /* RIGHT side: theme + install */
  .toolbarLeft{
    display:flex;
    align-items:center;
    gap: 3px;
    min-width: 0;
    justify-content: flex-end;
  }

  /* MIDDLE: status placeholder (now mostly unused, but keep layout stable) */
  .toolbarStatus{
    display:flex;
    justify-content:center;
    align-items:center;
    min-width: 0;
  }

  /* LEFT side: account/login */
  .toolbarAccount{
    display:flex;
    justify-content:flex-start;
    align-items:center;
    gap: 8px;
    min-width: 0;
  }

  /* Theme toggle */
  #theme-toggle{
    width: 36px;
    height: 34px;
    padding: 0;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius: 10px;
    border: 1px solid rgba(11, 95, 255, .35);
    background: rgba(255,255,255,.92);
    box-shadow: 0 10px 24px rgba(2,6,23,.10);
    cursor:pointer;
    user-select:none;
  }
  #theme-toggle svg{ width: 18px; height: 18px; }

  .installBtn{
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(11, 95, 255, .35);
    background: rgba(255,255,255,.92);
    box-shadow: 0 10px 24px rgba(2,6,23,.10);
    font-size: 13px;
    display: none;
    cursor:pointer;
  }
  .installBtn.show{ display:inline-flex; }

  /* Email truncation inside account pill */
  #who{
    display:inline-block;
    min-width: 0;
    max-width: 260px;
    overflow:hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
  }

  /* Upgrade message should not blow up dropdown */
  #upgradeMsg{
    max-width: 340px;
    overflow:hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* ===== Account pill as dropdown trigger ===== */
  #accountMenuBtn{
    min-width: 0;
    max-width: 380px;
    cursor: pointer;
  }
  button#accountMenuBtn:hover,
  button#accountMenuBtn:active{
    transform: none; /* cancel global button hover lift */
  }

/* Account dropdown panel */
.accountMenuPanel{
  position: fixed;

  /* align to the button (set by JS) */
  left: var(--account-left, 18px);
  width: var(--account-w, min(420px, calc(100vw - 36px)));

  /* start under toolbar/button and stretch to bottom */
  top: var(--account-panel-top, calc(var(--toolbar-h, 56px) + 8px));
  bottom: 12px;

  height: auto;
  max-height: none;
  overflow: auto;

  background: rgba(255,255,255,.96);
  border: 1px solid rgba(11, 95, 255, .35);
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(2,6,23,.16);
  padding: 12px;
  display: none;
  z-index: 95;
  backdrop-filter: blur(10px);
}
.accountMenuPanel.show{ display:block; }

@media (min-width: 1100px){
  /* fixed width for the account button => panel will match it */
  #accountMenuBtn{
    width: 420px;
    justify-content: space-between;
  }

  /* large-screen: make toolbar content full-width so left sidebar aligns nicely */
  body.hasAccountSidebar .toolbarInner{
    max-width: none;
  }

  /* shift the main content to the right of the docked sidebar */
  body.hasAccountSidebar .page{
    max-width: none;
    margin: 0;
    padding-left: calc(var(--account-left, 18px) + var(--account-w, 420px) + 18px);
    padding-right: 18px;
  }

  /* keep your main shell readable width */
  body.hasAccountSidebar .shell{
    max-width: 1320px;
    margin: 0 auto;
  }

  /* in docked mode you don’t need a close button */
  body.hasAccountSidebar #accountMenuClose{ display:none; }
}


  /* Login panel (center aligned) */
.loginPanel{
  position: fixed;
  top: calc(var(--toolbar-h, 56px) + 12px);
  left: 50%;
  transform: translateX(-50%);
  right: auto;

  width: min(560px, calc(100vw - 36px));
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(11, 95, 255, .35);
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(2,6,23,.16);
  padding: 12px;
  display:none;
  z-index: 90;
  backdrop-filter: blur(10px);
}

  .loginPanel.show{ display:block; }

  @media (max-width: 520px){
    .toolbarInner{ padding: 10px 12px; }
    .loginPanel{ right: 12px; width: calc(100vw - 24px); }
    #accountMenuBtn{ max-width: 100%; }
    #who{ max-width: 100%; }
  }

  /* Mobile layout: top row = account(left) + theme/install(right), second row = status */
  @media (max-width: 720px){
    .toolbarInner{
      grid-template-columns: 1fr auto;
      grid-template-areas:
        "account right"
        "status status";
      padding-bottom: 0px;
    }
    .toolbarAccount{ grid-area: account; justify-content:flex-start; }
    .toolbarLeft{ grid-area: right; justify-content:flex-end; }
    .toolbarStatus{ grid-area: status; justify-content:flex-start; }
    #upgradeMsg{ display:none; }
  }

  /* ====== MAIN SHELL ====== */
  .shell{
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(11, 95, 255, .35);
    border-radius: 26px;
    box-shadow: var(--shadow);
    padding: 20px;
  }

  .hero{
    text-align:center;
    padding: 8px 0 14px;
  }
  .heroIcon{
    width:64px; height:64px;
    border-radius: 20px;
    border: 1px solid rgba(11,95,255,.35);
    box-shadow: 0 18px 40px rgba(2,6,23,.12);
    background:#fff;
    object-fit:cover;
    margin-bottom: 10px;
  }
  .hero h1{
    margin:0;
    font-size: 26px;
    letter-spacing: .2px;
    line-height: 1.12;
  }
  .hero h1 .heroSub{
    display:block;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0;
  }

  .hero p{ margin: 8px 0 0; color: var(--muted); font-size: 14px; }

  .grid{
    display:grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 14px;
  }
  @media (min-width: 920px){
    .grid{ grid-template-columns: 420px 1fr; align-items: stretch; }
    .grid > .card{ height: 100%; min-height: 0; }
  }

  .card{
    background: var(--card);
    border: 1px solid rgba(11, 95, 255, .35);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 16px;
    min-height: 0;
  }

  .sectionTitle{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 10px;
    margin: 0 0 10px;
  }
  .sectionTitle h2, .sectionTitle h3{
    margin:0;
    font-size: 14px;
    letter-spacing:.2px;
  }
  .subtle{ font-size:12px; color: var(--muted); }

  .row{ display:flex; gap: 10px; flex-wrap: wrap; align-items: center; }
  label{display:block; font-size:12px; color: var(--muted); margin-bottom: 6px}

/* Inputs: custom look, but NOT for checkbox/radio/range/file */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
select{
  appearance:none;
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid rgba(11, 95, 255, .35);
  background: #fff;
  color: var(--text);
  outline: none;
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(2,6,23,.06);
}

/* Focus for the same set (prevents checkbox focus oddities) */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):focus,
select:focus{
  border-color: rgba(11, 95, 255, .35);
  box-shadow: 0 0 0 4px rgba(11,95,255,.12), 0 8px 18px rgba(2,6,23,.06);
}

/* Optional: highlight pill when checked (works in Chrome/Safari; depends on :has support) */
label.pill:has(.monthCb:checked){
  background: rgba(11,95,255,.18);
  border-color: rgba(11,95,255,.65);
}

/* range slider (you already had this) */
input[type="range"]{
  width: 100%;
  padding: 8px 0;
  box-shadow: none;
}


  button{
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(11, 95, 255, .35);
    background: #fff;
    color: var(--text);
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 10px 22px rgba(2,6,23,.08);
    transition: transform .06s ease, box-shadow .12s ease, border-color .12s ease;
    user-select:none;
  }
  button:hover{ transform: translateY(-1px); box-shadow: 0 14px 26px rgba(2,6,23,.10); }
  button:active{ transform: translateY(0px); box-shadow: 0 10px 22px rgba(2,6,23,.08); }
  button:disabled{ opacity:.55; cursor:not-allowed; transform:none; }

  .btnPrimary{
    border-color: rgba(11, 95, 255, .35);
    background: linear-gradient(180deg, rgba(11,95,255,.10), rgba(11,95,255,.03));
  }
  .btnBrand{
    border-color: rgba(11, 95, 255, .35);
    background: linear-gradient(180deg, rgba(11,95,255,.22), rgba(11,95,255,.08));
  }
  .btnSmall{
    padding: 8px 8px;
    border-radius: 10px;
    font-size: 13px;
    box-shadow: 0 10px 24px rgba(2,6,23,.10);
  }

  .pill{
    display:inline-flex;
    align-items:center;
    gap:4px;
    padding: 7px 7px;
    border-radius: 999px;
    border: 1px solid rgba(11, 95, 255, .35);
    background: rgba(255,255,255,.90);
    box-shadow: 0 10px 22px rgba(2,6,23,.08);
    white-space: nowrap;
    font-size: 13px;
    min-width: 0; /* important for truncation inside flex */
  }

  /* ===== Toggle switch ===== */
  .toggleRow{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(11, 95, 255, .35);
    border-radius: 14px;
    background: rgba(255,255,255,.90);
    box-shadow: 0 8px 18px rgba(2,6,23,.06);
  }
  .toggleTitle{ font-size: 13px; font-weight: 700; }

  input.toggle{
    appearance:none;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(11, 95, 255, .35);
    background: rgba(15,23,42,.12);
    position: relative;
    padding: 0;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
  }
  input.toggle::after{
    content:"";
    position:absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 18px rgba(2,6,23,.18);
    transition: transform .15s ease;
  }
  input.toggle:checked{ background: rgba(11,95,255,.45); }
  input.toggle:checked::after{ transform: translateX(20px); }
  input.toggle:disabled{ opacity: .55; cursor:not-allowed; }

  .ok{ color:#006798; font-weight:600; }
  .err{ color:#b00020; font-weight:600; }
  .muted{ color: var(--muted); font-size: 13px; }

  canvas{
    width: 100%;
    height: auto;
    border: 1px solid rgba(11, 95, 255, .35);
    border-radius: 18px;
  }

  /* ====== RESULTS: SAME HEIGHT + SCROLL INSIDE ====== */
  .resultsCard{
    display:flex;
    flex-direction:column;
    min-height:0;
  }
  .resultsCard .sectionTitle{ flex: 0 0 auto; }
  #results{
    flex: 1 1 auto;
    min-height:0;
    overflow:auto;
    padding-right: 6px;
  }

  .resultsGrid{
    display:flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items:flex-start;
  }
  .thumb{
    width: 220px;
    border-radius: 18px;
    border: 1px solid rgba(15,23,42,.10);
    box-shadow: 0 12px 26px rgba(2,6,23,.08);
    overflow:hidden;
    background:#fff;
  }
  .thumb img{ display:block; width:100%; height:auto; }
  .thumb .thumbFooter{
    padding: 10px 10px 12px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap: 10px;
    font-size: 13px;
  }

  .divider{ height: 1px; background: rgba(15,23,42,.08); margin: 12px 0; }
  .foot{ text-align:center; margin-top: 14px; font-size: 12px; color: var(--muted); }

  /* === clickable-but-locked look (so we can show "Login required") === */
  .locked{
    opacity:.55;
    cursor:not-allowed !important;
    transform:none !important;
  }
  .locked:hover{ transform:none !important; }

  /* ===== Busy / Spinner overlay ===== */
  .busyOverlay{
    position: fixed;
    inset: 0;
    z-index: 200; /* above toolbar + panels */
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(248,250,252,.65);
    backdrop-filter: blur(8px);
  }
  .busyOverlay.show{ display:flex; }

  .busyCard{
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(11, 95, 255, .35);
    background: rgba(255,255,255,.92);
    box-shadow: 0 22px 70px rgba(2,6,23,.16);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
  }

  .spinner{
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid rgba(15,23,42,.18);
    border-top-color: rgba(11,95,255,.95);
    animation: spin .85s linear infinite;
  }

  @keyframes spin{
    to{ transform: rotate(360deg); }
  }

  /* ===== Buy credits modal ===== */
  .modalOverlay{
    position: fixed;
    inset: 0;
    z-index: 210; /* above busy overlay */
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(248,250,252,.65);
    backdrop-filter: blur(10px);
  }
  .modalOverlay.show{ display:flex; }

  .modalCard{
    width: min(520px, calc(100vw - 36px));
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(11, 95, 255, .35);
    border-radius: 18px;
    box-shadow: 0 22px 70px rgba(2,6,23,.16);
    padding: 14px;
    margin-bottom: 55px;
  }
  
  /* ===== Account Button ===== */

/* ===== Sessions list (Account panel) ===== */
.sessionsHeader{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  margin-top:10px;
}

.sessionsList{
  margin-top:8px;
  display:flex;
  flex-direction:column;
  gap:8px;
  font-size:13px;
}

.sessionItem{
  border: 1px solid rgba(11, 95, 255, .22);
  border-radius: 14px;
  padding: 8px 10px;
  position: relative;
  background: rgba(255,255,255,.70);
  box-shadow: 0 8px 18px rgba(2,6,23,.06);
}

.sessionTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

.sessionLink{
  font-weight:800;
  text-decoration:none;
  word-break:break-word;
  color: var(--text);
}
.sessionLink:hover{ text-decoration: underline; }

.sessionMeta{
  margin-top:4px;
  font-size:12px;
  color: var(--muted);
  opacity:.85;
  word-break:break-word;
}

/* the "..." button */
.sessionKebab{
  padding: 6px 9px;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1;
  min-width: 34px;

  border: 1px solid rgba(11, 95, 255, .35);
  background: rgba(255,255,255,.90);
  box-shadow: 0 10px 22px rgba(2,6,23,.08);
}

/* menu under the kebab */
.sessionMenu{
  position:absolute;
  right:10px;
  top:36px;
  min-width: 190px;

  background: rgba(255,255,255,.98);
  border: 1px solid rgba(11, 95, 255, .22);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);

  padding: 6px;
  display:none;
  z-index: 120;
  backdrop-filter: blur(10px);
}
.sessionMenu.show{ display:block; }

.sessionMenuBtn{
  width:100%;
  text-align:left;
  padding: 9px 10px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: var(--text);
}
.sessionMenuBtn:hover{ background: rgba(11, 95, 255, .10); }

.sessionMenuBtn.danger{ color: #b00020; }
.sessionMenuBtn.danger:hover{ background: rgba(176, 0, 32, .10); }

.sessionMenuSep{
  height:1px;
  background: rgba(15,23,42,.10);
  margin: 6px 4px;
  border-radius: 1px;
}

/* If your inverted dark mode makes panels too bright, this keeps contrast predictable */
html.dark .sessionItem{
  background: rgba(255,255,255,.86);
}


/*--------------DESCRIPTION-----------------*/
  /* Give room for the fixed bottom bar */
  body{ padding-bottom: 78px; }

  .synDescBar{
    position: fixed;
    left: 0; right: 0;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 95; /* below full modals, above page */
    pointer-events: none; /* so only inner receives clicks */
  }
  @media (min-width: 920px){
    .synDescBar{ top: 8px!important; }
  }

  .synDescInner{
    pointer-events: auto;
    width: fit-content;
    max-width: min(980px, calc(100vw - 24px));
    margin: 0 auto;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(11, 95, 255, .35);
    background: rgba(255,255,255,.92);
    box-shadow: 0 18px 55px rgba(2, 6, 23, .12);
    backdrop-filter: blur(10px);
    text-align: center;
    font-size: 12px;
    color: var(--muted, #475569);
    display:flex;
    gap: 10px;
    align-items:center;
    justify-content:center;
    flex-wrap: wrap;
  }
  .synDescInner a{
    color: #006798;
    text-decoration: none;
    font-weight: 700;
  }
  .synDescInner a:hover{ text-decoration: underline; }
  .synDescSep{ opacity:.55; }

  /* ===== Modals ===== */
  .synModal{
    display:none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(2,6,23,.55);
    padding: 16px;
  }
  .synModal.show{ display:block; }

  .synModalContent{
    position: relative;
    margin: 6vh auto 0;
    width: min(860px, calc(100vw - 24px));
    max-height: 84vh;
    overflow:auto;
    -webkit-overflow-scrolling: touch;

    background: rgba(255,255,255,.96);
    border: 1px solid rgba(11, 95, 255, .35);
    border-radius: 18px;
    box-shadow: 0 22px 70px rgba(2,6,23,.22);
    padding: 16px 16px 14px;
  }

  .synModalTitle{
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--text, #0f172a);
    letter-spacing: .2px;
  }
  .synModalContent p{ margin: 8px 0; color: var(--text, #0f172a); }
  .synModalContent ul, .synModalContent ol{ margin: 8px 0 8px 18px; }
  .synModalContent li{ margin: 6px 0; }
  .synModalNote{ color: var(--muted, #475569); font-size: 12px; }

  .synClose{
    position: sticky;
    top: 8px;
    float: right;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(11, 95, 255, .35);
    background: #fff;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(2,6,23,.10);
    font-size: 28px;
    line-height: 1px;
    text-align:center;
    user-select:none;
    padding: 5px;
  }
  .synClose:hover{ transform: translateY(-1px); }
  .synClose:active{ transform: translateY(0px); }

  /* Prevent background scroll when modal open */
  body.synModalOpen{ overflow:hidden; }

  .synTagRow{
    display:flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
  }
  .synTag{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(11, 95, 255, .35);
    background: rgba(11,95,255,.06);
    font-size: 12px;
    color: var(--text, #0f172a);
    white-space: nowrap;
  }

  .synBtnRow{
    display:flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
    align-items:center;
  }
  .synMiniBtn{
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(11, 95, 255, .35);
    background: #fff;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(2,6,23,.08);
    font-size: 13px;
  }

  @media (max-width: 520px){
    body{ padding-bottom: 88px; }
    .synDescInner{ font-size: 12px; padding: 10px 12px; }
    .synModalContent{ margin-top: 4vh; }
  }

  /* ===== Video blocks ===== */
  .synVideoWrap{
    margin: 25px 0 20px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(11, 95, 255, .35);
    background: #000;
    box-shadow: 0 14px 38px rgba(2,6,23,.12);
  }
  .synVideo{
    width: 100%;
    height: auto;
    display: block;
  }

  /* Contact form inside modal */
  #synContactForm{ margin-top: 10px; }
  #synContactForm .synFormGroup{ margin-bottom: 12px; }
  #synContactForm label{
    display:block;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 13px;
    color: var(--text, #0f172a);
  }
  #synContactForm input[type="email"],
  #synContactForm textarea{
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(11, 95, 255, .35);
    border-radius: 10px;
    background: #fff;
    color: var(--text, #0f172a);
    outline: none;
    font-size: 14px;
    box-shadow: 0 8px 18px rgba(2,6,23,.06);
  }
  #synContactForm textarea{
    resize: vertical;
    min-height: 120px;
  }
  #synContactForm .synSubmit{
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(11, 95, 255, .35);
    background: linear-gradient(180deg, rgba(11,95,255,.22), rgba(11,95,255,.08));
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(2,6,23,.08);
    font-size: 14px;
    font-weight: 700;
  }
  #synContactFeedback{
    margin-top: 10px;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    color: var(--muted, #475569);
  }

  /* ===== Before/After examples ===== */
  .synExamples{ margin-top: 14px; }
  .synExampleGrid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  @media (max-width: 720px){
    .synExampleGrid{ grid-template-columns: 1fr; }
  }
  .synExample{
    border: 1px solid rgba(11, 95, 255, .25);
    border-radius: 14px;
    overflow:hidden;
    background: rgba(255,255,255,.92);
    box-shadow: 0 14px 38px rgba(2,6,23,.10);
  }
  .synExample img{
    display:block;
    width:100%;
    height:auto;
    background:#000;
  }
  .synExampleCap{
    padding: 10px 12px;
    font-size: 12px;
    color: var(--muted, #475569);
  }
  .synExampleCap strong{ color: var(--text, #0f172a); }

  /* ===== How-to guide (SAIMSARA-like) ===== */
  .synGuideList{
    padding-inline-start: 22px;
    margin: 8px 0 0;
  }
  .synGuideStep{
    margin: 12px 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(11, 95, 255, .20);
  }
  .synGuideStep:last-child{
    border-bottom: 0;
    padding-bottom: 0;
  }
  .synGuideStep strong{ color: var(--text, #0f172a); }
  .synGuideStep ul{ margin: 8px 0 0 18px; }
  .synGuideStep .synMiniNote{
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted, #475569);
  }

  .synFigure{
    margin: 10px 0 0;
  }
  .synFigure img{
    display:block;
    width:100%;
    height:auto;
    border-radius: 14px;
    border: 1px solid rgba(11, 95, 255, .25);
    box-shadow: 0 14px 38px rgba(2,6,23,.10);
    background:#000;
  }
  .synFigure figcaption{
    margin-top: 7px;
    text-align:center;
    font-size: 12px;
    color: var(--muted, #475569);
  }

  .synFigureRow{
    margin-top: 10px;
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  @media (max-width: 720px){
    .synFigureRow{ grid-template-columns: 1fr; }
  }
  
/* Segmented "equalizer" bar */
.genBar{
  display:flex;
  width:100%;
  border:1px solid rgba(11,95,255,.35);
  border-radius:999px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 8px 18px rgba(2,6,23,.06);
}

.genSeg{
  flex:1 1 0;
  min-width:0;
  padding:10px 12px;
  border:0;
  background:transparent;
  font-weight:800;
  font-size:13px;
  line-height:1.1;
  cursor:pointer;
  border-radius: 0px;
  transition: background-color .15s ease;
}

.genSeg + .genSeg{
  border-left:1px solid rgba(11,95,255,.25);
}

.genSeg.isOn{
  background:rgba(11,95,255,.18);
}

.genSeg:disabled{ opacity:.55; cursor:not-allowed; }

/* small right dropdown segment */
.genSelect{
  flex:0 0 78px;
  text-align:center;
  padding-right:28px;
  appearance:none;
  -webkit-appearance:none;

  /* intensity default (synthetic OFF = transparent) */
  background-color: transparent;
  transition: background-color .15s ease;

  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat:no-repeat;
  background-position:right 10px center;
  background-size:14px 14px;
}

/* NEW: synthetic count intensity (1..4) */
.genSelect.syn1{ background-color: rgba(11,95,255,.18); } /* same as .genSeg.isOn */
.genSelect.syn2{ background-color: rgba(11,95,255,.28); }
.genSelect.syn3{ background-color: rgba(11,95,255,.38); }
.genSelect.syn4{ background-color: rgba(11,95,255,.48); }

/* dark invert compatibility */
html.dark .genBar{
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}
html.dark .genSeg + .genSeg{
  border-left-color: rgba(255,255,255,.18);
}

@media (max-width: 420px){
  .genSeg{ padding:10px 10px; font-size:12px; }
  .genSelect{ flex-basis:70px; }
}
