:root { --ink:#13151c; --paper:#f5f0e8; --acid:#d9ff47; --violet:#6d5dfc; --muted:#6d7280 }
* { box-sizing:border-box }
body { margin:0; background:var(--paper); color:var(--ink); font:15px/1.5 Inter,system-ui,sans-serif }
body>.t67-header { position:relative; z-index:10; background:#fff; border-bottom:1px solid #ddd }
section{max-width:1280px;margin:auto;}
.t67-header .wrap { max-width:1230px; margin:auto; padding:14px 24px; display:flex; align-items:center; justify-content:space-between }
.logo { text-decoration:none; color:#111; font-size:24px; font-weight:900 }
.logo span { color:var(--violet) }
.t67-menu { display:flex; gap:20px }
.t67-nav-link { color:#222; text-decoration:none }
.t67-mega,.t67-mobile-drawer,.t67-mobile-mask { display:none }
.nav-actions { display:flex; gap:8px }
.icon-btn,.account-btn { width:38px; height:38px; border:1px solid #ddd; border-radius:50%; background:#fff; display:grid; place-items:center }
.icon-btn svg,.account-btn svg { width:18px; stroke:currentColor }
.t67-mobile-trigger { display:none }
.focus-hero {
    min-height:700px;
    padding:80px 5vw;
    display:grid;
    grid-template-columns:.9fr 1.1fr;
    gap:5vw;
    align-items:center;
    background:linear-gradient(135deg,#f8f4ec 0 55%,#171922 55%)
}
.kicker,.section-title span,.dock-head span,.map-copy>span,.text-lab-copy>span,.final-cta>span { font-size:12px; letter-spacing:.17em; font-weight:900 }
.hero-copy h1 { font-size:clamp(52px,6vw,88px); line-height:.92; letter-spacing:-.06em; margin:18px 0 }
.hero-copy h1 em { font-family:Georgia,serif; font-weight:400; color:var(--violet) }
.hero-copy p { font-size:19px; color:#5e6370; max-width:580px }
.hero-actions { display:flex; gap:12px; margin-top:28px }
.hero-actions a,.final-cta a { padding:14px 20px; border-radius:999px; text-decoration:none; font-weight:850 }
.primary { background:#111; color:#fff }
.ghost { border:1px solid #bbb; color:#111 }
.hero-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:24px }
.hero-tags span { border:1px solid #c8cad2; border-radius:999px; padding:6px 10px; font-size:12px }
.lens-stage { background:#0e1017; border-radius:32px; padding:18px; box-shadow:0 35px 80px #0005; transform:rotate(1deg) }
.lens-photo { position:relative; aspect-ratio:1.2; overflow:hidden; border-radius:22px }
.lens-photo img,.map-visual img,.recipe-preview img,.text-lab-preview img { width:100%; height:100%; object-fit:cover }
.blur-layer { position:absolute; inset:0; clip-path:circle(34% at 54% 45%) }
.focus-ring {
    position:absolute;
    left:54%;
    top:45%;
    width:44%;
    aspect-ratio:1;
    border:2px solid var(--acid);
    border-radius:50%;
    transform:translate(-50%,-50%);
    box-shadow:0 0 0 12px #d9ff4718,0 0 55px #d9ff4744
}
.focus-ring i { position:absolute; inset:14%; border:1px dashed #fff; border-radius:50% }
.focus-ring b { position:absolute; bottom:-36px; left:50%; transform:translateX(-50%); font-size:10px; letter-spacing:.16em; color:var(--acid); white-space:nowrap }
.depth-scale { position:absolute; left:18px; right:18px; bottom:18px; display:flex; align-items:center; gap:7px; color:#fff; font-size:9px }
.depth-scale i { height:2px; flex:1; background:linear-gradient(90deg,var(--acid),#fff2) }
.lens-readout { display:grid; grid-template-columns:repeat(3,1fr) auto; gap:10px; padding:15px 4px 0; color:#fff }
.lens-readout span { display:flex; flex-direction:column }
.lens-readout small { font-size:8px; color:#9298a7 }
.lens-readout strong { align-self:center; background:var(--acid); color:#111; padding:8px 10px; border-radius:7px; font-size:10px }
.focus-dock,.recipe-section,.examples { padding:65px 0vw }
.dock-head,.section-title { display:flex; justify-content:space-between; align-items:end; gap:30px; margin-bottom:34px;padding:10px;}
.dock-head h2,.section-title h2,.map-copy h2,.text-lab-copy h2,.final-cta h2 { font-size:clamp(34px,4vw,58px); letter-spacing:-.05em; margin:8px 0 }
.dock-head p,.section-title p { max-width:480px; color:var(--muted) }
.dock-grid { display:grid; grid-template-columns:.85fr 1.15fr; background:#12141b; border-radius:30px; overflow:hidden }
.upload-stage {
    min-height:550px;
    position:relative;
    background:repeating-linear-gradient(45deg,#e7e8ec 0 18px,#f9f9fa 18px 36px);
    display:grid;
    place-items:center;
    cursor:pointer
}
.upload-stage input { display:none }
.upload-stage>img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain }
.upload-empty { text-align:center }
.upload-empty:before { content:'◎'; display:block; font-size:76px; color:var(--violet) }
.upload-empty b,.upload-empty span,.upload-empty small { display:block }
.focus-controls { padding:36px; color:#fff }
.control-row { padding-bottom:24px; margin-bottom:24px; border-bottom:1px solid #30333d }
.control-row>label { display:block; font-size:11px; letter-spacing:.14em; color:#9da3b2; margin-bottom:12px }
.segmented,.depth-pills { display:flex; gap:8px; flex-wrap:wrap }
.segmented button,.depth-pills button { border:1px solid #3d414d; background:#20232c; color:#d1d5df; padding:9px 13px; border-radius:999px }
.segmented .active,.depth-pills .active { background:var(--acid); color:#111; border-color:var(--acid) }
.recipe-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px }
.recipe { padding:14px; text-align:left; border:1px solid #383c48; background:#1d2028; color:#fff; border-radius:14px }
.recipe b,.recipe small { display:block }
.recipe small { color:#9ea4b2; margin-top:5px }
.recipe.active { border-color:#49cbff }
.start-btn { width:100%; padding:16px; border:0; border-radius:14px; background:var(--violet); color:#fff; font-weight:900; display:flex; justify-content:space-between }
.focus-map { margin-bottom:30px; display:grid; grid-template-columns:.8fr 1.2fr; background:#fff; border-radius:30px; overflow:hidden }
.map-copy { padding:55px }
.map-copy p,.text-lab-copy p { color:var(--muted) }
.map-legend { display:flex; gap:16px; flex-wrap:wrap; margin-top:25px }
.map-legend span { display:flex; gap:7px; align-items:center }
.map-legend i { width:12px; height:12px; border-radius:50% }
.clear { background:#59ff98 }
.transition { background:#ffd84b }
.background { background:#875bff }
.map-visual { position:relative; min-height:470px }
.map-zone { position:absolute; border:2px solid; color:#fff; font-size:10px; font-weight:900; display:grid; place-items:center }
.z1 { left:33%; top:16%; width:31%; height:63%; border-color:#59ff98; border-radius:48% }
.z2 { left:22%; top:8%; width:51%; height:80%; border-color:#ffd84b; border-radius:46% }
.z3 { inset:4%; border-color:#875bff }
.recipe-section { background:#171922; color:#fff }
.recipe-switcher { display:grid; grid-template-columns:310px 1fr; gap:30px;padding:20px;}
.recipe-tabs { display:flex; flex-direction:column; gap:10px }
.recipe-tabs button { padding:17px; text-align:left; border:1px solid #363a46; background:#23262f; color:#fff; border-radius:15px }
.recipe-tabs b,.recipe-tabs small { display:block }
.recipe-tabs small { color:#9299a8; margin-top:4px }
.recipe-tabs .active { background:var(--acid); color:#111; border-color:var(--acid) }
.recipe-preview { position:relative; min-height:560px; border-radius:22px; overflow:hidden }
.text-safe { position:absolute; left:7%; top:50%; transform:translateY(-50%); max-width:330px; color:#fff }
.text-safe span { font-size:42px; font-weight:950 }
.text-safe small { display:block }
.preview-meta { position:absolute; left:18px; right:18px; bottom:18px; padding:13px 15px; background:#090a0dba; border-radius:12px; display:flex; justify-content:space-between }
.example-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px }
.example-card { background:#fff; border-radius:20px; overflow:hidden }
.compare { position:relative; aspect-ratio:1; overflow:hidden }
.compare>img,.compare>div img { width:100%; height:100%; object-fit:cover }
.compare>div { position:absolute; inset:0; clip-path:inset(0 45% 0 0) }
.compare input { position:absolute; left:14px; right:14px; bottom:14px; width:calc(100% - 28px) }
.example-info { padding:18px }
.example-info span { font-size:10px; color:var(--violet); font-weight:900 }
.example-info h3 { margin:6px 0 14px }
.example-info button { border:0; background:#eceaff; color:#493cc3; padding:9px 11px; border-radius:9px; font-weight:800 }
.text-lab { margin:auto;margin-bottom:50px; display:grid; grid-template-columns:1.2fr .8fr; background:#e9e1d4; border-radius:30px; overflow:hidden }
.text-lab-preview { position:relative; min-height:540px }
.text-lab-preview:after { content:''; position:absolute; inset:0; background:linear-gradient(90deg,#000a,transparent 65%) }
.copy-block { position:absolute; left:7%; top:50%; transform:translateY(-50%); z-index:2; color:#fff; max-width:330px }
.copy-block h2 { font-size:48px; line-height:.95 }
.copy-block button { padding:11px 14px; border:0; border-radius:999px }
.text-lab-copy { padding:50px }
.tool-difference { display:grid; grid-template-columns:repeat(3,1fr); gap:15px; padding:0 5vw 95px }
.tool-difference>div { padding:27px; border:1px solid #ccd0d8; border-radius:18px }
.tool-difference .active { background:#171922; color:#fff; transform:translateY(-10px) }
.tool-difference span { font-size:10px; letter-spacing:.15em; color:var(--violet); font-weight:900 }
.final-cta { margin-bottom:30px; padding:65px; text-align:center; background:var(--violet); color:#fff; border-radius:30px }
.final-cta a { display:inline-block; background:#fff; color:#3025a8 }
@media(max-width:900px) {
    .t67-menu { display:none }
    .t67-mobile-trigger { display:grid }
    .focus-hero,.dock-grid,.focus-map,.recipe-switcher,.text-lab { grid-template-columns:1fr }
    .focus-hero { background:linear-gradient(180deg,#f8f4ec 0 52%,#171922 52%) }
    .lens-stage { transform:none }
    .example-grid { grid-template-columns:repeat(2,1fr) }
    .tool-difference { grid-template-columns:1fr }
    .dock-head,.section-title { display:block }
    .recipe-tabs { display:grid; grid-template-columns:1fr 1fr }
}
@media(max-width:560px) {
    .focus-hero,.focus-dock,.recipe-section,.examples { padding-left:18px; padding-right:18px }
    .hero-copy h1 { font-size:48px }
    .hero-actions { flex-direction:column }
    .lens-readout { grid-template-columns:1fr 1fr }
    .lens-readout strong { grid-column:1/-1; text-align:center }
    .focus-map,.text-lab,.final-cta { margin-left:18px; margin-right:18px }
    .focus-controls { padding:23px }
    .recipe-grid,.example-grid { grid-template-columns:1fr }
    .recipe-preview { min-height:390px }
    .tool-difference { padding-left:18px; padding-right:18px }
    .final-cta { padding:45px 22px }
}




/* direct blur workbench */
.bb-head{padding:0 10px}.bb-shell{padding:0 10px 8px}.bb-workbench{display:grid;grid-template-columns:minmax(300px,.92fr) minmax(360px,1.08fr);gap:18px;align-items:stretch}.bb-input,.bb-side,.bb-output-panel{border:2px solid #111;border-radius:0;background:#fff;overflow:hidden}.bb-input{min-height:400px}.bb-upload-wrap{padding:14px;height:100%}.bb-upload{height:100%;min-height:370px;border:2px dashed #111;background:linear-gradient(180deg,#fbfbfd,#f1f4fa);position:relative;overflow:hidden;cursor:pointer;transition:.2s ease}.bb-upload:hover,.bb-upload.drag{background:linear-gradient(180deg,#f5f7ff,#e9eefb);border-color:var(--violet)}.bb-upload-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;color:#5f6675}.bb-upload-empty i{width:56px;height:56px;border:2px solid #111;background:#fff;display:grid;place-items:center;margin-bottom:12px;color:#111}.bb-upload-empty i svg{width:28px;height:28px}.bb-upload-empty b{display:block;font-size:17px;color:#111;margin-bottom:7px}.bb-upload-empty span{display:block;max-width:320px}.bb-upload-empty small{display:block;margin-top:8px;font-size:12px}.bb-upload-grid,.bb-result-grid{display:grid;gap:8px;height:100%;padding:8px}.bb-upload-grid[data-count="1"]{grid-template-columns:1fr}.bb-upload-grid[data-count="2"],.bb-upload-grid[data-count="4"]{grid-template-columns:repeat(2,1fr)}.bb-upload-grid[data-count="3"],.bb-upload-grid[data-count="5"],.bb-upload-grid[data-count="6"],.bb-upload-grid[data-count="7"],.bb-upload-grid[data-count="8"],.bb-upload-grid[data-count="9"]{grid-template-columns:repeat(3,1fr)}.bb-upload-card,.bb-result-card{position:relative;overflow:hidden;background:#eef2f8}.bb-upload-card img,.bb-result-media img{width:100%;height:100%;object-fit:contain;background:#f8fafc}.bb-upload-grid[data-count="1"] .bb-upload-card{min-height:340px;max-height:340px}.bb-upload-grid:not([data-count="1"]) .bb-upload-card{min-height:120px}.bb-upload-remove{position:absolute;top:8px;right:8px;width:26px;height:26px;border:0;border-radius:999px;background:rgba(17,17,17,.9);color:#fff;font-weight:800;cursor:pointer;z-index:2}.bb-side{background:#111;color:#fff;display:flex;flex-direction:column;min-height:520px;padding:14px}.bb-compact-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}.bb-field{display:block}.bb-field span{display:block;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#cfd3dc;margin:0 0 5px 1px;font-weight:700}.bb-field select{width:100%;height:38px;border:1px solid #353846;background:#171922;color:#fff;border-radius:0;padding:0 10px;font:inherit}.bb-side-inner{display:flex;flex-direction:column;gap:12px;flex:1}.bb-sample{align-self:flex-start;display:inline-flex;align-items:center;gap:10px;border:1px solid #373a47;background:#161922;color:#fff;padding:7px 11px;cursor:pointer;font:inherit}.bb-sample b{font-size:12px;letter-spacing:.05em}.bb-sample span{font-size:12px;color:#c3c8d6}.bb-prompt{display:flex;flex-direction:column;gap:8px;flex:1}.bb-prompt span{font-size:11px;letter-spacing:.12em;color:#cdd2de;font-weight:800;text-transform:uppercase}.bb-prompt textarea{width:100%;min-height:180px;flex:1;border:1px solid #353846;background:#171922;color:#fff;padding:14px 14px;font:inherit;resize:vertical;border-radius:0}.bb-prompt textarea::placeholder{color:#8d95a8}.bb-prompt textarea:focus,.bb-field select:focus{outline:none;border-color:#8d8fff;box-shadow:0 0 0 2px rgba(141,143,255,.15)}.bb-actions{display:flex;flex-direction:column;gap:10px;margin-top:auto}.bb-generate{border:0;background:var(--violet);color:#fff;padding:15px 16px;font-weight:900;font-size:15px;cursor:pointer;border-radius:0}.bb-generate[disabled]{opacity:.65;cursor:not-allowed}.bb-credits{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.bb-credits strong{font-size:13px;color:#fff}.bb-credits span{font-size:12px;color:#b9c0cf;text-align:right}.bb-output-panel{margin-top:18px;padding:16px;background:#fff}.bb-output-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:12px}.bb-output-head span{font-size:12px;letter-spacing:.16em;font-weight:900;color:var(--violet)}.bb-output-head h3{font-size:28px;letter-spacing:-.04em;margin:7px 0 6px;color:#111}.bb-output-head p{color:#697083;max-width:360px}.bb-output-actions{display:flex;gap:10px;align-items:center}.bb-output-actions button{border:1px solid #d7dbe8;background:#fff;padding:9px 13px;font-weight:700;cursor:pointer;border-radius:0}.bb-result-zone{position:relative;min-height:240px;border:1px solid #e3e7f1;background:linear-gradient(180deg,#fafbff 0%,#f3f5fb 100%);overflow:hidden}.bb-result-empty{position:absolute;inset:0;display:grid;place-items:center;text-align:center;padding:24px;color:#646d7d}.bb-empty-aura{width:148px;height:148px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.96) 0%,rgba(172,187,255,.45) 52%,rgba(172,187,255,0) 72%);filter:blur(2px);margin:0 auto 18px}.bb-result-empty strong{display:block;font-size:18px;color:#18202d;margin-bottom:8px}.bb-result-empty span{display:block;max-width:280px}.bb-result-grid{align-content:start}.bb-result-grid[data-count="1"]{grid-template-columns:1fr}.bb-result-grid[data-count="2"],.bb-result-grid[data-count="4"]{grid-template-columns:repeat(2,1fr)}.bb-result-grid[data-count="3"],.bb-result-grid[data-count="5"],.bb-result-grid[data-count="6"],.bb-result-grid[data-count="7"],.bb-result-grid[data-count="8"],.bb-result-grid[data-count="9"]{grid-template-columns:repeat(3,1fr)}.bb-result-grid[data-count="1"] .bb-result-card{min-height:500px}.bb-result-grid:not([data-count="1"]) .bb-result-card{min-height:190px}.bb-result-media{position:relative;height:100%;max-height:500px;display:flex;align-items:center;justify-content:center;background:#edf1fa}.bb-busy,.bb-fail{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:14px;background:rgba(19,23,32,.78);color:#fff;z-index:1}.bb-busy i{width:34px;height:34px;border-radius:50%;border:3px solid rgba(255,255,255,.25);border-top-color:#fff;animation:bbSpin .95s linear infinite;margin-bottom:10px}.bb-busy strong,.bb-fail strong{font-size:16px;margin-bottom:5px}.bb-busy span,.bb-fail span{font-size:12px;color:#d8dbe5}.bb-fail button{margin-top:10px;border:0;padding:8px 12px;background:#fff;color:#121722;font-weight:800;cursor:pointer}.bb-result-label{display:flex;justify-content:space-between;gap:10px;padding:10px 4px 0;color:#222}.bb-result-label b{font-size:13px}.bb-result-label span{font-size:12px;color:#697083}.bb-download{position:absolute;right:10px;bottom:10px;width:34px;height:34px;border:0;background:rgba(17,23,32,.84);color:#fff;font-size:18px;cursor:pointer;z-index:2;display:grid;place-items:center}.bb-download:hover{background:rgba(84,64,250,.95)}@keyframes bbSpin{to{transform:rotate(360deg)}}
@media(max-width:980px){.bb-workbench{grid-template-columns:1fr}.bb-input,.bb-side{min-height:unset}.bb-upload{min-height:360px}.bb-upload-grid[data-count="1"] .bb-upload-card{min-height:320px}.bb-output-head{display:block}.bb-output-actions{margin-top:12px}.bb-result-grid[data-count="1"] .bb-result-card{min-height:420px}}
@media(max-width:560px){.bb-head,.bb-shell{padding-left:18px;padding-right:18px}.bb-compact-row{grid-template-columns:repeat(3,1fr);gap:6px}.bb-field select{height:36px;padding:0 8px;font-size:13px}.bb-upload{min-height:220px}.bb-upload-grid[data-count="1"] .bb-upload-card{min-height:190px;max-height:190px}.bb-upload-grid[data-count="2"],.bb-upload-grid[data-count="3"],.bb-upload-grid[data-count="4"],.bb-upload-grid[data-count="5"],.bb-upload-grid[data-count="6"],.bb-upload-grid[data-count="7"],.bb-upload-grid[data-count="8"],.bb-upload-grid[data-count="9"],.bb-result-grid[data-count="2"],.bb-result-grid[data-count="3"],.bb-result-grid[data-count="4"],.bb-result-grid[data-count="5"],.bb-result-grid[data-count="6"],.bb-result-grid[data-count="7"],.bb-result-grid[data-count="8"],.bb-result-grid[data-count="9"]{grid-template-columns:repeat(2,1fr)}.bb-prompt textarea{min-height:150px}.bb-credits{flex-direction:column}.bb-credits span{text-align:left}}


/* Ensure the empty upload message never shows behind selected images */
.bb-upload-empty[hidden]{display:none!important;}
.bb-upload-grid:not([hidden]){position:relative;z-index:2;background:#f8fafc;}

/* Tool67 state visibility hardening */
.bb-busy[hidden],.bb-fail[hidden],.bb-download[hidden],.bb-result-media img[hidden]{display:none!important;}

/* Tool67 image-page dark compatibility patch — visual only */
html[data-theme="dark"],body.dark{--ink:#f4f6f8;--paper:#0b0e13;--muted:#a3acb8;}
body.dark body>.t67-header,body.dark .icon-btn,body.dark .account-btn,body.dark .focus-map,body.dark .example-card,body.dark .final-cta a,body.dark .bb-input,body.dark .bb-side,body.dark .bb-output-panel,body.dark .bb-upload-empty i,body.dark .bb-output-actions button,body.dark .bb-fail button,body.dark .bb-upload-grid:not([hidden]){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;}
