/* Marketing Studio composer */
.mk-wrap{display:flex;gap:10px;align-items:stretch;max-width:1240px;margin:0 auto;text-align:left}
.mk-wrap .mk-modes{flex:none;display:flex;flex-direction:column;gap:6px;width:72px;padding:6px;border-radius:24px;background:var(--surface-2);border:0}
.mk-wrap .mk-modes button{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;height:auto;min-height:62px;padding:0;border-radius:18px;font-size:12px;font-weight:500}
.mk-wrap .mk-modes button.on{background:var(--surface-3);color:var(--text);box-shadow:none}
.mk-modes svg{width:20px;height:20px}
.mk-wrap .mkt-comp{flex:1;min-width:0;max-width:none;margin:0;padding:10px;display:flex;gap:10px;align-items:stretch;border-radius:24px}
.mk-main{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:space-between;gap:8px;padding:2px 0 2px 6px}
.mk-top{display:flex;gap:10px;align-items:flex-start}
.mk-text{flex:1;min-width:0}
.mk-wrap .mkt-comp textarea,.mk-wrap .mkt-comp .ref-editor{min-height:48px}
.mk-extra{flex:none;display:flex;gap:6px;align-items:center}
.mk-extra .studio-pick{position:relative}
.mk-extra .studio-pickbtn{max-width:230px;height:30px;padding:0 10px;font-size:12px;border-radius:999px;background:transparent}
.mk-extra .studio-pickbtn>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:190px}
.mk-extra .studio-dd{left:auto;right:0}
.mk-wrap .mkt-row{margin:0;gap:5px;flex-wrap:wrap}
.mk-wrap .mkt-row>.mk-step{flex:none}
.mk-wrap .mkt-row .mkt-chip,.mk-pick select,.mk-step{height:38px;border-radius:999px;border:0;background-color:var(--surface-3);color:var(--text);font:inherit;font-size:13px;font-weight:500}
.mk-wrap .mkt-row .mkt-chip{padding:0 12px;gap:6px;max-width:170px}
.mk-wrap .mkt-row .mkt-chip.sq{width:38px;padding:0;font-size:19px;font-weight:300}
.mk-wrap .mkt-row .mkt-chip:hover,.mk-pick select:hover{filter:brightness(1.2)}
#mkChipStyle svg{display:none}
#mkChipStyle::before{content:"";width:15px;height:15px;flex:none;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M10 4l1.8 5.2L17 11l-5.2 1.8L10 18l-1.8-5.2L3 11l5.2-1.8z'/%3E%3Cpath d='M18 3v5M15.5 5.5h5M18 16v4M16 18h4'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M10 4l1.8 5.2L17 11l-5.2 1.8L10 18l-1.8-5.2L3 11l5.2-1.8z'/%3E%3Cpath d='M18 3v5M15.5 5.5h5M18 16v4M16 18h4'/%3E%3C/svg%3E") center/contain no-repeat}
.mk-pick{position:relative;display:inline-flex;align-items:center}
.mk-pick>svg{position:absolute;left:11px;width:15px;height:15px;color:var(--text-muted);pointer-events:none}
.mk-wrap .mk-pick select{-webkit-appearance:none;appearance:none;background-image:none;width:auto;padding:0 11px 0 31px;margin:0;cursor:pointer;field-sizing:content;max-width:170px;text-overflow:ellipsis;outline:0}
.mk-pick select:focus-visible,.mk-wrap button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.mk-pick:has(>select[style*="display: none"]),.mk-pick:has(>select[style*="display:none"]){display:none}
.mk-wrap:not(.is-video) .mk-pick:has(>.mk-video){display:none}
.mk-step{display:inline-flex;align-items:center;gap:1px;padding:0 5px}
.mk-step button{flex:none;border:0;background:none;color:var(--text);width:22px;min-width:0;padding:0;height:30px;font-size:17px;line-height:1;cursor:pointer;border-radius:8px}
.mk-step button:disabled{color:var(--text-faint);cursor:default}
.mk-step b{font-weight:500;min-width:26px;text-align:center}
/* Avatar and Product cards */
.mk-wrap .mkt-comp>.mkt-chip{flex:none;position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;width:86px;height:auto;min-height:104px;padding:10px 11px;border:0;border-radius:14px;background:var(--surface-3);font-size:14px;font-weight:500}
.mk-wrap .mkt-comp>.mkt-chip:hover{filter:brightness(1.15)}
.mk-wrap .mkt-comp>.mkt-chip>svg{display:none}
.mk-wrap .mkt-comp>.mkt-chip:not(.has)::before{content:"+";width:28px;height:28px;border-radius:50%;border:1.5px solid var(--border-2);display:grid;place-items:center;font-size:19px;font-weight:300;color:var(--text-muted)}
.mk-wrap .mkt-comp>#mkChipProduct:not(.has)::before{border-color:#2d9cdb;color:#2d9cdb}
.mk-wrap .mkt-comp>.mkt-chip .t{max-width:100%}
.mk-wrap .mkt-comp>.mkt-chip .th{width:48px;height:48px;border-radius:10px}
.mk-wrap .mkt-comp>.mkt-chip .x{position:absolute;top:7px;right:8px}
.mk-wrap .mkt-comp>.mkt-chip.has{box-shadow:inset 0 0 0 1.5px var(--accent)}
/* Generate card */
.mk-wrap #mkGen{flex:none;width:124px;min-height:104px;border:0;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:var(--surface-3);color:var(--text-muted);font:inherit;font-size:13.5px;font-weight:600;cursor:pointer}
.mk-wrap #mkGen .studio-est-price{margin:0;font-size:13px;font-weight:500;color:inherit;white-space:nowrap}
.mk-wrap #mkGen .studio-est-price:empty{display:none}
.mk-wrap.is-ready #mkGen{background:var(--accent);color:var(--accent-fg)}
.mk-wrap #mkGen:disabled{opacity:.55;cursor:wait}
@media(max-width:900px){
  .mk-wrap{flex-direction:column}
  .mk-wrap .mk-modes{flex-direction:row;width:auto;align-self:flex-start;border-radius:18px}
  .mk-wrap .mk-modes button{flex-direction:row;min-height:34px;padding:0 14px;border-radius:12px}
  .mk-wrap .mkt-comp{flex-wrap:wrap}
  .mk-main{flex:1 1 100%}
  .mk-top{flex-direction:column}
  .mk-text{width:100%}
  .mk-extra .studio-dd{left:0;right:auto}
  .mk-wrap .mkt-comp>.mkt-chip,.mk-wrap #mkGen{flex:1 1 0;width:auto;min-height:88px}
}
/* chosen hooks and settings are longer than their titles */
.mk-wrap #mkHook,.mk-wrap #mkSetting{max-width:118px}
@media(min-width:901px) and (max-width:1399px){
  .mk-wrap .mk-modes{width:60px}
  .mk-wrap .mkt-comp>.mkt-chip{width:74px;padding:9px 8px;font-size:13px}
  .mk-wrap #mkGen{width:104px}
}
.mk-pick>svg{z-index:1}
@media(max-width:900px){.mk-extra{flex-wrap:wrap}}
