/* PixDab workspace and comparison gallery. Loaded after the existing tools' stylesheet. */
:root {
  --ink:#201e34;
  --muted:#605e72;
  --line:#dfddea;
  --green:#5d3cc8;
  --orange:#ee895c;
  --accent:#5d3cc8;
  --deep:#322167;
  --soft:#f1edff;
  --paper:#f7f7fc;
  --panel:#fff;
  --ring:#7251d5;
  --shadow:0 4px 20px #25203c0c;
  font-family:"Inter","DM Sans",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:var(--paper);
}
body { background:var(--paper); }
button,input,select,textarea { font-family:inherit; }
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,
textarea:focus-visible,canvas:focus-visible,.wb-viewport:focus-visible {
  outline:3px solid var(--ring); outline-offset:3px;
}
button:disabled { opacity:.5; cursor:default; }
[hidden] { display:none!important; }
.workspace { background:var(--paper); }
.workspace>header { background:#fff; border-color:var(--line); }
main,footer { max-width:1560px; }
.workspace main { padding-top:clamp(20px,2.4vw,38px); }
#sidebar { background:#fdfcff; }
.brand { color:#242039; letter-spacing:-.07em; }
.brand-kit { color:var(--accent); font-weight:720; }
.brand svg rect { fill:#43299b; }
.brand svg path:first-of-type { fill:#ebe6ff; }
.brand svg path:last-of-type { fill:#ffad7b; }
.nav-label { color:#6f677f; }
.nav-link,.nav-link svg,.crumb,.search-trigger,.privacy-mini,footer { color:#605b72; }
.nav-link { border-radius:10px; }
.nav-link:hover,.icon-button:hover,.language-list a:hover,.search-results a:hover,.search-results a:focus {
  background:#f0edf8;
}
.nav-link.active,.nav-link.active svg,.language-list a[aria-current] {
  background:#ece5ff; color:#452694;
}
.nav-link.active svg { background:transparent; }
.privacy-mini svg,.see-all,.tool-bread a,footer a { color:#5535ac; }
.saved-count,.search-trigger,.search-trigger kbd,.languages summary,.language-list,.dialog-line { border-color:var(--line); }
.search-trigger kbd,.guide-values div { background:#f6f5fb; color:#625c76; }
#search-dialog,.language-list { border-color:var(--line); box-shadow:0 16px 54px #28203a28; }
#search-dialog::backdrop,#scrim { background:#201a3f78; }
#toast { background:#29223e; }
footer { flex-wrap:wrap; align-items:center; }
footer a:hover { text-decoration:underline; }

.studio-hero {
  position:relative; isolation:isolate; display:grid; align-items:center;
  grid-template-columns:minmax(0,1fr) minmax(0,1.08fr); gap:clamp(20px,3.8vw,68px);
  background:radial-gradient(ellipse at 18% 115%,#483087 0%,transparent 60%),#20183d;
  color:#fff; border:1px solid #34294e; border-radius:clamp(18px,2vw,30px);
  padding:clamp(22px,3.4vw,56px); overflow:hidden;
}
.hero-copy,.hero-photo { min-width:0; }
.studio-mark {
  display:inline-block; margin-bottom:clamp(10px,1.2vw,20px); color:#ffc4a4;
  font:660 .875rem/1.35 "Inter",system-ui,sans-serif; letter-spacing:.025em;
}
.studio-hero h1 {
  font-size:clamp(2.2rem,3.65vw,4.4rem); line-height:1.04; letter-spacing:-.055em;
  font-weight:770; text-wrap:balance; overflow-wrap:break-word; color:#fff;
}
.studio-hero h1 span { color:#ffb18a; }
.studio-hero p {
  max-width:46ch; margin:.9rem 0 0; color:#e1dcef; line-height:1.6;
  font-size:clamp(.95rem,1.1vw,1.13rem); text-wrap:pretty;
}
.hero-actions { display:flex; flex-wrap:wrap; gap:.6rem; margin-top:clamp(16px,1.7vw,28px); }
.hero-actions a {
  display:inline-flex; align-items:center; justify-content:center; gap:.45rem; padding:.69rem .98rem;
  min-height:42px; margin:0; border-radius:9px; border:1px solid #8a7caa;
  background:transparent; color:#fff; font-size:.875rem; font-weight:650; line-height:1.35;
}
.hero-actions .hero-main { background:#ffb28b; color:#2b1930; border-color:#ffb28b; }
.hero-actions a:hover { background:#4b3b68; }
.hero-actions .hero-main:hover { background:#ffc9aa; }
.hero-actions a:focus-visible { outline-color:white; }
.hero-photo { position:relative; border:1px solid #ffffff67; border-radius:15px; background:#39304a; }
.hero-photo .tool-compare { border-radius:inherit; }
.hero-photo .tool-compare .cmp-before,.hero-photo .tool-compare .cmp-after { top:12px; }
.home-section { margin-top:clamp(30px,3.2vw,52px); }
.section-head h2,.page-heading h1,.tool-intro h1,.guide h2 { color:var(--ink); font-weight:740; letter-spacing:-.045em; }
.section-head { align-items:baseline; }
.aster { color:#d96b3e; }
.chips a,.secondary,.add { color:#3d354c; border-color:var(--line); border-radius:9px; }
.chips a:hover,.secondary:hover,.add:hover { background:#f5f2fc; border-color:#b9acd8; }
.chips a[aria-current=page] { background:var(--soft); color:var(--deep); border-color:#c9b9f1; }
.primary { background:#5c3dc4; border-color:#5335b8; color:#fff; border-radius:9px; }
.primary:hover { background:#472caa; }
.drop-icon,.category-mark { color:var(--accent); background:#eee9ff; border-color:#d2c6ee; }
.drop,.wb-drop { border:1.5px dashed #a79cce; border-radius:13px; background:#f7f5ff; }
.drop.over,.wb-drop.over { border-color:#6134ca; background:#e9e3ff; }
input[type=range],input[type=checkbox],.field input[type=range] { accent-color:var(--accent); }
.field,.field textarea,.guide-values dd,.walkthrough p strong,.walkthrough .example-label { color:#433955; }
.field input:not([type=range]),.field select,.field textarea { border-color:#d7d2e2; }
.preview-title span,.result small { color:var(--muted); }
.status:not(:empty) { background:#f4f0ff; border-color:#d9cfeb; color:#453263; }
.empty,.guide,#processor,#workbench { background:white; border:1px solid var(--line); border-radius:17px; box-shadow:var(--shadow); }
#processor,.guide { padding:clamp(16px,2vw,32px); }
.walkthrough h3>span { background:#5033ad; }
.walkthrough figure a,.walkthrough figure a>span { color:#493094; }
.walkthrough figure a>span { background:#f8f6fe; }
.result-thumb,.canvas-wrap { background:repeating-conic-gradient(#e8e5ef 0 25%,#faf9fc 0 50%) 0 0/16px 16px; }
.tool-grid,.collections { gap:clamp(13px,1.45vw,24px); }
.tool-card {
  background:#fff; border:1px solid #dedbea; border-radius:16px; box-shadow:var(--shadow);
}
.tool-card:hover { border-color:#b8a8dc; box-shadow:0 8px 24px #34244d15; transform:translateY(-2px); }
.tool-link { display:block; padding:0 0 1rem; }
.tool-link>h3,.tool-link>p { margin-inline:clamp(12px,1.5vw,23px); }
.tool-link>h3 { margin-top:.95rem; padding-inline-end:0; font-weight:720; color:#241e36; font-size:clamp(1.04rem,1.3vw,1.29rem); line-height:1.27; letter-spacing:-.032em; }
.tool-link>p { max-width:none; padding-inline-end:34px; font-size:.91rem; line-height:1.5; margin-top:.48rem; }
.tool-card .save {
  inset:auto 9px 9px auto; width:32px; height:32px; border:1px solid transparent;
  background:transparent; color:#716486; border-radius:9px;
}
html[dir=rtl] .tool-card .save { inset:auto auto 9px 9px; }
.tool-card .save:hover,.save:hover,.save[aria-pressed=true] { background:#f2edff; color:#5131a0; }
.save[aria-pressed=true] svg { fill:#cfc1fa; }
.tool-compare {
  position:relative; display:block; inline-size:100%; aspect-ratio:16/9;
  margin:0; isolation:isolate; border-radius:12px; overflow:hidden; background:#dfdce8;
}
.tool-compare img {
  display:block; width:100%; height:100%; max-width:none; object-fit:cover;
}
.tool-link>.tool-compare { border-radius:15px 15px 0 0; border-bottom:1px solid #16122213; }
.tool-compare .cmp-before,.tool-compare .cmp-after {
  display:block; z-index:1; position:absolute; top:8px; margin:0; max-width:45%;
  padding:.22rem .5rem; border-radius:5px; font-size:.74rem; font-weight:650; letter-spacing:0;
  line-height:1.35; text-align:center; overflow-wrap:anywhere; color:#fff; background:#201a31df;
}
.tool-compare .cmp-before { left:8px; }
.tool-compare .cmp-after { right:8px; background:#fbf5efed; color:#2a2138; }
.collection {
  display:flex; flex-direction:column; align-items:stretch; justify-content:space-between; gap:0;
  padding:0; min-height:0; background:#fff; color:var(--ink); border:1px solid var(--line); border-radius:15px;
}
.collection>.tool-compare { order:-1; border-radius:0; }
.collection h3 { padding:.85rem 1rem 1rem; font-size:1.1rem; }
.collection:hover { filter:none; border-color:#b6a2d8; box-shadow:var(--shadow); }
.tool-intro {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(185px,31%);
  align-items:center; gap:clamp(16px,3vw,48px); margin-bottom:clamp(18px,2vw,32px);
}
.tool-intro .page-heading { margin:8px 0; }
.tool-intro .tool-compare { border-radius:14px; max-height:220px; }
.tool-intro .tool-top { margin:3px 0; }
.tool-intro .tool-top>.tool-art { display:none; }
.tool-intro .save-text { margin-inline-start:auto; color:#59516c; }
.tool-bread a:hover,.see-all:hover { color:#45248e; }
.wb-guide { max-width:none; }
.wb-guide>li { display:grid; grid-template-columns:minmax(0,1fr) minmax(190px,36%); align-items:center; gap:4%; }
.wb-guide figure { margin:0; }
.wb-guide figure>img { border-radius:10px; width:100%; aspect-ratio:16/9; object-fit:cover; }

#workbench { padding:clamp(14px,2vw,30px); }
.wb-drop { text-align:center; padding:clamp(24px,4vw,62px) 15px; }
.wb-drop h2,.wb-side h2 { font-size:clamp(1.17rem,1.55vw,1.55rem); line-height:1.25; letter-spacing:-.033em; }
.wb-drop p { margin:.6rem 0 1.1rem; color:var(--muted); font-size:.91rem; }
.wb-row,.wb-toolbar,.wb-views,.wb-prompts,.wb-objects { display:flex; flex-wrap:wrap; align-items:center; gap:.45rem; }
.wb-drop .wb-row { justify-content:center; }
.wb-toolbar { padding-bottom:.9rem; border-bottom:1px solid var(--line); margin-bottom:.9rem; }
.wb-toolbar button:first-child { margin-inline-end:auto; }
.wb-grid { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(240px,.92fr); gap:clamp(18px,2.1vw,34px); align-items:start; }
.wb-grid>* { min-width:0; }
.wb-left { display:flex; flex-direction:column; gap:.7rem; }
.wb-views>span { margin-inline-end:.15rem; color:var(--muted); font-size:.87rem; }
#workbench button,#workbench select,#workbench input[type=text] { min-height:37px; font-size:.875rem; }
.wb-views button,.wb-toolbar button,.wb-tools button,.wb-row button,.wb-prompts button,.wb-objects button { white-space:normal; overflow-wrap:anywhere; }
.wb-views .secondary,.wb-toolbar .secondary,.wb-tools .secondary { padding:.46rem .72rem; line-height:1.35; }
#workbench [aria-pressed=true] { background:#ece5ff; color:#44219b; border-color:#a68bdb; box-shadow:inset 0 0 0 1px #baa8e4; font-weight:700; }
.wb-viewport {
  display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-start;
  overflow:auto; position:relative; min-width:0; min-height:200px; height:clamp(280px,60vh,610px);
  border:1px solid #c9c5d7; border-radius:10px; direction:ltr; background:#e8e5ef;
  scrollbar-color:#a7a0bb #e8e5ef; overscroll-behavior:contain;
}
.wb-surface {
  display:block; position:relative; flex:none; margin:auto;
  background:repeating-conic-gradient(#d5d1df 0 25%,#fbfaff 0 50%) 0 0/16px 16px;
  box-shadow:0 1px 7px #20183227; direction:ltr;
}
#wb-canvas { display:block; width:100%; height:100%; }
[data-mode=mask] #wb-canvas { touch-action:none; cursor:crosshair; }
.wb-cursor {
  position:absolute; pointer-events:none; border:1.5px solid white; box-shadow:0 0 0 1px #292333, inset 0 0 0 .5px #282233;
  border-radius:50%; transform:translate(-50%,-50%); z-index:1;
}
.wb-stage-foot,.wb-stage-foot label,.wb-color,.wb-export>label { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem; }
.wb-stage-foot { justify-content:space-between; color:var(--muted); font-size:.83rem; }
#wb-size,.wb-field output { font-variant-numeric:tabular-nums; }
.wb-field { display:flex; flex-direction:column; gap:.3rem; font-size:.9rem; margin:.9rem 0; min-width:0; }
.wb-left .wb-field { margin:0; }
.wb-field>span { display:flex; justify-content:space-between; align-items:baseline; gap:.5rem; }
.wb-field output { color:#5a3ca5; font-weight:680; font-size:.85rem; }
.wb-field input[type=range] { display:block; width:100%; height:22px; margin:0; cursor:pointer; }
.wb-side { padding-inline-start:clamp(12px,1.6vw,24px); border-inline-start:1px solid var(--line); }
.wb-side h2,.wb-side h3 { margin-bottom:.7rem; }
.wb-side h3,.wb-details summary { color:#342b45; font-weight:680; font-size:1rem; }
.wb-tools,.wb-presets { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.45rem; }
.wb-help { color:var(--muted); font-size:.9rem; line-height:1.55; margin:.65rem 0; }
.wb-side select,.wb-stage-foot select,.wb-field input[type=text] {
  min-width:0; max-width:100%; color:var(--ink); background:#fff; padding:.46rem .65rem;
  border:1px solid #cdc7d8; border-radius:7px;
}
.wb-side>select,.wb-field input[type=text],.wb-save { width:100%; }
.wb-color,#wb-bg-upload,.wb-prompts:not(:empty),.wb-objects:not(:empty) { margin:.65rem 0; }
.wb-color input { border:1px solid var(--line); padding:2px; background:white; border-radius:4px; }
.wb-save { margin-top:1rem; min-height:43px!important; }
.wb-download {
  display:inline-flex; align-items:center; align-self:flex-start; max-width:100%; overflow-wrap:anywhere;
  padding:.55rem .8rem; background:var(--soft); color:#47278f; border-radius:7px; font-weight:650; text-decoration:underline;
}
#wb-live:not(:empty),#wb-load:not(:empty) { font-size:.9rem; line-height:1.5; padding:.65rem .8rem; background:#f4f0ff; color:#44365d; border-radius:7px; }
#wb-load:not(:empty) { margin:.6rem 0; }
.wb-preset,.wb-prompts button,.wb-objects button {
  border:1px solid var(--line); border-radius:8px; color:#332a46; background:#fff; text-align:start; padding:.45rem .65rem;
}
.wb-preset { display:flex; align-items:center; gap:.45rem; line-height:1.3; font-weight:580; overflow-wrap:anywhere; }
.wb-preset::before { content:""; width:1rem; height:1rem; flex:none; border-radius:4px; border:1px solid #15101d1f; background:var(--swatch,#ddb197); }
.wb-preset[data-style=landscape] { --swatch:#79bcb2; }
.wb-preset[data-style=food] { --swatch:#f19364; }
.wb-preset[data-style=drinks] { --swatch:#e7bd50; }
.wb-preset[data-style=portrait] { --swatch:#db9fac; }
.wb-preset[data-style=street] { --swatch:#7188a1; }
.wb-preset[data-style=night] { --swatch:#5f5f91; }
.wb-preset:hover,.wb-prompts button:hover,.wb-objects button:hover { border-color:#a794c7; background:#f8f6fc; }
.wb-prompts button { min-height:30px!important; padding:.3rem .55rem; border-radius:7px; font-size:.82rem!important; line-height:1.4; }
.wb-details { margin:1rem 0; padding:.75rem 0; border-block:1px solid var(--line); }
.wb-details summary { cursor:pointer; }
.wb-details .wb-field:last-child { margin-bottom:0; }
.wb-export>label { justify-content:space-between; }
.wb-objects label { display:inline-flex; align-items:center; gap:.35rem; padding:.35rem .5rem; border:1px solid var(--line); border-radius:7px; font-size:.85rem; }
#processor .classic-toolbar button[aria-pressed=true],#processor .classic-patch-tabs button[aria-pressed=true] { background:var(--soft); color:var(--deep); border-color:#a795c9; }

@media(max-width:1100px) {
  .studio-hero { grid-template-columns:1fr 1fr; gap:22px; padding:24px; }
  .wb-grid { grid-template-columns:minmax(0,1.3fr) minmax(215px,1fr); gap:16px; }
  .wb-side { padding-inline-start:14px; }
}
@media(max-width:960px) and (min-width:741px) {
  .studio-hero h1 { font-size:clamp(2.1rem,4.8vw,3rem); }
  .studio-hero { grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); gap:18px; }
}
@media(max-width:900px) {
  .wb-grid { grid-template-columns:minmax(0,1fr); }
  .wb-side { padding:1rem 0 0; border-inline-start:0; border-top:1px solid var(--line); }
  .wb-viewport { height:clamp(260px,53vh,480px); }
}
@media(max-width:740px) {
  .studio-hero { padding:22px; gap:20px; }
  .collections { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .tool-intro { grid-template-columns:minmax(0,1fr) minmax(145px,30%); gap:16px; }
}
@media(max-width:620px) {
  .studio-hero { grid-template-columns:minmax(0,1fr); padding:21px; }
  .studio-hero h1 { font-size:clamp(2.15rem,8vw,3.65rem); max-width:18ch; }
  .hero-photo { width:100%; }
  .tool-intro { display:flex; flex-direction:column; align-items:stretch; gap:8px; }
  .tool-intro .tool-compare { max-width:100%; max-height:none; }
  .tool-intro .page-heading h1 { font-size:clamp(1.8rem,7vw,2.55rem); }
  .wb-guide>li { grid-template-columns:minmax(0,1fr); gap:12px; }
}
@media(max-width:460px) {
  .workspace main { padding-inline:13px; }
  .studio-hero { padding:17px; gap:17px; }
  .tool-grid,.collections { grid-template-columns:minmax(0,1fr); }
  .tool-link>h3 { font-size:1.14rem; margin-top:.75rem; }
  .tool-link>p { font-size:.91rem; }
  .hero-actions { gap:6px; }
  .hero-actions a { padding:.55rem .73rem; }
  .wb-views,.wb-toolbar { gap:.35rem; }
  .wb-toolbar button:first-child { margin-inline-end:0; }
  #workbench { padding:11px; }
  .wb-viewport { min-height:210px; height:clamp(230px,45vh,355px); }
  .wb-stage-foot { gap:.3rem; }
  .wb-views>span { width:100%; }
  .wb-tools .secondary,.wb-views .secondary,.wb-toolbar .secondary { padding:.42rem .5rem; }
}
html[dir=rtl] .studio-hero h1,html[dir=rtl] .section-head h2,html[dir=rtl] .page-heading h1,
html[dir=rtl] .tool-link h3,html[dir=rtl] .wb-drop h2,html[dir=rtl] .wb-side h2 { letter-spacing:normal; line-height:1.4; }
html[lang=hi] .studio-hero h1,html[lang=bn] .studio-hero h1,html[lang=zh-Hans] .studio-hero h1 { line-height:1.23; letter-spacing:normal; }

.wb-side .wb-field input[type=color] { width:100%; height:36px; padding:3px; border:1px solid #cdc7d8; border-radius:7px; background:white; }
.wb-objects .wb-object { cursor:pointer; }
.wb-object:has(input:checked) { border-color:#b29bdc; background:#f4f0ff; }
.wb-object:focus-within { outline:2px solid var(--ring); outline-offset:2px; }
@media(min-width:901px) and (min-height:780px) {
  .wb-left { position:sticky; top:16px; align-self:start; }
}

.hero-reveal {--reveal:50%;touch-action:pan-y}
.hero-reveal::after,.hero-reveal::before{display:none}
.hero-reveal .reveal-original{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;clip-path:inset(0 calc(100% - var(--reveal)) 0 0)}
.hero-reveal .reveal-line{position:absolute;z-index:2;left:var(--reveal);top:0;bottom:0;width:2px;background:white;pointer-events:none}
.hero-reveal .reveal-line b{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:2.3rem;height:2.3rem;background:white;color:#332345;border-radius:100%;box-shadow:0 2px 12px #16091d55;font:700 1.3rem/1 system-ui;white-space:pre}
.reveal-control{position:absolute;z-index:3;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize;touch-action:pan-y}
.hero-reveal:focus-within{outline:3px solid #ffc393;outline-offset:3px}
.wb-demos{display:flex;justify-content:center;flex-wrap:wrap;gap:.65rem;margin:.9rem 0 0}
.wb-demo-card{padding:0;overflow:hidden;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);width:clamp(80px,10vw,125px)}
.wb-demo-card img{display:block;width:100%;height:auto;aspect-ratio:1.6;object-fit:cover}
.wb-demo-card span{display:block;padding:.28rem .2rem;font-size:.8rem;font-weight:600}
.wb-demo-card:hover{border-color:var(--accent)}
.wb-entry,.wb-classic{margin:.9rem 0;padding:1rem;border:1px solid var(--line);background:white;border-radius:12px}
.wb-entry{display:flex;gap:.9rem;flex-wrap:wrap}
.wb-entry a{font-weight:650;color:var(--deep);text-decoration:underline;text-underline-offset:3px}
.wb-classic summary{font-weight:650;cursor:pointer}
.wb-classic[open] summary{margin-bottom:.8rem}
.wb-case{border-top:1px solid var(--line);margin-top:1.25rem;padding-top:1.25rem;max-width:52rem}
.wb-case .tool-compare{max-width:38rem;margin:.8rem 0}
.wb-case>a{font-weight:650;color:var(--deep);text-decoration:underline}
.tone-histogram{margin:.75rem 0;color:var(--text,#27253a)}
.tone-histogram figcaption{font-size:.875rem;font-weight:600;margin-bottom:.3rem}
.tone-histogram canvas{display:block;width:100%;height:64px;border-radius:.5rem;background:#211e35}
.mask-method{display:grid;grid-template-columns:auto minmax(8rem,16rem);align-items:center;gap:.5rem 1rem;margin:1rem;padding:1rem;border:1px solid #dbd9ed;border-radius:12px}.mask-method label{font-weight:650}.mask-method small,.mask-method progress{grid-column:1/-1}.mask-method progress{width:100%}
.mix-panel{color:#24223b;min-width:0}.mix-toolbar,.mix-dimensions,.mix-camera{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.mix-toolbar{justify-content:space-between;gap:.6rem;padding:.5rem 0}.mix-toolbar label,.mix-dimensions label{font-size:.875rem;font-weight:600}.mix-toolbar select,.mix-toolbar button,.mix-dimensions input{border:1px solid #c9c6d7;border-radius:.45rem;background:white;color:#26233a;padding:.4rem .55rem;font:inherit}.mix-toolbar button{cursor:pointer;min-height:2.5rem;min-width:2.5rem}.mix-camera output{font-variant-numeric:tabular-nums;min-width:3.1rem;text-align:center}#mix-stage{display:block;width:100%;height:clamp(250px,49vh,520px);background:#f1eff6;border:0;border-radius:.7rem;touch-action:none;cursor:grab;direction:ltr}#mix-stage:active{cursor:grabbing}#mix-stage:focus-visible{outline:3px solid #7561ca}.mix-dimensions{padding-top:.8rem;align-items:flex-end}.mix-dimensions label{display:grid;gap:.25rem;flex:1 1 4.2rem}.mix-dimensions input{width:100%;min-width:0;direction:ltr}.mix-dimensions button{margin-bottom:1px}.mix-help{font-size:.88rem;line-height:1.5;color:#504b61;margin:.6rem 0}#processor .mix-panel[hidden],#processor .canvas-wrap[hidden]{display:none}

/* Let the complete language menu fit on desktop and mobile. */
.language-list{width:min(28rem,calc(100vw - 1.5rem));max-height:min(70vh,31rem);overscroll-behavior:contain}
.languages[open] .language-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.language-list a{display:flex;align-items:center;min-height:2.6rem}
@media(max-width:360px){.language-list{width:min(17rem,calc(100vw - 1rem))}}

.edit-brief .brief-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 .65rem}
.edit-brief .wb-field {margin:.35rem 0 .65rem}
.edit-brief select,.edit-brief input {width:100%;min-width:0}
.edit-brief[hidden] {display:none}
@media(max-width:360px){.edit-brief .brief-grid {grid-template-columns:1fr}}

.sample-thumb{display:inline-block;width:3.6rem;height:2.35rem;object-fit:cover;border-radius:.4rem;vertical-align:middle;margin-inline-end:.5rem}.drop-actions .sample,[data-do="sample"]{display:inline-flex;align-items:center}
