/* ITM Advertentiestudio. Werkende demo: maakt advertenties uit een merkkit, in de browser. */
.studio-body { background: var(--inkt); color: var(--tekst-licht); min-height: 100vh; }
.st { display: grid; grid-template-rows: auto auto 1fr; height: 100vh; min-height: 640px; }
.st.ingebed { height: 780px; min-height: 0; border: 1px solid var(--lijn-donker-sterk); border-radius: var(--radius); overflow: hidden; }

.st-top { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--lijn-donker); background: var(--inkt-2); }
.st-top .merk { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.01em; font-size: 14.5px; }
.st-top .merk svg { height: 24px; width: auto; }
.st-top .tel { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--gedempt-donker); letter-spacing: .06em; }
.st-top .tel b { color: var(--signaal); font-size: 15px; font-weight: 500; margin-right: 4px; }
.st-top a { font-size: 13px; color: var(--gedempt-donker); }
.st-top a:hover { color: var(--tekst-licht); }
.st-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gedempt-donker); }

/* Lopende band bovenin: waar staat deze batch */
.st-band { display: flex; gap: 0; padding: 0 16px; border-bottom: 1px solid var(--lijn-donker); overflow-x: auto; }
.st-band span { position: relative; display: flex; align-items: center; gap: 8px; padding: 10px 18px 10px 0; margin-right: 18px; font-size: 12.5px; color: var(--gedempt-donker); white-space: nowrap; }
.st-band span i { width: 18px; height: 18px; border-radius: 6px; border: 1px solid var(--lijn-donker-sterk); display: grid; place-items: center; font-style: normal; font-family: var(--mono); font-size: 10px; }
.st-band span.klaar { color: var(--tekst-licht); }
.st-band span.klaar i { background: var(--mint); border-color: var(--mint); color: var(--inkt); }
.st-band span.nu { color: var(--tekst-licht); }
.st-band span.nu i { border-color: var(--signaal); color: var(--signaal); box-shadow: 0 0 0 4px var(--signaal-zacht); }
.st-band span:not(:last-child)::after { content: ""; position: absolute; right: -10px; top: 50%; width: 10px; height: 1px; background: var(--lijn-donker-sterk); }

.st-lijf { display: grid; grid-template-columns: 250px 1fr 300px; min-height: 0; }
.st-links, .st-rechts { overflow-y: auto; background: var(--inkt-2); min-height: 0; }
.st-links { border-right: 1px solid var(--lijn-donker); }
.st-rechts { border-left: 1px solid var(--lijn-donker); }
.st-blok { padding: 14px; border-bottom: 1px solid var(--lijn-donker); display: grid; gap: 10px; }

