/* Generated by scripts/build-style-bundles.mjs. Edit the source stylesheets. */
/* image-to-sketch.css */
:root {
    --ct-bg:#fff9f1;
    --ct-ink:#1c1830;
    --ct-muted:#716b80;
    --ct-line:#eadff2;
    --ct-purple:#7657ff;
    --ct-orange:#ff7557;
    --ct-yellow:#ffd65a;
    --ct-blue:#42b9ff;
    --ct-pink:#ff67b3;
    --shadow:0 28px 80px rgba(75,54,140,.14)
}
* { box-sizing:border-box }
body {
    margin:0;
    background:radial-gradient(circle at 8% 0,rgba(255,214,90,.22),transparent 22%),radial-gradient(circle at 92% 6%,rgba(66,185,255,.18),transparent 20%),linear-gradient(180deg,#fffaf4,#fff 55%,#fff7fb);
    color:var(--ct-ink);
    font-family:Inter,system-ui,sans-serif
}
.ct-hero,.ct-section,.ct-cta { width:min(var(--t67-page-max,1440px),calc(100% - 36px)); margin:auto }
.ct-tag {
    display:inline-flex;
    padding:8px 13px;
    border-radius:999px;
    background:#fff;
    border:1px solid var(--ct-line);
    font-size:11px;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:var(--ct-purple)
}
.ct-hero { display:grid; grid-template-columns:1fr 1fr; gap:46px; align-items:center; padding:72px 0 }
.ct-copy h1 {    margin:0 ;}
.ct-copy p { color:var(--ct-muted); line-height:1.9; font-size:16px; max-width:690px }
.ct-actions,.ct-chips { display:flex; gap:10px; flex-wrap:wrap }
.ct-chips { margin:24px 0 }
.ct-chips span { padding:9px 12px; border-radius:999px; background:#fff; border:1px solid var(--ct-line); font-size:12px; font-weight:800 }
.ct-actions a,.ct-actions button {
    min-height:52px;
    padding:0 18px;
    border-radius:15px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    font-weight:900;
    font-size:13px
}
.ct-primary { border:0; background:linear-gradient(100deg,var(--ct-purple),var(--ct-pink)); color:#fff; box-shadow:0 18px 38px rgba(118,87,255,.24) }
.ct-ghost { border:1px solid var(--ct-line); background:#fff; color:var(--ct-ink) }












.ct-section { padding:92px 0 }
.ct-head { text-align:center; max-width:860px; margin:0 auto 38px }
.ct-head h2 { font-size:clamp(34px,5vw,58px); line-height:1.03; letter-spacing:-.05em; margin:14px 0 10px }
.ct-head p { color:var(--ct-muted); line-height:1.85 }
.ct-builder { padding:28px; border-radius:32px; background:#fff; border:1px solid var(--ct-line); box-shadow:var(--shadow) }
.ct-builder-grid { display:grid; grid-template-columns:360px 1fr; gap:26px }
.ct-upload {
    min-height:320px;
    border:1.5px dashed #ccbdf5;
    border-radius:26px;
    background:#fcf9ff;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    position:relative;
    overflow:hidden;
    cursor:pointer
}
.ct-upload input { display:none }
.ct-upload strong { font-size:20px }
.ct-upload span,.ct-upload small { display:block; margin-top:8px; color:var(--ct-muted) }
.ct-upload-preview { position:absolute; inset:0; padding:12px }
.ct-upload-preview[hidden] { display:none }
.ct-upload-preview img { width:100%; height:100%; object-fit:contain; border-radius:18px }
.ct-change { position:absolute; right:14px; bottom:14px; border:0; border-radius:999px; background:#15131e; color:#fff; padding:10px 14px; font-weight:800 }
.ct-field { margin-top:18px }
.ct-field label { display:block; margin-bottom:9px; font-size:12px; font-weight:900; text-transform:uppercase; letter-spacing:.07em }
.ct-btns { display:flex; flex-wrap:wrap; gap:8px }
.ct-btns button { min-height:40px; padding:0 13px; border-radius:999px; border:1px solid var(--ct-line); background:#fff; font-weight:850; cursor:pointer }
.ct-btns button.active { background:#f0ebff; border-color:#ad99ff; color:var(--ct-purple) }
.ct-personality { display:grid; grid-template-columns:repeat(5,1fr); gap:10px }
.ct-personality button { padding:16px 10px; border-radius:18px; border:1px solid var(--ct-line); background:#fff; cursor:pointer; font-weight:900 }
.ct-personality button.active { background:linear-gradient(145deg,#f1ebff,#fff1f8); border-color:#a992ff }
.ct-card-summary { margin-top:18px; padding:18px; border-radius:20px; background:linear-gradient(135deg,#1e1832,#4f2f7d); color:#fff }
.ct-card-summary h3 { margin:0 0 10px }
.ct-card-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:10px }
.ct-card-grid span { padding:10px; border-radius:12px; background:rgba(255,255,255,.08); font-size:11px }
.ct-card-grid b { display:block; margin-top:4px; font-size:13px }
.ct-builder textarea { width:100%; min-height:120px; padding:14px; border-radius:16px; border:1px solid var(--ct-line); font:inherit }
.ct-style-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:16px }
.ct-style-card,.ct-case-card,.ct-use-card { background:#fff; border:1px solid var(--ct-line); border-radius:22px; overflow:hidden; box-shadow:0 12px 28px rgba(54,34,100,.07) }
.ct-style-card img { width:100%; aspect-ratio:1; object-fit:cover }
.ct-style-card div { padding:13px }
.ct-style-card strong { display:block }
.ct-style-card a {
    display:inline-flex;
    margin-top:9px;
    padding:8px 10px;
    border-radius:999px;
    background:#f2edff;
    color:var(--ct-purple);
    font-size:11px;
    font-weight:900;
    text-decoration:none
}
.ct-tabs { display:flex; justify-content:center; gap:9px; flex-wrap:wrap; margin-bottom:22px }
.ct-tabs button { min-height:40px; padding:0 14px; border-radius:999px; border:1px solid var(--ct-line); background:#fff; font-weight:900 }
.ct-tabs button.active { background:#1f1931; color:#fff }
.ct-case-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px }
.ct-compare { position:relative; aspect-ratio:1; overflow:hidden }
.ct-compare img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover }
.ct-compare .after { clip-path:inset(0 0 0 50%) }
.ct-handle { position:absolute; left:50%; top:0; bottom:0; width:3px; background:#fff; box-shadow:0 0 0 1px rgba(0,0,0,.2) }
.ct-handle:before {
    content:"★";
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    display:grid;
    place-items:center;
    width:38px;
    height:38px;
    border-radius:50%;
    background:#fff;
    color:var(--ct-purple);
    box-shadow:0 8px 20px rgba(0,0,0,.2)
}
.ct-case-card .copy { padding:14px }
.ct-case-card .copy strong { display:block }
.ct-case-card .copy a {
    display:inline-flex;
    margin-top:9px;
    padding:8px 10px;
    border-radius:999px;
    background:#f2edff;
    color:var(--ct-purple);
    font-size:11px;
    font-weight:900;
    text-decoration:none
}
.ct-use-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px }
.ct-use-card img { width:100%; height:auto; aspect-ratio:1; object-fit:cover }
.ct-use-card div { padding:18px }
.ct-use-card h3 { margin:0 0 8px }
.ct-use-card p { color:var(--ct-muted); line-height:1.7 }
.ct-faq { max-width:950px; margin:auto }
.ct-faq details { border-bottom:1px solid var(--ct-line) }
.ct-faq summary { padding:20px 0; font-weight:900; cursor:pointer }
.ct-faq p { color:var(--ct-muted); line-height:1.8 }
.ct-cta { padding:30px 0 100px }
.ct-cta-box { text-align:center; padding:54px 24px; border-radius:34px; background:linear-gradient(135deg,#1f1931,#6c4ee7); color:#fff }
.ct-cta-box h2 { font-size:clamp(36px,5vw,62px); margin:14px 0 }
.ct-cta-box p { max-width:760px; margin:0 auto 24px; color:#e8e1ff; line-height:1.8 }
.ct-cta-box a {
    display:inline-flex;
    min-height:52px;
    padding:0 20px;
    border-radius:15px;
    background:#fff;
    color:#1f1931;
    align-items:center;
    text-decoration:none;
    font-weight:900
}
@media (max-width:1100px) {
    .ct-hero { grid-template-columns:1fr }
    .ct-copy { text-align:center }
    .ct-actions,.ct-chips { justify-content:center }
    .ct-builder-grid { grid-template-columns:1fr }
    .ct-style-grid { grid-template-columns:repeat(4,1fr) }
    .ct-case-grid,.ct-use-grid { grid-template-columns:repeat(2,1fr) }
}
@media (max-width:680px) {
    .ct-hero,.ct-section,.ct-cta { width:calc(100% - 20px) }
    .ct-hero { padding:44px 0 }
    .ct-copy h1 { }
    
    
    
    
    .ct-builder { padding:14px }
    .ct-personality { grid-template-columns:repeat(2,1fr) }
    .ct-card-grid { grid-template-columns:repeat(2,1fr) }
    .ct-style-grid,.ct-case-grid,.ct-use-grid { grid-template-columns:repeat(2,1fr); gap:10px }
    .ct-head h2 { font-size:34px }
}

/* ===== workbench redesign ===== */
.ct-workbench{
  padding:30px;
  border:1px solid var(--ct-line);
  border-radius:32px;
  background:#fff;
  box-shadow:var(--shadow)
}
.ct-workbench-grid{
  display:grid;
  grid-template-columns:minmax(300px,420px) minmax(0,1fr);
  gap:22px;
  align-items:stretch
}
.ct-uploader-panel,.ct-control-panel{
  border:1px solid var(--ct-line);
  border-radius:26px;
  background:linear-gradient(180deg,#fff,#fcf9ff);
  padding:18px;
  min-height:100%
}
.ct-panel-head{
  display:flex;
  gap:14px;
  align-items:flex-start;
  margin-bottom:14px
}
.ct-panel-head span{
  width:34px;
  height:34px;
  border-radius:12px;
  display:grid;
  place-items:center;
  font-size:12px;
  font-weight:900;
  color:var(--ct-purple);
  background:#f2edff;
  border:1px solid #ddd1ff;
  flex:0 0 auto
}
.ct-panel-head b{display:block;font-size:15px;margin-bottom:4px}
.ct-panel-head small{display:block;color:var(--ct-muted);line-height:1.6}
.ct-uploadbox{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:440px;
  border:1.5px dashed #ccbdf5;
  border-radius:24px;
  background:linear-gradient(180deg,#fcf9ff,#fff);
  overflow:hidden;
  cursor:pointer;
  transition:border-color .2s ease,background .2s ease,transform .2s ease,box-shadow .2s ease
}
.ct-uploadbox:hover,.ct-uploadbox.drag{
  border-color:#aa8cff;
  background:#f9f3ff;
  box-shadow:0 16px 36px rgba(118,87,255,.1)
}
.ct-uploadbox input{display:none}
.ct-upload-empty{
  padding:22px;
  text-align:center
}
.ct-upload-icon{
  width:72px;
  height:72px;
  margin:0 auto 22px;
  display:grid;
  place-items:center;
  border:1px solid rgba(118,87,255,.22);
  border-radius:22px;
  background:linear-gradient(145deg,#fff,#f3edff);
  color:var(--ct-purple);
  box-shadow:0 12px 28px rgba(118,87,255,.10);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease
}
.ct-upload-icon svg{
  width:38px;
  height:38px;
  fill:none;
  stroke:currentColor;
  stroke-width:3;
  stroke-linecap:round;
  stroke-linejoin:round
}
.ct-uploadbox:hover .ct-upload-icon,.ct-uploadbox.drag .ct-upload-icon{
  transform:translateY(-4px);
  border-color:rgba(118,87,255,.45);
  box-shadow:0 16px 34px rgba(118,87,255,.17)
}
.ct-upload-empty strong{display:block;font-size:22px;line-height:1.25}
.ct-upload-empty span{display:block;margin-top:8px;color:var(--ct-muted)}
.ct-upload-preview{position:absolute;inset:0;padding:10px}
.ct-upload-preview img{
  width:100%;
  height:100%;
  object-fit:contain;
  border-radius:18px;
  background:#fff
}
.ct-clear-btn{
  position:absolute;
  top:16px;
  right:16px;
  width:34px;
  height:34px;
  border:0;
  border-radius:50%;
  background:rgba(17,17,26,.88);
  color:#fff;
  font-size:22px;
  line-height:1;
  display:grid;
  place-items:center;
  cursor:pointer;
  box-shadow:0 8px 20px rgba(0,0,0,.18)
}
.ct-style-picker{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px
}
.ct-style-card{
  position:relative;
  border:1px solid var(--ct-line);
  border-radius:20px;
  background:#fff;
  padding:8px;
  display:flex;
  flex-direction:column;
  gap:8px;
  text-align:left;
  cursor:pointer;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease
}
.ct-style-card:hover{transform:translateY(-2px);box-shadow:0 14px 28px rgba(54,34,100,.1);border-color:#b59eff}
.ct-style-card.active{border-color:#8f71ff;box-shadow:0 0 0 2px rgba(118,87,255,.12)}
.ct-style-thumb{
  width:100%;
  aspect-ratio:1;
  border-radius:16px;
  object-fit:cover;
  display:block;
  background:#f4efff
}
.ct-style-thumb-free{
  display:grid;
  place-items:center;
  font-size:18px;
  font-weight:900;
  color:var(--ct-purple);
  background:linear-gradient(135deg,#f2edff,#fff1f8)
}
.ct-style-meta{display:block}
.ct-style-meta strong{display:block;font-size:12px;line-height:1.2}
.ct-style-meta small{display:block;color:var(--ct-muted);font-size:11px;margin-top:2px;text-transform:capitalize}
.ct-style-check{
  position:absolute;
  inset:8px 8px auto auto;
  width:28px;
  height:28px;
  border-radius:50%;
  display:none;
  place-items:center;
  background:rgba(17,17,26,.78);
  color:#fff;
  font-size:14px;
  font-weight:900
}
.ct-style-card.active .ct-style-check{display:grid}
.ct-style-actions{margin:12px 0 14px;text-align:center}
.ct-mini-action,.ct-sample-btn{
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid var(--ct-line);
  background:#fff;
  color:var(--ct-ink);
  font-size:12px;
  font-weight:800;
  cursor:pointer
}
.ct-prompt-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:4px;
  margin-bottom:8px
}
.ct-prompt-head label{
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em
}
#ctPrompt{
  width:100%;
  min-height:132px;
  padding:14px 15px;
  border-radius:18px;
  border:1px solid var(--ct-line);
  background:#fff;
  font:inherit;
  resize:vertical
}
.ct-credits-box{
  margin-top:14px;
  padding:14px 16px;
  border-radius:18px;
  background:linear-gradient(135deg,#1f1931,#6c4ee7);
  color:#fff
}
.ct-credits-box strong{display:block;font-size:13px}
.ct-credits-box span{display:block;margin-top:5px;color:#eae2ff;font-size:12px;line-height:1.6}
.ct-run-row{margin-top:14px}
.ct-run-btn{width:100%;min-height:54px}
.ct-run-btn[disabled]{opacity:.6;cursor:not-allowed}
.ct-result-shell{margin-top:22px}
.ct-result-head h3{margin:8px 0 0;font-size:28px;letter-spacing:-.03em}
.ct-result-card{
  margin-top:12px;
  border:1px solid var(--ct-line);
  border-radius:28px;
  background:#fff;
  box-shadow:var(--shadow);
  padding:16px
}
.ct-result-stage{
  position:relative;
  min-height:320px;
  max-height:500px;
  border-radius:22px;
  overflow:hidden;
  background:#f4f0ff;
  display:flex;
  align-items:center;
  justify-content:center
}
.ct-result-stage img{
  width:100%;
  height:auto;
  max-height:500px;
  object-fit:contain;
  display:block
}
.ct-result-overlay,.ct-result-fail{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  background:rgba(17,17,26,.55);
  color:#fff;
  padding:18px
}
.ct-result-overlay strong,.ct-result-fail strong{display:block;font-size:18px;margin-top:12px}
.ct-result-overlay small,.ct-result-fail small{display:block;margin-top:6px;color:#e5e1f8}
.ct-spinner{
  width:44px;
  height:44px;
  border-radius:50%;
  display:inline-block;
  border:4px solid rgba(255,255,255,.24);
  border-top-color:#fff;
  animation:ctSpin .85s linear infinite
}
@keyframes ctSpin{to{transform:rotate(360deg)}}
.ct-download-btn{
  position:absolute;
  right:14px;
  bottom:14px;
  width:42px;
  height:42px;
  border:0;
  border-radius:50%;
  background:rgba(16,16,24,.88);
  color:#fff;
  font-size:22px;
  display:grid;
  place-items:center;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(0,0,0,.2)
}
.ct-compare{position:relative;aspect-ratio:1;overflow:hidden;--split:50%;touch-action:none;cursor:ew-resize}
.ct-compare img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ct-compare .after{clip-path:inset(0 0 0 var(--split))}
.ct-handle{position:absolute;left:var(--split);top:0;bottom:0;width:3px;background:#fff;transform:translateX(-50%);box-shadow:0 0 0 1px rgba(0,0,0,.18)}
.ct-handle:before{content:"↔";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#fff;color:var(--ct-purple);box-shadow:0 8px 20px rgba(0,0,0,.2);font-size:15px}
#ctStatusText[data-tone="error"]{color:#ffd8df}#ctStatusText[data-tone="success"]{color:#dfffe9}#ctStatusText[data-tone="ready"]{color:#efeaff}#ctStatusText[data-tone="queue"]{color:#fff3d3}
@media (max-width:1100px) {
  .ct-workbench-grid{grid-template-columns:1fr}
  .ct-uploadbox{min-height:360px}
  .ct-style-picker{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (max-width:680px) {
  .ct-workbench{padding:14px}
  .ct-uploader-panel,.ct-control-panel{padding:14px;border-radius:22px}
  .ct-uploadbox{min-height:300px}
  .ct-style-picker{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
  .ct-style-meta strong{font-size:11px}
  .ct-style-meta small{font-size:10px}
  .ct-result-head h3{font-size:22px}
}

/* ===== compact style picker + portrait-art credit row ===== */
.ct-style-picker{
  grid-template-columns:repeat(8,minmax(0,1fr));
  gap:10px;
  align-items:start;
  overflow:visible;
  padding:4px 3px 6px
}
.ct-style-card{
  display:block;
  min-width:0;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  text-align:left;
  appearance:none
}
.ct-style-card:hover{transform:none;box-shadow:none;border-color:transparent;z-index:7}
.ct-style-thumb{
  width:100%;
  aspect-ratio:1;
  border-radius:16px;
  object-fit:cover;
  background:#eee6df;
  box-shadow:0 5px 14px rgba(45,31,22,.07);
  transition:transform .2s ease,box-shadow .2s ease
}
.ct-style-card:hover .ct-style-thumb{
  transform:translateY(-5px) scale(1.08);
  box-shadow:0 14px 30px rgba(42,28,20,.2)
}
.ct-style-thumb-free{
  border:1px dashed #bda693;
  background:#fffaf5;
  color:var(--ct-purple);
  font-size:10px;
  font-weight:900;
  line-height:1.35;
  text-align:center;
  text-transform:uppercase;
  letter-spacing:.07em
}
.ct-style-meta{display:block}
.ct-style-meta strong{
  display:block;
  margin:6px 2px 0;
  overflow:hidden;
  color:#4c4139;
  font-size:10px;
  font-weight:750;
  line-height:1.25;
  text-overflow:ellipsis;
  white-space:nowrap
}
.ct-style-meta small{display:none}
.ct-style-check{
  inset:0;
  width:100%;
  height:auto;
  aspect-ratio:1;
  border-radius:16px;
  background:rgba(24,18,20,.48);
  font-size:0
}
.ct-style-check::after{
  content:"✓";
  position:absolute;
  left:50%;top:50%;
  display:grid;
  width:34px;height:34px;
  place-items:center;
  transform:translate(-50%,-50%);
  border:2px solid rgba(255,255,255,.9);
  border-radius:50%;
  background:rgba(255,255,255,.18);
  color:#fff;
  font-size:20px;
  font-weight:900;
  box-shadow:0 7px 18px rgba(0,0,0,.24)
}
.ct-style-actions{margin:14px 0 2px}
.ct-mini-action{min-height:32px;padding:0 10px}
.ct-style-hover-preview{
  position:fixed;
  z-index:99999;
  display:none;
  width:210px;
  height:210px;
  padding:7px;
  border:1px solid rgba(255,255,255,.85);
  border-radius:24px;
  background:#fff;
  box-shadow:0 24px 60px rgba(31,22,18,.34);
  pointer-events:none;
  opacity:0;
  transform:translateY(8px) scale(.94);
  transition:opacity .12s ease,transform .12s ease
}
.ct-style-hover-preview.show{display:block;opacity:1;transform:translateY(0) scale(1)}
.ct-style-hover-preview img{width:100%;height:100%;object-fit:cover;border-radius:18px}
.ct-style-hover-preview>span{display:none}
.ct-style-hover-preview.free{display:grid;place-items:center;background:linear-gradient(145deg,#8f8585,#5d5555);color:#fff;font-size:20px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;text-align:center}
.ct-style-hover-preview.free>span{display:block}
.ct-run-row{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-end;
  margin-top:16px
}
.ct-run-meta{min-width:0}
.ct-credit-line{font-size:12px;font-weight:800;color:var(--ct-ink)}
.ct-status-line{margin-top:5px;color:var(--ct-muted);font-size:11px;line-height:1.5}
.ct-status-line[data-tone="error"]{color:#a12e40}
.ct-status-line[data-tone="success"]{color:#207047}
.ct-status-line[data-tone="queue"]{color:#86620b}
.ct-run-btn{
  min-width:236px;
  min-height:54px;
  padding:0 24px;
  border:0;
  border-radius:14px;
  background:linear-gradient(100deg,var(--ct-purple),var(--ct-pink));
  color:#fff;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 16px 34px rgba(118,87,255,.22)
}
.ct-run-btn[disabled]{opacity:.55;cursor:not-allowed}
@media (max-width:680px) {
  .ct-style-picker{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
  .ct-style-thumb{border-radius:12px}
  .ct-style-card:hover .ct-style-thumb{transform:translateY(-2px) scale(1.03)}
  .ct-style-hover-preview{display:none!important}
  .ct-run-row{align-items:stretch;flex-direction:column}
  .ct-run-btn{width:100%;min-width:0}
}

/* ===== upload panel border simplification ===== */
.ct-uploader-panel{
  position:relative;
  padding:0;
  overflow:hidden;
  border:1.5px dashed #cbbcf4;
  background:linear-gradient(180deg,#fcf9ff,#fff);
  transition:border-color .2s ease,background .2s ease,box-shadow .2s ease,transform .2s ease
}
.ct-uploader-panel:hover,
.ct-uploader-panel:has(.ct-uploadbox.drag){
  border-color:#9f83ff;
  background:#f9f4ff;
  box-shadow:0 16px 36px rgba(118,87,255,.11)
}
.ct-uploader-panel .ct-panel-head{
  position:absolute;
  top:18px;
  left:18px;
  right:18px;
  z-index:3;
  pointer-events:none
}
.ct-uploader-panel .ct-uploadbox{
  width:100%;
  min-height:100%;
  height:100%;
  border:0;
  border-radius:inherit;
  background:transparent;
  box-shadow:none;
  padding:78px 18px 18px;
}
.ct-uploader-panel .ct-uploadbox:hover,
.ct-uploader-panel .ct-uploadbox.drag{
  border-color:transparent;
  background:transparent;
  box-shadow:none
}
.ct-uploader-panel .ct-upload-preview{
  inset:0;
  padding:10px
}
.ct-uploader-panel .ct-upload-preview img{
  border-radius:20px
}
@media (max-width:1100px) {
  .ct-uploader-panel .ct-uploadbox{min-height:360px;height:auto}
}
@media (max-width:680px) {
  .ct-uploader-panel .ct-panel-head{top:14px;left:14px;right:14px}
  .ct-uploader-panel .ct-uploadbox{min-height:300px;padding:68px 14px 14px}
}

/* Tool67 image-page dark compatibility patch — visual only */
html[data-theme="dark"],body.dark{--ct-bg:#0b0e13;--ct-ink:#f4f6f8;--ct-muted:#a3acb8;--ct-line:#303846;--shadow:0 18px 48px rgba(0,0,0,.28);}
body.dark .ct-tag,
body.dark .ct-chips span,
body.dark .ct-ghost,
body.dark .ct-builder,
body.dark .ct-btns button,
body.dark .ct-personality button,
body.dark .ct-style-card,
body.dark .ct-case-card,
body.dark .ct-use-card,
body.dark .ct-tabs button,
body.dark .ct-handle,
body.dark .ct-handle:before,
body.dark .ct-cta-box a,
body.dark /* ===== workbench redesign ===== */ .ct-workbench,
body.dark .ct-mini-action,
body.dark .ct-sample-btn,
body.dark #ctPrompt,
body.dark .ct-result-card,
body.dark .ct-style-thumb-free,
body.dark .ct-style-hover-preview {background:#151a22!important;border-color:#303846!important;color:#e5e7eb;}
body.dark input,body.dark select,body.dark textarea{background-color:#111722;color:#e5e7eb;border-color:#303846;}
body.dark input::placeholder,body.dark textarea::placeholder{color:#7f8a99;}


/* ===== Dark mode refinement: hero copy / shell ===== */
html[data-theme="dark"] body,body.dark{background:var(--ct-bg);color:var(--ct-ink)}
html[data-theme="dark"] body,body.dark{--ct-bg:#0b1220;--ct-ink:#f4f6f8;--ct-muted:#a3acb8;--ct-line:#303846}
html[data-theme="dark"] .ct-copy h1,body.dark .ct-copy h1,
html[data-theme="dark"] .ct-copy p,body.dark .ct-copy p,
html[data-theme="dark"] .ct-tag,body.dark .ct-tag,
html[data-theme="dark"] .ct-stage-note,body.dark .ct-stage-note{color:var(--ct-ink)}
html[data-theme="dark"] .ct-chips span,
body.dark .ct-chips span,
html[data-theme="dark"] .ct-actions .ghost,
body.dark .ct-actions .ghost,
html[data-theme="dark"] .ct-uploadbox,
body.dark .ct-uploadbox,
html[data-theme="dark"] .ct-control-panel,
body.dark .ct-control-panel {background:#151a22;border-color:#303846;color:#e5e7eb}


/* 20260928 - Tool67 unified page-width alignment */
.ct-hero,.ct-section,.ct-cta{width:100%;max-width:var(--t67-page-max,1440px);margin-left:auto;margin-right:auto;padding-left:var(--t67-page-gutter,24px);padding-right:var(--t67-page-gutter,24px);box-sizing:border-box}
@media (max-width:720px) {.ct-hero,.ct-section,.ct-cta{width:100%;padding-left:var(--t67-page-gutter-mobile,14px);padding-right:var(--t67-page-gutter-mobile,14px)}}


/* Image to Sketch page-only refinements */
/* Image to Sketch showcase and compact Library refinements */
#sketchLibraryExamples .ct-head{text-align:center;max-width:800px;margin:0 auto 28px}
#sketchLibraryExamples .ct-case-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:stretch}
#sketchLibraryExamples .ct-case-card{display:flex;flex-direction:column;min-width:0;border:1px solid var(--ct-line);border-radius:18px;box-shadow:none;overflow:hidden;background:var(--ct-card,#fff)}
#sketchLibraryExamples .ct-case-card .ct-compare{aspect-ratio:1/1;border-radius:0;background:#f4f6fa}
#sketchLibraryExamples .ct-case-card .ct-compare img{display:block;width:100%;height:100%;object-fit:cover}
#sketchLibraryExamples .ct-case-card .copy{padding:18px 19px 20px;display:flex;flex:1;flex-direction:column;gap:8px}
#sketchLibraryExamples .ct-case-card .copy strong{font-size:18px;line-height:1.3;letter-spacing:-.02em}
#sketchLibraryExamples .ct-case-card .copy p{margin:0;color:var(--ct-muted);font-size:13px;line-height:1.65}
#sketchLibraryExamples .ct-case-card .copy a{align-self:flex-start;margin-top:auto;border-radius:9px}
.sketch-presets-title{margin:0 0 10px;font-size:16px;font-weight:700;color:var(--ct-ink)}
/* Avoid nested vertical scrollbars: the right Library expands with content. */
.t67-iwb-host .t67-iwb-right-library,
.t67-iwb-host.is-focus-results .t67-iwb-right-library{
  max-height:none!important;height:auto!important;overflow:visible!important;
  scrollbar-width:none!important;
}
#ctStylePicker{
  grid-template-columns:repeat(8,minmax(0,1fr));
  max-height:none!important;height:auto!important;
  overflow:visible!important;overscroll-behavior:auto;
  padding:5px 4px 5px;
}

#ctStylePicker .ct-style-meta strong{font-size:12px;white-space:normal;overflow-wrap:anywhere;min-height:25px}
/* One toggle only; all style cards are rendered through the shared Library renderer. */

#sketchToggleStyles{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:7px 17px}

#ctStylePicker+.ct-style-actions{margin:9px 0 12px}
html[data-theme="dark"] #sketchLibraryExamples .ct-case-card{background:#151a22;border-color:#303846;color:#edf0f8}
@media(max-width:800px){#sketchLibraryExamples .ct-case-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}
@media(max-width:680px){.t67-iwb-host .t67-iwb-library-slot #ctStylePicker{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important}#ctStylePicker .ct-style-meta strong{font-size:10px;line-height:1.22;min-height:23px}}
@media(max-width:480px){#sketchLibraryExamples .ct-case-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}#sketchLibraryExamples .ct-case-card .copy{padding:10px 11px 13px;gap:6px}#sketchLibraryExamples .ct-case-card .copy strong{font-size:13px}#sketchLibraryExamples .ct-case-card .copy p{font-size:11px}}


/* Image to Sketch: first-party 36-style editorial hero */
.ct-hero{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(26px,4vw,60px)}
.ct-hero .ct-copy{min-width:0}
.ct-hero .t67-hero-description{max-width:650px;line-height:1.75}
.sketch-hero-gallery{position:relative;display:grid;grid-template-columns:1.16fr .84fr;grid-template-rows:1fr 1fr;gap:12px;aspect-ratio:1.18;min-width:0;padding:12px;border:1px solid rgba(97,76,144,.12);border-radius:28px;background:linear-gradient(135deg,#fffaf1,#f0eaff);box-shadow:0 20px 60px rgba(46,30,88,.12)}
.sketch-hero-tile{position:relative;min-width:0;min-height:0;margin:0;overflow:hidden;border-radius:18px;background:#f5f0e8}
.sketch-hero-main{grid-row:1/3}
.sketch-hero-tile img{display:block;width:100%;height:100%;object-fit:cover}
.sketch-hero-tile figcaption{position:absolute;bottom:10px;left:10px;right:10px;width:max-content;max-width:calc(100% - 20px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.93);color:#272038;font-size:11px;font-weight:800;box-shadow:0 3px 14px rgba(0,0,0,.09)}
.sketch-hero-count{position:absolute;right:24px;top:24px;padding:8px 12px;border-radius:999px;background:#6d4cf1;color:white;font-size:11px;font-weight:850;box-shadow:0 5px 16px rgba(84,56,172,.25)}
@media(max-width:1100px){.ct-hero{grid-template-columns:1fr}.sketch-hero-gallery{max-width:700px;margin:0 auto;width:100%}}
@media(max-width:720px){.sketch-hero-gallery{display:none}.ct-hero{padding-top:32px;padding-bottom:34px}.ct-hero .ct-chips{gap:7px}.ct-hero .ct-chips span{font-size:11px;padding:7px 9px}}

/* style-workbench.css */
/* Only the library-based image workbenches load this stylesheet. */
.style-workbench { --sw-accent:#3563dc; --sw-line:var(--iwb-line,#d1dae8); --sw-bg:var(--iwb-card,#fff); --sw-ink:var(--iwb-text,#17243a); color:var(--sw-ink) }
.style-workbench .sw-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.style-workbench .sw-tile {position:relative;aspect-ratio:4/5;overflow:hidden;border:1px solid var(--sw-line);border-radius:16px;background:var(--sw-bg);min-width:0}
.style-workbench .sw-face,.style-workbench .sw-reference,.style-workbench .sw-reference-content,.style-workbench .sw-ref-cell {width:100%;height:100%;position:relative;min-height:0;min-width:0}
.style-workbench .sw-reference-content {display:grid;align-items:stretch;place-items:stretch;text-align:center}
.style-workbench .sw-reference-content>span {align-self:center}
.style-workbench .sw-pair img,.style-workbench .sw-thumb img {width:100%;height:100%;object-fit:cover;display:block;min-height:0}
.style-workbench .sw-tile input[hidden],.style-workbench [hidden]{display:none!important}
.style-workbench button[class^="sw-"] {font-family:inherit;color:inherit;cursor:pointer}
.style-workbench .sw-crop,.style-workbench .sw-choose,.style-workbench .sw-switch,.style-workbench .sw-add-main {width:100%;height:100%;border:0;padding:0;background:transparent}
.style-workbench .sw-choose {position:absolute;inset:0;z-index:1}
.style-workbench .sw-add-main {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:8px;background:color-mix(in srgb,var(--sw-accent) 4%,var(--sw-bg));font-size:14px}
.sw-add-main small {color:var(--iwb-muted);font-size:12px}
.sw-plus {display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--sw-line);border-radius:12px;color:var(--sw-accent);background:var(--sw-bg);font-size:25px}
.style-workbench .sw-upload,.style-workbench .sw-remove {position:absolute;z-index:3;border:1px solid var(--sw-line);border-radius:8px;background:var(--sw-bg);line-height:1}
.style-workbench .sw-upload {right:7px;bottom:7px;padding:7px;font-size:12px;font-weight:650;color:var(--sw-accent)}
.style-workbench .sw-remove {right:3px;top:3px;padding:0;width:23px;height:23px;font-size:17px;opacity:0}
.sw-tile:hover .sw-remove,.sw-thumb:hover .sw-remove,.sw-tile:focus-within .sw-remove,.sw-thumb:focus-within .sw-remove {opacity:1}
.style-workbench .sw-strip {display:flex;gap:7px;overflow-x:auto;padding:2px 0 5px}
.style-workbench .sw-thumb,.style-workbench .sw-add {position:relative;flex:0 0 58px;height:58px;overflow:hidden;border-radius:9px;border:1px solid var(--sw-line);background:var(--sw-bg)}
.style-workbench .sw-add {font-size:23px;border-style:dashed;color:var(--sw-accent)}
.style-workbench .sw-thumb img {object-fit:cover}
.style-workbench .sw-shelf {box-sizing:border-box;width:100%;margin:38px auto 0;padding:clamp(14px,3vw,32px);border:1px solid var(--sw-line);border-radius:22px;background:var(--sw-bg)}
.style-workbench .sw-shelf h2,.style-workbench .sw-heading h2 {margin:0 0 16px;font-size:clamp(20px,2vw,28px);line-height:1.2;color:var(--sw-ink)}
.sw-filters {display:flex;flex-wrap:wrap;gap:6px;margin-bottom:16px}
.style-workbench .sw-tab,.style-workbench .sw-more,.style-workbench .sw-close {border:1px solid var(--sw-line);background:var(--sw-bg);border-radius:9px;padding:7px 12px;font-size:13px}
.style-workbench .sw-tab[aria-pressed=true] {background:var(--sw-accent);color:white;border-color:var(--sw-accent)}
.sw-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(min(132px,100%),1fr));gap:12px}
.style-workbench .sw-example {min-width:0;display:flex;flex-direction:column;border:1px solid var(--sw-line);border-radius:12px;padding:6px;gap:6px;background:var(--sw-bg);text-align:left}
.sw-example img {width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px}
.style-workbench .sw-example span {padding:1px 4px 5px;font-size:11px;line-height:1.4;font-weight:400}
.style-workbench .sw-example:hover,.style-workbench .sw-example[aria-pressed=true] {border-color:var(--sw-accent);box-shadow:0 0 0 1px var(--sw-accent)}
.style-workbench .sw-more {display:block;margin:16px auto 0}
.style-workbench .sw-dialog {position:fixed;inset:0;margin:auto;width:min(960px,94vw);max-height:85dvh;overflow:auto;border:1px solid var(--sw-line);border-radius:18px;padding:0 18px 18px;background:var(--sw-bg);color:var(--sw-ink)}
.sw-dialog::backdrop {background:rgb(15 23 42 / 55%)}
.sw-heading {position:sticky;top:0;z-index:2;background:var(--sw-bg);display:flex;align-items:center;justify-content:space-between;padding:14px 0}
.style-workbench .sw-heading h2 {margin:0;font-size:20px}
.style-workbench .sw-close {font-size:18px}
.style-workbench button:focus-visible {outline:3px solid var(--sw-accent);outline-offset:-3px}
@media(hover:none){.style-workbench .sw-remove{opacity:1}}
@media(max-width:600px){.sw-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.sw-example span{font-size:11px}.style-workbench .sw-pair{gap:8px}}
#sketchLibraryExamples .ct-compare {cursor:default;touch-action:auto}
.style-workbench .ve-side>.t67-iwb-drop-wrap {grid-template-columns:minmax(0,1fr)}
.style-workbench .sw-label {position:absolute;top:7px;left:7px;z-index:2;pointer-events:none;background:var(--sw-bg);border:1px solid var(--sw-line);border-radius:6px;padding:3px 7px;font-size:11px;font-weight:600}
.style-workbench .sw-tab {font-size:12px;font-weight:400;line-height:1.35}
.style-workbench .sw-pair {scroll-margin-top:80px}
@media(min-width:1024px){
  .style-workbench .sw-shelf .sw-grid {grid-template-columns:repeat(8,minmax(0,1fr))}
}
@media(max-width:767px){
  .style-workbench .sw-filters {flex-wrap:nowrap;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding-bottom:4px}
  .style-workbench .sw-tab {flex:none;white-space:nowrap}
}
@media(min-width:768px){
  .sw-dialog .sw-browser {display:grid;grid-template-columns:145px 1fr;gap:14px;align-items:start}
  .sw-dialog .sw-filters {position:sticky;top:58px;display:grid;gap:5px}
  .sw-dialog .sw-tab {text-align:left}
  .sw-dialog .sw-more {grid-column:2}
}
