/* TOKAI brand layer (tokai.agency): black, one orange-red accent, wide display headlines, pill actions.
   Loaded last. It only re-values the shared --studio-* tokens and styles the shell; module layouts stay as they are. */
@font-face{font-family:"Tokai Display";src:url("/assets/fonts/archivo-expanded-800-latin.woff2") format("woff2");font-weight:800;font-stretch:125%;font-style:normal;font-display:swap}
:root,html[data-studio-theme="dark"]{
  --tk-accent:#ff4a1c;--tk-accent-hover:#ff6a40;--tk-accent-soft:#ff4a1c1f;--tk-accent-line:#ff4a1c66;
  --tk-display:"Tokai Display","Arial Black","Helvetica Neue",system-ui,sans-serif;
  --studio-bg:#070707;--studio-surface:#111112;--studio-raised:#19191a;
  --studio-inset:#0c0c0d;--studio-hover:#232325;--studio-rail:#0a0a0a;
  --studio-line:#262628;--studio-line-strong:#3e3e42;
  --studio-text:#f6f5f3;--studio-muted:#b3b2ae;--studio-subtle:#918f8b;
  --studio-primary:var(--tk-accent);--studio-primary-hover:var(--tk-accent-hover);--studio-primary-text:#fff;
  --studio-selected:#1d120e;--studio-selected-line:#5c2a1a;--studio-selected-text:#fff;
  --studio-canvas:#0b0b0c;--studio-focus:#ff8b66;
}
html[data-studio-theme="light"]{
  --tk-accent:#d93a10;--tk-accent-hover:#bf300a;--tk-accent-soft:#d93a1014;--tk-accent-line:#d93a1055;
  --studio-bg:#f6f5f2;--studio-surface:#fff;--studio-raised:#efeeea;
  --studio-hover:#e7e5e0;--studio-rail:#fff;--studio-line:#dedcd6;--studio-line-strong:#bcb9b1;
  --studio-text:#141413;--studio-muted:#5d5b56;--studio-subtle:#6f6d67;
  --studio-primary:var(--tk-accent);--studio-primary-hover:var(--tk-accent-hover);--studio-primary-text:#fff;
  --studio-selected:#fbe9e2;--studio-selected-line:#eab8a6;--studio-selected-text:#141413;
  --studio-focus:#b3300c;
}
html[data-studio-theme="dark"] .main,html:not([data-studio-theme="light"]) .main{background:radial-gradient(900px 420px at 88% -120px,#ff4a1c14,transparent 70%),var(--studio-bg)}

/* Display headlines: page titles only, never body copy or form labels. */
html[data-studio-theme] :is(.wo-heading h1,.bh-intro h1,.home-intro h1,.tk-start h1,.welcome-intro h1,.auth-showcase h2){font-family:var(--tk-display);font-weight:800;font-stretch:125%;text-transform:uppercase;letter-spacing:-.01em;line-height:1.04;text-wrap:balance}
html[data-studio-theme] .logo span{font-family:var(--tk-display);font-weight:800;font-stretch:125%;letter-spacing:.01em}
html[data-studio-theme] .logo small{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-weight:500;font-stretch:normal}

/* Pill actions. */
html[data-studio-theme] :is(.shell,dialog) button.primary,html[data-studio-theme] .tk-cta{border-radius:999px;font-weight:650;padding-inline:20px}
html[data-studio-theme] :is(.shell,dialog) .tk-cta{display:inline-flex;align-items:center;gap:9px;min-height:46px;background:var(--tk-accent);border:1px solid var(--tk-accent);color:#fff;font-size:14px;text-decoration:none;cursor:pointer}
html[data-studio-theme] :is(.shell,dialog) .tk-cta:hover{background:var(--tk-accent-hover);border-color:var(--tk-accent-hover)}
html[data-studio-theme] .tk-cta .icon{width:17px;height:17px}

/* Sidebar: four primary destinations, everything else under "Mehr". */
html[data-studio-theme] .rail .nav-link.tk-primary{font-size:14px;min-height:44px;font-weight:600;color:var(--studio-text);gap:12px}
html[data-studio-theme] .rail .nav-link.active{border-color:var(--studio-selected-line)}
html[data-studio-theme] .rail .nav-link.active .icon{color:var(--tk-accent)}
html[data-studio-theme] .rail .nav-link.active::before{content:"";width:3px;height:18px;border-radius:2px;background:var(--tk-accent);margin-left:-6px;margin-right:-2px}
.tk-more{margin-top:14px;border-top:1px solid var(--studio-line);padding-top:10px}
.tk-more>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding:9px 11px;border-radius:7px;color:var(--studio-subtle);font-size:11px;letter-spacing:.09em;text-transform:uppercase;font-weight:600;min-height:38px}
.tk-more>summary::-webkit-details-marker{display:none}
.tk-more>summary::after{content:"+";font-size:15px;line-height:1}
.tk-more[open]>summary::after{content:"–"}
.tk-more>summary:hover{background:var(--studio-raised);color:var(--studio-text)}
.tk-more>summary:focus-visible{outline:2px solid var(--studio-focus);outline-offset:2px}
.tk-soon{margin-left:auto;font-size:9px;letter-spacing:.08em;text-transform:uppercase;color:var(--studio-subtle);border:1px solid var(--studio-line);border-radius:999px;padding:2px 7px}

/* Top bar: credits at a glance. */
.tk-credits{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:0 14px;border-radius:999px;border:1px solid var(--studio-line);background:var(--studio-surface);color:var(--studio-text);font-size:12px;font-weight:600;text-decoration:none;font-variant-numeric:tabular-nums}
.tk-credits:hover{border-color:var(--tk-accent-line)}
.tk-credits i{width:7px;height:7px;border-radius:50%;background:var(--tk-accent)}
.tk-credits[data-low="true"]{border-color:var(--tk-accent-line);background:var(--tk-accent-soft)}

/* Motion tokens (Emil Kowalski curves). Shared by every TOKAI module that animates. */
:root{--tk-ease-out:cubic-bezier(.23,1,.32,1);--tk-ease-in-out:cubic-bezier(.77,0,.175,1)}

/* Start: premium landing inside the studio – big visual hero, tools with imagery, template gallery. */
.tk-start{margin:0 0 30px;--tk-r:26px}
.tk-hero{position:relative;overflow:hidden;border-radius:var(--tk-r);min-height:clamp(420px,58vh,560px);display:flex;align-items:flex-end;background:#0b0b0c;isolation:isolate;color:#fff}
.tk-hero-media{position:absolute;inset:-40px -20px -40px 38%;display:grid;grid-template-columns:repeat(3,1fr);gap:14px;transform:rotate(-6deg);z-index:-2}
.tk-col{display:flex;flex-direction:column}
.tk-col figure{margin:0 0 14px}
.tk-col img{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;border-radius:16px;box-shadow:0 20px 40px #0008}
.tk-hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#0b0b0c 0%,#0b0b0cf2 34%,#0b0b0c99 55%,#0b0b0c1a 80%),linear-gradient(0deg,#0b0b0ccc 0%,transparent 40%)}
.tk-hero::after{content:"";position:absolute;inset:auto auto -30% -10%;width:60%;height:80%;z-index:-1;background:radial-gradient(closest-side,#ff4a1c33,transparent);pointer-events:none}
.tk-hero-copy{position:relative;padding:clamp(26px,4vw,52px);max-width:640px}
.tk-start .tk-kicker{display:inline-flex;align-items:center;gap:8px;font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--tk-accent);font-weight:700}
.tk-start h1{font-size:clamp(36px,5.4vw,76px);margin:14px 0 16px;color:#fff}
.tk-word{display:inline-block}
.tk-hero-copy>p{color:#d8d6d2;font-size:16px;line-height:1.55;max-width:44ch;margin:0 0 28px}
.tk-start-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
html[data-studio-theme] .tk-start .tk-cta{min-height:52px;padding-inline:26px;font-size:15px;box-shadow:0 10px 30px #ff4a1c40}
html[data-studio-theme] .tk-start .tk-ghost{border-radius:999px;min-height:52px;padding-inline:22px;background:#ffffff14;border:1px solid #ffffff2e;color:#fff;font-weight:600;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.tk-arrow{display:inline-block}

.tk-brandbar{display:flex;margin:16px 0 40px}
html[data-studio-theme] .tk-start .tk-brandchip{display:inline-flex;align-items:center;gap:10px;min-height:46px;max-width:100%;padding:6px 18px 6px 8px;border-radius:999px;border:1px solid var(--studio-line);background:var(--studio-surface);color:var(--studio-muted);font-size:13px;cursor:pointer;text-align:left}
.tk-brandchip svg{width:30px;height:30px;flex:none;transform:rotate(-90deg)}
.tk-brandchip strong{color:var(--studio-text);font-weight:650}
.tk-chip-missing{color:var(--studio-subtle);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tk-chip-missing:empty{display:none}
.tk-chip-missing::before{content:"fehlt: "}
.tk-ring-bg,.tk-ring{fill:none;stroke-width:3.5}
.tk-ring-bg{stroke:var(--studio-line)}
.tk-ring{stroke:var(--tk-accent);stroke-linecap:round;stroke-dasharray:69.12;stroke-dashoffset:var(--ring)}
.tk-live{position:relative;width:7px;height:7px;flex:none;border-radius:50%;background:var(--tk-accent)}

.tk-block{margin:0 0 44px}
.tk-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:16px}
.tk-section-head h2{font-family:var(--tk-display);font-weight:800;font-stretch:125%;text-transform:uppercase;font-size:clamp(18px,2vw,24px);letter-spacing:0;margin:0;color:var(--studio-text)}
html[data-studio-theme] .tk-start .tk-link{background:none;border:0;padding:6px 0;min-height:32px;color:var(--studio-muted);font-size:13px;font-weight:600;cursor:pointer}
html[data-studio-theme] .tk-start .tk-link:hover{color:var(--studio-text)}

.tk-media{display:block;overflow:hidden;border-radius:20px;background:var(--studio-raised);position:relative}
.tk-media img{display:block;width:100%;height:100%;object-fit:cover}
.tk-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
html[data-studio-theme] .tk-start .tk-tool{position:relative;display:block;padding:0;border:0;background:none;color:#fff;text-align:left;cursor:pointer;border-radius:22px}
.tk-tool .tk-media{aspect-ratio:4/5;border-radius:22px}
.tk-tool .tk-media::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#000d 0%,#0006 38%,transparent 65%)}
.tk-tool-copy{position:absolute;left:0;right:0;bottom:0;padding:20px;z-index:1}
.tk-tool-copy strong{display:block;font-family:var(--tk-display);font-weight:800;font-stretch:125%;text-transform:uppercase;font-size:17px;line-height:1.1}
.tk-tool-copy span{display:block;font-size:13px;line-height:1.4;color:#e4e2de;margin-top:6px}

.tk-template-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}
html[data-studio-theme] .tk-start .tk-template{display:flex;flex-direction:column;gap:10px;padding:0;border:0;background:none;color:var(--studio-text);text-align:left;cursor:pointer;border-radius:20px}
.tk-template .tk-media{aspect-ratio:4/5;border:1px solid var(--studio-line)}
.tk-template-label{font-size:13px;font-weight:600;color:var(--studio-muted)}

.tk-details{margin-top:8px}
.tk-details>summary{cursor:pointer;color:var(--studio-muted);font-size:12px;padding:10px 0;list-style:none}
.tk-details>summary::-webkit-details-marker{display:none}
.tk-details>summary::before{content:"+ "}
.tk-details[open]>summary::before{content:"– "}
.tk-start :is(button):focus-visible{outline:2px solid var(--studio-focus);outline-offset:3px}

@media(max-width:1100px){.tk-template-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:900px){
  .tk-hero{min-height:560px;align-items:flex-end}
  .tk-hero-media{inset:-60px -40px 40% -40px}
  .tk-hero::before{background:linear-gradient(0deg,#0b0b0c 0%,#0b0b0cf0 45%,#0b0b0c80 70%,#0b0b0c33 100%)}
  .tk-tools{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tk-credits span{display:none}
}
@media(max-width:600px){.tk-tools{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 -16px;padding:0 16px 4px;scrollbar-width:none}.tk-tools::-webkit-scrollbar{display:none}html[data-studio-theme] .tk-start .tk-tool{flex:0 0 72%;scroll-snap-align:start}.tk-template-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tk-chip-missing{display:none}.tk-start{--tk-r:22px}}

/* ---------- Motion ---------- */
/* Feedback: pressable pieces answer the press; frequent page → fast and subtle. */
.tk-cta,.tk-start .tk-ghost,.tk-brandchip,.tk-tool,.tk-template{transition:transform 160ms var(--tk-ease-out),background-color 180ms ease,border-color 180ms ease,color 180ms ease}
.tk-cta:active,.tk-start .tk-ghost:active,.tk-brandchip:active,.tk-tool:active,.tk-template:active{transform:scale(.97)}
.tk-media img{transition:transform 300ms var(--tk-ease-out)}
.tk-arrow,.tk-link span{display:inline-block;transition:transform 200ms var(--tk-ease-out)}
@media(hover:hover) and (pointer:fine){
  .tk-cta:hover .tk-arrow,.tk-start .tk-link:hover span,.tk-brandchip:hover .tk-arrow{transform:translateX(3px)}
  html[data-studio-theme] .tk-start .tk-ghost:hover{background:#ffffff24}
  html[data-studio-theme] .tk-start .tk-brandchip:hover{border-color:var(--studio-line-strong)}
  .tk-tool:hover .tk-media img,.tk-template:hover .tk-media img{transform:scale(1.04)}
  .tk-template:hover .tk-template-label{color:var(--studio-text)}
}

/* Hero: the gallery drifts slowly – a brand moment, not information. Paused off-screen by the browser, stopped for reduced motion. */
@keyframes tk-drift{to{transform:translateY(-50%)}}
@media(prefers-reduced-motion:no-preference){
  .tk-col{animation:tk-drift 70s linear infinite;animation-delay:calc(var(--c) * -14s)}
  .tk-col:nth-child(2){animation-direction:reverse}
  @media(hover:hover) and (pointer:fine){.tk-hero:hover .tk-col{animation-play-state:paused}}
}

/* State indication: a calm pulse while the website is being read. */
.tk-live::after{content:"";position:absolute;inset:0;border-radius:50%;background:var(--tk-accent);animation:tk-pulse 1.6s var(--tk-ease-out) infinite}
@keyframes tk-pulse{from{transform:scale(1);opacity:.55}to{transform:scale(2.6);opacity:0}}

/* Entrance: first Start per page load only. One choreography, short stagger, transform + opacity. */
@keyframes tk-rise{from{opacity:0;transform:translateY(12px)}}
@keyframes tk-word{from{opacity:0;transform:translateY(.32em);filter:blur(4px)}}
@keyframes tk-fade{from{opacity:0}}
@keyframes tk-zoom{from{opacity:0;transform:scale(1.06)}}
@keyframes tk-ring-in{from{stroke-dashoffset:69.12}}
@media(prefers-reduced-motion:no-preference){
  .tk-enter .tk-hero-media{animation:tk-zoom 1100ms var(--tk-ease-out) both}
  .tk-enter .tk-kicker{animation:tk-rise 420ms var(--tk-ease-out) 80ms both}
  .tk-enter .tk-word{animation:tk-word 600ms var(--tk-ease-out) both;animation-delay:calc(120ms + var(--i) * 70ms)}
  .tk-enter .tk-hero-copy>p{animation:tk-rise 500ms var(--tk-ease-out) 380ms both}
  .tk-enter .tk-start-actions{animation:tk-rise 500ms var(--tk-ease-out) 450ms both}
  .tk-enter .tk-brandbar{animation:tk-rise 460ms var(--tk-ease-out) 520ms both}
  .tk-enter .tk-ring{animation:tk-ring-in 900ms var(--tk-ease-in-out) 600ms both}
  .tk-enter .tk-tool{animation:tk-rise 500ms var(--tk-ease-out) both;animation-delay:calc(560ms + var(--i) * 60ms)}
  .tk-enter .tk-template{animation:tk-rise 460ms var(--tk-ease-out) both;animation-delay:calc(700ms + var(--i) * 30ms)}
}
@media(prefers-reduced-motion:reduce){
  .tk-enter :is(.tk-hero,.tk-brandbar,.tk-block){animation:tk-fade 240ms ease both}
  .tk-live::after{animation:none}
  .tk-cta:active,.tk-start .tk-ghost:active,.tk-brandchip:active,.tk-tool:active,.tk-template:active{transform:none}
}

/* ---------- Frame: one slim top bar instead of a sidebar (desktop); the rail stays as the mobile drawer. ---------- */
.tk-topnav,.tk-brandpill,.tk-topmore{display:none}
.tk-account{display:block;position:relative;flex:none}
html[data-studio-theme] .shell .topbar #breadcrumb{display:none}
.topbar .logo{display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:var(--studio-text);flex:none;margin-right:auto}
.topbar .logo img{width:22px;height:22px}
.topbar .logo span{font-size:17px;line-height:1}
.topbar .logo small{display:none}
@media(min-width:901px){.topbar .logo{margin-right:0}}
@media(max-width:520px){.topbar [data-tk-create]{font-size:0;gap:0;padding-inline:12px}.topbar [data-tk-create] .icon{width:18px;height:18px}}
@media(min-width:901px){
  html[data-studio-theme] .shell .rail{display:none}
  html[data-studio-theme] .shell .main{margin-left:0}
  html[data-studio-theme] .shell .topbar{padding:0 clamp(18px,2.4vw,36px);gap:18px;background:color-mix(in srgb,var(--studio-bg) 80%,transparent);backdrop-filter:blur(20px) saturate(1.4);-webkit-backdrop-filter:blur(20px) saturate(1.4);border-bottom:1px solid var(--studio-line)}
  .tk-topnav{display:flex;align-items:center;gap:2px;position:relative;flex:1;min-width:0;margin-left:10px}
  .tk-topmore{display:block;position:relative}
  .tk-brandpill{display:inline-flex}
}
.tk-toplink,.tk-topmore>summary{display:inline-flex;align-items:center;gap:7px;height:40px;padding:0 14px;border-radius:999px;color:var(--studio-muted);font-size:14px;font-weight:600;text-decoration:none;white-space:nowrap;cursor:pointer;list-style:none;transition:color 160ms ease,background-color 160ms ease}
.tk-topmore>summary::-webkit-details-marker,.tk-account>summary::-webkit-details-marker{display:none}
.tk-toplink.active,.tk-topmore.active>summary,.tk-topmore[open]>summary{color:var(--studio-text)}
.tk-indicator{position:absolute;left:0;bottom:-13px;width:1px;height:2px;border-radius:2px;background:var(--tk-accent);transform-origin:left center;opacity:0;pointer-events:none}
.tk-chev{width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg)}
.tk-menu>summary:focus-visible,.tk-toplink:focus-visible{outline:2px solid var(--studio-focus);outline-offset:2px}

.tk-brandpill{align-items:center;gap:8px;height:38px;padding:0 6px 0 4px;border:1px solid var(--studio-line);border-radius:999px;background:var(--studio-surface);position:relative;cursor:pointer}
.tk-brand-dot{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--tk-accent-soft);color:var(--tk-accent);font-size:13px;font-weight:800}
html[data-studio-theme] .shell .tk-brandpill select{appearance:none;-webkit-appearance:none;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23918f8b' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 8px center;border:0;color:var(--studio-text);font-size:13px;font-weight:600;padding:0 26px 0 0;min-height:34px;max-width:170px;cursor:pointer}

.tk-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--studio-raised);border:1px solid var(--studio-line);color:var(--studio-text);font-size:14px;font-weight:700;cursor:pointer;list-style:none}
.tk-pop{position:absolute;top:calc(100% + 12px);left:0;z-index:60;min-width:230px;display:grid;gap:2px;padding:8px;border-radius:18px;background:var(--studio-surface);border:1px solid var(--studio-line);box-shadow:0 24px 60px #0000004d,0 2px 8px #0000002e;transform-origin:top left}
.tk-pop-right{left:auto;right:0;transform-origin:top right}
.tk-pop-head{padding:8px 12px 10px;color:var(--studio-subtle);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-bottom:1px solid var(--studio-line);margin-bottom:4px}
html[data-studio-theme] .shell .tk-pop :is(a,button){display:flex;align-items:center;gap:8px;width:100%;min-height:40px;padding:0 12px;border:0;border-radius:11px;background:transparent;color:var(--studio-text);font-size:14px;font-weight:500;text-align:left;text-decoration:none;cursor:pointer}
html[data-studio-theme] .shell .tk-pop :is(a,button).active{background:var(--studio-raised)}
.tk-pop kbd{margin-left:auto;font:11px/1 inherit;color:var(--studio-subtle);border:1px solid var(--studio-line);border-radius:6px;padding:4px 6px}
.tk-pop .tk-soon{margin-left:auto}

/* Frame motion. Navigation is used tens of times a day: fast, transform/opacity only. */
.tk-indicator{transition:transform 240ms var(--tk-ease-out),opacity 150ms ease}
.tk-chev{transition:transform 200ms var(--tk-ease-out)}
.tk-menu[open] .tk-chev{transform:translateY(1px) rotate(225deg)}
.tk-avatar,.tk-brandpill{transition:transform 160ms var(--tk-ease-out),border-color 160ms ease}
.tk-avatar:active,.tk-brandpill:active{transform:scale(.97)}
@keyframes tk-pop{from{opacity:0;transform:scale(.96) translateY(-4px)}}
.tk-menu[open] .tk-pop{animation:tk-pop 170ms var(--tk-ease-out)}
@media(hover:hover) and (pointer:fine){
  .tk-toplink:hover,.tk-topmore>summary:hover{color:var(--studio-text);background:var(--studio-raised)}
  html[data-studio-theme] .shell .tk-pop :is(a,button):hover{background:var(--studio-raised)}
  .tk-avatar:hover,.tk-brandpill:hover{border-color:var(--studio-line-strong)}
}
@media(prefers-reduced-motion:reduce){
  .tk-indicator{transition:opacity 150ms ease}
  .tk-menu[open] .tk-pop{animation:tk-fade 150ms ease}
  .tk-avatar:active,.tk-brandpill:active{transform:none}
}

/* ---------- Tool art: each card shows what the tool does. ---------- */
.tk-tool .tk-media{background:radial-gradient(120% 80% at 50% 0%,#2a1610 0%,#121213 55%,#0c0c0d 100%)}
.tk-art{position:absolute;inset:0 0 34%;display:block}
.tk-art img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.tk-art em{position:absolute;left:8px;bottom:8px;font-style:normal;font-size:10px;font-weight:700;letter-spacing:.04em;padding:3px 7px;border-radius:999px;background:#000b;color:#fff;backdrop-filter:blur(6px)}

/* Static Ad Studio: product + template → ad, in every format. */
.tk-art-static{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;align-items:center;justify-items:center;gap:6px 10px;padding:9% 8% 0}
.tk-flow-in{grid-column:1;grid-row:1/3;display:grid;justify-items:center;gap:4px;width:100%}
.tk-in,.tk-out{position:relative;display:block;aspect-ratio:4/5;border-radius:10px;overflow:hidden;border:1px solid #ffffff2a;box-shadow:0 12px 26px #0009}
.tk-in{width:58%}
.tk-out{grid-column:2;grid-row:1;width:clamp(92px,11vw,150px);border-color:var(--tk-accent-line)}
.tk-out em{background:var(--tk-accent)}
.tk-op{color:var(--tk-accent);font-size:16px;font-weight:800;line-height:1}
.tk-art-static{grid-template-columns:42% 1fr}
.tk-art-static::before{content:"→";position:absolute;left:44%;top:40%;color:var(--tk-accent);font-size:20px;font-weight:800}
.tk-formats{grid-column:2;grid-row:2;display:flex;gap:4px}
.tk-formats span{font-size:9px;font-weight:700;color:#fff;padding:3px 6px;border-radius:999px;border:1px solid #ffffff2e;background:#ffffff10}

/* Ad Clone: reference (foreign, desaturated) → your brand version. */
.tk-art-clone{display:flex;align-items:center;justify-content:center;gap:6%;padding:0 8%}
.tk-ref,.tk-yours{position:relative;width:40%;aspect-ratio:4/5;border-radius:12px;overflow:hidden;border:1px solid #ffffff2a;box-shadow:0 14px 30px #0009}
.tk-ref img{filter:grayscale(1) contrast(.9) brightness(.7)}
.tk-yours{width:46%;border-color:var(--tk-accent-line)}
.tk-yours em{background:var(--tk-accent)}
.tk-clone-arrow{color:var(--tk-accent);font-size:20px;font-weight:800}
.tk-scan{position:absolute;left:0;right:0;top:0;height:30%;background:linear-gradient(180deg,transparent,#ff4a1c40 80%,#ff4a1c);border-bottom:1px solid var(--tk-accent);transform:translateY(-100%);opacity:0}

/* Brand-Kit: the knowledge TOKAI keeps – name, colours, type, voice. */
.tk-art-kit{padding:12% 10% 0;display:grid;align-content:start;gap:12px}
.tk-kit-name{font-family:var(--tk-display);font-weight:800;font-stretch:125%;text-transform:uppercase;font-size:22px;line-height:1;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tk-kit-row{display:flex;gap:8px}
.tk-kit-row i{width:34px;height:34px;border-radius:50%;background:var(--s);border:1px solid #ffffff2e}
.tk-kit-type{display:flex;align-items:center;gap:12px;color:#cfccc6;font-size:11px;line-height:1.3}
.tk-kit-type b{font-family:var(--tk-display);font-stretch:125%;font-size:34px;line-height:1;color:#fff}
.tk-kit-tags{display:flex;flex-wrap:wrap;gap:5px}
.tk-kit-tags span{font-size:10px;font-weight:700;color:#e9e6e1;padding:4px 8px;border-radius:999px;border:1px solid #ffffff2e;background:#ffffff0d}

/* Ad Spy: a brand's ads, one saved as reference. */
.tk-art-spy{padding:9% 9% 0;overflow:hidden}
.tk-spy-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.tk-spy-cell{position:relative;aspect-ratio:4/5;border-radius:8px;overflow:hidden;border:1px solid #ffffff22;opacity:.62}
.tk-spy-cell.is-saved{opacity:1;border-color:var(--tk-accent);box-shadow:0 0 0 2px var(--tk-accent-soft)}
.tk-spy-cell em{left:50%;transform:translateX(-50%);bottom:4px;font-size:8px;background:var(--tk-accent);white-space:nowrap}
.tk-spy-sweep{position:absolute;top:0;bottom:-40%;left:0;width:40%;background:linear-gradient(90deg,transparent,#ffffff14,transparent);transform:translateX(-120%);pointer-events:none}

/* Tool art motion: only on hover with a mouse – each card acts out its job once. */
.tk-in,.tk-out,.tk-yours,.tk-kit-row i,.tk-spy-cell{transition:transform 300ms var(--tk-ease-out),opacity 200ms ease}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  .tk-tool:hover .tk-media img{transform:none}
  .tk-tool:hover .tk-in:first-child{transform:translateX(4px) rotate(-2deg)}
  .tk-tool:hover .tk-out{transform:translateY(-4px) scale(1.04)}
  .tk-tool:hover .tk-scan{animation:tk-scan 900ms var(--tk-ease-in-out) both}
  .tk-tool:hover .tk-yours{transform:translateY(-4px) scale(1.03)}
  .tk-tool:hover .tk-kit-row i{transform:translateY(-4px)}
  .tk-tool:hover .tk-kit-row i:nth-child(2){transition-delay:40ms}
  .tk-tool:hover .tk-kit-row i:nth-child(3){transition-delay:80ms}
  .tk-tool:hover .tk-kit-row i:nth-child(4){transition-delay:110ms}
  .tk-tool:hover .tk-spy-sweep{animation:tk-sweep 1100ms var(--tk-ease-in-out) both}
  .tk-tool:hover .tk-spy-cell.is-saved{transform:scale(1.06)}
}
@keyframes tk-scan{0%{transform:translateY(-100%);opacity:1}100%{transform:translateY(340%);opacity:1}}
@keyframes tk-sweep{to{transform:translateX(320%)}}
.tk-kit-row{align-items:center}
.tk-kit-row i.is-empty{background:none;border:1.5px dashed #ffffff40}
.tk-kit-row small{font-size:10px;color:#a9a6a0;margin-left:2px}

/* ---------- Module pages (Erstellen, Marke, Referenzen, Galerie): same premium language as Start. ---------- */
/* Titles: wide display type; kickers in the accent colour. */
html[data-studio-theme] .shell :is(.page-heading h1,.adspy-heading h1,.gallery-header h1){font-family:var(--tk-display);font-weight:800;font-stretch:125%;text-transform:uppercase;letter-spacing:-.01em;line-height:1.02;font-size:clamp(30px,3.6vw,52px);text-wrap:balance}
html[data-studio-theme] .shell .static-hub-header h1 span{color:var(--tk-accent)}
html[data-studio-theme] .shell :is(.page-heading .eyebrow,.page-kicker,.gallery-kicker,.bh-kicker){color:var(--tk-accent);letter-spacing:.16em;font-weight:700}
html[data-studio-theme] .shell :is(.page-heading,.adspy-heading,.gallery-header){margin-bottom:28px}

/* Header actions: pills; the main one in the accent colour. */
html[data-studio-theme] .shell :is(.page-heading,.adspy-heading,.gallery-header) button{border-radius:999px;min-height:44px;padding-inline:20px;font-weight:600}
html[data-studio-theme] .shell :is(.adspy-primary,.page-heading button.primary){background:var(--tk-accent);border-color:var(--tk-accent);color:#fff}
@media(hover:hover) and (pointer:fine){html[data-studio-theme] .shell :is(.adspy-primary,.page-heading button.primary):hover{background:var(--tk-accent-hover);border-color:var(--tk-accent-hover)}}

/* Tabs: active tab carries the accent underline. */
html[data-studio-theme] .shell .adspy-tabs button[aria-selected=true]{border-bottom-color:var(--tk-accent);color:var(--studio-text)}
html[data-studio-theme] .shell .page [role=tablist] [role=tab]{transition:color 160ms ease,border-color 160ms ease,background-color 160ms ease}

/* Panels and cards: softer, larger radius. */
html[data-studio-theme] .shell .page :is(.section-card,.wo-panel,.empty){border-radius:22px}
html[data-studio-theme] .shell .gallery-grid>*{border-radius:18px}
@media(hover:hover) and (pointer:fine){
  html[data-studio-theme] .shell :is(.gallery-grid,.adspy-brand-grid,.adspy-ad-grid,.bh-strategy-grid)>*{transition:border-color 180ms ease,translate 220ms var(--tk-ease-out)}
  html[data-studio-theme] .shell :is(.gallery-grid,.adspy-brand-grid,.adspy-ad-grid,.bh-strategy-grid)>*:hover{translate:0 -3px;border-color:var(--studio-line-strong)}
}

/* Fields: calm surfaces, accent focus. */
html[data-studio-theme] .shell .page :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){border-radius:14px;transition:border-color 160ms ease,box-shadow 160ms ease}
html[data-studio-theme] .shell .page :is(input,select,textarea):focus-visible{outline:none;border-color:var(--tk-accent);box-shadow:0 0 0 3px var(--tk-accent-soft)}

/* Motion: header and tab buttons answer the press (uses `scale`, so existing transforms stay intact). */
html[data-studio-theme] .shell :is(.page-heading,.adspy-heading,.gallery-header,.adspy-tabs,.bh-intro,.wo-actions) button:not(:disabled){transition-property:scale,background-color,border-color,color,box-shadow,opacity;transition-duration:140ms;transition-timing-function:var(--tk-ease-out)}
html[data-studio-theme] .shell :is(.page-heading,.adspy-heading,.gallery-header,.adspy-tabs,.bh-intro,.wo-actions) button:not(:disabled):active{scale:.97}

/* Motion: page change – content rises in once (the Start page has its own choreography). */
@keyframes tk-page-in{from{opacity:0;translate:0 8px}}
@media(prefers-reduced-motion:no-preference){
  .tk-page-enter>:not(.tk-start):not(.tk-details){animation:tk-page-in 320ms var(--tk-ease-out) both}
  .tk-page-enter>:nth-child(2){animation-delay:40ms}
  .tk-page-enter>:nth-child(3){animation-delay:80ms}
  .tk-page-enter>:nth-child(n+4){animation-delay:110ms}
  .tk-page-enter :is(.gallery-grid,.adspy-brand-grid,.adspy-ad-grid,.bh-strategy-grid)>*{animation:tk-page-in 360ms var(--tk-ease-out) both}
  .tk-page-enter :is(.gallery-grid,.adspy-brand-grid,.adspy-ad-grid,.bh-strategy-grid)>:nth-child(2){animation-delay:40ms}
  .tk-page-enter :is(.gallery-grid,.adspy-brand-grid,.adspy-ad-grid,.bh-strategy-grid)>:nth-child(3){animation-delay:70ms}
  .tk-page-enter :is(.gallery-grid,.adspy-brand-grid,.adspy-ad-grid,.bh-strategy-grid)>:nth-child(n+4){animation-delay:100ms}
}
@media(prefers-reduced-motion:reduce){
  .tk-page-enter>*{animation:tk-fade 200ms ease both}
  html[data-studio-theme] .shell :is(.page-heading,.adspy-heading,.gallery-header,.adspy-tabs,.bh-intro,.wo-actions) button:not(:disabled):active{scale:none}
}

/* ---------- Erstellen (Static Ad Studio hub): TOKAI accent instead of lavender, premium surfaces, motion. ---------- */
html[data-studio-theme] body :is(.static-studio-root.tokai-exact-hub,.static-studio-dialog.tokai-exact-dialog){--accent:var(--tk-accent);--accent-soft:var(--tk-accent-soft);--border-active:var(--tk-accent-line);--bg:var(--studio-bg);--surface:var(--studio-surface);--soft:var(--studio-raised);--line:var(--studio-line);--text:var(--studio-text);--muted:var(--studio-muted)}
html[data-studio-theme] body .static-studio-root.tokai-exact-hub .page-heading h1 span{color:var(--tk-accent)}
html[data-studio-theme] body .static-studio-root.tokai-exact-hub .page-heading .eyebrow{color:var(--tk-accent)}

/* The one action that matters: big orange pill. */
html[data-studio-theme] body :is(.static-studio-root.tokai-exact-hub,.static-studio-dialog.tokai-exact-dialog) .create-button{position:relative;overflow:hidden;min-height:54px;border-radius:999px;background:var(--tk-accent);border:1px solid var(--tk-accent);color:#fff;font-size:15px;font-weight:650;box-shadow:0 12px 30px #ff4a1c33;transition:scale 140ms var(--tk-ease-out),background-color 180ms ease,box-shadow 180ms ease}
html[data-studio-theme] body :is(.static-studio-root.tokai-exact-hub,.static-studio-dialog.tokai-exact-dialog) .create-button:disabled{background:var(--studio-raised);border-color:var(--studio-line);color:var(--studio-subtle);box-shadow:none}
html[data-studio-theme] body :is(.static-studio-root.tokai-exact-hub,.static-studio-dialog.tokai-exact-dialog) .create-button:not(:disabled):active{scale:.97}
html[data-studio-theme] body :is(.static-studio-root.tokai-exact-hub,.static-studio-dialog.tokai-exact-dialog) .create-button::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 35%,#ffffff40 50%,transparent 65%);translate:-110% 0;pointer-events:none}

/* Surfaces: softer panels, a warm stage behind the preview. */
html[data-studio-theme] body .static-studio-root.tokai-exact-hub :is(.editor,.preview-panel){border-radius:24px}
html[data-studio-theme] body .static-studio-root.tokai-exact-hub .canvas-area{border-radius:20px;background:radial-gradient(70% 60% at 50% 30%,var(--tk-accent-soft),transparent 70%),var(--studio-inset)}
html[data-studio-theme] body .static-studio-root.tokai-exact-hub .hub-artwork{box-shadow:0 30px 70px #00000059}
html[data-studio-theme] body :is(.static-studio-root.tokai-exact-hub,.static-studio-dialog.tokai-exact-dialog) :is(.selection-card,.format-grid button,.segmented button){border-radius:14px;transition:border-color 160ms ease,background-color 160ms ease,color 160ms ease,scale 140ms var(--tk-ease-out)}
html[data-studio-theme] body :is(.static-studio-root.tokai-exact-hub,.static-studio-dialog.tokai-exact-dialog) :is(.selection-card,.format-grid button,.segmented button):active{scale:.98}
html[data-studio-theme] body :is(.static-studio-root.tokai-exact-hub,.static-studio-dialog.tokai-exact-dialog) .tiny-tag{border-radius:999px;padding:3px 8px;font-weight:700}

/* Motion: a fresh preview settles in (state indication); hover gated; reduced motion = fade only. */
@keyframes tk-art-in{from{opacity:.35;scale:.985}}
@keyframes tk-shine{to{translate:110% 0}}
@media(prefers-reduced-motion:no-preference){
  html[data-studio-theme] body .static-studio-root.tokai-exact-hub .hub-artwork{animation:tk-art-in 260ms var(--tk-ease-out)}
  .tk-page-enter.static-studio-root :is(.editor,.preview-panel){animation:tk-page-in 360ms var(--tk-ease-out) both}
  .tk-page-enter.static-studio-root .preview-panel{animation-delay:60ms}
}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  html[data-studio-theme] body :is(.static-studio-root.tokai-exact-hub,.static-studio-dialog.tokai-exact-dialog) .create-button:not(:disabled):hover{background:var(--tk-accent-hover);box-shadow:0 16px 36px #ff4a1c4d}
  html[data-studio-theme] body :is(.static-studio-root.tokai-exact-hub,.static-studio-dialog.tokai-exact-dialog) .create-button:not(:disabled):hover::after{animation:tk-shine 800ms var(--tk-ease-in-out)}
  html[data-studio-theme] body :is(.static-studio-root.tokai-exact-hub,.static-studio-dialog.tokai-exact-dialog) .selection-card:hover{border-color:var(--studio-line-strong)}
}
@media(prefers-reduced-motion:reduce){html[data-studio-theme] body :is(.static-studio-root.tokai-exact-hub,.static-studio-dialog.tokai-exact-dialog) :is(.create-button,.selection-card,.format-grid button,.segmented button):active{scale:none}}

/* Erstellen: template & reference picker. */
html[data-studio-theme] body .static-studio-dialog.tokai-exact-dialog[open]{border-radius:28px}
html[data-studio-theme] body .static-studio-dialog.tokai-exact-dialog .hub-picker-card{border-radius:18px!important;overflow:hidden;transition:border-color 160ms ease,translate 220ms var(--tk-ease-out),scale 140ms var(--tk-ease-out)}
html[data-studio-theme] body .static-studio-dialog.tokai-exact-dialog .hub-picker-card img{transition:transform 300ms var(--tk-ease-out)}
html[data-studio-theme] body .static-studio-dialog.tokai-exact-dialog .hub-picker-card:active{scale:.98}
@keyframes tk-modal-in{from{opacity:0;scale:.96}}
@media(prefers-reduced-motion:no-preference){html[data-studio-theme] body .static-studio-dialog.tokai-exact-dialog[open]{animation:tk-modal-in 220ms var(--tk-ease-out)}}
@media(prefers-reduced-motion:reduce){html[data-studio-theme] body .static-studio-dialog.tokai-exact-dialog[open]{animation:tk-fade 160ms ease}}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  html[data-studio-theme] body .static-studio-dialog.tokai-exact-dialog .hub-picker-card:hover{translate:0 -3px;border-color:var(--tk-accent-line)}
  html[data-studio-theme] body .static-studio-dialog.tokai-exact-dialog .hub-picker-card:hover img{transform:scale(1.04)}
}

/* ---------- Login: big visual like Start, form on a calm card. ---------- */
html[data-studio-theme] .auth-screen{background:radial-gradient(900px 600px at 20% 10%,#ff4a1c1f,transparent 60%),#070707;padding:28px 18px}
html[data-studio-theme] .auth-layout{width:min(1120px,100%);min-height:min(680px,calc(100vh - 56px));grid-template-columns:1.15fr 1fr;border:1px solid #ffffff1f;border-radius:30px;box-shadow:0 40px 120px #000000a6}
html[data-studio-theme] .auth-showcase{position:relative;isolation:isolate;overflow:hidden;background:#0b0b0c;border-right:1px solid #ffffff14;color:#fff;justify-content:flex-start}
html[data-studio-theme] .auth-showcase .logo{color:#fff;text-decoration:none}
html[data-studio-theme] .auth-showcase .logo small{color:#ffffff99}
html[data-studio-theme] .auth-showcase h2{margin:auto 0 14px;color:#fff;font-size:clamp(34px,4vw,58px)}
html[data-studio-theme] .auth-showcase h2 span{color:var(--tk-accent)}
html[data-studio-theme] .auth-showcase>p{color:#d8d6d2;max-width:36ch;font-size:15px;line-height:1.55;margin:0 0 22px}
html[data-studio-theme] .auth-showcase footer{color:#ffffff73;font-size:10px;letter-spacing:.14em}
.tk-auth-media{position:absolute;inset:-60px -40px 30% 18%;display:grid;grid-template-columns:repeat(3,1fr);gap:12px;transform:rotate(-7deg);z-index:-2;opacity:.9}
.tk-auth-media .tk-col figure{margin:0 0 12px}
.tk-auth-media img{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;border-radius:14px}
html[data-studio-theme] .auth-showcase::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#0b0b0c 0%,#0b0b0cf2 38%,#0b0b0c80 62%,#0b0b0c26 100%)}
html[data-studio-theme] .auth-card{background:var(--studio-surface);padding:clamp(32px,4vw,56px)}
html[data-studio-theme] .auth-card .eyebrow{color:var(--tk-accent);letter-spacing:.16em;font-weight:700}
html[data-studio-theme] .auth-card h1{font-family:var(--tk-display);font-weight:800;font-stretch:125%;text-transform:uppercase;font-size:clamp(26px,2.6vw,34px);line-height:1.05;letter-spacing:-.01em}
html[data-studio-theme] .auth-tabs{border-radius:999px;padding:4px}
html[data-studio-theme] .auth-tabs button{border-radius:999px;min-height:38px}
html[data-studio-theme] .auth-tabs button[aria-selected=true]{background:var(--studio-raised);color:var(--studio-text)}
html[data-studio-theme] .auth-form :is(input:not([type=checkbox])){border-radius:14px;min-height:46px;transition:border-color 160ms ease,box-shadow 160ms ease}
html[data-studio-theme] .auth-form input:focus-visible{outline:none;border-color:var(--tk-accent);box-shadow:0 0 0 3px var(--tk-accent-soft)}
html[data-studio-theme] .auth-screen button.primary{min-height:50px;border-radius:999px;background:var(--tk-accent);border:1px solid var(--tk-accent);color:#fff;font-weight:650;box-shadow:0 12px 30px #ff4a1c33;transition:scale 140ms var(--tk-ease-out),background-color 180ms ease}
html[data-studio-theme] .auth-screen :is(button.primary,.google-signin):active{scale:.97}
html[data-studio-theme] .auth-screen .google-signin{border-radius:999px;min-height:50px;transition:scale 140ms var(--tk-ease-out)}
@media(hover:hover) and (pointer:fine){html[data-studio-theme] .auth-screen button.primary:hover{background:var(--tk-accent-hover)}}
@media(prefers-reduced-motion:no-preference){
  .tk-auth-media .tk-col{animation:tk-drift 70s linear infinite;animation-delay:calc(var(--c) * -14s)}
  .tk-auth-media .tk-col:nth-child(2){animation-direction:reverse}
  html[data-studio-theme] .auth-layout{animation:tk-rise 520ms var(--tk-ease-out) both}
  html[data-studio-theme] .auth-showcase :is(h2,p){animation:tk-rise 560ms var(--tk-ease-out) 120ms both}
}
@media(max-width:860px){
  html[data-studio-theme] .auth-layout{grid-template-columns:1fr;min-height:0}
  html[data-studio-theme] .auth-showcase{min-height:300px;border-right:0;border-bottom:1px solid #ffffff14}
  .tk-auth-media{inset:-80px -40px 20% -20px}
}

/* ---------- Credits & Abo: balance as the hero number, offers as premium cards. ---------- */
html[data-studio-theme] .shell .billing-balance{border-radius:26px;background:radial-gradient(80% 120% at 0% 0%,var(--tk-accent-soft),transparent 60%),var(--studio-surface)}
html[data-studio-theme] .shell .billing-total strong{font-family:var(--tk-display);font-weight:800;font-stretch:125%;font-size:clamp(44px,5vw,72px);line-height:1;letter-spacing:-.02em;color:var(--studio-text)}
html[data-studio-theme] .shell .billing-total strong small{font-family:inherit;font-size:.28em;color:var(--tk-accent);letter-spacing:.06em}
html[data-studio-theme] .shell .billing-eyebrow{color:var(--tk-accent);letter-spacing:.16em;font-weight:700}
html[data-studio-theme] .shell :is(.billing-plan-grid,.billing-topup-grid)>*{border-radius:22px}
html[data-studio-theme] .shell .billing-price{font-family:var(--tk-display);font-weight:800;font-stretch:125%;letter-spacing:-.02em}
html[data-studio-theme] .shell :is(.billing-plan-grid,.billing-topup-grid) button{border-radius:999px;min-height:46px;font-weight:650}
@media(hover:hover) and (pointer:fine){
  html[data-studio-theme] .shell :is(.billing-plan-grid,.billing-topup-grid)>*{transition:translate 220ms var(--tk-ease-out),border-color 180ms ease}
  html[data-studio-theme] .shell :is(.billing-plan-grid,.billing-topup-grid)>*:hover{translate:0 -3px;border-color:var(--tk-accent-line)}
}
@media(prefers-reduced-motion:no-preference){
  .tk-page-enter :is(.billing-plan-grid,.billing-topup-grid)>*{animation:tk-page-in 360ms var(--tk-ease-out) both}
  .tk-page-enter :is(.billing-plan-grid,.billing-topup-grid)>:nth-child(2){animation-delay:50ms}
  .tk-page-enter :is(.billing-plan-grid,.billing-topup-grid)>:nth-child(n+3){animation-delay:90ms}
}

/* ---------- Onboarding (Einrichtung): same accents. ---------- */
html[data-studio-theme] .shell :is(.welcome-intro .eyebrow,.welcome-kicker){color:var(--tk-accent);letter-spacing:.16em;font-weight:700}
html[data-studio-theme] .shell .welcome-progress li{transition:border-color 240ms var(--tk-ease-out)}
html[data-studio-theme] .shell .welcome-progress li.is-current{border-color:var(--tk-accent)}
html[data-studio-theme] .shell .welcome-intro h1{font-family:var(--tk-display);font-weight:800;font-stretch:125%;text-transform:uppercase;letter-spacing:-.01em;line-height:1.04}
html[data-studio-theme] .shell .welcome-actions button{border-radius:999px;min-height:46px;padding-inline:22px;transition:scale 140ms var(--tk-ease-out),background-color 180ms ease,border-color 180ms ease}
html[data-studio-theme] .shell .welcome-actions button:not(:disabled):active{scale:.97}
html[data-studio-theme] .shell .welcome-form :is(input,select,textarea):focus-visible{outline:none;border-color:var(--tk-accent);box-shadow:0 0 0 3px var(--tk-accent-soft)}

/* Seitenwechsel: kein „… wird geladen"-Text. Der Platzhalter bleibt für Screenreader lesbar und zeigt
   sich erst nach 0,6 s als schmale Linie, damit schnelle Wechsel ohne Zwischenbild auskommen. */
#main-content :is(.inline-loading,.foundation-loading,.wb-loading,.welcome-loading,p[role=status]:only-child){font-size:0!important;line-height:0;color:transparent;padding:0;border:0;width:120px;height:2px;margin:48px auto;border-radius:2px;background:currentColor;background:var(--studio-line,rgba(128,128,128,.35));opacity:0;animation:tk-wait 1.2s .6s ease-in-out infinite alternate}
@keyframes tk-wait{from{opacity:.25}to{opacity:1}}

/* Brand Studio: kein Öffnungstext, Glas-Kästen, Produktkarten mit Bild. */
#main-content .bh-skeleton{font-size:0!important;line-height:0;color:transparent;padding:0;border:0;min-height:0;width:120px;height:2px;margin:48px auto;border-radius:2px;background:var(--studio-line,rgba(128,128,128,.35));opacity:0;animation:tk-wait 1.2s .6s ease-in-out infinite alternate}
html[data-studio-theme] .shell .brand-home{position:relative;isolation:isolate}
html[data-studio-theme] .shell .brand-home::before{content:"";position:absolute;inset:-40px -60px auto;height:720px;z-index:-1;pointer-events:none;background:radial-gradient(520px 340px at 78% 12%,var(--tk-accent-soft),transparent 70%),radial-gradient(620px 420px at 12% 62%,color-mix(in srgb,var(--text) 7%,transparent),transparent 72%)}
html[data-studio-theme] .shell :is(.bh-strategy-card,.bh-identity,.bh-products,.bh-notes,.product-card){background:color-mix(in srgb,var(--text) 5%,transparent);-webkit-backdrop-filter:blur(22px) saturate(150%);backdrop-filter:blur(22px) saturate(150%);border:1px solid color-mix(in srgb,var(--text) 11%,transparent);box-shadow:inset 0 1px 0 color-mix(in srgb,var(--text) 14%,transparent),0 24px 48px -32px rgba(0,0,0,.55)}
html[data-studio-theme] .shell .bh-intro button.primary{min-height:46px;padding:0 22px;margin-top:6px;font-size:14px}
html[data-studio-theme] .shell .bh-empty-products button{padding:10px 18px;border:1px solid color-mix(in srgb,var(--text) 14%,transparent);border-radius:999px}
.product-card .product-thumb{display:grid;place-items:center;width:100%;aspect-ratio:4/3;object-fit:contain;border-radius:14px;background:color-mix(in srgb,var(--text) 6%,transparent);margin-bottom:14px}
.product-card span.product-thumb svg{width:26px;height:26px;opacity:.5}
.product-card p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.product-form .product-image-list{flex-wrap:nowrap;margin:0 0 6px}
.product-form .product-image-list>div{flex:0 0 132px;width:132px;height:132px;border-radius:14px}
.product-form .product-image-list img{border-radius:14px}

/* Erstellen: einheitliche, größere Schrift im Formular, vier Formate in einer Reihe, Glas-Flächen. */
html[data-studio-theme] .static-studio-root.tokai-exact-hub .editor :is(.field label,.field-label label,.toggle-row>label,.advanced-body label){font-size:13px;font-weight:600;line-height:1.35;letter-spacing:0}
html[data-studio-theme] .static-studio-root.tokai-exact-hub .editor :is(select,input:not([type=checkbox]),textarea){font-size:14px;font-weight:400}
html[data-studio-theme] .static-studio-root.tokai-exact-hub .editor .advanced-body label{display:block}
html[data-studio-theme] .static-studio-root.tokai-exact-hub .editor .advanced-body label :is(select,input,textarea){display:block;width:100%;margin-top:7px}
html[data-studio-theme] .static-studio-root.tokai-exact-hub .editor label:not(.switch)>span{font-size:12px;font-weight:400;color:var(--studio-muted);margin-left:6px}
html[data-studio-theme] .static-studio-root.tokai-exact-hub .editor .segmented button{font-size:13px;font-weight:500}
html[data-studio-theme] .static-studio-root.tokai-exact-hub .editor .hub-advanced summary{font-size:13px;font-weight:500}
html[data-studio-theme] .static-studio-root.tokai-exact-hub .editor .editor-head>span{font-size:14px}
html[data-studio-theme] .static-studio-root.tokai-exact-hub .editor .selection-card b{font-size:13px}
html[data-studio-theme] .static-studio-root.tokai-exact-hub .editor .selection-card small{font-size:11.5px}
html[data-studio-theme] .static-studio-root.tokai-exact-hub .editor .ap-choice b{font-size:14px}
html[data-studio-theme] .static-studio-root.tokai-exact-hub .editor .ap-choice span{font-size:12.5px}
html[data-studio-theme] .static-studio-root.tokai-exact-hub .editor .format-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
html[data-studio-theme] .static-studio-root.tokai-exact-hub .editor .format-grid button{flex-direction:column;gap:6px;min-height:68px;padding:9px 4px}
html[data-studio-theme] .static-studio-root.tokai-exact-hub .editor .format-grid button>span{font-size:12px;text-align:center}
html[data-studio-theme] .static-studio-root.tokai-exact-hub .editor .format-grid small{font-size:10.5px;margin-top:2px}
html[data-studio-theme] .static-studio-root.tokai-exact-hub .editor .ratio.wide{width:24px;height:14px}
html[data-studio-theme] .static-studio-root.tokai-exact-hub .editor .text-modes button{font-size:12px}
.ap-tiles .ap-tile img,html[data-studio-theme] .static-studio-root.tokai-exact-hub .ap-tiles .ap-tile .ap-tile-blank{aspect-ratio:var(--ap-ratio,4/5)}
html[data-studio-theme] .static-studio-root.tokai-exact-hub :is(.editor,.preview-panel){background:color-mix(in srgb,var(--text,#fff) 4.5%,transparent);-webkit-backdrop-filter:blur(22px) saturate(150%);backdrop-filter:blur(22px) saturate(150%);border:1px solid color-mix(in srgb,var(--text,#fff) 11%,transparent);box-shadow:inset 0 1px 0 color-mix(in srgb,var(--text,#fff) 14%,transparent),0 24px 48px -32px rgba(0,0,0,.55)}

/* Erstellen – Feinschliff (20.11.): Schalter, Auswahlfelder, Bild-Prompt. */
/* Schalter: Knopf sitzt in der Spur (Spur ist Bezugsrahmen), gleich weit Abstand links/rechts. */
html[data-studio-theme] body :is(.static-studio-root.tokai-exact-hub,.static-studio-dialog.tokai-exact-dialog) .switch>span{position:relative;width:36px;height:20px;margin:0;border-radius:999px;background:var(--studio-line-strong);transition:background-color 180ms ease}
html[data-studio-theme] body :is(.static-studio-root.tokai-exact-hub,.static-studio-dialog.tokai-exact-dialog) .switch>span:after{top:2px;left:2px;width:16px;height:16px;box-shadow:0 1px 3px #0000004d;transition:transform 200ms var(--tk-ease-out)}
html[data-studio-theme] body :is(.static-studio-root.tokai-exact-hub,.static-studio-dialog.tokai-exact-dialog) .switch input:checked+span{background:var(--tk-accent)}
html[data-studio-theme] body :is(.static-studio-root.tokai-exact-hub,.static-studio-dialog.tokai-exact-dialog) .switch input:checked+span:after{transform:translateX(16px)}
html[data-studio-theme] body :is(.static-studio-root.tokai-exact-hub,.static-studio-dialog.tokai-exact-dialog) .switch input:disabled+span{opacity:.45}
html[data-studio-theme] body :is(.static-studio-root.tokai-exact-hub,.static-studio-dialog.tokai-exact-dialog) .switch input:disabled{cursor:not-allowed}

/* Auswahlfelder: eigener Pfeil mit Abstand zum Rand statt des Browser-Pfeils an der Kante. */
html[data-studio-theme] .shell .page select:not([multiple]):not(.sr-only),html[data-studio-theme] body .static-studio-dialog.tokai-exact-dialog select:not([multiple]){appearance:none;-webkit-appearance:none;padding-right:40px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23918f8b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center;background-size:12px 8px}

/* Bild-Prompt (Betreiber): zwei gleich breite Optionen über die ganze Breite. */
html[data-studio-theme] body .static-studio-root.tokai-exact-hub [data-ap-prompt-source] .field-label{display:flex;align-items:center;justify-content:space-between;gap:10px}
html[data-studio-theme] body .static-studio-root.tokai-exact-hub [data-ap-prompt-source] .segmented{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:4px;margin-top:8px}
html[data-studio-theme] body .static-studio-root.tokai-exact-hub [data-ap-prompt-source] .segmented button{width:auto;min-width:0;min-height:38px;padding:0 12px}
html[data-studio-theme] body .static-studio-root.tokai-exact-hub [data-ap-prompt-source] .dialog-note{margin:8px 0 0;font-size:11.5px;line-height:1.45;color:var(--studio-subtle)}

/* ---------- Hauptnavigation mit Untermenüs (Hover wie Higgsfield). ---------- */
.tk-navitem{position:relative;display:flex;align-items:center}
.tk-toplink .tk-chev{margin-left:2px}
.tk-mega{position:absolute;top:100%;left:-8px;z-index:70;padding-top:14px;opacity:0;visibility:hidden;translate:0 -6px;pointer-events:none;transition:opacity 160ms ease,translate 200ms var(--tk-ease-out),visibility 0s linear 160ms}
.tk-mega-inner{display:flex;gap:6px;padding:10px;border-radius:20px;background:var(--studio-surface);border:1px solid var(--studio-line);box-shadow:0 24px 60px #0000004d,0 2px 8px #0000002e}
.tk-mega-col{display:grid;align-content:start;gap:2px;min-width:250px}
.tk-mega-label{padding:8px 12px 6px;font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--tk-accent)}
.tk-mega-item{display:flex;align-items:flex-start;gap:12px;padding:10px 12px;border-radius:14px;color:var(--studio-text);text-decoration:none;transition:background-color 140ms ease}
.tk-mega-icon{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:10px;background:var(--studio-raised);border:1px solid var(--studio-line);color:var(--studio-muted);transition:color 140ms ease,border-color 140ms ease}
.tk-mega-icon .icon{width:17px;height:17px}
.tk-mega-copy b{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:600}
.tk-mega-copy small{display:block;margin-top:2px;font-size:12px;line-height:1.35;color:var(--studio-muted)}
.tk-mega-copy .tk-soon{margin-left:2px}
.tk-mega-item.active{background:var(--studio-raised)}
.tk-mega-item.active .tk-mega-icon{color:var(--tk-accent);border-color:var(--tk-accent-line)}
.tk-mega-item:focus-visible{outline:2px solid var(--studio-focus);outline-offset:-2px}
/* Öffnen: Hover (Maus) oder Tastaturfokus; schließt kurz verzögert, damit der Weg ins Menü nicht abreißt. */
@media(hover:hover) and (pointer:fine){
  .tk-navitem.has-menu:hover:not(.is-closed) .tk-mega{opacity:1;visibility:visible;translate:0 0;pointer-events:auto;transition:opacity 160ms ease 60ms,translate 200ms var(--tk-ease-out) 60ms,visibility 0s}
  .tk-navitem.has-menu:hover:not(.is-closed) .tk-chev{transform:translateY(1px) rotate(225deg)}
  .tk-mega-item:hover{background:var(--studio-raised)}
  .tk-mega-item:hover .tk-mega-icon{color:var(--tk-accent);border-color:var(--tk-accent-line)}
}
.tk-navitem.has-menu:focus-within:not(.is-closed) .tk-mega{opacity:1;visibility:visible;translate:0 0;pointer-events:auto;transition:opacity 160ms ease,translate 200ms var(--tk-ease-out),visibility 0s}
@media(prefers-reduced-motion:reduce){.tk-mega{translate:none}}

/* Erstellen – Vorlagen-Raster: Kopfzeile mit Innenabstand, Punkt im TOKAI-Orange. */
html[data-studio-theme] body .static-studio-root.tokai-exact-hub .ap-picker{padding:14px 16px 16px;gap:12px}
html[data-studio-theme] body .static-studio-root.tokai-exact-hub .ap-picker .preview-top{margin:0;min-height:40px;padding:0 2px}
html[data-studio-theme] body .static-studio-root.tokai-exact-hub .ap-picker .preview-title{font-size:13px;font-weight:600;gap:10px}
html[data-studio-theme] body :is(.static-studio-root.tokai-exact-hub,.static-studio-dialog.tokai-exact-dialog) .preview-title>i{width:7px;height:7px;background:var(--tk-accent)}
/* Feldbeschriftung mit Zusatz („optional"): Zusatz in derselben Zeile. */
html[data-studio-theme] body .static-studio-root.tokai-exact-hub .editor .field>label[for]{display:flex;align-items:baseline;flex-wrap:wrap;gap:0}

/* ---------- Heller Modus: Papier und reines Weiß statt dunklem Glas (Glas wirkt auf Hell grau und trüb). ---------- */
html[data-studio-theme="light"]{--tk-paper-card:#fff;--tk-paper-hair:#e8e5df;--tk-paper-shadow:0 1px 2px #1414130d,0 18px 44px -22px #1414132e;--tk-paper-shadow-hover:0 2px 4px #14141310,0 26px 56px -24px #14141340}
html[data-studio-theme="light"] .main{background:radial-gradient(900px 480px at 88% -140px,#ff4a1c17,transparent 70%),radial-gradient(760px 520px at -8% 42%,#efe7dc,transparent 72%),#f6f5f2}
html[data-studio-theme="light"] .shell .topbar{background:color-mix(in srgb,#fff 82%,transparent);border-bottom-color:var(--tk-paper-hair)}
html[data-studio-theme="light"] .shell .brand-home::before{background:radial-gradient(520px 340px at 78% 12%,#ff4a1c14,transparent 70%),radial-gradient(620px 420px at 12% 62%,#efe7dc,transparent 72%)}
html[data-studio-theme="light"] .shell :is(.bh-strategy-card,.bh-identity,.bh-products,.bh-notes,.product-card,.section-card,.wo-panel,.billing-balance,.empty),html[data-studio-theme="light"] .static-studio-root.tokai-exact-hub :is(.editor,.preview-panel){background:var(--tk-paper-card);-webkit-backdrop-filter:none;backdrop-filter:none;border:1px solid var(--tk-paper-hair);box-shadow:var(--tk-paper-shadow)}
html[data-studio-theme="light"] .shell .billing-balance{background:radial-gradient(80% 120% at 0% 0%,#ff4a1c12,transparent 60%),#fff}
html[data-studio-theme="light"] .shell .product-card .product-thumb{background:#f4f2ee}
html[data-studio-theme="light"] .shell :is(.tk-brandchip,.tk-brandpill,.tk-credits,.tk-avatar){background:#fff;border-color:var(--tk-paper-hair);box-shadow:0 1px 2px #1414130d}
html[data-studio-theme="light"] .shell :is(.tk-mega-inner,.tk-pop){background:#fff;border-color:var(--tk-paper-hair);box-shadow:0 2px 6px #1414130f,0 28px 60px -20px #1414133d}
html[data-studio-theme="light"] .shell :is(.tk-mega-icon){background:#f6f5f2;border-color:var(--tk-paper-hair)}
html[data-studio-theme="light"] .shell .page :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){background-color:#fff;border-color:var(--tk-paper-hair)}
html[data-studio-theme="light"] .static-studio-root.tokai-exact-hub .canvas-area{background:radial-gradient(70% 60% at 50% 30%,#ff4a1c12,transparent 70%),#f3f1ec}
html[data-studio-theme="light"] .static-studio-root.tokai-exact-hub .ap-picker-scroll{background:#faf9f6;border-color:var(--tk-paper-hair)}
@media(hover:hover) and (pointer:fine){
  html[data-studio-theme="light"] .shell :is(.bh-strategy-card,.product-card,.gallery-grid>*,.adspy-brand-grid>*,.adspy-ad-grid>*):hover{box-shadow:var(--tk-paper-shadow-hover);border-color:#dcd8d0}
}
html[data-studio-theme] .shell .bh-topline>span:first-child{color:var(--tk-accent);font-weight:700;letter-spacing:.16em}
/* Erstellen-Menü mit vielen Werkzeugen: Spalten brechen um, Menü bleibt im Fenster. */
.tk-mega-inner{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(220px,260px);max-width:calc(100vw - 48px)}
.tk-mega-col{min-width:0}

/* ---------- Erstellen: Vorschau-Kopfzeile mit Innenabstand; Ad-Clone-Vorschau (Referenz + dein Produkt). ---------- */
html[data-studio-theme] body .static-studio-root.tokai-exact-hub .preview-panel>.preview-top{margin:0;padding:12px 16px 0 18px;height:auto;min-height:46px}
html[data-studio-theme] body .static-studio-root.tokai-exact-hub .preview-panel>.canvas-area{margin:8px 12px 0}
html[data-studio-theme] body .static-studio-root.tokai-exact-hub .preview-panel>.preview-bottom{padding:10px 18px 14px}
html[data-studio-theme] body .static-studio-root.tokai-exact-hub .preview-title{font-size:13px;font-weight:600;gap:10px}
.hub-clone-preview{position:relative;overflow:hidden;padding:0!important;background:#0b0b0c!important;isolation:isolate}
.hub-clone-bg{position:absolute;inset:-12%;width:124%;height:124%;object-fit:cover;filter:blur(22px) brightness(.55);z-index:-1}
.hub-clone-ref{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.hub-clone-badge{position:absolute;top:10px;left:10px;padding:5px 10px;border-radius:999px;background:#000000b3;color:#fff;font-size:10px;font-weight:700;letter-spacing:.06em;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.hub-clone-product{position:absolute;left:10px;right:10px;bottom:10px;display:flex;align-items:center;gap:10px;padding:8px 12px 8px 8px;border-radius:16px;background:#0b0b0cd9;border:1px solid var(--tk-accent-line);color:#fff;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 12px 30px #0008}
.hub-clone-product img,.hub-clone-empty{flex:0 1 44px;min-width:0;width:44px;height:44px;border-radius:10px;object-fit:cover;background:#fff}
.hub-clone-empty{display:grid;place-items:center;background:#ffffff14;border:1px dashed #ffffff4d;color:#ffffffb3;font-size:18px}
.hub-clone-product b{display:block;font-size:12px;color:var(--tk-accent);letter-spacing:.04em}
.hub-clone-product small{display:block;font-size:12px;color:#e8e6e1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hub-clone-product>span{min-width:0}
@media(prefers-reduced-motion:no-preference){.hub-clone-product{animation:tk-rise 320ms var(--tk-ease-out) both}}

/* ---------- Erstellen: Konzepte und Ergebnisse (Automatisch) – Innenabstand, ruhige Schriftgrößen. ---------- */
html[data-studio-theme] body .static-studio-root.tokai-exact-hub :is([data-autopilot-concepts],[data-autopilot-results],[data-autopilot-pending]){padding:14px 16px 16px;gap:12px}
html[data-studio-theme] body .static-studio-root.tokai-exact-hub :is([data-autopilot-concepts],[data-autopilot-results],[data-autopilot-pending])>.preview-top{margin:0;padding:0 2px;height:auto;min-height:36px}
html[data-studio-theme] body .static-studio-root.tokai-exact-hub :is([data-autopilot-concepts],[data-autopilot-pending])>.dialog-note{margin:0;padding:0 2px;font-size:12px;line-height:1.45;color:var(--studio-subtle)}
html[data-studio-theme] body .static-studio-root.tokai-exact-hub .ap-card{gap:12px;padding:16px;border-radius:18px;border-color:var(--studio-line);background:color-mix(in srgb,var(--studio-text) 3%,transparent)}
html[data-studio-theme] body .static-studio-root.tokai-exact-hub .ap-card header small{font-size:12px}
html[data-studio-theme] body .static-studio-root.tokai-exact-hub .ap-card label{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:6px;row-gap:6px;margin:0;font-size:12.5px;font-weight:600;line-height:1.3;color:var(--studio-muted)}
html[data-studio-theme] body .static-studio-root.tokai-exact-hub .ap-card label>span{font-size:11.5px;font-weight:400;color:var(--studio-subtle);margin:0}
html[data-studio-theme] body .static-studio-root.tokai-exact-hub .ap-card label>:is(input,textarea){flex:1 0 100%;box-sizing:border-box;min-height:40px;padding:9px 12px;border-radius:12px;font-size:13px;font-weight:500;line-height:1.45;color:var(--studio-text)}
html[data-studio-theme] body .static-studio-root.tokai-exact-hub .ap-card label>textarea{min-height:84px}
html[data-studio-theme] body .static-studio-root.tokai-exact-hub .ap-card>.dialog-note,html[data-studio-theme] body .static-studio-root.tokai-exact-hub .ap-card>.hub-order-note{margin:0;font-size:12px;line-height:1.5}
html[data-studio-theme] body .static-studio-root.tokai-exact-hub .ap-card .icon-btn{flex:none}
html[data-studio-theme="light"] body .static-studio-root.tokai-exact-hub .ap-card{background:#fff;border-color:#e8e5df}

/* Erstellen links: „Verwendete Originalfotos" in derselben Schriftgröße wie die übrigen Felder. */
html[data-studio-theme] body .static-studio-root.tokai-exact-hub .static-product-image-picker{margin:0;padding:12px;border:1px solid var(--studio-line);border-radius:16px;min-width:0}
html[data-studio-theme] body .static-studio-root.tokai-exact-hub .static-product-image-picker>legend{padding:0 6px;font-size:13px;font-weight:600;color:var(--studio-text)}
html[data-studio-theme] body .static-studio-root.tokai-exact-hub .static-product-image-picker>label{display:grid;gap:6px;margin:0 0 10px;font-size:12px;font-weight:600;color:var(--studio-muted)}
html[data-studio-theme] body .static-studio-root.tokai-exact-hub .static-product-image-picker>label>select{min-height:40px;font-size:13px;font-weight:400;border-radius:12px}
html[data-studio-theme] body .static-studio-root.tokai-exact-hub .static-product-image-picker>div label{font-size:12px}

/* Produkt-Dialog: Name, Bilder mit Upload-Kachel, ruhige Abstände. */
.product-form{gap:18px}
.product-form .product-media{display:grid;gap:10px}
.product-form .product-media>span{font-size:14px;line-height:1.55}
.product-form .product-image-list{flex-wrap:wrap;gap:10px;margin:0}
.product-form .product-image-list>div,.product-form .product-image-add{flex:0 0 112px;width:112px;height:112px;border-radius:14px}
.product-form .product-image-list>div>button{position:absolute;right:-6px;top:-6px;width:24px;height:24px;min-height:24px;padding:3px;border-radius:999px}
.product-form .product-image-add{display:grid;place-content:center;justify-items:center;gap:6px;padding:8px;border:1px dashed var(--tk-line-strong,#3e3e42);background:transparent;color:var(--tk-muted,#b3b2ae);transition:border-color .16s cubic-bezier(.23,1,.32,1),color .16s cubic-bezier(.23,1,.32,1),scale .14s cubic-bezier(.23,1,.32,1)}
.product-form .product-image-add small{font-size:12px;line-height:1.3}
.product-form .product-image-add:hover:not(:disabled),.product-form .product-image-add:focus-visible{border-color:var(--tk-accent,#ff4a1c);color:var(--tk-text,#f6f5f3)}
.product-form .product-image-add:active:not(:disabled){scale:.97}
.product-form .product-media .inline-note{margin:0}
dialog .product-form details.section-card,dialog .product-form+details.section-card{padding:0;border-radius:16px}
dialog .product-form details.section-card>summary,dialog .product-form+details.section-card>summary{padding:14px 18px;cursor:pointer}
dialog .product-form details.section-card[open]>summary,dialog .product-form+details.section-card[open]>summary{border-bottom:1px solid var(--tk-line,#262628)}
dialog .product-form details.section-card>:not(summary){margin:16px 18px}
dialog .product-form details.section-card>label{display:grid}
dialog .product-form+details.section-card{margin-top:16px}
dialog .product-form+details.section-card>:not(summary){padding:16px 18px}
@media(prefers-reduced-motion:reduce){.product-form .product-image-add{transition:none}.product-form .product-image-add:active{scale:none}}
.product-form #product-media-slot{display:grid;gap:12px}
.product-form #product-media-slot>label{display:grid}
.product-form .product-image-list .product-image-add{position:static;width:112px;height:112px;min-height:112px;background:transparent;border-style:dashed}

/* Konzeptkarte: Vorlagenbild oben – zeigt, auf welchem Aufbau das Konzept beruht. */
html[data-studio-theme] body .static-studio-root.tokai-exact-hub .ap-card-ref{position:relative;margin:-4px -4px 2px;aspect-ratio:4/3;overflow:hidden;border-radius:12px;border:1px solid var(--studio-line);background:var(--studio-inset)}
html[data-studio-theme] body .static-studio-root.tokai-exact-hub .ap-card-ref img{display:block;width:100%;height:100%;object-fit:cover;object-position:top center;transition:transform 300ms var(--tk-ease-out)}
html[data-studio-theme] body .static-studio-root.tokai-exact-hub .ap-card-ref figcaption{position:absolute;left:8px;top:8px;padding:3px 8px;border-radius:999px;background:#000000b3;color:#fff;font-size:10px;font-weight:700;letter-spacing:.06em;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
@media(hover:hover) and (pointer:fine){html[data-studio-theme] body .static-studio-root.tokai-exact-hub .ap-card:hover .ap-card-ref img{transform:scale(1.04)}}

/* ---- Erstellen: rechter Arbeitsbereich wie Higgsfield (Verlauf · Vorlagen · Referenzen · Editor) ---- */
html[data-studio-theme] body .static-studio-root.tokai-exact-hub .preview-panel.has-pane{padding:0;display:flex;flex-direction:column;min-height:calc(100vh - 170px);max-height:calc(100vh - 150px);position:sticky;top:84px;overflow:hidden}
.tk-pane{display:flex;flex-direction:column;flex:1;min-height:0}
.tk-pane-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px 10px;border-bottom:1px solid var(--studio-line,#262628)}
html[data-studio-theme] body .tk-pane .tk-pane-tabs{display:inline-flex;gap:4px;padding:4px;border-radius:999px;background:var(--studio-surface,#111112);border:1px solid var(--studio-line,#262628)}
html[data-studio-theme] body .tk-pane .tk-pane-tabs button{border:0;background:transparent;color:var(--studio-muted,#b3b2ae);padding:7px 14px;border-radius:999px;font-weight:600;font-size:13px;min-height:0;transition:background-color .2s var(--tk-ease-out),color .2s var(--tk-ease-out)}
html[data-studio-theme] body .tk-pane .tk-pane-tabs button span{opacity:.6;font-weight:500;margin-left:2px}
html[data-studio-theme] body .tk-pane .tk-pane-tabs button[aria-selected="true"]{background:var(--studio-raised,#19191a);color:var(--studio-text,#f6f5f3);box-shadow:inset 0 0 0 1px var(--studio-line,#262628)}
.tk-pane-body{flex:1;min-height:0;overflow:auto;padding:14px 16px 20px;overscroll-behavior:contain}
.tk-pane-body:focus-visible{outline:2px solid var(--tk-accent);outline-offset:-2px}
.tk-day+.tk-day{margin-top:22px}
.tk-day h3{margin:0 0 10px;font-size:13px;font-weight:700;letter-spacing:.01em;color:var(--studio-text,#f6f5f3)}
.tk-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:10px}
.tk-tile{position:relative;aspect-ratio:var(--tile-ratio,4/5);border-radius:12px;overflow:hidden;background:var(--studio-surface,#111112);border:1px solid var(--studio-line,#262628);margin:0}
.tk-tile.is-new{animation:tk-tile-in .42s var(--tk-ease-out) both}
@keyframes tk-tile-in{from{opacity:0;scale:.96}}
.tk-tile-open{all:unset;display:block;width:100%;height:100%;cursor:pointer}
.tk-tile-open img{width:100%;height:100%;object-fit:cover;display:block;transition:scale .5s var(--tk-ease-out)}
.tk-tile-edit{position:absolute;left:8px;bottom:8px;padding:5px 10px;border-radius:999px;background:#000a;color:#fff;font-size:12px;font-weight:600;opacity:0;translate:0 4px;transition:opacity .2s var(--tk-ease-out),translate .2s var(--tk-ease-out)}
.tk-tile-actions{position:absolute;top:8px;right:8px;display:flex;gap:6px;opacity:0;transition:opacity .2s var(--tk-ease-out)}
html[data-studio-theme] body .tk-tile-actions :is(button,a){all:unset;display:grid;place-items:center;width:28px;height:28px;border-radius:999px;background:#000b;color:#fff;font-size:13px;cursor:pointer}
.tk-tile-open:focus-visible{outline:2px solid var(--tk-accent);outline-offset:-2px}
.tk-tile-open:focus-visible .tk-tile-edit,.tk-tile:focus-within .tk-tile-actions{opacity:1;translate:0 0}
@media(hover:hover) and (pointer:fine){.tk-tile.is-done:hover .tk-tile-open img{scale:1.03}.tk-tile.is-done:hover :is(.tk-tile-edit,.tk-tile-actions){opacity:1;translate:0 0}}
.tk-tile.is-busy::before{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 20%,color-mix(in srgb,var(--tk-accent) 14%,transparent) 45%,transparent 70%);translate:-100% 0;animation:tk-sweep 1.6s var(--tk-ease-in-out) infinite}
@keyframes tk-sweep{to{translate:100% 0}}
.tk-tile-status{position:absolute;inset:auto 10px 30px;font-size:12px;font-weight:700;color:var(--studio-text,#f6f5f3)}
.tk-tile.is-busy .tk-tile-status::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--tk-accent);margin-right:7px;vertical-align:1px;animation:tk-pulse 1.2s ease-in-out infinite}
@keyframes tk-pulse{50%{opacity:.35}}
.tk-tile small{position:absolute;inset:auto 10px 10px;font-size:11px;color:var(--studio-muted,#b3b2ae);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tk-tile.is-failed .tk-tile-status{color:#ff8a7a}
html[data-studio-theme] body .tk-tile .tk-tile-retry.tk-tile-retry.tk-tile-retry{all:unset;box-sizing:border-box;position:absolute;z-index:1;inset:39% 10px auto;padding:7px 6px;border-radius:999px;background:var(--tk-accent);color:#fff;font-size:12px;font-weight:700;text-align:center;cursor:pointer}
html[data-studio-theme] body .tk-tile-retry:focus-visible{outline:2px solid var(--tk-accent);outline-offset:2px}
html[data-studio-theme] body .tk-tile-retry:disabled{opacity:.5;cursor:default}
.tk-pane-empty{display:grid;place-items:center;text-align:center;gap:6px;min-height:280px;color:var(--studio-muted,#b3b2ae);padding:24px}
.tk-pane-empty b{color:var(--studio-text,#f6f5f3);font-size:15px}
.tk-pane-empty p{max-width:360px;margin:0;line-height:1.5}
.tk-pane .ap-picker{padding:0}
.tk-pane .ap-picker-scroll{max-height:none;overflow:visible;padding:0}
.tk-ref-chosen{display:grid;grid-template-columns:120px 1fr;gap:14px;align-items:start;padding:12px;margin-bottom:16px;border-radius:14px;border:1px solid var(--tk-accent-line);background:var(--tk-accent-soft)}
.tk-ref-chosen img{width:120px;border-radius:10px;display:block}
.tk-ref-chosen div{display:grid;gap:6px;justify-items:start}
.tk-ref-chosen small{color:var(--studio-muted,#b3b2ae);line-height:1.45}
html[data-studio-theme] body .static-studio-root.tokai-exact-hub .tk-ref-link{justify-self:start;margin-top:8px;font-size:13px;color:var(--tk-accent)}
html[data-studio-theme] body .static-studio-root.tokai-exact-hub [data-ap-choice] img{width:44px;height:44px;object-fit:cover;border-radius:8px}
.ap-auto-thumb{display:grid;place-items:center;width:44px;height:44px;border-radius:8px;color:var(--tk-accent);font-size:18px}
/* Editor im Bereich statt über der Seite */
.tk-pane.is-editing>:is(.tk-pane-top,.tk-pane-body){display:none}
.tk-pane-editor{flex:1;min-height:0;overflow:auto}
#tokai-ad-editor.ae-inline{position:relative;inset:auto;z-index:auto;min-height:100%;overflow:visible}
#tokai-ad-editor.ae-inline .ae-shell{padding:16px 26px 28px}
#tokai-ad-editor.ae-inline .ae-top{position:sticky;top:0;z-index:3;background:var(--bg)}
#tokai-ad-editor.ae-inline .ae-back{width:auto!important;padding:7px 14px!important;border-radius:999px!important;font-size:13px!important}
@media(max-width:1180px){#tokai-ad-editor.ae-inline .work.editor{grid-template-columns:1fr!important}}
/* Inline editor, minimal: no nested boxes, one segmented control, quiet tools, one orange action. */
#tokai-ad-editor.ae-inline{--line:#ffffff14;--panel:transparent;background:transparent;padding:0}
#tokai-ad-editor.ae-inline .work.editor{border:0;background:transparent;backdrop-filter:none;border-radius:0;padding:0;gap:28px;overflow:visible}
#tokai-ad-editor.ae-inline .stage{border-radius:18px;overflow:hidden;box-shadow:0 20px 40px #0008}
#tokai-ad-editor.ae-inline .panel.side{border:0;background:transparent;padding:4px 0;gap:18px}
#tokai-ad-editor.ae-inline .ae-back{background:transparent;border:1px solid var(--line);color:var(--muted)}
#tokai-ad-editor.ae-inline .ae-back:hover{color:var(--fg);border-color:#ffffff33}
#tokai-ad-editor.ae-inline .tabs{display:inline-flex;gap:2px;padding:3px;border:0;margin:0;border-radius:999px;background:#ffffff0f}
#tokai-ad-editor.ae-inline .tabs button{min-height:30px;padding:4px 14px;border:0;border-radius:999px;background:transparent;color:var(--muted);font-size:13px;font-weight:500}
#tokai-ad-editor.ae-inline .tabs button[aria-pressed=true]{background:var(--fg);color:#111}
#tokai-ad-editor.ae-inline .hint{font-size:12px;color:var(--muted)}
#tokai-ad-editor.ae-inline .panel select,#tokai-ad-editor.ae-inline .describe input{min-height:42px;border-radius:12px;border:1px solid var(--line);background:#ffffff08;font-size:14px}
#tokai-ad-editor.ae-inline .describe{gap:8px}
#tokai-ad-editor.ae-inline .describe button{min-height:42px;border-radius:12px;border:1px solid var(--line);background:transparent;color:var(--fg);font-size:13px;white-space:nowrap}
#tokai-ad-editor.ae-inline .ed-empty{border:0;background:transparent;padding:18px 8px;text-align:center}
#tokai-ad-editor.ae-inline .ed-empty p{margin:0;color:var(--muted);font-size:13px;line-height:1.5}
#tokai-ad-editor.ae-inline .ed-empty p.hint{opacity:.7}
#tokai-ad-editor.ae-inline button.primary{min-height:50px;border:0;border-radius:999px;background:var(--tk-accent,#ff4a1c);color:#fff;font-weight:650;box-shadow:0 12px 30px #ff4a1c33}
#tokai-ad-editor.ae-inline button.primary:hover{background:var(--tk-accent-hover,#ff6a40)}
#tokai-ad-editor.ae-inline details{border:0}
#tokai-ad-editor.ae-inline summary.hint{justify-content:center;font-size:12px}
/* Inline editor, playful: tool tiles, compact header, history next to the format switch. */
#tokai-ad-editor.ae-inline .ae-top{position:static;background:transparent;padding-bottom:14px;margin:0}
#tokai-ad-editor.ae-inline .ae-top>div{display:none}
#tokai-ad-editor.ae-inline .row.top{display:flex;align-items:center;justify-content:space-between;gap:12px}
#tokai-ad-editor.ae-inline .hist{display:inline-flex;gap:4px}
#tokai-ad-editor.ae-inline .hist button{width:34px;height:34px;padding:0;border:0;border-radius:999px;background:#ffffff0f;color:var(--muted);font-size:16px}
#tokai-ad-editor.ae-inline .hist button:disabled{opacity:.35}
#tokai-ad-editor.ae-inline .row.add{display:grid;grid-template-columns:repeat(auto-fit,minmax(54px,1fr));gap:6px;padding:0;border:0}
#tokai-ad-editor.ae-inline .row.add .tool{display:grid;justify-items:center;gap:5px;padding:11px 2px 9px;border:1px solid var(--line);border-radius:14px;background:#ffffff06;color:var(--fg);font-size:12px;font-weight:500}
#tokai-ad-editor.ae-inline .row.add .tool svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;color:var(--tk-accent,#ff4a1c)}
@media(hover:hover) and (pointer:fine){#tokai-ad-editor.ae-inline .row.add .tool{transition:transform 180ms cubic-bezier(.23,1,.32,1),border-color 180ms,background-color 180ms}#tokai-ad-editor.ae-inline .row.add .tool:hover{transform:translateY(-2px);border-color:#ff4a1c66;background:#ff4a1c10}}
#tokai-ad-editor.ae-inline .foot-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
#tokai-ad-editor.ae-inline .foot-row details[open]{flex-basis:100%}
#tokai-ad-editor.ae-inline .foot-row details .row{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
#tokai-ad-editor.ae-inline .foot-row details select{flex:1;min-width:180px}
/* Inline editor, liquid glass: no divider lines, frosted controls with a soft top highlight. */
#tokai-ad-editor.ae-inline .work.editor{box-shadow:none}
#tokai-ad-editor.ae-inline .ed{border-top:0;padding-top:4px}
#tokai-ad-editor.ae-inline :is(.row.add .tool,.tabs,.hist button,.describe input,.describe button,.ae-back,.foot-row select,.foot-row button){background:linear-gradient(180deg,#ffffff17,#ffffff05);border:1px solid #ffffff1f;box-shadow:inset 0 1px 0 #ffffff2e,0 8px 24px -12px #0009;backdrop-filter:blur(18px) saturate(160%);-webkit-backdrop-filter:blur(18px) saturate(160%)}
#tokai-ad-editor.ae-inline .tabs button[aria-pressed=true]{background:linear-gradient(180deg,#fff,#e9e7e2);box-shadow:0 2px 8px #0006}
#tokai-ad-editor.ae-inline button.primary{background:linear-gradient(180deg,#ff6a40,var(--tk-accent,#ff4a1c));box-shadow:inset 0 1px 0 #ffffff59,0 12px 30px #ff4a1c40}
@media(hover:hover) and (pointer:fine){#tokai-ad-editor.ae-inline .row.add .tool:hover{background:linear-gradient(180deg,#ff4a1c26,#ff4a1c0a);border-color:#ff4a1c59}}
@media(hover:hover) and (pointer:fine){#tokai-ad-editor.ae-inline button{transition:background-color 160ms cubic-bezier(.23,1,.32,1),color 160ms cubic-bezier(.23,1,.32,1)}}
#tokai-ad-editor.ae-inline button:active:not(:disabled){scale:.97}
@media(prefers-reduced-motion:reduce){#tokai-ad-editor.ae-inline button:active{scale:1}}

@media(max-width:900px){html[data-studio-theme] body .static-studio-root.tokai-exact-hub .preview-panel.has-pane{position:static;max-height:none;min-height:60vh}}
@media(prefers-reduced-motion:reduce){.tk-tile.is-new{animation:none}.tk-tile.is-busy::before{animation:none;translate:0 0;opacity:.5}.tk-tile.is-busy .tk-tile-status::before{animation:none}}
html[data-studio-theme] body .static-studio-root.tokai-exact-hub .tk-pane .tk-pane-tabs button{width:auto;min-width:0;height:auto;font-size:13px;line-height:1.2;white-space:nowrap;flex:0 0 auto}
html[data-studio-theme] body .static-studio-root.tokai-exact-hub .tk-pane .tk-pane-tabs{width:auto;display:inline-flex;grid-template-columns:none}
.tk-tile.is-failed small{white-space:normal;inset:auto 10px 10px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical}
.tk-tile.is-failed .tk-tile-status{inset:12px 10px auto}
.tk-tile.is-failed .tk-tile-retry~small{-webkit-line-clamp:2}
/* Mehr anpassen: Angle-Vorschläge aus der Brand DNA */
.hub-suggest{display:flex;flex-wrap:wrap;gap:6px;margin:-4px 0 4px}
html[data-studio-theme] body .static-studio-root.tokai-exact-hub .hub-suggest .hub-chip{width:auto;min-height:0;padding:6px 11px;border-radius:999px;font-size:12px;font-weight:500;line-height:1.3;text-align:left;background:var(--studio-surface,#111112);border:1px solid var(--studio-line,#262628);color:var(--studio-muted,#b3b2ae);transition:border-color .2s var(--tk-ease-out),color .2s var(--tk-ease-out)}
@media(hover:hover) and (pointer:fine){html[data-studio-theme] body .static-studio-root.tokai-exact-hub .hub-suggest .hub-chip:hover{border-color:var(--tk-accent-line);color:var(--studio-text,#f6f5f3)}}
html[data-studio-theme] body .static-studio-root.tokai-exact-hub .hub-suggest .hub-chip:active{scale:.97}
.hub-advanced label>span{font-weight:400;opacity:.65}