/* Merkkits */
.st-kits { display: grid; gap: 6px; }
.st-kit { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; border: 1px solid transparent; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.st-kit:hover { background: rgba(255,255,255,.04); }
.st-kit[aria-pressed="true"] { border-color: rgba(99,91,255,.4); background: var(--signaal-zacht); }
.st-kit .stalen { display: flex; }
.st-kit .stalen i { width: 14px; height: 22px; display: block; }
.st-kit .stalen i:first-child { border-radius: 4px 0 0 4px; }
.st-kit .stalen i:last-child { border-radius: 0 4px 4px 0; }
.st-kit b { font-size: 13px; font-weight: 550; display: block; }
.st-kit small { font-size: 11px; color: var(--gedempt-donker); }
.st-upload { display: grid; gap: 6px; font-size: 12px; color: var(--gedempt-donker); }
.st-upload input { font-size: 11.5px; color: var(--gedempt-donker); max-width: 100%; }

/* Wachtrij */
.st-rij { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 8px; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; width: 100%; }
.st-rij:hover { background: rgba(255,255,255,.04); }
.st-rij[aria-current="true"] { background: rgba(255,255,255,.07); }
.st-rij .mini { width: 34px; height: 34px; border-radius: 6px; overflow: hidden; background: #222; }
.st-rij .mini svg { width: 100%; height: 100%; display: block; }
.st-rij b { font-family: var(--mono); font-size: 11.5px; font-weight: 500; display: block; }
.st-rij small { font-size: 11px; color: var(--gedempt-donker); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.st-stat { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.st-stat.fout { background: #e5604a; }
.st-stat.ok { background: var(--mint); }
.st-stat.wacht { background: var(--waarschuwing); }
.st-stat.af { background: #4f6378; }
.st-stat.bezig { background: var(--koel); animation: st-puls 1s infinite; }
@keyframes st-puls { 50% { opacity: .3; } }

/* Canvas */
.st-midden { position: relative; min-width: 0; min-height: 0; display: grid; grid-template-rows: auto 1fr; background: #0e0d0b; }
.st-werkbalk { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--lijn-donker); flex-wrap: wrap; }
.st-seg { display: inline-flex; border: 1px solid var(--lijn-donker-sterk); border-radius: 999px; overflow: hidden; }
.st-seg button { background: none; border: 0; color: #c9d5e6; font: inherit; font-size: 12px; padding: 6px 12px; cursor: pointer; }
.st-seg button[aria-pressed="true"] { background: var(--tekst-licht); color: var(--inkt); }
.st-werkbalk .ruimte { flex: 1; }
.st-canvas { overflow: auto; padding: 22px 22px 120px; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 18px 18px; min-height: 0; }
.st-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--tegel, 190px), 1fr)); gap: 22px; align-items: start; }
.st-tegel { display: grid; gap: 6px; background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.st-tegel .naam { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; color: var(--gedempt-donker); }
.st-tegel .vlak { position: relative; border-radius: 6px; overflow: hidden; outline: 1px solid rgba(255,255,255,.06); transition: outline-color .2s, transform .25s var(--ease); }
.st-tegel .vlak svg { display: block; width: 100%; height: auto; }
.st-tegel:hover .vlak { outline-color: rgba(255,255,255,.3); }
.st-tegel[aria-current="true"] .vlak { outline: 2px solid var(--signaal); outline-offset: 3px; }
.st-tegel.nieuw .vlak { animation: st-render .9s var(--ease); }
@keyframes st-render { 0% { clip-path: inset(0 0 100% 0); filter: blur(6px); } 100% { clip-path: inset(0 0 0 0); filter: none; } }
.st-tegel .stempel { position: absolute; bottom: 8px; right: 8px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 5px; background: rgba(7,17,31,.8); color: var(--tekst-licht); }
.st-tegel .stempel.ok { background: var(--mint); color: var(--inkt); }
.st-tegel .stempel.fout { background: #e5604a; color: var(--inkt); }
.st-tegel.af .vlak { opacity: .35; filter: grayscale(1); }

/* Promptbalk */
.st-prompt { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(720px, calc(100% - 28px)); display: flex; gap: 8px; align-items: center; padding: 8px 8px 8px 16px; border-radius: 999px; background: rgba(20,26,33,.94); border: 1px solid var(--lijn-donker-sterk); box-shadow: 0 20px 50px rgba(0,0,0,.5); backdrop-filter: blur(8px); }
.st-prompt input { flex: 1; min-width: 0; background: none; border: 0; color: var(--tekst-licht); font: inherit; font-size: 14px; }
.st-prompt input:focus { outline: none; }
.st-prompt select { background: none; border: 1px solid var(--lijn-donker-sterk); color: var(--tekst-licht); border-radius: 999px; padding: 6px 8px; font: inherit; font-size: 12.5px; }
.st-prompt .stip { width: 8px; height: 8px; border-radius: 50%; background: var(--signaal); flex: none; }

/* Knoppen */
.st-knop { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--lijn-donker-sterk); background: none; color: var(--tekst-licht); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.st-knop:hover { border-color: var(--tekst-licht); }
.st-knop.ja { background: var(--signaal); border-color: var(--signaal); color: var(--op-signaal); }
.st-knop.ja:hover { background: var(--signaal-hover); }
.st-knop.nee:hover { border-color: #e5604a; color: #f08a78; }
.st-knop[disabled] { opacity: .4; cursor: not-allowed; }
.st-knop.vol { width: 100%; }

/* Inspector */
.st-veld { display: grid; gap: 5px; font-size: 12px; color: var(--gedempt-donker); }
.st-veld input, .st-veld select, .st-veld textarea { background: var(--inkt-3); border: 1px solid var(--lijn-donker-sterk); border-radius: 8px; color: var(--tekst-licht); font: inherit; font-size: 13px; padding: 8px 10px; }
.st-veld textarea { resize: vertical; min-height: 54px; }
.st-veld input:focus, .st-veld select:focus, .st-veld textarea:focus { outline: 2px solid var(--signaal); outline-offset: 1px; }
.st-tel-tekens { font-family: var(--mono); font-size: 10.5px; text-align: right; }
.st-kleuren { display: flex; gap: 6px; }
.st-kleuren button { width: 28px; height: 28px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; }
.st-kleuren button[aria-pressed="true"] { border-color: var(--signaal); }
.st-check { display: grid; gap: 6px; }
.st-check div { display: grid; grid-template-columns: 16px 1fr; gap: 8px; font-size: 12.5px; align-items: start; color: #c9d5e6; }
.st-check div i { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 800; margin-top: 1px; }
.st-check div.ok i { background: var(--mint); color: var(--inkt); }
.st-check div.fout i { background: #e5604a; color: var(--inkt); }
.st-check div small { display: block; color: var(--gedempt-donker); font-size: 11px; }
.st-preview { border-radius: 8px; overflow: hidden; outline: 1px solid rgba(255,255,255,.08); }
.st-preview svg { display: block; width: 100%; height: auto; }
.st-leeg { padding: 20px 14px; font-size: 13px; color: var(--gedempt-donker); line-height: 1.5; }

.st-voet { display: block; padding: 0 14px 14px; font-size: 12px; line-height: 1.5; color: var(--gedempt-donker); }
.st-toast { position: fixed; left: 50%; top: 18px; transform: translate(-50%, -20px); opacity: 0; z-index: 40; padding: 10px 16px; border-radius: 999px; background: var(--signaal); color: var(--op-signaal); font-weight: 600; font-size: 13.5px; transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.st-toast.zichtbaar { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  .st-lijf { grid-template-columns: 210px 1fr; }
  .st-rechts { display: none; }
  .st-rechts.open { display: block; position: absolute; right: 0; top: 0; bottom: 0; width: 300px; z-index: 20; box-shadow: -20px 0 40px rgba(0,0,0,.5); }
  .st-midden { position: relative; }
}
@media (max-width: 720px) {
  .st { height: auto; min-height: 100vh; grid-template-rows: auto auto auto; }
  .st.ingebed { height: auto; }
  .st-lijf { grid-template-columns: 1fr; }
  .st-links { border-right: 0; border-bottom: 1px solid var(--lijn-donker); max-height: none; }
  .st-links .st-blok.wachtrij { display: none; }
  .st-canvas { min-height: 70vh; }
  .st-rechts.open { position: fixed; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .st-tegel.nieuw .vlak, .st-stat.bezig { animation: none; } }
@media (max-width: 620px) { .st-top { flex-wrap: wrap; gap: 8px 12px; } .st-top .st-label { display: none; } .st-top .tel { margin-left: 0; } .st-top a { margin-left: auto; } .st-band { max-width: 100vw; } body.studio-body { overflow-x: hidden; } }
